@mapbox/assembly 1.3.0 → 1.5.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 DELETED
@@ -1,367 +0,0 @@
1
- # Changelog
2
-
3
- ## 1.3.0
4
-
5
- - [add] Add back `android` and `ios` (renamed from `apple`) icons.
6
-
7
- ## 1.2.1
8
-
9
- - [fix] Fix bug where `col col--auto` was taking content width into account when setting col size.
10
-
11
- ## 1.2.0
12
-
13
- - [internal] Clean up and update dependencies.
14
- - [fix] Fix bug with handle not appearing on `loading--dark` when using minified CSS.
15
- - [fix] Remove `flex-grow` from `col` in order to ensure, by default, `col` class behaves as expected when used with width classes like `w-1/2`. This fix does require adding the `col--auto` class to `col` when using without a width class.
16
-
17
- ## 1.1.0
18
-
19
- - [style change] Slightly saturate `darken` colors, and make disabled state colors legible against both light and dark backgrounds.
20
- - [style change] Use `-deep` modifiers for active/hover states instead of `-dark`.
21
- - [internal] Simplify internal color variables.
22
-
23
- ## 1.0.1
24
-
25
- - [fix] Fix bug where handle on `loading--dark` was not visible.
26
- - [fix] Fix issues with checkbox psuedo element size and positioning.
27
-
28
- ## 1.0.0
29
-
30
- - [add] New `wmax-{n}` values:
31
- - `wmax-1200`
32
- - `wmax-1800`
33
- - [breaking] Remove `col--{n}` & `col--off{'r' | 'l'}{n}` rules in favor of general purpose percentage based rules:
34
- - `w-1/12`, `mr-1/12`, `ml-1/12`
35
- - `w-1/6`, `mr-1/6`, `ml-1/6`
36
- - `w-1/4`, `mr-1/4`, `ml-1/4`
37
- - `w-1/3`, `mr-1/3`, `ml-1/3`
38
- - `w-5/12`, `mr-5/12`, `ml-5/12`
39
- - `w-1/2`, `mr-1/2`, `ml-1/2`
40
- - `w-7/12`, `mr-7/12`, `ml-7/12`
41
- - `w-2/3`, `mr-2/3`, `ml-2/3`
42
- - `w-3/4`, `mr-3/4`, `ml-3/4`
43
- - `w-5/6`, `mr-5/6`, `ml-5/6`
44
- - `w-11/12`, `mr-11/12`, `ml-11/12`
45
- - [add] New percentage-based viewport values:
46
- - `h-viewport-1/12`
47
- - `h-viewport-1/6`
48
- - `h-viewport-1/4`
49
- - `h-viewport-5/12`
50
- - `h-viewport-7/12`
51
- - `h-viewport-5/6`
52
- - `h-viewport-11/12`
53
- - [breaking] Rename `viewport-third` to `h-viewport-1/3`.
54
- - [breaking] Rename `viewport-half` to `h-viewport-1/2`.
55
- - [breaking] Rename `viewport-twothirds` to `h-viewport-2/3`.
56
- - [breaking] Remove `viewport-almost`.
57
- - [breaking] Remove `limiter` class.
58
- - [breaking] Remove `flex-basis: 0` from `col` class. Any elements using `col` without a width set will see visual differences.
59
- - [breaking] Remove `flex-child`, rename `flex-parent` to `flex`, rename `flex-parent-inline` to `inline-flex`, and rename all `flex-parent` and `flex-child` modifiers to match new scheme.
60
- - [breaking] Removes the following icons:
61
- - `adjust-stroke`
62
- - `android`
63
- - `apple`
64
- - `facebook`
65
- - `instagram`
66
- - `js`
67
- - `lifebouy`
68
- - `linkedin`
69
- - `nofolder`
70
- - `qt`
71
- - `slack`
72
- - `tooltip`
73
- - `unity`
74
- - `wechat`
75
- - [add] Add icons:
76
- - `boolean`
77
- - `eject`
78
- - `fast-forward`
79
- - `pause`
80
- - `play`
81
- - `sync`
82
- - [style change] Redraw all SVG icons.
83
- - [internal] Refactor internal color variables so there is one set of variables for default button and link colors, and another set of variables for form controls.
84
- - [style change] Adjust stroke widths for toggles, checkboxes, and radios from 2px to 1px.
85
- - [style change] Change default form control colors from blue to gray for all form types.
86
- - [style change] Increase inset around `switch--l` from 2px to 3px.
87
- - [style change] Reduce height of `toggle` form element from 36px to 30px, and height of `toggle--s` from 24px to 18px.
88
- - [style change] Remove bold text rule from toggle elements.
89
- - [style change] Adjust the styling of disabled form controls to better differentiate active disabled and inactive disabled states.
90
- - [breaking] Remove `btn--stroke--2` class.
91
- - [breaking] Allow `loading` spinners to be recolored and no longer set `margin: auto` on spinners. Breaking change because some layouts may be relying on `margin:auto`.
92
- - [add] Add new cursor classes for `cursor-grab` and `cursor-grabbing`.
93
- - [add] Add `Assembly.setFocusState` method to make it easier to programmatically change the value of `data-assembly-focus-control`.
94
- - [style change] Rework typographic scale. Numbers are in the format _(font-size/line-height)_:
95
-
96
- | Selector | Old value | New value |
97
- | -------- | :-------: | --------: |
98
- | .txt-h1 | 45px/54px | 36px/45px |
99
- | .txt-h2 | 35px/42px | 30px/36px |
100
- | .txt-h3 | 30px/36px | 24px/30px |
101
- | .txt-h4 | 18px/24px | 20px/25px |
102
- | .txt-h5 | 15px/18px | 16px/20px |
103
- | .txt-xl | 30px/45px | 30px/45px |
104
- | .txt-l | 18px/30px | 20px/30px |
105
- | .txt-m | 15px/24px | 16px/24px |
106
- | .txt-ms | N/A | 14px/21px |
107
- | .txt-s | 12px/18px | 12px/18px |
108
- | .txt-xs | 10px/15px | 10px/15px |
109
-
110
- - [style change] Add `font-display:swap` to all @font-face declarations.
111
- - [style change] Remove grow, and add y offset to `shadow` classes.
112
- - [breaking] Update browser compatibility targets, drop IE11 support.
113
- - [breaking] remove `txt-spacing4` class and add `txt-spacing05` class.
114
- - [breaking] renamed `scroll-*` classes to `overflow-*`.
115
- - [add] `sticky` position rule.
116
-
117
- ## 0.26.0
118
-
119
- - Add `drag` icon.
120
-
121
- ## 0.25.0
122
-
123
- - Add `horizon` icon.
124
-
125
- ## 0.24.0
126
-
127
- - Add `unlock` icon.
128
-
129
- ## 0.23.2
130
-
131
- - Fix unnecessary vector data in `history.svg` icon.
132
-
133
- ## 0.23.1
134
-
135
- - Add line-center icon.
136
-
137
- ## 0.23.0
138
-
139
- - [breaking] Remove `input--xs`, `select--xs`, and `btn--xs`. You should switch to the `--s` modifiers, which have been modified to merge the _best_ of `--s` and `--xs`.
140
- - [breaking] Drop support for Node 4 in custom build. **This has no effect on the client-side CSS or JS.**
141
- - [style change] Selects are now styled like inputs, instead of buttons.
142
- - [style change] Increase default horizontal padding on buttons and selects.
143
- - [style change] Increase default horizontal padding on buttons.
144
- - [style change] Scale down font sizes on toggle groups and small inputs & selects.
145
- - [style change] Switch active states are no longer dark.
146
- - [style change] Toggle groups have metrics that are more similar to buttons.
147
- - [add] `toggle--s` style.
148
- - [add] Add `switch--l`, for large switches.
149
-
150
- ## 0.22.0
151
-
152
- - [breaking] Fonts are no longer distributed with each version. Instead, fonts are served from `https://api.mapbox.com/mapbox-assembly/fonts/*` and referenced from the CSS with absolute URLs.
153
-
154
- ## 0.21.3
155
-
156
- - [fix] Set `border: 0` in `reset.css`, instead of `border: none`.
157
- Fixes an obscure bug where if you used the unminified CSS and set a `border-{side}` class on a `btn`, you'd see unwanted thick borders on all sides except the one you specified.
158
-
159
- ## 0.21.2
160
-
161
- - [fix] Avoid a PostCSS warning about `from` not being set.
162
-
163
- ## 0.21.1
164
-
165
- - [fix] Clean up and update dependencies.
166
-
167
- ## 0.21.0
168
-
169
- - Added fade-in-out animation.
170
- - [fix] Fixing the unity svg.
171
- - [fix] Updates examples to use changed classname.
172
-
173
- ## 0.20.0
174
-
175
- - Add filter, flame, instagram, qT icons.
176
- - Vertically center chevron icons.
177
- - [fix] Add height and width to checkbox icons in `.checkbox` class so check icons are the right size.
178
- - [fix] On checkbox, swich, and radio components, set cursor style on the form element, rather than form container, for correct accurate cursor state when form element is disabled.
179
-
180
- ## 0.19.0
181
-
182
- - [fix] Add `border-radius:0` to button reset to address recent changes in Chrome's default button style.
183
- - [breaking] Remove buggy `icon-inliner` class.
184
- - [breaking] Remove `icon--s` and `icon--l` classes.
185
- - [breaking] change default icon size to 1em x 1em
186
- - [style change] Remove hover states from radio, and checkbox, toggle form components.
187
- - [breaking] Refactor line heights and text sizes for form components.
188
- - [breaking] input and textarea components now use box-shadow to render borders, not border.
189
- - Adds `--xs` modifier classes to input, textarea, and select form components.
190
- - Add disabled styling to button elements with disabled property that have the `link` class.
191
- - [breaking] refactor border rules so they work as expected with media queries, add `border-{direction}--2` rules.
192
- - [breaking] remove some rarely used icons:
193
- - antialias
194
- - land
195
- - landuse
196
- - levels
197
- - line-miter-limit
198
- - line-round-limit
199
- - minus-document
200
- - plus-document
201
- - ribbon
202
- - Add `no-print` class to hide content when printing webpages
203
- - [fix] ensure disabled buttons show default cursor, not pointer cursor.
204
- - [breaking] rename `clip` to `scroll-hidden`.
205
- - [fix] remove unecessary `!important` declarations on `:disabled`, and loading rules.
206
-
207
- ## 0.18.0
208
-
209
- - [style change] make small range input visually smaller. Doesn't change the metrics of the input, so this is not a breaking change.
210
-
211
- ## 0.17.0
212
-
213
- - [style change] Removed border from disabled buttons.
214
- - [add] Add `-webkit-overflow-scrolling: touch` to `scroll-auto` for momentum scrolling on iOS.
215
- - [fix] Set `display: block` on the `main` tag, fixing possible bugs in IE.
216
- - [breaking] Changed browser support list to more precisely reflect our intentions:
217
- - last 4 Chrome versions
218
- - last 4 Firefox versions
219
- - last 4 Safari versions
220
- - iOS >= 7
221
- - Android >= 4.4
222
- - IE >= 11
223
- - [breaking] Update to PostCSS 6. If you are using a custom build, this might affect you, especially if you use a custom `browsersList` value, because Browserslist 2 (dependency of PostCSS 6) involves some breaking changes (usually it means you will end up supporting more browsers than you intended).
224
-
225
- ## 0.16.0
226
-
227
- - Add mobile conditions for `events-{none|all}`
228
- - [breaking] Name change of `select-none` & `select-text` to `selectable` & `unselectable`
229
- - Add mobile conditions for `selectable` & `unselectable`
230
-
231
- ## 0.15.0
232
-
233
- - Add `align-b` class to vertically align inline inline or table-cell elements to the bottom.
234
- - Change defualt behavior of the `col` class – `col`s in a grid now stretch to fill all the space, each `col` occupying equal space unless `col--{size}` modifiers are used.
235
- - Adds `col--auto` modifier to imitate `col` default behavior. Useful for media query overrides of `col--{size}` rules.
236
- - Fixes bug that lead to incorrect generation of `hoverBorder`, `hoverColor`, and `hoverBackground` color variants.
237
-
238
- ## 0.14.0
239
-
240
- - Adds new 'limiter' class for setting max page width across screen sizes.
241
- - [breaking] Significantly refactors layout scale to be more consistent across different properties and to increment more predictibly. Removes `48`, `72`, `96`, `420`, `480`, `720`, and `960` values for all properties that had them. Adds `60`, `120` to all properties. Adds `600` value to height and width properties. Adds negative margins to match all positive margin values.
242
- - Adds missing `--dark` modifiers to some typography rules.
243
- - Stroked buttons and select elements now have a 1px stroke by default.
244
- - Adds new `btn--stroked--2` and `select--stroked--2` modifier classes to create stroked buttons and select elements that have 2px strokes.
245
- - [internal only] Renames `neutral` variables to more meaningful `disabled-{type}-interactive` variables.
246
- - Darken the `gray-faint` color to `#e5e5e5` so it's legible on a wider range of monitors.
247
- - [breaking] Remove teal color variations.
248
- - Refactor range inputs to use currentColor for coloring, which save space
249
- - [breaking] Remove `darken5` and `lighten5` color variations to save space and encourage more accessible design.
250
- - [breaking] Remove `p{n}` and `m{n}` rules.
251
- - [breaking] Limit the possible colors available for form elements as well as `--on-active` and `--on-hover` modifiers for accessibility reasons and to save size. `-faint` or `-light` form elements are no longer available for _any element_, and `darken10` and `darken10` are no longer available for any for element except buttons.
252
- - Add distinct hover states for active checkboxes and radio inputs.
253
- - Redesign checkbox active state to be clearer, more conventional.
254
- - Add `select--xs` class.
255
- - Fix bug with browser prefixing to cover the correct browsers.
256
- - Add color and hover states by default to links inside `.prose`.
257
- - Fix visual bug with `txt-abbr` rule.
258
- - Update version of Open Sans to fix regular weight / bold weight line heighht differences.
259
- - Fix bug with `animation-spin` utility.
260
-
261
- ## 0.13.1-2
262
-
263
- - Fix syntax of Browserslist for Autoprefixer.
264
-
265
- ## 0.13.0
266
-
267
- - Add `Assembly.createIcon`, `Assembly.changeIcon`, and `Assembly.iconExists` functions to assembly.js
268
- - Changed `mapbox` icon to reflect new branding.
269
- - Changed `options` icon to a larger revision.
270
- - Add negative margin classes for all margin class variants.
271
- - Add linting improvements to JS and CSS.
272
- - Add various documentation improvements.
273
- - Add shadow class automation.
274
-
275
- ## 0.12.0
276
-
277
- - Add media query variants for bleed classes (e.g. `bleed-r-ml`).
278
- - Add `unbleed` class.
279
- - Add more browser prefixes, so more browsers can take advantage of flex classes.
280
- - Add `flex-parent--space-between-main` class.
281
- - Add options icon.
282
-
283
- ## 0.11.0
284
-
285
- - Rework typographic scale to have separate headline rules (`txt-h1`, `txt-h2`, `txt-h3`, `txt-h4`, `txt-h5`) from body text rules (`txt-xl`, `txt-l`, `txt-m`, `txt-s`, `txt-xs`). Headline rules have tighter line height than body text rules.
286
- - Add new `btn--pill-stroke` rule to make sure combined stroked/filled button pills look good.
287
- - Fix padding on table elements.
288
- - Make `-dark` colors darker.
289
- - Fix bug with appearance of disabled select item in FF.
290
-
291
- ## 0.10.1
292
-
293
- - Remove `a:hover { box-shadow: none }` from reset.
294
-
295
- ## 0.10.0
296
-
297
- - Rework buttons so their heights fall on 6px vertical grid when extra vertical padding is applied.
298
-
299
- ## 0.9.1
300
-
301
- - Move media query class names (e.g. `m6-ml`) to the bottom of the generated stylesheets, fixing some source-order-caused bugs.
302
-
303
- ## 0.9.0
304
-
305
- - Change default font size to 15px, change txt-l font size to 18px.
306
-
307
- ## 0.8.1
308
-
309
- - Fix bug where custom colors in custom builds were being ignored.
310
- - Add `transition` class to make any element have animatable transitions.
311
-
312
- ## 0.8.0
313
-
314
- - Overhaul typographic scale (classes remain the same).
315
- - Add `scroll-styled` class.
316
- - Add `txt-spacing1` class.
317
-
318
- ## 0.7.0
319
-
320
- - Add `transition` class.
321
- - Allow `txt-{size}` classes to override the font-size set by `txt-mono`.
322
-
323
- ## 0.6.0
324
-
325
- - Add `flex-parent--column-reverse`, `flex-parent--row`, and `flex-parent--row-reverse`.
326
- - Add `txt-strike`, and support for corresponding elements `<del>` and `<s>` within `prose`.
327
- - Simplify toggles, including the removal of default padding.
328
- - Remove `at` icon.
329
- - Add `extrusion` icon.
330
- - Fix bug when combining `grid--gut*` media query classes with `col` media query classes.
331
- - Fix font inheritance of `select`.
332
- - Change focus-outline control to use a data attribute on the document element instead of a class name, to avoid accidental overwriting.
333
- - Change `flex-parent--justify-end` to `flex-parent--end-main`.
334
- - Add `flex-parent--end-cross`.
335
- - Add `w-auto`, `wmax-none`, and `hmax-none`.
336
-
337
- ## 0.5.0
338
-
339
- - Add `flex-child--no-shrink` class, which is essential after the changes in v0.4.0.
340
-
341
- ## 0.4.0
342
-
343
- - Remove `flex-shrink: 0` from `flex-child`. This changes the way that flex children are laid out when they have wide content. The new pattern is, hopefully, more intuitive.
344
- - Rename `alpha*` classes to `opacity*`.
345
- - Add `chevron-up`, `chevron-down`, `chevron-left`, and `chevron-right` icons.
346
-
347
- ## 0.3.0
348
-
349
- - Add `height: auto` with `h-auto`.
350
- - Fix bug with grid classes.
351
- - Add media queries for `round` rules.
352
- - Fix bugs with button pills.
353
- - Remove hover states from selects and textareas.
354
- - Make icons `display: block`.
355
- - Add negative margin classes.
356
- - Make `input` and `textarea` full width by default.
357
- - Various other small improvements.
358
-
359
- ## 0.2.0
360
-
361
- - Round table corners by default.
362
- - Make default form colors more practical.
363
- - Make `prose` default text size customizable with `txt-{size}` classes.
364
-
365
- ## 0.1.0
366
-
367
- - Start this changelog.