@fairmint/ui 0.4.13 → 0.4.15
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 +1 -0
- package/dist/_virtual/index3.cjs +3 -5
- package/dist/_virtual/index3.cjs.map +1 -1
- package/dist/_virtual/index3.js +2 -5
- package/dist/_virtual/index3.js.map +1 -1
- package/dist/_virtual/index4.cjs +5 -3
- package/dist/_virtual/index4.cjs.map +1 -1
- package/dist/_virtual/index4.js +5 -2
- package/dist/_virtual/index4.js.map +1 -1
- package/dist/node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.cjs +1 -1
- package/dist/node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.js +1 -1
- package/dist/node_modules/prop-types/index.cjs +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/vite.cjs +2 -0
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +2 -0
- package/dist/vite.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -86,6 +86,7 @@ Add to your `index.html`:
|
|
|
86
86
|
|--------|----------|
|
|
87
87
|
| `@fairmint/ui` | FairmintProvider, theme, components, color constants |
|
|
88
88
|
| `@fairmint/ui/styles.css` | Mantine core CSS + library component CSS |
|
|
89
|
+
| `@fairmint/ui/mui-icons` | MUI-compat icon re-exports (tree-shakeable subpath) |
|
|
89
90
|
| `@fairmint/ui/vite` | `fairmintUiLocal()` Vite plugin for local dev |
|
|
90
91
|
|
|
91
92
|
## Development
|
package/dist/_virtual/index3.cjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const isEqual = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(fastDeepEqualExports);
|
|
6
|
-
module.exports = isEqual;
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
var propTypes = { exports: {} };
|
|
4
|
+
exports.__module = propTypes;
|
|
7
5
|
//# sourceMappingURL=index3.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index3.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index3.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/index3.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as requireFastDeepEqual } from "../node_modules/fast-deep-equal/index.js";
|
|
3
|
-
var fastDeepEqualExports = requireFastDeepEqual();
|
|
4
|
-
const isEqual = /* @__PURE__ */ getDefaultExportFromCjs(fastDeepEqualExports);
|
|
1
|
+
var propTypes = { exports: {} };
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
propTypes as __module
|
|
7
4
|
};
|
|
8
5
|
//# sourceMappingURL=index3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/_virtual/index4.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
const _commonjsHelpers = require("./_commonjsHelpers.cjs");
|
|
3
|
+
const index = require("../node_modules/fast-deep-equal/index.cjs");
|
|
4
|
+
var fastDeepEqualExports = index.__require();
|
|
5
|
+
const isEqual = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(fastDeepEqualExports);
|
|
6
|
+
module.exports = isEqual;
|
|
5
7
|
//# sourceMappingURL=index4.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index4.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index4.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultExportFromCjs } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as requireFastDeepEqual } from "../node_modules/fast-deep-equal/index.js";
|
|
3
|
+
var fastDeepEqualExports = requireFastDeepEqual();
|
|
4
|
+
const isEqual = /* @__PURE__ */ getDefaultExportFromCjs(fastDeepEqualExports);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
isEqual as default
|
|
4
7
|
};
|
|
5
8
|
//# sourceMappingURL=index4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index4.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index4.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const index = require("../../../../../../_virtual/
|
|
4
|
+
const index = require("../../../../../../_virtual/index4.cjs");
|
|
5
5
|
const getStatus = require("../../get-status/get-status.cjs");
|
|
6
6
|
const clearListState = require("../../lists/clear-list-state.cjs");
|
|
7
7
|
const getPath = require("../../paths/get-path.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useRef, useCallback } from "react";
|
|
2
|
-
import isEqual from "../../../../../../_virtual/
|
|
2
|
+
import isEqual from "../../../../../../_virtual/index4.js";
|
|
3
3
|
import { getStatus } from "../../get-status/get-status.js";
|
|
4
4
|
import { clearListState } from "../../lists/clear-list-state.js";
|
|
5
5
|
import { getPath } from "../../paths/get-path.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index$1 = require("../../_virtual/
|
|
3
|
+
const index$1 = require("../../_virtual/index3.cjs");
|
|
4
4
|
const index = require("./node_modules/react-is/index.cjs");
|
|
5
5
|
const factoryWithTypeCheckers = require("./factoryWithTypeCheckers.cjs");
|
|
6
6
|
const factoryWithThrowingShims = require("./factoryWithThrowingShims.cjs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as propTypes } from "../../_virtual/
|
|
1
|
+
import { __module as propTypes } from "../../_virtual/index3.js";
|
|
2
2
|
import { __require as requireReactIs } from "./node_modules/react-is/index.js";
|
|
3
3
|
import { __require as requireFactoryWithTypeCheckers } from "./factoryWithTypeCheckers.js";
|
|
4
4
|
import { __require as requireFactoryWithThrowingShims } from "./factoryWithThrowingShims.js";
|
package/dist/vite.cjs
CHANGED
|
@@ -6,6 +6,7 @@ function fairmintUiLocal(options) {
|
|
|
6
6
|
const enabled = options?.enabled ?? process.env.LOCAL_UI === "1";
|
|
7
7
|
const localSource = options?.source ?? node_path.resolve(process.cwd(), "../ui/src/index.ts");
|
|
8
8
|
const localStyles = node_path.resolve(localSource, "../styles.css");
|
|
9
|
+
const localMuiIcons = node_path.resolve(localSource, "../components/primitives/muiIcons.tsx");
|
|
9
10
|
const consumerNodeModules = node_path.resolve(process.cwd(), "node_modules");
|
|
10
11
|
const localNodeModules = node_path.resolve(localSource, "../../node_modules");
|
|
11
12
|
const found = enabled && node_fs.existsSync(localSource);
|
|
@@ -32,6 +33,7 @@ function fairmintUiLocal(options) {
|
|
|
32
33
|
"@mantine/hooks": resolveDependency("@mantine/hooks"),
|
|
33
34
|
"@mantine/notifications": resolveDependency("@mantine/notifications"),
|
|
34
35
|
"@fairmint/ui/styles.css": localStyles,
|
|
36
|
+
"@fairmint/ui/mui-icons": localMuiIcons,
|
|
35
37
|
"@fairmint/ui": localSource,
|
|
36
38
|
react: resolveDependency("react"),
|
|
37
39
|
"react-dom": resolveDependency("react-dom"),
|
package/dist/vite.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.cjs","sources":["../src/vite.ts"],"sourcesContent":["import { existsSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\nimport type { Plugin } from \"vite\";\n\ninterface FairmintUiLocalOptions {\n source?: string;\n enabled?: boolean;\n}\n\nexport function fairmintUiLocal(options?: FairmintUiLocalOptions): Plugin {\n const enabled = options?.enabled ?? process.env.LOCAL_UI === \"1\";\n\n const localSource = options?.source ?? resolve(process.cwd(), \"../ui/src/index.ts\");\n const localStyles = resolve(localSource, \"../styles.css\");\n const consumerNodeModules = resolve(process.cwd(), \"node_modules\");\n const localNodeModules = resolve(localSource, \"../../node_modules\");\n const found = enabled && existsSync(localSource);\n const resolveDependency = (packageName: string) => {\n const consumerPath = resolve(consumerNodeModules, packageName);\n return existsSync(consumerPath) ? consumerPath : resolve(localNodeModules, packageName);\n };\n\n if (enabled && !existsSync(localSource)) {\n console.warn(\"[@fairmint/ui] LOCAL_UI=1 but source not found at:\", localSource);\n }\n\n if (found) {\n console.log(\"[@fairmint/ui] Using local source:\", localSource);\n }\n\n return {\n name: \"fairmint-ui-local\",\n config() {\n if (!found) return {};\n\n return {\n resolve: {\n alias: {\n \"@mantine/core\": resolveDependency(\"@mantine/core\"),\n \"@mantine/dates\": resolveDependency(\"@mantine/dates\"),\n \"@mantine/form\": resolveDependency(\"@mantine/form\"),\n \"@mantine/hooks\": resolveDependency(\"@mantine/hooks\"),\n \"@mantine/notifications\": resolveDependency(\"@mantine/notifications\"),\n \"@fairmint/ui/styles.css\": localStyles,\n \"@fairmint/ui\": localSource,\n react: resolveDependency(\"react\"),\n \"react-dom\": resolveDependency(\"react-dom\"),\n zod: resolveDependency(\"zod\"),\n },\n dedupe: [\n \"@mantine/core\",\n \"@mantine/form\",\n \"@mantine/hooks\",\n \"@mantine/dates\",\n \"@mantine/notifications\",\n \"react\",\n \"react-dom\",\n \"zod\",\n ],\n },\n };\n },\n };\n}\n"],"names":["resolve","existsSync"],"mappings":";;;;AASO,SAAS,gBAAgB,SAA0C;AACxE,QAAM,UAAU,SAAS,WAAW,QAAQ,IAAI,aAAa;AAE7D,QAAM,cAAc,SAAS,UAAUA,UAAAA,QAAQ,QAAQ,IAAA,GAAO,oBAAoB;AAClF,QAAM,cAAcA,UAAAA,QAAQ,aAAa,eAAe;
|
|
1
|
+
{"version":3,"file":"vite.cjs","sources":["../src/vite.ts"],"sourcesContent":["import { existsSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\nimport type { Plugin } from \"vite\";\n\ninterface FairmintUiLocalOptions {\n source?: string;\n enabled?: boolean;\n}\n\nexport function fairmintUiLocal(options?: FairmintUiLocalOptions): Plugin {\n const enabled = options?.enabled ?? process.env.LOCAL_UI === \"1\";\n\n const localSource = options?.source ?? resolve(process.cwd(), \"../ui/src/index.ts\");\n const localStyles = resolve(localSource, \"../styles.css\");\n // Subpath exports must be aliased before \"@fairmint/ui\" so Vite does not\n // resolve them as paths under index.ts (e.g. index.ts/mui-icons).\n const localMuiIcons = resolve(localSource, \"../components/primitives/muiIcons.tsx\");\n const consumerNodeModules = resolve(process.cwd(), \"node_modules\");\n const localNodeModules = resolve(localSource, \"../../node_modules\");\n const found = enabled && existsSync(localSource);\n const resolveDependency = (packageName: string) => {\n const consumerPath = resolve(consumerNodeModules, packageName);\n return existsSync(consumerPath) ? consumerPath : resolve(localNodeModules, packageName);\n };\n\n if (enabled && !existsSync(localSource)) {\n console.warn(\"[@fairmint/ui] LOCAL_UI=1 but source not found at:\", localSource);\n }\n\n if (found) {\n console.log(\"[@fairmint/ui] Using local source:\", localSource);\n }\n\n return {\n name: \"fairmint-ui-local\",\n config() {\n if (!found) return {};\n\n return {\n resolve: {\n alias: {\n \"@mantine/core\": resolveDependency(\"@mantine/core\"),\n \"@mantine/dates\": resolveDependency(\"@mantine/dates\"),\n \"@mantine/form\": resolveDependency(\"@mantine/form\"),\n \"@mantine/hooks\": resolveDependency(\"@mantine/hooks\"),\n \"@mantine/notifications\": resolveDependency(\"@mantine/notifications\"),\n \"@fairmint/ui/styles.css\": localStyles,\n \"@fairmint/ui/mui-icons\": localMuiIcons,\n \"@fairmint/ui\": localSource,\n react: resolveDependency(\"react\"),\n \"react-dom\": resolveDependency(\"react-dom\"),\n zod: resolveDependency(\"zod\"),\n },\n dedupe: [\n \"@mantine/core\",\n \"@mantine/form\",\n \"@mantine/hooks\",\n \"@mantine/dates\",\n \"@mantine/notifications\",\n \"react\",\n \"react-dom\",\n \"zod\",\n ],\n },\n };\n },\n };\n}\n"],"names":["resolve","existsSync"],"mappings":";;;;AASO,SAAS,gBAAgB,SAA0C;AACxE,QAAM,UAAU,SAAS,WAAW,QAAQ,IAAI,aAAa;AAE7D,QAAM,cAAc,SAAS,UAAUA,UAAAA,QAAQ,QAAQ,IAAA,GAAO,oBAAoB;AAClF,QAAM,cAAcA,UAAAA,QAAQ,aAAa,eAAe;AAGxD,QAAM,gBAAgBA,UAAAA,QAAQ,aAAa,uCAAuC;AAClF,QAAM,sBAAsBA,UAAAA,QAAQ,QAAQ,IAAA,GAAO,cAAc;AACjE,QAAM,mBAAmBA,UAAAA,QAAQ,aAAa,oBAAoB;AAClE,QAAM,QAAQ,WAAWC,QAAAA,WAAW,WAAW;AAC/C,QAAM,oBAAoB,CAAC,gBAAwB;AACjD,UAAM,eAAeD,UAAAA,QAAQ,qBAAqB,WAAW;AAC7D,WAAOC,QAAAA,WAAW,YAAY,IAAI,eAAeD,UAAAA,QAAQ,kBAAkB,WAAW;AAAA,EACxF;AAEA,MAAI,WAAW,CAACC,mBAAW,WAAW,GAAG;AACvC,YAAQ,KAAK,sDAAsD,WAAW;AAAA,EAChF;AAEA,MAAI,OAAO;AACT,YAAQ,IAAI,sCAAsC,WAAW;AAAA,EAC/D;AAEA,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AACP,UAAI,CAAC,MAAO,QAAO,CAAA;AAEnB,aAAO;AAAA,QACL,SAAS;AAAA,UACP,OAAO;AAAA,YACL,iBAAiB,kBAAkB,eAAe;AAAA,YAClD,kBAAkB,kBAAkB,gBAAgB;AAAA,YACpD,iBAAiB,kBAAkB,eAAe;AAAA,YAClD,kBAAkB,kBAAkB,gBAAgB;AAAA,YACpD,0BAA0B,kBAAkB,wBAAwB;AAAA,YACpE,2BAA2B;AAAA,YAC3B,0BAA0B;AAAA,YAC1B,gBAAgB;AAAA,YAChB,OAAO,kBAAkB,OAAO;AAAA,YAChC,aAAa,kBAAkB,WAAW;AAAA,YAC1C,KAAK,kBAAkB,KAAK;AAAA,UAAA;AAAA,UAE9B,QAAQ;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,UAAA;AAAA,QACF;AAAA,MACF;AAAA,IAEJ;AAAA,EAAA;AAEJ;;"}
|
package/dist/vite.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../src/vite.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,UAAU,sBAAsB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../src/vite.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,UAAU,sBAAsB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,MAAM,CA0DxE"}
|
package/dist/vite.js
CHANGED
|
@@ -4,6 +4,7 @@ function fairmintUiLocal(options) {
|
|
|
4
4
|
const enabled = options?.enabled ?? process.env.LOCAL_UI === "1";
|
|
5
5
|
const localSource = options?.source ?? resolve(process.cwd(), "../ui/src/index.ts");
|
|
6
6
|
const localStyles = resolve(localSource, "../styles.css");
|
|
7
|
+
const localMuiIcons = resolve(localSource, "../components/primitives/muiIcons.tsx");
|
|
7
8
|
const consumerNodeModules = resolve(process.cwd(), "node_modules");
|
|
8
9
|
const localNodeModules = resolve(localSource, "../../node_modules");
|
|
9
10
|
const found = enabled && existsSync(localSource);
|
|
@@ -30,6 +31,7 @@ function fairmintUiLocal(options) {
|
|
|
30
31
|
"@mantine/hooks": resolveDependency("@mantine/hooks"),
|
|
31
32
|
"@mantine/notifications": resolveDependency("@mantine/notifications"),
|
|
32
33
|
"@fairmint/ui/styles.css": localStyles,
|
|
34
|
+
"@fairmint/ui/mui-icons": localMuiIcons,
|
|
33
35
|
"@fairmint/ui": localSource,
|
|
34
36
|
react: resolveDependency("react"),
|
|
35
37
|
"react-dom": resolveDependency("react-dom"),
|
package/dist/vite.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite.js","sources":["../src/vite.ts"],"sourcesContent":["import { existsSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\nimport type { Plugin } from \"vite\";\n\ninterface FairmintUiLocalOptions {\n source?: string;\n enabled?: boolean;\n}\n\nexport function fairmintUiLocal(options?: FairmintUiLocalOptions): Plugin {\n const enabled = options?.enabled ?? process.env.LOCAL_UI === \"1\";\n\n const localSource = options?.source ?? resolve(process.cwd(), \"../ui/src/index.ts\");\n const localStyles = resolve(localSource, \"../styles.css\");\n const consumerNodeModules = resolve(process.cwd(), \"node_modules\");\n const localNodeModules = resolve(localSource, \"../../node_modules\");\n const found = enabled && existsSync(localSource);\n const resolveDependency = (packageName: string) => {\n const consumerPath = resolve(consumerNodeModules, packageName);\n return existsSync(consumerPath) ? consumerPath : resolve(localNodeModules, packageName);\n };\n\n if (enabled && !existsSync(localSource)) {\n console.warn(\"[@fairmint/ui] LOCAL_UI=1 but source not found at:\", localSource);\n }\n\n if (found) {\n console.log(\"[@fairmint/ui] Using local source:\", localSource);\n }\n\n return {\n name: \"fairmint-ui-local\",\n config() {\n if (!found) return {};\n\n return {\n resolve: {\n alias: {\n \"@mantine/core\": resolveDependency(\"@mantine/core\"),\n \"@mantine/dates\": resolveDependency(\"@mantine/dates\"),\n \"@mantine/form\": resolveDependency(\"@mantine/form\"),\n \"@mantine/hooks\": resolveDependency(\"@mantine/hooks\"),\n \"@mantine/notifications\": resolveDependency(\"@mantine/notifications\"),\n \"@fairmint/ui/styles.css\": localStyles,\n \"@fairmint/ui\": localSource,\n react: resolveDependency(\"react\"),\n \"react-dom\": resolveDependency(\"react-dom\"),\n zod: resolveDependency(\"zod\"),\n },\n dedupe: [\n \"@mantine/core\",\n \"@mantine/form\",\n \"@mantine/hooks\",\n \"@mantine/dates\",\n \"@mantine/notifications\",\n \"react\",\n \"react-dom\",\n \"zod\",\n ],\n },\n };\n },\n };\n}\n"],"names":[],"mappings":";;AASO,SAAS,gBAAgB,SAA0C;AACxE,QAAM,UAAU,SAAS,WAAW,QAAQ,IAAI,aAAa;AAE7D,QAAM,cAAc,SAAS,UAAU,QAAQ,QAAQ,IAAA,GAAO,oBAAoB;AAClF,QAAM,cAAc,QAAQ,aAAa,eAAe;
|
|
1
|
+
{"version":3,"file":"vite.js","sources":["../src/vite.ts"],"sourcesContent":["import { existsSync } from \"node:fs\";\nimport { resolve } from \"node:path\";\nimport type { Plugin } from \"vite\";\n\ninterface FairmintUiLocalOptions {\n source?: string;\n enabled?: boolean;\n}\n\nexport function fairmintUiLocal(options?: FairmintUiLocalOptions): Plugin {\n const enabled = options?.enabled ?? process.env.LOCAL_UI === \"1\";\n\n const localSource = options?.source ?? resolve(process.cwd(), \"../ui/src/index.ts\");\n const localStyles = resolve(localSource, \"../styles.css\");\n // Subpath exports must be aliased before \"@fairmint/ui\" so Vite does not\n // resolve them as paths under index.ts (e.g. index.ts/mui-icons).\n const localMuiIcons = resolve(localSource, \"../components/primitives/muiIcons.tsx\");\n const consumerNodeModules = resolve(process.cwd(), \"node_modules\");\n const localNodeModules = resolve(localSource, \"../../node_modules\");\n const found = enabled && existsSync(localSource);\n const resolveDependency = (packageName: string) => {\n const consumerPath = resolve(consumerNodeModules, packageName);\n return existsSync(consumerPath) ? consumerPath : resolve(localNodeModules, packageName);\n };\n\n if (enabled && !existsSync(localSource)) {\n console.warn(\"[@fairmint/ui] LOCAL_UI=1 but source not found at:\", localSource);\n }\n\n if (found) {\n console.log(\"[@fairmint/ui] Using local source:\", localSource);\n }\n\n return {\n name: \"fairmint-ui-local\",\n config() {\n if (!found) return {};\n\n return {\n resolve: {\n alias: {\n \"@mantine/core\": resolveDependency(\"@mantine/core\"),\n \"@mantine/dates\": resolveDependency(\"@mantine/dates\"),\n \"@mantine/form\": resolveDependency(\"@mantine/form\"),\n \"@mantine/hooks\": resolveDependency(\"@mantine/hooks\"),\n \"@mantine/notifications\": resolveDependency(\"@mantine/notifications\"),\n \"@fairmint/ui/styles.css\": localStyles,\n \"@fairmint/ui/mui-icons\": localMuiIcons,\n \"@fairmint/ui\": localSource,\n react: resolveDependency(\"react\"),\n \"react-dom\": resolveDependency(\"react-dom\"),\n zod: resolveDependency(\"zod\"),\n },\n dedupe: [\n \"@mantine/core\",\n \"@mantine/form\",\n \"@mantine/hooks\",\n \"@mantine/dates\",\n \"@mantine/notifications\",\n \"react\",\n \"react-dom\",\n \"zod\",\n ],\n },\n };\n },\n };\n}\n"],"names":[],"mappings":";;AASO,SAAS,gBAAgB,SAA0C;AACxE,QAAM,UAAU,SAAS,WAAW,QAAQ,IAAI,aAAa;AAE7D,QAAM,cAAc,SAAS,UAAU,QAAQ,QAAQ,IAAA,GAAO,oBAAoB;AAClF,QAAM,cAAc,QAAQ,aAAa,eAAe;AAGxD,QAAM,gBAAgB,QAAQ,aAAa,uCAAuC;AAClF,QAAM,sBAAsB,QAAQ,QAAQ,IAAA,GAAO,cAAc;AACjE,QAAM,mBAAmB,QAAQ,aAAa,oBAAoB;AAClE,QAAM,QAAQ,WAAW,WAAW,WAAW;AAC/C,QAAM,oBAAoB,CAAC,gBAAwB;AACjD,UAAM,eAAe,QAAQ,qBAAqB,WAAW;AAC7D,WAAO,WAAW,YAAY,IAAI,eAAe,QAAQ,kBAAkB,WAAW;AAAA,EACxF;AAEA,MAAI,WAAW,CAAC,WAAW,WAAW,GAAG;AACvC,YAAQ,KAAK,sDAAsD,WAAW;AAAA,EAChF;AAEA,MAAI,OAAO;AACT,YAAQ,IAAI,sCAAsC,WAAW;AAAA,EAC/D;AAEA,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AACP,UAAI,CAAC,MAAO,QAAO,CAAA;AAEnB,aAAO;AAAA,QACL,SAAS;AAAA,UACP,OAAO;AAAA,YACL,iBAAiB,kBAAkB,eAAe;AAAA,YAClD,kBAAkB,kBAAkB,gBAAgB;AAAA,YACpD,iBAAiB,kBAAkB,eAAe;AAAA,YAClD,kBAAkB,kBAAkB,gBAAgB;AAAA,YACpD,0BAA0B,kBAAkB,wBAAwB;AAAA,YACpE,2BAA2B;AAAA,YAC3B,0BAA0B;AAAA,YAC1B,gBAAgB;AAAA,YAChB,OAAO,kBAAkB,OAAO;AAAA,YAChC,aAAa,kBAAkB,WAAW;AAAA,YAC1C,KAAK,kBAAkB,KAAK;AAAA,UAAA;AAAA,UAE9B,QAAQ;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,UAAA;AAAA,QACF;AAAA,MACF;AAAA,IAEJ;AAAA,EAAA;AAEJ;"}
|