@citygross/components 0.15.4 → 0.15.6
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/SideModal/SideModal.types.d.ts +1 -2
- package/build/cjs/components/src/components/RadioListItem/RadioListItem.styles.js +2 -2
- package/build/cjs/components/src/components/SideModal/SideModal.types.js +15 -0
- package/build/cjs/components/src/components/SideModal/SideModal.types.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/RadioListItem/RadioListItem.styles.js +2 -2
- package/build/es/components/src/components/SideModal/SideModal.types.js +11 -0
- package/build/es/components/src/components/SideModal/SideModal.types.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const SideModalTabs: {
|
|
1
|
+
export declare const SideModalTabs: {
|
|
2
2
|
readonly Cart: "cart";
|
|
3
3
|
readonly Filters: "filters";
|
|
4
4
|
readonly Login: "login";
|
|
@@ -7,4 +7,3 @@ declare const SideModalTabs: {
|
|
|
7
7
|
readonly StoreSelector: "store-selector";
|
|
8
8
|
};
|
|
9
9
|
export declare type TSideModalTab = (typeof SideModalTabs)[keyof typeof SideModalTabs];
|
|
10
|
-
export {};
|
|
@@ -10,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
|
|
11
11
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
12
12
|
|
|
13
|
-
var BaseRadioListItemContainer = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n padding: ", "px;\n align-items: center;\n cursor: ", ";\n flex-wrap: wrap;\n border-radius: ", "px;\n width: 100%;\n background: ", ";\n border: 1px solid\n ", ";\n > p:first-of-type {\n margin-left: ", "px;\n }\n &:hover {\n ", ";\n }\n &:active {\n ", ";\n }\n"], ["\n padding: ", "px;\n align-items: center;\n cursor: ", ";\n flex-wrap: wrap;\n border-radius: ", "px;\n width: 100%;\n background: ", ";\n border: 1px solid\n ", ";\n > p:first-of-type {\n margin-left: ", "px;\n }\n &:hover {\n ", ";\n }\n &:active {\n ", ";\n }\n"])), function (props) { var _a; return (props.noPadding ? 0 : (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs2); }, function (props) { return (props.isDisabled ? '
|
|
13
|
+
var BaseRadioListItemContainer = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n padding: ", "px;\n align-items: center;\n cursor: ", ";\n flex-wrap: wrap;\n border-radius: ", "px;\n width: 100%;\n background: ", ";\n border: 1px solid\n ", ";\n > p:first-of-type {\n margin-left: ", "px;\n }\n &:hover {\n ", ";\n }\n &:active {\n ", ";\n }\n"], ["\n padding: ", "px;\n align-items: center;\n cursor: ", ";\n flex-wrap: wrap;\n border-radius: ", "px;\n width: 100%;\n background: ", ";\n border: 1px solid\n ", ";\n > p:first-of-type {\n margin-left: ", "px;\n }\n &:hover {\n ", ";\n }\n &:active {\n ", ";\n }\n"])), function (props) { var _a; return (props.noPadding ? 0 : (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs2); }, function (props) { return (props.isDisabled ? 'not-allowed' : 'pointer'); }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.small; }, function (props) {
|
|
14
14
|
var _a, _b, _c, _d;
|
|
15
15
|
return props.isDisabled
|
|
16
16
|
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lightest
|
|
@@ -35,7 +35,7 @@ var BaseRadioListItemContainer = styled__default["default"].div(templateObject_1
|
|
|
35
35
|
"background: ".concat((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lighter));
|
|
36
36
|
});
|
|
37
37
|
var BaseRadioItemLeftWrapper = styled__default["default"].div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n display: flex;\n flex: 5;\n align-items: flex-start;\n ", ";\n"], ["\n display: flex;\n flex: 5;\n align-items: flex-start;\n ", ";\n"])), function (props) { return props.flexGrow && "flex-grow: ".concat(props.flexGrow); });
|
|
38
|
-
var StyledH3 = styled__default["default"](typography.H3).attrs({ as: 'span' })(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n cursor:
|
|
38
|
+
var StyledH3 = styled__default["default"](typography.H3).attrs({ as: 'span' })(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n cursor: ", ";\n white-space: nowrap;\n display: block;\n line-height: ", "px;\n ", ";\n"], ["\n cursor: ", ";\n white-space: nowrap;\n display: block;\n line-height: ", "px;\n ", ";\n"])), function (props) { return (props.isDisabled ? 'not-allowed' : 'pointer'); }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.lineHeight.m1; }, function (props) {
|
|
39
39
|
var _a;
|
|
40
40
|
return props.isDisabled && "\n color: ".concat((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.disabledDarkGray, ";\n text-decoration: line-through;\n ");
|
|
41
41
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var SideModalTabs = {
|
|
6
|
+
Cart: 'cart',
|
|
7
|
+
Filters: 'filters',
|
|
8
|
+
Login: 'login',
|
|
9
|
+
Menu: 'menu',
|
|
10
|
+
Register: 'register',
|
|
11
|
+
StoreSelector: 'store-selector'
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.SideModalTabs = SideModalTabs;
|
|
15
|
+
//# sourceMappingURL=SideModal.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SideModal.types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
|
@@ -86,6 +86,7 @@ var SearchSuggestionChip = require('./components/SearchSuggestionChip/SearchSugg
|
|
|
86
86
|
var SelectButton = require('./components/SelectButton/SelectButton.js');
|
|
87
87
|
var SkipTo = require('./components/SkipTo/SkipTo.js');
|
|
88
88
|
var SideModal = require('./components/SideModal/SideModal.js');
|
|
89
|
+
var SideModal_types = require('./components/SideModal/SideModal.types.js');
|
|
89
90
|
var SlideInOutContainer = require('./components/SlideInOutContainer/SlideInOutContainer.js');
|
|
90
91
|
var Slider = require('./components/Slider/Slider.js');
|
|
91
92
|
var Spacer = require('./components/Spacer/Spacer.js');
|
|
@@ -257,6 +258,7 @@ exports.SearchSuggestionChip = SearchSuggestionChip.SearchSuggestionChip;
|
|
|
257
258
|
exports.SelectButton = SelectButton.SelectButton;
|
|
258
259
|
exports.SkipTo = SkipTo.SkipTo;
|
|
259
260
|
exports.SideModal = SideModal.SideModal;
|
|
261
|
+
exports.SideModalTabs = SideModal_types.SideModalTabs;
|
|
260
262
|
exports.SlideInOutContainer = SlideInOutContainer.SlideInOutContainer;
|
|
261
263
|
exports.Slider = Slider.Slider;
|
|
262
264
|
exports.Spacer = Spacer.Spacer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@ import { __makeTemplateObject } from '../../../../_virtual/_tslib.js';
|
|
|
2
2
|
import { H3, BodyText } from '@citygross/typography';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
|
|
5
|
-
var BaseRadioListItemContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: ", "px;\n align-items: center;\n cursor: ", ";\n flex-wrap: wrap;\n border-radius: ", "px;\n width: 100%;\n background: ", ";\n border: 1px solid\n ", ";\n > p:first-of-type {\n margin-left: ", "px;\n }\n &:hover {\n ", ";\n }\n &:active {\n ", ";\n }\n"], ["\n padding: ", "px;\n align-items: center;\n cursor: ", ";\n flex-wrap: wrap;\n border-radius: ", "px;\n width: 100%;\n background: ", ";\n border: 1px solid\n ", ";\n > p:first-of-type {\n margin-left: ", "px;\n }\n &:hover {\n ", ";\n }\n &:active {\n ", ";\n }\n"])), function (props) { var _a; return (props.noPadding ? 0 : (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs2); }, function (props) { return (props.isDisabled ? '
|
|
5
|
+
var BaseRadioListItemContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: ", "px;\n align-items: center;\n cursor: ", ";\n flex-wrap: wrap;\n border-radius: ", "px;\n width: 100%;\n background: ", ";\n border: 1px solid\n ", ";\n > p:first-of-type {\n margin-left: ", "px;\n }\n &:hover {\n ", ";\n }\n &:active {\n ", ";\n }\n"], ["\n padding: ", "px;\n align-items: center;\n cursor: ", ";\n flex-wrap: wrap;\n border-radius: ", "px;\n width: 100%;\n background: ", ";\n border: 1px solid\n ", ";\n > p:first-of-type {\n margin-left: ", "px;\n }\n &:hover {\n ", ";\n }\n &:active {\n ", ";\n }\n"])), function (props) { var _a; return (props.noPadding ? 0 : (_a = props.theme.spacings) === null || _a === void 0 ? void 0 : _a.xs2); }, function (props) { return (props.isDisabled ? 'not-allowed' : 'pointer'); }, function (props) { var _a; return (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.small; }, function (props) {
|
|
6
6
|
var _a, _b, _c, _d;
|
|
7
7
|
return props.isDisabled
|
|
8
8
|
? (_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lightest
|
|
@@ -27,7 +27,7 @@ var BaseRadioListItemContainer = styled.div(templateObject_1 || (templateObject_
|
|
|
27
27
|
"background: ".concat((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.lighter));
|
|
28
28
|
});
|
|
29
29
|
var BaseRadioItemLeftWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex: 5;\n align-items: flex-start;\n ", ";\n"], ["\n display: flex;\n flex: 5;\n align-items: flex-start;\n ", ";\n"])), function (props) { return props.flexGrow && "flex-grow: ".concat(props.flexGrow); });
|
|
30
|
-
var StyledH3 = styled(H3).attrs({ as: 'span' })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n cursor:
|
|
30
|
+
var StyledH3 = styled(H3).attrs({ as: 'span' })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n cursor: ", ";\n white-space: nowrap;\n display: block;\n line-height: ", "px;\n ", ";\n"], ["\n cursor: ", ";\n white-space: nowrap;\n display: block;\n line-height: ", "px;\n ", ";\n"])), function (props) { return (props.isDisabled ? 'not-allowed' : 'pointer'); }, function (props) { var _a; return (_a = props.theme.typography) === null || _a === void 0 ? void 0 : _a.lineHeight.m1; }, function (props) {
|
|
31
31
|
var _a;
|
|
32
32
|
return props.isDisabled && "\n color: ".concat((_a = props.theme.palette) === null || _a === void 0 ? void 0 : _a.disabledDarkGray, ";\n text-decoration: line-through;\n ");
|
|
33
33
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SideModal.types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -82,6 +82,7 @@ export { SearchSuggestionChip } from './components/SearchSuggestionChip/SearchSu
|
|
|
82
82
|
export { SelectButton } from './components/SelectButton/SelectButton.js';
|
|
83
83
|
export { SkipTo } from './components/SkipTo/SkipTo.js';
|
|
84
84
|
export { SideModal } from './components/SideModal/SideModal.js';
|
|
85
|
+
export { SideModalTabs } from './components/SideModal/SideModal.types.js';
|
|
85
86
|
export { SlideInOutContainer } from './components/SlideInOutContainer/SlideInOutContainer.js';
|
|
86
87
|
export { Slider } from './components/Slider/Slider.js';
|
|
87
88
|
export { Spacer } from './components/Spacer/Spacer.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.15.
|
|
3
|
+
"version": "0.15.6",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./build/cjs/components/src/index.js",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"react-slick": "^0.30.1",
|
|
76
76
|
"slick-carousel": "^1.8.1"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "0c5d09f5a25e3cf5d39d159bd6eee795c38ac20b"
|
|
79
79
|
}
|