@khanacademy/wonder-blocks-dropdown 5.4.1 → 5.4.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 +17 -0
- package/dist/es/index.js +2 -28
- package/dist/index.js +44 -68
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-dropdown
|
|
2
2
|
|
|
3
|
+
## 5.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 559e82d5: Update to build tooling, generating smaller output
|
|
8
|
+
- Updated dependencies [559e82d5]
|
|
9
|
+
- @khanacademy/wonder-blocks-cell@3.4.2
|
|
10
|
+
- @khanacademy/wonder-blocks-clickable@4.2.5
|
|
11
|
+
- @khanacademy/wonder-blocks-core@6.4.3
|
|
12
|
+
- @khanacademy/wonder-blocks-icon@4.1.3
|
|
13
|
+
- @khanacademy/wonder-blocks-layout@2.1.2
|
|
14
|
+
- @khanacademy/wonder-blocks-modal@5.1.8
|
|
15
|
+
- @khanacademy/wonder-blocks-search-field@2.2.20
|
|
16
|
+
- @khanacademy/wonder-blocks-timing@5.0.1
|
|
17
|
+
- @khanacademy/wonder-blocks-tokens@1.3.1
|
|
18
|
+
- @khanacademy/wonder-blocks-typography@2.1.14
|
|
19
|
+
|
|
3
20
|
## 5.4.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/es/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import _extends from '@babel/runtime/helpers/extends';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { StyleSheet } from 'aphrodite';
|
|
3
4
|
import { CompactCell, DetailCell } from '@khanacademy/wonder-blocks-cell';
|
|
4
5
|
import * as tokens from '@khanacademy/wonder-blocks-tokens';
|
|
5
6
|
import { spacing, color, mix, fade } from '@khanacademy/wonder-blocks-tokens';
|
|
6
7
|
import { LabelMedium, LabelSmall, LabelLarge } from '@khanacademy/wonder-blocks-typography';
|
|
8
|
+
import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/objectWithoutPropertiesLoose';
|
|
7
9
|
import { View, addStyle, IDProvider, useUniqueIdWithMock } from '@khanacademy/wonder-blocks-core';
|
|
8
10
|
import { Strut } from '@khanacademy/wonder-blocks-layout';
|
|
9
11
|
import { PhosphorIcon } from '@khanacademy/wonder-blocks-icon';
|
|
@@ -18,21 +20,6 @@ import { maybeGetPortalMountedModalHostElement } from '@khanacademy/wonder-block
|
|
|
18
20
|
import { detectOverflow } from '@popperjs/core';
|
|
19
21
|
import caretDownIcon from '@phosphor-icons/core/bold/caret-down-bold.svg';
|
|
20
22
|
|
|
21
|
-
function _extends() {
|
|
22
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
23
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
24
|
-
var source = arguments[i];
|
|
25
|
-
for (var key in source) {
|
|
26
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
27
|
-
target[key] = source[key];
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return target;
|
|
32
|
-
};
|
|
33
|
-
return _extends.apply(this, arguments);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
23
|
const keyCodes = {
|
|
37
24
|
tab: 9,
|
|
38
25
|
enter: 13,
|
|
@@ -155,19 +142,6 @@ const styles$9 = StyleSheet.create({
|
|
|
155
142
|
}
|
|
156
143
|
});
|
|
157
144
|
|
|
158
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
159
|
-
if (source == null) return {};
|
|
160
|
-
var target = {};
|
|
161
|
-
var sourceKeys = Object.keys(source);
|
|
162
|
-
var key, i;
|
|
163
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
164
|
-
key = sourceKeys[i];
|
|
165
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
166
|
-
target[key] = source[key];
|
|
167
|
-
}
|
|
168
|
-
return target;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
145
|
const Check = function Check(props) {
|
|
172
146
|
const {
|
|
173
147
|
selected
|
package/dist/index.js
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var _extends = require('@babel/runtime/helpers/extends');
|
|
5
6
|
var React = require('react');
|
|
6
7
|
var aphrodite = require('aphrodite');
|
|
7
8
|
var wonderBlocksCell = require('@khanacademy/wonder-blocks-cell');
|
|
8
9
|
var tokens = require('@khanacademy/wonder-blocks-tokens');
|
|
9
10
|
var wonderBlocksTypography = require('@khanacademy/wonder-blocks-typography');
|
|
11
|
+
var _objectWithoutPropertiesLoose = require('@babel/runtime/helpers/objectWithoutPropertiesLoose');
|
|
10
12
|
var wonderBlocksCore = require('@khanacademy/wonder-blocks-core');
|
|
11
13
|
var wonderBlocksLayout = require('@khanacademy/wonder-blocks-layout');
|
|
12
14
|
var wonderBlocksIcon = require('@khanacademy/wonder-blocks-icon');
|
|
@@ -24,45 +26,32 @@ var caretDownIcon = require('@phosphor-icons/core/bold/caret-down-bold.svg');
|
|
|
24
26
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
25
27
|
|
|
26
28
|
function _interopNamespace(e) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
if (e && e.__esModule) return e;
|
|
30
|
+
var n = Object.create(null);
|
|
31
|
+
if (e) {
|
|
32
|
+
Object.keys(e).forEach(function (k) {
|
|
33
|
+
if (k !== 'default') {
|
|
34
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
35
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return e[k]; }
|
|
38
|
+
});
|
|
39
|
+
}
|
|
36
40
|
});
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
n["default"] = e;
|
|
41
|
-
return Object.freeze(n);
|
|
41
|
+
}
|
|
42
|
+
n["default"] = e;
|
|
43
|
+
return Object.freeze(n);
|
|
42
44
|
}
|
|
43
45
|
|
|
46
|
+
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
44
47
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
45
48
|
var tokens__namespace = /*#__PURE__*/_interopNamespace(tokens);
|
|
49
|
+
var _objectWithoutPropertiesLoose__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutPropertiesLoose);
|
|
46
50
|
var checkIcon__default = /*#__PURE__*/_interopDefaultLegacy(checkIcon);
|
|
47
51
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
48
52
|
var SearchField__default = /*#__PURE__*/_interopDefaultLegacy(SearchField);
|
|
49
53
|
var caretDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(caretDownIcon);
|
|
50
54
|
|
|
51
|
-
function _extends() {
|
|
52
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
53
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
54
|
-
var source = arguments[i];
|
|
55
|
-
for (var key in source) {
|
|
56
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
57
|
-
target[key] = source[key];
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return target;
|
|
62
|
-
};
|
|
63
|
-
return _extends.apply(this, arguments);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
55
|
const keyCodes = {
|
|
67
56
|
tab: 9,
|
|
68
57
|
enter: 13,
|
|
@@ -121,7 +110,7 @@ class ActionItem extends React__namespace.Component {
|
|
|
121
110
|
const labelComponent = typeof label === "string" ? React__namespace.createElement(wonderBlocksTypography.LabelMedium, {
|
|
122
111
|
lang: lang,
|
|
123
112
|
style: styles$9.label
|
|
124
|
-
}, label) : React__namespace.cloneElement(label,
|
|
113
|
+
}, label) : React__namespace.cloneElement(label, _extends__default["default"]({
|
|
125
114
|
lang,
|
|
126
115
|
style: styles$9.label
|
|
127
116
|
}, label.props));
|
|
@@ -185,19 +174,6 @@ const styles$9 = aphrodite.StyleSheet.create({
|
|
|
185
174
|
}
|
|
186
175
|
});
|
|
187
176
|
|
|
188
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
189
|
-
if (source == null) return {};
|
|
190
|
-
var target = {};
|
|
191
|
-
var sourceKeys = Object.keys(source);
|
|
192
|
-
var key, i;
|
|
193
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
194
|
-
key = sourceKeys[i];
|
|
195
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
196
|
-
target[key] = source[key];
|
|
197
|
-
}
|
|
198
|
-
return target;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
177
|
const Check = function Check(props) {
|
|
202
178
|
const {
|
|
203
179
|
selected
|
|
@@ -312,10 +288,10 @@ class OptionItem extends React__namespace.Component {
|
|
|
312
288
|
subtitle2,
|
|
313
289
|
role
|
|
314
290
|
} = _this$props,
|
|
315
|
-
sharedProps =
|
|
291
|
+
sharedProps = _objectWithoutPropertiesLoose__default["default"](_this$props, _excluded$5);
|
|
316
292
|
const CheckComponent = this.getCheckComponent();
|
|
317
293
|
const defaultStyle = [styles$6.item, style];
|
|
318
|
-
return React__namespace.createElement(wonderBlocksCell.DetailCell,
|
|
294
|
+
return React__namespace.createElement(wonderBlocksCell.DetailCell, _extends__default["default"]({
|
|
319
295
|
disabled: disabled,
|
|
320
296
|
horizontalRule: horizontalRule,
|
|
321
297
|
rootStyle: parentComponent === "listbox" ? styles$6.listboxItem : defaultStyle,
|
|
@@ -527,13 +503,13 @@ class DropdownOpener extends React__namespace.Component {
|
|
|
527
503
|
"aria-haspopup": ariaHasPopUp,
|
|
528
504
|
id
|
|
529
505
|
} = this.props;
|
|
530
|
-
const renderedChildren = this.props.children(
|
|
506
|
+
const renderedChildren = this.props.children(_extends__default["default"]({}, eventState, {
|
|
531
507
|
text,
|
|
532
508
|
opened
|
|
533
509
|
}));
|
|
534
510
|
const childrenProps = renderedChildren.props;
|
|
535
511
|
const childrenTestId = this.getTestIdFromProps(childrenProps);
|
|
536
|
-
return React__namespace.cloneElement(renderedChildren,
|
|
512
|
+
return React__namespace.cloneElement(renderedChildren, _extends__default["default"]({}, clickableChildrenProps, {
|
|
537
513
|
disabled,
|
|
538
514
|
"aria-controls": ariaControls,
|
|
539
515
|
id,
|
|
@@ -578,7 +554,7 @@ class DropdownVirtualizedItem extends React__namespace.Component {
|
|
|
578
554
|
role,
|
|
579
555
|
ref
|
|
580
556
|
} = item;
|
|
581
|
-
return React__namespace.cloneElement(component,
|
|
557
|
+
return React__namespace.cloneElement(component, _extends__default["default"]({
|
|
582
558
|
style
|
|
583
559
|
}, populatedProps, {
|
|
584
560
|
key: index,
|
|
@@ -718,7 +694,7 @@ function modifyMaxHeight({
|
|
|
718
694
|
const [basePlacement] = state.placement.split("-");
|
|
719
695
|
const heightProp = basePlacement === "top" ? "top" : "bottom";
|
|
720
696
|
const maxHeight = height - overflow[heightProp] - y;
|
|
721
|
-
state.styles.popper =
|
|
697
|
+
state.styles.popper = _extends__default["default"]({}, state.styles.popper, {
|
|
722
698
|
maxHeight: `${maxHeight}px`,
|
|
723
699
|
["--popper-max-height"]: `${maxHeight}px`
|
|
724
700
|
});
|
|
@@ -997,7 +973,7 @@ class DropdownCore extends React__namespace.Component {
|
|
|
997
973
|
prevItems: this.props.items,
|
|
998
974
|
itemRefs: [],
|
|
999
975
|
sameItemsFocusable: false,
|
|
1000
|
-
labels:
|
|
976
|
+
labels: _extends__default["default"]({
|
|
1001
977
|
noResults: defaultLabels.noResults,
|
|
1002
978
|
someResults: defaultLabels.someSelected
|
|
1003
979
|
}, props.labels)
|
|
@@ -1037,7 +1013,7 @@ class DropdownCore extends React__namespace.Component {
|
|
|
1037
1013
|
}
|
|
1038
1014
|
if (this.props.labels !== prevProps.labels) {
|
|
1039
1015
|
this.setState({
|
|
1040
|
-
labels:
|
|
1016
|
+
labels: _extends__default["default"]({}, this.state.labels, this.props.labels)
|
|
1041
1017
|
});
|
|
1042
1018
|
}
|
|
1043
1019
|
}
|
|
@@ -1200,7 +1176,7 @@ class DropdownCore extends React__namespace.Component {
|
|
|
1200
1176
|
}
|
|
1201
1177
|
const focusIndex = focusCounter - 1;
|
|
1202
1178
|
const currentRef = this.state.itemRefs[focusIndex] ? this.state.itemRefs[focusIndex].ref : null;
|
|
1203
|
-
return React__namespace.cloneElement(component,
|
|
1179
|
+
return React__namespace.cloneElement(component, _extends__default["default"]({}, populatedProps, {
|
|
1204
1180
|
key: index,
|
|
1205
1181
|
onClick: () => {
|
|
1206
1182
|
this.handleItemClick(focusIndex, item);
|
|
@@ -1221,7 +1197,7 @@ class DropdownCore extends React__namespace.Component {
|
|
|
1221
1197
|
focusCounter += 1;
|
|
1222
1198
|
}
|
|
1223
1199
|
const focusIndex = focusCounter - 1;
|
|
1224
|
-
return
|
|
1200
|
+
return _extends__default["default"]({}, item, {
|
|
1225
1201
|
role: populatedProps.role || itemRole,
|
|
1226
1202
|
ref: item.focusable ? this.state.itemRefs[focusIndex] ? this.state.itemRefs[focusIndex].ref : null : null,
|
|
1227
1203
|
onClick: () => {
|
|
@@ -1402,7 +1378,7 @@ class ActionMenuOpenerCore extends React__namespace.Component {
|
|
|
1402
1378
|
opened,
|
|
1403
1379
|
"aria-label": ariaLabel
|
|
1404
1380
|
} = _this$props,
|
|
1405
|
-
restProps =
|
|
1381
|
+
restProps = _objectWithoutPropertiesLoose__default["default"](_this$props, _excluded$4);
|
|
1406
1382
|
const buttonColor = tokens.color.blue;
|
|
1407
1383
|
const buttonStyles = _generateStyles$1(buttonColor);
|
|
1408
1384
|
const disabled = disabledProp;
|
|
@@ -1410,7 +1386,7 @@ class ActionMenuOpenerCore extends React__namespace.Component {
|
|
|
1410
1386
|
const label = React__namespace.createElement(wonderBlocksTypography.LabelLarge, {
|
|
1411
1387
|
style: sharedStyles.text
|
|
1412
1388
|
}, children);
|
|
1413
|
-
return React__namespace.createElement(StyledButton$1,
|
|
1389
|
+
return React__namespace.createElement(StyledButton$1, _extends__default["default"]({
|
|
1414
1390
|
"aria-expanded": opened ? "true" : "false",
|
|
1415
1391
|
"aria-haspopup": "menu",
|
|
1416
1392
|
"aria-label": ariaLabel,
|
|
@@ -1582,7 +1558,7 @@ class ActionMenu extends React__namespace.Component {
|
|
|
1582
1558
|
populatedProps: {}
|
|
1583
1559
|
};
|
|
1584
1560
|
if (ActionItem.isClassOf(item)) {
|
|
1585
|
-
return
|
|
1561
|
+
return _extends__default["default"]({}, itemObject, {
|
|
1586
1562
|
populatedProps: {
|
|
1587
1563
|
indent: isOptionItemIncluded,
|
|
1588
1564
|
onClick: this.handleItemSelected
|
|
@@ -1590,7 +1566,7 @@ class ActionMenu extends React__namespace.Component {
|
|
|
1590
1566
|
});
|
|
1591
1567
|
} else if (OptionItem.isClassOf(item)) {
|
|
1592
1568
|
const selected = selectedValues ? selectedValues.includes(value) : false;
|
|
1593
|
-
return
|
|
1569
|
+
return _extends__default["default"]({}, itemObject, {
|
|
1594
1570
|
populatedProps: {
|
|
1595
1571
|
onToggle: this.handleOptionSelected,
|
|
1596
1572
|
selected,
|
|
@@ -1630,8 +1606,8 @@ class ActionMenu extends React__namespace.Component {
|
|
|
1630
1606
|
const {
|
|
1631
1607
|
opened
|
|
1632
1608
|
} = openerProps,
|
|
1633
|
-
eventState =
|
|
1634
|
-
return React__namespace.createElement(ActionMenuOpenerCore,
|
|
1609
|
+
eventState = _objectWithoutPropertiesLoose__default["default"](openerProps, _excluded$3);
|
|
1610
|
+
return React__namespace.createElement(ActionMenuOpenerCore, _extends__default["default"]({}, eventState, {
|
|
1635
1611
|
disabled: disabled,
|
|
1636
1612
|
opened: !!opened,
|
|
1637
1613
|
testId: testId
|
|
@@ -1729,11 +1705,11 @@ class SelectOpener extends React__namespace.Component {
|
|
|
1729
1705
|
open,
|
|
1730
1706
|
testId
|
|
1731
1707
|
} = _this$props,
|
|
1732
|
-
sharedProps =
|
|
1708
|
+
sharedProps = _objectWithoutPropertiesLoose__default["default"](_this$props, _excluded$2);
|
|
1733
1709
|
const stateStyles = _generateStyles(light, isPlaceholder, error);
|
|
1734
1710
|
const iconColor = light ? disabled || error ? "currentColor" : tokens__namespace.color.white : disabled ? tokens__namespace.color.offBlack32 : tokens__namespace.color.offBlack64;
|
|
1735
1711
|
const style = [styles$1.shared, stateStyles.default, disabled && stateStyles.disabled, !disabled && this.state.pressed && stateStyles.pressed];
|
|
1736
|
-
return React__namespace.createElement(StyledButton,
|
|
1712
|
+
return React__namespace.createElement(StyledButton, _extends__default["default"]({}, sharedProps, {
|
|
1737
1713
|
"aria-disabled": disabled,
|
|
1738
1714
|
"aria-expanded": open ? "true" : "false",
|
|
1739
1715
|
"aria-haspopup": "listbox",
|
|
@@ -2001,7 +1977,7 @@ class SingleSelect extends React__namespace.Component {
|
|
|
2001
1977
|
selectedValue,
|
|
2002
1978
|
testId
|
|
2003
1979
|
} = _this$props,
|
|
2004
|
-
sharedProps =
|
|
1980
|
+
sharedProps = _objectWithoutPropertiesLoose__default["default"](_this$props, _excluded$1);
|
|
2005
1981
|
const items = React__namespace.Children.toArray(children);
|
|
2006
1982
|
const selectedItem = items.find(option => option.props.value === selectedValue);
|
|
2007
1983
|
const menuText = selectedItem ? getLabel(selectedItem.props) : placeholder;
|
|
@@ -2018,7 +1994,7 @@ class SingleSelect extends React__namespace.Component {
|
|
|
2018
1994
|
ref: this.handleOpenerRef,
|
|
2019
1995
|
text: menuText,
|
|
2020
1996
|
opened: this.state.open
|
|
2021
|
-
}, opener) : React__namespace.createElement(SelectOpener,
|
|
1997
|
+
}, opener) : React__namespace.createElement(SelectOpener, _extends__default["default"]({}, sharedProps, {
|
|
2022
1998
|
"aria-controls": dropdownId,
|
|
2023
1999
|
disabled: isDisabled,
|
|
2024
2000
|
id: uniqueOpenerId,
|
|
@@ -2181,9 +2157,9 @@ class MultiSelect extends React__namespace.Component {
|
|
|
2181
2157
|
open: false,
|
|
2182
2158
|
searchText: "",
|
|
2183
2159
|
lastSelectedValues: [],
|
|
2184
|
-
labels:
|
|
2160
|
+
labels: _extends__default["default"]({}, defaultLabels, props.labels)
|
|
2185
2161
|
};
|
|
2186
|
-
this.labels =
|
|
2162
|
+
this.labels = _extends__default["default"]({}, defaultLabels, props.labels);
|
|
2187
2163
|
}
|
|
2188
2164
|
static getDerivedStateFromProps(props, state) {
|
|
2189
2165
|
return {
|
|
@@ -2193,7 +2169,7 @@ class MultiSelect extends React__namespace.Component {
|
|
|
2193
2169
|
componentDidUpdate(prevProps) {
|
|
2194
2170
|
if (this.props.labels !== prevProps.labels) {
|
|
2195
2171
|
this.setState({
|
|
2196
|
-
labels:
|
|
2172
|
+
labels: _extends__default["default"]({}, this.state.labels, this.props.labels)
|
|
2197
2173
|
});
|
|
2198
2174
|
}
|
|
2199
2175
|
}
|
|
@@ -2317,7 +2293,7 @@ class MultiSelect extends React__namespace.Component {
|
|
|
2317
2293
|
opener,
|
|
2318
2294
|
testId
|
|
2319
2295
|
} = _this$props,
|
|
2320
|
-
sharedProps =
|
|
2296
|
+
sharedProps = _objectWithoutPropertiesLoose__default["default"](_this$props, _excluded);
|
|
2321
2297
|
const {
|
|
2322
2298
|
noneSelected
|
|
2323
2299
|
} = this.state.labels;
|
|
@@ -2335,7 +2311,7 @@ class MultiSelect extends React__namespace.Component {
|
|
|
2335
2311
|
ref: this.handleOpenerRef,
|
|
2336
2312
|
text: menuText,
|
|
2337
2313
|
opened: this.state.open
|
|
2338
|
-
}, opener) : React__namespace.createElement(SelectOpener,
|
|
2314
|
+
}, opener) : React__namespace.createElement(SelectOpener, _extends__default["default"]({}, sharedProps, {
|
|
2339
2315
|
disabled: isDisabled,
|
|
2340
2316
|
id: uniqueOpenerId,
|
|
2341
2317
|
"aria-controls": dropdownId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-dropdown",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.2",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"description": "Dropdown variants for Wonder Blocks.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "^7.18.6",
|
|
19
|
-
"@khanacademy/wonder-blocks-cell": "^3.4.
|
|
20
|
-
"@khanacademy/wonder-blocks-clickable": "^4.2.
|
|
21
|
-
"@khanacademy/wonder-blocks-core": "^6.4.
|
|
22
|
-
"@khanacademy/wonder-blocks-icon": "^4.1.
|
|
23
|
-
"@khanacademy/wonder-blocks-layout": "^2.1.
|
|
24
|
-
"@khanacademy/wonder-blocks-modal": "^5.1.
|
|
25
|
-
"@khanacademy/wonder-blocks-search-field": "^2.2.
|
|
26
|
-
"@khanacademy/wonder-blocks-timing": "^5.0.
|
|
27
|
-
"@khanacademy/wonder-blocks-tokens": "^1.3.
|
|
28
|
-
"@khanacademy/wonder-blocks-typography": "^2.1.
|
|
19
|
+
"@khanacademy/wonder-blocks-cell": "^3.4.2",
|
|
20
|
+
"@khanacademy/wonder-blocks-clickable": "^4.2.5",
|
|
21
|
+
"@khanacademy/wonder-blocks-core": "^6.4.3",
|
|
22
|
+
"@khanacademy/wonder-blocks-icon": "^4.1.3",
|
|
23
|
+
"@khanacademy/wonder-blocks-layout": "^2.1.2",
|
|
24
|
+
"@khanacademy/wonder-blocks-modal": "^5.1.8",
|
|
25
|
+
"@khanacademy/wonder-blocks-search-field": "^2.2.20",
|
|
26
|
+
"@khanacademy/wonder-blocks-timing": "^5.0.1",
|
|
27
|
+
"@khanacademy/wonder-blocks-tokens": "^1.3.1",
|
|
28
|
+
"@khanacademy/wonder-blocks-typography": "^2.1.14"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@phosphor-icons/core": "^2.0.2",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"react-window": "^1.8.5"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@khanacademy/wonder-blocks-button": "^6.3.
|
|
43
|
-
"@khanacademy/wb-dev-build-settings": "^1.0.
|
|
42
|
+
"@khanacademy/wonder-blocks-button": "^6.3.6",
|
|
43
|
+
"@khanacademy/wb-dev-build-settings": "^1.0.1"
|
|
44
44
|
}
|
|
45
45
|
}
|