css-calipers 0.9.0 → 0.9.2

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 CHANGED
@@ -125,6 +125,8 @@ CSS-Calipers is a good fit if:
125
125
  - You already use TypeScript (or plan to) and want compile-time guarantees around CSS units.
126
126
  - You have a design system or token layer where layout math and unit conversions matter.
127
127
  - You care about catching unit mismatches and layout invariants early, in dev or tests.
128
+ This library is opinionated about types and emitting valid CSS at the edges,
129
+ but intentionally loose about how you structure or apply styles in between.
128
130
 
129
131
  It’s probably overkill if:
130
132
 
@@ -20,3 +20,4 @@ __exportStar(require("./factory"), exports);
20
20
  __exportStar(require("./mediaQueries"), exports);
21
21
  __exportStar(require("./modules"), exports);
22
22
  __exportStar(require("./moduleRegistry"), exports);
23
+ __exportStar(require("./libraryHelpers/vanilla-extract"), exports);
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mediaQueryOutputVanillaExtract = void 0;
4
+ const mediaQueryOutputVanillaExtract = (media) => ({
5
+ '&': media,
6
+ });
7
+ exports.mediaQueryOutputVanillaExtract = mediaQueryOutputVanillaExtract;
@@ -4,4 +4,5 @@ export * from './factory';
4
4
  export * from './mediaQueries';
5
5
  export * from './modules';
6
6
  export * from './moduleRegistry';
7
+ export * from './libraryHelpers/vanilla-extract';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mediaQueries/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mediaQueries/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kCAAkC,CAAC"}
@@ -4,3 +4,4 @@ export * from './factory';
4
4
  export * from './mediaQueries';
5
5
  export * from './modules';
6
6
  export * from './moduleRegistry';
7
+ export * from './libraryHelpers/vanilla-extract';
@@ -0,0 +1,3 @@
1
+ import type { ComplexStyleRule } from '../types';
2
+ export declare const mediaQueryOutputVanillaExtract: (media: ComplexStyleRule) => Record<string, unknown>;
3
+ //# sourceMappingURL=vanilla-extract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vanilla-extract.d.ts","sourceRoot":"","sources":["../../../../src/mediaQueries/libraryHelpers/vanilla-extract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,8BAA8B,GACzC,OAAO,gBAAgB,KACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAEvB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export const mediaQueryOutputVanillaExtract = (media) => ({
2
+ '&': media,
3
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "css-calipers",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Compile-time unit safety for numeric, unit-bearing CSS values via typed measurements.",
5
5
  "license": "MIT",
6
6
  "repository": {