@autoguru/overdrive 4.17.3 → 4.18.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../lib/components/Image/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,UAAU,KAAM,SAAQ,cAAc,CAAC,OAAO,eAAe,CAAC;IAI7D,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,KAAK,EAAE,iBAAiB,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../lib/components/Image/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,UAAU,KAAM,SAAQ,cAAc,CAAC,OAAO,eAAe,CAAC;IAI7D,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,KAAK,EAAE,iBAAiB,CAAC,KAAK,CASzC,CAAC;AAEH,eAAe,KAAK,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
const _excluded = ["unoptimised"];
|
|
5
|
+
const _excluded = ["unoptimised", "imageWidth"];
|
|
6
6
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
7
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
8
|
import * as React from 'react';
|
|
@@ -12,9 +12,12 @@ import { SimpleImage } from "./SimpleImage.js";
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
export const Image = _ref => {
|
|
14
14
|
let {
|
|
15
|
-
unoptimised = false
|
|
15
|
+
unoptimised = false,
|
|
16
|
+
imageWidth
|
|
16
17
|
} = _ref,
|
|
17
18
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
-
return useImageServer() && !unoptimised ? _jsx(ResponsiveImage, _objectSpread({
|
|
19
|
+
return useImageServer() && !unoptimised ? _jsx(ResponsiveImage, _objectSpread({
|
|
20
|
+
imageWidth: imageWidth
|
|
21
|
+
}, props)) : _jsx(SimpleImage, _objectSpread({}, props));
|
|
19
22
|
};
|
|
20
23
|
export default Image;
|
package/dist/themes/makeTheme.js
CHANGED
|
@@ -7,7 +7,7 @@ export const breakpoints = {
|
|
|
7
7
|
mobile: '0px',
|
|
8
8
|
tablet: '768px',
|
|
9
9
|
desktop: '1024px',
|
|
10
|
-
largeDesktop: '
|
|
10
|
+
largeDesktop: '1920px'
|
|
11
11
|
};
|
|
12
12
|
export const makeRuntimeTokens = function () {
|
|
13
13
|
let runtimeBreakpoints = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : breakpoints;
|