@7shifts/sous-chef 3.77.0-beta.1 → 3.77.0-beta.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.
@@ -21,6 +21,68 @@ import { parsePhoneNumber, AsYouType, getCountryCallingCode } from 'libphonenumb
21
21
  // This file is automatically generated by 'scripts/tokens/build-colors.sh'
22
22
  // Do not edit this file directly, if you need to add a color modify 'src/foundation/tokens/color/_color-tokens.scss'
23
23
  const COLORS = {
24
+ 'white': 'var(--color-white)',
25
+ 'black': 'var(--color-black)',
26
+ 'tangerine-100': 'var(--color-tangerine-100)',
27
+ 'tangerine-200': 'var(--color-tangerine-200)',
28
+ 'tangerine-300': 'var(--color-tangerine-300)',
29
+ 'tangerine-400': 'var(--color-tangerine-400)',
30
+ 'tangerine-500': 'var(--color-tangerine-500)',
31
+ 'tangerine-600': 'var(--color-tangerine-600)',
32
+ 'eggplant-100': 'var(--color-eggplant-100)',
33
+ 'eggplant-200': 'var(--color-eggplant-200)',
34
+ 'eggplant-300': 'var(--color-eggplant-300)',
35
+ 'eggplant-400': 'var(--color-eggplant-400)',
36
+ 'eggplant-500': 'var(--color-eggplant-500)',
37
+ 'eggplant-600': 'var(--color-eggplant-600)',
38
+ 'mint-100': 'var(--color-mint-100)',
39
+ 'mint-200': 'var(--color-mint-200)',
40
+ 'mint-300': 'var(--color-mint-300)',
41
+ 'mint-400': 'var(--color-mint-400)',
42
+ 'mint-500': 'var(--color-mint-500)',
43
+ 'mint-600': 'var(--color-mint-600)',
44
+ 'radish-100': 'var(--color-radish-100)',
45
+ 'radish-200': 'var(--color-radish-200)',
46
+ 'radish-300': 'var(--color-radish-300)',
47
+ 'radish-400': 'var(--color-radish-400)',
48
+ 'radish-500': 'var(--color-radish-500)',
49
+ 'radish-600': 'var(--color-radish-600)',
50
+ 'blueberry-100': 'var(--color-blueberry-100)',
51
+ 'blueberry-200': 'var(--color-blueberry-200)',
52
+ 'blueberry-300': 'var(--color-blueberry-300)',
53
+ 'blueberry-400': 'var(--color-blueberry-400)',
54
+ 'blueberry-500': 'var(--color-blueberry-500)',
55
+ 'blueberry-600': 'var(--color-blueberry-600)',
56
+ 'banana-100': 'var(--color-banana-100)',
57
+ 'banana-200': 'var(--color-banana-200)',
58
+ 'banana-300': 'var(--color-banana-300)',
59
+ 'banana-400': 'var(--color-banana-400)',
60
+ 'banana-500': 'var(--color-banana-500)',
61
+ 'banana-600': 'var(--color-banana-600)',
62
+ 'grey-100': 'var(--color-grey-100)',
63
+ 'grey-200': 'var(--color-grey-200)',
64
+ 'grey-300': 'var(--color-grey-300)',
65
+ 'grey-400': 'var(--color-grey-400)',
66
+ 'grey-500': 'var(--color-grey-500)',
67
+ 'grey-600': 'var(--color-grey-600)',
68
+ 'oat-100': 'var(--color-oat-100)',
69
+ 'oat-200': 'var(--color-oat-200)',
70
+ 'oat-300': 'var(--color-oat-300)',
71
+ 'oat-400': 'var(--color-oat-400)',
72
+ 'oat-500': 'var(--color-oat-500)',
73
+ 'oat-600': 'var(--color-oat-600)',
74
+ 'lime-100': 'var(--color-lime-100)',
75
+ 'lime-200': 'var(--color-lime-200)',
76
+ 'lime-300': 'var(--color-lime-300)',
77
+ 'lime-400': 'var(--color-lime-400)',
78
+ 'lime-500': 'var(--color-lime-500)',
79
+ 'lime-600': 'var(--color-lime-600)',
80
+ 'blackberry-100': 'var(--color-blackberry-100)',
81
+ 'blackberry-200': 'var(--color-blackberry-200)',
82
+ 'blackberry-300': 'var(--color-blackberry-300)',
83
+ 'blackberry-400': 'var(--color-blackberry-400)',
84
+ 'blackberry-500': 'var(--color-blackberry-500)',
85
+ 'blackberry-600': 'var(--color-blackberry-600)',
24
86
  'surface-color-dim': 'var(--color-surface-color-dim)',
25
87
  'surface-color': 'var(--color-surface-color)',
26
88
  'surface-on-color-disabled': 'var(--color-surface-on-color-disabled)',
@@ -37,6 +99,7 @@ const COLORS = {
37
99
  'surface-on-inverse': 'var(--color-surface-on-inverse)',
38
100
  'outline': 'var(--color-outline)',
39
101
  'outline-variant': 'var(--color-outline-variant)',
102
+ 'outline-inverse': 'var(--color-outline-inverse)',
40
103
  'primary-color': 'var(--color-primary-color)',
41
104
  'primary-on-color': 'var(--color-primary-on-color)',
42
105
  'primary-color-variant': 'var(--color-primary-color-variant)',
@@ -62,6 +125,7 @@ const COLORS = {
62
125
  'success-container': 'var(--color-success-container)',
63
126
  'success-on-container': 'var(--color-success-on-container)',
64
127
  'success-container-variant': 'var(--color-success-container-variant)',
128
+ 'success-on-container-variant': 'var(--color-success-on-container-variant)',
65
129
  'danger-color': 'var(--color-danger-color)',
66
130
  'danger-on-color': 'var(--color-danger-on-color)',
67
131
  'danger-container': 'var(--color-danger-container)',
@@ -778,7 +842,7 @@ const TooltipElement = ({
778
842
  };
779
843
  const Tooltip = forwardRef(TooltipElement);
780
844
 
781
- var styles$1i = {"button":"_pgOR3","button--loading":"_2yB9-","button__spinner":"_ppC-S","button--size-min-width-100":"_GtXOQ","button--size-full-width":"_Y-OxO","button--icon-only":"_3EfuT","button--default":"_ICNz7","button--primary":"_XwJWT","button--danger":"_gr3Dh","button--upsell":"_ME8te","button--hollow":"_orywo","button--hollow-contrast":"_obtsl","button--link-contrast":"_00jK4","button--link-primary":"_JPwJ7","button--link-danger":"_9TprN","button--link-upsell":"_tktX-","button--link-toolbar":"_r3SQl","button--link-icon":"_oFBLN","disabled-button-wrapper":"_yTBTz"};
845
+ var styles$1i = {"button":"_pgOR3","button--loading":"_2yB9-","button__spinner":"_ppC-S","button--size-min-width-100":"_GtXOQ","button--size-full-width":"_Y-OxO","button--icon-only":"_3EfuT","button--default":"_ICNz7","button--primary":"_XwJWT","button--danger":"_gr3Dh","button--upsell":"_ME8te","button--marketing":"_mI-Dx","button--hollow":"_orywo","button--hollow-contrast":"_obtsl","button--link-contrast":"_00jK4","button--link-primary":"_JPwJ7","button--link-danger":"_9TprN","button--link-upsell":"_tktX-","button--link-toolbar":"_r3SQl","button--link-icon":"_oFBLN","disabled-button-wrapper":"_yTBTz"};
782
846
 
783
847
  const BUTTON_SIZES = {
784
848
  FULL_WIDTH: 'full-width',
@@ -789,6 +853,7 @@ const BUTTON_THEMES = {
789
853
  PRIMARY: 'primary',
790
854
  DANGER: 'danger',
791
855
  UPSELL: 'upsell',
856
+ MARKETING: 'marketing',
792
857
  HOLLOW: 'hollow',
793
858
  HOLLOW_CONTRAST: 'hollow-contrast',
794
859
  LINK_PRIMARY: 'link-primary',
@@ -861,7 +926,7 @@ const ButtonComponent = (_ref, ref) => {
861
926
  const {
862
927
  dataProps
863
928
  } = getDataProps(otherProps);
864
- const contrastSpinner = [BUTTON_THEMES.PRIMARY, BUTTON_THEMES.DANGER, BUTTON_THEMES.UPSELL, BUTTON_THEMES.LINK_CONTRAST];
929
+ const contrastSpinner = [BUTTON_THEMES.PRIMARY, BUTTON_THEMES.DANGER, BUTTON_THEMES.UPSELL, BUTTON_THEMES.MARKETING, BUTTON_THEMES.LINK_CONTRAST];
865
930
  const childrenArr = Children.toArray(children);
866
931
  const isIconOnly = childrenArr.length === 1 && typeof childrenArr[0] != 'string';
867
932
  const ButtonElementResult = React__default.createElement(ButtonElement, {
@@ -877,6 +942,7 @@ const ButtonComponent = (_ref, ref) => {
877
942
  [styles$1i['button--primary']]: theme === BUTTON_THEMES.PRIMARY,
878
943
  [styles$1i['button--danger']]: theme === BUTTON_THEMES.DANGER,
879
944
  [styles$1i['button--upsell']]: theme === BUTTON_THEMES.UPSELL,
945
+ [styles$1i['button--marketing']]: theme === BUTTON_THEMES.MARKETING,
880
946
  [styles$1i['button--hollow']]: theme === BUTTON_THEMES.HOLLOW,
881
947
  [styles$1i['button--hollow-contrast']]: theme === BUTTON_THEMES.HOLLOW_CONTRAST,
882
948
  [styles$1i['button--link-primary']]: theme === BUTTON_THEMES.LINK_PRIMARY,
@@ -6558,14 +6624,14 @@ const HeaderSortIcon = ({
6558
6624
  }
6559
6625
  }, sortDir !== 'desc' && React__default.createElement(IconChevronUp, {
6560
6626
  size: "small",
6561
- color: "grey-400"
6627
+ color: "surface-on-color-subtle"
6562
6628
  }), sortDir !== 'asc' && React__default.createElement("span", {
6563
6629
  style: {
6564
6630
  marginTop: '-4px'
6565
6631
  }
6566
6632
  }, React__default.createElement(IconChevronDown, {
6567
6633
  size: "small",
6568
- color: "grey-400"
6634
+ color: "surface-on-color-subtle"
6569
6635
  })));
6570
6636
  };
6571
6637
 
@@ -7230,7 +7296,7 @@ const ErrorMessage = ({
7230
7296
  space: 8,
7231
7297
  alignItems: "center"
7232
7298
  }, React__default.createElement(IconTimesOctagon, {
7233
- color: "radish-400",
7299
+ color: "danger-color",
7234
7300
  size: "medium"
7235
7301
  }), children));
7236
7302
  };
@@ -7608,7 +7674,7 @@ const TimeFieldInput = ({
7608
7674
  return React__default.createElement(AffixContainer, {
7609
7675
  prefix: prefix ? prefix : React__default.createElement(IconClock, {
7610
7676
  size: "medium",
7611
- color: "grey-400"
7677
+ color: "surface-on-color-subtle"
7612
7678
  }),
7613
7679
  suffix: duration
7614
7680
  }, React__default.createElement("input", _extends({}, inputProps, {
@@ -8177,7 +8243,7 @@ const CalloutCard = ({
8177
8243
  className: styles$Y['callout-card__header']
8178
8244
  }, React__default.createElement(Text, {
8179
8245
  as: "body",
8180
- color: "blackberry-400"
8246
+ color: "primary-color"
8181
8247
  }, header)), React__default.createElement(Text, {
8182
8248
  as: "h2"
8183
8249
  }, title), React__default.createElement(Text, {
@@ -9341,7 +9407,7 @@ const DataTableCellElement = ({
9341
9407
  })
9342
9408
  }, React__default.createElement(IconTimesOctagon, {
9343
9409
  size: "medium",
9344
- color: "radish-400"
9410
+ color: "danger-on-container-variant"
9345
9411
  }));
9346
9412
  const TableCell = React__default.createElement("td", {
9347
9413
  className: classnames({
@@ -9785,7 +9851,7 @@ const EmptyStateContainerStack = ({
9785
9851
  alignItems: "center"
9786
9852
  }, header && React__default.createElement(Text, {
9787
9853
  as: "h4",
9788
- color: _isPaywall ? 'eggplant-500' : 'tangerine-400'
9854
+ color: _isPaywall ? 'upsell-color' : 'secondary-color'
9789
9855
  }, header), React__default.createElement(Text, {
9790
9856
  emphasis: "bold",
9791
9857
  as: "body",
@@ -10100,17 +10166,14 @@ const AccordionItem = props => {
10100
10166
  justifyContent: "space-between",
10101
10167
  alignItems: "center"
10102
10168
  }, React__default.createElement(Text, {
10103
- color: "grey-600",
10104
10169
  emphasis: "bold"
10105
10170
  }, title), React__default.createElement(IconChevronDown, {
10106
10171
  className: styles$x[`accordion-item__icon${isOpen ? '--active' : ''}`],
10107
- color: 'grey-400'
10172
+ color: 'surface-on-color-subtle'
10108
10173
  }))), React__default.createElement("div", {
10109
10174
  "data-testid": `${isOpen ? 'accordion-item-' + id + '-open' : 'accordion-item-' + id + '-closed'}`,
10110
10175
  className: styles$x[`accordion-item__content${isOpen ? '--active' : ''}`]
10111
- }, isOpen && React__default.createElement(Text, {
10112
- color: "grey-500"
10113
- }, content)));
10176
+ }, isOpen && React__default.createElement(Text, null, content)));
10114
10177
  };
10115
10178
 
10116
10179
  var styles$w = {"accordion":"_058SP"};
@@ -10210,19 +10273,19 @@ const ActionListItem = ({
10210
10273
  }) => {
10211
10274
  const iconColor = () => {
10212
10275
  if (_theme === 'info') {
10213
- return _disabled ? 'blueberry-300' : 'blueberry-400';
10276
+ return _disabled ? 'info-color-variant' : 'info-color';
10214
10277
  }
10215
10278
  if (_theme === 'warning') {
10216
- return _disabled ? 'banana-300' : 'banana-400';
10279
+ return _disabled ? 'warning-color-variant' : 'warning-color';
10217
10280
  }
10218
10281
  if (_theme === 'success') {
10219
- return _disabled ? 'mint-300' : 'mint-400';
10282
+ return _disabled ? 'success-color-variant' : 'success-color';
10220
10283
  }
10221
10284
  if (_theme === 'danger') {
10222
- return _disabled ? 'radish-300' : 'radish-400';
10285
+ return _disabled ? 'danger-color-variant' : 'danger-color';
10223
10286
  }
10224
10287
  if (_theme === 'upsell') {
10225
- return _disabled ? 'eggplant-300' : 'eggplant-400';
10288
+ return _disabled ? 'upsell-color-variant' : 'upsell-color';
10226
10289
  }
10227
10290
  return undefined;
10228
10291
  };
@@ -10265,14 +10328,14 @@ const ActionListItem = ({
10265
10328
  flexWrap: "wrap",
10266
10329
  ml: 30
10267
10330
  }, suffix && React__default.createElement(Text, {
10268
- color: _disabled ? 'grey-300' : 'grey-400'
10331
+ color: _disabled ? 'surface-on-color-disabled' : 'surface-on-color-subtle'
10269
10332
  }, suffix), actions && React__default.createElement(ActionListItemActions, {
10270
10333
  actions: actions,
10271
10334
  disabled: _disabled
10272
10335
  })), onAction && React__default.createElement("div", {
10273
10336
  className: classnames(style['action-list-item__chevron-icon'])
10274
10337
  }, React__default.createElement(IconChevronRight, {
10275
- color: _disabled ? 'grey-300' : 'grey-400'
10338
+ color: _disabled ? 'surface-on-color-disabled' : 'surface-on-color-subtle'
10276
10339
  })))));
10277
10340
  };
10278
10341
 
@@ -10469,8 +10532,8 @@ const getSelectStyles = ({
10469
10532
  },
10470
10533
  option: (base, state) => {
10471
10534
  return Object.assign({}, base, {
10472
- backgroundColor: state.isDisabled ? null : state.isSelected ? COLORS['primary-container'] : state.isFocused ? COLORS['surface-container-high'] : COLORS['surface-color'],
10473
- color: state.isDisabled ? COLORS['surface-on-color-disabled'] : state.isSelected ? COLORS['primary-color'] : COLORS['surface-on-color'],
10535
+ backgroundColor: state.isDisabled ? null : state.isSelected ? COLORS['primary-container-variant'] : state.isFocused ? COLORS['surface-container-high'] : COLORS['surface-color'],
10536
+ color: state.isDisabled ? COLORS['surface-on-color-disabled'] : state.isSelected ? COLORS['primary-on-container-variant'] : COLORS['surface-on-color'],
10474
10537
  cursor: 'pointer',
10475
10538
  fontFamily: FONT_FAMILY,
10476
10539
  fontSize: '14px',
@@ -10822,7 +10885,7 @@ const DateFilterText = ({
10822
10885
  space: 12
10823
10886
  }, React__default.createElement("span", null, getDateString(weekRange.start, mode)), React__default.createElement(IconArrowRight, {
10824
10887
  size: "small",
10825
- color: "grey-400"
10888
+ color: "surface-on-color-subtle"
10826
10889
  }), React__default.createElement("span", null, getDateString(weekRange.end, mode)));
10827
10890
  default:
10828
10891
  return React__default.createElement("span", null, getDateString(selectedDate, mode));
@@ -10850,7 +10913,7 @@ const DateFilterDisplay = forwardRef(({
10850
10913
  className: classnames(styles$q['date-filter-display__display-icon'])
10851
10914
  }, React__default.createElement(IconCalendarAlt, {
10852
10915
  size: "flexible",
10853
- color: "grey-400"
10916
+ color: "surface-on-color-subtle"
10854
10917
  })), React__default.createElement(DateFilterText, {
10855
10918
  mode: mode,
10856
10919
  selectedDate: selectedDate,
@@ -10923,7 +10986,7 @@ const DateFilter = ({
10923
10986
  onChange: handleChange
10924
10987
  }, React__default.createElement(IconChevronLeft, {
10925
10988
  size: "small",
10926
- color: "grey-400"
10989
+ color: "surface-on-color-subtle"
10927
10990
  })), React__default.createElement(DateFilterDisplay, {
10928
10991
  mode: _mode,
10929
10992
  weekStart: _weekStart,
@@ -10937,7 +11000,7 @@ const DateFilter = ({
10937
11000
  onChange: handleChange
10938
11001
  }, React__default.createElement(IconChevronRight, {
10939
11002
  size: "small",
10940
- color: "grey-400"
11003
+ color: "surface-on-color-subtle"
10941
11004
  }))), calendarOpen && _mode !== DATE_FILTER_MODE.MONTH && React__default.createElement(Calendar, {
10942
11005
  onSelect: handleChange,
10943
11006
  selected: value,
@@ -11374,7 +11437,7 @@ const CreatableOption = ({
11374
11437
  className: styles$i['pill-select-field__creating-custom-input']
11375
11438
  }, !newOptionLabel && React__default.createElement(Text, {
11376
11439
  as: "body",
11377
- color: "grey-300"
11440
+ color: "surface-on-color-disabled"
11378
11441
  }, __('enterOption')), !!newOptionLabel && newOptionLabel)));
11379
11442
  };
11380
11443
 
@@ -11759,7 +11822,7 @@ const PasswordCriteria = ({
11759
11822
  space: met ? 4 : 8
11760
11823
  }, met ? React__default.createElement(IconCheck, {
11761
11824
  size: "small",
11762
- color: "grey-200"
11825
+ color: "surface-on-color-disabled"
11763
11826
  }) : '\u25CF', React__default.createElement("span", null, children)));
11764
11827
  };
11765
11828
 
@@ -11853,9 +11916,9 @@ const PasswordField = ({
11853
11916
  tabIndex: 0,
11854
11917
  role: "button"
11855
11918
  }, type === 'password' ? React__default.createElement(IconEyeSlash, {
11856
- color: "grey-400"
11919
+ color: "surface-on-color-subtle"
11857
11920
  }) : React__default.createElement(IconEye, {
11858
- color: "grey-400"
11921
+ color: "surface-on-color-subtle"
11859
11922
  }))));
11860
11923
  };
11861
11924
 
@@ -12517,7 +12580,7 @@ const DateRangeField = ({
12517
12580
  "data-testid": testId
12518
12581
  }, React__default.createElement(IconCalendarAlt, {
12519
12582
  size: "medium",
12520
- color: "grey-400"
12583
+ color: "surface-on-color-subtle"
12521
12584
  }), React__default.createElement(FromDate, {
12522
12585
  name: name,
12523
12586
  id: controllers.id,
@@ -12541,7 +12604,7 @@ const DateRangeField = ({
12541
12604
  testId: testId
12542
12605
  }), React__default.createElement(IconArrowRight, {
12543
12606
  size: "medium",
12544
- color: "grey-400"
12607
+ color: "surface-on-color"
12545
12608
  }), React__default.createElement(ToDate, {
12546
12609
  name: name,
12547
12610
  format: _format,
@@ -12858,7 +12921,7 @@ const TimeRangeEnd = ({
12858
12921
  interval: interval,
12859
12922
  prefix: React__default.createElement(IconArrowRight, {
12860
12923
  size: "medium",
12861
- color: "grey-400"
12924
+ color: "surface-on-color-subtle"
12862
12925
  }),
12863
12926
  duration: duration,
12864
12927
  endField: true,
@@ -14120,7 +14183,7 @@ const CountrySelector = ({
14120
14183
  }, React__default.createElement("span", {
14121
14184
  className: classnames(flagIcons['fi'], flagIcons[`fi-${country.toLocaleLowerCase()}`], styles$7['country-selector__trigger-flag'])
14122
14185
  }), React__default.createElement(IconChevronDown, {
14123
- color: "grey-400",
14186
+ color: "surface-on-color-subtle",
14124
14187
  size: "medium"
14125
14188
  }))),
14126
14189
  maxHeight: 300,
@@ -14533,7 +14596,7 @@ const EmptyStateContainerInline = ({
14533
14596
  space: 8
14534
14597
  }, header && React__default.createElement(Text, {
14535
14598
  as: "h4",
14536
- color: _isPaywall ? 'eggplant-500' : 'blackberry-400'
14599
+ color: _isPaywall ? 'upsell-color' : 'primary-color'
14537
14600
  }, header), React__default.createElement(Text, {
14538
14601
  as: "h1"
14539
14602
  }, title)), React__default.createElement("div", {