@7shifts/sous-chef 2.15.7 → 2.15.9

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.
@@ -6,44 +6,38 @@ export declare const TANGERINE300: '#fcab91';
6
6
  export declare const TANGERINE400: '#fb7448';
7
7
  export declare const TANGERINE500: '#e16840';
8
8
  export declare const TANGERINE600: '#96452b';
9
- export declare const TANGERINE700: '#4a2215';
10
9
  export declare const EGGPLANT100: '#f0f3fb';
11
10
  export declare const EGGPLANT200: '#d3dbf4';
12
11
  export declare const EGGPLANT300: '#a7b7ea';
13
12
  export declare const EGGPLANT400: '#6d87dd';
14
13
  export declare const EGGPLANT500: '#6179c6';
15
14
  export declare const EGGPLANT600: '#415184';
16
- export declare const EGGPLANT700: '#32295c';
17
15
  export declare const MINT100: '#ecfaf8';
18
16
  export declare const MINT200: '#c6f1eb';
19
17
  export declare const MINT300: '#8de4d7';
20
18
  export declare const MINT400: '#3abda9';
21
19
  export declare const MINT500: '#35ac9a';
22
20
  export declare const MINT600: '#277e71';
23
- export declare const MINT700: '#133e38';
24
21
  export declare const RADISH100: '#fcf0f0';
25
22
  export declare const RADISH200: '#f7d1d1';
26
23
  export declare const RADISH300: '#f0a3a3';
27
24
  export declare const RADISH400: '#e76767';
28
25
  export declare const RADISH500: '#cf5c5c';
29
26
  export declare const RADISH600: '#8a3d3d';
30
- export declare const RADISH700: '#441e1e';
31
27
  export declare const BLUEBERRY100: '#f6fdff';
32
28
  export declare const BLUEBERRY200: '#ceecf5';
33
29
  export declare const BLUEBERRY300: '#9cd9eb';
34
30
  export declare const BLUEBERRY400: '#5bc0de';
35
31
  export declare const BLUEBERRY500: '#51acc7';
36
32
  export declare const BLUEBERRY600: '#367385';
37
- export declare const BLUEBERRY700: '#1b3942';
38
33
  export declare const BANANA100: '#fff9ed';
39
34
  export declare const BANANA200: '#ffeec9';
40
35
  export declare const BANANA300: '#ffdd92';
41
36
  export declare const BANANA400: '#ffc74a';
42
37
  export declare const BANANA500: '#e5b242';
43
38
  export declare const BANANA600: '#99772c';
44
- export declare const BANANA700: '#4c3b16';
45
39
  export declare const GREY100: '#F3F3F3';
46
- export declare const GREY200: '#C8C8C8';
40
+ export declare const GREY200: '#D5D5D5';
47
41
  export declare const GREY300: '#949494';
48
42
  export declare const GREY400: '#767676';
49
43
  export declare const GREY500: '#464646';
@@ -56,4 +50,4 @@ export declare const COLORS: {
56
50
  BLUEBERRY: string;
57
51
  BANANA: string;
58
52
  };
59
- export declare type Color = typeof WHITE | typeof BLACK | typeof TANGERINE100 | typeof TANGERINE200 | typeof TANGERINE300 | typeof TANGERINE400 | typeof TANGERINE500 | typeof TANGERINE600 | typeof TANGERINE700 | typeof EGGPLANT100 | typeof EGGPLANT200 | typeof EGGPLANT300 | typeof EGGPLANT400 | typeof EGGPLANT500 | typeof EGGPLANT600 | typeof EGGPLANT700 | typeof MINT100 | typeof MINT200 | typeof MINT300 | typeof MINT400 | typeof MINT500 | typeof MINT600 | typeof MINT700 | typeof RADISH100 | typeof RADISH200 | typeof RADISH300 | typeof RADISH400 | typeof RADISH500 | typeof RADISH600 | typeof RADISH700 | typeof BLUEBERRY100 | typeof BLUEBERRY200 | typeof BLUEBERRY300 | typeof BLUEBERRY400 | typeof BLUEBERRY500 | typeof BLUEBERRY600 | typeof BLUEBERRY700 | typeof BANANA100 | typeof BANANA200 | typeof BANANA300 | typeof BANANA400 | typeof BANANA500 | typeof BANANA600 | typeof BANANA700 | typeof GREY100 | typeof GREY200 | typeof GREY300 | typeof GREY400 | typeof GREY500 | typeof GREY600;
53
+ export declare type Color = typeof WHITE | typeof BLACK | typeof TANGERINE100 | typeof TANGERINE200 | typeof TANGERINE300 | typeof TANGERINE400 | typeof TANGERINE500 | typeof TANGERINE600 | typeof EGGPLANT100 | typeof EGGPLANT200 | typeof EGGPLANT300 | typeof EGGPLANT400 | typeof EGGPLANT500 | typeof EGGPLANT600 | typeof MINT100 | typeof MINT200 | typeof MINT300 | typeof MINT400 | typeof MINT500 | typeof MINT600 | typeof RADISH100 | typeof RADISH200 | typeof RADISH300 | typeof RADISH400 | typeof RADISH500 | typeof RADISH600 | typeof BLUEBERRY100 | typeof BLUEBERRY200 | typeof BLUEBERRY300 | typeof BLUEBERRY400 | typeof BLUEBERRY500 | typeof BLUEBERRY600 | typeof BANANA100 | typeof BANANA200 | typeof BANANA300 | typeof BANANA400 | typeof BANANA500 | typeof BANANA600 | typeof GREY100 | typeof GREY200 | typeof GREY300 | typeof GREY400 | typeof GREY500 | typeof GREY600;
package/dist/index.css CHANGED
@@ -340,22 +340,22 @@ Please ask a designer if you have questions about which colours to use.
340
340
 
341
341
  ._3OB2g {
342
342
  background: #F3F3F3;
343
- border-color: #C8C8C8;
343
+ border-color: #D5D5D5;
344
344
  color: #464646;
345
345
  }
346
346
  ._3OB2g:hover {
347
- background: #C8C8C8;
347
+ background: #D5D5D5;
348
348
  border-color: #949494;
349
349
  color: #323232;
350
350
  }
351
351
  ._3OB2g:disabled {
352
352
  background: #F3F3F3;
353
- border-color: #C8C8C8;
353
+ border-color: #D5D5D5;
354
354
  color: #949494;
355
355
  }
356
356
  ._3OB2g[aria-disabled=true] {
357
357
  background: #F3F3F3;
358
- border-color: #C8C8C8;
358
+ border-color: #D5D5D5;
359
359
  color: #949494;
360
360
  }
361
361
 
@@ -445,7 +445,7 @@ Please ask a designer if you have questions about which colours to use.
445
445
 
446
446
  ._3BrS0 {
447
447
  background: transparent;
448
- border-color: #C8C8C8;
448
+ border-color: #D5D5D5;
449
449
  color: #464646;
450
450
  }
451
451
  ._3BrS0:hover {
@@ -455,12 +455,12 @@ Please ask a designer if you have questions about which colours to use.
455
455
  }
456
456
  ._3BrS0:disabled {
457
457
  background: transparent;
458
- border-color: #C8C8C8;
458
+ border-color: #D5D5D5;
459
459
  color: #949494;
460
460
  }
461
461
  ._3BrS0[aria-disabled=true] {
462
462
  background: transparent;
463
- border-color: #C8C8C8;
463
+ border-color: #D5D5D5;
464
464
  color: #949494;
465
465
  }
466
466
 
@@ -604,7 +604,7 @@ Please ask a designer if you have questions about which colours to use.
604
604
  display: flex;
605
605
  padding: 16px;
606
606
  border: 1px solid #fff;
607
- border-bottom: 1px solid #C8C8C8;
607
+ border-bottom: 1px solid #D5D5D5;
608
608
  }
609
609
  ._3DlpO:last-child:not(._NS-B9) {
610
610
  border-bottom: 1px solid #fff;
@@ -704,7 +704,7 @@ Please ask a designer if you have questions about which colours to use.
704
704
  }
705
705
 
706
706
  ._2ygIH {
707
- border: 1px solid #C8C8C8;
707
+ border: 1px solid #D5D5D5;
708
708
  border-radius: 8px;
709
709
  font-family: "Proxima Nova", sans-serif;
710
710
  font-size: 14px;
@@ -726,7 +726,7 @@ The base colour is the default colour and is numbered with 400. If someone says
726
726
  Please ask a designer if you have questions about which colours to use.
727
727
  */
728
728
  ._1IynL button:disabled {
729
- border-color: #C8C8C8;
729
+ border-color: #D5D5D5;
730
730
  }
731
731
  ._1IynL button:last-child {
732
732
  border-radius: 0 4px 4px 0;
@@ -754,7 +754,7 @@ Please ask a designer if you have questions about which colours to use.
754
754
  display: flex;
755
755
  }
756
756
  ._1d8Ci:not(:last-child):not(._3tb7U) {
757
- border-bottom: 1px solid #C8C8C8;
757
+ border-bottom: 1px solid #D5D5D5;
758
758
  }
759
759
 
760
760
  ._1d8Ci:focus:not(:focus-visible) {
@@ -806,7 +806,7 @@ Please ask a designer if you have questions about which colours to use.
806
806
  justify-content: flex-end;
807
807
  }
808
808
  ._1rrRr:not(:last-child) {
809
- border-right: 1px solid #C8C8C8;
809
+ border-right: 1px solid #D5D5D5;
810
810
  }
811
811
 
812
812
  ._azbIG {
@@ -929,7 +929,7 @@ Just for future references:
929
929
  ._3tNyE::before {
930
930
  content: "";
931
931
  display: block;
932
- background: #C8C8C8;
932
+ background: #D5D5D5;
933
933
  transition: all ease-in-out 150ms;
934
934
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.03);
935
935
  border-radius: 26px;
@@ -945,7 +945,7 @@ Just for future references:
945
945
  right: 21px;
946
946
  top: 2px;
947
947
  background: #fff;
948
- border: 1px solid #C8C8C8;
948
+ border: 1px solid #D5D5D5;
949
949
  border-radius: 24px;
950
950
  height: 14px;
951
951
  width: 14px;
@@ -1033,7 +1033,7 @@ Please ask a designer if you have questions about which colours to use.
1033
1033
  }
1034
1034
 
1035
1035
  ._1bTmd {
1036
- border: 1px solid #C8C8C8;
1036
+ border: 1px solid #D5D5D5;
1037
1037
  border-radius: 8px;
1038
1038
  font-family: "Proxima Nova", sans-serif;
1039
1039
  font-size: 14px;
@@ -1112,7 +1112,7 @@ Please ask a designer if you have questions about which colours to use.
1112
1112
 
1113
1113
  ._wQQ_2 {
1114
1114
  position: initial;
1115
- border: 1px solid #C8C8C8;
1115
+ border: 1px solid #D5D5D5;
1116
1116
  background: #fff;
1117
1117
  overflow: auto;
1118
1118
  outline: none;
@@ -1411,7 +1411,7 @@ Please ask a designer if you have questions about which colours to use.
1411
1411
  }
1412
1412
 
1413
1413
  ._3vJkw {
1414
- color: #C8C8C8;
1414
+ color: #D5D5D5;
1415
1415
  cursor: default;
1416
1416
  }
1417
1417
 
@@ -1436,7 +1436,7 @@ Please ask a designer if you have questions about which colours to use.
1436
1436
  display: table-cell;
1437
1437
  padding: 0.5em;
1438
1438
  min-width: 1em;
1439
- border-right: 1px solid #C8C8C8;
1439
+ border-right: 1px solid #D5D5D5;
1440
1440
  color: #949494;
1441
1441
  vertical-align: middle;
1442
1442
  text-align: right;
@@ -1629,7 +1629,7 @@ Please ask a designer if you have questions about which colours to use.
1629
1629
  }
1630
1630
 
1631
1631
  ._1M4ZF {
1632
- color: #C8C8C8;
1632
+ color: #D5D5D5;
1633
1633
  cursor: default;
1634
1634
  }
1635
1635
 
@@ -1654,7 +1654,7 @@ Please ask a designer if you have questions about which colours to use.
1654
1654
  display: table-cell;
1655
1655
  padding: 0.5em;
1656
1656
  min-width: 1em;
1657
- border-right: 1px solid #C8C8C8;
1657
+ border-right: 1px solid #D5D5D5;
1658
1658
  color: #949494;
1659
1659
  vertical-align: middle;
1660
1660
  text-align: right;
@@ -1922,7 +1922,7 @@ Please ask a designer if you have questions about which colours to use.
1922
1922
  border-radius: 4px;
1923
1923
  padding: 7px;
1924
1924
  box-shadow: none;
1925
- border: 1px solid #C8C8C8;
1925
+ border: 1px solid #D5D5D5;
1926
1926
  flex: 1;
1927
1927
  display: flex;
1928
1928
  flex-direction: column;
@@ -1979,7 +1979,7 @@ Please ask a designer if you have questions about which colours to use.
1979
1979
  font-family: "Proxima Nova", sans-serif;
1980
1980
  color: #464646;
1981
1981
  box-shadow: none;
1982
- border: 1px solid #C8C8C8;
1982
+ border: 1px solid #D5D5D5;
1983
1983
  margin: 0;
1984
1984
  flex: 1;
1985
1985
  min-width: 90px;
@@ -2044,8 +2044,8 @@ Please ask a designer if you have questions about which colours to use.
2044
2044
  width: 14px;
2045
2045
  background-color: transparent;
2046
2046
  border-radius: 4px;
2047
- border: 1px solid #C8C8C8;
2048
- box-shadow: inset 0 1px 4px -2px #C8C8C8;
2047
+ border: 1px solid #D5D5D5;
2048
+ box-shadow: inset 0 1px 4px -2px #D5D5D5;
2049
2049
  }
2050
2050
  ._2mA8e::after {
2051
2051
  position: absolute;
@@ -2076,7 +2076,7 @@ input:focus-visible + ._2mA8e {
2076
2076
  }
2077
2077
  input:disabled + ._2mA8e {
2078
2078
  background-color: #F3F3F3;
2079
- border: 1px solid #C8C8C8;
2079
+ border: 1px solid #D5D5D5;
2080
2080
  }
2081
2081
  input:disabled + ._2mA8e::after {
2082
2082
  box-shadow: none;
@@ -2117,7 +2117,7 @@ Please ask a designer if you have questions about which colours to use.
2117
2117
  font-size: 14px;
2118
2118
  font-weight: 600;
2119
2119
  padding: 8px;
2120
- border: 1px solid #C8C8C8;
2120
+ border: 1px solid #D5D5D5;
2121
2121
  border-radius: 25px;
2122
2122
  min-height: 38px;
2123
2123
  min-width: 60px;
@@ -2133,8 +2133,8 @@ Please ask a designer if you have questions about which colours to use.
2133
2133
  box-sizing: border-box;
2134
2134
  }
2135
2135
  input:hover ~ ._1i2AX {
2136
- background-color: #C8C8C8;
2137
- border-color: #C8C8C8;
2136
+ background-color: #D5D5D5;
2137
+ border-color: #D5D5D5;
2138
2138
  }
2139
2139
  input:checked:hover ~ ._1i2AX {
2140
2140
  background-color: #e16840;
@@ -2234,8 +2234,8 @@ Please ask a designer if you have questions about which colours to use.
2234
2234
  width: 14px;
2235
2235
  background-color: transparent;
2236
2236
  border-radius: 50%;
2237
- border: 1px solid #C8C8C8;
2238
- box-shadow: inset 0 1px 4px -2px #C8C8C8;
2237
+ border: 1px solid #D5D5D5;
2238
+ box-shadow: inset 0 1px 4px -2px #D5D5D5;
2239
2239
  }
2240
2240
  ._1tMq-::after {
2241
2241
  position: absolute;
@@ -2264,7 +2264,7 @@ input:focus-visible + ._1tMq- {
2264
2264
  }
2265
2265
  input:disabled + ._1tMq- {
2266
2266
  background-color: #F3F3F3;
2267
- border: 1px solid #C8C8C8;
2267
+ border: 1px solid #D5D5D5;
2268
2268
  }
2269
2269
  input:disabled + ._1tMq-::after {
2270
2270
  box-shadow: none;
@@ -2293,7 +2293,7 @@ Please ask a designer if you have questions about which colours to use.
2293
2293
  font-family: "Proxima Nova", sans-serif;
2294
2294
  color: #464646;
2295
2295
  box-shadow: none;
2296
- border: 1px solid #C8C8C8;
2296
+ border: 1px solid #D5D5D5;
2297
2297
  margin: 0;
2298
2298
  flex: 1;
2299
2299
  min-width: 90px;
@@ -2349,7 +2349,7 @@ The base colour is the default colour and is numbered with 400. If someone says
2349
2349
  Please ask a designer if you have questions about which colours to use.
2350
2350
  */
2351
2351
  ._U0krC {
2352
- color: #C8C8C8;
2352
+ color: #D5D5D5;
2353
2353
  font-family: "Proxima Nova", sans-serif;
2354
2354
  }
2355
2355
 
@@ -2401,7 +2401,7 @@ Please ask a designer if you have questions about which colours to use.
2401
2401
  font-family: "Proxima Nova", sans-serif;
2402
2402
  color: #464646;
2403
2403
  box-shadow: none;
2404
- border: 1px solid #C8C8C8;
2404
+ border: 1px solid #D5D5D5;
2405
2405
  margin: 0;
2406
2406
  flex: 1;
2407
2407
  min-width: 90px;
@@ -2624,7 +2624,7 @@ Please ask a designer if you have questions about which colours to use.
2624
2624
  }
2625
2625
 
2626
2626
  ._2pgnH {
2627
- color: #C8C8C8;
2627
+ color: #D5D5D5;
2628
2628
  cursor: default;
2629
2629
  }
2630
2630
 
@@ -2649,7 +2649,7 @@ Please ask a designer if you have questions about which colours to use.
2649
2649
  display: table-cell;
2650
2650
  padding: 0.5em;
2651
2651
  min-width: 1em;
2652
- border-right: 1px solid #C8C8C8;
2652
+ border-right: 1px solid #D5D5D5;
2653
2653
  color: #949494;
2654
2654
  vertical-align: middle;
2655
2655
  text-align: right;
@@ -2676,7 +2676,7 @@ Please ask a designer if you have questions about which colours to use.
2676
2676
  font-family: "Proxima Nova", sans-serif;
2677
2677
  color: #464646;
2678
2678
  box-shadow: none;
2679
- border: 1px solid #C8C8C8;
2679
+ border: 1px solid #D5D5D5;
2680
2680
  margin: 0;
2681
2681
  flex: 1;
2682
2682
  min-width: 90px;
package/dist/index.js CHANGED
@@ -3116,10 +3116,10 @@ var WHITE = '#ffffff';
3116
3116
  var EGGPLANT200 = '#d3dbf4';
3117
3117
  var EGGPLANT300 = '#a7b7ea';
3118
3118
  var EGGPLANT400 = '#6d87dd';
3119
- var EGGPLANT700 = '#32295c';
3119
+ var EGGPLANT600 = '#415184';
3120
3120
  var RADISH400 = '#e76767';
3121
3121
  var GREY100 = '#F3F3F3';
3122
- var GREY200 = '#C8C8C8';
3122
+ var GREY200 = '#D5D5D5';
3123
3123
  var GREY300 = '#949494';
3124
3124
  var GREY400 = '#767676';
3125
3125
  var GREY500 = '#464646';
@@ -4187,6 +4187,8 @@ var useLabelTooltip = function useLabelTooltip(labelId, tooltipContent) {
4187
4187
  setShowTooltip = _useState[1];
4188
4188
 
4189
4189
  var shouldTruncate = typeof tooltipContent === 'string';
4190
+ var labelElement = document.getElementById(labelId);
4191
+ var isHidden = labelElement && labelElement.offsetParent === null;
4190
4192
  var handleApplyTooltip = React.useCallback(function () {
4191
4193
  if (!shouldTruncate) {
4192
4194
  return;
@@ -4199,8 +4201,11 @@ var useLabelTooltip = function useLabelTooltip(labelId, tooltipContent) {
4199
4201
  }
4200
4202
 
4201
4203
  var shouldShowTooltip = isEllipsisActive(labelElement);
4202
- setShowTooltip(shouldShowTooltip);
4203
- }, [shouldTruncate]);
4204
+
4205
+ if (showTooltip !== shouldShowTooltip) {
4206
+ setShowTooltip(shouldShowTooltip);
4207
+ }
4208
+ }, [shouldTruncate, isHidden]);
4204
4209
  React.useEffect(function () {
4205
4210
  var onWindowResize = lodashEs.debounce(handleApplyTooltip, 300);
4206
4211
  window.addEventListener('resize', onWindowResize);
@@ -4300,6 +4305,7 @@ var AffixContainer = function AffixContainer(_ref) {
4300
4305
  var container = React.useRef(null);
4301
4306
  var prefixElement = React.useRef(null);
4302
4307
  var suffixElement = React.useRef(null);
4308
+ var isHidden = container.current && container.current.offsetParent === null;
4303
4309
  React.useLayoutEffect(function () {
4304
4310
  if (container.current) {
4305
4311
  var input = container.current.querySelector('input, [class$=control] > div');
@@ -4318,7 +4324,7 @@ var AffixContainer = function AffixContainer(_ref) {
4318
4324
  }
4319
4325
  }
4320
4326
  }
4321
- }, [prefix, suffix]);
4327
+ }, [prefix, suffix, isHidden]);
4322
4328
  var hasPrefix = !!prefix;
4323
4329
  var hasSuffix = !!suffix;
4324
4330
 
@@ -5438,7 +5444,7 @@ var getSelectStyles$1 = function getSelectStyles(_ref) {
5438
5444
  option: function option(base, state) {
5439
5445
  return Object.assign({}, base, {
5440
5446
  backgroundColor: state.isDisabled ? null : state.isSelected ? EGGPLANT200 : state.isFocused ? GREY100 : WHITE,
5441
- color: state.isDisabled ? GREY400 : state.isSelected ? EGGPLANT700 : GREY500,
5447
+ color: state.isDisabled ? GREY400 : state.isSelected ? EGGPLANT600 : GREY500,
5442
5448
  cursor: 'pointer',
5443
5449
  fontFamily: FONT_FAMILY,
5444
5450
  fontSize: '14px',