@unif/react-native-design 0.5.0 → 0.5.1

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/docs-home.css CHANGED
@@ -194,8 +194,11 @@
194
194
  * 3. DARK TOKENS — OS preference fallback (no explicit data-theme)
195
195
  * ───────────────────────────────────────────────────────────── */
196
196
 
197
+ /* OS 偏好兜底:仅当 Docusaurus 尚未在 <html> 注入 data-theme 时才生效。
198
+ * 旧写法 .unif-home:not([data-theme="light"]) 恒为真(data-theme 在 <html> 上、
199
+ * 不在 .unif-home),会让"系统深色 + 站点手动切浅色"时内容区被强制深色。 */
197
200
  @media (prefers-color-scheme: dark) {
198
- .unif-home:not([data-theme="light"]) {
201
+ html:not([data-theme]) .unif-home {
199
202
  --primary-container: #3D1F00;
200
203
  --primary-container-subtle:#2A1500;
201
204
  --error: #FF6B40;
@@ -2,6 +2,7 @@
2
2
 
3
3
  // @unif/react-native-design 公共入口:theme(设计令牌)/ icons / utils / 组件(ui · business)。
4
4
  // 文档站共享首页样式以 `./docs-home.css` 子路径导出(供各 Docusaurus 文档站 import,见 package.json#exports)。
5
+ // 0.5.1:修 docs-home.css 深色 OS 兜底选择器恒真(系统深色 + 站点切浅色时内容区被强制深色),见 #52。
5
6
  export * from "./theme/index.js";
6
7
  export * from "./icons/index.js";
7
8
  export * from "./utils/testID/index.js";
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA;AACA;AACA,cAAc,kBAAS;AACvB,cAAc,kBAAS;AACvB,cAAc,yBAAgB;AAC9B,cAAc,yBAAgB;AAC9B,cAAc,0BAAiB;AAC/B,cAAc,gCAAuB","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,cAAc,kBAAS;AACvB,cAAc,kBAAS;AACvB,cAAc,yBAAgB;AAC9B,cAAc,yBAAgB;AAC9B,cAAc,0BAAiB;AAC/B,cAAc,gCAAuB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAEA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unif/react-native-design",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Unif 设计系统:theme + icons + utils + components",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
package/src/index.tsx CHANGED
@@ -1,5 +1,6 @@
1
1
  // @unif/react-native-design 公共入口:theme(设计令牌)/ icons / utils / 组件(ui · business)。
2
2
  // 文档站共享首页样式以 `./docs-home.css` 子路径导出(供各 Docusaurus 文档站 import,见 package.json#exports)。
3
+ // 0.5.1:修 docs-home.css 深色 OS 兜底选择器恒真(系统深色 + 站点切浅色时内容区被强制深色),见 #52。
3
4
  export * from './theme';
4
5
  export * from './icons';
5
6
  export * from './utils/testID';