@citygross/components 0.7.35 → 0.7.36
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/build/@types/index.d.ts +1 -0
- package/build/cjs/components/src/components/BackButton/BackButton.js +24 -0
- package/build/cjs/components/src/components/BackButton/BackButton.js.map +1 -0
- package/build/cjs/components/src/components/BackButton/BackButton.styles.js +18 -0
- package/build/cjs/components/src/components/BackButton/BackButton.styles.js.map +1 -0
- package/build/cjs/components/src/index.js +2 -0
- package/build/cjs/components/src/index.js.map +1 -1
- package/build/es/components/src/components/BackButton/BackButton.js +16 -0
- package/build/es/components/src/components/BackButton/BackButton.js.map +1 -0
- package/build/es/components/src/components/BackButton/BackButton.styles.js +9 -0
- package/build/es/components/src/components/BackButton/BackButton.styles.js.map +1 -0
- package/build/es/components/src/index.js +1 -0
- package/build/es/components/src/index.js.map +1 -1
- package/package.json +2 -2
package/build/@types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './components/Header/Header';
|
|
|
5
5
|
export * from './components/Badge/Badge';
|
|
6
6
|
export * from './components/Box/Box';
|
|
7
7
|
export * from './components/Button';
|
|
8
|
+
export * from './components/BackButton/BackButton';
|
|
8
9
|
export * from './components/CartItemSummary/CartItemSummary';
|
|
9
10
|
export * from './components/CartSummary/CartSummary';
|
|
10
11
|
export * from './components/CustomerInfoBlock/CustomerInfoBlock';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var BackButton_styles = require('./BackButton.styles.js');
|
|
7
|
+
var Icon = require('@citygross/icons');
|
|
8
|
+
var typography = require('@citygross/typography');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
+
|
|
14
|
+
function BackButton(_a) {
|
|
15
|
+
var label = _a.label, color = _a.color, _b = _a.icon, icon = _b === void 0 ? React__default['default'].createElement(Icon.Icons.ChevronLeft, null) : _b, onClick = _a.onClick, children = _a.children;
|
|
16
|
+
return (React__default['default'].createElement(BackButton_styles.BackButtonFlex, { onClick: onClick },
|
|
17
|
+
icon,
|
|
18
|
+
React__default['default'].createElement(BackButton_styles.BackText, null,
|
|
19
|
+
label && React__default['default'].createElement(typography.BodyText, { color: color }, label),
|
|
20
|
+
children)));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
exports.BackButton = BackButton;
|
|
24
|
+
//# sourceMappingURL=BackButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 BackButtonFlex = styled__default['default'].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", "px;\n cursor: pointer;\n"], ["\n display: flex;\n align-items: center;\n gap: ", "px;\n cursor: pointer;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
13
|
+
var BackText = styled__default['default'].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n margin-top: 2px;\n"], ["\n margin-top: 2px;\n"])));
|
|
14
|
+
var templateObject_1, templateObject_2;
|
|
15
|
+
|
|
16
|
+
exports.BackButtonFlex = BackButtonFlex;
|
|
17
|
+
exports.BackText = BackText;
|
|
18
|
+
//# sourceMappingURL=BackButton.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackButton.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
|
@@ -10,6 +10,7 @@ var Badge = require('./components/Badge/Badge.js');
|
|
|
10
10
|
var Box = require('./components/Box/Box.js');
|
|
11
11
|
var IconButton = require('./components/Button/IconButton.js');
|
|
12
12
|
var PaginationButton = require('./components/Button/PaginationButton.js');
|
|
13
|
+
var BackButton = require('./components/BackButton/BackButton.js');
|
|
13
14
|
var CartItemSummary = require('./components/CartItemSummary/CartItemSummary.js');
|
|
14
15
|
var CartSummary = require('./components/CartSummary/CartSummary.js');
|
|
15
16
|
var CustomerInfoBlock = require('./components/CustomerInfoBlock/CustomerInfoBlock.js');
|
|
@@ -76,6 +77,7 @@ exports.Badge = Badge.Badge;
|
|
|
76
77
|
exports.Box = Box.Box;
|
|
77
78
|
exports.IconButton = IconButton.IconButton;
|
|
78
79
|
exports.PaginationButton = PaginationButton.PaginationButton;
|
|
80
|
+
exports.BackButton = BackButton.BackButton;
|
|
79
81
|
exports.CartItemSummary = CartItemSummary.CartItemSummary;
|
|
80
82
|
exports.CartSummary = CartSummary.CartSummary;
|
|
81
83
|
exports.CustomerInfoBlock = CustomerInfoBlock.CustomerInfoBlock;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BackButtonFlex, BackText } from './BackButton.styles.js';
|
|
3
|
+
import { Icons } from '@citygross/icons';
|
|
4
|
+
import { BodyText } from '@citygross/typography';
|
|
5
|
+
|
|
6
|
+
function BackButton(_a) {
|
|
7
|
+
var label = _a.label, color = _a.color, _b = _a.icon, icon = _b === void 0 ? React.createElement(Icons.ChevronLeft, null) : _b, onClick = _a.onClick, children = _a.children;
|
|
8
|
+
return (React.createElement(BackButtonFlex, { onClick: onClick },
|
|
9
|
+
icon,
|
|
10
|
+
React.createElement(BackText, null,
|
|
11
|
+
label && React.createElement(BodyText, { color: color }, label),
|
|
12
|
+
children)));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { BackButton };
|
|
16
|
+
//# sourceMappingURL=BackButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
var BackButtonFlex = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: ", "px;\n cursor: pointer;\n"], ["\n display: flex;\n align-items: center;\n gap: ", "px;\n cursor: pointer;\n"])), function (props) { var _a; return (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs; });
|
|
5
|
+
var BackText = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-top: 2px;\n"], ["\n margin-top: 2px;\n"])));
|
|
6
|
+
var templateObject_1, templateObject_2;
|
|
7
|
+
|
|
8
|
+
export { BackButtonFlex, BackText };
|
|
9
|
+
//# sourceMappingURL=BackButton.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackButton.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -6,6 +6,7 @@ export { Badge } from './components/Badge/Badge.js';
|
|
|
6
6
|
export { Box } from './components/Box/Box.js';
|
|
7
7
|
export { IconButton } from './components/Button/IconButton.js';
|
|
8
8
|
export { PaginationButton } from './components/Button/PaginationButton.js';
|
|
9
|
+
export { BackButton } from './components/BackButton/BackButton.js';
|
|
9
10
|
export { CartItemSummary } from './components/CartItemSummary/CartItemSummary.js';
|
|
10
11
|
export { CartSummary } from './components/CartSummary/CartSummary.js';
|
|
11
12
|
export { CustomerInfoBlock } from './components/CustomerInfoBlock/CustomerInfoBlock.js';
|
|
@@ -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.
|
|
3
|
+
"version": "0.7.36",
|
|
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": "
|
|
74
|
+
"gitHead": "85cf5e03a360883c2119b3cd474a93890eef898b"
|
|
75
75
|
}
|