@fairmint/ui 0.2.28 → 0.2.30

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAe,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAIhG;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;CAMR,CAAC;AAiIX;;;;GAIG;AACH,eAAO,MAAM,UAAU;;;CAIb,CAAC;AAEX,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEhB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,oBA0BjC,CAAC;AAEH;;;;GAIG;AACH;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY;IACvB,qFAAqF;;IAErF,4EAA4E;;IAE5E,0EAA0E;;IAE1E,+EAA+E;;IAE/E,+CAA+C;;IAE/C,gCAAgC;;CAExB,CAAC;AAEX;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kCAAkC,CAChD,WAAW,GAAE,OAAO,GAAG,MAAM,GAAG,MAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOjD;AAED,qDAAqD;AACrD,eAAO,MAAM,WAAW;;;;;CAKd,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,WAAW;;CAEd,CAAC;AAEX,iGAAiG;AACjG,eAAO,MAAM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,MAAM,GAAG,MAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOjD;AAED,qDAAqD;AACrD,eAAO,MAAM,WAAW;;;;;CAKd,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,WAAW;;CAEd,CAAC;AAEX,iGAAiG;AACjG,eAAO,MAAM,aAAa;;;;;;;;;;;CAWhB,CAAC;AAEX,gDAAgD;AAChD,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClD,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC"}
package/dist/vite.cjs CHANGED
@@ -23,7 +23,15 @@ function fairmintUiLocal(options) {
23
23
  "@fairmint/ui/styles.css": localStyles,
24
24
  "@fairmint/ui": localSource
25
25
  },
26
- dedupe: ["@mantine/core", "@mantine/hooks", "react", "react-dom"]
26
+ dedupe: [
27
+ "@mantine/core",
28
+ "@mantine/hooks",
29
+ "@mantine/dates",
30
+ "@mantine/form",
31
+ "@mantine/notifications",
32
+ "react",
33
+ "react-dom"
34
+ ]
27
35
  }
28
36
  };
29
37
  }
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 /** Path to the ui repo's src/index.ts. Auto-detected from ../ui/src/index.ts if not set. */\n source?: string;\n}\n\n/**\n * Vite plugin for local @fairmint/ui development.\n *\n * Resolves @fairmint/ui to local source for instant HMR without building.\n * Disabled by default — enable with LOCAL_UI=1 env var.\n *\n * Usage in consumer vite.config.ts:\n * import { fairmintUiLocal } from '@fairmint/ui/vite';\n * plugins: [fairmintUiLocal(), react()]\n *\n * Then run: LOCAL_UI=1 bun run dev\n */\nexport function fairmintUiLocal(options?: FairmintUiLocalOptions): Plugin {\n const 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 found = enabled && existsSync(localSource);\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 \"@fairmint/ui/styles.css\": localStyles,\n \"@fairmint/ui\": localSource,\n },\n dedupe: [\"@mantine/core\", \"@mantine/hooks\", \"react\", \"react-dom\"],\n },\n };\n },\n };\n}\n"],"names":["resolve","existsSync"],"mappings":";;;;AAqBO,SAAS,gBAAgB,SAA0C;AACxE,QAAM,UAAU,QAAQ,IAAI,aAAa;AAEzC,QAAM,cAAc,SAAS,UAAUA,UAAAA,QAAQ,QAAQ,IAAA,GAAO,oBAAoB;AAClF,QAAM,cAAcA,UAAAA,QAAQ,aAAa,eAAe;AACxD,QAAM,QAAQ,WAAWC,QAAAA,WAAW,WAAW;AAE/C,MAAI,WAAW,CAACA,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,2BAA2B;AAAA,YAC3B,gBAAgB;AAAA,UAAA;AAAA,UAElB,QAAQ,CAAC,iBAAiB,kBAAkB,SAAS,WAAW;AAAA,QAAA;AAAA,MAClE;AAAA,IAEJ;AAAA,EAAA;AAEJ;;"}
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 /** Path to the ui repo's src/index.ts. Auto-detected from ../ui/src/index.ts if not set. */\n source?: string;\n}\n\n/**\n * Vite plugin for local @fairmint/ui development.\n *\n * Resolves @fairmint/ui to local source for instant HMR without building.\n * Disabled by default — opt in with LOCAL_UI=1 so consumers never silently\n * build against an unpublished sibling checkout.\n *\n * Usage in consumer vite.config.ts:\n * import { fairmintUiLocal } from '@fairmint/ui/vite';\n * plugins: [fairmintUiLocal(), react()]\n *\n * Then run: LOCAL_UI=1 bun run dev\n */\nexport function fairmintUiLocal(options?: FairmintUiLocalOptions): Plugin {\n const enabled = process.env.LOCAL_UI === \"1\";\n const localSource = options?.source ?? resolve(process.cwd(), \"../ui/src/index.ts\");\n const localStyles = resolve(localSource, \"../styles.css\");\n const found = enabled && existsSync(localSource);\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 \"@fairmint/ui/styles.css\": localStyles,\n \"@fairmint/ui\": localSource,\n },\n dedupe: [\n \"@mantine/core\",\n \"@mantine/hooks\",\n \"@mantine/dates\",\n \"@mantine/form\",\n \"@mantine/notifications\",\n \"react\",\n \"react-dom\",\n ],\n },\n };\n },\n };\n}\n"],"names":["resolve","existsSync"],"mappings":";;;;AAsBO,SAAS,gBAAgB,SAA0C;AACxE,QAAM,UAAU,QAAQ,IAAI,aAAa;AACzC,QAAM,cAAc,SAAS,UAAUA,UAAAA,QAAQ,QAAQ,IAAA,GAAO,oBAAoB;AAClF,QAAM,cAAcA,UAAAA,QAAQ,aAAa,eAAe;AACxD,QAAM,QAAQ,WAAWC,QAAAA,WAAW,WAAW;AAE/C,MAAI,WAAW,CAACA,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,2BAA2B;AAAA,YAC3B,gBAAgB;AAAA,UAAA;AAAA,UAElB,QAAQ;AAAA,YACN;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 CHANGED
@@ -7,7 +7,8 @@ interface FairmintUiLocalOptions {
7
7
  * Vite plugin for local @fairmint/ui development.
8
8
  *
9
9
  * Resolves @fairmint/ui to local source for instant HMR without building.
10
- * Disabled by default — enable with LOCAL_UI=1 env var.
10
+ * Disabled by default — opt in with LOCAL_UI=1 so consumers never silently
11
+ * build against an unpublished sibling checkout.
11
12
  *
12
13
  * Usage in consumer vite.config.ts:
13
14
  * import { fairmintUiLocal } from '@fairmint/ui/vite';
@@ -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,4FAA4F;IAC5F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,MAAM,CA+BxE"}
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,4FAA4F;IAC5F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,sBAAsB,GAAG,MAAM,CAsCxE"}
package/dist/vite.js CHANGED
@@ -21,7 +21,15 @@ function fairmintUiLocal(options) {
21
21
  "@fairmint/ui/styles.css": localStyles,
22
22
  "@fairmint/ui": localSource
23
23
  },
24
- dedupe: ["@mantine/core", "@mantine/hooks", "react", "react-dom"]
24
+ dedupe: [
25
+ "@mantine/core",
26
+ "@mantine/hooks",
27
+ "@mantine/dates",
28
+ "@mantine/form",
29
+ "@mantine/notifications",
30
+ "react",
31
+ "react-dom"
32
+ ]
25
33
  }
26
34
  };
27
35
  }
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 /** Path to the ui repo's src/index.ts. Auto-detected from ../ui/src/index.ts if not set. */\n source?: string;\n}\n\n/**\n * Vite plugin for local @fairmint/ui development.\n *\n * Resolves @fairmint/ui to local source for instant HMR without building.\n * Disabled by default — enable with LOCAL_UI=1 env var.\n *\n * Usage in consumer vite.config.ts:\n * import { fairmintUiLocal } from '@fairmint/ui/vite';\n * plugins: [fairmintUiLocal(), react()]\n *\n * Then run: LOCAL_UI=1 bun run dev\n */\nexport function fairmintUiLocal(options?: FairmintUiLocalOptions): Plugin {\n const 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 found = enabled && existsSync(localSource);\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 \"@fairmint/ui/styles.css\": localStyles,\n \"@fairmint/ui\": localSource,\n },\n dedupe: [\"@mantine/core\", \"@mantine/hooks\", \"react\", \"react-dom\"],\n },\n };\n },\n };\n}\n"],"names":[],"mappings":";;AAqBO,SAAS,gBAAgB,SAA0C;AACxE,QAAM,UAAU,QAAQ,IAAI,aAAa;AAEzC,QAAM,cAAc,SAAS,UAAU,QAAQ,QAAQ,IAAA,GAAO,oBAAoB;AAClF,QAAM,cAAc,QAAQ,aAAa,eAAe;AACxD,QAAM,QAAQ,WAAW,WAAW,WAAW;AAE/C,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,2BAA2B;AAAA,YAC3B,gBAAgB;AAAA,UAAA;AAAA,UAElB,QAAQ,CAAC,iBAAiB,kBAAkB,SAAS,WAAW;AAAA,QAAA;AAAA,MAClE;AAAA,IAEJ;AAAA,EAAA;AAEJ;"}
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 /** Path to the ui repo's src/index.ts. Auto-detected from ../ui/src/index.ts if not set. */\n source?: string;\n}\n\n/**\n * Vite plugin for local @fairmint/ui development.\n *\n * Resolves @fairmint/ui to local source for instant HMR without building.\n * Disabled by default — opt in with LOCAL_UI=1 so consumers never silently\n * build against an unpublished sibling checkout.\n *\n * Usage in consumer vite.config.ts:\n * import { fairmintUiLocal } from '@fairmint/ui/vite';\n * plugins: [fairmintUiLocal(), react()]\n *\n * Then run: LOCAL_UI=1 bun run dev\n */\nexport function fairmintUiLocal(options?: FairmintUiLocalOptions): Plugin {\n const enabled = process.env.LOCAL_UI === \"1\";\n const localSource = options?.source ?? resolve(process.cwd(), \"../ui/src/index.ts\");\n const localStyles = resolve(localSource, \"../styles.css\");\n const found = enabled && existsSync(localSource);\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 \"@fairmint/ui/styles.css\": localStyles,\n \"@fairmint/ui\": localSource,\n },\n dedupe: [\n \"@mantine/core\",\n \"@mantine/hooks\",\n \"@mantine/dates\",\n \"@mantine/form\",\n \"@mantine/notifications\",\n \"react\",\n \"react-dom\",\n ],\n },\n };\n },\n };\n}\n"],"names":[],"mappings":";;AAsBO,SAAS,gBAAgB,SAA0C;AACxE,QAAM,UAAU,QAAQ,IAAI,aAAa;AACzC,QAAM,cAAc,SAAS,UAAU,QAAQ,QAAQ,IAAA,GAAO,oBAAoB;AAClF,QAAM,cAAc,QAAQ,aAAa,eAAe;AACxD,QAAM,QAAQ,WAAW,WAAW,WAAW;AAE/C,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,2BAA2B;AAAA,YAC3B,gBAAgB;AAAA,UAAA;AAAA,UAElB,QAAQ;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,UAAA;AAAA,QACF;AAAA,MACF;AAAA,IAEJ;AAAA,EAAA;AAEJ;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairmint/ui",
3
- "version": "0.2.28",
3
+ "version": "0.2.30",
4
4
  "type": "module",
5
5
  "description": "Fairmint design system and UI component library",
6
6
  "license": "UNLICENSED",
@@ -39,9 +39,11 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@mantine/core": "8.3.18",
42
+ "@mantine/dates": "8.3.18",
42
43
  "@mantine/form": "8.3.18",
43
44
  "@mantine/hooks": "8.3.18",
44
45
  "@mantine/notifications": "8.3.18",
46
+ "dayjs": "1.11.20",
45
47
  "mantine-form-zod-resolver": "1.3.0",
46
48
  "react-easy-crop": "5.5.6",
47
49
  "zod": "4.3.6"
@@ -90,8 +92,8 @@
90
92
  "@vitest/coverage-v8": "4.0.18",
91
93
  "@vitest/runner": "4.0.18",
92
94
  "chromatic": "15.2.0",
95
+ "happy-dom": "20.9.0",
93
96
  "husky": "9.1.7",
94
- "jsdom": "28.1.0",
95
97
  "playwright": "1.57.0",
96
98
  "react": "19.2.4",
97
99
  "react-dom": "19.2.4",