@7shifts/sous-chef 3.30.1 → 3.31.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.
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
- import { WeekStart, DateRange, BlockedDays } from '../../utils/date';
2
+ import { WeekStart, DateRange, BlockedDays, DisabledDays } from '../../utils/date';
3
3
  type Props = {
4
4
  name: string;
5
5
  /** If not provided it will generate a random id so the label links properly with the text input */
6
6
  id?: string;
7
7
  value?: DateRange;
8
8
  /** It disable some dates so the user can't click on them. Refer to this [doc](https://react-day-picker.js.org/api/types/matcher) to see what values you can use. */
9
- disabledDays?: BlockedDays;
9
+ disabledDays?: DisabledDays | BlockedDays;
10
10
  /** Reference this for valid formats: https://date-fns.org/v2.18.0/docs/format */
11
11
  format?: string;
12
12
  onChange?: (e: DateRange) => void;
package/dist/index.css CHANGED
@@ -3249,6 +3249,19 @@ input:disabled + ._1aaPx::after {
3249
3249
  border-radius: 0;
3250
3250
  border-top-right-radius: 4px;
3251
3251
  }
3252
+ ._2K8Ob {
3253
+ background-color: white;
3254
+ position: absolute;
3255
+ height: 36px;
3256
+ margin-top: 1px;
3257
+ margin-left: 25px;
3258
+ align-items: center;
3259
+ display: flex;
3260
+ pointer-events: none;
3261
+ font-size: 14px;
3262
+ font-family: "Proxima Nova", sans-serif;
3263
+ color: var(--color-grey-500);
3264
+ }
3252
3265
  ._1uJbR {
3253
3266
  flex-grow: 1;
3254
3267
  display: flex;
package/dist/index.js CHANGED
@@ -9344,7 +9344,7 @@ var ToDate = function ToDate(_ref, ref) {
9344
9344
  var ToDate$1 = React.forwardRef(ToDate);
9345
9345
 
9346
9346
  var DateRangeField = function DateRangeField(_ref) {
9347
- var _classnames;
9347
+ var _classnames, _disabledDays$start, _disabledDays$end;
9348
9348
  var name = _ref.name,
9349
9349
  inputId = _ref.id,
9350
9350
  value = _ref.value,
@@ -9400,7 +9400,7 @@ var DateRangeField = function DateRangeField(_ref) {
9400
9400
  weekStart: weekStart,
9401
9401
  maxDays: maxDays,
9402
9402
  disabled: disabled,
9403
- disabledDays: disabledDays,
9403
+ disabledDays: typeof disabledDays === 'object' && ('start' in disabledDays || 'end' in disabledDays) ? (_disabledDays$start = disabledDays.start) != null ? _disabledDays$start : undefined : disabledDays,
9404
9404
  readOnly: readOnly,
9405
9405
  onChange: function onChange(val) {
9406
9406
  return controllers.onChange({
@@ -9425,7 +9425,7 @@ var DateRangeField = function DateRangeField(_ref) {
9425
9425
  weekStart: weekStart,
9426
9426
  maxDays: maxDays,
9427
9427
  disabled: disabled,
9428
- disabledDays: disabledDays,
9428
+ disabledDays: typeof disabledDays === 'object' && ('start' in disabledDays || 'end' in disabledDays) ? (_disabledDays$end = disabledDays.end) != null ? _disabledDays$end : undefined : disabledDays,
9429
9429
  readOnly: readOnly,
9430
9430
  onBlur: controllers.onBlur,
9431
9431
  onChange: function onChange(val) {
@@ -9827,6 +9827,8 @@ var TimeRangeField = function TimeRangeField(_ref) {
9827
9827
  })));
9828
9828
  };
9829
9829
 
9830
+ var styles$14 = {"currency-field__mask-display":"_2K8Ob"};
9831
+
9830
9832
  var _excluded$2D = ["currencySymbol", "step"];
9831
9833
  var CurrencyFieldElement = function CurrencyFieldElement(_ref, ref) {
9832
9834
  var _ref$currencySymbol = _ref.currencySymbol,
@@ -9839,8 +9841,16 @@ var CurrencyFieldElement = function CurrencyFieldElement(_ref, ref) {
9839
9841
  })),
9840
9842
  inputProps = _useTextField.inputProps,
9841
9843
  fieldProps = _useTextField.fieldProps;
9844
+ var hasValue = !!inputProps.value;
9845
+ var _useState = React.useState(hasValue),
9846
+ showMask = _useState[0],
9847
+ setShowMask = _useState[1];
9842
9848
  var isWholeNumber = Number.isInteger(step);
9843
- return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(AffixContainer, {
9849
+ var formatThousandsSparator = function formatThousandsSparator(value) {
9850
+ var numberValue = parseFloat(value).toFixed(isWholeNumber ? 0 : 2);
9851
+ return numberValue.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
9852
+ };
9853
+ return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement(React.Fragment, null, React__default.createElement(AffixContainer, {
9844
9854
  prefix: currencySymbol
9845
9855
  }, React__default.createElement("input", _extends({}, inputProps, {
9846
9856
  type: "number",
@@ -9859,11 +9869,18 @@ var CurrencyFieldElement = function CurrencyFieldElement(_ref, ref) {
9859
9869
  e.currentTarget.value = parseFloat(e.currentTarget.value).toFixed(isWholeNumber ? 0 : 2);
9860
9870
  inputProps.onChange(e);
9861
9871
  inputProps.onBlur(e);
9872
+ setShowMask(true);
9862
9873
  },
9863
9874
  onWheel: function onWheel(e) {
9864
9875
  e.target.blur();
9876
+ },
9877
+ onFocus: function onFocus(e) {
9878
+ setShowMask(false);
9879
+ inputProps.onFocus(e);
9865
9880
  }
9866
- }))));
9881
+ }))), showMask && !!inputProps.value && React__default.createElement("div", {
9882
+ className: styles$14['currency-field__mask-display']
9883
+ }, formatThousandsSparator(inputProps.value.toString() || ''))));
9867
9884
  };
9868
9885
  var CurrencyField = React.forwardRef(CurrencyFieldElement);
9869
9886
 
@@ -9955,7 +9972,7 @@ var FormFeedback = function FormFeedback(_ref) {
9955
9972
  }, children);
9956
9973
  };
9957
9974
 
9958
- var styles$14 = {"phone-field":"_1uJbR","phone-field__input--with-square-borders":"_1zowl","phone-field__flag":"_Fc99X"};
9975
+ var styles$15 = {"phone-field":"_1uJbR","phone-field__input--with-square-borders":"_1zowl","phone-field__flag":"_Fc99X"};
9959
9976
 
9960
9977
  var usePhoneFieldControllers = function usePhoneFieldControllers(_ref) {
9961
9978
  var name = _ref.name,
@@ -10816,7 +10833,7 @@ var COUNTRIES = {
10816
10833
  };
10817
10834
  var COUNTRY_CODES = Object.keys(COUNTRIES);
10818
10835
 
10819
- var styles$15 = {"country-selector":"_2T1pu","country-selector--with-error":"_1OxwW","country-selector__trigger":"_3mUO5","country-selector--disabled":"_10MbE","country-selector__trigger--with-error":"_5Dh7e","country-selector__trigger--disabled":"_2myDP","country-selector__trigger-flag":"_IHf11","country-selector__flag":"_1KMRs"};
10836
+ var styles$16 = {"country-selector":"_2T1pu","country-selector--with-error":"_1OxwW","country-selector__trigger":"_3mUO5","country-selector--disabled":"_10MbE","country-selector__trigger--with-error":"_5Dh7e","country-selector__trigger--disabled":"_2myDP","country-selector__trigger-flag":"_IHf11","country-selector__flag":"_1KMRs"};
10820
10837
 
10821
10838
  var flagIcons = {"fi":"_M2doN","fis":"_3vbi0","fi-ac":"_30baC","fi-ad":"_3ZYxj","fi-ae":"_2LJGN","fi-af":"_lqly3","fi-ag":"_B1gnt","fi-ai":"_1NIqt","fi-al":"_20Sg9","fi-am":"_JXRFR","fi-ao":"_3dUc_","fi-ar":"_2zSuY","fi-as":"_31Bje","fi-at":"_1_3ab","fi-au":"_3ifhl","fi-aw":"_3H9aN","fi-ax":"_3A_KZ","fi-az":"_2ObKm","fi-ba":"_3v41n","fi-bb":"_1fjfa","fi-bd":"_24NEp","fi-be":"_3AF8j","fi-bf":"_2jlZh","fi-bg":"_2ACy1","fi-bh":"_298rj","fi-bi":"_AP8aY","fi-bj":"_1SvG2","fi-bl":"_10exo","fi-bm":"_dPwTT","fi-bn":"_1e3FY","fi-bo":"_1P6lb","fi-bq":"_3yLu_","fi-br":"_2reHT","fi-bs":"_34VqI","fi-bt":"_3L-ek","fi-bw":"_2P46Z","fi-by":"_3k3ji","fi-bz":"_Wm-7Z","fi-ca":"_3mCU8","fi-cc":"_1TnnA","fi-cd":"_1n3mG","fi-cf":"_mRVOk","fi-cg":"_3yqWy","fi-ch":"_S-QqO","fi-ci":"_3yq28","fi-ck":"_1MnXX","fi-cl":"_2BAiD","fi-cm":"_17muc","fi-cn":"_zHGeX","fi-co":"_2xeW0","fi-cr":"_2PCnB","fi-cu":"_BFNAl","fi-cv":"_G2jRt","fi-cw":"_1grh-","fi-cx":"_1QOKC","fi-cy":"_3ld7b","fi-cz":"_bN_Fv","fi-de":"_280yy","fi-dj":"_3cZp9","fi-dk":"_23TZO","fi-dm":"_1sbTf","fi-do":"_1M5wH","fi-dz":"_2cicq","fi-ec":"_3caqA","fi-ee":"_3ZCIU","fi-eg":"_23ytE","fi-eh":"_pmU44","fi-er":"_1B8BU","fi-es":"_2jhKE","fi-et":"_sk0P2","fi-fi":"_1SEmk","fi-fj":"_sSQMg","fi-fk":"_27XSg","fi-fm":"_ClziM","fi-fo":"_uI-xC","fi-fr":"_M2iAw","fi-ga":"_2dwxx","fi-gb":"_1e-nA","fi-gd":"_2RZeE","fi-ge":"_2EvCn","fi-gf":"_3IH4K","fi-gg":"_1Jcke","fi-gh":"_2EPke","fi-gi":"_12Nbn","fi-gl":"_3__lH","fi-gm":"_2V2JG","fi-gn":"_1snaM","fi-gp":"_3Ra5n","fi-gq":"_3sbjK","fi-gr":"_-xgIE","fi-gt":"_1IL-n","fi-gu":"_X2BnD","fi-gw":"_183f_","fi-gy":"_3euCo","fi-hk":"_3vkSA","fi-hn":"_2wum3","fi-hr":"_394Be","fi-ht":"_2SZVb","fi-hu":"_1LPfs","fi-id":"_XxFIw","fi-ie":"_38xYb","fi-il":"_xsU9l","fi-im":"_1hyCQ","fi-in":"_1WZwW","fi-io":"_2OqV4","fi-iq":"_wS2T_","fi-ir":"_2gomh","fi-is":"_1DFTj","fi-it":"_2xqL9","fi-je":"_1YQZ8","fi-jm":"_2e2gd","fi-jo":"_3SD_b","fi-jp":"_2iU8m","fi-ke":"_2HTh-","fi-kg":"_P_BgY","fi-kh":"_3cL-5","fi-ki":"_UVsN_","fi-km":"_5_aHV","fi-kn":"_1ytYB","fi-kp":"_3h4nD","fi-kr":"_5Ayl_","fi-kw":"_11J0K","fi-ky":"_3JNZj","fi-kz":"_odoDB","fi-la":"_1NsIw","fi-lb":"_3sNSR","fi-lc":"_qIIiy","fi-li":"_2EYin","fi-lk":"_YC0sS","fi-lr":"_3M5Be","fi-ls":"_3mNd-","fi-lt":"_3Lod8","fi-lu":"_PADgP","fi-lv":"_1edmr","fi-ly":"_2Qaxl","fi-ma":"_3woQF","fi-mc":"_3Tcvg","fi-md":"_304sg","fi-me":"_3Y4qN","fi-mf":"_2Ta4d","fi-mg":"_3cyLg","fi-mh":"_3oa6y","fi-mk":"_2JG9M","fi-ml":"_E244m","fi-mm":"_3vntQ","fi-mn":"_1NFiz","fi-mo":"_17P3Y","fi-mp":"_2TsiM","fi-mq":"_1y2tW","fi-mr":"_hmY4g","fi-ms":"_2Rj7s","fi-mt":"_1nmC4","fi-mu":"_xO9Yk","fi-mv":"_13arY","fi-mw":"_2NJbp","fi-mx":"_3jDAz","fi-my":"_1R-kq","fi-mz":"_2JrIx","fi-na":"_2bezu","fi-nc":"_RXHw0","fi-ne":"_17FYh","fi-nf":"_2f17Z","fi-ng":"_pkj4b","fi-ni":"_2M9Kl","fi-nl":"_XP4Cy","fi-no":"_vWBdS","fi-np":"_3HCj0","fi-nr":"_35I9J","fi-nu":"_1qVGc","fi-nz":"_3sy04","fi-om":"_1ru-J","fi-pa":"_gVRbx","fi-pe":"_rPJml","fi-pf":"_b_9in","fi-pg":"_3svVP","fi-ph":"_qf4jP","fi-pk":"_ETc1B","fi-pl":"_2iKV_","fi-pm":"_3rKup","fi-pr":"_18qkQ","fi-ps":"_2QUjB","fi-pt":"_3XlFj","fi-pw":"_2-I7x","fi-py":"_2VRS9","fi-qa":"_XL4IN","fi-re":"_1Heg1","fi-ro":"_9Ds_F","fi-rs":"_2NBRF","fi-ru":"_27vE7","fi-rw":"_15XW2","fi-sa":"_2FNqc","fi-sb":"_nZ0tS","fi-sc":"_2c7r2","fi-sd":"_31SMO","fi-se":"_2g80W","fi-sg":"_1fXM6","fi-sh":"_3jXVn","fi-si":"_1dCS9","fi-sj":"_Fw6EH","fi-sk":"_3ZIrQ","fi-sl":"_2CXXP","fi-sm":"_9Z6OF","fi-sn":"_27QPB","fi-so":"_3u0ej","fi-sr":"_aWap6","fi-ss":"_jgut9","fi-st":"_1ZG6d","fi-sv":"_1LyCh","fi-sx":"_29HpR","fi-sy":"_36XMC","fi-sz":"_uhQEf","fi-ta":"_1VKa_","fi-tc":"_1zZqn","fi-td":"_zPDQp","fi-tg":"_1uL0e","fi-th":"_2hgJx","fi-tj":"_3wIE0","fi-tk":"_2duh0","fi-tl":"_2KUDp","fi-tm":"_2CfPc","fi-tn":"_2P42O","fi-to":"_2WFbJ","fi-tr":"_3Az7i","fi-tt":"_1pNPS","fi-tv":"_1pgP-","fi-tw":"_2ctah","fi-tz":"_3LhmF","fi-ua":"_ySobg","fi-ug":"_L0cww","fi-us":"_1dJbI","fi-uy":"_1mu4a","fi-uz":"_2jO3C","fi-va":"_3Wjh-","fi-vc":"_2SLDw","fi-ve":"_33s_c","fi-vg":"_14DB7","fi-vi":"_yup8e","fi-vn":"_2mLwZ","fi-vu":"_32cC-","fi-wf":"_2a5ap","fi-ws":"_3wY8H","fi-xk":"_3X7px","fi-ye":"_16y86","fi-yt":"_4eJM-","fi-za":"_3c6fy","fi-zm":"_21Ocp","fi-zw":"_2GLu6"};
10822
10839
 
@@ -10827,15 +10844,15 @@ var CountrySelector = function CountrySelector(_ref) {
10827
10844
  hasError = _ref.hasError,
10828
10845
  disabled = _ref.disabled;
10829
10846
  return React__default.createElement("div", {
10830
- className: classnames(styles$15['country-selector'], (_classNames = {}, _classNames[styles$15['country-selector--with-error']] = hasError, _classNames[styles$15['country-selector--disabled']] = disabled, _classNames))
10847
+ className: classnames(styles$16['country-selector'], (_classNames = {}, _classNames[styles$16['country-selector--with-error']] = hasError, _classNames[styles$16['country-selector--disabled']] = disabled, _classNames))
10831
10848
  }, React__default.createElement(Dropdown, {
10832
10849
  trigger: React__default.createElement("div", {
10833
- className: classnames(styles$15['country-selector__trigger'], (_classNames2 = {}, _classNames2[styles$15['country-selector__trigger--with-error']] = hasError, _classNames2[styles$15['country-selector__trigger--disabled']] = disabled, _classNames2))
10850
+ className: classnames(styles$16['country-selector__trigger'], (_classNames2 = {}, _classNames2[styles$16['country-selector__trigger--with-error']] = hasError, _classNames2[styles$16['country-selector__trigger--disabled']] = disabled, _classNames2))
10834
10851
  }, React__default.createElement(Inline, {
10835
10852
  space: 8,
10836
10853
  alignItems: "center"
10837
10854
  }, React__default.createElement("span", {
10838
- className: classnames(flagIcons['fi'], flagIcons["fi-" + country.toLocaleLowerCase()], styles$15['country-selector__trigger-flag'])
10855
+ className: classnames(flagIcons['fi'], flagIcons["fi-" + country.toLocaleLowerCase()], styles$16['country-selector__trigger-flag'])
10839
10856
  }), React__default.createElement(IconChevronDown, {
10840
10857
  color: "grey-400",
10841
10858
  size: "medium"
@@ -10852,7 +10869,7 @@ var CountrySelector = function CountrySelector(_ref) {
10852
10869
  alignItems: "center",
10853
10870
  space: 12
10854
10871
  }, React__default.createElement("span", {
10855
- className: classnames(flagIcons['fi'], flagIcons["fi-" + countryCode.toLocaleLowerCase()], styles$15['country-selector__flag'])
10872
+ className: classnames(flagIcons['fi'], flagIcons["fi-" + countryCode.toLocaleLowerCase()], styles$16['country-selector__flag'])
10856
10873
  }), React__default.createElement(Text, null, COUNTRIES[countryCode].countryName)));
10857
10874
  }))));
10858
10875
  };
@@ -10924,7 +10941,7 @@ var PhoneField = function PhoneField(_ref) {
10924
10941
  }
10925
10942
  }, [fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.internationalPhone]);
10926
10943
  return React__default.createElement(Field, _extends({}, fieldProps), React__default.createElement("div", {
10927
- className: styles$14['phone-field']
10944
+ className: styles$15['phone-field']
10928
10945
  }, !disabledCountry && React__default.createElement(CountrySelector, {
10929
10946
  country: selectedCountry,
10930
10947
  onChange: handleCountryChange,
@@ -10935,17 +10952,17 @@ var PhoneField = function PhoneField(_ref) {
10935
10952
  space: 4,
10936
10953
  alignItems: "center"
10937
10954
  }, React__default.createElement("span", {
10938
- className: classnames(flagIcons['fi'], flagIcons["fi-" + selectedCountry.toLocaleLowerCase()], styles$14['country-selector__flag'])
10955
+ className: classnames(flagIcons['fi'], flagIcons["fi-" + selectedCountry.toLocaleLowerCase()], styles$15['country-selector__flag'])
10939
10956
  }), React__default.createElement("span", null, "+", libphonenumberJs.getCountryCallingCode(selectedCountry))) : "+" + libphonenumberJs.getCountryCallingCode(selectedCountry)
10940
10957
  }, React__default.createElement("input", _extends({}, inputProps, {
10941
10958
  type: "tel",
10942
- className: classnames(inputProps.className, (_classNames = {}, _classNames[styles$14['phone-field__input--with-square-borders']] = !disabledCountry, _classNames)),
10959
+ className: classnames(inputProps.className, (_classNames = {}, _classNames[styles$15['phone-field__input--with-square-borders']] = !disabledCountry, _classNames)),
10943
10960
  onChange: handlePhoneChange,
10944
10961
  onBlur: handlePhoneBlur
10945
10962
  })))));
10946
10963
  };
10947
10964
 
10948
- var styles$16 = {"badge":"_1QLaK","badge--warning":"_qsFWw","badge--danger":"_359Cc","badge--success":"_2AOEK","badge--info":"_1mLjf"};
10965
+ var styles$17 = {"badge":"_1QLaK","badge--warning":"_qsFWw","badge--danger":"_359Cc","badge--success":"_2AOEK","badge--info":"_1mLjf"};
10949
10966
 
10950
10967
  var _excluded$2G = ["children", "theme", "title", "testId"];
10951
10968
  var Badge = function Badge(_ref, forwardedRef) {
@@ -10966,16 +10983,16 @@ var Badge = function Badge(_ref, forwardedRef) {
10966
10983
  overlay: title,
10967
10984
  ref: ref
10968
10985
  }, React__default.createElement("div", _extends({
10969
- className: classnames(styles$16['badge'], (_classnames = {}, _classnames[styles$16['badge--success']] = theme === 'success', _classnames[styles$16['badge--danger']] = theme === 'danger', _classnames[styles$16['badge--info']] = theme === 'info', _classnames[styles$16['badge--warning']] = theme === 'warning', _classnames)),
10986
+ className: classnames(styles$17['badge'], (_classnames = {}, _classnames[styles$17['badge--success']] = theme === 'success', _classnames[styles$17['badge--danger']] = theme === 'danger', _classnames[styles$17['badge--info']] = theme === 'info', _classnames[styles$17['badge--warning']] = theme === 'warning', _classnames)),
10970
10987
  ref: ref,
10971
10988
  "data-testid": testId
10972
10989
  }, otherProps), children));
10973
10990
  };
10974
10991
  var Badge$1 = React.forwardRef(Badge);
10975
10992
 
10976
- var styles$17 = {"avatar":"_1X7La","avatar--small":"_o5x6S","avatar__badge":"_NN8-D","avatar--medium":"_VxW5y","avatar--large":"_ec7jQ","avatar--extra-large":"_3VS00"};
10993
+ var styles$18 = {"avatar":"_1X7La","avatar--small":"_o5x6S","avatar__badge":"_NN8-D","avatar--medium":"_VxW5y","avatar--large":"_ec7jQ","avatar--extra-large":"_3VS00"};
10977
10994
 
10978
- var styles$18 = {"avatar-image":"_bbI2F"};
10995
+ var styles$19 = {"avatar-image":"_bbI2F"};
10979
10996
 
10980
10997
  var AvatarImage = function AvatarImage(_ref) {
10981
10998
  var url = _ref.url,
@@ -10997,7 +11014,7 @@ var AvatarImage = function AvatarImage(_ref) {
10997
11014
  });
10998
11015
  }
10999
11016
  return React__default.createElement("div", {
11000
- className: styles$18['avatar-image']
11017
+ className: styles$19['avatar-image']
11001
11018
  }, React__default.createElement(IconUserSolid, {
11002
11019
  size: "flexible",
11003
11020
  color: color
@@ -11062,7 +11079,7 @@ var Avatar = function Avatar(_ref) {
11062
11079
  defaultProfilePictureColors = _useState2[0];
11063
11080
  var backgroundColor = url ? COLORS['grey-200'] : getColor(color);
11064
11081
  return React__default.createElement("div", {
11065
- className: classnames(styles$17['avatar'], (_classnames = {}, _classnames[styles$17['avatar--small']] = size === 'small', _classnames[styles$17['avatar--medium']] = size === 'medium', _classnames[styles$17['avatar--large']] = size === 'large', _classnames[styles$17['avatar--extra-large']] = size === 'extra-large', _classnames)),
11082
+ className: classnames(styles$18['avatar'], (_classnames = {}, _classnames[styles$18['avatar--small']] = size === 'small', _classnames[styles$18['avatar--medium']] = size === 'medium', _classnames[styles$18['avatar--large']] = size === 'large', _classnames[styles$18['avatar--extra-large']] = size === 'extra-large', _classnames)),
11066
11083
  style: {
11067
11084
  backgroundColor: children || url && !showIconInsteadOfImage ? backgroundColor : defaultProfilePictureColors.backgroundColor
11068
11085
  },
@@ -11075,7 +11092,7 @@ var Avatar = function Avatar(_ref) {
11075
11092
  return setShowIconInsteadOfImage(true);
11076
11093
  }
11077
11094
  }), badge && size !== 'small' && React__default.createElement("div", {
11078
- className: styles$17['avatar__badge']
11095
+ className: styles$18['avatar__badge']
11079
11096
  }, badge));
11080
11097
  };
11081
11098
 
@@ -11088,7 +11105,7 @@ var CHIP_THEME = {
11088
11105
  DANGER: 'danger'
11089
11106
  };
11090
11107
 
11091
- var styles$19 = {"chip":"_3e7Of","chip--marketing":"_2ZlMr","chip--success":"_g3pvh","chip--upsell":"_3GeNC","chip--warning":"_2jbr_","chip--info":"_1rrIw","chip--danger":"_1fKe8"};
11108
+ var styles$1a = {"chip":"_3e7Of","chip--marketing":"_2ZlMr","chip--success":"_g3pvh","chip--upsell":"_3GeNC","chip--warning":"_2jbr_","chip--info":"_1rrIw","chip--danger":"_1fKe8"};
11092
11109
 
11093
11110
  var Chip = function Chip(_ref) {
11094
11111
  var _classnames;
@@ -11098,11 +11115,11 @@ var Chip = function Chip(_ref) {
11098
11115
  testId = _ref.testId;
11099
11116
  return React__default.createElement("div", {
11100
11117
  "data-testid": testId,
11101
- className: classnames(styles$19['chip'], (_classnames = {}, _classnames[styles$19['chip--marketing']] = theme === CHIP_THEME.MARKETING, _classnames[styles$19['chip--success']] = theme === CHIP_THEME.SUCCESS, _classnames[styles$19['chip--upsell']] = theme === CHIP_THEME.UPSELL, _classnames[styles$19['chip--warning']] = theme === CHIP_THEME.WARNING, _classnames[styles$19['chip--info']] = theme === CHIP_THEME.INFO, _classnames[styles$19['chip--danger']] = theme === CHIP_THEME.DANGER, _classnames))
11118
+ className: classnames(styles$1a['chip'], (_classnames = {}, _classnames[styles$1a['chip--marketing']] = theme === CHIP_THEME.MARKETING, _classnames[styles$1a['chip--success']] = theme === CHIP_THEME.SUCCESS, _classnames[styles$1a['chip--upsell']] = theme === CHIP_THEME.UPSELL, _classnames[styles$1a['chip--warning']] = theme === CHIP_THEME.WARNING, _classnames[styles$1a['chip--info']] = theme === CHIP_THEME.INFO, _classnames[styles$1a['chip--danger']] = theme === CHIP_THEME.DANGER, _classnames))
11102
11119
  }, children);
11103
11120
  };
11104
11121
 
11105
- var styles$1a = {"pill":"_1vA9B","pill--default":"_2mTVo","pill--success":"_3CYqE","pill--danger":"_1WFdK","pill--warning":"_1Mp_n","pill--info":"_10zFn"};
11122
+ var styles$1b = {"pill":"_1vA9B","pill--default":"_2mTVo","pill--success":"_3CYqE","pill--danger":"_1WFdK","pill--warning":"_1Mp_n","pill--info":"_10zFn"};
11106
11123
 
11107
11124
  var PILL_THEME = {
11108
11125
  INFO: 'info',
@@ -11120,7 +11137,7 @@ var Pill = function Pill(_ref) {
11120
11137
  testId = _ref.testId;
11121
11138
  return React__default.createElement("div", {
11122
11139
  "data-testid": testId,
11123
- className: classnames(styles$1a['pill'], (_classnames = {}, _classnames[styles$1a['pill--default']] = theme === PILL_THEME.DEFAULT, _classnames[styles$1a['pill--warning']] = theme === PILL_THEME.WARNING, _classnames[styles$1a['pill--success']] = theme === PILL_THEME.SUCCESS, _classnames[styles$1a['pill--danger']] = theme === PILL_THEME.DANGER, _classnames[styles$1a['pill--info']] = theme === PILL_THEME.INFO, _classnames))
11140
+ className: classnames(styles$1b['pill'], (_classnames = {}, _classnames[styles$1b['pill--default']] = theme === PILL_THEME.DEFAULT, _classnames[styles$1b['pill--warning']] = theme === PILL_THEME.WARNING, _classnames[styles$1b['pill--success']] = theme === PILL_THEME.SUCCESS, _classnames[styles$1b['pill--danger']] = theme === PILL_THEME.DANGER, _classnames[styles$1b['pill--info']] = theme === PILL_THEME.INFO, _classnames))
11124
11141
  }, children);
11125
11142
  };
11126
11143
 
@@ -11130,9 +11147,9 @@ var EMPTY_STATE_SIZE = {
11130
11147
  LARGE: 'large'
11131
11148
  };
11132
11149
 
11133
- var styles$1b = {"empty-state-container-stack":"_11ygA","empty-state-container-stack__content":"_6o4Ut","empty-state-container-stack__content--full-page":"_1bs2I","empty-state-container-stack__content--inline-horizontal":"_WwD-g","empty-state-container-stack__body":"_1b3C0"};
11150
+ var styles$1c = {"empty-state-container-stack":"_11ygA","empty-state-container-stack__content":"_6o4Ut","empty-state-container-stack__content--full-page":"_1bs2I","empty-state-container-stack__content--inline-horizontal":"_WwD-g","empty-state-container-stack__body":"_1b3C0"};
11134
11151
 
11135
- var styles$1c = {"empty-state-container-cta":"_3q5OJ","empty-state-container-cta--inside-modal":"_3DOZC"};
11152
+ var styles$1d = {"empty-state-container-cta":"_3q5OJ","empty-state-container-cta--inside-modal":"_3DOZC"};
11136
11153
 
11137
11154
  var EmptyStateContainerCTA = function EmptyStateContainerCTA(_ref) {
11138
11155
  var _actions$primary, _actions$secondary, _classNames;
@@ -11149,7 +11166,7 @@ var EmptyStateContainerCTA = function EmptyStateContainerCTA(_ref) {
11149
11166
  size: BUTTON_SIZES.MIN_WIDTH_100
11150
11167
  });
11151
11168
  return React__default.createElement("div", {
11152
- className: classnames(styles$1c['empty-state-container-cta'], (_classNames = {}, _classNames[styles$1c['empty-state-container-cta--inside-modal']] = isInsideModal, _classNames))
11169
+ className: classnames(styles$1d['empty-state-container-cta'], (_classNames = {}, _classNames[styles$1d['empty-state-container-cta--inside-modal']] = isInsideModal, _classNames))
11153
11170
  }, primaryButton, secondaryButton);
11154
11171
  };
11155
11172
 
@@ -11164,7 +11181,7 @@ var EmptyStateContainerStack = function EmptyStateContainerStack(_ref) {
11164
11181
  isPaywall = _ref$isPaywall === void 0 ? false : _ref$isPaywall,
11165
11182
  testId = _ref.testId;
11166
11183
  return React__default.createElement("div", {
11167
- className: styles$1b['empty-state-container-stack'],
11184
+ className: styles$1c['empty-state-container-stack'],
11168
11185
  "data-testid": testId
11169
11186
  }, React__default.createElement("img", {
11170
11187
  src: mediaUrl,
@@ -11180,7 +11197,7 @@ var EmptyStateContainerStack = function EmptyStateContainerStack(_ref) {
11180
11197
  emphasis: "bold",
11181
11198
  as: "body"
11182
11199
  }, title), React__default.createElement("div", {
11183
- className: styles$1b['empty-state-container-stack__body']
11200
+ className: styles$1c['empty-state-container-stack__body']
11184
11201
  }, children)), React__default.createElement(Stack, {
11185
11202
  space: 8,
11186
11203
  alignItems: "center"
@@ -11192,7 +11209,7 @@ var EmptyStateContainerStack = function EmptyStateContainerStack(_ref) {
11192
11209
  }, caption)));
11193
11210
  };
11194
11211
 
11195
- var styles$1d = {"empty-state-container-inline":"_1AdW7","empty-state-container-inline--inside-modal":"_Y1L-A","empty-state-container-inline__content":"_1E308","empty-state-container-inline__content--full-page":"_P5jRb","empty-state-container-inline__content--inline-horizontal":"_vkAs2","empty-state-container-inline__body":"_1o2PF","empty-state-container-inline__image":"_mfMlg"};
11212
+ var styles$1e = {"empty-state-container-inline":"_1AdW7","empty-state-container-inline--inside-modal":"_Y1L-A","empty-state-container-inline__content":"_1E308","empty-state-container-inline__content--full-page":"_P5jRb","empty-state-container-inline__content--inline-horizontal":"_vkAs2","empty-state-container-inline__body":"_1o2PF","empty-state-container-inline__image":"_mfMlg"};
11196
11213
 
11197
11214
  var EmptyStateContainerInline = function EmptyStateContainerInline(_ref) {
11198
11215
  var _classNames, _classnames;
@@ -11210,10 +11227,10 @@ var EmptyStateContainerInline = function EmptyStateContainerInline(_ref) {
11210
11227
  var _useModalContext = useModalContext(),
11211
11228
  isInsideModal = _useModalContext.isModalMounted;
11212
11229
  return React__default.createElement("div", {
11213
- className: classnames(styles$1d['empty-state-container-inline'], (_classNames = {}, _classNames[styles$1d['empty-state-container-inline--inside-modal']] = isInsideModal, _classNames)),
11230
+ className: classnames(styles$1e['empty-state-container-inline'], (_classNames = {}, _classNames[styles$1e['empty-state-container-inline--inside-modal']] = isInsideModal, _classNames)),
11214
11231
  "data-testid": testId
11215
11232
  }, React__default.createElement("div", {
11216
- className: classnames(styles$1d['empty-state-container-inline__content'], (_classnames = {}, _classnames[styles$1d['empty-state-container__content--full-page']] = size === EMPTY_STATE_SIZE.LARGE, _classnames[styles$1d['empty-state-container__content--inline-horizontal']] = size === EMPTY_STATE_SIZE.MEDIUM, _classnames))
11233
+ className: classnames(styles$1e['empty-state-container-inline__content'], (_classnames = {}, _classnames[styles$1e['empty-state-container__content--full-page']] = size === EMPTY_STATE_SIZE.LARGE, _classnames[styles$1e['empty-state-container__content--inline-horizontal']] = size === EMPTY_STATE_SIZE.MEDIUM, _classnames))
11217
11234
  }, React__default.createElement(Stack, {
11218
11235
  space: 8
11219
11236
  }, header && React__default.createElement(Text, {
@@ -11222,7 +11239,7 @@ var EmptyStateContainerInline = function EmptyStateContainerInline(_ref) {
11222
11239
  }, header), React__default.createElement(Text, {
11223
11240
  as: "h1"
11224
11241
  }, title)), React__default.createElement("div", {
11225
- className: styles$1d['empty-state-container-inline__body']
11242
+ className: styles$1e['empty-state-container-inline__body']
11226
11243
  }, children), React__default.createElement(Stack, {
11227
11244
  space: 8,
11228
11245
  marginTop: 12
@@ -11233,7 +11250,7 @@ var EmptyStateContainerInline = function EmptyStateContainerInline(_ref) {
11233
11250
  }), caption && React__default.createElement(Text, {
11234
11251
  as: "caption"
11235
11252
  }, caption))), React__default.createElement("div", {
11236
- className: styles$1d['empty-state-container-inline__image']
11253
+ className: styles$1e['empty-state-container-inline__image']
11237
11254
  }, React__default.createElement("img", {
11238
11255
  src: mediaUrl,
11239
11256
  alt: String(title),