@khanacademy/wonder-blocks-dropdown 11.0.3 → 12.0.0
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/.turbo/turbo-build$colon$css.log +1 -1
- package/CHANGELOG.md +193 -0
- package/dist/css/vars.css +6 -3
- package/dist/es/index.css +917 -0
- package/dist/es/index.css.map +1 -0
- package/dist/es/index.js +51 -27
- package/dist/index.css +917 -0
- package/dist/index.css.map +1 -0
- package/dist/index.js +55 -31
- package/dist/theme/default.d.ts +14 -0
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/syl-dark.d.ts +3 -0
- package/dist/theme/thunderblocks.d.ts +3 -0
- package/package.json +26 -19
package/dist/theme/default.d.ts
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The height of a dropdown item, in px. `DROPDOWN_ITEM_HEIGHT`
|
|
3
|
+
* (util/constants.ts) re-exports it for the JS that measures rows (the
|
|
4
|
+
* virtualized list and the popper's max-height padding), and `item.sizing`
|
|
5
|
+
* below turns it into the `--wb-c-dropdown-item-sizing-height` CSS variable,
|
|
6
|
+
* so the two can't drift apart.
|
|
7
|
+
*
|
|
8
|
+
* Defined here rather than in util/constants.ts because the token build loads
|
|
9
|
+
* this file on its own, and util/constants.ts pulls in the item components.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ITEM_HEIGHT = 40;
|
|
1
12
|
declare const _default: {
|
|
2
13
|
listbox: {
|
|
3
14
|
border: {
|
|
@@ -47,6 +58,9 @@ declare const _default: {
|
|
|
47
58
|
font: {
|
|
48
59
|
weight: number;
|
|
49
60
|
};
|
|
61
|
+
sizing: {
|
|
62
|
+
height: string;
|
|
63
|
+
};
|
|
50
64
|
};
|
|
51
65
|
};
|
|
52
66
|
export default _default;
|
package/dist/theme/index.d.ts
CHANGED
package/dist/theme/syl-dark.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Dropdown variants for Wonder Blocks.",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "12.0.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -19,35 +19,42 @@
|
|
|
19
19
|
"main": "dist/index.js",
|
|
20
20
|
"module": "dist/es/index.js",
|
|
21
21
|
"types": "dist/index.d.ts",
|
|
22
|
+
"sideEffects": [
|
|
23
|
+
"**/*.css"
|
|
24
|
+
],
|
|
22
25
|
"exports": {
|
|
23
26
|
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
24
28
|
"import": "./dist/es/index.js",
|
|
25
|
-
"require": "./dist/index.js"
|
|
26
|
-
|
|
29
|
+
"require": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./css": {
|
|
32
|
+
"import": "./dist/es/index.css",
|
|
33
|
+
"require": "./dist/index.css",
|
|
34
|
+
"default": "./dist/index.css"
|
|
27
35
|
},
|
|
28
36
|
"./styles.css": "./dist/css/vars.css"
|
|
29
37
|
},
|
|
30
38
|
"dependencies": {
|
|
31
|
-
"@khanacademy/wonder-blocks-
|
|
32
|
-
"@khanacademy/wonder-blocks-
|
|
33
|
-
"@khanacademy/wonder-blocks-
|
|
39
|
+
"@khanacademy/wonder-blocks-announcer": "1.1.3",
|
|
40
|
+
"@khanacademy/wonder-blocks-button": "12.0.0",
|
|
41
|
+
"@khanacademy/wonder-blocks-cell": "7.0.0",
|
|
42
|
+
"@khanacademy/wonder-blocks-clickable": "9.0.0",
|
|
34
43
|
"@khanacademy/wonder-blocks-config": "0.7.1",
|
|
35
|
-
"@khanacademy/wonder-blocks-
|
|
36
|
-
"@khanacademy/wonder-blocks-
|
|
37
|
-
"@khanacademy/wonder-blocks-icon": "
|
|
38
|
-
"@khanacademy/wonder-blocks-icon-button": "
|
|
39
|
-
"@khanacademy/wonder-blocks-modal": "
|
|
40
|
-
"@khanacademy/wonder-blocks-search-field": "
|
|
41
|
-
"@khanacademy/wonder-blocks-styles": "0.
|
|
44
|
+
"@khanacademy/wonder-blocks-core": "13.0.0",
|
|
45
|
+
"@khanacademy/wonder-blocks-form": "8.0.0",
|
|
46
|
+
"@khanacademy/wonder-blocks-icon": "7.0.0",
|
|
47
|
+
"@khanacademy/wonder-blocks-icon-button": "13.0.0",
|
|
48
|
+
"@khanacademy/wonder-blocks-modal": "9.0.0",
|
|
49
|
+
"@khanacademy/wonder-blocks-search-field": "6.0.0",
|
|
50
|
+
"@khanacademy/wonder-blocks-styles": "1.0.0",
|
|
42
51
|
"@khanacademy/wonder-blocks-timing": "7.1.0",
|
|
43
|
-
"@khanacademy/wonder-blocks-
|
|
44
|
-
"@khanacademy/wonder-blocks-
|
|
45
|
-
"@khanacademy/wonder-blocks-typography": "5.0.8"
|
|
52
|
+
"@khanacademy/wonder-blocks-tokens": "18.3.0",
|
|
53
|
+
"@khanacademy/wonder-blocks-typography": "6.0.0"
|
|
46
54
|
},
|
|
47
55
|
"peerDependencies": {
|
|
48
56
|
"@phosphor-icons/core": "^2.0.2",
|
|
49
57
|
"@popperjs/core": "^2.10.1",
|
|
50
|
-
"aphrodite": "^1.2.5",
|
|
51
58
|
"react": "18.2.0",
|
|
52
59
|
"react-dom": "18.2.0",
|
|
53
60
|
"react-popper": "^2.3.0",
|
|
@@ -57,8 +64,8 @@
|
|
|
57
64
|
"react-window": "^1.8.11"
|
|
58
65
|
},
|
|
59
66
|
"devDependencies": {
|
|
60
|
-
"@khanacademy/
|
|
61
|
-
"@khanacademy/
|
|
67
|
+
"@khanacademy/wb-dev-build-settings": "3.3.0",
|
|
68
|
+
"@khanacademy/wonder-blocks-labeled-field": "5.0.0"
|
|
62
69
|
},
|
|
63
70
|
"scripts": {
|
|
64
71
|
"build:css": "pnpm exec wonder-blocks-tokens .",
|