@cdx-ui/components 0.0.1-beta.151 → 0.0.1-beta.154

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
@@ -57,10 +57,10 @@ Alert, AlertDialog, Avatar, Badge, BottomSheet, Button, Card, Carousel, Checkbox
57
57
 
58
58
  ### Metro configuration helper
59
59
 
60
- The package ships a `withForgeMetroConfig` helper that wraps your Metro config with Forge UI's styling-layer setup. This abstracts the underlying Uniwind configuration so consuming Metro configs stay stable if the styling layer changes.
60
+ The `withForgeMetroConfig` helper now ships from [`@cdx-ui/native/metro`](../native/README.md), not this package — it is native build tooling, and keeping it here forced a Metro dependency onto every consumer of the component library.
61
61
 
62
62
  ```js
63
- const { withForgeMetroConfig } = require('@cdx-ui/components/metro');
63
+ const { withForgeMetroConfig } = require('@cdx-ui/native/metro');
64
64
 
65
65
  module.exports = withForgeMetroConfig(config, {
66
66
  cssEntryFile: './global.css',
@@ -7,7 +7,10 @@ exports.radioRootVariants = exports.radioLabelVariants = exports.radioInnerDotVa
7
7
  var _reactNative = require("react-native");
8
8
  var _utils = require("@cdx-ui/utils");
9
9
  var _constants = require("../../styles/constants");
10
- const radioRootVariants = exports.radioRootVariants = (0, _utils.cva)(['flex-row items-center gap-2', 'data-[disabled=true]:opacity-[var(--opacity-disabled)]', _constants.DISABLED_CURSOR]);
10
+ const radioRootVariants = exports.radioRootVariants = (0, _utils.cva)(['flex-row items-center gap-2', 'data-[disabled=true]:opacity-[var(--opacity-disabled)]', _constants.DISABLED_CURSOR,
11
+ // Suppress default :focus-visible outline on the role="radio" Pressable;
12
+ // focus ring is drawn on the indicator instead of wrapping the whole control.
13
+ 'web:outline-none web:focus:outline-none web:focus-visible:outline-none']);
11
14
  const radioIndicatorVariants = exports.radioIndicatorVariants = (0, _utils.cva)(['items-center justify-center', 'rounded-[var(--border-radius-round)]', 'border-[length:var(--border-width-selected)]', 'h-5 w-5', 'bg-surface-primary', 'data-[checked=false]:border-content-secondary', 'data-[checked=true]:border-stroke-action', 'data-[invalid=true]:border-stroke-danger', _reactNative.Platform.select({
12
15
  web: [_constants.TRANSITION_COLORS, 'group',
13
16
  // Hover — unchecked (Figma: border unchanged, bg overlay at opacity/hover)
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_utils","_constants","radioRootVariants","exports","cva","DISABLED_CURSOR","radioIndicatorVariants","Platform","select","web","TRANSITION_COLORS","join","default","radioInnerDotVariants","radioLabelVariants","radioGroupVariants","variants","direction","column","row","defaultVariants"],"sourceRoot":"../../../../src","sources":["components/Radio/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEO,MAAMG,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,IAAAE,UAAG,EAAC,CACnC,6BAA6B,EAC7B,wDAAwD,EACxDC,0BAAe,CAChB,CAAC;AAEK,MAAMC,sBAAsB,GAAAH,OAAA,CAAAG,sBAAA,GAAG,IAAAF,UAAG,EAAC,CACxC,6BAA6B,EAC7B,sCAAsC,EACtC,8CAA8C,EAC9C,SAAS,EACT,oBAAoB,EACpB,+CAA+C,EAC/C,0CAA0C,EAC1C,0CAA0C,EAC1CG,qBAAQ,CAACC,MAAM,CAAC;EACdC,GAAG,EAAE,CACHC,4BAAiB,EACjB,OAAO;EACP;EACA,oEAAoE;EACpE;EACA,4FAA4F,EAC5F,0EAA0E,EAC1E,0EAA0E;EAC1E;EACA;EACA,uEAAuE,EACvE,2GAA2G,EAC3G,sFAAsF,EACtF,0GAA0G,EAC1G,4CAA4C,EAC5C,kIAAkI,CACnI,CAACC,IAAI,CAAC,GAAG,CAAC;EACXC,OAAO,EAAE;EACP;EACA;EACA,+CAA+C,EAC/C,uEAAuE,EACvE,uEAAuE,EACvE,+EAA+E,CAChF,CAACD,IAAI,CAAC,GAAG;AACZ,CAAC,CAAC,CACH,CAAC;AAEK,MAAME,qBAAqB,GAAAV,OAAA,CAAAU,qBAAA,GAAG,IAAAT,UAAG,EAAC,CACvC,sCAAsC,EACtC,aAAa,EACb,SAAS,EACT,+BAA+B,EAC/B,0BAA0B,EAC1B,8CAA8C,EAC9CG,qBAAQ,CAACC,MAAM,CAAC;EACdC,GAAG,EAAE,CACH,kDAAkD,EAClD,sEAAsE;EACtE;EACA,wFAAwF,EACxF,4GAA4G,CAC7G,CAACE,IAAI,CAAC,GAAG,CAAC;EACXC,OAAO,EAAE,CACP,mEAAmE,EACnE,2EAA2E,CAC5E,CAACD,IAAI,CAAC,GAAG;AACZ,CAAC,CAAC,CACH,CAAC;AAEK,MAAMG,kBAAkB,GAAAX,OAAA,CAAAW,kBAAA,GAAG,IAAAV,UAAG,EAAC,CAAC,SAAS,EAAE,sBAAsB,CAAC,CAAC;AAEnE,MAAMW,kBAAkB,GAAAZ,OAAA,CAAAY,kBAAA,GAAG,IAAAX,UAAG,EAAC,EAAE,EAAE;EACxCY,QAAQ,EAAE;IACRC,SAAS,EAAE;MACTC,MAAM,EAAE,OAAO;MACfC,GAAG,EAAE;IACP;EACF,CAAC;EACDC,eAAe,EAAE;IAAEH,SAAS,EAAE;EAAS;AACzC,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_utils","_constants","radioRootVariants","exports","cva","DISABLED_CURSOR","radioIndicatorVariants","Platform","select","web","TRANSITION_COLORS","join","default","radioInnerDotVariants","radioLabelVariants","radioGroupVariants","variants","direction","column","row","defaultVariants"],"sourceRoot":"../../../../src","sources":["components/Radio/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEO,MAAMG,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,IAAAE,UAAG,EAAC,CACnC,6BAA6B,EAC7B,wDAAwD,EACxDC,0BAAe;AACf;AAC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IAAAX,UAAG,EAAC,EAAE,EAAE;EACxCY,QAAQ,EAAE;IACRC,SAAS,EAAE;MACTC,MAAM,EAAE,OAAO;MACfC,GAAG,EAAE;IACP;EACF,CAAC;EACDC,eAAe,EAAE;IAAEH,SAAS,EAAE;EAAS;AACzC,CAAC,CAAC","ignoreList":[]}
@@ -3,7 +3,10 @@
3
3
  import { Platform } from 'react-native';
4
4
  import { cva } from '@cdx-ui/utils';
5
5
  import { DISABLED_CURSOR, TRANSITION_COLORS } from '../../styles/constants';
6
- export const radioRootVariants = cva(['flex-row items-center gap-2', 'data-[disabled=true]:opacity-[var(--opacity-disabled)]', DISABLED_CURSOR]);
6
+ export const radioRootVariants = cva(['flex-row items-center gap-2', 'data-[disabled=true]:opacity-[var(--opacity-disabled)]', DISABLED_CURSOR,
7
+ // Suppress default :focus-visible outline on the role="radio" Pressable;
8
+ // focus ring is drawn on the indicator instead of wrapping the whole control.
9
+ 'web:outline-none web:focus:outline-none web:focus-visible:outline-none']);
7
10
  export const radioIndicatorVariants = cva(['items-center justify-center', 'rounded-[var(--border-radius-round)]', 'border-[length:var(--border-width-selected)]', 'h-5 w-5', 'bg-surface-primary', 'data-[checked=false]:border-content-secondary', 'data-[checked=true]:border-stroke-action', 'data-[invalid=true]:border-stroke-danger', Platform.select({
8
11
  web: [TRANSITION_COLORS, 'group',
9
12
  // Hover — unchecked (Figma: border unchanged, bg overlay at opacity/hover)
@@ -1 +1 @@
1
- {"version":3,"names":["Platform","cva","DISABLED_CURSOR","TRANSITION_COLORS","radioRootVariants","radioIndicatorVariants","select","web","join","default","radioInnerDotVariants","radioLabelVariants","radioGroupVariants","variants","direction","column","row","defaultVariants"],"sourceRoot":"../../../../src","sources":["components/Radio/styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,GAAG,QAAQ,eAAe;AACnC,SAASC,eAAe,EAAEC,iBAAiB,QAAQ,wBAAwB;AAE3E,OAAO,MAAMC,iBAAiB,GAAGH,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TC,MAAM,EAAE,OAAO;MACfC,GAAG,EAAE;IACP;EACF,CAAC;EACDC,eAAe,EAAE;IAAEH,SAAS,EAAE;EAAS;AACzC,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["Platform","cva","DISABLED_CURSOR","TRANSITION_COLORS","radioRootVariants","radioIndicatorVariants","select","web","join","default","radioInnerDotVariants","radioLabelVariants","radioGroupVariants","variants","direction","column","row","defaultVariants"],"sourceRoot":"../../../../src","sources":["components/Radio/styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,GAAG,QAAQ,eAAe;AACnC,SAASC,eAAe,EAAEC,iBAAiB,QAAQ,wBAAwB;AAE3E,OAAO,MAAMC,iBAAiB,GAAGH,GAAG,CAAC,CACnC,6BAA6B,EAC7B,wDAAwD,EACxDC,eAAe;AACf;AACA;AACA,wEAAwE,CACzE,CAAC;AAEF,OAAO,MAAMG,sBAAsB,GAAGJ,GAAG,CAAC,CACxC,6BAA6B,EAC7B,sCAAsC,EACtC,8CAA8C,EAC9C,SAAS,EACT,oBAAoB,EACpB,+CAA+C,EAC/C,0CAA0C,EAC1C,0CAA0C,EAC1CD,QAAQ,CAACM,MAAM,CAAC;EACdC,GAAG,EAAE,CACHJ,iBAAiB,EACjB,OAAO;EACP;EACA,oEAAoE;EACpE;EACA,4FAA4F,EAC5F,0EAA0E,EAC1E,0EAA0E;EAC1E;EACA;EACA,uEAAuE,EACvE,2GAA2G,EAC3G,sFAAsF,EACtF,0GAA0G,EAC1G,4CAA4C,EAC5C,kIAAkI,CACnI,CAACK,IAAI,CAAC,GAAG,CAAC;EACXC,OAAO,EAAE;EACP;EACA;EACA,+CAA+C,EAC/C,uEAAuE,EACvE,uEAAuE,EACvE,+EAA+E,CAChF,CAACD,IAAI,CAAC,GAAG;AACZ,CAAC,CAAC,CACH,CAAC;AAEF,OAAO,MAAME,qBAAqB,GAAGT,GAAG,CAAC,CACvC,sCAAsC,EACtC,aAAa,EACb,SAAS,EACT,+BAA+B,EAC/B,0BAA0B,EAC1B,8CAA8C,EAC9CD,QAAQ,CAACM,MAAM,CAAC;EACdC,GAAG,EAAE,CACH,kDAAkD,EAClD,sEAAsE;EACtE;EACA,wFAAwF,EACxF,4GAA4G,CAC7G,CAACC,IAAI,CAAC,GAAG,CAAC;EACXC,OAAO,EAAE,CACP,mEAAmE,EACnE,2EAA2E,CAC5E,CAACD,IAAI,CAAC,GAAG;AACZ,CAAC,CAAC,CACH,CAAC;AAEF,OAAO,MAAMG,kBAAkB,GAAGV,GAAG,CAAC,CAAC,SAAS,EAAE,sBAAsB,CAAC,CAAC;AAE1E,OAAO,MAAMW,kBAAkB,GAAGX,GAAG,CAAC,EAAE,EAAE;EACxCY,QAAQ,EAAE;IACRC,SAAS,EAAE;MACTC,MAAM,EAAE,OAAO;MACfC,GAAG,EAAE;IACP;EACF,CAAC;EACDC,eAAe,EAAE;IAAEH,SAAS,EAAE;EAAS;AACzC,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Radio/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,oFAI5B,CAAC;AAEH,eAAO,MAAM,sBAAsB,oFAqCjC,CAAC;AAEH,eAAO,MAAM,qBAAqB,oFAoBhC,CAAC;AAEH,eAAO,MAAM,kBAAkB,oFAA2C,CAAC;AAE3E,eAAO,MAAM,kBAAkB;;8EAQ7B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Radio/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,oFAO5B,CAAC;AAEH,eAAO,MAAM,sBAAsB,oFAqCjC,CAAC;AAEH,eAAO,MAAM,qBAAqB,oFAoBhC,CAAC;AAEH,eAAO,MAAM,kBAAkB,oFAA2C,CAAC;AAE3E,eAAO,MAAM,kBAAkB;;8EAQ7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdx-ui/components",
3
- "version": "0.0.1-beta.151",
3
+ "version": "0.0.1-beta.154",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,13 +20,7 @@
20
20
  "require": "./lib/commonjs/index.js",
21
21
  "default": "./lib/module/index.js"
22
22
  },
23
- "./styles.css": "./src/styles.css",
24
- "./metro": {
25
- "types": "./lib/typescript/metro/withForgeMetroConfig.d.ts",
26
- "require": "./lib/commonjs/metro/withForgeMetroConfig.js",
27
- "import": "./lib/module/metro/withForgeMetroConfig.js",
28
- "default": "./lib/commonjs/metro/withForgeMetroConfig.js"
29
- }
23
+ "./styles.css": "./src/styles.css"
30
24
  },
31
25
  "files": [
32
26
  "lib",
@@ -86,10 +80,10 @@
86
80
  "@marceloterreiro/flash-calendar": "2.0.0",
87
81
  "react-native-reanimated-carousel": "5.0.0-beta.5",
88
82
  "uniwind": "1.10.0",
89
- "@cdx-ui/formatters": "0.0.1-beta.151",
90
- "@cdx-ui/utils": "0.0.1-beta.151",
91
- "@cdx-ui/primitives": "0.0.1-beta.151",
92
- "@cdx-ui/icons": "0.0.1-beta.151"
83
+ "@cdx-ui/formatters": "0.0.1-beta.154",
84
+ "@cdx-ui/primitives": "0.0.1-beta.154",
85
+ "@cdx-ui/utils": "0.0.1-beta.154",
86
+ "@cdx-ui/icons": "0.0.1-beta.154"
93
87
  },
94
88
  "devDependencies": {
95
89
  "@react-navigation/bottom-tabs": "*",
@@ -6,6 +6,9 @@ export const radioRootVariants = cva([
6
6
  'flex-row items-center gap-2',
7
7
  'data-[disabled=true]:opacity-[var(--opacity-disabled)]',
8
8
  DISABLED_CURSOR,
9
+ // Suppress default :focus-visible outline on the role="radio" Pressable;
10
+ // focus ring is drawn on the indicator instead of wrapping the whole control.
11
+ 'web:outline-none web:focus:outline-none web:focus-visible:outline-none',
9
12
  ]);
10
13
 
11
14
  export const radioIndicatorVariants = cva([
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "withCdxMetroConfig", {
7
- enumerable: true,
8
- get: function () {
9
- return _withForgeMetroConfig.withForgeMetroConfig;
10
- }
11
- });
12
- var _withForgeMetroConfig = require("./withForgeMetroConfig");
13
- //# sourceMappingURL=withCdxMetroConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_withForgeMetroConfig","require"],"sourceRoot":"../../../src","sources":["metro/withCdxMetroConfig.ts"],"mappings":";;;;;;;;;;;AACA,IAAAA,qBAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.withForgeMetroConfig = withForgeMetroConfig;
7
- var _metro = require("uniwind/metro");
8
- /**
9
- * Wraps a Metro config with Forge UI's styling-layer configuration.
10
- *
11
- * Today this delegates to Uniwind. If the styling layer is swapped (see
12
- * `docs/research/uniwind-to-nativewind-contingency.md`), only the internals
13
- * of this function change — consuming Metro configs stay the same.
14
- *
15
- * Must be the **outermost** Metro config wrapper (after any other wrappers
16
- * like `withStorybook`).
17
- */
18
- function withForgeMetroConfig(config, options) {
19
- return (0, _metro.withUniwindConfig)(config, {
20
- cssEntryFile: options.cssEntryFile,
21
- dtsFile: options.generatedTypesFile
22
- });
23
- }
24
- //# sourceMappingURL=withForgeMetroConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_metro","require","withForgeMetroConfig","config","options","withUniwindConfig","cssEntryFile","dtsFile","generatedTypesFile"],"sourceRoot":"../../../src","sources":["metro/withForgeMetroConfig.ts"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,oBAAoBA,CAClCC,MAAS,EACTC,OAAgC,EAC7B;EACH,OAAO,IAAAC,wBAAiB,EAACF,MAAM,EAAE;IAC/BG,YAAY,EAAEF,OAAO,CAACE,YAAY;IAClCC,OAAO,EAAEH,OAAO,CAACI;EACnB,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- /** @deprecated Use `withForgeMetroConfig` instead. Will be removed in a future major release. */
4
- export { withForgeMetroConfig as withCdxMetroConfig } from './withForgeMetroConfig';
5
- /** @deprecated Use `ForgeMetroConfigOptions` instead. Will be removed in a future major release. */
6
- //# sourceMappingURL=withCdxMetroConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["withForgeMetroConfig","withCdxMetroConfig"],"sourceRoot":"../../../src","sources":["metro/withCdxMetroConfig.ts"],"mappings":";;AAAA;AACA,SAASA,oBAAoB,IAAIC,kBAAkB,QAAQ,wBAAwB;AACnF","ignoreList":[]}
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- import { withUniwindConfig } from 'uniwind/metro';
4
- /**
5
- * Wraps a Metro config with Forge UI's styling-layer configuration.
6
- *
7
- * Today this delegates to Uniwind. If the styling layer is swapped (see
8
- * `docs/research/uniwind-to-nativewind-contingency.md`), only the internals
9
- * of this function change — consuming Metro configs stay the same.
10
- *
11
- * Must be the **outermost** Metro config wrapper (after any other wrappers
12
- * like `withStorybook`).
13
- */
14
- export function withForgeMetroConfig(config, options) {
15
- return withUniwindConfig(config, {
16
- cssEntryFile: options.cssEntryFile,
17
- dtsFile: options.generatedTypesFile
18
- });
19
- }
20
- //# sourceMappingURL=withForgeMetroConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["withUniwindConfig","withForgeMetroConfig","config","options","cssEntryFile","dtsFile","generatedTypesFile"],"sourceRoot":"../../../src","sources":["metro/withForgeMetroConfig.ts"],"mappings":";;AACA,SAASA,iBAAiB,QAAQ,eAAe;AASjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,oBAAoBA,CAClCC,MAAS,EACTC,OAAgC,EAC7B;EACH,OAAOH,iBAAiB,CAACE,MAAM,EAAE;IAC/BE,YAAY,EAAED,OAAO,CAACC,YAAY;IAClCC,OAAO,EAAEF,OAAO,CAACG;EACnB,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -1,5 +0,0 @@
1
- /** @deprecated Use `withForgeMetroConfig` instead. Will be removed in a future major release. */
2
- export { withForgeMetroConfig as withCdxMetroConfig } from './withForgeMetroConfig';
3
- /** @deprecated Use `ForgeMetroConfigOptions` instead. Will be removed in a future major release. */
4
- export type { ForgeMetroConfigOptions as CdxMetroConfigOptions } from './withForgeMetroConfig';
5
- //# sourceMappingURL=withCdxMetroConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withCdxMetroConfig.d.ts","sourceRoot":"","sources":["../../../src/metro/withCdxMetroConfig.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,OAAO,EAAE,oBAAoB,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACpF,oGAAoG;AACpG,YAAY,EAAE,uBAAuB,IAAI,qBAAqB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { MetroConfig } from 'metro-config';
2
- export interface ForgeMetroConfigOptions {
3
- /** Path to the CSS entry file (e.g., `'./global.css'`). */
4
- cssEntryFile: string;
5
- /** Path where generated Tailwind class type definitions are written. */
6
- generatedTypesFile?: string;
7
- }
8
- /**
9
- * Wraps a Metro config with Forge UI's styling-layer configuration.
10
- *
11
- * Today this delegates to Uniwind. If the styling layer is swapped (see
12
- * `docs/research/uniwind-to-nativewind-contingency.md`), only the internals
13
- * of this function change — consuming Metro configs stay the same.
14
- *
15
- * Must be the **outermost** Metro config wrapper (after any other wrappers
16
- * like `withStorybook`).
17
- */
18
- export declare function withForgeMetroConfig<T extends MetroConfig>(config: T, options: ForgeMetroConfigOptions): T;
19
- //# sourceMappingURL=withForgeMetroConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withForgeMetroConfig.d.ts","sourceRoot":"","sources":["../../../src/metro/withForgeMetroConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,uBAAuB;IACtC,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,WAAW,EACxD,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,uBAAuB,GAC/B,CAAC,CAKH"}
@@ -1,4 +0,0 @@
1
- /** @deprecated Use `withForgeMetroConfig` instead. Will be removed in a future major release. */
2
- export { withForgeMetroConfig as withCdxMetroConfig } from './withForgeMetroConfig';
3
- /** @deprecated Use `ForgeMetroConfigOptions` instead. Will be removed in a future major release. */
4
- export type { ForgeMetroConfigOptions as CdxMetroConfigOptions } from './withForgeMetroConfig';
@@ -1,29 +0,0 @@
1
- import type { MetroConfig } from 'metro-config';
2
- import { withUniwindConfig } from 'uniwind/metro';
3
-
4
- export interface ForgeMetroConfigOptions {
5
- /** Path to the CSS entry file (e.g., `'./global.css'`). */
6
- cssEntryFile: string;
7
- /** Path where generated Tailwind class type definitions are written. */
8
- generatedTypesFile?: string;
9
- }
10
-
11
- /**
12
- * Wraps a Metro config with Forge UI's styling-layer configuration.
13
- *
14
- * Today this delegates to Uniwind. If the styling layer is swapped (see
15
- * `docs/research/uniwind-to-nativewind-contingency.md`), only the internals
16
- * of this function change — consuming Metro configs stay the same.
17
- *
18
- * Must be the **outermost** Metro config wrapper (after any other wrappers
19
- * like `withStorybook`).
20
- */
21
- export function withForgeMetroConfig<T extends MetroConfig>(
22
- config: T,
23
- options: ForgeMetroConfigOptions,
24
- ): T {
25
- return withUniwindConfig(config, {
26
- cssEntryFile: options.cssEntryFile,
27
- dtsFile: options.generatedTypesFile,
28
- }) as T;
29
- }