@khanacademy/wonder-blocks-cell 4.1.0 → 4.1.2
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 +30 -0
- package/dist/index.js +17 -9
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-cell
|
|
2
2
|
|
|
3
|
+
## 4.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [ed26d66]
|
|
8
|
+
- Updated dependencies [5655b9f]
|
|
9
|
+
- Updated dependencies [5655b9f]
|
|
10
|
+
- Updated dependencies [8f53293]
|
|
11
|
+
- Updated dependencies [051f0f8]
|
|
12
|
+
- Updated dependencies [8fc65a9]
|
|
13
|
+
- Updated dependencies [e1b78db]
|
|
14
|
+
- Updated dependencies [051f0f8]
|
|
15
|
+
- @khanacademy/wonder-blocks-core@12.2.0
|
|
16
|
+
- @khanacademy/wonder-blocks-tokens@5.0.0
|
|
17
|
+
- @khanacademy/wonder-blocks-clickable@6.1.2
|
|
18
|
+
- @khanacademy/wonder-blocks-layout@3.1.2
|
|
19
|
+
- @khanacademy/wonder-blocks-typography@3.1.2
|
|
20
|
+
|
|
21
|
+
## 4.1.1
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- ee8d95a: Rollback rollup version from v4 to v2 to prevent an issue with CJS builds in unit tests
|
|
26
|
+
- Updated dependencies [ee8d95a]
|
|
27
|
+
- @khanacademy/wonder-blocks-clickable@6.1.1
|
|
28
|
+
- @khanacademy/wonder-blocks-core@12.1.1
|
|
29
|
+
- @khanacademy/wonder-blocks-layout@3.1.1
|
|
30
|
+
- @khanacademy/wonder-blocks-tokens@4.2.1
|
|
31
|
+
- @khanacademy/wonder-blocks-typography@3.1.1
|
|
32
|
+
|
|
3
33
|
## 4.1.0
|
|
4
34
|
|
|
5
35
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var _objectWithoutPropertiesLoose = require('@babel/runtime/helpers/objectWithoutPropertiesLoose');
|
|
4
6
|
var React = require('react');
|
|
5
7
|
var wonderBlocksTypography = require('@khanacademy/wonder-blocks-typography');
|
|
@@ -10,7 +12,10 @@ var wonderBlocksCore = require('@khanacademy/wonder-blocks-core');
|
|
|
10
12
|
var wonderBlocksLayout = require('@khanacademy/wonder-blocks-layout');
|
|
11
13
|
var wonderBlocksTokens = require('@khanacademy/wonder-blocks-tokens');
|
|
12
14
|
|
|
13
|
-
function
|
|
15
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
|
+
|
|
17
|
+
function _interopNamespace(e) {
|
|
18
|
+
if (e && e.__esModule) return e;
|
|
14
19
|
var n = Object.create(null);
|
|
15
20
|
if (e) {
|
|
16
21
|
Object.keys(e).forEach(function (k) {
|
|
@@ -23,11 +28,14 @@ function _interopNamespaceDefault(e) {
|
|
|
23
28
|
}
|
|
24
29
|
});
|
|
25
30
|
}
|
|
26
|
-
n
|
|
31
|
+
n["default"] = e;
|
|
27
32
|
return Object.freeze(n);
|
|
28
33
|
}
|
|
29
34
|
|
|
30
|
-
var
|
|
35
|
+
var _objectWithoutPropertiesLoose__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutPropertiesLoose);
|
|
36
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
37
|
+
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
38
|
+
var Clickable__default = /*#__PURE__*/_interopDefaultLegacy(Clickable);
|
|
31
39
|
|
|
32
40
|
const CellMeasurements = {
|
|
33
41
|
cellMinHeight: wonderBlocksTokens.spacing.xxLarge_48,
|
|
@@ -80,7 +88,7 @@ const LeftAccessory = ({
|
|
|
80
88
|
return null;
|
|
81
89
|
}
|
|
82
90
|
return React__namespace.createElement(React__namespace.Fragment, null, React__namespace.createElement(wonderBlocksCore.View, {
|
|
83
|
-
style: [styles$1.accessory, disabled && styles$1.accessoryDisabled,
|
|
91
|
+
style: [styles$1.accessory, disabled && styles$1.accessoryDisabled, _extends__default["default"]({}, leftAccessoryStyle)]
|
|
84
92
|
}, leftAccessory), React__namespace.createElement(wonderBlocksLayout.Strut, {
|
|
85
93
|
size: CellMeasurements.accessoryHorizontalSpacing
|
|
86
94
|
}));
|
|
@@ -97,7 +105,7 @@ const RightAccessory = ({
|
|
|
97
105
|
return React__namespace.createElement(React__namespace.Fragment, null, React__namespace.createElement(wonderBlocksLayout.Strut, {
|
|
98
106
|
size: CellMeasurements.accessoryHorizontalSpacing
|
|
99
107
|
}), React__namespace.createElement(wonderBlocksCore.View, {
|
|
100
|
-
style: [styles$1.accessory, styles$1.accessoryRight, disabled && styles$1.accessoryDisabled,
|
|
108
|
+
style: [styles$1.accessory, styles$1.accessoryRight, disabled && styles$1.accessoryDisabled, _extends__default["default"]({}, rightAccessoryStyle), active && styles$1.accessoryActive]
|
|
101
109
|
}, rightAccessory));
|
|
102
110
|
};
|
|
103
111
|
function CellInner(props) {
|
|
@@ -146,7 +154,7 @@ const CellCore = props => {
|
|
|
146
154
|
rootStyle
|
|
147
155
|
} = props;
|
|
148
156
|
if (onClick || href) {
|
|
149
|
-
return (React__namespace.createElement(
|
|
157
|
+
return (React__namespace.createElement(Clickable__default["default"], {
|
|
150
158
|
disabled: disabled,
|
|
151
159
|
onClick: onClick,
|
|
152
160
|
href: href,
|
|
@@ -256,7 +264,7 @@ const CompactCell = function CompactCell(props) {
|
|
|
256
264
|
const {
|
|
257
265
|
title
|
|
258
266
|
} = props,
|
|
259
|
-
coreProps =
|
|
267
|
+
coreProps = _objectWithoutPropertiesLoose__default["default"](props, _excluded$1);
|
|
260
268
|
return React__namespace.createElement(CellCore, coreProps, typeof title === "string" ? React__namespace.createElement(wonderBlocksTypography.LabelMedium, null, title) : title);
|
|
261
269
|
};
|
|
262
270
|
|
|
@@ -281,8 +289,8 @@ const DetailCell = function DetailCell(props) {
|
|
|
281
289
|
subtitle1,
|
|
282
290
|
subtitle2
|
|
283
291
|
} = props,
|
|
284
|
-
coreProps =
|
|
285
|
-
return React__namespace.createElement(CellCore,
|
|
292
|
+
coreProps = _objectWithoutPropertiesLoose__default["default"](props, _excluded);
|
|
293
|
+
return React__namespace.createElement(CellCore, _extends__default["default"]({}, coreProps, {
|
|
286
294
|
innerStyle: styles.innerWrapper
|
|
287
295
|
}), React__namespace.createElement(Subtitle, {
|
|
288
296
|
subtitle: subtitle1,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-cell",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
"types": "dist/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@babel/runtime": "^7.24.5",
|
|
14
|
-
"@khanacademy/wonder-blocks-clickable": "6.1.
|
|
15
|
-
"@khanacademy/wonder-blocks-core": "12.
|
|
16
|
-
"@khanacademy/wonder-blocks-layout": "3.1.
|
|
17
|
-
"@khanacademy/wonder-blocks-tokens": "
|
|
18
|
-
"@khanacademy/wonder-blocks-typography": "3.1.
|
|
14
|
+
"@khanacademy/wonder-blocks-clickable": "6.1.2",
|
|
15
|
+
"@khanacademy/wonder-blocks-core": "12.2.0",
|
|
16
|
+
"@khanacademy/wonder-blocks-layout": "3.1.2",
|
|
17
|
+
"@khanacademy/wonder-blocks-tokens": "5.0.0",
|
|
18
|
+
"@khanacademy/wonder-blocks-typography": "3.1.2"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"aphrodite": "^1.2.5",
|
|
22
22
|
"react": "18.2.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@khanacademy/wb-dev-build-settings": "2.1.
|
|
25
|
+
"@khanacademy/wb-dev-build-settings": "2.1.1"
|
|
26
26
|
},
|
|
27
27
|
"author": "",
|
|
28
28
|
"license": "MIT",
|