@fairmint/ui 0.2.12 → 0.2.14

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/index.d.ts CHANGED
@@ -17,7 +17,7 @@ export { FormField } from './components/form/FormField';
17
17
  export type { PasswordFieldProps } from './components/form/PasswordField';
18
18
  export { PasswordField, passwordSchema } from './components/form/PasswordField';
19
19
  export type { PhoneFieldProps } from './components/form/PhoneField';
20
- export { PhoneField, phoneSchema } from './components/form/PhoneField';
20
+ export { formatPhone, formatPhoneDisplay, normalizePhone, PhoneField, phoneSchema, } from './components/form/PhoneField';
21
21
  export type { USStateFieldProps, USStateOption } from './components/form/USStateField/USStateField';
22
22
  export { US_STATES, USStateField } from './components/form/USStateField/USStateField';
23
23
  export type { ZipFieldProps, ZipSchemaOptions } from './components/form/ZipField/ZipField';
@@ -38,6 +38,8 @@ export type { EditableSectionProps } from './components/generic/EditableSection/
38
38
  export { EditableSection } from './components/generic/EditableSection/EditableSection';
39
39
  export type { EmptyStateProps } from './components/generic/EmptyState/EmptyState';
40
40
  export { EmptyState } from './components/generic/EmptyState/EmptyState';
41
+ export type { ErrorPageCode, ErrorPageProps } from './components/generic/ErrorPage/ErrorPage';
42
+ export { ErrorPage } from './components/generic/ErrorPage/ErrorPage';
41
43
  export type { ListRowProps } from './components/generic/ListRow/ListRow';
42
44
  export { ListRow } from './components/generic/ListRow/ListRow';
43
45
  export type { PercentProps } from './components/generic/Percent/Percent';
@@ -95,7 +97,7 @@ export { useForm } from './hooks/useForm';
95
97
  export { MOBILE_BREAKPOINT, useIsMobile } from './hooks/useIsMobile';
96
98
  export { notify } from './notify';
97
99
  export type { AvatarPaletteColor, FairmintColor } from './theme';
98
- export { AVATAR_PALETTE, brandColors, colors, neutralColors, radii, semanticColors, theme, } from './theme';
100
+ export { AVATAR_PALETTE, brandColors, colors, createFairmintMantineProviderProps, fairmintCssVariables, fairmintVars, neutralColors, radii, semanticColors, theme, typography, } from './theme';
99
101
  export { ETHEREUM_ADDRESS_REGEX, isEthereumAddress, truncateAddress, validateEthereumAddress, ZERO_ETHEREUM_ADDRESS, } from './utils/address';
100
102
  export { getAvatarColor } from './utils/avatar';
101
103
  export { formatCurrency, formatCurrencyPrecise, formatDate, formatNumber, formatPercent, formatPreciseWithCurrency, } from './utils/format';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,YAAY,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,YAAY,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,YAAY,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AAE5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,YAAY,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACvE,YAAY,EAAE,yBAAyB,EAAE,MAAM,6DAA6D,CAAC;AAC7G,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,6DAA6D,CAAC;AACrE,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,YAAY,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,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E,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEjE,OAAO,EACL,cAAc,EACd,WAAW,EACX,MAAM,EACN,kCAAkC,EAClC,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,KAAK,EACL,cAAc,EACd,KAAK,EACL,UAAU,GACX,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,yBAAyB,GAC1B,MAAM,gBAAgB,CAAC;AAOxB,OAAO,cAAc,CAAC"}
@@ -1,4 +1,4 @@
1
- import { MantineColorsTuple } from '@mantine/core';
1
+ import { CSSVariablesResolver, MantineColorsTuple } from '@mantine/core';
2
2
  /**
3
3
  * Fairmint radius scale — single source of truth used by both the Mantine
4
4
  * theme config and the exported `radii` constant. Edit here; both stay in sync.
@@ -10,6 +10,15 @@ export declare const radii: {
10
10
  readonly lg: "0.75rem";
11
11
  readonly xl: "1rem";
12
12
  };
13
+ /**
14
+ * Typography constants — single source of truth for font families.
15
+ * Use these instead of var(--mantine-font-family-*) in component code.
16
+ * Declared before createTheme so the theme itself references them.
17
+ */
18
+ export declare const typography: {
19
+ readonly fontFamily: "\"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"";
20
+ readonly headingFontFamily: "\"Plus Jakarta Sans\", sans-serif";
21
+ };
13
22
  export declare const theme: {
14
23
  focusRing?: "auto" | "always" | "never" | undefined;
15
24
  scale?: number | undefined;
@@ -151,6 +160,201 @@ export declare const theme: {
151
160
  [x: string]: any;
152
161
  } | undefined;
153
162
  };
163
+ /**
164
+ * Fairmint CSS variables resolver for MantineProvider.
165
+ * Publishes --fairmint-* custom properties so components never reference
166
+ * --mantine-* variables directly. All light/dark switching is centralised here.
167
+ */
168
+ export declare const fairmintCssVariables: CSSVariablesResolver;
169
+ /**
170
+ * Typed JS references to every --fairmint-* CSS custom property.
171
+ * Use these in component code instead of raw "var(--fairmint-...)" strings so
172
+ * that renaming a token requires one change here rather than hunting every file.
173
+ */
174
+ /**
175
+ * Typed JS references to every --fairmint-* CSS custom property.
176
+ * Use these in component code instead of raw "var(--fairmint-...)" strings so
177
+ * that renaming a token requires one change here rather than hunting every file.
178
+ *
179
+ * Each value includes a CSS fallback derived from the light-mode token value so
180
+ * that components degrade gracefully when cssVariablesResolver is not wired up
181
+ * (e.g. bare MantineProvider in tests or custom setups). Dark-mode fidelity is
182
+ * lost without the resolver, but nothing renders invisibly.
183
+ */
184
+ export declare const fairmintVars: {
185
+ /** Secondary / muted text — subtitles, supporting labels. Adapts to color scheme. */
186
+ readonly colorTextSecondary: `var(--fairmint-color-text-secondary, ${string})`;
187
+ /** Tertiary / faint text — timestamps, metadata. Adapts to color scheme. */
188
+ readonly colorTextTertiary: `var(--fairmint-color-text-tertiary, ${string})`;
189
+ /** Background tint for selected / active rows. Adapts to color scheme. */
190
+ readonly colorSurfaceSelected: `var(--fairmint-color-surface-selected, ${string})`;
191
+ /** Large decorative watermark on error/empty pages. Adapts to color scheme. */
192
+ readonly watermarkColor: `var(--fairmint-watermark-color, ${string})`;
193
+ /** Heading font family (Plus Jakarta Sans). */
194
+ readonly fontHeadings: "var(--fairmint-font-headings, \"Plus Jakarta Sans\", sans-serif)";
195
+ /** Body font family (Inter). */
196
+ readonly fontBody: "var(--fairmint-font-body, \"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\")";
197
+ };
198
+ /**
199
+ * Returns the MantineProvider props required to use @fairmint/ui components.
200
+ * Use this when you need to instantiate MantineProvider directly (e.g. in
201
+ * Storybook decorators or server-rendering setups) instead of FairmintProvider.
202
+ *
203
+ * @example
204
+ * ```tsx
205
+ * import { MantineProvider } from "@mantine/core";
206
+ * import { createFairmintMantineProviderProps } from "@fairmint/ui";
207
+ *
208
+ * <MantineProvider {...createFairmintMantineProviderProps()}>
209
+ * <App />
210
+ * </MantineProvider>
211
+ * ```
212
+ */
213
+ export declare function createFairmintMantineProviderProps(colorScheme?: "light" | "dark" | "auto"): {
214
+ readonly theme: {
215
+ focusRing?: "auto" | "always" | "never" | undefined;
216
+ scale?: number | undefined;
217
+ fontSmoothing?: boolean | undefined;
218
+ white?: string | undefined;
219
+ black?: string | undefined;
220
+ colors?: {
221
+ [x: string & {}]: MantineColorsTuple | undefined;
222
+ indigo?: MantineColorsTuple | undefined;
223
+ gray?: MantineColorsTuple | undefined;
224
+ teal?: MantineColorsTuple | undefined;
225
+ cyan?: MantineColorsTuple | undefined;
226
+ green?: MantineColorsTuple | undefined;
227
+ dark?: MantineColorsTuple | undefined;
228
+ red?: MantineColorsTuple | undefined;
229
+ pink?: MantineColorsTuple | undefined;
230
+ grape?: MantineColorsTuple | undefined;
231
+ violet?: MantineColorsTuple | undefined;
232
+ blue?: MantineColorsTuple | undefined;
233
+ lime?: MantineColorsTuple | undefined;
234
+ yellow?: MantineColorsTuple | undefined;
235
+ orange?: MantineColorsTuple | undefined;
236
+ } | undefined;
237
+ primaryShade?: import('@mantine/core').MantineColorShade | {
238
+ light?: import('@mantine/core').MantineColorShade | undefined;
239
+ dark?: import('@mantine/core').MantineColorShade | undefined;
240
+ } | undefined;
241
+ primaryColor?: string | undefined;
242
+ variantColorResolver?: import('@mantine/core').VariantColorsResolver | undefined;
243
+ autoContrast?: boolean | undefined;
244
+ luminanceThreshold?: number | undefined;
245
+ fontFamily?: string | undefined;
246
+ fontFamilyMonospace?: string | undefined;
247
+ headings?: {
248
+ fontFamily?: string | undefined;
249
+ fontWeight?: string | undefined;
250
+ textWrap?: "wrap" | "nowrap" | "balance" | "pretty" | "stable" | undefined;
251
+ sizes?: {
252
+ h1?: {
253
+ fontSize?: string | undefined;
254
+ fontWeight?: string | undefined;
255
+ lineHeight?: string | undefined;
256
+ } | undefined;
257
+ h2?: {
258
+ fontSize?: string | undefined;
259
+ fontWeight?: string | undefined;
260
+ lineHeight?: string | undefined;
261
+ } | undefined;
262
+ h3?: {
263
+ fontSize?: string | undefined;
264
+ fontWeight?: string | undefined;
265
+ lineHeight?: string | undefined;
266
+ } | undefined;
267
+ h4?: {
268
+ fontSize?: string | undefined;
269
+ fontWeight?: string | undefined;
270
+ lineHeight?: string | undefined;
271
+ } | undefined;
272
+ h5?: {
273
+ fontSize?: string | undefined;
274
+ fontWeight?: string | undefined;
275
+ lineHeight?: string | undefined;
276
+ } | undefined;
277
+ h6?: {
278
+ fontSize?: string | undefined;
279
+ fontWeight?: string | undefined;
280
+ lineHeight?: string | undefined;
281
+ } | undefined;
282
+ } | undefined;
283
+ } | undefined;
284
+ radius?: {
285
+ [x: string & {}]: string | undefined;
286
+ xs?: string | undefined;
287
+ sm?: string | undefined;
288
+ md?: string | undefined;
289
+ lg?: string | undefined;
290
+ xl?: string | undefined;
291
+ } | undefined;
292
+ defaultRadius?: import('@mantine/core').MantineRadius | undefined;
293
+ spacing?: {
294
+ [x: number]: string | undefined;
295
+ [x: string & {}]: string | undefined;
296
+ xs?: string | undefined;
297
+ sm?: string | undefined;
298
+ md?: string | undefined;
299
+ lg?: string | undefined;
300
+ xl?: string | undefined;
301
+ } | undefined;
302
+ fontSizes?: {
303
+ [x: string & {}]: string | undefined;
304
+ xs?: string | undefined;
305
+ sm?: string | undefined;
306
+ md?: string | undefined;
307
+ lg?: string | undefined;
308
+ xl?: string | undefined;
309
+ } | undefined;
310
+ lineHeights?: {
311
+ [x: string & {}]: string | undefined;
312
+ xs?: string | undefined;
313
+ sm?: string | undefined;
314
+ md?: string | undefined;
315
+ lg?: string | undefined;
316
+ xl?: string | undefined;
317
+ } | undefined;
318
+ breakpoints?: {
319
+ [x: string & {}]: string | undefined;
320
+ xs?: string | undefined;
321
+ sm?: string | undefined;
322
+ md?: string | undefined;
323
+ lg?: string | undefined;
324
+ xl?: string | undefined;
325
+ } | undefined;
326
+ shadows?: {
327
+ [x: string & {}]: string | undefined;
328
+ xs?: string | undefined;
329
+ sm?: string | undefined;
330
+ md?: string | undefined;
331
+ lg?: string | undefined;
332
+ xl?: string | undefined;
333
+ } | undefined;
334
+ respectReducedMotion?: boolean | undefined;
335
+ cursorType?: "default" | "pointer" | undefined;
336
+ defaultGradient?: {
337
+ from?: string | undefined;
338
+ to?: string | undefined;
339
+ deg?: number | undefined;
340
+ } | undefined;
341
+ activeClassName?: string | undefined;
342
+ focusClassName?: string | undefined;
343
+ components?: {
344
+ [x: string]: {
345
+ classNames?: any;
346
+ styles?: any;
347
+ vars?: any;
348
+ defaultProps?: any;
349
+ } | undefined;
350
+ } | undefined;
351
+ other?: {
352
+ [x: string]: any;
353
+ } | undefined;
354
+ };
355
+ readonly cssVariablesResolver: CSSVariablesResolver;
356
+ readonly defaultColorScheme: "dark" | "light" | "auto";
357
+ };
154
358
  /** Brand colors for gradients and custom styling. */
155
359
  export declare const brandColors: {
156
360
  readonly blue: "#0A4EFB";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;CAMR,CAAC;AAiIX,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOjD;AAED,qDAAqD;AACrD,eAAO,MAAM,WAAW;;;;;CAKd,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairmint/ui",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "type": "module",
5
5
  "description": "Fairmint design system and UI component library",
6
6
  "license": "UNLICENSED",