@skyscanner/backpack-web 25.7.0 → 25.8.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.
package/README.md CHANGED
@@ -83,6 +83,8 @@ To contribute please see [contributing.md](CONTRIBUTING.md).
83
83
  [`bpk-component-ticket`](/packages/bpk-component-ticket)
84
84
  [`bpk-component-tooltip`](/packages/bpk-component-tooltip)
85
85
  [`bpk-react-utils`](/packages/bpk-react-utils)
86
+ [`bpk-mixins`](/packages/bpk-mixins)
87
+ [`bpk-stylesheets`](/packages/bpk-stylesheets)
86
88
 
87
89
  ## List of external packages
88
90
 
@@ -92,8 +94,6 @@ These are installed separately and installation information can be found in the
92
94
 
93
95
  | Component | Version |
94
96
  | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
95
- | [`bpk-mixins`](https://github.com/Skyscanner/backpack-foundations/tree/main/packages/bpk-mixins) | [![npm version](https://badge.fury.io/js/bpk-mixins.svg)](http://badge.fury.io/js/bpk-mixins) |
96
- | [`bpk-stylesheets`](https://github.com/Skyscanner/backpack-foundations/tree/main/packages/bpk-stylesheets) | [![npm version](https://badge.fury.io/js/bpk-stylesheets.svg)](http://badge.fury.io/js/bpk-stylesheets) |
97
97
  | [`@skyscanner/bpk-svgs`](https://github.com/Skyscanner/backpack-foundations/tree/main/packages/bpk-svgs) | [![npm version](https://badge.fury.io/js/%40skyscanner%2Fbpk-svgs.svg)](https://badge.fury.io/js/%40skyscanner%2Fbpk-svgs) |
98
98
  | [`@skyscanner/bpk-foundations-web`](https://github.com/Skyscanner/backpack-foundations/tree/main/packages/bpk-foundations-web) | [![npm version](https://badge.fury.io/js/%40skyscanner%2Fbpk-foundations-web.svg)](https://badge.fury.io/js/%40skyscanner%2Fbpk-foundations-web) |
99
99
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = exports.BREAKPOINTS = void 0;
7
7
  var _reactResponsive = _interopRequireDefault(require("react-responsive/dist/react-responsive"));
8
- var _base = _interopRequireDefault(require("@skyscanner/bpk-foundations-web/tokens/base.common"));
8
+ var _base = require("@skyscanner/bpk-foundations-web/tokens/base.es6");
9
9
  var _jsxRuntime = require("react/jsx-runtime");
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
11
  /*
@@ -29,16 +29,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
29
29
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
30
30
 
31
31
  const BREAKPOINTS = {
32
- SMALL_MOBILE: _base.default.breakpointQuerySmallMobile,
33
- MOBILE: _base.default.breakpointQueryMobile,
34
- SMALL_TABLET: _base.default.breakpointQuerySmallTablet,
35
- SMALL_TABLET_ONLY: _base.default.breakpointQuerySmallTabletOnly,
36
- TABLET: _base.default.breakpointQueryTablet,
37
- TABLET_ONLY: _base.default.breakpointQueryTabletOnly,
38
- ABOVE_MOBILE: _base.default.breakpointQueryAboveMobile,
39
- ABOVE_TABLET: _base.default.breakpointQueryAboveTablet,
40
- ABOVE_DESKTOP: _base.default.breakpointQueryAboveDesktop,
41
- DESKTOP_ONLY: _base.default.breakpointQueryDesktopOnly
32
+ SMALL_MOBILE: _base.breakpoints.breakpointQuerySmallMobile,
33
+ MOBILE: _base.breakpoints.breakpointQueryMobile,
34
+ SMALL_TABLET: _base.breakpoints.breakpointQuerySmallTablet,
35
+ SMALL_TABLET_ONLY: _base.breakpoints.breakpointQuerySmallTabletOnly,
36
+ TABLET: _base.breakpoints.breakpointQueryTablet,
37
+ TABLET_ONLY: _base.breakpoints.breakpointQueryTabletOnly,
38
+ ABOVE_MOBILE: _base.breakpoints.breakpointQueryAboveMobile,
39
+ ABOVE_TABLET: _base.breakpoints.breakpointQueryAboveTablet,
40
+ ABOVE_DESKTOP: _base.breakpoints.breakpointQueryAboveDesktop,
41
+ DESKTOP_ONLY: _base.breakpoints.breakpointQueryDesktopOnly
42
42
  };
43
43
  exports.BREAKPOINTS = BREAKPOINTS;
44
44
  const BpkBreakpoint = ({
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ /*
4
+ * Backpack - Skyscanner's Design System
5
+ *
6
+ * Copyright 2016 Skyscanner Ltd
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ */
20
+
21
+ // We disable eslint here as this package is listed as a peerDep so consumers are required to install this when using this package.
22
+ // eslint-disable-next-line import/no-unresolved
23
+ const nodeSass = require('node-sass');
24
+ module.exports = {
25
+ 'encodebase64($string)': str => {
26
+ const buffer = Buffer.from(str.getValue());
27
+ return nodeSass.types.String(buffer.toString('base64'));
28
+ }
29
+ };