@utrecht/root-css 1.2.0 → 2.0.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 +63 -0
- package/package.json +2 -2
- package/src/_forward.scss +7 -0
- package/src/html/_forward.scss +7 -0
- package/src/html/_mixin.scss +1 -1
- package/src/html/index.scss +1 -1
- package/src/index.scss +1 -1
- /package/dist/html/{index.mjs.d.ts → index.d.mts} +0 -0
- /package/dist/{index.mjs.d.ts → index.d.mts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,68 @@
|
|
|
1
1
|
# @utrecht/root-css
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 77438bb: # BREAKING CHANGE: Migrate from SCSS @import to @use/@forward
|
|
8
|
+
|
|
9
|
+
Migrated all SCSS files from the legacy `@import` syntax to the modern `@use` and `@forward` module system.
|
|
10
|
+
|
|
11
|
+
## Breaking Changes
|
|
12
|
+
|
|
13
|
+
- **Import syntax changed**: `@import` statements replaced with `@use`/`@forward`
|
|
14
|
+
- **Namespace requirements**: Some imports now require explicit namespaces
|
|
15
|
+
- **File structure**: Added `_forward.scss` files for mixin exports
|
|
16
|
+
- **Module loading**: Modules are now loaded once and cached
|
|
17
|
+
|
|
18
|
+
## Migration Guide
|
|
19
|
+
|
|
20
|
+
### For CSS Classes
|
|
21
|
+
|
|
22
|
+
```scss
|
|
23
|
+
// Before
|
|
24
|
+
@import "~@utrecht/button-css/src/index";
|
|
25
|
+
|
|
26
|
+
// After (recommended)
|
|
27
|
+
@use "~@utrecht/button-css/src/index";
|
|
28
|
+
|
|
29
|
+
// Note: @import still works for CSS-only files but @use is recommended
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### For Mixins
|
|
33
|
+
|
|
34
|
+
```scss
|
|
35
|
+
// Before
|
|
36
|
+
@import "~@utrecht/button-css/src/mixin";
|
|
37
|
+
@include utrecht-button;
|
|
38
|
+
|
|
39
|
+
// After
|
|
40
|
+
@use "~@utrecht/button-css/src/forward" as *;
|
|
41
|
+
@include utrecht-button;
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### With Namespaces
|
|
45
|
+
|
|
46
|
+
```scss
|
|
47
|
+
@use "~@utrecht/focus-ring-css/src/forward" as focus-ring;
|
|
48
|
+
@include focus-ring.utrecht-focus-visible;
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Benefits
|
|
52
|
+
|
|
53
|
+
- Better performance through module caching
|
|
54
|
+
- Namespace safety prevents naming conflicts
|
|
55
|
+
- Explicit dependencies improve maintainability
|
|
56
|
+
- Future-proof with modern SCSS standards
|
|
57
|
+
|
|
58
|
+
See `SCSS_MIGRATION.md` for detailed migration instructions.
|
|
59
|
+
|
|
60
|
+
## 1.2.1
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- e20f33c: Provide `.d.mts` file for `.mjs` files in CSS components.
|
|
65
|
+
|
|
3
66
|
## 1.2.0
|
|
4
67
|
|
|
5
68
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "2.0.0",
|
|
3
3
|
"author": "Community for NL Design System",
|
|
4
4
|
"description": "Root component for the Municipality of Utrecht based on the NL Design System architecture",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "dist/index.css",
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@utrecht/build-utils-css": "0.0.
|
|
15
|
+
"@utrecht/build-utils-css": "0.0.3"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"nl-design-system"
|
package/src/html/_mixin.scss
CHANGED
package/src/html/index.scss
CHANGED
package/src/index.scss
CHANGED
|
File without changes
|
|
File without changes
|