@citygross/components 0.8.129 → 0.8.130
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/components/CgButton/CgButton.types.d.ts +0 -1
- package/build/@types/index.d.ts +1 -2
- package/build/cjs/components/src/components/CgButton/CgButton.styles.js +1 -2
- package/build/cjs/components/src/components/CgButton/CgButton.styles.js.map +1 -1
- package/build/cjs/components/src/components/CgButton/{CgReactRouterLink.js → ReactRouterLinkAsButton.js} +1 -1
- package/build/cjs/components/src/components/CgButton/ReactRouterLinkAsButton.js.map +1 -0
- package/build/cjs/components/src/index.js +2 -4
- package/build/cjs/components/src/index.js.map +1 -1
- package/build/es/components/src/components/CgButton/CgButton.styles.js +2 -2
- package/build/es/components/src/components/CgButton/{CgReactRouterLink.js → ReactRouterLinkAsButton.js} +1 -1
- package/build/es/components/src/components/CgButton/ReactRouterLinkAsButton.js.map +1 -0
- package/build/es/components/src/index.js +1 -2
- package/build/es/components/src/index.js.map +1 -1
- package/package.json +2 -2
- package/build/@types/components/CgButton/CgLinkAsButton.d.ts +0 -3
- package/build/cjs/components/src/components/CgButton/CgLinkAsButton.js +0 -22
- package/build/cjs/components/src/components/CgButton/CgLinkAsButton.js.map +0 -1
- package/build/cjs/components/src/components/CgButton/CgReactRouterLink.js.map +0 -1
- package/build/es/components/src/components/CgButton/CgLinkAsButton.js +0 -14
- package/build/es/components/src/components/CgButton/CgLinkAsButton.js.map +0 -1
- package/build/es/components/src/components/CgButton/CgReactRouterLink.js.map +0 -1
- /package/build/@types/components/CgButton/{CgReactRouterLink.d.ts → ReactRouterLinkAsButton.d.ts} +0 -0
|
@@ -23,7 +23,6 @@ export declare type TCgButtonRoot = {
|
|
|
23
23
|
variant?: EButtonVariant;
|
|
24
24
|
};
|
|
25
25
|
export declare type TCgButton = TCgButtonRoot & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
26
|
-
export declare type TCgLinkAsButton = TCgButtonRoot & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
27
26
|
export declare type TCgReactRouterLinkAsButton = TCgButtonRoot & LinkProps;
|
|
28
27
|
export declare type TCgButtonStyle = Omit<TCgButtonRoot, 'children' | 'loading' | 'variant'> & TButtonSizeAttributes & TButtonVariantAttributes;
|
|
29
28
|
export declare type TButtonSizeAttributes = {
|
package/build/@types/index.d.ts
CHANGED
|
@@ -12,8 +12,7 @@ export * from './components/CartItemSummary/CartItemSummary';
|
|
|
12
12
|
export * from './components/CartSubTotal/CartSubTotal';
|
|
13
13
|
export * from './components/CartSummary/CartSummary';
|
|
14
14
|
export * from './components/CgButton/CgButton';
|
|
15
|
-
export * from './components/CgButton/
|
|
16
|
-
export * from './components/CgButton/CgLinkAsButton';
|
|
15
|
+
export * from './components/CgButton/ReactRouterLinkAsButton';
|
|
17
16
|
export * from './components/CgButton/CgButton.types';
|
|
18
17
|
export * from './components/Chips/Chip';
|
|
19
18
|
export * from './components/Collapsable/Collapsable';
|
|
@@ -63,11 +63,10 @@ var Button = styled__default["default"].button(templateObject_2 || (templateObje
|
|
|
63
63
|
var backgroundDisabled = _a.backgroundDisabled;
|
|
64
64
|
return backgroundDisabled;
|
|
65
65
|
}, (_e = designTokens.theme.palette) === null || _e === void 0 ? void 0 : _e.placeholder);
|
|
66
|
-
|
|
66
|
+
styled__default["default"].a(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n ", "\n text-decoration: none;\n"], ["\n ", "\n text-decoration: none;\n"])), sharedButtonStyles);
|
|
67
67
|
var CgReactRouterLinkAsButton = styled__default["default"](reactRouterDom.Link)(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n ", "\n text-decoration: none;\n"], ["\n ", "\n text-decoration: none;\n"])), sharedButtonStyles);
|
|
68
68
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
69
69
|
|
|
70
70
|
exports.Button = Button;
|
|
71
71
|
exports.CgReactRouterLinkAsButton = CgReactRouterLinkAsButton;
|
|
72
|
-
exports.LinkAsButton = LinkAsButton;
|
|
73
72
|
//# sourceMappingURL=CgButton.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CgButton.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CgButton.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactRouterLinkAsButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -19,8 +19,7 @@ var CartItemSummary = require('./components/CartItemSummary/CartItemSummary.js')
|
|
|
19
19
|
var CartSubTotal = require('./components/CartSubTotal/CartSubTotal.js');
|
|
20
20
|
var CartSummary = require('./components/CartSummary/CartSummary.js');
|
|
21
21
|
var CgButton = require('./components/CgButton/CgButton.js');
|
|
22
|
-
var
|
|
23
|
-
var CgLinkAsButton = require('./components/CgButton/CgLinkAsButton.js');
|
|
22
|
+
var ReactRouterLinkAsButton = require('./components/CgButton/ReactRouterLinkAsButton.js');
|
|
24
23
|
var CgButton_types = require('./components/CgButton/CgButton.types.js');
|
|
25
24
|
var Chip = require('./components/Chips/Chip.js');
|
|
26
25
|
var Collapsable = require('./components/Collapsable/Collapsable.js');
|
|
@@ -130,8 +129,7 @@ Object.defineProperty(exports, 'ECartSubTotalTypes', {
|
|
|
130
129
|
});
|
|
131
130
|
exports.CartSummary = CartSummary.CartSummary;
|
|
132
131
|
exports.CgButton = CgButton.CgButton;
|
|
133
|
-
exports.CgReactRouterLinkAsButton =
|
|
134
|
-
exports.CgLinkAsButton = CgLinkAsButton.CgLinkAsButton;
|
|
132
|
+
exports.CgReactRouterLinkAsButton = ReactRouterLinkAsButton.CgReactRouterLinkAsButton;
|
|
135
133
|
Object.defineProperty(exports, 'EButtonSize', {
|
|
136
134
|
enumerable: true,
|
|
137
135
|
get: function () { return CgButton_types.EButtonSize; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -55,9 +55,9 @@ var Button = styled.button(templateObject_2 || (templateObject_2 = __makeTemplat
|
|
|
55
55
|
var backgroundDisabled = _a.backgroundDisabled;
|
|
56
56
|
return backgroundDisabled;
|
|
57
57
|
}, (_e = theme.palette) === null || _e === void 0 ? void 0 : _e.placeholder);
|
|
58
|
-
|
|
58
|
+
styled.a(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n text-decoration: none;\n"], ["\n ", "\n text-decoration: none;\n"])), sharedButtonStyles);
|
|
59
59
|
var CgReactRouterLinkAsButton = styled(Link)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", "\n text-decoration: none;\n"], ["\n ", "\n text-decoration: none;\n"])), sharedButtonStyles);
|
|
60
60
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
61
61
|
|
|
62
|
-
export { Button, CgReactRouterLinkAsButton
|
|
62
|
+
export { Button, CgReactRouterLinkAsButton };
|
|
63
63
|
//# sourceMappingURL=CgButton.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactRouterLinkAsButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -15,8 +15,7 @@ export { CartItemSummary } from './components/CartItemSummary/CartItemSummary.js
|
|
|
15
15
|
export { CartSubTotal, ECartSubTotalTypes } from './components/CartSubTotal/CartSubTotal.js';
|
|
16
16
|
export { CartSummary } from './components/CartSummary/CartSummary.js';
|
|
17
17
|
export { CgButton } from './components/CgButton/CgButton.js';
|
|
18
|
-
export { CgReactRouterLinkAsButton } from './components/CgButton/
|
|
19
|
-
export { CgLinkAsButton } from './components/CgButton/CgLinkAsButton.js';
|
|
18
|
+
export { CgReactRouterLinkAsButton } from './components/CgButton/ReactRouterLinkAsButton.js';
|
|
20
19
|
export { EButtonSize, EButtonVariant } from './components/CgButton/CgButton.types.js';
|
|
21
20
|
export { Chip } from './components/Chips/Chip.js';
|
|
22
21
|
export { Collapsable } from './components/Collapsable/Collapsable.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.8.
|
|
3
|
+
"version": "0.8.130",
|
|
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": "
|
|
79
|
+
"gitHead": "38b80d11eb0897a765556fafee90ba0963f185d7"
|
|
80
80
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var _tslib = require('../../../../_virtual/_tslib.js');
|
|
6
|
-
var React = require('react');
|
|
7
|
-
var button = require('../../helpers/button.js');
|
|
8
|
-
var CgButton_types = require('./CgButton.types.js');
|
|
9
|
-
var CgButton_styles = require('./CgButton.styles.js');
|
|
10
|
-
|
|
11
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
-
|
|
13
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
|
-
|
|
15
|
-
var CgLinkAsButton = function (_a) {
|
|
16
|
-
var children = _a.children, _b = _a.size, size = _b === void 0 ? CgButton_types.EButtonSize.medium : _b, _c = _a.variant, variant = _c === void 0 ? CgButton_types.EButtonVariant.primary : _c, props = _tslib.__rest(_a, ["children", "size", "variant"]);
|
|
17
|
-
var _d = button.getButtonAttributes(size, variant), sizeAttributes = _d.sizeAttributes, variantAttributes = _d.variantAttributes;
|
|
18
|
-
return (React__default["default"].createElement(CgButton_styles.LinkAsButton, _tslib.__assign({ backgroundColor: variantAttributes.backgroundColor, backgroundHover: variantAttributes.backgroundHover, backgroundDisabled: variantAttributes.backgroundDisabled, backgroundActive: variantAttributes.backgroundActive, border: variantAttributes.border, boxShadow: props.boxShadow, circle: props.circle, fontColor: variantAttributes.fontColor, fontSize: sizeAttributes.fontSize, height: sizeAttributes.height, fullWidth: props.fullWidth, paddingX: sizeAttributes.paddingX, paddingY: sizeAttributes.paddingY, rounded: props.rounded, size: size }, props), children));
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
exports.CgLinkAsButton = CgLinkAsButton;
|
|
22
|
-
//# sourceMappingURL=CgLinkAsButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CgLinkAsButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CgReactRouterLink.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { __rest, __assign } from '../../../../_virtual/_tslib.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { getButtonAttributes } from '../../helpers/button.js';
|
|
4
|
-
import { EButtonSize, EButtonVariant } from './CgButton.types.js';
|
|
5
|
-
import { LinkAsButton } from './CgButton.styles.js';
|
|
6
|
-
|
|
7
|
-
var CgLinkAsButton = function (_a) {
|
|
8
|
-
var children = _a.children, _b = _a.size, size = _b === void 0 ? EButtonSize.medium : _b, _c = _a.variant, variant = _c === void 0 ? EButtonVariant.primary : _c, props = __rest(_a, ["children", "size", "variant"]);
|
|
9
|
-
var _d = getButtonAttributes(size, variant), sizeAttributes = _d.sizeAttributes, variantAttributes = _d.variantAttributes;
|
|
10
|
-
return (React.createElement(LinkAsButton, __assign({ backgroundColor: variantAttributes.backgroundColor, backgroundHover: variantAttributes.backgroundHover, backgroundDisabled: variantAttributes.backgroundDisabled, backgroundActive: variantAttributes.backgroundActive, border: variantAttributes.border, boxShadow: props.boxShadow, circle: props.circle, fontColor: variantAttributes.fontColor, fontSize: sizeAttributes.fontSize, height: sizeAttributes.height, fullWidth: props.fullWidth, paddingX: sizeAttributes.paddingX, paddingY: sizeAttributes.paddingY, rounded: props.rounded, size: size }, props), children));
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export { CgLinkAsButton };
|
|
14
|
-
//# sourceMappingURL=CgLinkAsButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CgLinkAsButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CgReactRouterLink.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
/package/build/@types/components/CgButton/{CgReactRouterLink.d.ts → ReactRouterLinkAsButton.d.ts}
RENAMED
|
File without changes
|