@oxyhq/bloom 0.7.4 → 0.7.5
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/lib/commonjs/theme/native-root-vars.js +17 -0
- package/lib/commonjs/theme/native-root-vars.js.map +1 -1
- package/lib/module/theme/native-root-vars.js +16 -0
- package/lib/module/theme/native-root-vars.js.map +1 -1
- package/lib/typescript/commonjs/theme/native-root-vars.d.ts.map +1 -1
- package/lib/typescript/module/theme/native-root-vars.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/theme/native-root-vars.ts +16 -0
|
@@ -6,6 +6,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.applyNativeRootVars = applyNativeRootVars;
|
|
7
7
|
var _nativeInternal = require("react-native-css/native-internal");
|
|
8
8
|
var _styleBuilder = require("./color-scope/style-builder.js");
|
|
9
|
+
/// <reference path="../react-native-css.d.ts" />
|
|
10
|
+
// The triple-slash reference above pins Bloom's ambient declaration for
|
|
11
|
+
// `react-native-css/native-internal` (`src/react-native-css.d.ts`) into the
|
|
12
|
+
// compilation graph of EVERY program that compiles THIS file — including
|
|
13
|
+
// downstream consumers that resolve Bloom's `"react-native"` source export
|
|
14
|
+
// condition (`./src/theme/index.ts` → `BloomThemeProvider` → this file). Without
|
|
15
|
+
// it the ambient decl is only auto-loaded inside Bloom's own tsconfig
|
|
16
|
+
// (`include: ["src"]`); a consumer's tsconfig never includes
|
|
17
|
+
// `node_modules/@oxyhq/bloom/src/**`, and TypeScript does NOT auto-pick-up
|
|
18
|
+
// ambient `.d.ts` files that live under `node_modules`, so
|
|
19
|
+
// `react-native-css/native-internal` is unresolved (TS2307) unless the reference
|
|
20
|
+
// travels with the source. react-native-css is intentionally NOT a Bloom
|
|
21
|
+
// dependency — it arrives transitively via a host's NativeWind 5 install, or is
|
|
22
|
+
// absent entirely for NativeWind 4 consumers — so the ambient declaration is the
|
|
23
|
+
// only thing that can type this import, and it MUST reach the consumer. The
|
|
24
|
+
// directive ships raw in `src/` (Bloom publishes `files: ["src", "lib"]`).
|
|
25
|
+
|
|
9
26
|
/**
|
|
10
27
|
* Publish the active color preset's CSS custom properties into react-native-css's
|
|
11
28
|
* GLOBAL root-variable family so they reach the ENTIRE native app tree — including
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_nativeInternal","require","_styleBuilder","applyNativeRootVars","colorPreset","mode","rootVariables","vars","buildScopeVars","key","value","Object","entries","name","startsWith","slice","set"],"sourceRoot":"../../../src","sources":["theme/native-root-vars.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["_nativeInternal","require","_styleBuilder","applyNativeRootVars","colorPreset","mode","rootVariables","vars","buildScopeVars","key","value","Object","entries","name","startsWith","slice","set"],"sourceRoot":"../../../src","sources":["theme/native-root-vars.ts"],"mappings":";;;;;;AAgBA,IAAAA,eAAA,GAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAD,OAAA;AAlBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,mBAAmBA,CAACC,WAAyB,EAAEC,IAAsB,EAAQ;EAC3F,IAAI,OAAOC,6BAAa,KAAK,UAAU,EAAE;EAEzC,MAAMC,IAAI,GAAG,IAAAC,4BAAc,EAACJ,WAAW,EAAEC,IAAI,CAAC;EAC9C,KAAK,MAAM,CAACI,GAAG,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACL,IAAI,CAAC,EAAE;IAC/C;IACA,MAAMM,IAAI,GAAGJ,GAAG,CAACK,UAAU,CAAC,IAAI,CAAC,GAAGL,GAAG,CAACM,KAAK,CAAC,CAAC,CAAC,GAAGN,GAAG;IACtD,IAAAH,6BAAa,EAACO,IAAI,CAAC,CAACG,GAAG,CAAC,CAAC,CAACN,KAAK,CAAC,CAAC,CAAC;EACpC;AACF","ignoreList":[]}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
/// <reference path="../react-native-css.d.ts" />
|
|
4
|
+
// The triple-slash reference above pins Bloom's ambient declaration for
|
|
5
|
+
// `react-native-css/native-internal` (`src/react-native-css.d.ts`) into the
|
|
6
|
+
// compilation graph of EVERY program that compiles THIS file — including
|
|
7
|
+
// downstream consumers that resolve Bloom's `"react-native"` source export
|
|
8
|
+
// condition (`./src/theme/index.ts` → `BloomThemeProvider` → this file). Without
|
|
9
|
+
// it the ambient decl is only auto-loaded inside Bloom's own tsconfig
|
|
10
|
+
// (`include: ["src"]`); a consumer's tsconfig never includes
|
|
11
|
+
// `node_modules/@oxyhq/bloom/src/**`, and TypeScript does NOT auto-pick-up
|
|
12
|
+
// ambient `.d.ts` files that live under `node_modules`, so
|
|
13
|
+
// `react-native-css/native-internal` is unresolved (TS2307) unless the reference
|
|
14
|
+
// travels with the source. react-native-css is intentionally NOT a Bloom
|
|
15
|
+
// dependency — it arrives transitively via a host's NativeWind 5 install, or is
|
|
16
|
+
// absent entirely for NativeWind 4 consumers — so the ambient declaration is the
|
|
17
|
+
// only thing that can type this import, and it MUST reach the consumer. The
|
|
18
|
+
// directive ships raw in `src/` (Bloom publishes `files: ["src", "lib"]`).
|
|
3
19
|
import { rootVariables } from 'react-native-css/native-internal';
|
|
4
20
|
import { buildScopeVars } from "./color-scope/style-builder.js";
|
|
5
21
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["rootVariables","buildScopeVars","applyNativeRootVars","colorPreset","mode","vars","key","value","Object","entries","name","startsWith","slice","set"],"sourceRoot":"../../../src","sources":["theme/native-root-vars.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,kCAAkC;AAEhE,SAASC,cAAc,QAAQ,gCAA6B;AAG5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CAACC,WAAyB,EAAEC,IAAsB,EAAQ;EAC3F,IAAI,OAAOJ,aAAa,KAAK,UAAU,EAAE;EAEzC,MAAMK,IAAI,GAAGJ,cAAc,CAACE,WAAW,EAAEC,IAAI,CAAC;EAC9C,KAAK,MAAM,CAACE,GAAG,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACJ,IAAI,CAAC,EAAE;IAC/C;IACA,MAAMK,IAAI,GAAGJ,GAAG,CAACK,UAAU,CAAC,IAAI,CAAC,GAAGL,GAAG,CAACM,KAAK,CAAC,CAAC,CAAC,GAAGN,GAAG;IACtDN,aAAa,CAACU,IAAI,CAAC,CAACG,GAAG,CAAC,CAAC,CAACN,KAAK,CAAC,CAAC,CAAC;EACpC;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["rootVariables","buildScopeVars","applyNativeRootVars","colorPreset","mode","vars","key","value","Object","entries","name","startsWith","slice","set"],"sourceRoot":"../../../src","sources":["theme/native-root-vars.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,aAAa,QAAQ,kCAAkC;AAEhE,SAASC,cAAc,QAAQ,gCAA6B;AAG5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CAACC,WAAyB,EAAEC,IAAsB,EAAQ;EAC3F,IAAI,OAAOJ,aAAa,KAAK,UAAU,EAAE;EAEzC,MAAMK,IAAI,GAAGJ,cAAc,CAACE,WAAW,EAAEC,IAAI,CAAC;EAC9C,KAAK,MAAM,CAACE,GAAG,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACJ,IAAI,CAAC,EAAE;IAC/C;IACA,MAAMK,IAAI,GAAGJ,GAAG,CAACK,UAAU,CAAC,IAAI,CAAC,GAAGL,GAAG,CAACM,KAAK,CAAC,CAAC,CAAC,GAAGN,GAAG;IACtDN,aAAa,CAACU,IAAI,CAAC,CAACG,GAAG,CAAC,CAAC,CAACN,KAAK,CAAC,CAAC,CAAC;EACpC;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-root-vars.d.ts","sourceRoot":"","sources":["../../../../src/theme/native-root-vars.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"native-root-vars.d.ts","sourceRoot":"","sources":["../../../../src/theme/native-root-vars.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EG;AAEH;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAS3F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-root-vars.d.ts","sourceRoot":"","sources":["../../../../src/theme/native-root-vars.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"native-root-vars.d.ts","sourceRoot":"","sources":["../../../../src/theme/native-root-vars.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EG;AAEH;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAS3F"}
|
package/package.json
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/// <reference path="../react-native-css.d.ts" />
|
|
2
|
+
// The triple-slash reference above pins Bloom's ambient declaration for
|
|
3
|
+
// `react-native-css/native-internal` (`src/react-native-css.d.ts`) into the
|
|
4
|
+
// compilation graph of EVERY program that compiles THIS file — including
|
|
5
|
+
// downstream consumers that resolve Bloom's `"react-native"` source export
|
|
6
|
+
// condition (`./src/theme/index.ts` → `BloomThemeProvider` → this file). Without
|
|
7
|
+
// it the ambient decl is only auto-loaded inside Bloom's own tsconfig
|
|
8
|
+
// (`include: ["src"]`); a consumer's tsconfig never includes
|
|
9
|
+
// `node_modules/@oxyhq/bloom/src/**`, and TypeScript does NOT auto-pick-up
|
|
10
|
+
// ambient `.d.ts` files that live under `node_modules`, so
|
|
11
|
+
// `react-native-css/native-internal` is unresolved (TS2307) unless the reference
|
|
12
|
+
// travels with the source. react-native-css is intentionally NOT a Bloom
|
|
13
|
+
// dependency — it arrives transitively via a host's NativeWind 5 install, or is
|
|
14
|
+
// absent entirely for NativeWind 4 consumers — so the ambient declaration is the
|
|
15
|
+
// only thing that can type this import, and it MUST reach the consumer. The
|
|
16
|
+
// directive ships raw in `src/` (Bloom publishes `files: ["src", "lib"]`).
|
|
1
17
|
import { rootVariables } from 'react-native-css/native-internal';
|
|
2
18
|
|
|
3
19
|
import { buildScopeVars } from './color-scope/style-builder';
|