@occmundial/occ-atomic 2.0.0-beta.2 → 2.0.0-beta.4
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 +14 -0
- package/build/Button/Button.js +4 -1
- package/build/Button/Loading.js +1 -8
- package/build/tokens/fonts.json +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [2.0.0-beta.4](https://github.com/occmundial/occ-atomic/compare/v2.0.0-beta.3...v2.0.0-beta.4) (2024-04-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Fix loading icon size ([2cf2248](https://github.com/occmundial/occ-atomic/commit/2cf22486a65eb78ce9e7fb18da00a7e237fbcb55))
|
|
7
|
+
|
|
8
|
+
# [2.0.0-beta.3](https://github.com/occmundial/occ-atomic/compare/v2.0.0-beta.2...v2.0.0-beta.3) (2024-04-17)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Update design tokens ([6c96339](https://github.com/occmundial/occ-atomic/commit/6c963392e0b3af43978a5189bdbe0304e046f47c))
|
|
14
|
+
|
|
1
15
|
# [2.0.0-beta.2](https://github.com/occmundial/occ-atomic/compare/v2.0.0-beta.1...v2.0.0-beta.2) (2024-04-17)
|
|
2
16
|
|
|
3
17
|
|
package/build/Button/Button.js
CHANGED
|
@@ -95,10 +95,13 @@ var Button = /*#__PURE__*/function (_React$Component) {
|
|
|
95
95
|
className: classes.iconRight
|
|
96
96
|
}) : '');
|
|
97
97
|
|
|
98
|
+
var iconSize = size === 'sm' ? 16 : 24;
|
|
98
99
|
var loadingLayer = loading ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
99
100
|
className: classes.loadCont
|
|
100
101
|
}, /*#__PURE__*/_react["default"].createElement(_Loading["default"], {
|
|
101
|
-
className: classes.loadIcon
|
|
102
|
+
className: classes.loadIcon,
|
|
103
|
+
width: iconSize,
|
|
104
|
+
height: iconSize
|
|
102
105
|
})) : null;
|
|
103
106
|
|
|
104
107
|
if (href) {
|
package/build/Button/Loading.js
CHANGED
|
@@ -9,10 +9,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
|
-
var _colors = _interopRequireDefault(require("../tokens/colors.json"));
|
|
13
|
-
|
|
14
|
-
var _spacing = _interopRequireDefault(require("../tokens/spacing.json"));
|
|
15
|
-
|
|
16
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
13
|
|
|
18
14
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -20,10 +16,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
20
16
|
function Loading(props) {
|
|
21
17
|
return /*#__PURE__*/_react["default"].createElement("svg", _extends({
|
|
22
18
|
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
-
|
|
24
|
-
width: props.width || _spacing["default"]['size-5'],
|
|
25
|
-
height: props.height || _spacing["default"]['size-5'],
|
|
26
|
-
viewBox: "0 0 ".concat(_spacing["default"]['size-5'], " ").concat(_spacing["default"]['size-5'])
|
|
19
|
+
viewBox: "0 0 24 24"
|
|
27
20
|
}, props), /*#__PURE__*/_react["default"].createElement("circle", {
|
|
28
21
|
cx: "4",
|
|
29
22
|
cy: "13",
|
package/build/tokens/fonts.json
CHANGED
|
@@ -108,14 +108,14 @@
|
|
|
108
108
|
"fontWeight": 400,
|
|
109
109
|
"lineHeight": 1.1,
|
|
110
110
|
"fontSize": "72px",
|
|
111
|
-
"letterSpacing": "-
|
|
111
|
+
"letterSpacing": "-0.02em"
|
|
112
112
|
},
|
|
113
113
|
"heading-h1": {
|
|
114
114
|
"fontFamily": "'OCC Text'",
|
|
115
115
|
"fontWeight": 400,
|
|
116
116
|
"lineHeight": 1.1,
|
|
117
117
|
"fontSize": "48px",
|
|
118
|
-
"letterSpacing": "-
|
|
118
|
+
"letterSpacing": "-0.02em"
|
|
119
119
|
},
|
|
120
120
|
"heading-h2": {
|
|
121
121
|
"fontFamily": "'OCC Text'",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"fontWeight": 400,
|
|
129
129
|
"lineHeight": 1.1,
|
|
130
130
|
"fontSize": "28px",
|
|
131
|
-
"letterSpacing": "-
|
|
131
|
+
"letterSpacing": "-0.02em"
|
|
132
132
|
},
|
|
133
133
|
"heading-h4": {
|
|
134
134
|
"fontFamily": "'OCC Text'",
|
|
@@ -201,14 +201,14 @@
|
|
|
201
201
|
"fontWeight": 400,
|
|
202
202
|
"lineHeight": 1.1,
|
|
203
203
|
"fontSize": "48px",
|
|
204
|
-
"letterSpacing": "-
|
|
204
|
+
"letterSpacing": "-0.02em"
|
|
205
205
|
},
|
|
206
206
|
"mobile-h1-m": {
|
|
207
207
|
"fontFamily": "'OCC Text'",
|
|
208
208
|
"fontWeight": 400,
|
|
209
209
|
"lineHeight": 1.1,
|
|
210
210
|
"fontSize": "32px",
|
|
211
|
-
"letterSpacing": "-
|
|
211
|
+
"letterSpacing": "-0.02em"
|
|
212
212
|
},
|
|
213
213
|
"mobile-h2-m": {
|
|
214
214
|
"fontFamily": "'OCC Text'",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@occmundial/occ-atomic",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.4",
|
|
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",
|