@ausbom/grid 0.4.6 → 0.4.9
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/lib/Grid.js +1 -1
- package/package.json +4 -4
- package/CHANGELOG.md +0 -175
package/lib/Grid.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=exports.GridItem=void 0;var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var
|
|
1
|
+
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=exports.GridItem=void 0;var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _typeof2=_interopRequireDefault(require("@babel/runtime/helpers/typeof"));var _toConsumableArray2=_interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));var _classnames=_interopRequireDefault(require("classnames"));var _react=_interopRequireDefault(require("react"));function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=(0,_getPrototypeOf2["default"])(Derived),result;if(hasNativeReflectConstruct){var NewTarget=(0,_getPrototypeOf2["default"])(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return(0,_possibleConstructorReturn2["default"])(this,result)}}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(e){return false}}var bpClasses=function bpClasses(bp,prop){var classSuffix="bom-grid-col-".concat(bp);var classes=[];if(typeof prop==="boolean"&&prop===true){classes=[].concat((0,_toConsumableArray2["default"])(classes),["".concat(classSuffix)])}else if(typeof prop==="number"){classes=[].concat((0,_toConsumableArray2["default"])(classes),["".concat(classSuffix,"--span-").concat(prop)])}else if((0,_typeof2["default"])(prop)==="object"){if(typeof prop.offset==="number"){classes=[].concat((0,_toConsumableArray2["default"])(classes),["".concat(classSuffix,"--offset-").concat(prop.offset)])}if(typeof prop.span==="number"){classes=[].concat((0,_toConsumableArray2["default"])(classes),["".concat(classSuffix,"--span-").concat(prop.span)])}}return classes};var GridItem=function GridItem(_ref){var children=_ref.children,className=_ref.className,xs=_ref.xs,s=_ref.s,m=_ref.m,l=_ref.l,otherProps=(0,_objectWithoutProperties2["default"])(_ref,["children","className","xs","s","m","l"]);var classes=_classnames["default"].apply(void 0,[className,"bom-grid-col"].concat((0,_toConsumableArray2["default"])(bpClasses("xs",xs)),(0,_toConsumableArray2["default"])(bpClasses("s",s)),(0,_toConsumableArray2["default"])(bpClasses("m",m)),(0,_toConsumableArray2["default"])(bpClasses("l",l))));return/*#__PURE__*/_react["default"].createElement("div",(0,_extends2["default"])({className:classes},otherProps),children)};exports.GridItem=GridItem;var Grid=/*#__PURE__*/function(_React$PureComponent){(0,_inherits2["default"])(Grid,_React$PureComponent);var _super=_createSuper(Grid);function Grid(){(0,_classCallCheck2["default"])(this,Grid);return _super.apply(this,arguments)}(0,_createClass2["default"])(Grid,[{key:"render",value:function render(){var _this$props=this.props,className=_this$props.className,children=_this$props.children,verticalAlign=_this$props.verticalAlign,noRowGutter=_this$props.noRowGutter,otherProps=(0,_objectWithoutProperties2["default"])(_this$props,["className","children","verticalAlign","noRowGutter"]);var classes=(0,_classnames["default"])(className,(0,_defineProperty2["default"])({"bom-grid":true,"bom-grid--no-row-gutter":!!noRowGutter},"bom-grid--vertical-align-".concat(verticalAlign),!!verticalAlign));return/*#__PURE__*/_react["default"].createElement("div",(0,_extends2["default"])({className:classes},otherProps),children)}}]);return Grid}(_react["default"].PureComponent);exports["default"]=Grid;(0,_defineProperty2["default"])(Grid,"defaultProps",{verticalAlign:"stretch",noRowGutter:false});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ausbom/grid",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"description": "A grid is like an invisible table that helps designers position interface elements with strong alignment and consistent spacing. Grids are made up of columns, rows, gutters, and margins.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"box",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"@ausbom/babel-preset": "^0.2.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"classnames": "
|
|
41
|
+
"classnames": "^2.3.1",
|
|
42
42
|
"react": ">= 16.3.x"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@ausbom/styles": "^0.9.
|
|
45
|
+
"@ausbom/styles": "^0.9.2"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "adba3ebdef2948325fca8d04032af707f9a755c7"
|
|
48
48
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [0.4.6](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.4.5...@ausbom/grid@0.4.6) (2020-11-27)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @ausbom/grid
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [0.4.5](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.4.4...@ausbom/grid@0.4.5) (2020-09-29)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @ausbom/grid
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## [0.4.4](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.4.3...@ausbom/grid@0.4.4) (2020-09-09)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @ausbom/grid
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<a name="0.4.3"></a>
|
|
31
|
-
## [0.4.3](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.4.2...@ausbom/grid@0.4.3) (2020-04-14)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
### Bug Fixes
|
|
35
|
-
|
|
36
|
-
* text size and spacing adjusted for mobile breakpoint ([#296](https://github.com/AusBOM/bom-design-system/issues/296)) ([c2c0e79](https://github.com/AusBOM/bom-design-system/commit/c2c0e79))
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<a name="0.4.2"></a>
|
|
43
|
-
## [0.4.2](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.4.1...@ausbom/grid@0.4.2) (2020-02-03)
|
|
44
|
-
|
|
45
|
-
**Note:** Version bump only for package @ausbom/grid
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
<a name="0.4.1"></a>
|
|
52
|
-
## [0.4.1](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.4.0...@ausbom/grid@0.4.1) (2020-01-16)
|
|
53
|
-
|
|
54
|
-
**Note:** Version bump only for package @ausbom/grid
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
<a name="0.4.0"></a>
|
|
61
|
-
# [0.4.0](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.3.5...@ausbom/grid@0.4.0) (2019-12-16)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
### Features
|
|
65
|
-
|
|
66
|
-
* adds first pass at location template ([4e3d8fa](https://github.com/AusBOM/bom-design-system/commit/4e3d8fa))
|
|
67
|
-
* second pass at location template ([73efa52](https://github.com/AusBOM/bom-design-system/commit/73efa52))
|
|
68
|
-
* updates based on pr feedback ([c1b10a8](https://github.com/AusBOM/bom-design-system/commit/c1b10a8))
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
<a name="0.3.5"></a>
|
|
75
|
-
## [0.3.5](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.3.4...@ausbom/grid@0.3.5) (2019-12-05)
|
|
76
|
-
|
|
77
|
-
**Note:** Version bump only for package @ausbom/grid
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
<a name="0.3.4"></a>
|
|
84
|
-
## [0.3.4](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.3.3...@ausbom/grid@0.3.4) (2019-11-14)
|
|
85
|
-
|
|
86
|
-
**Note:** Version bump only for package @ausbom/grid
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
<a name="0.3.3"></a>
|
|
93
|
-
## [0.3.3](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.3.2...@ausbom/grid@0.3.3) (2019-10-31)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### Bug Fixes
|
|
97
|
-
|
|
98
|
-
* add 'flex: 1 1 auto;' to .bom-grid ([e4225b1](https://github.com/AusBOM/bom-design-system/commit/e4225b1))
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
<a name="0.3.2"></a>
|
|
105
|
-
## [0.3.2](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.3.1...@ausbom/grid@0.3.2) (2019-10-29)
|
|
106
|
-
|
|
107
|
-
**Note:** Version bump only for package @ausbom/grid
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
<a name="0.3.1"></a>
|
|
114
|
-
## [0.3.1](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.3.0...@ausbom/grid@0.3.1) (2019-10-28)
|
|
115
|
-
|
|
116
|
-
**Note:** Version bump only for package @ausbom/grid
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
<a name="0.3.0"></a>
|
|
123
|
-
# [0.3.0](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.2.0...@ausbom/grid@0.3.0) (2019-10-22)
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
### Features
|
|
127
|
-
|
|
128
|
-
* adds first pass at article templates ([7b67c68](https://github.com/AusBOM/bom-design-system/commit/7b67c68))
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
<a name="0.2.0"></a>
|
|
135
|
-
# [0.2.0](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.1.10...@ausbom/grid@0.2.0) (2019-10-21)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
### Bug Fixes
|
|
139
|
-
|
|
140
|
-
* fixes readme issue causing build to fail ([332b283](https://github.com/AusBOM/bom-design-system/commit/332b283))
|
|
141
|
-
* fixes sass build issue ([da76c07](https://github.com/AusBOM/bom-design-system/commit/da76c07))
|
|
142
|
-
* fixes zero offset grid item styling ([e07d1a8](https://github.com/AusBOM/bom-design-system/commit/e07d1a8))
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
### Features
|
|
146
|
-
|
|
147
|
-
* adds JSX and HTML example component to design system website ([2a232b5](https://github.com/AusBOM/bom-design-system/commit/2a232b5))
|
|
148
|
-
* adds svgr for generating React icons ([4203ce3](https://github.com/AusBOM/bom-design-system/commit/4203ce3))
|
|
149
|
-
* refactors sass structure ([eeaef5b](https://github.com/AusBOM/bom-design-system/commit/eeaef5b))
|
|
150
|
-
* updates grid component for uxd project ([319d2b3](https://github.com/AusBOM/bom-design-system/commit/319d2b3))
|
|
151
|
-
* updates plop generator ([bf9fbd4](https://github.com/AusBOM/bom-design-system/commit/bf9fbd4))
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
## [0.1.10](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.1.9...@ausbom/grid@0.1.10) (2019-07-12)
|
|
158
|
-
|
|
159
|
-
**Note:** Version bump only for package @ausbom/grid
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
## [0.1.9](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.1.8...@ausbom/grid@0.1.9) (2019-07-12)
|
|
166
|
-
|
|
167
|
-
**Note:** Version bump only for package @ausbom/grid
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
## [0.1.8](https://github.com/AusBOM/bom-design-system/compare/@ausbom/grid@0.1.6...@ausbom/grid@0.1.8) (2019-07-10)
|
|
174
|
-
|
|
175
|
-
**Note:** Version bump only for package @ausbom/grid
|