@mastors/core 1.2.2 → 1.2.4
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 +34 -2
- package/_index.scss +8 -0
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -97,7 +97,12 @@ const space4 = tokens.spacing['4'] // '1rem'
|
|
|
97
97
|
|
|
98
98
|
```json
|
|
99
99
|
{
|
|
100
|
-
".":
|
|
100
|
+
".": {
|
|
101
|
+
"sass": "./scss/index.scss",
|
|
102
|
+
"import": "./dist/index.mjs",
|
|
103
|
+
"require": "./dist/index.js",
|
|
104
|
+
"types": "./dist/index.d.ts"
|
|
105
|
+
},
|
|
101
106
|
"./scss": "./scss/index.scss",
|
|
102
107
|
"./scss/*": "./scss/*",
|
|
103
108
|
"./api": "./scss/api/_index.scss",
|
|
@@ -264,7 +269,34 @@ node scripts/generate-tokens.js
|
|
|
264
269
|
|
|
265
270
|
## Changelog
|
|
266
271
|
|
|
267
|
-
|
|
272
|
+
### 1.2.4
|
|
273
|
+
|
|
274
|
+
- Added `"sass"` export condition to `exports["."]` — bundlers (Vite, Webpack, etc.) now resolve the correct SCSS entry point automatically
|
|
275
|
+
- Added root-level `_index.scss` forwarding `scss/index` — enables `@use "@mastors/core"` via Sass `loadPaths: ['node_modules']` with no custom importer required
|
|
276
|
+
- Added `_index.scss` to `"files"` so the entry point is included in published packages
|
|
277
|
+
|
|
278
|
+
### 1.2.3
|
|
279
|
+
|
|
280
|
+
- Patch release — dependency and tooling updates
|
|
281
|
+
|
|
282
|
+
### 1.2.0
|
|
283
|
+
|
|
284
|
+
- Added `vars($token, $fallback?)` SCSS function in `functions/_vars.scss`
|
|
285
|
+
- Added `config/_index.scss` shim — forwards `_settings.scss` and `_flags.scss` through the public API
|
|
286
|
+
- Added `utilities/_typography.scss` — text-align, font-size/weight/family, font-style, leading, tracking, text-decoration, text-transform, text-overflow, white-space, word-break, vertical-align, list-style, font-smoothing
|
|
287
|
+
- Added `utilities/_animation.scss` — transition presets, token-driven durations/delays/easings, named animation presets, `@keyframes`, fill-mode, play-state, iteration utilities
|
|
288
|
+
- Added `utilities/_interaction.scss` — user-select, resize, scroll-behavior, scroll-snap, touch-action, and state variant utilities
|
|
289
|
+
- Added `utilities/_layout.scss` — aspect-ratio block
|
|
290
|
+
- Added `accessibility/_print.scss` — `print:hidden`, `screen:hidden`, break utilities, color/shadow resets, automatic link expansion
|
|
291
|
+
|
|
292
|
+
### 1.1.0
|
|
293
|
+
|
|
294
|
+
- Fixed deprecated Sass `if()` syntax in `_em.scss` and `_class-generator.scss`
|
|
295
|
+
- Added `inputs` field to `turbo.json` build task so SCSS changes correctly invalidate the Turbo cache
|
|
296
|
+
|
|
297
|
+
### 1.0.0
|
|
298
|
+
|
|
299
|
+
- Initial release
|
|
268
300
|
|
|
269
301
|
## License
|
|
270
302
|
|
package/_index.scss
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// @mastors/core — _index.scss
|
|
2
|
+
// ─────────────────────────────────────────────────────────────
|
|
3
|
+
// Root-level Sass entry point.
|
|
4
|
+
// Allows consumers to @use "@mastors/core" directly without
|
|
5
|
+
// any bundler alias or custom importer — works via loadPaths.
|
|
6
|
+
// ─────────────────────────────────────────────────────────────
|
|
7
|
+
|
|
8
|
+
@forward "scss/index";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastors/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "Mastors Core — foundational tokens, mixins, functions, and SCSS architecture",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Mastors Contributors",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"style": "./dist/mastors-core.css",
|
|
26
26
|
"exports": {
|
|
27
27
|
".": {
|
|
28
|
+
"sass": "./scss/index.scss",
|
|
28
29
|
"import": "./dist/index.mjs",
|
|
29
30
|
"require": "./dist/index.js",
|
|
30
31
|
"types": "./dist/index.d.ts"
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"./dist/mastors-core.css": "./dist/mastors-core.css"
|
|
36
37
|
},
|
|
37
38
|
"files": [
|
|
39
|
+
"_index.scss",
|
|
38
40
|
"api",
|
|
39
41
|
"dist",
|
|
40
42
|
"postinstall.js",
|
|
@@ -51,8 +53,8 @@
|
|
|
51
53
|
"stylelint-config-standard-scss": "^13.0.0",
|
|
52
54
|
"typescript": "^5.3.0",
|
|
53
55
|
"@mastors/build-utils": "2.0.0",
|
|
54
|
-
"@mastors/
|
|
55
|
-
"@mastors/
|
|
56
|
+
"@mastors/sass-config": "1.0.1",
|
|
57
|
+
"@mastors/tsconfig": "1.0.1"
|
|
56
58
|
},
|
|
57
59
|
"peerDependencies": {
|
|
58
60
|
"sass": ">=1.80.0"
|