@7shifts/sous-chef 3.43.3-beta.2 → 3.43.3-beta.4

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.
package/dist/index.css CHANGED
@@ -1,3 +1,21 @@
1
+ @font-face {
2
+ font-family: "Proxima Nova";
3
+ src: url("https://cdn.7shifts.com/fonts/proximaNova-semibold.eot");
4
+ src: url("https://cdn.7shifts.com/fonts/proximaNova-semibold.eot?#iefix") format("embedded-opentype"), url("https://cdn.7shifts.com/fonts/proximaNova-semibold.woff") format("woff"), url("https://cdn.7shifts.com/fonts/proximaNova-semibold.ttf") format("truetype"), url("https://cdn.7shifts.com/fonts/proximaNova-semibold.svg#ProximaNova-Semibold") format("svg");
5
+ font-weight: 600;
6
+ font-style: normal;
7
+ /* Preload the font */
8
+ unicode-range: U+0000-00FF; /* Basic Latin */
9
+ }
10
+ @font-face {
11
+ font-family: "Proxima Nova";
12
+ src: url("https://cdn.7shifts.com/fonts/ProximaNova-Regular.eot");
13
+ src: url("https://cdn.7shifts.com/fonts/ProximaNova-Regular.eot?#iefix") format("embedded-opentype"), url("https://cdn.7shifts.com/fonts/ProximaNova-Regular.woff") format("woff"), url("https://cdn.7shifts.com/fonts/ProximaNova-Regular.ttf") format("truetype"), url("https://cdn.7shifts.com/fonts/ProximaNova-Regular.svg#proxima_nova_rgregular") format("svg");
14
+ font-weight: normal;
15
+ font-style: normal;
16
+ /* Preload the font */
17
+ unicode-range: U+0000-00FF; /* Basic Latin */
18
+ }
1
19
  :root {
2
20
  --font-family-brand: "Proxima Nova", sans-serif;
3
21
  --font-family-body: "Proxima Nova", sans-serif;
@@ -129,6 +147,12 @@
129
147
  --z-index-tooltip: 300;
130
148
  --z-index-portal: 9999;
131
149
  }
150
+ body {
151
+ font-family: var(--font-family-brand);
152
+ font-size: var(--font-size-200);
153
+ line-height: var(--font-line-height-200);
154
+ font-weight: var(--p-font-weight-normal);
155
+ }
132
156
  ._OINV1 {
133
157
  display: flex;
134
158
  }
@@ -998,7 +1022,7 @@ Just for future references:
998
1022
  pointer-events: none;
999
1023
  }
1000
1024
  ._1oK6H {
1001
- top: 24px;
1025
+ top: 28px;
1002
1026
  border-bottom: 0;
1003
1027
  border-top-right-radius: 8px;
1004
1028
  border-top-left-radius: 8px;
@@ -2324,6 +2348,7 @@ input:disabled + ._2W10t::after {
2324
2348
  ._24Yjb table thead tr th:first-of-type {
2325
2349
  position: sticky;
2326
2350
  left: 0;
2351
+ background-color: var(--color-white);
2327
2352
  }
2328
2353
  ._24Yjb table tbody tr td:first-of-type {
2329
2354
  position: sticky;
@@ -2367,6 +2392,7 @@ input:disabled + ._2W10t::after {
2367
2392
  ._2pehG table thead tr th:last-of-type {
2368
2393
  position: sticky;
2369
2394
  right: 0;
2395
+ background-color: var(--color-white);
2370
2396
  }
2371
2397
  ._2pehG table tbody tr td:last-of-type {
2372
2398
  position: sticky;
@@ -2446,7 +2472,7 @@ input:disabled + ._2W10t::after {
2446
2472
  }
2447
2473
  }
2448
2474
  ._1HUZx {
2449
- height: calc(100% - 24px);
2475
+ height: calc(100% - 28px);
2450
2476
  width: 20px;
2451
2477
  position: absolute;
2452
2478
  display: block;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import './foundation/tokens/typography/_typography-tokens.scss';
2
2
  import './foundation/tokens/color/_color-tokens.scss';
3
3
  import './foundation/tokens/zindex/_z-index-tokens.scss';
4
+ import './foundation/_initital-setup.scss';
4
5
  export * from './foundation/tokens/color/color-constants';
5
6
  export * from './foundation/tokens/zindex/z-index-constants';
6
7
  export * from './core';
package/dist/index.js CHANGED
@@ -5981,34 +5981,10 @@ var HeaderSortIcon = function HeaderSortIcon(_ref) {
5981
5981
  })));
5982
5982
  };
5983
5983
 
5984
- var ModalContext = React.createContext({
5985
- isModalMounted: false
5986
- });
5987
- var useModalContext = function useModalContext() {
5988
- var context = React.useContext(ModalContext);
5989
- return context || {};
5990
- };
5991
-
5992
- var useBackgroundColor = function useBackgroundColor() {
5993
- var _useModalContext = useModalContext(),
5994
- isInsideModal = _useModalContext.isModalMounted;
5995
- var _useState = React.useState(COLORS.white),
5996
- backgroundColor = _useState[0],
5997
- setBackgroundColor = _useState[1];
5998
- React.useLayoutEffect(function () {
5999
- if (!isInsideModal) {
6000
- var bodyStyles = window.getComputedStyle(document.body);
6001
- setBackgroundColor(bodyStyles.getPropertyValue('background-color'));
6002
- }
6003
- }, [isInsideModal]);
6004
- return backgroundColor;
6005
- };
6006
-
6007
5984
  var DataTableHeader = function DataTableHeader(_ref) {
6008
5985
  var columns = _ref.columns,
6009
5986
  onSort = _ref.onSort,
6010
5987
  showActionMenu = _ref.showActionMenu;
6011
- var backgroundColor = useBackgroundColor();
6012
5988
  var haveLabels = columns.find(function (column) {
6013
5989
  return column.label && column.label !== '';
6014
5990
  });
@@ -6030,11 +6006,7 @@ var DataTableHeader = function DataTableHeader(_ref) {
6030
6006
  return React__default.createElement(React.Fragment, null, React__default.createElement(ColumnSizes, {
6031
6007
  columns: columns,
6032
6008
  showActionMenu: showActionMenu
6033
- }), React__default.createElement("thead", {
6034
- style: {
6035
- backgroundColor: backgroundColor
6036
- }
6037
- }, React__default.createElement("tr", {
6009
+ }), React__default.createElement("thead", null, React__default.createElement("tr", {
6038
6010
  className: styles$a['data-table-header']
6039
6011
  }, columns.filter(function (column) {
6040
6012
  return !column.hidden;
@@ -6046,8 +6018,7 @@ var DataTableHeader = function DataTableHeader(_ref) {
6046
6018
  return React__default.createElement("th", {
6047
6019
  className: classnames((_classnames = {}, _classnames[styles$a['data-table-header__item']] = true, _classnames[styles$a['data-table-header__item--sortable']] = isSortable, _classnames)),
6048
6020
  style: {
6049
- flex: column.size || 1,
6050
- backgroundColor: backgroundColor
6021
+ flex: column.size || 1
6051
6022
  },
6052
6023
  key: column.name,
6053
6024
  onClick: function onClick() {
@@ -7721,6 +7692,14 @@ var ModalHeader = function ModalHeader(_ref) {
7721
7692
  }, subHeader));
7722
7693
  };
7723
7694
 
7695
+ var ModalContext = React.createContext({
7696
+ isModalMounted: false
7697
+ });
7698
+ var useModalContext = function useModalContext() {
7699
+ var context = React.useContext(ModalContext);
7700
+ return context || {};
7701
+ };
7702
+
7724
7703
  var _excluded$2y = ["children", "header", "subHeader", "onClose", "loading", "zIndex", "rootElementId", "width", "height", "maxWidth", "shouldReturnFocusAfterClose", "testId"];
7725
7704
  var Modal = function Modal(_ref) {
7726
7705
  var children = _ref.children,