@citygross/components 0.7.106 → 0.7.108

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.
Files changed (25) hide show
  1. package/build/@types/components/SearchSuggestionChip/SearchSuggestionChip.d.ts +9 -0
  2. package/build/@types/components/SearchSuggestionChip/SearchSuggestionChip.stories.d.ts +9 -0
  3. package/build/@types/components/SearchSuggestionChip/SearchSuggestionChip.styles.d.ts +7 -0
  4. package/build/@types/index.d.ts +1 -0
  5. package/build/cjs/components/src/components/AddressBlock/AddressBlock.js +1 -0
  6. package/build/cjs/components/src/components/AddressBlock/AddressBlock.js.map +1 -1
  7. package/build/cjs/components/src/components/SearchSuggestionChip/SearchSuggestionChip.js +18 -0
  8. package/build/cjs/components/src/components/SearchSuggestionChip/SearchSuggestionChip.js.map +1 -0
  9. package/build/cjs/components/src/components/SearchSuggestionChip/SearchSuggestionChip.styles.js +26 -0
  10. package/build/cjs/components/src/components/SearchSuggestionChip/SearchSuggestionChip.styles.js.map +1 -0
  11. package/build/cjs/components/src/components/WarningLabel/WarningLabel.js +1 -0
  12. package/build/cjs/components/src/components/WarningLabel/WarningLabel.js.map +1 -1
  13. package/build/cjs/components/src/index.js +2 -0
  14. package/build/cjs/components/src/index.js.map +1 -1
  15. package/build/es/components/src/components/AddressBlock/AddressBlock.js +1 -0
  16. package/build/es/components/src/components/AddressBlock/AddressBlock.js.map +1 -1
  17. package/build/es/components/src/components/SearchSuggestionChip/SearchSuggestionChip.js +10 -0
  18. package/build/es/components/src/components/SearchSuggestionChip/SearchSuggestionChip.js.map +1 -0
  19. package/build/es/components/src/components/SearchSuggestionChip/SearchSuggestionChip.styles.js +18 -0
  20. package/build/es/components/src/components/SearchSuggestionChip/SearchSuggestionChip.styles.js.map +1 -0
  21. package/build/es/components/src/components/WarningLabel/WarningLabel.js +1 -0
  22. package/build/es/components/src/components/WarningLabel/WarningLabel.js.map +1 -1
  23. package/build/es/components/src/index.js +1 -0
  24. package/build/es/components/src/index.js.map +1 -1
  25. package/package.json +2 -2
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export declare type TSearchSuggestionChip = {
3
+ text: String;
4
+ disabled?: boolean;
5
+ onClick: () => void;
6
+ hoverBackgroundColor?: string;
7
+ hoverBorderColor?: string;
8
+ };
9
+ export declare const SearchSuggestionChip: React.FunctionComponent<TSearchSuggestionChip>;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Story } from '@storybook/react';
3
+ import { TSearchSuggestionChip } from './SearchSuggestionChip';
4
+ declare const _default: {
5
+ component: React.FunctionComponent<TSearchSuggestionChip>;
6
+ title: string;
7
+ };
8
+ export default _default;
9
+ export declare const Default: Story<TSearchSuggestionChip>;
@@ -0,0 +1,7 @@
1
+ declare type TChip = {
2
+ disabled?: boolean;
3
+ hoverBackgroundColor?: string;
4
+ hoverBorderColor?: string;
5
+ };
6
+ export declare const SearchSuggestionChipWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TChip, never>;
7
+ export {};
@@ -70,3 +70,4 @@ export * from './components/SearchListItem/SearchListItem';
70
70
  export * from './components/MenuListItem/MenuListHeader';
71
71
  export * from './components/MenuListItem/MenuListItem';
72
72
  export * from './components/SlideInOutContainer/SlideInOutContainer';
73
+ export * from './components/SearchSuggestionChip/SearchSuggestionChip';
@@ -84,6 +84,7 @@ require('../Dropdown/Dropdown.styles.js');
84
84
  require('../SearchListItem/SearchListItem.styles.js');
85
85
  require('../MenuListItem/MenuListItem.styles.js');
86
86
  require('../SlideInOutContainer/SlideInOutContainer.styles.js');
87
+ require('../SearchSuggestionChip/SearchSuggestionChip.styles.js');
87
88
 
88
89
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
89
90
 
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var SearchSuggestionChip_styles = require('./SearchSuggestionChip.styles.js');
7
+
8
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
+
10
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
11
+
12
+ var SearchSuggestionChip = function (_a) {
13
+ var text = _a.text, disabled = _a.disabled, onClick = _a.onClick, hoverBackgroundColor = _a.hoverBackgroundColor, hoverBorderColor = _a.hoverBorderColor;
14
+ return (React__default["default"].createElement(SearchSuggestionChip_styles.SearchSuggestionChipWrapper, { onClick: disabled ? function () { } : onClick, disabled: disabled, hoverBackgroundColor: hoverBackgroundColor, hoverBorderColor: hoverBorderColor }, text));
15
+ };
16
+
17
+ exports.SearchSuggestionChip = SearchSuggestionChip;
18
+ //# sourceMappingURL=SearchSuggestionChip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchSuggestionChip.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _tslib = require('../../../../_virtual/_tslib.js');
6
+ var styled = require('styled-components');
7
+
8
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
+
10
+ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
11
+
12
+ var SearchSuggestionChipWrapper = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n font-size: ", "px;\n border: 1px solid ", ";\n background-color: ", ";\n padding: ", ";\n margin: 0\n ", " 0;\n border-radius: ", "px;\n cursor: ", ";\n pointer-events: ", ";\n\n :hover {\n background-color: ", ";\n border-color: ", ";\n }\n"], ["\n display: flex;\n font-size: ", "px;\n border: 1px solid ", ";\n background-color: ", ";\n padding: ", ";\n margin: 0\n ", " 0;\n border-radius: ", "px;\n cursor: ", ";\n pointer-events: ", ";\n\n :hover {\n background-color: ", ";\n border-color: ", ";\n }\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s1; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white; }, function (props) { var _a, _b; return "".concat((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs, "px ").concat((_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs, "px"); }, function (props) { var _a, _b; return "".concat((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs, "px ").concat((_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs, "px"); }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { return (props.disabled ? 'default' : 'pointer'); }, function (props) { return (props.disabled ? 'none' : 'all'); }, function (props) {
13
+ var _a;
14
+ return props.hoverBackgroundColor
15
+ ? props.hoverBackgroundColor
16
+ : (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.yellowLighter;
17
+ }, function (props) {
18
+ var _a;
19
+ return props.hoverBorderColor
20
+ ? props.hoverBorderColor
21
+ : (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.yellowLight;
22
+ });
23
+ var templateObject_1;
24
+
25
+ exports.SearchSuggestionChipWrapper = SearchSuggestionChipWrapper;
26
+ //# sourceMappingURL=SearchSuggestionChip.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchSuggestionChip.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -84,6 +84,7 @@ require('../Dropdown/Dropdown.styles.js');
84
84
  require('../SearchListItem/SearchListItem.styles.js');
85
85
  require('../MenuListItem/MenuListItem.styles.js');
86
86
  require('../SlideInOutContainer/SlideInOutContainer.styles.js');
87
+ require('../SearchSuggestionChip/SearchSuggestionChip.styles.js');
87
88
 
88
89
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
89
90
 
@@ -1 +1 @@
1
- {"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -75,6 +75,7 @@ var SearchListItem = require('./components/SearchListItem/SearchListItem.js');
75
75
  var MenuListHeader = require('./components/MenuListItem/MenuListHeader.js');
76
76
  var MenuListItem = require('./components/MenuListItem/MenuListItem.js');
77
77
  var SlideInOutContainer = require('./components/SlideInOutContainer/SlideInOutContainer.js');
78
+ var SearchSuggestionChip = require('./components/SearchSuggestionChip/SearchSuggestionChip.js');
78
79
 
79
80
 
80
81
 
@@ -182,4 +183,5 @@ exports.SearchListItem = SearchListItem.SearchListItem;
182
183
  exports.MenuListHeader = MenuListHeader.MenuListHeader;
183
184
  exports.MenuListItem = MenuListItem.MenuListItem;
184
185
  exports.SlideInOutContainer = SlideInOutContainer.SlideInOutContainer;
186
+ exports.SearchSuggestionChip = SearchSuggestionChip.SearchSuggestionChip;
185
187
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -80,6 +80,7 @@ import '../Dropdown/Dropdown.styles.js';
80
80
  import '../SearchListItem/SearchListItem.styles.js';
81
81
  import '../MenuListItem/MenuListItem.styles.js';
82
82
  import '../SlideInOutContainer/SlideInOutContainer.styles.js';
83
+ import '../SearchSuggestionChip/SearchSuggestionChip.styles.js';
83
84
 
84
85
  function AddressBlock(_a) {
85
86
  var _b = _a.deliverOption, deliverOption = _b === void 0 ? 'Address' : _b, icon = _a.icon, storeName = _a.storeName, customerName = _a.customerName, street = _a.street, zipCode = _a.zipCode, city = _a.city, doorCode = _a.doorCode, floor = _a.floor, deliveryInstructions = _a.deliveryInstructions, xsSpacing = _a.xsSpacing, lgSpacing = _a.lgSpacing;
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"AddressBlock.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { SearchSuggestionChipWrapper } from './SearchSuggestionChip.styles.js';
3
+
4
+ var SearchSuggestionChip = function (_a) {
5
+ var text = _a.text, disabled = _a.disabled, onClick = _a.onClick, hoverBackgroundColor = _a.hoverBackgroundColor, hoverBorderColor = _a.hoverBorderColor;
6
+ return (React.createElement(SearchSuggestionChipWrapper, { onClick: disabled ? function () { } : onClick, disabled: disabled, hoverBackgroundColor: hoverBackgroundColor, hoverBorderColor: hoverBorderColor }, text));
7
+ };
8
+
9
+ export { SearchSuggestionChip };
10
+ //# sourceMappingURL=SearchSuggestionChip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchSuggestionChip.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -0,0 +1,18 @@
1
+ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
2
+ import styled from 'styled-components';
3
+
4
+ var SearchSuggestionChipWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n font-size: ", "px;\n border: 1px solid ", ";\n background-color: ", ";\n padding: ", ";\n margin: 0\n ", " 0;\n border-radius: ", "px;\n cursor: ", ";\n pointer-events: ", ";\n\n :hover {\n background-color: ", ";\n border-color: ", ";\n }\n"], ["\n display: flex;\n font-size: ", "px;\n border: 1px solid ", ";\n background-color: ", ";\n padding: ", ";\n margin: 0\n ", " 0;\n border-radius: ", "px;\n cursor: ", ";\n pointer-events: ", ";\n\n :hover {\n background-color: ", ";\n border-color: ", ";\n }\n"])), function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.size.s1; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.light; }, function (props) { var _a; return (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.white; }, function (props) { var _a, _b; return "".concat((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xxs, "px ").concat((_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs, "px"); }, function (props) { var _a, _b; return "".concat((_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs, "px ").concat((_b = props.theme.spacings) === null || _b === void 0 ? void 0 : _b.xs, "px"); }, function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.md; }, function (props) { return (props.disabled ? 'default' : 'pointer'); }, function (props) { return (props.disabled ? 'none' : 'all'); }, function (props) {
5
+ var _a;
6
+ return props.hoverBackgroundColor
7
+ ? props.hoverBackgroundColor
8
+ : (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.yellowLighter;
9
+ }, function (props) {
10
+ var _a;
11
+ return props.hoverBorderColor
12
+ ? props.hoverBorderColor
13
+ : (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.yellowLight;
14
+ });
15
+ var templateObject_1;
16
+
17
+ export { SearchSuggestionChipWrapper };
18
+ //# sourceMappingURL=SearchSuggestionChip.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchSuggestionChip.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
@@ -80,6 +80,7 @@ import '../Dropdown/Dropdown.styles.js';
80
80
  import '../SearchListItem/SearchListItem.styles.js';
81
81
  import '../MenuListItem/MenuListItem.styles.js';
82
82
  import '../SlideInOutContainer/SlideInOutContainer.styles.js';
83
+ import '../SearchSuggestionChip/SearchSuggestionChip.styles.js';
83
84
 
84
85
  function WarningLabel(_a) {
85
86
  var children = _a.children, background = _a.background, toolTip = _a.toolTip;
@@ -1 +1 @@
1
- {"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"WarningLabel.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -71,4 +71,5 @@ export { SearchListItem } from './components/SearchListItem/SearchListItem.js';
71
71
  export { MenuListHeader } from './components/MenuListItem/MenuListHeader.js';
72
72
  export { MenuListItem } from './components/MenuListItem/MenuListItem.js';
73
73
  export { SlideInOutContainer } from './components/SlideInOutContainer/SlideInOutContainer.js';
74
+ export { SearchSuggestionChip } from './components/SearchSuggestionChip/SearchSuggestionChip.js';
74
75
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components",
3
- "version": "0.7.106",
3
+ "version": "0.7.108",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./build/cjs/components/src/index.js",
@@ -71,5 +71,5 @@
71
71
  "moment": "^2.29.1",
72
72
  "react-loading-skeleton": "^2.2.0"
73
73
  },
74
- "gitHead": "f21f3a6b4d4be976c162c2a49fc5bf7545c441ea"
74
+ "gitHead": "2591fd960602c98533c3aefdfa72ff5c248308d6"
75
75
  }