@occmundial/occ-atomic 3.0.0-beta.54 → 3.0.0-beta.56
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/CHANGELOG.md +15 -0
- package/build/Footer/Footer.js +21 -7
- package/build/Footer/__snapshots__/Footer.test.js.snap +16 -20
- package/build/Footer/styles.js +13 -16
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [3.0.0-beta.56](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.55...v3.0.0-beta.56) (2024-09-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Add default value for new props ([2841eae](https://github.com/occmundial/occ-atomic/commit/2841eaec4e570934f6b02f21f9e262892f3a33fd))
|
|
7
|
+
* Add new props to set bg transparent and borders ([dd0a333](https://github.com/occmundial/occ-atomic/commit/dd0a3334ebc1b4edfa75d9a0d2520b2cccd14309))
|
|
8
|
+
|
|
9
|
+
# [3.0.0-beta.55](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.54...v3.0.0-beta.55) (2024-09-04)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* Change display flex for grid in columns links ([cfd1291](https://github.com/occmundial/occ-atomic/commit/cfd12917a84d009d8d6176861592533ffc491d1f))
|
|
15
|
+
|
|
1
16
|
# [3.0.0-beta.54](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.53...v3.0.0-beta.54) (2024-09-04)
|
|
2
17
|
|
|
3
18
|
|
package/build/Footer/Footer.js
CHANGED
|
@@ -39,18 +39,20 @@ var Footer = function Footer(_ref) {
|
|
|
39
39
|
topElement = _ref.topElement,
|
|
40
40
|
bottomLinksClassName = _ref.bottomLinksClassName,
|
|
41
41
|
sectionDivider = _ref.sectionDivider,
|
|
42
|
-
classes = _ref.classes
|
|
42
|
+
classes = _ref.classes,
|
|
43
|
+
footerDivider = _ref.footerDivider,
|
|
44
|
+
containerDivider = _ref.containerDivider,
|
|
45
|
+
transparent = _ref.transparent;
|
|
43
46
|
return /*#__PURE__*/_react["default"].createElement("footer", {
|
|
44
|
-
className: classes.footer
|
|
47
|
+
className: "".concat(transparent ? classes.footerTransparent : classes.footer).concat(footerDivider ? " ".concat(classes.borderTop) : '')
|
|
45
48
|
}, /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
46
49
|
fluid: isFluid,
|
|
47
|
-
className: classes.footerContainer
|
|
50
|
+
className: "".concat(classes.footerContainer).concat(containerDivider ? " ".concat(classes.borderTop) : '')
|
|
48
51
|
}, /*#__PURE__*/(0, _react.isValidElement)(topElement) ? topElement : '', columns.length ? /*#__PURE__*/_react["default"].createElement("section", {
|
|
49
52
|
className: classes.column
|
|
50
53
|
}, columns.map(function (column, index) {
|
|
51
54
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
52
|
-
key: index
|
|
53
|
-
className: classes.listContainer
|
|
55
|
+
key: index
|
|
54
56
|
}, column.map(function (list) {
|
|
55
57
|
return /*#__PURE__*/_react["default"].createElement(_List["default"], {
|
|
56
58
|
key: list.key,
|
|
@@ -146,11 +148,23 @@ Footer.propTypes = {
|
|
|
146
148
|
bottomLinksClassName: _propTypes["default"].string,
|
|
147
149
|
|
|
148
150
|
/** Flag to display an horizontal line between sections */
|
|
149
|
-
sectionDivider: _propTypes["default"].bool
|
|
151
|
+
sectionDivider: _propTypes["default"].bool,
|
|
152
|
+
|
|
153
|
+
/** Flag to display a border top in footer element */
|
|
154
|
+
footerDivider: _propTypes["default"].bool,
|
|
155
|
+
|
|
156
|
+
/** Flag to display a border top in footer container child */
|
|
157
|
+
containerDivider: _propTypes["default"].bool,
|
|
158
|
+
|
|
159
|
+
/** Flag to set transparent background color to footer element */
|
|
160
|
+
transparent: _propTypes["default"].bool
|
|
150
161
|
};
|
|
151
162
|
Footer.defaultProps = {
|
|
152
163
|
bottomLinks: [],
|
|
153
|
-
columns: []
|
|
164
|
+
columns: [],
|
|
165
|
+
footerDivider: false,
|
|
166
|
+
containerDivider: false,
|
|
167
|
+
transparent: false
|
|
154
168
|
};
|
|
155
169
|
var _default = Footer;
|
|
156
170
|
exports["default"] = _default;
|
|
@@ -23,6 +23,9 @@ Object {
|
|
|
23
23
|
"flexDirection": "column",
|
|
24
24
|
"gap": "16px",
|
|
25
25
|
},
|
|
26
|
+
"borderTop": Object {
|
|
27
|
+
"borderTop": "1px solid #EDEDF1",
|
|
28
|
+
},
|
|
26
29
|
"bottomContainer": Object {
|
|
27
30
|
"@media (min-width: 768px)": Object {
|
|
28
31
|
"rowGap": "24px",
|
|
@@ -50,34 +53,28 @@ Object {
|
|
|
50
53
|
"column": Object {
|
|
51
54
|
"@media (min-width: 576px)": Object {
|
|
52
55
|
"columnGap": "16px",
|
|
53
|
-
"
|
|
56
|
+
"gridTemplateColumns": "repeat(2, minmax(0, 1fr))",
|
|
54
57
|
"rowGap": "40px",
|
|
55
58
|
},
|
|
56
59
|
"@media (min-width: 992px)": Object {
|
|
57
60
|
"columnGap": "24px",
|
|
61
|
+
"gridTemplateColumns": "repeat(4, minmax(0, 1fr))",
|
|
58
62
|
"rowGap": 0,
|
|
59
63
|
},
|
|
60
|
-
"display": "
|
|
61
|
-
"flexDirection": "column",
|
|
62
|
-
"flexWrap": "wrap",
|
|
64
|
+
"display": "grid",
|
|
63
65
|
},
|
|
64
66
|
"copyright": Object {
|
|
65
67
|
"& > p": Object {
|
|
66
68
|
"margin": 0,
|
|
67
69
|
},
|
|
68
70
|
"color": "#5A5D7B",
|
|
69
|
-
"font": "300
|
|
71
|
+
"font": "300 14px/1.5 'OccText', sans-serif",
|
|
70
72
|
},
|
|
71
73
|
"divider": Object {
|
|
72
74
|
"borderTop": "1px solid #EDEDF1",
|
|
73
75
|
},
|
|
74
76
|
"footer": Object {
|
|
75
77
|
"backgroundColor": "#fff",
|
|
76
|
-
"borderTop": "1px solid #EDEDF1",
|
|
77
|
-
"padding": Array [
|
|
78
|
-
"40px",
|
|
79
|
-
0,
|
|
80
|
-
],
|
|
81
78
|
},
|
|
82
79
|
"footerContainer": Object {
|
|
83
80
|
"@media (min-width: 576px)": Object {
|
|
@@ -88,8 +85,15 @@ Object {
|
|
|
88
85
|
},
|
|
89
86
|
"display": "flex",
|
|
90
87
|
"flexDirection": "column",
|
|
88
|
+
"padding": Array [
|
|
89
|
+
"40px",
|
|
90
|
+
0,
|
|
91
|
+
],
|
|
91
92
|
"rowGap": "24px",
|
|
92
93
|
},
|
|
94
|
+
"footerTransparent": Object {
|
|
95
|
+
"backgroundColor": "transparent",
|
|
96
|
+
},
|
|
93
97
|
"link": Object {
|
|
94
98
|
"&:focus-visible": Object {
|
|
95
99
|
"borderRadius": "4px",
|
|
@@ -101,7 +105,8 @@ Object {
|
|
|
101
105
|
"color": "#080D39",
|
|
102
106
|
},
|
|
103
107
|
"color": "#5A5D7B",
|
|
104
|
-
"
|
|
108
|
+
"cursor": "pointer",
|
|
109
|
+
"font": "300 14px/1.5 'OccText', sans-serif",
|
|
105
110
|
"textDecoration": "none",
|
|
106
111
|
"transition": "all cubic-bezier(0.25,0.46,0.45,0.94) 0.2s",
|
|
107
112
|
},
|
|
@@ -118,15 +123,6 @@ Object {
|
|
|
118
123
|
],
|
|
119
124
|
"width": 1,
|
|
120
125
|
},
|
|
121
|
-
"listContainer": Object {
|
|
122
|
-
"@media (min-width: 576px)": Object {
|
|
123
|
-
"flexBasis": "calc(50% - 16px)",
|
|
124
|
-
},
|
|
125
|
-
"@media (min-width: 992px)": Object {
|
|
126
|
-
"flexBasis": "calc(25% - 24px)",
|
|
127
|
-
},
|
|
128
|
-
"flexBasis": "100%",
|
|
129
|
-
},
|
|
130
126
|
"listElement": Object {
|
|
131
127
|
"@media (min-width: 768px)": Object {
|
|
132
128
|
"display": "inline-block",
|
package/build/Footer/styles.js
CHANGED
|
@@ -19,7 +19,7 @@ var _fonts = _interopRequireDefault(require("../tokens/fonts.json"));
|
|
|
19
19
|
|
|
20
20
|
var _styles = require("../Text/styles");
|
|
21
21
|
|
|
22
|
-
var _footerContainer, _column
|
|
22
|
+
var _footerContainer, _column;
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
25
|
|
|
@@ -27,13 +27,18 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
27
27
|
|
|
28
28
|
var _default = {
|
|
29
29
|
footer: {
|
|
30
|
-
backgroundColor: _colors["default"].bg.surface["default"]
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
backgroundColor: _colors["default"].bg.surface["default"]
|
|
31
|
+
},
|
|
32
|
+
footerTransparent: {
|
|
33
|
+
backgroundColor: 'transparent'
|
|
34
|
+
},
|
|
35
|
+
borderTop: {
|
|
36
|
+
borderTop: "1px solid ".concat(_colors["default"].border["default"].subtle)
|
|
33
37
|
},
|
|
34
38
|
footerContainer: (_footerContainer = {
|
|
35
39
|
display: 'flex',
|
|
36
40
|
flexDirection: 'column',
|
|
41
|
+
padding: [_spacing["default"]['size-7'], 0],
|
|
37
42
|
rowGap: _spacing["default"]['size-5']
|
|
38
43
|
}, _defineProperty(_footerContainer, "@media (min-width: ".concat(_grid["default"].xs, "px)"), {
|
|
39
44
|
rowGap: _spacing["default"]['size-7']
|
|
@@ -41,16 +46,15 @@ var _default = {
|
|
|
41
46
|
rowGap: _spacing["default"]['size-8']
|
|
42
47
|
}), _footerContainer),
|
|
43
48
|
column: (_column = {
|
|
44
|
-
display: '
|
|
45
|
-
flexDirection: 'column',
|
|
46
|
-
flexWrap: 'wrap'
|
|
49
|
+
display: 'grid'
|
|
47
50
|
}, _defineProperty(_column, "@media (min-width: ".concat(_grid["default"].xs, "px)"), {
|
|
48
|
-
|
|
51
|
+
gridTemplateColumns: 'repeat(2, minmax(0, 1fr))',
|
|
49
52
|
columnGap: _spacing["default"]['size-4'],
|
|
50
53
|
rowGap: _spacing["default"]['size-7']
|
|
51
54
|
}), _defineProperty(_column, "@media (min-width: ".concat(_grid["default"].md, "px)"), {
|
|
52
55
|
columnGap: _spacing["default"]['size-5'],
|
|
53
|
-
rowGap: 0
|
|
56
|
+
rowGap: 0,
|
|
57
|
+
gridTemplateColumns: 'repeat(4, minmax(0, 1fr))'
|
|
54
58
|
}), _column),
|
|
55
59
|
link: {
|
|
56
60
|
font: (0, _styles.parseFontValue)(_fonts["default"]['body-small']),
|
|
@@ -75,13 +79,6 @@ var _default = {
|
|
|
75
79
|
position: 'relative',
|
|
76
80
|
display: 'inline-block'
|
|
77
81
|
}),
|
|
78
|
-
listContainer: (_listContainer = {
|
|
79
|
-
flexBasis: '100%'
|
|
80
|
-
}, _defineProperty(_listContainer, "@media (min-width: ".concat(_grid["default"].xs, "px)"), {
|
|
81
|
-
flexBasis: "calc(50% - ".concat(_spacing["default"]['size-4'], ")")
|
|
82
|
-
}), _defineProperty(_listContainer, "@media (min-width: ".concat(_grid["default"].md, "px)"), {
|
|
83
|
-
flexBasis: "calc(25% - ".concat(_spacing["default"]['size-5'], ")")
|
|
84
|
-
}), _listContainer),
|
|
85
82
|
bottomSection: {
|
|
86
83
|
display: 'flex',
|
|
87
84
|
flexDirection: 'column',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@occmundial/occ-atomic",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.56",
|
|
4
4
|
"description": "Collection of shareable styled React components for OCC applications.",
|
|
5
5
|
"homepage": "http://occmundial.github.io/occ-atomic",
|
|
6
6
|
"main": "build/index.js",
|