@occmundial/occ-atomic 3.0.0-beta.29 → 3.0.0-beta.30

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 CHANGED
@@ -1,3 +1,16 @@
1
+ # [3.0.0-beta.30](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.29...v3.0.0-beta.30) (2024-07-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Remove unnecesary bp props in grid col ([97e839a](https://github.com/occmundial/occ-atomic/commit/97e839aa4621fcbb964615167165132628b646c3))
7
+ * Remove unnecesary margins and set auto ([96d016a](https://github.com/occmundial/occ-atomic/commit/96d016a6f3f461f5b44cbd299d8c135dc846561c))
8
+
9
+
10
+ ### Features
11
+
12
+ * Update grid with new design tokens ([0fd904d](https://github.com/occmundial/occ-atomic/commit/0fd904d044323108a1e573a93e7e1a6dea99d0ef))
13
+
1
14
  # [3.0.0-beta.29](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.28...v3.0.0-beta.29) (2024-07-09)
2
15
 
3
16
 
@@ -31,7 +31,7 @@ var itemTypes = {
31
31
  custom: 'custom'
32
32
  };
33
33
  /** Customisable footer component. This component can receive an array of columns. Those columns can contain an array of lists, and those lists can contain a title and and array of items. The items are objects that must define a type (one of 'link,', 'icon' or 'cursom').
34
- It can also receive a copy string, to show the copyright data, and an array of links to show above it.
34
+ It can also receive a copy string, to show the copyright data, and an array of links to show above it.
35
35
  */
36
36
 
37
37
  var Footer = function Footer(_ref) {
@@ -54,12 +54,17 @@ var Footer = function Footer(_ref) {
54
54
  className: columns.length > 0 ? classes.footer : classes.footerWithoutColumns
55
55
  }, /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
56
56
  fluid: winWidth < _grid["default"].xl
57
- }, /*#__PURE__*/_react["default"].createElement(_Grid["default"].Row, null, /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
58
- display: "flex",
59
- direction: isMobile ? 'col' : 'row',
57
+ }, /*#__PURE__*/_react["default"].createElement(_Grid["default"].Row, {
60
58
  className: classes.column
61
59
  }, columns.map(function (column, index) {
62
- return /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
60
+ return /*#__PURE__*/_react["default"].createElement(_Grid["default"].Col, {
61
+ xxs: {
62
+ col: 12
63
+ },
64
+ sm: {
65
+ col: 6
66
+ }
67
+ }, /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
63
68
  key: index,
64
69
  flex: "1",
65
70
  className: !isMobile ? classes.list : ''
@@ -70,9 +75,11 @@ var Footer = function Footer(_ref) {
70
75
  key: list.key,
71
76
  listClassName: listClassName
72
77
  });
73
- }));
74
- })), /*#__PURE__*/_react["default"].createElement("div", {
75
- className: classes.footerBottom
78
+ })));
79
+ })), /*#__PURE__*/_react["default"].createElement(_Grid["default"].Row, null, /*#__PURE__*/_react["default"].createElement(_Grid["default"].Col, {
80
+ xxs: {
81
+ col: 12
82
+ }
76
83
  }, /*#__PURE__*/_react["default"].createElement(_Flexbox["default"], {
77
84
  display: "flex",
78
85
  alignItems: "start",
@@ -13,8 +13,6 @@ Object {
13
13
  },
14
14
  "column": Object {
15
15
  "paddingBottom": 16,
16
- "paddingLeft": 12,
17
- "paddingRight": 12,
18
16
  },
19
17
  "footer": Object {
20
18
  "@media (min-width: 992px)": Object {
@@ -31,10 +29,6 @@ Object {
31
29
  32,
32
30
  ],
33
31
  },
34
- "footerBottom": Object {
35
- "paddingLeft": 12,
36
- "paddingRight": 12,
37
- },
38
32
  "footerWithoutColumns": Object {
39
33
  "@media (min-width: 992px)": Object {
40
34
  "padding": Array [
@@ -29,8 +29,6 @@ var _default = {
29
29
  padding: [0, 0, _spacing["default"].medium]
30
30
  }),
31
31
  column: {
32
- paddingLeft: _spacing["default"].gutter,
33
- paddingRight: _spacing["default"].gutter,
34
32
  paddingBottom: _spacing["default"].small
35
33
  },
36
34
  list: {
@@ -67,10 +65,6 @@ var _default = {
67
65
  display: 'block',
68
66
  paddingBottom: _spacing["default"].tiny
69
67
  },
70
- footerBottom: {
71
- paddingLeft: _spacing["default"].gutter,
72
- paddingRight: _spacing["default"].gutter
73
- },
74
68
  bottomWrap: {
75
69
  paddingTop: _spacing["default"].base,
76
70
  borderTop: "1px solid ".concat(_colors["default"].grey200)
@@ -795,10 +795,42 @@ Object {
795
795
  },
796
796
  },
797
797
  "col": Object {
798
+ "@media (min-width: 1200px)": Object {
799
+ "padding": Array [
800
+ 0,
801
+ "12px",
802
+ ],
803
+ },
804
+ "@media (min-width: 1500px)": Object {
805
+ "padding": Array [
806
+ 0,
807
+ "12px",
808
+ ],
809
+ },
810
+ "@media (min-width: 576px)": Object {
811
+ "padding": Array [
812
+ 0,
813
+ "8px",
814
+ ],
815
+ },
816
+ "@media (min-width: 768px)": Object {
817
+ "padding": Array [
818
+ 0,
819
+ "12px",
820
+ ],
821
+ },
822
+ "@media (min-width: 992px)": Object {
823
+ "padding": Array [
824
+ 0,
825
+ "12px",
826
+ ],
827
+ },
798
828
  "boxSizing": "border-box",
799
829
  "minHeight": "1px",
800
- "paddingLeft": 12,
801
- "paddingRight": 12,
830
+ "padding": Array [
831
+ 0,
832
+ 6,
833
+ ],
802
834
  "position": "relative",
803
835
  },
804
836
  "offset-xxs1": Object {
@@ -7,18 +7,31 @@ exports["default"] = void 0;
7
7
 
8
8
  var _grid = _interopRequireDefault(require("../../subatomic/grid"));
9
9
 
10
- var _spacing = _interopRequireDefault(require("../../subatomic/spacing"));
10
+ var _spacing = _interopRequireDefault(require("../../tokens/spacing.json"));
11
+
12
+ var _col;
11
13
 
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
15
 
16
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
+
14
18
  var styles = {
15
- col: {
19
+ col: (_col = {
16
20
  boxSizing: 'border-box',
17
21
  position: 'relative',
18
22
  minHeight: '1px',
19
- paddingRight: _spacing["default"].gutter,
20
- paddingLeft: _spacing["default"].gutter
21
- }
23
+ padding: [0, 6]
24
+ }, _defineProperty(_col, "@media (min-width: ".concat(_grid["default"].xs, "px)"), {
25
+ padding: [0, _spacing["default"]['size-2']]
26
+ }), _defineProperty(_col, "@media (min-width: ".concat(_grid["default"].sm, "px)"), {
27
+ padding: [0, _spacing["default"]['size-3']]
28
+ }), _defineProperty(_col, "@media (min-width: ".concat(_grid["default"].md, "px)"), {
29
+ padding: [0, _spacing["default"]['size-3']]
30
+ }), _defineProperty(_col, "@media (min-width: ".concat(_grid["default"].lg, "px)"), {
31
+ padding: [0, _spacing["default"]['size-3']]
32
+ }), _defineProperty(_col, "@media (min-width: ".concat(_grid["default"].xl, "px)"), {
33
+ padding: [0, _spacing["default"]['size-3']]
34
+ }), _col)
22
35
  };
23
36
 
24
37
  var pushGrid = function pushGrid() {
@@ -44,7 +57,6 @@ var pushGrid = function pushGrid() {
44
57
  };
45
58
  }
46
59
 
47
- ;
48
60
  styles[xs] = {};
49
61
  styles[sm] = {};
50
62
  styles[md] = {};
@@ -12,9 +12,43 @@ Object {
12
12
  "content": "\\"\\"",
13
13
  "display": "table",
14
14
  },
15
+ "@media (min-width: 0px)": Object {
16
+ "margin": Array [
17
+ 0,
18
+ "-6px",
19
+ ],
20
+ },
21
+ "@media (min-width: 1200px)": Object {
22
+ "margin": Array [
23
+ 0,
24
+ "-12px",
25
+ ],
26
+ },
27
+ "@media (min-width: 1500px)": Object {
28
+ "margin": Array [
29
+ 0,
30
+ "-12px",
31
+ ],
32
+ },
33
+ "@media (min-width: 576px)": Object {
34
+ "margin": Array [
35
+ 0,
36
+ "-8px",
37
+ ],
38
+ },
39
+ "@media (min-width: 768px)": Object {
40
+ "margin": Array [
41
+ 0,
42
+ "-12px",
43
+ ],
44
+ },
45
+ "@media (min-width: 992px)": Object {
46
+ "margin": Array [
47
+ 0,
48
+ "-12px",
49
+ ],
50
+ },
15
51
  "boxSizing": "border-box",
16
- "marginLeft": -12,
17
- "marginRight": -12,
18
52
  },
19
53
  }
20
54
  `;
@@ -5,15 +5,19 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
 
8
- var _spacing = _interopRequireDefault(require("../../subatomic/spacing"));
8
+ var _grid = _interopRequireDefault(require("../../subatomic/grid"));
9
+
10
+ var _spacing = _interopRequireDefault(require("../../tokens/spacing.json"));
11
+
12
+ var _row;
9
13
 
10
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
15
 
16
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
+
12
18
  var _default = {
13
- row: {
19
+ row: (_row = {
14
20
  boxSizing: 'border-box',
15
- marginRight: -_spacing["default"].gutter,
16
- marginLeft: -_spacing["default"].gutter,
17
21
  '&:before, &:after': {
18
22
  display: 'table',
19
23
  content: '""'
@@ -21,6 +25,18 @@ var _default = {
21
25
  '&:after': {
22
26
  clear: 'both'
23
27
  }
24
- }
28
+ }, _defineProperty(_row, "@media (min-width: ".concat(_grid["default"].xxs, "px)"), {
29
+ margin: [0, '-6px']
30
+ }), _defineProperty(_row, "@media (min-width: ".concat(_grid["default"].xs, "px)"), {
31
+ margin: [0, "-".concat(_spacing["default"]["size-2"])]
32
+ }), _defineProperty(_row, "@media (min-width: ".concat(_grid["default"].sm, "px)"), {
33
+ margin: [0, "-".concat(_spacing["default"]["size-3"])]
34
+ }), _defineProperty(_row, "@media (min-width: ".concat(_grid["default"].md, "px)"), {
35
+ margin: [0, "-".concat(_spacing["default"]["size-3"])]
36
+ }), _defineProperty(_row, "@media (min-width: ".concat(_grid["default"].lg, "px)"), {
37
+ margin: [0, "-".concat(_spacing["default"]["size-3"])]
38
+ }), _defineProperty(_row, "@media (min-width: ".concat(_grid["default"].xl, "px)"), {
39
+ margin: [0, "-".concat(_spacing["default"]["size-3"])]
40
+ }), _row)
25
41
  };
26
42
  exports["default"] = _default;
@@ -7,7 +7,7 @@ exports["default"] = void 0;
7
7
 
8
8
  var _grid = _interopRequireDefault(require("../subatomic/grid"));
9
9
 
10
- var _spacing = _interopRequireDefault(require("../subatomic/spacing"));
10
+ var _spacing = _interopRequireDefault(require("../tokens/spacing.json"));
11
11
 
12
12
  var _conFluid$con$Media;
13
13
 
@@ -18,8 +18,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
18
18
  var _default = (_conFluid$con$Media = {
19
19
  conFluid: {
20
20
  boxSizing: 'border-box',
21
- paddingRight: _spacing["default"].gutter,
22
- paddingLeft: _spacing["default"].gutter,
21
+ paddingRight: _spacing["default"]['size-3'],
22
+ paddingLeft: _spacing["default"]['size-3'],
23
23
  marginRight: 'auto',
24
24
  marginLeft: 'auto',
25
25
  '&:before, &:after': {
@@ -31,20 +31,20 @@ var _default = (_conFluid$con$Media = {
31
31
  }
32
32
  },
33
33
  con: {
34
- extend: 'conFluid',
35
- margin: '0 auto'
34
+ width: "calc(".concat(_grid["default"].full, " - ").concat(_spacing["default"]['size-5'], ")"),
35
+ margin: 'auto'
36
36
  }
37
37
  }, _defineProperty(_conFluid$con$Media, "@media (min-width: ".concat(_grid["default"].xs, "px)"), {
38
38
  con: {
39
- width: _grid["default"].xsGrid
39
+ width: "calc(".concat(_grid["default"].xsGrid, " - ").concat(_spacing["default"]['size-6'], ")")
40
40
  }
41
41
  }), _defineProperty(_conFluid$con$Media, "@media (min-width: ".concat(_grid["default"].sm, "px)"), {
42
42
  con: {
43
- width: _grid["default"].smGrid
43
+ width: "calc(".concat(_grid["default"].smGrid, " - ").concat(_spacing["default"]['size-8'], ")")
44
44
  }
45
45
  }), _defineProperty(_conFluid$con$Media, "@media (min-width: ".concat(_grid["default"].md, "px)"), {
46
46
  con: {
47
- width: _grid["default"].mdGrid
47
+ width: "calc(".concat(_grid["default"].mdGrid, " - ").concat(_spacing["default"]['size-10'], ")")
48
48
  }
49
49
  }), _defineProperty(_conFluid$con$Media, "@media (min-width: ".concat(_grid["default"].lg, "px)"), {
50
50
  con: {
@@ -12,10 +12,10 @@ var _default = {
12
12
  lg: 1200,
13
13
  xl: 1500,
14
14
  full: '100%',
15
- xsGrid: 564,
16
- smGrid: 744,
17
- mdGrid: 984,
18
- lgGrid: 1164,
19
- xlGrid: 1464
15
+ xsGrid: '100%',
16
+ smGrid: '100%',
17
+ mdGrid: '100%',
18
+ lgGrid: 1140,
19
+ xlGrid: 1440
20
20
  };
21
21
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@occmundial/occ-atomic",
3
- "version": "3.0.0-beta.29",
3
+ "version": "3.0.0-beta.30",
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",