@khanacademy/wonder-blocks-grid 1.0.31 → 1.0.32
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
package/dist/index.js
CHANGED
|
@@ -538,7 +538,7 @@ function (module, __webpack_exports__, __webpack_require__) {
|
|
|
538
538
|
"b"]).map(spec => spec.query), Object.values(_util_specs_js__WEBPACK_IMPORTED_MODULE_2__[
|
|
539
539
|
/* MEDIA_MODAL_SPEC */
|
|
540
540
|
"c"]).map(spec => spec.query));
|
|
541
|
-
const mediaQueryLists = {}; // eslint-disable-next-line
|
|
541
|
+
const mediaQueryLists = {}; // eslint-disable-next-line ft-flow/require-exact-type
|
|
542
542
|
// If for some reason we're not able to resolve the current media size we
|
|
543
543
|
// fall back to this state.
|
|
544
544
|
|
|
@@ -692,6 +692,32 @@ function (module, __webpack_exports__, __webpack_require__) {
|
|
|
692
692
|
|
|
693
693
|
} // gen-snapshot-tests.js only understands `export default class ...`
|
|
694
694
|
|
|
695
|
+
/**
|
|
696
|
+
* ***NOTE: The MediaLayout component is being deprecated. Do not use this!!***
|
|
697
|
+
*
|
|
698
|
+
* MediaLayout is a container component that accepts a `styleSheets` object,
|
|
699
|
+
* whose keys are media sizes. It listens for changes to the current media
|
|
700
|
+
* size and passes the current `mediaSize`, `mediaSpec`, and `styles` to
|
|
701
|
+
* `children`, which is a render function taking those three values as an
|
|
702
|
+
* object.
|
|
703
|
+
*
|
|
704
|
+
* Valid keys for the `styleSheets` object are (in order of precedence):
|
|
705
|
+
* - `small`, `medium`, `large`
|
|
706
|
+
* - `mdOrSmaller`, `mdOrLarger`
|
|
707
|
+
* - `all`
|
|
708
|
+
*
|
|
709
|
+
* `MediaLayout` will merge style rules from multiple styles that match the
|
|
710
|
+
* current media query, e.g. `"(min-width: 1024px)"`.
|
|
711
|
+
*
|
|
712
|
+
* The `mediaSpec` is an object with one or more of the following keys:
|
|
713
|
+
* `small`, `medium`, or `large`. Each value contains the following data:
|
|
714
|
+
* - `query: string` e.g. "(min-width: 1024px)"
|
|
715
|
+
* - `totalColumns: number`
|
|
716
|
+
* - `gutterWidth: number`
|
|
717
|
+
* - `marginWidth: number`
|
|
718
|
+
* - `maxWidth: number`
|
|
719
|
+
*/
|
|
720
|
+
|
|
695
721
|
|
|
696
722
|
class MediaLayout extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] {
|
|
697
723
|
render() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-grid",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.32",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"author": "",
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@babel/runtime": "^7.
|
|
19
|
-
"@khanacademy/wonder-blocks-color": "^1.
|
|
18
|
+
"@babel/runtime": "^7.18.6",
|
|
19
|
+
"@khanacademy/wonder-blocks-color": "^1.2.0",
|
|
20
20
|
"@khanacademy/wonder-blocks-core": "^4.3.2",
|
|
21
21
|
"@khanacademy/wonder-blocks-spacing": "^3.0.5"
|
|
22
22
|
},
|
|
@@ -552,7 +552,7 @@ exports[`wonder-blocks-grid example 2 1`] = `
|
|
|
552
552
|
"margin": "0 auto",
|
|
553
553
|
},
|
|
554
554
|
"alignItems": "center",
|
|
555
|
-
"background": "#
|
|
555
|
+
"background": "#0b2149",
|
|
556
556
|
"borderBottom": "1px solid rgba(255,255,255,0.64)",
|
|
557
557
|
"borderStyle": "solid",
|
|
558
558
|
"borderWidth": 0,
|
|
@@ -632,7 +632,7 @@ exports[`wonder-blocks-grid example 2 1`] = `
|
|
|
632
632
|
"margin": "0 auto",
|
|
633
633
|
},
|
|
634
634
|
"alignItems": "center",
|
|
635
|
-
"background": "#
|
|
635
|
+
"background": "#0b2149",
|
|
636
636
|
"borderStyle": "solid",
|
|
637
637
|
"borderWidth": 0,
|
|
638
638
|
"boxSizing": "border-box",
|