@codecademy/styleguide 79.2.3-alpha.ba8cea.0 → 79.2.3-alpha.e26481.0
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
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
### [79.2.3-alpha.
|
|
6
|
+
### [79.2.3-alpha.e26481.0](https://github.com/Codecademy/gamut/compare/@codecademy/styleguide@79.2.2...@codecademy/styleguide@79.2.3-alpha.e26481.0) (2026-03-19)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @codecademy/styleguide
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/styleguide",
|
|
3
3
|
"description": "Styleguide & Component library for codecademy.com",
|
|
4
|
-
"version": "79.2.3-alpha.
|
|
4
|
+
"version": "79.2.3-alpha.e26481.0",
|
|
5
5
|
"author": "Codecademy Engineering",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"repository": "git@github.com:Codecademy/gamut.git",
|
|
11
|
-
"gitHead": "
|
|
11
|
+
"gitHead": "0d639b983fcec11913027c65119bef78aaa8f3b1"
|
|
12
12
|
}
|
|
@@ -159,7 +159,7 @@ Provide both `title` and `description` props to make the chart's purpose and key
|
|
|
159
159
|
|
|
160
160
|
## Sorting
|
|
161
161
|
|
|
162
|
-
|
|
162
|
+
BarChart includes an optional sorting dropdown in the title area. The dropdown only renders when the `sortFns` prop is provided. You can control which sort options appear by including string literals or custom sort functions in the array.
|
|
163
163
|
|
|
164
164
|
**String Literals:**
|
|
165
165
|
|
|
@@ -348,8 +348,8 @@ BarChart supports internationalization through the `translations` prop. You can
|
|
|
348
348
|
|
|
349
349
|
- **sortLabel**, **sortOptions**, and **locale** — Always strings. Control the sort dropdown label, option labels, and number-formatting locale.
|
|
350
350
|
- **Accessibility** — Two optional summary functions; when omitted, default English summaries are used. Each function receives context and returns the full summary string.
|
|
351
|
-
-
|
|
352
|
-
-
|
|
351
|
+
- **stackedBarSummary** — Used for stacked (two-value) rows. Context includes `seriesOneValue`, `seriesTwoValue`, **gained** (seriesTwoValue - seriesOneValue), `unit`, `locale`, `categoryLabel`.
|
|
352
|
+
- **singleValueBarSummary** — Used for all single-value rows. Context includes `value`, `unit`, `locale`, `categoryLabel`.
|
|
353
353
|
|
|
354
354
|
### Where accessibility summaries appear
|
|
355
355
|
|