@carbon/grid 10.0.0-rc.0 → 10.2.0
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 +415 -0
- package/LICENSE +2 -2
- package/README.md +30 -26
- package/package.json +12 -5
- package/scss/12.scss +4 -0
- package/scss/_inlined/12.scss +41 -0
- package/scss/_inlined/_mixins.scss +335 -0
- package/scss/_inlined/_prefix.scss +12 -0
- package/scss/_mixins.scss +56 -41
- package/scss/_prefix.scss +4 -0
- package/scss/grid.scss +1 -1
- package/scss/index.scss +10 -0
- package/scss/vendor/@carbon/import-once/import-once.scss +27 -0
- package/scss/vendor/@carbon/import-once/index.scss +8 -0
- package/scss/vendor/@carbon/layout/_breakpoint.scss +237 -0
- package/scss/vendor/@carbon/layout/_convert.scss +30 -0
- package/scss/vendor/@carbon/layout/_key-height.scss +97 -0
- package/scss/vendor/@carbon/layout/_mini-unit.scss +23 -0
- package/scss/vendor/@carbon/layout/_spacing.scss +328 -0
- package/scss/vendor/@carbon/layout/_utilities.scss +41 -0
- package/scss/vendor/@carbon/layout/index.scss +8 -0
- package/scss/vendor/@carbon/layout/layout.scss +12 -0
- package/css/grid.css +0 -1053
- package/css/grid.min.css +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,415 @@
|
|
|
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
|
+
## [10.1.1](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v10.1.0...v10.1.1) (2019-04-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @carbon/grid
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# 10.1.0 (2019-04-12)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **sassdoc:** render Sassdoc in markdown ([#462](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/462)) ([73cea35](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/73cea35)), closes [#470](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/470)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# 10.0.0 (2019-03-29)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# 10.0.0-rc.0 (2019-03-27)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## 0.0.1-beta.5 (2019-03-25)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
## 0.0.1-beta.4 (2019-03-22)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## 0.0.1-beta.3 (2019-03-22)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## 0.0.1-beta.2 (2019-03-19)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## 0.0.1-beta.1 (2019-03-13)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Features
|
|
51
|
+
|
|
52
|
+
* **grid:** update scss folder structure and mixins ([#396](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/396)) ([e336c1c](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/e336c1c))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## 0.0.1-beta.0 (2019-03-07)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## 0.0.1-alpha.32 (2019-02-12)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### Features
|
|
64
|
+
|
|
65
|
+
* **grid:** add offset-0 class names ([#306](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/306)) ([ba62b60](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/ba62b60))
|
|
66
|
+
* **project:** add carbon namespace to public API ([#300](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/300)) ([1ae6f33](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/1ae6f33))
|
|
67
|
+
* **stylelint-config-elements:** add lint rule for unset usage ([c0ca2b1](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/c0ca2b1))
|
|
68
|
+
* **stylelint-config-elements:** add stylelint ([#333](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/333)) ([94df4a2](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/94df4a2))
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
## 0.0.1-alpha.31 (2019-01-28)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
## 0.0.1-alpha.30 (2019-01-22)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## 0.0.1-alpha.29 (2019-01-14)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## 0.0.1-alpha.28 (2019-01-11)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## 0.0.1-alpha.27 (2019-01-10)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Features
|
|
92
|
+
|
|
93
|
+
* **bundler:** add support for scss compilation ([#222](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/222)) ([5cfcdb8](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/5cfcdb8))
|
|
94
|
+
* **grid:** add full width grid modifier ([#207](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/207)) ([5f72216](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/5f72216))
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
## 0.0.1-alpha.26 (2018-12-13)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Features
|
|
102
|
+
|
|
103
|
+
* **grid:** add 2x1 aspect ratio class ([#178](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/178)) ([714c414](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/714c414))
|
|
104
|
+
* **icons:** new version of filter and renaming original ([#150](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/150)) ([1138223](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/1138223))
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
## 0.0.1-alpha.25 (2018-12-11)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
## 0.0.1-alpha.24 (2018-12-07)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
## 0.0.1-alpha.23 (2018-12-06)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
## 0.0.1-alpha.22 (2018-12-04)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
## 0.0.1-alpha.21 (2018-12-04)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### Bug Fixes
|
|
128
|
+
|
|
129
|
+
* **grid:** update grid based on feedback ([#108](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/108)) ([c6c9882](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/c6c9882))
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
## 0.0.1-alpha.20 (2018-11-29)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
## 0.0.1-alpha.19 (2018-11-29)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
## 0.0.1-alpha.18 (2018-11-28)
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
## 0.0.1-alpha.17 (2018-11-25)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
## 0.0.1-alpha.16 (2018-11-21)
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
## 0.0.1-alpha.15 (2018-11-21)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
## 0.0.1-alpha.14 (2018-11-20)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
## 0.0.1-alpha.13 (2018-11-19)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
## 0.0.1-alpha.12 (2018-11-18)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
## 0.0.1-alpha.11 (2018-11-18)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
## 0.0.1-alpha.10 (2018-11-18)
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
## 0.0.1-alpha.9 (2018-11-18)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
## 0.0.1-alpha.8 (2018-11-18)
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### Features
|
|
185
|
+
|
|
186
|
+
* **grid:** add grid implementation ([#63](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/63)) ([cadc583](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/cadc583))
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
## 0.0.1-alpha.7 (2018-11-14)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
## 0.0.1-alpha.5 (2018-11-14)
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
## 0.0.1-alpha.4 (2018-11-09)
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
## 0.0.1-alpha.3 (2018-11-09)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### Features
|
|
206
|
+
|
|
207
|
+
* **type:** update type package ([#35](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/35)) ([85c68ea](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/85c68ea))
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
## 0.0.1-alpha.2 (2018-10-02)
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
### Bug Fixes
|
|
215
|
+
|
|
216
|
+
* **icons-react:** update build process and add storybook support ([#34](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/34)) ([c27dbbc](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/c27dbbc))
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
# [10.0.0](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v10.0.0-rc.0...v10.0.0) (2019-03-29)
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
# [10.0.0-rc.0](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-beta.5...v10.0.0-rc.0) (2019-03-27)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
## [0.0.1-beta.5](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-beta.4...v0.0.1-beta.5) (2019-03-25)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
## [0.0.1-beta.4](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-beta.3...v0.0.1-beta.4) (2019-03-22)
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
## [0.0.1-beta.3](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-beta.2...v0.0.1-beta.3) (2019-03-22)
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
## [0.0.1-beta.2](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-beta.1...v0.0.1-beta.2) (2019-03-19)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
## [0.0.1-beta.1](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-beta.0...v0.0.1-beta.1) (2019-03-13)
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
### Features
|
|
250
|
+
|
|
251
|
+
* **grid:** update scss folder structure and mixins ([#396](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/396)) ([e336c1c](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/e336c1c))
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
## [0.0.1-beta.0](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.32...v0.0.1-beta.0) (2019-03-07)
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
## [0.0.1-alpha.32](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.31...v0.0.1-alpha.32) (2019-02-12)
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
### Features
|
|
263
|
+
|
|
264
|
+
* **grid:** add offset-0 class names ([#306](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/306)) ([ba62b60](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/ba62b60))
|
|
265
|
+
* **project:** add carbon namespace to public API ([#300](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/300)) ([1ae6f33](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/1ae6f33))
|
|
266
|
+
* **stylelint-config-elements:** add lint rule for unset usage ([c0ca2b1](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/c0ca2b1))
|
|
267
|
+
* **stylelint-config-elements:** add stylelint ([#333](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/333)) ([94df4a2](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/94df4a2))
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
## [0.0.1-alpha.31](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.30...v0.0.1-alpha.31) (2019-01-28)
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
## [0.0.1-alpha.30](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.29...v0.0.1-alpha.30) (2019-01-22)
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
## [0.0.1-alpha.29](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.28...v0.0.1-alpha.29) (2019-01-14)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
## [0.0.1-alpha.28](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.27...v0.0.1-alpha.28) (2019-01-11)
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
## [0.0.1-alpha.27](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.26...v0.0.1-alpha.27) (2019-01-10)
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
### Features
|
|
291
|
+
|
|
292
|
+
* **bundler:** add support for scss compilation ([#222](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/222)) ([5cfcdb8](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/5cfcdb8))
|
|
293
|
+
* **grid:** add full width grid modifier ([#207](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/207)) ([5f72216](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/5f72216))
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
## [0.0.1-alpha.26](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.25...v0.0.1-alpha.26) (2018-12-13)
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
### Features
|
|
301
|
+
|
|
302
|
+
* **grid:** add 2x1 aspect ratio class ([#178](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/178)) ([714c414](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/714c414))
|
|
303
|
+
* **icons:** new version of filter and renaming original ([#150](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/150)) ([1138223](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/1138223))
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
## [0.0.1-alpha.25](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.24...v0.0.1-alpha.25) (2018-12-11)
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
## [0.0.1-alpha.24](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.23...v0.0.1-alpha.24) (2018-12-07)
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
## [0.0.1-alpha.23](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.22...v0.0.1-alpha.23) (2018-12-06)
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
## [0.0.1-alpha.22](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.21...v0.0.1-alpha.22) (2018-12-04)
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
## [0.0.1-alpha.21](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.20...v0.0.1-alpha.21) (2018-12-04)
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
### Bug Fixes
|
|
327
|
+
|
|
328
|
+
* **grid:** update grid based on feedback ([#108](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/108)) ([c6c9882](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/c6c9882))
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
## [0.0.1-alpha.20](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.19...v0.0.1-alpha.20) (2018-11-29)
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
## [0.0.1-alpha.19](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.18...v0.0.1-alpha.19) (2018-11-29)
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
## [0.0.1-alpha.18](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.17...v0.0.1-alpha.18) (2018-11-28)
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
## [0.0.1-alpha.17](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.16...v0.0.1-alpha.17) (2018-11-25)
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
## [0.0.1-alpha.16](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.15...v0.0.1-alpha.16) (2018-11-21)
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
## [0.0.1-alpha.15](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.14...v0.0.1-alpha.15) (2018-11-21)
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
## [0.0.1-alpha.14](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.13...v0.0.1-alpha.14) (2018-11-20)
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
## [0.0.1-alpha.13](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.12...v0.0.1-alpha.13) (2018-11-19)
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
## [0.0.1-alpha.12](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.11...v0.0.1-alpha.12) (2018-11-18)
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
## [0.0.1-alpha.11](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.10...v0.0.1-alpha.11) (2018-11-18)
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
## [0.0.1-alpha.10](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.9...v0.0.1-alpha.10) (2018-11-18)
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
## [0.0.1-alpha.9](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.8...v0.0.1-alpha.9) (2018-11-18)
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
## [0.0.1-alpha.8](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.7...v0.0.1-alpha.8) (2018-11-18)
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
### Features
|
|
384
|
+
|
|
385
|
+
* **grid:** add grid implementation ([#63](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/63)) ([cadc583](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/cadc583))
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
## [0.0.1-alpha.7](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.5...v0.0.1-alpha.7) (2018-11-14)
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
## [0.0.1-alpha.5](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.4...v0.0.1-alpha.5) (2018-11-14)
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
## [0.0.1-alpha.4](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.3...v0.0.1-alpha.4) (2018-11-09)
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
## [0.0.1-alpha.3](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.2...v0.0.1-alpha.3) (2018-11-09)
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
### Features
|
|
405
|
+
|
|
406
|
+
* **type:** update type package ([#35](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/35)) ([85c68ea](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/85c68ea))
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
## [0.0.1-alpha.2](https://github.com/IBM/carbon-elements/tree/master/packages/grid/compare/v0.0.1-alpha.0...v0.0.1-alpha.2) (2018-10-02)
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
### Bug Fixes
|
|
414
|
+
|
|
415
|
+
* **icons-react:** update build process and add storybook support ([#34](https://github.com/IBM/carbon-elements/tree/master/packages/grid/issues/34)) ([c27dbbc](https://github.com/IBM/carbon-elements/tree/master/packages/grid/commit/c27dbbc))
|
package/LICENSE
CHANGED
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
APPENDIX: How to apply the Apache License to your work.
|
|
179
179
|
|
|
180
180
|
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
182
|
replaced with your own identifying information. (Don't include
|
|
183
183
|
the brackets!) The text should be enclosed in the appropriate
|
|
184
184
|
comment syntax for the file format. We also recommend that a
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright 2015 IBM Corp.
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
## Getting started
|
|
6
6
|
|
|
7
|
-
To install `@carbon/grid` in your project, you will need to run the
|
|
8
|
-
|
|
7
|
+
To install `@carbon/grid` in your project, you will need to run the following
|
|
8
|
+
command using [npm](https://www.npmjs.com/):
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
11
|
npm install -S @carbon/grid
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
If you prefer [Yarn](https://yarnpkg.com/en/), use the following
|
|
15
|
-
|
|
14
|
+
If you prefer [Yarn](https://yarnpkg.com/en/), use the following command
|
|
15
|
+
instead:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
18
|
yarn add @carbon/grid
|
|
@@ -20,17 +20,17 @@ yarn add @carbon/grid
|
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
|
-
`@carbon/grid` has three primitive class types to use in order to
|
|
24
|
-
|
|
23
|
+
`@carbon/grid` has three primitive class types to use in order to structure your
|
|
24
|
+
application. They include:
|
|
25
25
|
|
|
26
|
-
- `bx--grid`, defines the overall grid context and sets some useful
|
|
27
|
-
|
|
26
|
+
- `bx--grid`, defines the overall grid context and sets some useful attributes
|
|
27
|
+
like width and margin
|
|
28
28
|
- `bx--row`, defines a row of items in a grid
|
|
29
29
|
- `bx--col`, used to define individual columns
|
|
30
30
|
|
|
31
|
-
You can use a combination of these classes to build a layout. For
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
You can use a combination of these classes to build a layout. For example, if we
|
|
32
|
+
wanted a 4 column layout for a small breakpoint we could use the following
|
|
33
|
+
markup:
|
|
34
34
|
|
|
35
35
|
```html
|
|
36
36
|
<div class="bx--grid">
|
|
@@ -43,14 +43,14 @@ could use the following markup:
|
|
|
43
43
|
</div>
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
While this layout can work for some grid usage scenarios, we probably
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
While this layout can work for some grid usage scenarios, we probably will want
|
|
47
|
+
more control over how many columns our layout will span at each given
|
|
48
|
+
breakpoint.
|
|
49
49
|
|
|
50
|
-
By default, `@carbon/grid` uses the breakpoints defined in `@carbon/layout`.
|
|
51
|
-
and `max`. You can use each
|
|
52
|
-
specify the number of columns to span at a
|
|
53
|
-
example, we could rewrite the above example to be:
|
|
50
|
+
By default, `@carbon/grid` uses the breakpoints defined in `@carbon/layout`.
|
|
51
|
+
There are five breakpoints: `sm`, `md`, `lg`, `xlg`, and `max`. You can use each
|
|
52
|
+
one in combination with a column to specify the number of columns to span at a
|
|
53
|
+
given breakpoint. For example, we could rewrite the above example to be:
|
|
54
54
|
|
|
55
55
|
```html
|
|
56
56
|
<div class="bx--grid">
|
|
@@ -63,17 +63,21 @@ example, we could rewrite the above example to be:
|
|
|
63
63
|
</div>
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
The `.bx--col-sm-1` class names tells us that this `<div>` should only
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
The `.bx--col-sm-1` class names tells us that this `<div>` should only span one
|
|
67
|
+
column at our `sm` breakpoint. By default, as we scale beyond the breakpoint the
|
|
68
|
+
layout will still take up a percentage of the overall width.
|
|
69
|
+
|
|
70
|
+
## 📖 API Documentation
|
|
71
|
+
|
|
72
|
+
If you're looking for `@carbon/grid` API documentation, check out:
|
|
73
|
+
|
|
74
|
+
- [Sass](./docs/sass.md)
|
|
70
75
|
|
|
71
76
|
## 🙌 Contributing
|
|
72
77
|
|
|
73
|
-
We're always looking for contributors to help us fix bugs, build new
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
! 👀
|
|
78
|
+
We're always looking for contributors to help us fix bugs, build new features,
|
|
79
|
+
or help us improve the project documentation. If you're interested, definitely
|
|
80
|
+
check out our [Contributing Guide](/.github/CONTRIBUTING.md) ! 👀
|
|
77
81
|
|
|
78
82
|
## 📝 License
|
|
79
83
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/grid",
|
|
3
3
|
"description": "Grid for digital and software products using the Carbon Design System",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.2.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": "https://github.com/IBM/carbon-elements/tree/master/packages/grid",
|
|
7
7
|
"bugs": "https://github.com/IBM/carbon-elements/issues",
|
|
@@ -20,10 +20,17 @@
|
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
|
-
"scripts": {
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "yarn clean && bundler sassdoc 'scss/*.scss' && bundler inline && bundler check 'scss/*.scss'",
|
|
25
|
+
"clean": "rimraf scss/_inlined scss/vendor"
|
|
26
|
+
},
|
|
24
27
|
"dependencies": {
|
|
25
|
-
"@carbon/import-once": "10.
|
|
26
|
-
"@carbon/layout": "10.
|
|
28
|
+
"@carbon/import-once": "10.2.0",
|
|
29
|
+
"@carbon/layout": "10.2.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@carbon/bundler": "10.2.0",
|
|
33
|
+
"rimraf": "^2.6.3"
|
|
27
34
|
},
|
|
28
35
|
"eyeglass": {
|
|
29
36
|
"exports": false,
|
|
@@ -31,5 +38,5 @@
|
|
|
31
38
|
"sassDir": "scss",
|
|
32
39
|
"needs": "^1.3.0"
|
|
33
40
|
},
|
|
34
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "e71825a0cf44f6f41fee7d2b0dd9c57d7bda126a"
|
|
35
42
|
}
|
package/scss/12.scss
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2018, 2018
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@import 'mixins';
|
|
9
|
+
|
|
10
|
+
/// Overrides `$carbon--grid-breakpoints` to use a 12 column grid instead of the default 16
|
|
11
|
+
/// @type Map
|
|
12
|
+
/// @access public
|
|
13
|
+
/// @group @carbon/grid
|
|
14
|
+
$carbon--12-column-grid: map-merge(
|
|
15
|
+
$carbon--grid-breakpoints,
|
|
16
|
+
(
|
|
17
|
+
lg:
|
|
18
|
+
map-merge(
|
|
19
|
+
map-get($carbon--grid-breakpoints, lg),
|
|
20
|
+
(
|
|
21
|
+
columns: 12,
|
|
22
|
+
)
|
|
23
|
+
),
|
|
24
|
+
xlg:
|
|
25
|
+
map-merge(
|
|
26
|
+
map-get($carbon--grid-breakpoints, xlg),
|
|
27
|
+
(
|
|
28
|
+
columns: 12,
|
|
29
|
+
)
|
|
30
|
+
),
|
|
31
|
+
max:
|
|
32
|
+
map-merge(
|
|
33
|
+
map-get($carbon--grid-breakpoints, max),
|
|
34
|
+
(
|
|
35
|
+
columns: 12,
|
|
36
|
+
)
|
|
37
|
+
),
|
|
38
|
+
)
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
@include carbon--grid($breakpoints: $carbon--12-column-grid);
|