@khanacademy/wonder-blocks-search-field 4.0.6 → 5.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 +26 -0
- package/dist/components/search-field.d.ts +0 -4
- package/dist/es/index.js +3 -5
- package/dist/index.js +2 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-search-field
|
|
2
2
|
|
|
3
|
+
## 5.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [8cfaeab0]
|
|
8
|
+
- Updated dependencies [c162abb4]
|
|
9
|
+
- Updated dependencies [c162abb4]
|
|
10
|
+
- Updated dependencies [8cfaeab0]
|
|
11
|
+
- @khanacademy/wonder-blocks-tokens@4.1.0
|
|
12
|
+
- @khanacademy/wonder-blocks-form@7.0.1
|
|
13
|
+
- @khanacademy/wonder-blocks-icon-button@6.0.7
|
|
14
|
+
|
|
15
|
+
## 5.0.0
|
|
16
|
+
|
|
17
|
+
### Major Changes
|
|
18
|
+
|
|
19
|
+
- 8d26588f: Remove `light` variant from SearchField as it is no longer needed/used.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [0de25cd8]
|
|
24
|
+
- Updated dependencies [8d26588f]
|
|
25
|
+
- @khanacademy/wonder-blocks-tokens@4.0.0
|
|
26
|
+
- @khanacademy/wonder-blocks-form@7.0.0
|
|
27
|
+
- @khanacademy/wonder-blocks-icon-button@6.0.6
|
|
28
|
+
|
|
3
29
|
## 4.0.6
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/dist/es/index.js
CHANGED
|
@@ -9,19 +9,18 @@ import { Id, View } from '@khanacademy/wonder-blocks-core';
|
|
|
9
9
|
import IconButton from '@khanacademy/wonder-blocks-icon-button';
|
|
10
10
|
import { TextField } from '@khanacademy/wonder-blocks-form';
|
|
11
11
|
import { PhosphorIcon } from '@khanacademy/wonder-blocks-icon';
|
|
12
|
-
import {
|
|
12
|
+
import { semanticColor, spacing } from '@khanacademy/wonder-blocks-tokens';
|
|
13
13
|
|
|
14
14
|
const defaultLabels = {
|
|
15
15
|
clearSearch: "Clear search"
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
const _excluded = ["clearAriaLabel", "autoFocus", "disabled", "
|
|
18
|
+
const _excluded = ["clearAriaLabel", "autoFocus", "disabled", "id", "value", "placeholder", "style", "testId", "error", "instantValidation", "validate", "onValidate", "onClick", "onChange", "onFocus", "onBlur"];
|
|
19
19
|
const SearchField = React.forwardRef(function SearchField(props, ref) {
|
|
20
20
|
const {
|
|
21
21
|
clearAriaLabel = defaultLabels.clearSearch,
|
|
22
22
|
autoFocus,
|
|
23
23
|
disabled = false,
|
|
24
|
-
light = false,
|
|
25
24
|
id,
|
|
26
25
|
value,
|
|
27
26
|
placeholder,
|
|
@@ -64,7 +63,7 @@ const SearchField = React.forwardRef(function SearchField(props, ref) {
|
|
|
64
63
|
}, React.createElement(PhosphorIcon, {
|
|
65
64
|
icon: magnifyingGlassIcon,
|
|
66
65
|
size: "small",
|
|
67
|
-
color: disabled ?
|
|
66
|
+
color: disabled ? semanticColor.action.disabled.default : semanticColor.icon.primary,
|
|
68
67
|
style: styles.searchIcon,
|
|
69
68
|
"aria-hidden": "true"
|
|
70
69
|
}), React.createElement(TextField, _extends({
|
|
@@ -72,7 +71,6 @@ const SearchField = React.forwardRef(function SearchField(props, ref) {
|
|
|
72
71
|
type: "text",
|
|
73
72
|
autoFocus: autoFocus,
|
|
74
73
|
disabled: disabled,
|
|
75
|
-
light: light,
|
|
76
74
|
instantValidation: instantValidation,
|
|
77
75
|
validate: validate,
|
|
78
76
|
onValidate: onValidate,
|
package/dist/index.js
CHANGED
|
@@ -44,13 +44,12 @@ const defaultLabels = {
|
|
|
44
44
|
clearSearch: "Clear search"
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
const _excluded = ["clearAriaLabel", "autoFocus", "disabled", "
|
|
47
|
+
const _excluded = ["clearAriaLabel", "autoFocus", "disabled", "id", "value", "placeholder", "style", "testId", "error", "instantValidation", "validate", "onValidate", "onClick", "onChange", "onFocus", "onBlur"];
|
|
48
48
|
const SearchField = React__namespace.forwardRef(function SearchField(props, ref) {
|
|
49
49
|
const {
|
|
50
50
|
clearAriaLabel = defaultLabels.clearSearch,
|
|
51
51
|
autoFocus,
|
|
52
52
|
disabled = false,
|
|
53
|
-
light = false,
|
|
54
53
|
id,
|
|
55
54
|
value,
|
|
56
55
|
placeholder,
|
|
@@ -93,7 +92,7 @@ const SearchField = React__namespace.forwardRef(function SearchField(props, ref)
|
|
|
93
92
|
}, React__namespace.createElement(wonderBlocksIcon.PhosphorIcon, {
|
|
94
93
|
icon: magnifyingGlassIcon__default["default"],
|
|
95
94
|
size: "small",
|
|
96
|
-
color: disabled ?
|
|
95
|
+
color: disabled ? wonderBlocksTokens.semanticColor.action.disabled.default : wonderBlocksTokens.semanticColor.icon.primary,
|
|
97
96
|
style: styles.searchIcon,
|
|
98
97
|
"aria-hidden": "true"
|
|
99
98
|
}), React__namespace.createElement(wonderBlocksForm.TextField, _extends__default["default"]({
|
|
@@ -101,7 +100,6 @@ const SearchField = React__namespace.forwardRef(function SearchField(props, ref)
|
|
|
101
100
|
type: "text",
|
|
102
101
|
autoFocus: autoFocus,
|
|
103
102
|
disabled: disabled,
|
|
104
|
-
light: light,
|
|
105
103
|
instantValidation: instantValidation,
|
|
106
104
|
validate: validate,
|
|
107
105
|
onValidate: onValidate,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-search-field",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"description": "Search Field components for Wonder Blocks.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@babel/runtime": "^7.18.6",
|
|
20
20
|
"@khanacademy/wonder-blocks-core": "^11.1.0",
|
|
21
|
-
"@khanacademy/wonder-blocks-form": "^
|
|
21
|
+
"@khanacademy/wonder-blocks-form": "^7.0.1",
|
|
22
22
|
"@khanacademy/wonder-blocks-icon": "^5.0.5",
|
|
23
|
-
"@khanacademy/wonder-blocks-icon-button": "^6.0.
|
|
24
|
-
"@khanacademy/wonder-blocks-tokens": "^
|
|
23
|
+
"@khanacademy/wonder-blocks-icon-button": "^6.0.7",
|
|
24
|
+
"@khanacademy/wonder-blocks-tokens": "^4.1.0",
|
|
25
25
|
"@khanacademy/wonder-blocks-typography": "^3.0.5"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|