@fairmint/ui 0.2.29 → 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.
- package/dist/components/FairmintProvider/FairmintProvider.d.ts.map +1 -1
- package/dist/components/form/BirthdayDatePicker/BirthdayDatePicker.d.ts +15 -0
- package/dist/components/form/BirthdayDatePicker/BirthdayDatePicker.d.ts.map +1 -0
- package/dist/fairmint-ui.cjs +3818 -514
- package/dist/fairmint-ui.cjs.map +1 -1
- package/dist/fairmint-ui.js +3819 -515
- package/dist/fairmint-ui.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/styles.css +851 -0
- package/dist/vite.cjs +9 -1
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.ts +2 -1
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +9 -1
- package/dist/vite.js.map +1 -1
- package/package.json +4 -2
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: [
|
|
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 —
|
|
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 —
|
|
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';
|
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,4FAA4F;IAC5F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED
|
|
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: [
|
|
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 —
|
|
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.
|
|
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",
|