@khanacademy/wonder-blocks-dropdown 9.1.1 → 9.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 +34 -0
- package/dist/components/multi-select.d.ts +8 -3
- package/dist/components/single-select.d.ts +8 -3
- package/dist/es/index.js +288 -172
- package/dist/index.js +287 -171
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-dropdown
|
|
2
2
|
|
|
3
|
+
## 9.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5655b9f: Switch to use `focus.outer` semanticColor token
|
|
8
|
+
- a42d9f3: Explicitly set aria-controls on the SelectOpener
|
|
9
|
+
- 7bb37a2: Update component docs to include labelling guidelines
|
|
10
|
+
- 4ab523b: Migrate Dropdown components to semanticColor. Simplify ActionMenuOpenerCore styles
|
|
11
|
+
- 8f53293: Rename action tokens: `filled` -> `primary`, `outlined` -> `secondary`.
|
|
12
|
+
- 051f0f8: Rework action.disabled tokens to include properties per kind (border, background, foreground).
|
|
13
|
+
- Updated dependencies [ed26d66]
|
|
14
|
+
- Updated dependencies [5655b9f]
|
|
15
|
+
- Updated dependencies [8fc65a9]
|
|
16
|
+
- Updated dependencies [5655b9f]
|
|
17
|
+
- Updated dependencies [8f53293]
|
|
18
|
+
- Updated dependencies [7bb37a2]
|
|
19
|
+
- Updated dependencies [6d37702]
|
|
20
|
+
- Updated dependencies [051f0f8]
|
|
21
|
+
- Updated dependencies [8fc65a9]
|
|
22
|
+
- Updated dependencies [e1b78db]
|
|
23
|
+
- Updated dependencies [8f53293]
|
|
24
|
+
- Updated dependencies [051f0f8]
|
|
25
|
+
- @khanacademy/wonder-blocks-core@12.2.0
|
|
26
|
+
- @khanacademy/wonder-blocks-tokens@5.0.0
|
|
27
|
+
- @khanacademy/wonder-blocks-pill@3.1.2
|
|
28
|
+
- @khanacademy/wonder-blocks-clickable@6.1.2
|
|
29
|
+
- @khanacademy/wonder-blocks-modal@7.1.2
|
|
30
|
+
- @khanacademy/wonder-blocks-search-field@5.1.2
|
|
31
|
+
- @khanacademy/wonder-blocks-cell@4.1.2
|
|
32
|
+
- @khanacademy/wonder-blocks-icon@5.1.2
|
|
33
|
+
- @khanacademy/wonder-blocks-layout@3.1.2
|
|
34
|
+
- @khanacademy/wonder-blocks-typography@3.1.2
|
|
35
|
+
- @khanacademy/wonder-blocks-timing@7.0.1
|
|
36
|
+
|
|
3
37
|
## 9.1.1
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
|
@@ -177,12 +177,17 @@ type Props = AriaProps & DefaultProps & Readonly<{
|
|
|
177
177
|
* multiple options to be selected. Clients are responsible for keeping track
|
|
178
178
|
* of the selected items.
|
|
179
179
|
*
|
|
180
|
-
* Clients are also responsible for labeling the select using `LabeledField`, or
|
|
181
|
-
* an `aria-label` attribute or `aria-labelledby` on the select.
|
|
182
|
-
*
|
|
183
180
|
* The multi select stays open until closed by the user. The onChange callback
|
|
184
181
|
* happens every time there is a change in the selection of the items.
|
|
185
182
|
*
|
|
183
|
+
* Make sure to provide a label for the field. This can be done by either:
|
|
184
|
+
* - (recommended) Using the **LabeledField** component to provide a label,
|
|
185
|
+
* description, and/or error message for the field
|
|
186
|
+
* - Using a `label` html tag with the `htmlFor` prop set to the unique id of
|
|
187
|
+
* the field
|
|
188
|
+
* - Using an `aria-label` attribute on the field
|
|
189
|
+
* - Using an `aria-labelledby` attribute on the field
|
|
190
|
+
*
|
|
186
191
|
* ## Usage
|
|
187
192
|
*
|
|
188
193
|
* ```jsx
|
|
@@ -173,12 +173,17 @@ type Props = AriaProps & DefaultProps & Readonly<{
|
|
|
173
173
|
* The single select allows the selection of one item. Clients are responsible
|
|
174
174
|
* for keeping track of the selected item in the select.
|
|
175
175
|
*
|
|
176
|
-
* Clients are also responsible for labeling the select using `LabeledField`, an
|
|
177
|
-
* `aria-label` attribute, or `aria-labelledby`.
|
|
178
|
-
*
|
|
179
176
|
* The single select dropdown closes after the selection of an item. If the same
|
|
180
177
|
* item is selected, there is no callback.
|
|
181
178
|
*
|
|
179
|
+
* Make sure to provide a label for the field. This can be done by either:
|
|
180
|
+
* - (recommended) Using the **LabeledField** component to provide a label,
|
|
181
|
+
* description, and/or error message for the field
|
|
182
|
+
* - Using a `label` html tag with the `htmlFor` prop set to the unique id of
|
|
183
|
+
* the field
|
|
184
|
+
* - Using an `aria-label` attribute on the field
|
|
185
|
+
* - Using an `aria-labelledby` attribute on the field
|
|
186
|
+
*
|
|
182
187
|
* **NOTE:** If there are more than 125 items, the component automatically uses
|
|
183
188
|
* [react-window](https://github.com/bvaughn/react-window) to improve
|
|
184
189
|
* performance when rendering these elements and is capable of handling many
|