@canonical/react-ds-global-form 0.42.0 → 0.44.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.
Files changed (2) hide show
  1. package/README.md +10 -7
  2. package/package.json +19 -19
package/README.md CHANGED
@@ -12,16 +12,19 @@ Form components for the Pragma design system. This package provides a field syst
12
12
  bun add @canonical/react-ds-global-form @canonical/styles
13
13
  ```
14
14
 
15
- Import the global styles and the form component styles in your application's root stylesheet:
15
+ Import the design system's styles **first** in your application's entry, before anything that imports a component:
16
16
 
17
- ```css
18
- @import url("@canonical/styles");
19
- @import url("@canonical/react-ds-global-form/dist/esm/index.css");
17
+ ```ts
18
+ import "@canonical/styles";
20
19
  ```
21
20
 
22
- The global styles provide the CSS reset, typography baseline, and design tokens (colour, spacing, surfaces, states) that all form components depend on. The form stylesheet provides input chrome, field layout, and component-specific styles.
21
+ Or, from a stylesheet: `@import url("@canonical/styles");`.
22
+
23
+ Each component brings its own stylesheet when you import it. The package stylesheet (field layout, input chrome, form tokens) is not imported by any component, so import it right after the styles:
23
24
 
24
- The package builds on top of `@canonical/react-ds-global`.
25
+ ```ts
26
+ import "@canonical/react-ds-global-form/dist/esm/index.css";
27
+ ```
25
28
 
26
29
  ### How component CSS reaches the page
27
30
 
@@ -249,4 +252,4 @@ The Storybook configuration includes MSW integration for mocking backend respons
249
252
 
250
253
  ## Component Specifications
251
254
 
252
- Form component specifications are defined in the [Design System Ontology](https://github.com/canonical/design-system).
255
+ Form component specifications are defined in the [Design System Ontology](https://github.com/canonical/pragma-core/tree/main/packages/semantics/design-system).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonical/react-ds-global-form",
3
- "version": "0.42.0",
3
+ "version": "0.44.0",
4
4
  "type": "module",
5
5
  "module": "dist/esm/index.js",
6
6
  "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,11 +43,11 @@
43
43
  "test:vitest:watch": "vitest"
44
44
  },
45
45
  "dependencies": {
46
- "@canonical/ds-utils": "^0.42.0",
47
- "@canonical/react-ds-global": "^0.42.0",
48
- "@canonical/storybook-config": "^0.42.0",
49
- "@canonical/styles": "^0.42.0",
50
- "@canonical/utils": "^0.42.0",
46
+ "@canonical/ds-utils": "^0.44.0",
47
+ "@canonical/react-ds-global": "^0.44.0",
48
+ "@canonical/storybook-config": "^0.44.0",
49
+ "@canonical/styles": "^0.44.0",
50
+ "@canonical/utils": "0.43.0",
51
51
  "downshift": "^9.3.2",
52
52
  "react": "^19.2.4",
53
53
  "react-dom": "^19.2.4",
@@ -55,14 +55,14 @@
55
55
  },
56
56
  "devDependencies": {
57
57
  "@biomejs/biome": "2.5.14",
58
- "@canonical/biome-config": "^0.42.0",
59
- "@canonical/design-tokens": "0.10.0",
60
- "@canonical/storybook-addon-form-state": "^0.42.0",
61
- "@canonical/storybook-addon-msw": "^0.42.0",
62
- "@canonical/storybook-helpers": "^0.42.0",
63
- "@canonical/typescript-config-react": "^0.42.0",
64
- "@canonical/vitest-config-react": "^0.42.0",
65
- "@canonical/webarchitect": "^0.42.0",
58
+ "@canonical/biome-config": "0.43.0",
59
+ "@canonical/design-tokens": "0.43.0",
60
+ "@canonical/storybook-addon-form-state": "^0.44.0",
61
+ "@canonical/storybook-addon-msw": "^0.44.0",
62
+ "@canonical/storybook-helpers": "^0.44.0",
63
+ "@canonical/typescript-config-react": "^0.44.0",
64
+ "@canonical/vitest-config-react": "^0.44.0",
65
+ "@canonical/webarchitect": "0.43.0",
66
66
  "@chromatic-com/storybook": "^5.0.1",
67
67
  "@storybook/addon-docs": "^10.6.0",
68
68
  "@storybook/react-vite": "^10.6.0",
@@ -80,7 +80,7 @@
80
80
  "storybook": "^10.6.0",
81
81
  "typescript": "^7.0.2",
82
82
  "vite": "^8.0.1",
83
- "vitest": "^4.0.18"
83
+ "vitest": "^5.0.0"
84
84
  },
85
- "gitHead": "75c2b17029ba899be3fa645be28290ac6fcb83a9"
85
+ "gitHead": "c1f2abc7f04aa29a88f0e6036645469e82a5dd33"
86
86
  }