@occmundial/occ-atomic 2.0.0-beta.3 → 2.0.0-beta.5

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ # [2.0.0-beta.5](https://github.com/occmundial/occ-atomic/compare/v2.0.0-beta.4...v2.0.0-beta.5) (2024-04-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Changed font variable to the old one ([75dc28b](https://github.com/occmundial/occ-atomic/commit/75dc28bc0bd174057449c45d4ebe79366ffc8433))
7
+
8
+
9
+ ### Features
10
+
11
+ * Changed some examples with tables ([3efe252](https://github.com/occmundial/occ-atomic/commit/3efe252c3d8651976f28e951081c717861c0ad56))
12
+ * Updated Text component documentation ([73e4b21](https://github.com/occmundial/occ-atomic/commit/73e4b21d488ba012df82d2e4fb85c18689c5d586))
13
+ * Updated text component with new tokens ([b5f75ee](https://github.com/occmundial/occ-atomic/commit/b5f75eec430126b36c06dcd60bb320ccdf7eee0f))
14
+ * Upgrade font tokens ([069bf92](https://github.com/occmundial/occ-atomic/commit/069bf9237f5b52492961f96f0a6f4a79469f4448))
15
+
16
+ # [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)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * Fix loading icon size ([2cf2248](https://github.com/occmundial/occ-atomic/commit/2cf22486a65eb78ce9e7fb18da00a7e237fbcb55))
22
+
1
23
  # [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)
2
24
 
3
25
 
@@ -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) {
@@ -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
- fill: props.fill || _colors["default"]['blue-corp'][1000],
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",
@@ -4,14 +4,6 @@ exports[`Button matches the snapshot 1`] = `ShallowWrapper {}`;
4
4
 
5
5
  exports[`Button styles matches the snapshot 1`] = `
6
6
  Object {
7
- "@keyframes iconRotate": Object {
8
- "from": Object {
9
- "transform": "rotate(0deg)",
10
- },
11
- "to": Object {
12
- "transform": "rotate(360deg)",
13
- },
14
- },
15
7
  "block": Object {
16
8
  "display": "block",
17
9
  "width": "100%",
@@ -28,7 +20,7 @@ Object {
28
20
  "boxSizing": "border-box",
29
21
  "cursor": "pointer",
30
22
  "display": "inline-block",
31
- "font": "400 14px/1.5 'OCCText'",
23
+ "font": "400 14px/1.5 'OccText', sans-serif",
32
24
  "marginBottom": 0,
33
25
  "maxWidth": "100%",
34
26
  "padding": Array [
@@ -165,7 +157,7 @@ Object {
165
157
  "12px",
166
158
  ],
167
159
  },
168
- "font": "400 18px/1.5 'OCCText'",
160
+ "font": "400 18px/1.5 'OccText', sans-serif",
169
161
  "padding": Array [
170
162
  "12px",
171
163
  "32px",
@@ -204,7 +196,7 @@ Object {
204
196
  "8px",
205
197
  ],
206
198
  },
207
- "font": "400 16px/1.5 'OCCText'",
199
+ "font": "400 16px/1.5 'OccText', sans-serif",
208
200
  "padding": Array [
209
201
  "12px",
210
202
  "24px",