@khanacademy/wonder-blocks-search-field 5.1.1 → 5.1.2
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 +23 -0
- package/dist/components/search-field.d.ts +8 -0
- package/dist/es/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-search-field
|
|
2
2
|
|
|
3
|
+
## 5.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7bb37a2: Update component docs to include labelling guidelines
|
|
8
|
+
- 051f0f8: Rework action.disabled tokens to include properties per kind (border, background, foreground).
|
|
9
|
+
- Updated dependencies [ed26d66]
|
|
10
|
+
- Updated dependencies [5655b9f]
|
|
11
|
+
- Updated dependencies [5655b9f]
|
|
12
|
+
- Updated dependencies [8f53293]
|
|
13
|
+
- Updated dependencies [7bb37a2]
|
|
14
|
+
- Updated dependencies [051f0f8]
|
|
15
|
+
- Updated dependencies [e1b78db]
|
|
16
|
+
- Updated dependencies [8f53293]
|
|
17
|
+
- Updated dependencies [051f0f8]
|
|
18
|
+
- Updated dependencies [7bb37a2]
|
|
19
|
+
- @khanacademy/wonder-blocks-core@12.2.0
|
|
20
|
+
- @khanacademy/wonder-blocks-tokens@5.0.0
|
|
21
|
+
- @khanacademy/wonder-blocks-icon-button@6.1.2
|
|
22
|
+
- @khanacademy/wonder-blocks-form@7.1.2
|
|
23
|
+
- @khanacademy/wonder-blocks-icon@5.1.2
|
|
24
|
+
- @khanacademy/wonder-blocks-typography@3.1.2
|
|
25
|
+
|
|
3
26
|
## 5.1.1
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -95,6 +95,14 @@ type Props = AriaProps & {
|
|
|
95
95
|
* Search Field. A TextField with a search icon on its left side
|
|
96
96
|
* and an X icon on its right side.
|
|
97
97
|
*
|
|
98
|
+
* Make sure to provide a label for the field. This can be done by either:
|
|
99
|
+
* - (recommended) Using the **LabeledField** component to provide a label,
|
|
100
|
+
* description, and/or error message for the field
|
|
101
|
+
* - Using a `label` html tag with the `htmlFor` prop set to the unique id of
|
|
102
|
+
* the field
|
|
103
|
+
* - Using an `aria-label` attribute on the field
|
|
104
|
+
* - Using an `aria-labelledby` attribute on the field
|
|
105
|
+
*
|
|
98
106
|
* ### Usage
|
|
99
107
|
* ```jsx
|
|
100
108
|
* import {SearchField} from "@khanacademy/wonder-blocks-search-field";
|
package/dist/es/index.js
CHANGED
|
@@ -63,7 +63,7 @@ const SearchField = React.forwardRef(function SearchField(props, ref) {
|
|
|
63
63
|
}, React.createElement(PhosphorIcon, {
|
|
64
64
|
icon: magnifyingGlassIcon,
|
|
65
65
|
size: "small",
|
|
66
|
-
color: disabled ? semanticColor.
|
|
66
|
+
color: disabled ? semanticColor.icon.disabled : semanticColor.icon.primary,
|
|
67
67
|
style: styles.searchIcon,
|
|
68
68
|
"aria-hidden": "true"
|
|
69
69
|
}), React.createElement(TextField, _extends({
|
package/dist/index.js
CHANGED
|
@@ -92,7 +92,7 @@ const SearchField = React__namespace.forwardRef(function SearchField(props, ref)
|
|
|
92
92
|
}, React__namespace.createElement(wonderBlocksIcon.PhosphorIcon, {
|
|
93
93
|
icon: magnifyingGlassIcon__default["default"],
|
|
94
94
|
size: "small",
|
|
95
|
-
color: disabled ? wonderBlocksTokens.semanticColor.
|
|
95
|
+
color: disabled ? wonderBlocksTokens.semanticColor.icon.disabled : wonderBlocksTokens.semanticColor.icon.primary,
|
|
96
96
|
style: styles.searchIcon,
|
|
97
97
|
"aria-hidden": "true"
|
|
98
98
|
}), React__namespace.createElement(wonderBlocksForm.TextField, _extends__default["default"]({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-search-field",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.2",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"description": "Search Field components for Wonder Blocks.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@babel/runtime": "^7.24.5",
|
|
16
|
-
"@khanacademy/wonder-blocks-core": "12.
|
|
17
|
-
"@khanacademy/wonder-blocks-form": "7.1.
|
|
18
|
-
"@khanacademy/wonder-blocks-icon": "5.1.
|
|
19
|
-
"@khanacademy/wonder-blocks-icon-button": "6.1.
|
|
20
|
-
"@khanacademy/wonder-blocks-tokens": "
|
|
21
|
-
"@khanacademy/wonder-blocks-typography": "3.1.
|
|
16
|
+
"@khanacademy/wonder-blocks-core": "12.2.0",
|
|
17
|
+
"@khanacademy/wonder-blocks-form": "7.1.2",
|
|
18
|
+
"@khanacademy/wonder-blocks-icon": "5.1.2",
|
|
19
|
+
"@khanacademy/wonder-blocks-icon-button": "6.1.2",
|
|
20
|
+
"@khanacademy/wonder-blocks-tokens": "5.0.0",
|
|
21
|
+
"@khanacademy/wonder-blocks-typography": "3.1.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@phosphor-icons/core": "^2.0.2",
|