@refrakt-md/lumina 0.30.0 → 0.31.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/dist/config.d.ts CHANGED
@@ -1,3 +1,8 @@
1
+ import { type ThemeConfigOverrides } from '@refrakt-md/transform';
2
+ /** Lumina's overrides, exported separately from the merged result so tests can
3
+ * re-run the merge with a diagnostics sink — notably the ADR-028 identity
4
+ * guard, which Lumina must not trip (it overrides no rune at all). */
5
+ export declare const luminaOverrides: ThemeConfigOverrides;
1
6
  /** Lumina theme configuration — extends base with icon SVGs and tint presets */
2
7
  export declare const luminaConfig: import("@refrakt-md/transform").ThemeConfig;
3
8
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAIA,gFAAgF;AAChF,eAAO,MAAM,YAAY,6CA2FvB,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAGpF;;uEAEuE;AACvE,eAAO,MAAM,eAAe,EAAE,oBA2F7B,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,YAAY,6CAAgD,CAAC"}
package/dist/config.js CHANGED
@@ -1,8 +1,10 @@
1
1
  import { baseConfig } from '@refrakt-md/runes';
2
2
  import { mergeThemeConfig } from '@refrakt-md/transform';
3
3
  import { icons as lucideIcons } from './icons.js';
4
- /** Lumina theme configuration — extends base with icon SVGs and tint presets */
5
- export const luminaConfig = mergeThemeConfig(baseConfig, {
4
+ /** Lumina's overrides, exported separately from the merged result so tests can
5
+ * re-run the merge with a diagnostics sink — notably the ADR-028 identity
6
+ * guard, which Lumina must not trip (it overrides no rune at all). */
7
+ export const luminaOverrides = {
6
8
  tints: {
7
9
  base: {
8
10
  light: {
@@ -93,5 +95,7 @@ export const luminaConfig = mergeThemeConfig(baseConfig, {
93
95
  },
94
96
  global: lucideIcons,
95
97
  },
96
- });
98
+ };
99
+ /** Lumina theme configuration — extends base with icon SVGs and tint presets */
100
+ export const luminaConfig = mergeThemeConfig(baseConfig, luminaOverrides);
97
101
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,YAAY,CAAC;AAElD,gFAAgF;AAChF,MAAM,CAAC,MAAM,YAAY,GAAG,gBAAgB,CAAC,UAAU,EAAE;IACxD,KAAK,EAAE;QACN,IAAI,EAAE;YACL,KAAK,EAAE;gBACN,EAAE,EAAE,oBAAoB;gBACxB,OAAO,EAAE,yBAAyB;gBAClC,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,uBAAuB;gBAC9B,OAAO,EAAE,yBAAyB;gBAClC,MAAM,EAAE,wBAAwB;aAChC;YACD,IAAI,EAAE;gBACL,EAAE,EAAE,oBAAoB;gBACxB,OAAO,EAAE,yBAAyB;gBAClC,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,uBAAuB;gBAC9B,OAAO,EAAE,yBAAyB;gBAClC,MAAM,EAAE,wBAAwB;aAChC;SACD;QACD,MAAM,EAAE;YACP,KAAK,EAAE;gBACN,EAAE,EAAE,yBAAyB;gBAC7B,OAAO,EAAE,+BAA+B;gBACxC,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,uBAAuB;gBAC9B,OAAO,EAAE,yBAAyB;gBAClC,MAAM,EAAE,wBAAwB;aAChC;YACD,IAAI,EAAE;gBACL,EAAE,EAAE,yBAAyB;gBAC7B,OAAO,EAAE,+BAA+B;gBACxC,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,uBAAuB;gBAC9B,OAAO,EAAE,yBAAyB;gBAClC,MAAM,EAAE,wBAAwB;aAChC;SACD;QACD,IAAI,EAAE;YACL,KAAK,EAAE;gBACN,EAAE,EAAE,gCAAgC;gBACpC,IAAI,EAAE,sBAAsB;gBAC5B,OAAO,EAAE,yBAAyB;gBAClC,MAAM,EAAE,wBAAwB;aAChC;YACD,IAAI,EAAE;gBACL,EAAE,EAAE,SAAS;gBACb,IAAI,EAAE,sBAAsB;gBAC5B,OAAO,EAAE,yBAAyB;gBAClC,MAAM,EAAE,SAAS;aACjB;SACD;QACD,IAAI,EAAE;YACL,KAAK,EAAE;gBACN,EAAE,EAAE,yBAAyB;gBAC7B,IAAI,EAAE,sBAAsB;gBAC5B,OAAO,EAAE,yBAAyB;gBAClC,MAAM,EAAE,6BAA6B;aACrC;YACD,IAAI,EAAE;gBACL,EAAE,EAAE,SAAS;gBACb,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,yBAAyB;gBAClC,MAAM,EAAE,SAAS;aACjB;SACD;QACD,IAAI,EAAE;YACL,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE;gBACL,EAAE,EAAE,SAAS;gBACb,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,wBAAwB;aACjC;SACD;KACD;IACD,KAAK,EAAE;QACN,IAAI,EAAE;YACL,IAAI,EAAE,4SAA4S;YAClT,OAAO,EAAE,iXAAiX;YAC1X,OAAO,EAAE,uSAAuS;YAChT,KAAK,EAAE,qRAAqR;SAC5R;QACD,uEAAuE;QACvE,yEAAyE;QACzE,0EAA0E;QAC1E,sEAAsE;QACtE,SAAS,EAAE;YACV,OAAO,EAAE,2MAA2M;SACpN;QACD,MAAM,EAAE,WAAW;KACnB;CACD,CAAC,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO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C,MAAM,EAAE,SAAS;aACjB;SACD;QACD,IAAI,EAAE;YACL,KAAK,EAAE;gBACN,EAAE,EAAE,yBAAyB;gBAC7B,IAAI,EAAE,sBAAsB;gBAC5B,OAAO,EAAE,yBAAyB;gBAClC,MAAM,EAAE,6BAA6B;aACrC;YACD,IAAI,EAAE;gBACL,EAAE,EAAE,SAAS;gBACb,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,yBAAyB;gBAClC,MAAM,EAAE,SAAS;aACjB;SACD;QACD,IAAI,EAAE;YACL,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE;gBACL,EAAE,EAAE,SAAS;gBACb,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,wBAAwB;aACjC;SACD;KACD;IACD,KAAK,EAAE;QACN,IAAI,EAAE;YACL,IAAI,EAAE,4SAA4S;YAClT,OAAO,EAAE,iXAAiX;YAC1X,OAAO,EAAE,uSAAuS;YAChT,KAAK,EAAE,qRAAqR;SAC5R;QACD,uEAAuE;QACvE,yEAAyE;QACzE,0EAA0E;QAC1E,sEAAsE;QACtE,SAAS,EAAE;YACV,OAAO,EAAE,2MAA2M;SACpN;QACD,MAAM,EAAE,WAAW;KACnB;CACD,CAAC;AAEF,gFAAgF;AAChF,MAAM,CAAC,MAAM,YAAY,GAAG,gBAAgB,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@refrakt-md/lumina",
3
3
  "description": "Lumina theme for refrakt.md — design tokens, CSS, identity transform, and layout configs",
4
- "version": "0.30.0",
4
+ "version": "0.31.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -86,10 +86,10 @@
86
86
  "generate-tokens": "node scripts/generate-tokens.mjs"
87
87
  },
88
88
  "dependencies": {
89
- "@refrakt-md/runes": "0.30.0",
90
- "@refrakt-md/skeleton": "0.30.0",
91
- "@refrakt-md/transform": "0.30.0",
92
- "@refrakt-md/types": "0.30.0"
89
+ "@refrakt-md/runes": "0.31.0",
90
+ "@refrakt-md/skeleton": "0.31.0",
91
+ "@refrakt-md/transform": "0.31.0",
92
+ "@refrakt-md/types": "0.31.0"
93
93
  },
94
94
  "devDependencies": {
95
95
  "postcss": "^8.4.0"
@@ -46,6 +46,20 @@
46
46
  display: none;
47
47
  }
48
48
 
49
+ /* Most runes put the title beside the body; card puts its leading heading
50
+ * *inside* the body slot. The blanket hide above would take the title with it
51
+ * and leave an empty surface, so where a title is nested in the body, keep the
52
+ * body box and hide only its other children — "title and primary metadata only"
53
+ * then means what it says on those runes too. (SPEC-125 Phase 1: card only
54
+ * gained a `body` role in v0.31.0, so this case could not arise before.) */
55
+ [data-density="minimal"] [data-section="body"]:has(> [data-name="title"]) {
56
+ display: revert;
57
+ }
58
+
59
+ [data-density="minimal"] [data-section="body"]:has(> [data-name="title"]) > :not([data-name="title"]) {
60
+ display: none;
61
+ }
62
+
49
63
  [data-density="minimal"] [data-section="footer"] {
50
64
  display: none;
51
65
  }
@@ -72,7 +86,8 @@
72
86
  [data-density="minimal"] [data-density="full"] [data-section="description"],
73
87
  [data-density="minimal"] [data-density="full"] [data-section="body"],
74
88
  [data-density="minimal"] [data-density="full"] [data-section="footer"],
75
- [data-density="minimal"] [data-density="full"] [data-meta-rank="secondary"] {
89
+ [data-density="minimal"] [data-density="full"] [data-meta-rank="secondary"],
90
+ [data-density="minimal"] [data-density="full"] [data-section="body"]:has(> [data-name="title"]) > :not([data-name="title"]) {
76
91
  display: revert;
77
92
  }
78
93