@citygross/components 0.8.105 → 0.8.107

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,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  declare type TSkipTo = {
3
3
  elementClick?: boolean;
4
4
  selector: string;
5
5
  text: string;
6
- };
7
- export declare const SkipTo: ({ elementClick, selector, text }: TSkipTo) => JSX.Element;
6
+ } & React.AnchorHTMLAttributes<HTMLAnchorElement>;
7
+ export declare const SkipTo: ({ elementClick, selector, text, ...props }: TSkipTo) => JSX.Element;
8
8
  export {};
@@ -2,11 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var _tslib = require('../../../../_virtual/_tslib.js');
6
5
  var React = require('react');
7
6
  var ListItem = require('../ListItem/ListItem.js');
8
7
  var SearchListItem_styles = require('./SearchListItem.styles.js');
9
- var PriceTag = require('../PriceTag/PriceTag.js');
10
8
  var PriceTag_types = require('../PriceTag/PriceTag.types.js');
11
9
 
12
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -23,8 +21,6 @@ var SearchListItem = function (_a) {
23
21
  marking.image)); }))),
24
22
  React__default["default"].createElement(SearchListItem_styles.ListItemWrapper, null,
25
23
  React__default["default"].createElement(ListItem.ListItem, { fallBackImage: fallBackImage, item: item, loading: loading, showPriceStripe: showPriceStripe })),
26
- React__default["default"].createElement(SearchListItem_styles.PriceTagWrapper, null,
27
- React__default["default"].createElement(PriceTag.PriceTag, _tslib.__assign({}, priceTag, { size: PriceTag_types.EPriceSize.SMALL }))),
28
24
  React__default["default"].createElement(SearchListItem_styles.ButtonWrapper, null,
29
25
  React__default["default"].createElement(SearchListItem_styles.MaxWrapper, { showMax: showMax }, "Max antal uppn\u00E5tt"),
30
26
  button)));
@@ -1 +1 @@
1
- {"version":3,"file":"SearchListItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"SearchListItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -35,7 +35,7 @@ var SearchListItemWrapper = styled__default["default"].div(templateObject_1 || (
35
35
  return (_b = theme.spacings) === null || _b === void 0 ? void 0 : _b.sm2;
36
36
  });
37
37
  var ListItemWrapper = styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n grid-area: ListItemWrapper;\n"], ["\n grid-area: ListItemWrapper;\n"])));
38
- var PriceTagWrapper = styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n grid-area: PriceTagWrapper;\n display: flex;\n justify-content: flex-end;\n\n @media (min-width: ", "px) {\n justify-content: flex-end;\n }\n"], ["\n grid-area: PriceTagWrapper;\n display: flex;\n justify-content: flex-end;\n\n @media (min-width: ", "px) {\n justify-content: flex-end;\n }\n"])), function (_a) {
38
+ styled__default["default"].div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n grid-area: PriceTagWrapper;\n display: flex;\n justify-content: flex-end;\n\n @media (min-width: ", "px) {\n justify-content: flex-end;\n }\n"], ["\n grid-area: PriceTagWrapper;\n display: flex;\n justify-content: flex-end;\n\n @media (min-width: ", "px) {\n justify-content: flex-end;\n }\n"])), function (_a) {
39
39
  var _b;
40
40
  var theme = _a.theme;
41
41
  return (_b = theme.constants) === null || _b === void 0 ? void 0 : _b.headerBreakpoint;
@@ -130,7 +130,6 @@ exports.ListItemWrapper = ListItemWrapper;
130
130
  exports.Marking = Marking;
131
131
  exports.MarkingWrapper = MarkingWrapper;
132
132
  exports.MaxWrapper = MaxWrapper;
133
- exports.PriceTagWrapper = PriceTagWrapper;
134
133
  exports.SearchListItemWrapper = SearchListItemWrapper;
135
134
  exports.ToolTip = ToolTip;
136
135
  //# sourceMappingURL=SearchListItem.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SearchListItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"SearchListItem.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var _tslib = require('../../../../_virtual/_tslib.js');
5
6
  var React = require('react');
6
7
  var SkipTo_styles = require('./SkipTo.styles.js');
7
8
 
@@ -10,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
11
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
11
12
 
12
13
  var SkipTo = function (_a) {
13
- var _b = _a.elementClick, elementClick = _b === void 0 ? false : _b, selector = _a.selector, text = _a.text;
14
+ var _b = _a.elementClick, elementClick = _b === void 0 ? false : _b, selector = _a.selector, text = _a.text, props = _tslib.__rest(_a, ["elementClick", "selector", "text"]);
14
15
  var handleSkip = function (e) {
15
16
  e.preventDefault();
16
17
  var element = document.querySelector(selector);
@@ -20,7 +21,7 @@ var SkipTo = function (_a) {
20
21
  elementClick && element.click();
21
22
  }
22
23
  };
23
- return (React__default["default"].createElement(SkipTo_styles.SkipLink, { href: "#", onClick: handleSkip }, text));
24
+ return (React__default["default"].createElement(SkipTo_styles.SkipLink, _tslib.__assign({ href: "#", onClick: handleSkip }, props), text));
24
25
  };
25
26
 
26
27
  exports.SkipTo = SkipTo;
@@ -1 +1 @@
1
- {"version":3,"file":"SkipTo.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"SkipTo.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,9 +1,7 @@
1
- import { __assign } from '../../../../_virtual/_tslib.js';
2
1
  import React from 'react';
3
2
  import { ListItem } from '../ListItem/ListItem.js';
4
- import { SearchListItemWrapper, MarkingWrapper, Marking, ToolTip, ListItemWrapper, PriceTagWrapper, ButtonWrapper, MaxWrapper } from './SearchListItem.styles.js';
5
- import { PriceTag } from '../PriceTag/PriceTag.js';
6
- import { EPriceVariant, EPriceSize } from '../PriceTag/PriceTag.types.js';
3
+ import { SearchListItemWrapper, MarkingWrapper, Marking, ToolTip, ListItemWrapper, ButtonWrapper, MaxWrapper } from './SearchListItem.styles.js';
4
+ import { EPriceVariant } from '../PriceTag/PriceTag.types.js';
7
5
 
8
6
  var SearchListItem = function (_a) {
9
7
  var _b;
@@ -15,8 +13,6 @@ var SearchListItem = function (_a) {
15
13
  marking.image)); }))),
16
14
  React.createElement(ListItemWrapper, null,
17
15
  React.createElement(ListItem, { fallBackImage: fallBackImage, item: item, loading: loading, showPriceStripe: showPriceStripe })),
18
- React.createElement(PriceTagWrapper, null,
19
- React.createElement(PriceTag, __assign({}, priceTag, { size: EPriceSize.SMALL }))),
20
16
  React.createElement(ButtonWrapper, null,
21
17
  React.createElement(MaxWrapper, { showMax: showMax }, "Max antal uppn\u00E5tt"),
22
18
  button)));
@@ -1 +1 @@
1
- {"version":3,"file":"SearchListItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"SearchListItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
@@ -27,7 +27,7 @@ var SearchListItemWrapper = styled.div(templateObject_1 || (templateObject_1 = _
27
27
  return (_b = theme.spacings) === null || _b === void 0 ? void 0 : _b.sm2;
28
28
  });
29
29
  var ListItemWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n grid-area: ListItemWrapper;\n"], ["\n grid-area: ListItemWrapper;\n"])));
30
- var PriceTagWrapper = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n grid-area: PriceTagWrapper;\n display: flex;\n justify-content: flex-end;\n\n @media (min-width: ", "px) {\n justify-content: flex-end;\n }\n"], ["\n grid-area: PriceTagWrapper;\n display: flex;\n justify-content: flex-end;\n\n @media (min-width: ", "px) {\n justify-content: flex-end;\n }\n"])), function (_a) {
30
+ styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n grid-area: PriceTagWrapper;\n display: flex;\n justify-content: flex-end;\n\n @media (min-width: ", "px) {\n justify-content: flex-end;\n }\n"], ["\n grid-area: PriceTagWrapper;\n display: flex;\n justify-content: flex-end;\n\n @media (min-width: ", "px) {\n justify-content: flex-end;\n }\n"])), function (_a) {
31
31
  var _b;
32
32
  var theme = _a.theme;
33
33
  return (_b = theme.constants) === null || _b === void 0 ? void 0 : _b.headerBreakpoint;
@@ -117,5 +117,5 @@ var MaxWrapper = styled.div(templateObject_8 || (templateObject_8 = __makeTempla
117
117
  });
118
118
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
119
119
 
120
- export { ButtonWrapper, ListItemWrapper, Marking, MarkingWrapper, MaxWrapper, PriceTagWrapper, SearchListItemWrapper, ToolTip };
120
+ export { ButtonWrapper, ListItemWrapper, Marking, MarkingWrapper, MaxWrapper, SearchListItemWrapper, ToolTip };
121
121
  //# sourceMappingURL=SearchListItem.styles.js.map
@@ -1,8 +1,9 @@
1
+ import { __rest, __assign } from '../../../../_virtual/_tslib.js';
1
2
  import React from 'react';
2
3
  import { SkipLink } from './SkipTo.styles.js';
3
4
 
4
5
  var SkipTo = function (_a) {
5
- var _b = _a.elementClick, elementClick = _b === void 0 ? false : _b, selector = _a.selector, text = _a.text;
6
+ var _b = _a.elementClick, elementClick = _b === void 0 ? false : _b, selector = _a.selector, text = _a.text, props = __rest(_a, ["elementClick", "selector", "text"]);
6
7
  var handleSkip = function (e) {
7
8
  e.preventDefault();
8
9
  var element = document.querySelector(selector);
@@ -12,7 +13,7 @@ var SkipTo = function (_a) {
12
13
  elementClick && element.click();
13
14
  }
14
15
  };
15
- return (React.createElement(SkipLink, { href: "#", onClick: handleSkip }, text));
16
+ return (React.createElement(SkipLink, __assign({ href: "#", onClick: handleSkip }, props), text));
16
17
  };
17
18
 
18
19
  export { SkipTo };
@@ -1 +1 @@
1
- {"version":3,"file":"SkipTo.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"SkipTo.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components",
3
- "version": "0.8.105",
3
+ "version": "0.8.107",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./build/cjs/components/src/index.js",
@@ -76,5 +76,5 @@
76
76
  "react-slick": "^0.30.1",
77
77
  "slick-carousel": "^1.8.1"
78
78
  },
79
- "gitHead": "9f8ed7f9773d18971959c0046fc179353bef3ce5"
79
+ "gitHead": "458faf628a6511bcc9dc72ff6e4225aa43afd63c"
80
80
  }