@occmundial/occ-atomic 3.0.0-beta.55 → 3.0.0-beta.56
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
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
|
+
|
1
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)
|
2
10
|
|
3
11
|
|
package/build/Footer/Footer.js
CHANGED
@@ -39,12 +39,15 @@ 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) {
|
@@ -145,11 +148,23 @@ Footer.propTypes = {
|
|
145
148
|
bottomLinksClassName: _propTypes["default"].string,
|
146
149
|
|
147
150
|
/** Flag to display an horizontal line between sections */
|
148
|
-
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
|
149
161
|
};
|
150
162
|
Footer.defaultProps = {
|
151
163
|
bottomLinks: [],
|
152
|
-
columns: []
|
164
|
+
columns: [],
|
165
|
+
footerDivider: false,
|
166
|
+
containerDivider: false,
|
167
|
+
transparent: false
|
153
168
|
};
|
154
169
|
var _default = Footer;
|
155
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
@@ -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']
|
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",
|