@canonical/react-ds-app-anbox 0.40.0 → 0.43.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/README.md +5 -9
- package/dist/types/lib/Button/Button.d.ts.map +1 -1
- package/package.json +20 -20
package/README.md
CHANGED
|
@@ -9,24 +9,20 @@ Anbox-specific components for the Pragma design system. This package provides sp
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
bun add @canonical/react-ds-app-anbox
|
|
12
|
+
bun add @canonical/react-ds-app-anbox @canonical/styles
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
`@canonical/styles` comes with it as a dependency, but installing is not importing. Import it once, in your application's entry point:
|
|
15
|
+
Import the design system's styles **first** in your application's entry, before anything that imports a component:
|
|
18
16
|
|
|
19
17
|
```ts
|
|
20
18
|
import "@canonical/styles";
|
|
21
19
|
```
|
|
22
20
|
|
|
23
|
-
|
|
21
|
+
Or, from a stylesheet: `@import url("@canonical/styles");`.
|
|
24
22
|
|
|
25
|
-
|
|
26
|
-
@import url("@canonical/styles");
|
|
27
|
-
```
|
|
23
|
+
Then mark your root — `<html class="app comfortable">` — as the [`@canonical/styles` README](../../styles/main/README.md) describes. That one import is also what puts this package's stylesheets in a defined order against the rest of the design system's: see [Every component stylesheet is in `ds.components.apps-anbox`](#every-component-stylesheet-is-in-dscomponentsapps-anbox) below.
|
|
28
24
|
|
|
29
|
-
|
|
25
|
+
Each component brings its own stylesheet when you import it.
|
|
30
26
|
|
|
31
27
|
## Usage
|
|
32
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/lib/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,gEAAgE;AAChE,QAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/lib/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,gEAAgE;AAChE,QAAA,MAAM,MAAM,6DAOT,KAAK,KAAG,KAAK,CAAC,YAoBhB,CAAC;eAEa,MAAM"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonical/react-ds-app-anbox",
|
|
3
3
|
"description": "Anbox-specific components for the Pragma design system",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.43.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
|
-
"url": "https://github.com/canonical/pragma"
|
|
17
|
+
"url": "https://github.com/canonical/pragma-web"
|
|
18
18
|
},
|
|
19
19
|
"license": "LGPL-3.0",
|
|
20
20
|
"bugs": {
|
|
21
|
-
"url": "https://github.com/canonical/pragma/issues"
|
|
21
|
+
"url": "https://github.com/canonical/pragma-web/issues"
|
|
22
22
|
},
|
|
23
|
-
"homepage": "https://github.com/canonical/pragma#readme",
|
|
23
|
+
"homepage": "https://github.com/canonical/pragma-web#readme",
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
@@ -43,23 +43,23 @@
|
|
|
43
43
|
"test:vitest:watch": "vitest"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@canonical/react-ds-global": "^0.
|
|
47
|
-
"@canonical/storybook-config": "^0.
|
|
48
|
-
"@canonical/styles": "^0.
|
|
46
|
+
"@canonical/react-ds-global": "^0.43.0",
|
|
47
|
+
"@canonical/storybook-config": "^0.43.0",
|
|
48
|
+
"@canonical/styles": "^0.43.0",
|
|
49
49
|
"react": "^19.2.4",
|
|
50
50
|
"react-dom": "^19.2.4"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@biomejs/biome": "2.5.
|
|
54
|
-
"@canonical/biome-config": "
|
|
55
|
-
"@canonical/design-tokens": "0.
|
|
56
|
-
"@canonical/storybook-helpers": "^0.
|
|
57
|
-
"@canonical/typescript-config-react": "^0.
|
|
58
|
-
"@canonical/vitest-config-react": "^0.
|
|
59
|
-
"@canonical/webarchitect": "
|
|
53
|
+
"@biomejs/biome": "2.5.14",
|
|
54
|
+
"@canonical/biome-config": "0.43.0",
|
|
55
|
+
"@canonical/design-tokens": "0.43.0",
|
|
56
|
+
"@canonical/storybook-helpers": "^0.43.0",
|
|
57
|
+
"@canonical/typescript-config-react": "^0.43.0",
|
|
58
|
+
"@canonical/vitest-config-react": "^0.43.0",
|
|
59
|
+
"@canonical/webarchitect": "0.43.0",
|
|
60
60
|
"@chromatic-com/storybook": "^5.0.1",
|
|
61
|
-
"@storybook/addon-docs": "^10.
|
|
62
|
-
"@storybook/react-vite": "^10.
|
|
61
|
+
"@storybook/addon-docs": "^10.6.0",
|
|
62
|
+
"@storybook/react-vite": "^10.6.0",
|
|
63
63
|
"@testing-library/jest-dom": "^7.0.0",
|
|
64
64
|
"@testing-library/react": "^16.3.2",
|
|
65
65
|
"@types/node": "^26.0.0",
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
"copyfiles": "^2.4.1",
|
|
70
70
|
"globals": "^17.4.0",
|
|
71
71
|
"jsdom": "^28.1.0",
|
|
72
|
-
"storybook": "^10.
|
|
73
|
-
"typescript": "^
|
|
72
|
+
"storybook": "^10.6.0",
|
|
73
|
+
"typescript": "^7.0.2",
|
|
74
74
|
"vite": "^8.0.1",
|
|
75
|
-
"vitest": "^
|
|
75
|
+
"vitest": "^5.0.0"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "581682464ef71de3f77dc2dc8bbe2b7e493bb05e"
|
|
78
78
|
}
|