Socket
Socket
Sign inDemoInstall

@khanacademy/wonder-blocks-layout

Package Overview
Dependencies
Maintainers
1
Versions
232
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@khanacademy/wonder-blocks-layout - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

131

dist/es/index.js

@@ -1,5 +0,74 @@

import { Component, createElement } from 'react';
import { createElement, Component } from 'react';
import { StyleSheet } from 'aphrodite';
import { View } from '@khanacademy/wonder-blocks-core';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
return Constructor;
}
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
writable: true,
configurable: true
}
});
if (superClass) _setPrototypeOf(subClass, superClass);
}
function _getPrototypeOf(o) {
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
}
function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
}
function _assertThisInitialized(self) {
if (self === void 0) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return self;
}
function _possibleConstructorReturn(self, call) {
if (call && (typeof call === "object" || typeof call === "function")) {
return call;
}
return _assertThisInitialized(self);
}
/**

@@ -11,12 +80,26 @@ * Expands to fill space between sibling components.

class Spring extends Component {
render() {
return createElement(View, {
"aria-hidden": "true",
style: styles.grow
});
var Spring =
/*#__PURE__*/
function (_React$Component) {
_inherits(Spring, _React$Component);
function Spring() {
_classCallCheck(this, Spring);
return _possibleConstructorReturn(this, _getPrototypeOf(Spring).apply(this, arguments));
}
}
const styles = StyleSheet.create({
_createClass(Spring, [{
key: "render",
value: function render() {
return createElement(View, {
"aria-hidden": "true",
style: styles.grow
});
}
}]);
return Spring;
}(Component);
var styles = StyleSheet.create({
grow: {

@@ -32,13 +115,27 @@ flexGrow: 1

*/
class Strut extends Component {
render() {
return createElement(View, {
"aria-hidden": "true",
style: strutStyle(this.props.size)
});
var Strut =
/*#__PURE__*/
function (_React$Component) {
_inherits(Strut, _React$Component);
function Strut() {
_classCallCheck(this, Strut);
return _possibleConstructorReturn(this, _getPrototypeOf(Strut).apply(this, arguments));
}
}
_createClass(Strut, [{
key: "render",
value: function render() {
return createElement(View, {
"aria-hidden": "true",
style: strutStyle(this.props.size)
});
}
}]);
const strutStyle = size => {
return Strut;
}(Component);
var strutStyle = function strutStyle(size) {
return {

@@ -45,0 +142,0 @@ width: size,

@@ -123,5 +123,23 @@ module.exports =

// CONCATENATED MODULE: ./packages/wonder-blocks-layout/components/spring.js
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
/**

@@ -133,12 +151,28 @@ * Expands to fill space between sibling components.

class spring_Spring extends external_react_["Component"] {
render() {
return external_react_["createElement"](wonder_blocks_core_["View"], {
"aria-hidden": "true",
style: styles.grow
});
var spring_Spring =
/*#__PURE__*/
function (_React$Component) {
_inherits(Spring, _React$Component);
function Spring() {
_classCallCheck(this, Spring);
return _possibleConstructorReturn(this, _getPrototypeOf(Spring).apply(this, arguments));
}
}
const styles = external_aphrodite_["StyleSheet"].create({
_createClass(Spring, [{
key: "render",
value: function render() {
return external_react_["createElement"](wonder_blocks_core_["View"], {
"aria-hidden": "true",
style: styles.grow
});
}
}]);
return Spring;
}(external_react_["Component"]);
var styles = external_aphrodite_["StyleSheet"].create({
grow: {

@@ -149,5 +183,23 @@ flexGrow: 1

// CONCATENATED MODULE: ./packages/wonder-blocks-layout/components/strut.js
function strut_typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { strut_typeof = function _typeof(obj) { return typeof obj; }; } else { strut_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return strut_typeof(obj); }
function strut_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function strut_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function strut_createClass(Constructor, protoProps, staticProps) { if (protoProps) strut_defineProperties(Constructor.prototype, protoProps); if (staticProps) strut_defineProperties(Constructor, staticProps); return Constructor; }
function strut_possibleConstructorReturn(self, call) { if (call && (strut_typeof(call) === "object" || typeof call === "function")) { return call; } return strut_assertThisInitialized(self); }
function strut_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function strut_getPrototypeOf(o) { strut_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return strut_getPrototypeOf(o); }
function strut_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) strut_setPrototypeOf(subClass, superClass); }
function strut_setPrototypeOf(o, p) { strut_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return strut_setPrototypeOf(o, p); }
/**

@@ -158,13 +210,29 @@ * A component for inserting fixed space between components.

*/
class strut_Strut extends external_react_["Component"] {
render() {
return external_react_["createElement"](wonder_blocks_core_["View"], {
"aria-hidden": "true",
style: strutStyle(this.props.size)
});
var strut_Strut =
/*#__PURE__*/
function (_React$Component) {
strut_inherits(Strut, _React$Component);
function Strut() {
strut_classCallCheck(this, Strut);
return strut_possibleConstructorReturn(this, strut_getPrototypeOf(Strut).apply(this, arguments));
}
}
strut_createClass(Strut, [{
key: "render",
value: function render() {
return external_react_["createElement"](wonder_blocks_core_["View"], {
"aria-hidden": "true",
style: strutStyle(this.props.size)
});
}
}]);
const strutStyle = size => {
return Strut;
}(external_react_["Component"]);
var strutStyle = function strutStyle(size) {
return {

@@ -171,0 +239,0 @@ width: size,

9

package.json
{
"name": "@khanacademy/wonder-blocks-layout",
"version": "1.0.9",
"version": "1.0.10",
"design": "v1",

@@ -16,7 +16,8 @@ "publishConfig": {

"dependencies": {
"@khanacademy/wonder-blocks-core": "^1.2.5",
"@khanacademy/wonder-blocks-spacing": "^2.0.10"
"@khanacademy/wonder-blocks-core": "^1.2.6",
"@khanacademy/wonder-blocks-spacing": "^2.0.11"
},
"devDependencies": {
"@khanacademy/wonder-blocks-button": "^2.2.3"
"@khanacademy/wonder-blocks-button": "^2.2.4",
"wb-dev-build-settings": "^0.0.2"
},

@@ -23,0 +24,0 @@ "peerDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc