@fairmint/ui 0.1.5 → 0.1.7
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 +3 -2
- package/dist/components/FairmintProvider/FairmintProvider.d.ts +6 -1
- package/dist/components/FairmintProvider/FairmintProvider.d.ts.map +1 -1
- package/dist/components/form/EmailField.d.ts +8 -0
- package/dist/components/form/EmailField.d.ts.map +1 -0
- package/dist/components/form/Form.d.ts +13 -0
- package/dist/components/form/Form.d.ts.map +1 -0
- package/dist/components/form/FormField.d.ts +18 -0
- package/dist/components/form/FormField.d.ts.map +1 -0
- package/dist/components/form/PasswordField.d.ts +8 -0
- package/dist/components/form/PasswordField.d.ts.map +1 -0
- package/dist/components/form/PhoneField.d.ts +8 -0
- package/dist/components/form/PhoneField.d.ts.map +1 -0
- package/dist/components/generic/AnimateIn/AnimateIn.d.ts +18 -0
- package/dist/components/generic/AnimateIn/AnimateIn.d.ts.map +1 -0
- package/dist/components/generic/ConfirmDialog/ConfirmDialog.d.ts +23 -0
- package/dist/components/generic/ConfirmDialog/ConfirmDialog.d.ts.map +1 -0
- package/dist/components/generic/Currency/Currency.d.ts +11 -0
- package/dist/components/generic/Currency/Currency.d.ts.map +1 -0
- package/dist/components/generic/DataTable/DataTable.d.ts +37 -0
- package/dist/components/generic/DataTable/DataTable.d.ts.map +1 -0
- package/dist/components/generic/DateDisplay/DateDisplay.d.ts +7 -0
- package/dist/components/generic/DateDisplay/DateDisplay.d.ts.map +1 -0
- package/dist/components/generic/DetailDrawer/DetailDrawer.d.ts +16 -0
- package/dist/components/generic/DetailDrawer/DetailDrawer.d.ts.map +1 -0
- package/dist/components/generic/EmptyState/EmptyState.d.ts +17 -0
- package/dist/components/generic/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/components/generic/ListRow/ListRow.d.ts +33 -0
- package/dist/components/generic/ListRow/ListRow.d.ts.map +1 -0
- package/dist/components/generic/Percent/Percent.d.ts +9 -0
- package/dist/components/generic/Percent/Percent.d.ts.map +1 -0
- package/dist/components/generic/SearchInput/SearchInput.d.ts +16 -0
- package/dist/components/generic/SearchInput/SearchInput.d.ts.map +1 -0
- package/dist/components/generic/StatCard/StatCard.d.ts +19 -0
- package/dist/components/generic/StatCard/StatCard.d.ts.map +1 -0
- package/dist/components/generic/StatusBadge/StatusBadge.d.ts +11 -0
- package/dist/components/generic/StatusBadge/StatusBadge.d.ts.map +1 -0
- package/dist/components/layout/AppHeader/AppHeader.d.ts.map +1 -0
- package/dist/components/layout/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/components/layout/SideNav/SideNav.d.ts.map +1 -0
- package/dist/components/layout/UserMenu/UserMenu.d.ts.map +1 -0
- package/dist/components/primitives/ActionIcon/ActionIcon.d.ts +6 -0
- package/dist/components/primitives/ActionIcon/ActionIcon.d.ts.map +1 -0
- package/dist/components/primitives/Alert/Alert.d.ts +5 -0
- package/dist/components/primitives/Alert/Alert.d.ts.map +1 -0
- package/dist/components/primitives/Avatar/Avatar.d.ts +5 -0
- package/dist/components/primitives/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/primitives/Badge/Badge.d.ts +5 -0
- package/dist/components/primitives/Badge/Badge.d.ts.map +1 -0
- package/dist/components/primitives/Button/Button.d.ts +6 -0
- package/dist/components/primitives/Button/Button.d.ts.map +1 -0
- package/dist/components/primitives/Card/Card.d.ts +5 -0
- package/dist/components/primitives/Card/Card.d.ts.map +1 -0
- package/dist/components/primitives/Checkbox/Checkbox.d.ts +5 -0
- package/dist/components/primitives/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/primitives/Drawer/Drawer.d.ts +5 -0
- package/dist/components/primitives/Drawer/Drawer.d.ts.map +1 -0
- package/dist/components/primitives/Menu/Menu.d.ts +54 -0
- package/dist/components/primitives/Menu/Menu.d.ts.map +1 -0
- package/dist/components/primitives/Modal/Modal.d.ts +5 -0
- package/dist/components/primitives/Modal/Modal.d.ts.map +1 -0
- package/dist/components/primitives/PasswordInput/PasswordInput.d.ts +5 -0
- package/dist/components/primitives/PasswordInput/PasswordInput.d.ts.map +1 -0
- package/dist/components/primitives/Select/Select.d.ts +5 -0
- package/dist/components/primitives/Select/Select.d.ts.map +1 -0
- package/dist/components/primitives/Skeleton/Skeleton.d.ts +5 -0
- package/dist/components/primitives/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/primitives/Switch/Switch.d.ts +5 -0
- package/dist/components/primitives/Switch/Switch.d.ts.map +1 -0
- package/dist/components/primitives/Table/Table.d.ts +50 -0
- package/dist/components/primitives/Table/Table.d.ts.map +1 -0
- package/dist/components/primitives/Tabs/Tabs.d.ts +26 -0
- package/dist/components/primitives/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/primitives/TextInput/TextInput.d.ts +5 -0
- package/dist/components/primitives/TextInput/TextInput.d.ts.map +1 -0
- package/dist/components/primitives/Tooltip/Tooltip.d.ts +5 -0
- package/dist/components/primitives/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/primitives/layout.d.ts +3 -0
- package/dist/components/primitives/layout.d.ts.map +1 -0
- package/dist/components/specific/DocumentRow/DocumentRow.d.ts +17 -0
- package/dist/components/specific/DocumentRow/DocumentRow.d.ts.map +1 -0
- package/dist/components/specific/EquityGrantCard/EquityGrantCard.d.ts +23 -0
- package/dist/components/specific/EquityGrantCard/EquityGrantCard.d.ts.map +1 -0
- package/dist/components/specific/InvestmentCard/InvestmentCard.d.ts +19 -0
- package/dist/components/specific/InvestmentCard/InvestmentCard.d.ts.map +1 -0
- package/dist/components/specific/InvestorProfileCard/InvestorProfileCard.d.ts +15 -0
- package/dist/components/specific/InvestorProfileCard/InvestorProfileCard.d.ts.map +1 -0
- package/dist/fairmint-ui.cjs +25068 -240
- package/dist/fairmint-ui.cjs.map +1 -1
- package/dist/fairmint-ui.js +25047 -235
- package/dist/fairmint-ui.js.map +1 -1
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useDebouncedCallback.d.ts +6 -0
- package/dist/hooks/useDebouncedCallback.d.ts.map +1 -0
- package/dist/hooks/useForm.d.ts +8 -0
- package/dist/hooks/useForm.d.ts.map +1 -0
- package/dist/hooks/useIsMobile.d.ts +6 -0
- package/dist/hooks/useIsMobile.d.ts.map +1 -0
- package/dist/index.d.ts +78 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/notify.d.ts +23 -0
- package/dist/notify.d.ts.map +1 -0
- package/dist/styles.css +8046 -0
- package/dist/theme/colors.d.ts +37 -0
- package/dist/theme/colors.d.ts.map +1 -0
- package/dist/theme/index.d.ts +8 -6
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/utils/address.d.ts +10 -0
- package/dist/utils/address.d.ts.map +1 -0
- package/dist/utils/avatar.d.ts +9 -0
- package/dist/utils/avatar.d.ts.map +1 -0
- package/dist/utils/format.d.ts +62 -0
- package/dist/utils/format.d.ts.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/package.json +8 -5
- package/dist/components/AppHeader/AppHeader.d.ts.map +0 -1
- package/dist/components/PageHeader/PageHeader.d.ts.map +0 -1
- package/dist/components/SideNav/SideNav.d.ts.map +0 -1
- package/dist/components/UserMenu/UserMenu.d.ts.map +0 -1
- /package/dist/components/{AppHeader → layout/AppHeader}/AppHeader.d.ts +0 -0
- /package/dist/components/{PageHeader → layout/PageHeader}/PageHeader.d.ts +0 -0
- /package/dist/components/{SideNav → layout/SideNav}/SideNav.d.ts +0 -0
- /package/dist/components/{UserMenu → layout/UserMenu}/UserMenu.d.ts +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Branded color constants for Fairmint UI.
|
|
3
|
+
* These map to Mantine color names defined in src/theme/index.ts.
|
|
4
|
+
* Import from here instead of hardcoding color name strings.
|
|
5
|
+
*/
|
|
6
|
+
export declare const colors: {
|
|
7
|
+
/** Primary UI color — buttons, links, active states. */
|
|
8
|
+
readonly primary: "indigo";
|
|
9
|
+
/** Fairmint brand blue — gradients, brand elements. */
|
|
10
|
+
readonly brandBlue: "fairmintBlue";
|
|
11
|
+
/** Fairmint brand purple — gradients, brand elements. */
|
|
12
|
+
readonly brandPurple: "fairmintPurple";
|
|
13
|
+
/** Positive outcome — completed, approved, active. */
|
|
14
|
+
readonly success: "success";
|
|
15
|
+
/** Caution — pending, processing, review. */
|
|
16
|
+
readonly warning: "warning";
|
|
17
|
+
/** Negative outcome — failed, rejected, cancelled. */
|
|
18
|
+
readonly error: "error";
|
|
19
|
+
/** Informational — neutral status messages. */
|
|
20
|
+
readonly info: "info";
|
|
21
|
+
/** Neutral gray scale — borders, backgrounds, disabled. */
|
|
22
|
+
readonly neutral: "gray";
|
|
23
|
+
/** Accent color 1 for avatar palette. */
|
|
24
|
+
readonly accent1: "teal";
|
|
25
|
+
/** Accent color 2 for avatar palette. */
|
|
26
|
+
readonly accent2: "cyan";
|
|
27
|
+
/** Accent color 3 for avatar palette. */
|
|
28
|
+
readonly accent3: "green";
|
|
29
|
+
};
|
|
30
|
+
export type FairmintColor = (typeof colors)[keyof typeof colors];
|
|
31
|
+
/**
|
|
32
|
+
* Avatar palette for deterministic color assignment.
|
|
33
|
+
* Used by getAvatarColor() to map names to colors.
|
|
34
|
+
*/
|
|
35
|
+
export declare const AVATAR_PALETTE: readonly ["indigo", "fairmintBlue", "fairmintPurple", "success", "info", "teal", "cyan", "green"];
|
|
36
|
+
export type AvatarPaletteColor = (typeof AVATAR_PALETTE)[number];
|
|
37
|
+
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,MAAM;IACjB,wDAAwD;;IAExD,uDAAuD;;IAEvD,yDAAyD;;IAEzD,sDAAsD;;IAEtD,6CAA6C;;IAE7C,sDAAsD;;IAEtD,+CAA+C;;IAE/C,2DAA2D;;IAE3D,yCAAyC;;IAEzC,yCAAyC;;IAEzC,yCAAyC;;CAEjC,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,cAAc,mGASjB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -71,8 +71,8 @@ export declare const theme: {
|
|
|
71
71
|
} | undefined;
|
|
72
72
|
radius?: {
|
|
73
73
|
[x: string & {}]: string | undefined;
|
|
74
|
-
xs?: string | undefined;
|
|
75
74
|
sm?: string | undefined;
|
|
75
|
+
xs?: string | undefined;
|
|
76
76
|
md?: string | undefined;
|
|
77
77
|
lg?: string | undefined;
|
|
78
78
|
xl?: string | undefined;
|
|
@@ -81,40 +81,40 @@ export declare const theme: {
|
|
|
81
81
|
spacing?: {
|
|
82
82
|
[x: number]: string | undefined;
|
|
83
83
|
[x: string & {}]: string | undefined;
|
|
84
|
-
xs?: string | undefined;
|
|
85
84
|
sm?: string | undefined;
|
|
85
|
+
xs?: string | undefined;
|
|
86
86
|
md?: string | undefined;
|
|
87
87
|
lg?: string | undefined;
|
|
88
88
|
xl?: string | undefined;
|
|
89
89
|
} | undefined;
|
|
90
90
|
fontSizes?: {
|
|
91
91
|
[x: string & {}]: string | undefined;
|
|
92
|
-
xs?: string | undefined;
|
|
93
92
|
sm?: string | undefined;
|
|
93
|
+
xs?: string | undefined;
|
|
94
94
|
md?: string | undefined;
|
|
95
95
|
lg?: string | undefined;
|
|
96
96
|
xl?: string | undefined;
|
|
97
97
|
} | undefined;
|
|
98
98
|
lineHeights?: {
|
|
99
99
|
[x: string & {}]: string | undefined;
|
|
100
|
-
xs?: string | undefined;
|
|
101
100
|
sm?: string | undefined;
|
|
101
|
+
xs?: string | undefined;
|
|
102
102
|
md?: string | undefined;
|
|
103
103
|
lg?: string | undefined;
|
|
104
104
|
xl?: string | undefined;
|
|
105
105
|
} | undefined;
|
|
106
106
|
breakpoints?: {
|
|
107
107
|
[x: string & {}]: string | undefined;
|
|
108
|
-
xs?: string | undefined;
|
|
109
108
|
sm?: string | undefined;
|
|
109
|
+
xs?: string | undefined;
|
|
110
110
|
md?: string | undefined;
|
|
111
111
|
lg?: string | undefined;
|
|
112
112
|
xl?: string | undefined;
|
|
113
113
|
} | undefined;
|
|
114
114
|
shadows?: {
|
|
115
115
|
[x: string & {}]: string | undefined;
|
|
116
|
-
xs?: string | undefined;
|
|
117
116
|
sm?: string | undefined;
|
|
117
|
+
xs?: string | undefined;
|
|
118
118
|
md?: string | undefined;
|
|
119
119
|
lg?: string | undefined;
|
|
120
120
|
xl?: string | undefined;
|
|
@@ -167,4 +167,6 @@ export declare const semanticColors: {
|
|
|
167
167
|
readonly error: "#F04438";
|
|
168
168
|
readonly info: "#06AED4";
|
|
169
169
|
};
|
|
170
|
+
export type { AvatarPaletteColor, FairmintColor } from './colors';
|
|
171
|
+
export { AVATAR_PALETTE, colors } from './colors';
|
|
170
172
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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;AAiIrE,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiEhB,CAAC;AAEH,qDAAqD;AACrD,eAAO,MAAM,WAAW;;;;;CAKd,CAAC;AAEX,iGAAiG;AACjG,eAAO,MAAM,aAAa;;;;;;;;;;;CAWhB,CAAC;AAEX,gDAAgD;AAChD,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAiIrE,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiEhB,CAAC;AAEH,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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Truncate a wallet address to "0x1234...5678" format.
|
|
3
|
+
*
|
|
4
|
+
* @param address - Full address string (e.g., "0x1234567890abcdef...")
|
|
5
|
+
* @param chars - Characters to show on each side. @default 4
|
|
6
|
+
* @example truncateAddress("0x1234567890abcdef1234") → "0x1234...1234"
|
|
7
|
+
* @example truncateAddress("0x1234567890abcdef1234", 6) → "0x123456...ef1234"
|
|
8
|
+
*/
|
|
9
|
+
export declare function truncateAddress(address: string, chars?: number): string;
|
|
10
|
+
//# sourceMappingURL=address.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src/utils/address.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,SAAI,GAAG,MAAM,CAGlE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AvatarPaletteColor } from '../theme/colors';
|
|
2
|
+
/**
|
|
3
|
+
* Deterministically map a string (e.g., company name) to a Mantine color name.
|
|
4
|
+
*
|
|
5
|
+
* @example getAvatarColor("Acme Corp") → "teal"
|
|
6
|
+
* @example getAvatarColor("") → colors.primary (fallback)
|
|
7
|
+
*/
|
|
8
|
+
export declare function getAvatarColor(name: string): AvatarPaletteColor;
|
|
9
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/utils/avatar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1E;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,CAO/D"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared formatting utilities.
|
|
3
|
+
*
|
|
4
|
+
* Reusable across features — currency, number, and date formatting
|
|
5
|
+
* using the Intl API for locale-aware output.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Format a number as USD currency (no cents).
|
|
9
|
+
*
|
|
10
|
+
* @example formatCurrency(125000) → "$125,000"
|
|
11
|
+
*/
|
|
12
|
+
export declare function formatCurrency(n: number): string;
|
|
13
|
+
/**
|
|
14
|
+
* Format a number as USD currency with up to 2 decimal places.
|
|
15
|
+
* Useful for per-share prices and exercise prices where cents matter.
|
|
16
|
+
* For sub-penny values (< $0.01), uses up to 6 decimal places to
|
|
17
|
+
* avoid showing "$0.00" for values like $0.0001.
|
|
18
|
+
*
|
|
19
|
+
* @example formatCurrencyPrecise(0.01) → "$0.01"
|
|
20
|
+
* @example formatCurrencyPrecise(12.50) → "$12.50"
|
|
21
|
+
* @example formatCurrencyPrecise(100) → "$100.00"
|
|
22
|
+
* @example formatCurrencyPrecise(0.0001) → "$0.0001"
|
|
23
|
+
* @example formatCurrencyPrecise(0.000001) → "$0.000001"
|
|
24
|
+
*/
|
|
25
|
+
export declare function formatCurrencyPrecise(n: number): string;
|
|
26
|
+
/**
|
|
27
|
+
* Format a number as currency with the correct symbol for any currency code.
|
|
28
|
+
* Uses sub-penny precision for values < $0.01, same as formatCurrencyPrecise.
|
|
29
|
+
*
|
|
30
|
+
* @example formatPreciseWithCurrency(1.50, 'USD') → "$1.50"
|
|
31
|
+
* @example formatPreciseWithCurrency(1.50, 'EUR') → "€1.50"
|
|
32
|
+
* @example formatPreciseWithCurrency(0.0001, 'USD') → "$0.0001"
|
|
33
|
+
*/
|
|
34
|
+
export declare function formatPreciseWithCurrency(n: number, currency: string): string;
|
|
35
|
+
/**
|
|
36
|
+
* Format a number with locale-aware comma separators.
|
|
37
|
+
*
|
|
38
|
+
* @example formatNumber(1234567) → "1,234,567"
|
|
39
|
+
*/
|
|
40
|
+
export declare function formatNumber(n: number): string;
|
|
41
|
+
/**
|
|
42
|
+
* Format an ISO date string for display.
|
|
43
|
+
*
|
|
44
|
+
* Handles both full ISO timestamps and date-only strings (YYYY-MM-DD).
|
|
45
|
+
* Date-only strings are parsed as local time to avoid the classic
|
|
46
|
+
* off-by-one timezone bug where UTC midnight shifts to the previous
|
|
47
|
+
* day in western timezones.
|
|
48
|
+
*
|
|
49
|
+
* @example formatDate("2024-01-15T00:00:00.000Z") → "Jan 15, 2024"
|
|
50
|
+
* @example formatDate("2024-01-15") → "Jan 15, 2024"
|
|
51
|
+
*/
|
|
52
|
+
export declare function formatDate(dateString: string): string;
|
|
53
|
+
/**
|
|
54
|
+
* Format a number as a percentage string.
|
|
55
|
+
*
|
|
56
|
+
* @param n - The decimal value (e.g., 12.5 for 12.5%)
|
|
57
|
+
* @param decimals - Number of decimal places. @default 2
|
|
58
|
+
* @example formatPercent(12.5) → "12.50%"
|
|
59
|
+
* @example formatPercent(0.5, 1) → "0.5%"
|
|
60
|
+
*/
|
|
61
|
+
export declare function formatPercent(n: number, decimals?: number): string;
|
|
62
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/utils/format.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAOhD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAQvD;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAY7E;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAarD;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,SAAI,GAAG,MAAM,CAE7D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fairmint/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Fairmint design system and UI component library",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -39,7 +39,11 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@mantine/core": "~8.3.0",
|
|
42
|
-
"@mantine/
|
|
42
|
+
"@mantine/form": "~8.3.0",
|
|
43
|
+
"@mantine/hooks": "~8.3.0",
|
|
44
|
+
"@mantine/notifications": "~8.3.0",
|
|
45
|
+
"mantine-form-zod-resolver": "1.3.0",
|
|
46
|
+
"zod": "3.25.3"
|
|
43
47
|
},
|
|
44
48
|
"scripts": {
|
|
45
49
|
"dev": "storybook dev -p 6006",
|
|
@@ -55,14 +59,13 @@
|
|
|
55
59
|
"prepublishOnly": "bun run build"
|
|
56
60
|
},
|
|
57
61
|
"peerDependencies": {
|
|
58
|
-
"@mantine/core": "~8.3.0",
|
|
59
|
-
"@mantine/hooks": "~8.3.0",
|
|
60
62
|
"react": "^19.0.0",
|
|
61
63
|
"react-dom": "^19.0.0"
|
|
62
64
|
},
|
|
63
65
|
"devDependencies": {
|
|
64
66
|
"@biomejs/biome": "2.4.5",
|
|
65
67
|
"@storybook/addon-a11y": "10.2.13",
|
|
68
|
+
"@storybook/addon-docs": "10.2.13",
|
|
66
69
|
"@storybook/react": "10.2.13",
|
|
67
70
|
"@storybook/react-vite": "10.2.13",
|
|
68
71
|
"@tabler/icons-react": "3.37.1",
|
|
@@ -75,8 +78,8 @@
|
|
|
75
78
|
"@types/react-dom": "19.2.3",
|
|
76
79
|
"@vitejs/plugin-react": "5.1.4",
|
|
77
80
|
"@vitest/coverage-v8": "4.0.18",
|
|
78
|
-
"jsdom": "28.1.0",
|
|
79
81
|
"husky": "9.1.7",
|
|
82
|
+
"jsdom": "28.1.0",
|
|
80
83
|
"react": "19.2.4",
|
|
81
84
|
"react-dom": "19.2.4",
|
|
82
85
|
"storybook": "10.2.13",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppHeader.d.ts","sourceRoot":"","sources":["../../../src/components/AppHeader/AppHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,cAAc;IAC7B,6CAA6C;IAC7C,IAAI,EAAE,SAAS,CAAC;IAChB,kDAAkD;IAClD,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,yDAAyD;IACzD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,2CAA2C;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,YAAY,EACZ,eAAuB,EACvB,iBAAiB,EACjB,MAAW,GACZ,EAAE,cAAc,2CAkBhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,eAAe;IAC9B,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,eAAe,2CActE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SideNav.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideNav.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,WAAW;IAC1B,sEAAsE;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,kCAAkC;IAClC,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,qEAAqE;IACrE,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAgB,EAAE,EAAE,YAAY,2CA0B7E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserMenu.d.ts","sourceRoot":"","sources":["../../../src/components/UserMenu/UserMenu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,YAAY;IAC3B,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,aAAa;IAC5B,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,oFAAoF;IACpF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2GAA2G;IAC3G,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,kBAAkB;IAClB,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,sEAAsE;IACtE,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,wBAAgB,QAAQ,CAAC,EACvB,WAAW,EACX,aAAa,EACb,WAAsB,EACtB,SAAS,EACT,KAAK,EACL,WAAW,GACZ,EAAE,aAAa,2CAsCf"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|