@openedx/paragon 23.19.1 → 23.20.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.
@@ -0,0 +1,3 @@
1
+ exports.format = (messages) => Object.fromEntries(
2
+ Object.entries(messages).map(([id, { defaultMessage }]) => [id, defaultMessage])
3
+ );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openedx/paragon",
3
- "version": "23.19.1",
3
+ "version": "23.20.0",
4
4
  "description": "Accessible, responsive UI component library based on Bootstrap.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -25,6 +25,9 @@
25
25
  "/lib"
26
26
  ],
27
27
  "sideEffects": false,
28
+ "atlasTranslations": {
29
+ "path": "translations/paragon/src/i18n/messages"
30
+ },
28
31
  "scripts": {
29
32
  "build": "make build",
30
33
  "build-docs": "make build-docs",
@@ -45,8 +48,7 @@
45
48
  "example:start": "npm start --workspace=example",
46
49
  "example:start:with-theme": "npm run start:with-theme --workspace=example",
47
50
  "generate-changelog": "node generate-changelog.js",
48
- "i18n_compile": "formatjs compile-folder --format transifex ./src/i18n/messages ./src/i18n/messages",
49
- "i18n_extract": "formatjs extract 'src/**/*.{jsx,js,tsx,ts}' --out-file ./src/i18n/transifex_input.json --ignore='**/*.d.ts' --format transifex",
51
+ "i18n_extract": "formatjs extract 'src/**/*.{jsx,js,tsx,ts}' --out-file ./src/i18n/transifex_input.json --ignore='**/*.d.ts' --format ./src/i18n/transifex-formatter.js",
50
52
  "type-check": "tsc --noEmit && tsc --project www --noEmit",
51
53
  "type-check:watch": "npm run type-check -- --watch",
52
54
  "build-types": "tsc --emitDeclarationOnly",
@@ -18,28 +18,28 @@ The base container to contain, pad, and center content in the viewport. This com
18
18
 
19
19
  ```jsx live
20
20
  <div style={{ overflowX: 'auto' }}>
21
- <div style={{ width: '1500px', border: 'solid 3px red' }}>
22
- <Container className="bg-danger-300 my-4">
21
+ <div style={{ width: '1500px', border: 'solid 3px var(--pgn-color-danger-700)' }}>
22
+ <Container className="bg-danger-700 text-white my-4">
23
23
  The content in this container doesn't have a max width
24
24
  </Container>
25
25
 
26
- <Container size="xl" className="bg-danger-300 my-4">
26
+ <Container size="xl" className="bg-danger-700 text-white my-4">
27
27
  The content in this container won't exceed the extra large width.
28
28
  </Container>
29
29
 
30
- <Container size="lg" className="bg-danger-300 mb-4">
30
+ <Container size="lg" className="bg-danger-700 text-white mb-4">
31
31
  The content in this container won't exceed the large width.
32
32
  </Container>
33
33
 
34
- <Container size="md" className="bg-danger-300 mb-4">
34
+ <Container size="md" className="bg-danger-700 text-white mb-4">
35
35
  The content in this container won't exceed the medium width.
36
36
  </Container>
37
37
 
38
- <Container size="sm" className="bg-danger-300 mb-4">
38
+ <Container size="sm" className="bg-danger-700 text-white mb-4">
39
39
  The content in this container won't exceed the small width.
40
40
  </Container>
41
41
 
42
- <Container size="xs" className="bg-danger-300 mb-4">
42
+ <Container size="xs" className="bg-danger-700 text-white mb-4">
43
43
  The content in this container won't exceed the extra small width.
44
44
  </Container>
45
45
  </div>
@@ -0,0 +1,3 @@
1
+ exports.format = (messages) => Object.fromEntries(
2
+ Object.entries(messages).map(([id, { defaultMessage }]) => [id, defaultMessage])
3
+ );