@khanacademy/wonder-blocks-dropdown 10.0.0 → 10.0.1
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 +18 -0
- package/dist/es/index.js +10 -11
- package/dist/index.js +9 -10
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-dropdown
|
|
2
2
|
|
|
3
|
+
## 10.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e8ccf60: Update `borderRadius` styles to use new `border.radius` tokens
|
|
8
|
+
- Updated dependencies [e8ccf60]
|
|
9
|
+
- Updated dependencies [e8ccf60]
|
|
10
|
+
- Updated dependencies [e8ccf60]
|
|
11
|
+
- Updated dependencies [e8ccf60]
|
|
12
|
+
- @khanacademy/wonder-blocks-search-field@5.1.9
|
|
13
|
+
- @khanacademy/wonder-blocks-modal@7.1.9
|
|
14
|
+
- @khanacademy/wonder-blocks-cell@4.1.8
|
|
15
|
+
- @khanacademy/wonder-blocks-pill@3.1.8
|
|
16
|
+
- @khanacademy/wonder-blocks-tokens@7.0.0
|
|
17
|
+
- @khanacademy/wonder-blocks-announcer@1.0.1
|
|
18
|
+
- @khanacademy/wonder-blocks-clickable@7.0.1
|
|
19
|
+
- @khanacademy/wonder-blocks-layout@3.1.7
|
|
20
|
+
|
|
3
21
|
## 10.0.0
|
|
4
22
|
|
|
5
23
|
### Major Changes
|
package/dist/es/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { useId } from 'react';
|
|
4
4
|
import { StyleSheet } from 'aphrodite';
|
|
5
5
|
import { CompactCell, DetailCell } from '@khanacademy/wonder-blocks-cell';
|
|
6
|
-
import { spacing, semanticColor,
|
|
6
|
+
import { spacing, semanticColor, border, sizing, color, font } from '@khanacademy/wonder-blocks-tokens';
|
|
7
7
|
import { LabelMedium, LabelSmall, LabelLarge } from '@khanacademy/wonder-blocks-typography';
|
|
8
8
|
import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/objectWithoutPropertiesLoose';
|
|
9
9
|
import { View, addStyle, keys, Id, useOnMountEffect } from '@khanacademy/wonder-blocks-core';
|
|
@@ -139,7 +139,7 @@ const styles$b = StyleSheet.create({
|
|
|
139
139
|
minHeight: DROPDOWN_ITEM_HEIGHT,
|
|
140
140
|
touchAction: "manipulation",
|
|
141
141
|
":focus": {
|
|
142
|
-
borderRadius:
|
|
142
|
+
borderRadius: border.radius.radius_040,
|
|
143
143
|
outline: `${spacing.xxxxSmall_2}px solid ${semanticColor.focus.outer}`,
|
|
144
144
|
outlineOffset: -spacing.xxxxSmall_2
|
|
145
145
|
},
|
|
@@ -225,7 +225,7 @@ const styles$9 = StyleSheet.create({
|
|
|
225
225
|
minHeight: spacing.medium_16,
|
|
226
226
|
minWidth: spacing.medium_16,
|
|
227
227
|
height: spacing.medium_16,
|
|
228
|
-
borderRadius:
|
|
228
|
+
borderRadius: 3,
|
|
229
229
|
borderWidth: border.width.hairline,
|
|
230
230
|
borderStyle: "solid",
|
|
231
231
|
borderColor: theme$6.checkbox.color.default.border
|
|
@@ -360,7 +360,7 @@ OptionItem.defaultProps = {
|
|
|
360
360
|
};
|
|
361
361
|
OptionItem.__IS_OPTION_ITEM__ = true;
|
|
362
362
|
const focusedStyle = {
|
|
363
|
-
borderRadius:
|
|
363
|
+
borderRadius: border.radius.radius_040,
|
|
364
364
|
outline: `${spacing.xxxxSmall_2}px solid ${semanticColor.focus.outer}`,
|
|
365
365
|
outlineOffset: -spacing.xxxxSmall_2
|
|
366
366
|
};
|
|
@@ -1406,7 +1406,7 @@ const styles$6 = StyleSheet.create({
|
|
|
1406
1406
|
},
|
|
1407
1407
|
dropdown: {
|
|
1408
1408
|
backgroundColor: theme$3.dropdown.color.default.background,
|
|
1409
|
-
borderRadius: border.radius.
|
|
1409
|
+
borderRadius: border.radius.radius_040,
|
|
1410
1410
|
paddingTop: spacing.xxxSmall_4,
|
|
1411
1411
|
paddingBottom: spacing.xxxSmall_4,
|
|
1412
1412
|
border: `solid 1px ${theme$3.dropdown.color.default.border}`,
|
|
@@ -1510,7 +1510,7 @@ const sharedStyles = StyleSheet.create({
|
|
|
1510
1510
|
justifyContent: "center",
|
|
1511
1511
|
height: DROPDOWN_ITEM_HEIGHT,
|
|
1512
1512
|
border: "none",
|
|
1513
|
-
borderRadius:
|
|
1513
|
+
borderRadius: border.radius.radius_040,
|
|
1514
1514
|
cursor: "pointer",
|
|
1515
1515
|
outline: "none",
|
|
1516
1516
|
textDecoration: "none",
|
|
@@ -1550,8 +1550,7 @@ const sharedStyles = StyleSheet.create({
|
|
|
1550
1550
|
left: 0,
|
|
1551
1551
|
right: 0,
|
|
1552
1552
|
bottom: -1,
|
|
1553
|
-
background: "currentColor"
|
|
1554
|
-
borderRadius: border.radius.xSmall_2
|
|
1553
|
+
background: "currentColor"
|
|
1555
1554
|
}
|
|
1556
1555
|
},
|
|
1557
1556
|
press: {
|
|
@@ -1827,7 +1826,7 @@ const styles$4 = StyleSheet.create({
|
|
|
1827
1826
|
paddingLeft: spacing.medium_16,
|
|
1828
1827
|
paddingRight: spacing.small_12,
|
|
1829
1828
|
borderWidth: 0,
|
|
1830
|
-
borderRadius: border.radius.
|
|
1829
|
+
borderRadius: border.radius.radius_040,
|
|
1831
1830
|
borderStyle: "solid",
|
|
1832
1831
|
outline: "none",
|
|
1833
1832
|
textDecoration: "none",
|
|
@@ -3307,7 +3306,7 @@ const styles = StyleSheet.create({
|
|
|
3307
3306
|
maxWidth: "100%",
|
|
3308
3307
|
flexWrap: "wrap",
|
|
3309
3308
|
background: theme.combobox.color.default.background,
|
|
3310
|
-
borderRadius: border.radius.
|
|
3309
|
+
borderRadius: border.radius.radius_040,
|
|
3311
3310
|
border: `solid 1px ${theme.combobox.color.default.border}`,
|
|
3312
3311
|
paddingInline: spacing.xSmall_8
|
|
3313
3312
|
},
|
|
@@ -3342,7 +3341,7 @@ const styles = StyleSheet.create({
|
|
|
3342
3341
|
},
|
|
3343
3342
|
listbox: {
|
|
3344
3343
|
backgroundColor: theme.listbox.color.default.background,
|
|
3345
|
-
borderRadius: border.radius.
|
|
3344
|
+
borderRadius: border.radius.radius_040,
|
|
3346
3345
|
border: `solid ${border.width.hairline}px ${theme.listbox.color.default.border}`,
|
|
3347
3346
|
boxShadow: `0px ${spacing.xSmall_8}px ${spacing.xSmall_8}px 0px ${color.offBlack8}`,
|
|
3348
3347
|
maxHeight: "var(--popper-max-height)",
|
package/dist/index.js
CHANGED
|
@@ -174,7 +174,7 @@ const styles$b = aphrodite.StyleSheet.create({
|
|
|
174
174
|
minHeight: DROPDOWN_ITEM_HEIGHT,
|
|
175
175
|
touchAction: "manipulation",
|
|
176
176
|
":focus": {
|
|
177
|
-
borderRadius: wonderBlocksTokens.
|
|
177
|
+
borderRadius: wonderBlocksTokens.border.radius.radius_040,
|
|
178
178
|
outline: `${wonderBlocksTokens.spacing.xxxxSmall_2}px solid ${wonderBlocksTokens.semanticColor.focus.outer}`,
|
|
179
179
|
outlineOffset: -wonderBlocksTokens.spacing.xxxxSmall_2
|
|
180
180
|
},
|
|
@@ -260,7 +260,7 @@ const styles$9 = aphrodite.StyleSheet.create({
|
|
|
260
260
|
minHeight: wonderBlocksTokens.spacing.medium_16,
|
|
261
261
|
minWidth: wonderBlocksTokens.spacing.medium_16,
|
|
262
262
|
height: wonderBlocksTokens.spacing.medium_16,
|
|
263
|
-
borderRadius:
|
|
263
|
+
borderRadius: 3,
|
|
264
264
|
borderWidth: wonderBlocksTokens.border.width.hairline,
|
|
265
265
|
borderStyle: "solid",
|
|
266
266
|
borderColor: theme$6.checkbox.color.default.border
|
|
@@ -395,7 +395,7 @@ OptionItem.defaultProps = {
|
|
|
395
395
|
};
|
|
396
396
|
OptionItem.__IS_OPTION_ITEM__ = true;
|
|
397
397
|
const focusedStyle = {
|
|
398
|
-
borderRadius: wonderBlocksTokens.
|
|
398
|
+
borderRadius: wonderBlocksTokens.border.radius.radius_040,
|
|
399
399
|
outline: `${wonderBlocksTokens.spacing.xxxxSmall_2}px solid ${wonderBlocksTokens.semanticColor.focus.outer}`,
|
|
400
400
|
outlineOffset: -wonderBlocksTokens.spacing.xxxxSmall_2
|
|
401
401
|
};
|
|
@@ -1441,7 +1441,7 @@ const styles$6 = aphrodite.StyleSheet.create({
|
|
|
1441
1441
|
},
|
|
1442
1442
|
dropdown: {
|
|
1443
1443
|
backgroundColor: theme$3.dropdown.color.default.background,
|
|
1444
|
-
borderRadius: wonderBlocksTokens.border.radius.
|
|
1444
|
+
borderRadius: wonderBlocksTokens.border.radius.radius_040,
|
|
1445
1445
|
paddingTop: wonderBlocksTokens.spacing.xxxSmall_4,
|
|
1446
1446
|
paddingBottom: wonderBlocksTokens.spacing.xxxSmall_4,
|
|
1447
1447
|
border: `solid 1px ${theme$3.dropdown.color.default.border}`,
|
|
@@ -1545,7 +1545,7 @@ const sharedStyles = aphrodite.StyleSheet.create({
|
|
|
1545
1545
|
justifyContent: "center",
|
|
1546
1546
|
height: DROPDOWN_ITEM_HEIGHT,
|
|
1547
1547
|
border: "none",
|
|
1548
|
-
borderRadius: wonderBlocksTokens.
|
|
1548
|
+
borderRadius: wonderBlocksTokens.border.radius.radius_040,
|
|
1549
1549
|
cursor: "pointer",
|
|
1550
1550
|
outline: "none",
|
|
1551
1551
|
textDecoration: "none",
|
|
@@ -1585,8 +1585,7 @@ const sharedStyles = aphrodite.StyleSheet.create({
|
|
|
1585
1585
|
left: 0,
|
|
1586
1586
|
right: 0,
|
|
1587
1587
|
bottom: -1,
|
|
1588
|
-
background: "currentColor"
|
|
1589
|
-
borderRadius: wonderBlocksTokens.border.radius.xSmall_2
|
|
1588
|
+
background: "currentColor"
|
|
1590
1589
|
}
|
|
1591
1590
|
},
|
|
1592
1591
|
press: {
|
|
@@ -1862,7 +1861,7 @@ const styles$4 = aphrodite.StyleSheet.create({
|
|
|
1862
1861
|
paddingLeft: wonderBlocksTokens.spacing.medium_16,
|
|
1863
1862
|
paddingRight: wonderBlocksTokens.spacing.small_12,
|
|
1864
1863
|
borderWidth: 0,
|
|
1865
|
-
borderRadius: wonderBlocksTokens.border.radius.
|
|
1864
|
+
borderRadius: wonderBlocksTokens.border.radius.radius_040,
|
|
1866
1865
|
borderStyle: "solid",
|
|
1867
1866
|
outline: "none",
|
|
1868
1867
|
textDecoration: "none",
|
|
@@ -3342,7 +3341,7 @@ const styles = aphrodite.StyleSheet.create({
|
|
|
3342
3341
|
maxWidth: "100%",
|
|
3343
3342
|
flexWrap: "wrap",
|
|
3344
3343
|
background: theme.combobox.color.default.background,
|
|
3345
|
-
borderRadius: wonderBlocksTokens.border.radius.
|
|
3344
|
+
borderRadius: wonderBlocksTokens.border.radius.radius_040,
|
|
3346
3345
|
border: `solid 1px ${theme.combobox.color.default.border}`,
|
|
3347
3346
|
paddingInline: wonderBlocksTokens.spacing.xSmall_8
|
|
3348
3347
|
},
|
|
@@ -3377,7 +3376,7 @@ const styles = aphrodite.StyleSheet.create({
|
|
|
3377
3376
|
},
|
|
3378
3377
|
listbox: {
|
|
3379
3378
|
backgroundColor: theme.listbox.color.default.background,
|
|
3380
|
-
borderRadius: wonderBlocksTokens.border.radius.
|
|
3379
|
+
borderRadius: wonderBlocksTokens.border.radius.radius_040,
|
|
3381
3380
|
border: `solid ${wonderBlocksTokens.border.width.hairline}px ${theme.listbox.color.default.border}`,
|
|
3382
3381
|
boxShadow: `0px ${wonderBlocksTokens.spacing.xSmall_8}px ${wonderBlocksTokens.spacing.xSmall_8}px 0px ${wonderBlocksTokens.color.offBlack8}`,
|
|
3383
3382
|
maxHeight: "var(--popper-max-height)",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-dropdown",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"description": "Dropdown variants for Wonder Blocks.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@babel/runtime": "^7.24.5",
|
|
16
|
-
"@khanacademy/wonder-blocks-announcer": "1.0.
|
|
17
|
-
"@khanacademy/wonder-blocks-cell": "4.1.
|
|
18
|
-
"@khanacademy/wonder-blocks-clickable": "7.0.
|
|
16
|
+
"@khanacademy/wonder-blocks-announcer": "1.0.1",
|
|
17
|
+
"@khanacademy/wonder-blocks-cell": "4.1.8",
|
|
18
|
+
"@khanacademy/wonder-blocks-clickable": "7.0.1",
|
|
19
19
|
"@khanacademy/wonder-blocks-core": "12.2.1",
|
|
20
20
|
"@khanacademy/wonder-blocks-icon": "5.1.3",
|
|
21
|
-
"@khanacademy/wonder-blocks-layout": "3.1.
|
|
22
|
-
"@khanacademy/wonder-blocks-modal": "7.1.
|
|
23
|
-
"@khanacademy/wonder-blocks-pill": "3.1.
|
|
24
|
-
"@khanacademy/wonder-blocks-search-field": "5.1.
|
|
21
|
+
"@khanacademy/wonder-blocks-layout": "3.1.7",
|
|
22
|
+
"@khanacademy/wonder-blocks-modal": "7.1.9",
|
|
23
|
+
"@khanacademy/wonder-blocks-pill": "3.1.8",
|
|
24
|
+
"@khanacademy/wonder-blocks-search-field": "5.1.9",
|
|
25
25
|
"@khanacademy/wonder-blocks-timing": "7.0.2",
|
|
26
|
-
"@khanacademy/wonder-blocks-
|
|
27
|
-
"@khanacademy/wonder-blocks-
|
|
26
|
+
"@khanacademy/wonder-blocks-tokens": "7.0.0",
|
|
27
|
+
"@khanacademy/wonder-blocks-typography": "3.1.3"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@phosphor-icons/core": "^2.0.2",
|