@khanacademy/wonder-blocks-dropdown 10.0.1 → 10.0.3
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 +32 -0
- package/dist/es/index.js +6 -6
- package/dist/index.js +6 -6
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-dropdown
|
|
2
2
|
|
|
3
|
+
## 10.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [2656fd4]
|
|
8
|
+
- Updated dependencies [7bbf311]
|
|
9
|
+
- Updated dependencies [6018552]
|
|
10
|
+
- Updated dependencies [7bbf311]
|
|
11
|
+
- Updated dependencies [7f79943]
|
|
12
|
+
- @khanacademy/wonder-blocks-tokens@9.0.0
|
|
13
|
+
- @khanacademy/wonder-blocks-pill@3.1.10
|
|
14
|
+
- @khanacademy/wonder-blocks-cell@4.1.10
|
|
15
|
+
- @khanacademy/wonder-blocks-clickable@7.0.3
|
|
16
|
+
- @khanacademy/wonder-blocks-layout@3.1.9
|
|
17
|
+
- @khanacademy/wonder-blocks-modal@7.1.11
|
|
18
|
+
- @khanacademy/wonder-blocks-search-field@5.1.11
|
|
19
|
+
|
|
20
|
+
## 10.0.2
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- e63adea: Update `border.width` tokens to use new naming conventions.
|
|
25
|
+
- Updated dependencies [e63adea]
|
|
26
|
+
- Updated dependencies [e63adea]
|
|
27
|
+
- @khanacademy/wonder-blocks-tokens@8.0.0
|
|
28
|
+
- @khanacademy/wonder-blocks-clickable@7.0.2
|
|
29
|
+
- @khanacademy/wonder-blocks-cell@4.1.9
|
|
30
|
+
- @khanacademy/wonder-blocks-layout@3.1.8
|
|
31
|
+
- @khanacademy/wonder-blocks-modal@7.1.10
|
|
32
|
+
- @khanacademy/wonder-blocks-pill@3.1.9
|
|
33
|
+
- @khanacademy/wonder-blocks-search-field@5.1.10
|
|
34
|
+
|
|
3
35
|
## 10.0.1
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
package/dist/es/index.js
CHANGED
|
@@ -226,7 +226,7 @@ const styles$9 = StyleSheet.create({
|
|
|
226
226
|
minWidth: spacing.medium_16,
|
|
227
227
|
height: spacing.medium_16,
|
|
228
228
|
borderRadius: 3,
|
|
229
|
-
borderWidth: border.width.
|
|
229
|
+
borderWidth: border.width.thin,
|
|
230
230
|
borderStyle: "solid",
|
|
231
231
|
borderColor: theme$6.checkbox.color.default.border
|
|
232
232
|
},
|
|
@@ -1871,9 +1871,9 @@ const _generateStyles = (placeholder, error) => {
|
|
|
1871
1871
|
const actionType = error ? "destructive" : "progressive";
|
|
1872
1872
|
const action = semanticColor.action.secondary[actionType];
|
|
1873
1873
|
const sharedOutlineStyling = {
|
|
1874
|
-
outlineOffset:
|
|
1874
|
+
outlineOffset: `calc(${border.width.medium} * -1)`,
|
|
1875
1875
|
outlineStyle: "solid",
|
|
1876
|
-
outlineWidth: border.width.
|
|
1876
|
+
outlineWidth: border.width.medium
|
|
1877
1877
|
};
|
|
1878
1878
|
const focusStyling = _extends({}, sharedOutlineStyling, {
|
|
1879
1879
|
outlineColor: semanticColor.focus.outer
|
|
@@ -1891,13 +1891,13 @@ const _generateStyles = (placeholder, error) => {
|
|
|
1891
1891
|
default: {
|
|
1892
1892
|
background: currentState.background,
|
|
1893
1893
|
borderColor: currentState.border,
|
|
1894
|
-
borderWidth: border.width.
|
|
1894
|
+
borderWidth: border.width.thin,
|
|
1895
1895
|
color: placeholder ? semanticColor.text.secondary : currentState.foreground,
|
|
1896
1896
|
":hover:not([aria-disabled=true])": hoverStyling,
|
|
1897
1897
|
["@media not (hover: hover)"]: {
|
|
1898
1898
|
":hover:not([aria-disabled=true])": {
|
|
1899
1899
|
borderColor: currentState.border,
|
|
1900
|
-
borderWidth: border.width.
|
|
1900
|
+
borderWidth: border.width.thin,
|
|
1901
1901
|
paddingLeft: spacing.medium_16,
|
|
1902
1902
|
paddingRight: spacing.small_12
|
|
1903
1903
|
}
|
|
@@ -3342,7 +3342,7 @@ const styles = StyleSheet.create({
|
|
|
3342
3342
|
listbox: {
|
|
3343
3343
|
backgroundColor: theme.listbox.color.default.background,
|
|
3344
3344
|
borderRadius: border.radius.radius_040,
|
|
3345
|
-
border: `solid ${border.width.
|
|
3345
|
+
border: `solid ${border.width.thin} ${theme.listbox.color.default.border}`,
|
|
3346
3346
|
boxShadow: `0px ${spacing.xSmall_8}px ${spacing.xSmall_8}px 0px ${color.offBlack8}`,
|
|
3347
3347
|
maxHeight: "var(--popper-max-height)",
|
|
3348
3348
|
overflowY: "auto"
|
package/dist/index.js
CHANGED
|
@@ -261,7 +261,7 @@ const styles$9 = aphrodite.StyleSheet.create({
|
|
|
261
261
|
minWidth: wonderBlocksTokens.spacing.medium_16,
|
|
262
262
|
height: wonderBlocksTokens.spacing.medium_16,
|
|
263
263
|
borderRadius: 3,
|
|
264
|
-
borderWidth: wonderBlocksTokens.border.width.
|
|
264
|
+
borderWidth: wonderBlocksTokens.border.width.thin,
|
|
265
265
|
borderStyle: "solid",
|
|
266
266
|
borderColor: theme$6.checkbox.color.default.border
|
|
267
267
|
},
|
|
@@ -1906,9 +1906,9 @@ const _generateStyles = (placeholder, error) => {
|
|
|
1906
1906
|
const actionType = error ? "destructive" : "progressive";
|
|
1907
1907
|
const action = wonderBlocksTokens.semanticColor.action.secondary[actionType];
|
|
1908
1908
|
const sharedOutlineStyling = {
|
|
1909
|
-
outlineOffset:
|
|
1909
|
+
outlineOffset: `calc(${wonderBlocksTokens.border.width.medium} * -1)`,
|
|
1910
1910
|
outlineStyle: "solid",
|
|
1911
|
-
outlineWidth: wonderBlocksTokens.border.width.
|
|
1911
|
+
outlineWidth: wonderBlocksTokens.border.width.medium
|
|
1912
1912
|
};
|
|
1913
1913
|
const focusStyling = _extends__default["default"]({}, sharedOutlineStyling, {
|
|
1914
1914
|
outlineColor: wonderBlocksTokens.semanticColor.focus.outer
|
|
@@ -1926,13 +1926,13 @@ const _generateStyles = (placeholder, error) => {
|
|
|
1926
1926
|
default: {
|
|
1927
1927
|
background: currentState.background,
|
|
1928
1928
|
borderColor: currentState.border,
|
|
1929
|
-
borderWidth: wonderBlocksTokens.border.width.
|
|
1929
|
+
borderWidth: wonderBlocksTokens.border.width.thin,
|
|
1930
1930
|
color: placeholder ? wonderBlocksTokens.semanticColor.text.secondary : currentState.foreground,
|
|
1931
1931
|
":hover:not([aria-disabled=true])": hoverStyling,
|
|
1932
1932
|
["@media not (hover: hover)"]: {
|
|
1933
1933
|
":hover:not([aria-disabled=true])": {
|
|
1934
1934
|
borderColor: currentState.border,
|
|
1935
|
-
borderWidth: wonderBlocksTokens.border.width.
|
|
1935
|
+
borderWidth: wonderBlocksTokens.border.width.thin,
|
|
1936
1936
|
paddingLeft: wonderBlocksTokens.spacing.medium_16,
|
|
1937
1937
|
paddingRight: wonderBlocksTokens.spacing.small_12
|
|
1938
1938
|
}
|
|
@@ -3377,7 +3377,7 @@ const styles = aphrodite.StyleSheet.create({
|
|
|
3377
3377
|
listbox: {
|
|
3378
3378
|
backgroundColor: theme.listbox.color.default.background,
|
|
3379
3379
|
borderRadius: wonderBlocksTokens.border.radius.radius_040,
|
|
3380
|
-
border: `solid ${wonderBlocksTokens.border.width.
|
|
3380
|
+
border: `solid ${wonderBlocksTokens.border.width.thin} ${theme.listbox.color.default.border}`,
|
|
3381
3381
|
boxShadow: `0px ${wonderBlocksTokens.spacing.xSmall_8}px ${wonderBlocksTokens.spacing.xSmall_8}px 0px ${wonderBlocksTokens.color.offBlack8}`,
|
|
3382
3382
|
maxHeight: "var(--popper-max-height)",
|
|
3383
3383
|
overflowY: "auto"
|
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.3",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"description": "Dropdown variants for Wonder Blocks.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@babel/runtime": "^7.24.5",
|
|
16
16
|
"@khanacademy/wonder-blocks-announcer": "1.0.1",
|
|
17
|
-
"@khanacademy/wonder-blocks-cell": "4.1.
|
|
18
|
-
"@khanacademy/wonder-blocks-clickable": "7.0.
|
|
17
|
+
"@khanacademy/wonder-blocks-cell": "4.1.10",
|
|
18
|
+
"@khanacademy/wonder-blocks-clickable": "7.0.3",
|
|
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.9",
|
|
22
|
+
"@khanacademy/wonder-blocks-modal": "7.1.11",
|
|
23
|
+
"@khanacademy/wonder-blocks-pill": "3.1.10",
|
|
24
|
+
"@khanacademy/wonder-blocks-search-field": "5.1.11",
|
|
25
25
|
"@khanacademy/wonder-blocks-timing": "7.0.2",
|
|
26
|
-
"@khanacademy/wonder-blocks-tokens": "
|
|
26
|
+
"@khanacademy/wonder-blocks-tokens": "9.0.0",
|
|
27
27
|
"@khanacademy/wonder-blocks-typography": "3.1.3"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|