@khanacademy/wonder-blocks-dropdown 3.0.5 → 3.0.7
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 +26 -0
- package/dist/components/action-menu.js.flow +1 -1
- package/dist/components/multi-select.js.flow +7 -7
- package/dist/components/single-select.js.flow +7 -7
- package/dist/es/index.js +303 -388
- package/dist/index.js +303 -388
- package/package.json +11 -11
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-dropdown
|
|
2
2
|
|
|
3
|
+
## 3.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @khanacademy/wonder-blocks-clickable@3.0.7
|
|
8
|
+
- @khanacademy/wonder-blocks-icon@2.0.7
|
|
9
|
+
- @khanacademy/wonder-blocks-layout@2.0.7
|
|
10
|
+
- @khanacademy/wonder-blocks-modal@4.0.7
|
|
11
|
+
- @khanacademy/wonder-blocks-search-field@2.0.7
|
|
12
|
+
- @khanacademy/wonder-blocks-typography@2.0.7
|
|
13
|
+
|
|
14
|
+
## 3.0.6
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- c20f48f3: Don't transpile classes when building bundles
|
|
19
|
+
- Updated dependencies [c20f48f3]
|
|
20
|
+
- @khanacademy/wonder-blocks-clickable@3.0.6
|
|
21
|
+
- @khanacademy/wonder-blocks-core@5.0.4
|
|
22
|
+
- @khanacademy/wonder-blocks-icon@2.0.6
|
|
23
|
+
- @khanacademy/wonder-blocks-layout@2.0.6
|
|
24
|
+
- @khanacademy/wonder-blocks-modal@4.0.6
|
|
25
|
+
- @khanacademy/wonder-blocks-search-field@2.0.6
|
|
26
|
+
- @khanacademy/wonder-blocks-timing@3.0.2
|
|
27
|
+
- @khanacademy/wonder-blocks-typography@2.0.6
|
|
28
|
+
|
|
3
29
|
## 3.0.5
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -130,6 +130,6 @@ declare export default class ActionMenu extends React.Component<Props, State> {
|
|
|
130
130
|
handleClick: (e: SyntheticEvent<>) => void;
|
|
131
131
|
renderOpener(
|
|
132
132
|
numItems: number
|
|
133
|
-
): React.Element<
|
|
133
|
+
): React.Element<typeof DropdownOpener>;
|
|
134
134
|
render(): React.Node;
|
|
135
135
|
}
|
|
@@ -88,7 +88,7 @@ declare type Props = {|
|
|
|
88
88
|
* The items in this select.
|
|
89
89
|
*/
|
|
90
90
|
children?: Array<
|
|
91
|
-
React.Element<
|
|
91
|
+
React.Element<typeof OptionItem> | false | null | void
|
|
92
92
|
>,
|
|
93
93
|
|
|
94
94
|
/**
|
|
@@ -229,22 +229,22 @@ declare export default class MultiSelect extends React.Component<Props, State> {
|
|
|
229
229
|
handleSelectAll: () => void;
|
|
230
230
|
handleSelectNone: () => void;
|
|
231
231
|
getMenuText(
|
|
232
|
-
children: Array<React.Element<
|
|
232
|
+
children: Array<React.Element<typeof OptionItem>>
|
|
233
233
|
): string;
|
|
234
234
|
getShortcuts(numOptions: number): Array<DropdownItem>;
|
|
235
235
|
getMenuItems(
|
|
236
|
-
children: Array<React.Element<
|
|
236
|
+
children: Array<React.Element<typeof OptionItem>>
|
|
237
237
|
): Array<DropdownItem>;
|
|
238
238
|
mapOptionItemToDropdownItem: (
|
|
239
|
-
option: React.Element<
|
|
239
|
+
option: React.Element<typeof OptionItem>
|
|
240
240
|
) => DropdownItem;
|
|
241
241
|
handleOpenerRef: (node?: any) => void;
|
|
242
242
|
handleSearchTextChanged: (searchText: string) => void;
|
|
243
243
|
handleClick: (e: SyntheticEvent<>) => void;
|
|
244
244
|
renderOpener(
|
|
245
|
-
allChildren: Array<React.Element<
|
|
245
|
+
allChildren: Array<React.Element<typeof OptionItem>>
|
|
246
246
|
):
|
|
247
|
-
| React.Element<
|
|
248
|
-
| React.Element<
|
|
247
|
+
| React.Element<typeof DropdownOpener>
|
|
248
|
+
| React.Element<typeof SelectOpener>;
|
|
249
249
|
render(): React.Node;
|
|
250
250
|
}
|
|
@@ -83,7 +83,7 @@ declare type Props = {|
|
|
|
83
83
|
* The items in this select.
|
|
84
84
|
*/
|
|
85
85
|
children?: Array<
|
|
86
|
-
React.Element<
|
|
86
|
+
React.Element<typeof OptionItem> | false | null | void
|
|
87
87
|
>,
|
|
88
88
|
|
|
89
89
|
/**
|
|
@@ -235,13 +235,13 @@ declare export default class SingleSelect
|
|
|
235
235
|
handleOpenChanged: (opened: boolean) => void;
|
|
236
236
|
handleToggle: (selectedValue: string) => void;
|
|
237
237
|
mapOptionItemsToDropdownItems: (
|
|
238
|
-
children: Array<React.Element<
|
|
238
|
+
children: Array<React.Element<typeof OptionItem>>
|
|
239
239
|
) => Array<DropdownItem>;
|
|
240
240
|
filterChildren(
|
|
241
|
-
children: Array<React.Element<
|
|
242
|
-
): Array<React.Element<
|
|
241
|
+
children: Array<React.Element<typeof OptionItem>>
|
|
242
|
+
): Array<React.Element<typeof OptionItem>>;
|
|
243
243
|
getMenuItems(
|
|
244
|
-
children: Array<React.Element<
|
|
244
|
+
children: Array<React.Element<typeof OptionItem>>
|
|
245
245
|
): Array<DropdownItem>;
|
|
246
246
|
handleSearchTextChanged: (searchText: string) => void;
|
|
247
247
|
handleOpenerRef: (node?: any) => void;
|
|
@@ -249,7 +249,7 @@ declare export default class SingleSelect
|
|
|
249
249
|
renderOpener(
|
|
250
250
|
numItems: number
|
|
251
251
|
):
|
|
252
|
-
| React.Element<
|
|
253
|
-
| React.Element<
|
|
252
|
+
| React.Element<typeof DropdownOpener>
|
|
253
|
+
| React.Element<typeof SelectOpener>;
|
|
254
254
|
render(): React.Node;
|
|
255
255
|
}
|