@citygross/components 0.12.9 → 0.13.0
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/LayoutBox/LayoutBox.d.ts +1 -0
- package/build/@types/components/LayoutBox/LayoutBox.styles.d.ts +1 -0
- package/build/cjs/components/src/components/LayoutBox/LayoutBox.js +2 -2
- package/build/cjs/components/src/components/LayoutBox/LayoutBox.styles.js +5 -3
- package/build/cjs/components/src/components/LayoutBox/LayoutBox.styles.js.map +1 -1
- package/build/es/components/src/components/LayoutBox/LayoutBox.js +2 -2
- package/build/es/components/src/components/LayoutBox/LayoutBox.styles.js +5 -3
- package/build/es/components/src/components/LayoutBox/LayoutBox.styles.js.map +1 -1
- package/package.json +2 -2
|
@@ -4,6 +4,7 @@ declare type TLayoutBoxContainer = {
|
|
|
4
4
|
borderRadius?: number;
|
|
5
5
|
shadowInset?: boolean;
|
|
6
6
|
showOverflow?: boolean;
|
|
7
|
+
noShadow?: boolean;
|
|
7
8
|
};
|
|
8
9
|
export declare const LayoutBoxContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TLayoutBoxContainer, never>;
|
|
9
10
|
export {};
|
|
@@ -10,8 +10,8 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
11
|
|
|
12
12
|
var LayoutBox = function (_a) {
|
|
13
|
-
var background = _a.background, borderRadius = _a.borderRadius, shadowInset = _a.shadowInset, showOverflow = _a.showOverflow, children = _a.children;
|
|
14
|
-
return (React__default["default"].createElement(LayoutBox_styles.LayoutBoxContainer, { borderRadius: borderRadius, shadowInset: shadowInset, background: background || '#fff', showOverflow: showOverflow }, children));
|
|
13
|
+
var background = _a.background, borderRadius = _a.borderRadius, shadowInset = _a.shadowInset, showOverflow = _a.showOverflow, noShadow = _a.noShadow, children = _a.children;
|
|
14
|
+
return (React__default["default"].createElement(LayoutBox_styles.LayoutBoxContainer, { borderRadius: borderRadius, shadowInset: shadowInset, background: background || '#fff', showOverflow: showOverflow, noShadow: noShadow }, children));
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
exports.LayoutBox = LayoutBox;
|
|
@@ -11,9 +11,11 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
|
11
11
|
|
|
12
12
|
var LayoutBoxContainer = styled__default["default"].div(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n background: ", ";\n box-shadow: ", ";\n overflow: ", ";\n @media (min-width: ", "px) {\n border-radius: ", "px;\n }\n"], ["\n background: ", ";\n box-shadow: ", ";\n overflow: ", ";\n @media (min-width: ", "px) {\n border-radius: ", "px;\n }\n"])), function (props) { return props.background; }, function (props) {
|
|
13
13
|
var _a, _b, _c, _d;
|
|
14
|
-
return props.
|
|
15
|
-
?
|
|
16
|
-
:
|
|
14
|
+
return props.noShadow
|
|
15
|
+
? 'none'
|
|
16
|
+
: props.shadowInset
|
|
17
|
+
? (_b = (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.boxShadow) === null || _b === void 0 ? void 0 : _b.layoutShadowInset
|
|
18
|
+
: (_d = (_c = props.theme.attributes) === null || _c === void 0 ? void 0 : _c.boxShadow) === null || _d === void 0 ? void 0 : _d.layoutShadow;
|
|
17
19
|
}, function (props) { return (props.showOverflow ? 'visible' : 'hidden'); }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.lg; }, function (props) { var _a; return props.borderRadius || ((_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.small); });
|
|
18
20
|
var templateObject_1;
|
|
19
21
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutBox.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LayoutBox.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,8 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { LayoutBoxContainer } from './LayoutBox.styles.js';
|
|
3
3
|
|
|
4
4
|
var LayoutBox = function (_a) {
|
|
5
|
-
var background = _a.background, borderRadius = _a.borderRadius, shadowInset = _a.shadowInset, showOverflow = _a.showOverflow, children = _a.children;
|
|
6
|
-
return (React.createElement(LayoutBoxContainer, { borderRadius: borderRadius, shadowInset: shadowInset, background: background || '#fff', showOverflow: showOverflow }, children));
|
|
5
|
+
var background = _a.background, borderRadius = _a.borderRadius, shadowInset = _a.shadowInset, showOverflow = _a.showOverflow, noShadow = _a.noShadow, children = _a.children;
|
|
6
|
+
return (React.createElement(LayoutBoxContainer, { borderRadius: borderRadius, shadowInset: shadowInset, background: background || '#fff', showOverflow: showOverflow, noShadow: noShadow }, children));
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export { LayoutBox };
|
|
@@ -3,9 +3,11 @@ import styled from 'styled-components';
|
|
|
3
3
|
|
|
4
4
|
var LayoutBoxContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background: ", ";\n box-shadow: ", ";\n overflow: ", ";\n @media (min-width: ", "px) {\n border-radius: ", "px;\n }\n"], ["\n background: ", ";\n box-shadow: ", ";\n overflow: ", ";\n @media (min-width: ", "px) {\n border-radius: ", "px;\n }\n"])), function (props) { return props.background; }, function (props) {
|
|
5
5
|
var _a, _b, _c, _d;
|
|
6
|
-
return props.
|
|
7
|
-
?
|
|
8
|
-
:
|
|
6
|
+
return props.noShadow
|
|
7
|
+
? 'none'
|
|
8
|
+
: props.shadowInset
|
|
9
|
+
? (_b = (_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.boxShadow) === null || _b === void 0 ? void 0 : _b.layoutShadowInset
|
|
10
|
+
: (_d = (_c = props.theme.attributes) === null || _c === void 0 ? void 0 : _c.boxShadow) === null || _d === void 0 ? void 0 : _d.layoutShadow;
|
|
9
11
|
}, function (props) { return (props.showOverflow ? 'visible' : 'hidden'); }, function (props) { var _a; return (_a = props.theme.breakpoints) === null || _a === void 0 ? void 0 : _a.lg; }, function (props) { var _a; return props.borderRadius || ((_a = props.theme.attributes) === null || _a === void 0 ? void 0 : _a.borderRadius.small); });
|
|
10
12
|
var templateObject_1;
|
|
11
13
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutBox.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LayoutBox.styles.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citygross/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
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": "0ddcceef79194e6a4441ae48b7b0d87f064aff73"
|
|
79
79
|
}
|