@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.
Files changed (125) hide show
  1. package/README.md +3 -2
  2. package/dist/components/FairmintProvider/FairmintProvider.d.ts +6 -1
  3. package/dist/components/FairmintProvider/FairmintProvider.d.ts.map +1 -1
  4. package/dist/components/form/EmailField.d.ts +8 -0
  5. package/dist/components/form/EmailField.d.ts.map +1 -0
  6. package/dist/components/form/Form.d.ts +13 -0
  7. package/dist/components/form/Form.d.ts.map +1 -0
  8. package/dist/components/form/FormField.d.ts +18 -0
  9. package/dist/components/form/FormField.d.ts.map +1 -0
  10. package/dist/components/form/PasswordField.d.ts +8 -0
  11. package/dist/components/form/PasswordField.d.ts.map +1 -0
  12. package/dist/components/form/PhoneField.d.ts +8 -0
  13. package/dist/components/form/PhoneField.d.ts.map +1 -0
  14. package/dist/components/generic/AnimateIn/AnimateIn.d.ts +18 -0
  15. package/dist/components/generic/AnimateIn/AnimateIn.d.ts.map +1 -0
  16. package/dist/components/generic/ConfirmDialog/ConfirmDialog.d.ts +23 -0
  17. package/dist/components/generic/ConfirmDialog/ConfirmDialog.d.ts.map +1 -0
  18. package/dist/components/generic/Currency/Currency.d.ts +11 -0
  19. package/dist/components/generic/Currency/Currency.d.ts.map +1 -0
  20. package/dist/components/generic/DataTable/DataTable.d.ts +37 -0
  21. package/dist/components/generic/DataTable/DataTable.d.ts.map +1 -0
  22. package/dist/components/generic/DateDisplay/DateDisplay.d.ts +7 -0
  23. package/dist/components/generic/DateDisplay/DateDisplay.d.ts.map +1 -0
  24. package/dist/components/generic/DetailDrawer/DetailDrawer.d.ts +16 -0
  25. package/dist/components/generic/DetailDrawer/DetailDrawer.d.ts.map +1 -0
  26. package/dist/components/generic/EmptyState/EmptyState.d.ts +17 -0
  27. package/dist/components/generic/EmptyState/EmptyState.d.ts.map +1 -0
  28. package/dist/components/generic/ListRow/ListRow.d.ts +33 -0
  29. package/dist/components/generic/ListRow/ListRow.d.ts.map +1 -0
  30. package/dist/components/generic/Percent/Percent.d.ts +9 -0
  31. package/dist/components/generic/Percent/Percent.d.ts.map +1 -0
  32. package/dist/components/generic/SearchInput/SearchInput.d.ts +16 -0
  33. package/dist/components/generic/SearchInput/SearchInput.d.ts.map +1 -0
  34. package/dist/components/generic/StatCard/StatCard.d.ts +19 -0
  35. package/dist/components/generic/StatCard/StatCard.d.ts.map +1 -0
  36. package/dist/components/generic/StatusBadge/StatusBadge.d.ts +11 -0
  37. package/dist/components/generic/StatusBadge/StatusBadge.d.ts.map +1 -0
  38. package/dist/components/layout/AppHeader/AppHeader.d.ts.map +1 -0
  39. package/dist/components/layout/PageHeader/PageHeader.d.ts.map +1 -0
  40. package/dist/components/layout/SideNav/SideNav.d.ts.map +1 -0
  41. package/dist/components/layout/UserMenu/UserMenu.d.ts.map +1 -0
  42. package/dist/components/primitives/ActionIcon/ActionIcon.d.ts +6 -0
  43. package/dist/components/primitives/ActionIcon/ActionIcon.d.ts.map +1 -0
  44. package/dist/components/primitives/Alert/Alert.d.ts +5 -0
  45. package/dist/components/primitives/Alert/Alert.d.ts.map +1 -0
  46. package/dist/components/primitives/Avatar/Avatar.d.ts +5 -0
  47. package/dist/components/primitives/Avatar/Avatar.d.ts.map +1 -0
  48. package/dist/components/primitives/Badge/Badge.d.ts +5 -0
  49. package/dist/components/primitives/Badge/Badge.d.ts.map +1 -0
  50. package/dist/components/primitives/Button/Button.d.ts +6 -0
  51. package/dist/components/primitives/Button/Button.d.ts.map +1 -0
  52. package/dist/components/primitives/Card/Card.d.ts +5 -0
  53. package/dist/components/primitives/Card/Card.d.ts.map +1 -0
  54. package/dist/components/primitives/Checkbox/Checkbox.d.ts +5 -0
  55. package/dist/components/primitives/Checkbox/Checkbox.d.ts.map +1 -0
  56. package/dist/components/primitives/Drawer/Drawer.d.ts +5 -0
  57. package/dist/components/primitives/Drawer/Drawer.d.ts.map +1 -0
  58. package/dist/components/primitives/Menu/Menu.d.ts +54 -0
  59. package/dist/components/primitives/Menu/Menu.d.ts.map +1 -0
  60. package/dist/components/primitives/Modal/Modal.d.ts +5 -0
  61. package/dist/components/primitives/Modal/Modal.d.ts.map +1 -0
  62. package/dist/components/primitives/PasswordInput/PasswordInput.d.ts +5 -0
  63. package/dist/components/primitives/PasswordInput/PasswordInput.d.ts.map +1 -0
  64. package/dist/components/primitives/Select/Select.d.ts +5 -0
  65. package/dist/components/primitives/Select/Select.d.ts.map +1 -0
  66. package/dist/components/primitives/Skeleton/Skeleton.d.ts +5 -0
  67. package/dist/components/primitives/Skeleton/Skeleton.d.ts.map +1 -0
  68. package/dist/components/primitives/Switch/Switch.d.ts +5 -0
  69. package/dist/components/primitives/Switch/Switch.d.ts.map +1 -0
  70. package/dist/components/primitives/Table/Table.d.ts +50 -0
  71. package/dist/components/primitives/Table/Table.d.ts.map +1 -0
  72. package/dist/components/primitives/Tabs/Tabs.d.ts +26 -0
  73. package/dist/components/primitives/Tabs/Tabs.d.ts.map +1 -0
  74. package/dist/components/primitives/TextInput/TextInput.d.ts +5 -0
  75. package/dist/components/primitives/TextInput/TextInput.d.ts.map +1 -0
  76. package/dist/components/primitives/Tooltip/Tooltip.d.ts +5 -0
  77. package/dist/components/primitives/Tooltip/Tooltip.d.ts.map +1 -0
  78. package/dist/components/primitives/layout.d.ts +3 -0
  79. package/dist/components/primitives/layout.d.ts.map +1 -0
  80. package/dist/components/specific/DocumentRow/DocumentRow.d.ts +17 -0
  81. package/dist/components/specific/DocumentRow/DocumentRow.d.ts.map +1 -0
  82. package/dist/components/specific/EquityGrantCard/EquityGrantCard.d.ts +23 -0
  83. package/dist/components/specific/EquityGrantCard/EquityGrantCard.d.ts.map +1 -0
  84. package/dist/components/specific/InvestmentCard/InvestmentCard.d.ts +19 -0
  85. package/dist/components/specific/InvestmentCard/InvestmentCard.d.ts.map +1 -0
  86. package/dist/components/specific/InvestorProfileCard/InvestorProfileCard.d.ts +15 -0
  87. package/dist/components/specific/InvestorProfileCard/InvestorProfileCard.d.ts.map +1 -0
  88. package/dist/fairmint-ui.cjs +25068 -240
  89. package/dist/fairmint-ui.cjs.map +1 -1
  90. package/dist/fairmint-ui.js +25047 -235
  91. package/dist/fairmint-ui.js.map +1 -1
  92. package/dist/hooks/index.d.ts +4 -0
  93. package/dist/hooks/index.d.ts.map +1 -0
  94. package/dist/hooks/useDebouncedCallback.d.ts +6 -0
  95. package/dist/hooks/useDebouncedCallback.d.ts.map +1 -0
  96. package/dist/hooks/useForm.d.ts +8 -0
  97. package/dist/hooks/useForm.d.ts.map +1 -0
  98. package/dist/hooks/useIsMobile.d.ts +6 -0
  99. package/dist/hooks/useIsMobile.d.ts.map +1 -0
  100. package/dist/index.d.ts +78 -9
  101. package/dist/index.d.ts.map +1 -1
  102. package/dist/notify.d.ts +23 -0
  103. package/dist/notify.d.ts.map +1 -0
  104. package/dist/styles.css +8046 -0
  105. package/dist/theme/colors.d.ts +37 -0
  106. package/dist/theme/colors.d.ts.map +1 -0
  107. package/dist/theme/index.d.ts +8 -6
  108. package/dist/theme/index.d.ts.map +1 -1
  109. package/dist/utils/address.d.ts +10 -0
  110. package/dist/utils/address.d.ts.map +1 -0
  111. package/dist/utils/avatar.d.ts +9 -0
  112. package/dist/utils/avatar.d.ts.map +1 -0
  113. package/dist/utils/format.d.ts +62 -0
  114. package/dist/utils/format.d.ts.map +1 -0
  115. package/dist/utils/index.d.ts +4 -0
  116. package/dist/utils/index.d.ts.map +1 -0
  117. package/package.json +8 -5
  118. package/dist/components/AppHeader/AppHeader.d.ts.map +0 -1
  119. package/dist/components/PageHeader/PageHeader.d.ts.map +0 -1
  120. package/dist/components/SideNav/SideNav.d.ts.map +0 -1
  121. package/dist/components/UserMenu/UserMenu.d.ts.map +0 -1
  122. /package/dist/components/{AppHeader → layout/AppHeader}/AppHeader.d.ts +0 -0
  123. /package/dist/components/{PageHeader → layout/PageHeader}/PageHeader.d.ts +0 -0
  124. /package/dist/components/{SideNav → layout/SideNav}/SideNav.d.ts +0 -0
  125. /package/dist/components/{UserMenu → layout/UserMenu}/UserMenu.d.ts +0 -0
@@ -0,0 +1,4 @@
1
+ export { useDebouncedCallback } from './useDebouncedCallback';
2
+ export { useForm } from './useForm';
3
+ export { MOBILE_BREAKPOINT, useIsMobile } from './useIsMobile';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns a debounced version of `fn` that delays invocation by `delay` ms.
3
+ * The debounced function is stable across renders (same reference).
4
+ */
5
+ export declare function useDebouncedCallback<T extends (...args: Parameters<T>) => void>(fn: T, delay: number): (...args: Parameters<T>) => void;
6
+ //# sourceMappingURL=useDebouncedCallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDebouncedCallback.d.ts","sourceRoot":"","sources":["../../src/hooks/useDebouncedCallback.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,EAC7E,EAAE,EAAE,CAAC,EACL,KAAK,EAAE,MAAM,GACZ,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAoBlC"}
@@ -0,0 +1,8 @@
1
+ import { UseFormReturnType } from '@mantine/form';
2
+ import { z } from 'zod';
3
+ export declare function useForm<T extends z.ZodType>(options: {
4
+ schema: T;
5
+ initialValues: z.infer<T>;
6
+ validateInputOnBlur?: boolean;
7
+ }): UseFormReturnType<z.infer<T>>;
8
+ //# sourceMappingURL=useForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../src/hooks/useForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAA6B,MAAM,eAAe,CAAC;AAElF,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,wBAAgB,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE;IACpD,MAAM,EAAE,CAAC,CAAC;IACV,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,GAAG,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAOhC"}
@@ -0,0 +1,6 @@
1
+ export declare const MOBILE_BREAKPOINT = "(max-width: 48em)";
2
+ /**
3
+ * Returns true when the viewport is below the Fairmint `sm` breakpoint (48em / 768px).
4
+ */
5
+ export declare function useIsMobile(): boolean;
6
+ //# sourceMappingURL=useIsMobile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsMobile.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsMobile.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD;;GAEG;AACH,wBAAgB,WAAW,IAAI,OAAO,CAMrC"}
package/dist/index.d.ts CHANGED
@@ -1,18 +1,87 @@
1
- export type { AppHeaderProps } from './components/AppHeader/AppHeader';
2
- export { AppHeader } from './components/AppHeader/AppHeader';
3
1
  export type { ErrorFallbackProps } from './components/ErrorFallback/ErrorFallback';
4
2
  export { ErrorFallback } from './components/ErrorFallback/ErrorFallback';
5
3
  export type { FairmintLogoProps } from './components/FairmintLogo/FairmintLogo';
6
4
  export { FairmintLogo } from './components/FairmintLogo/FairmintLogo';
7
5
  export type { FairmintProviderProps } from './components/FairmintProvider/FairmintProvider';
8
6
  export { FairmintProvider } from './components/FairmintProvider/FairmintProvider';
7
+ export type { EmailFieldProps } from './components/form/EmailField';
8
+ export { EmailField, emailSchema } from './components/form/EmailField';
9
+ export type { FormProps } from './components/form/Form';
10
+ export { Form } from './components/form/Form';
11
+ export type { FormFieldProps } from './components/form/FormField';
12
+ export { FormField } from './components/form/FormField';
13
+ export type { PasswordFieldProps } from './components/form/PasswordField';
14
+ export { PasswordField, passwordSchema } from './components/form/PasswordField';
15
+ export type { PhoneFieldProps } from './components/form/PhoneField';
16
+ export { PhoneField, phoneSchema } from './components/form/PhoneField';
17
+ export type { AnimateInDirection, AnimateInProps } from './components/generic/AnimateIn/AnimateIn';
18
+ export { AnimateIn } from './components/generic/AnimateIn/AnimateIn';
19
+ export type { ConfirmDialogProps } from './components/generic/ConfirmDialog/ConfirmDialog';
20
+ export { ConfirmDialog } from './components/generic/ConfirmDialog/ConfirmDialog';
21
+ export type { CurrencyProps } from './components/generic/Currency/Currency';
22
+ export { Currency } from './components/generic/Currency/Currency';
23
+ export type { DataTableColumn, DataTableProps } from './components/generic/DataTable/DataTable';
24
+ export { DataTable } from './components/generic/DataTable/DataTable';
25
+ export type { DateDisplayProps } from './components/generic/DateDisplay/DateDisplay';
26
+ export { DateDisplay } from './components/generic/DateDisplay/DateDisplay';
27
+ export type { DetailDrawerProps } from './components/generic/DetailDrawer/DetailDrawer';
28
+ export { DetailDrawer } from './components/generic/DetailDrawer/DetailDrawer';
29
+ export type { EmptyStateProps } from './components/generic/EmptyState/EmptyState';
30
+ export { EmptyState } from './components/generic/EmptyState/EmptyState';
31
+ export type { ListRowProps } from './components/generic/ListRow/ListRow';
32
+ export { ListRow } from './components/generic/ListRow/ListRow';
33
+ export type { PercentProps } from './components/generic/Percent/Percent';
34
+ export { Percent } from './components/generic/Percent/Percent';
35
+ export type { SearchInputProps } from './components/generic/SearchInput/SearchInput';
36
+ export { SearchInput } from './components/generic/SearchInput/SearchInput';
37
+ export type { StatCardProps } from './components/generic/StatCard/StatCard';
38
+ export { StatCard } from './components/generic/StatCard/StatCard';
39
+ export type { StatusBadgeProps } from './components/generic/StatusBadge/StatusBadge';
40
+ export { StatusBadge } from './components/generic/StatusBadge/StatusBadge';
9
41
  export type { LoadingSpinnerProps } from './components/LoadingSpinner/LoadingSpinner';
10
42
  export { LoadingSpinner } from './components/LoadingSpinner/LoadingSpinner';
11
- export type { PageHeaderProps } from './components/PageHeader/PageHeader';
12
- export { PageHeader } from './components/PageHeader/PageHeader';
13
- export type { SideNavItem, SideNavProps } from './components/SideNav/SideNav';
14
- export { SideNav } from './components/SideNav/SideNav';
15
- export type { UserMenuItem, UserMenuProps } from './components/UserMenu/UserMenu';
16
- export { UserMenu } from './components/UserMenu/UserMenu';
17
- export { brandColors, neutralColors, semanticColors, theme } from './theme';
43
+ export type { AppHeaderProps } from './components/layout/AppHeader/AppHeader';
44
+ export { AppHeader } from './components/layout/AppHeader/AppHeader';
45
+ export type { PageHeaderProps } from './components/layout/PageHeader/PageHeader';
46
+ export { PageHeader } from './components/layout/PageHeader/PageHeader';
47
+ export type { SideNavItem, SideNavProps } from './components/layout/SideNav/SideNav';
48
+ export { SideNav } from './components/layout/SideNav/SideNav';
49
+ export type { UserMenuItem, UserMenuProps } from './components/layout/UserMenu/UserMenu';
50
+ export { UserMenu } from './components/layout/UserMenu/UserMenu';
51
+ export { ActionIcon } from './components/primitives/ActionIcon/ActionIcon';
52
+ export { Alert } from './components/primitives/Alert/Alert';
53
+ export { Avatar } from './components/primitives/Avatar/Avatar';
54
+ export { Badge } from './components/primitives/Badge/Badge';
55
+ export { Button, type ButtonProps } from './components/primitives/Button/Button';
56
+ export { Card } from './components/primitives/Card/Card';
57
+ export { Checkbox } from './components/primitives/Checkbox/Checkbox';
58
+ export { Drawer } from './components/primitives/Drawer/Drawer';
59
+ export { Anchor, Box, Center, Collapse, Container, Divider, Flex, Grid, Group, Paper, ScrollArea, SimpleGrid, Space, Stack, Text, Title, useClickOutside, useClipboard, useDebouncedValue, useDisclosure, useHotkeys, useId, useIntersection, useMediaQuery, useScrollIntoView, useViewportSize, } from './components/primitives/layout';
60
+ export { Menu } from './components/primitives/Menu/Menu';
61
+ export { Modal } from './components/primitives/Modal/Modal';
62
+ export { PasswordInput } from './components/primitives/PasswordInput/PasswordInput';
63
+ export { Select } from './components/primitives/Select/Select';
64
+ export { Skeleton } from './components/primitives/Skeleton/Skeleton';
65
+ export { Switch } from './components/primitives/Switch/Switch';
66
+ export { Table } from './components/primitives/Table/Table';
67
+ export { Tabs } from './components/primitives/Tabs/Tabs';
68
+ export { TextInput } from './components/primitives/TextInput/TextInput';
69
+ export { Tooltip } from './components/primitives/Tooltip/Tooltip';
70
+ export type { DocumentRowProps } from './components/specific/DocumentRow/DocumentRow';
71
+ export { DocumentRow } from './components/specific/DocumentRow/DocumentRow';
72
+ export type { EquityGrantCardProps } from './components/specific/EquityGrantCard/EquityGrantCard';
73
+ export { EquityGrantCard } from './components/specific/EquityGrantCard/EquityGrantCard';
74
+ export type { InvestmentCardProps } from './components/specific/InvestmentCard/InvestmentCard';
75
+ export { InvestmentCard } from './components/specific/InvestmentCard/InvestmentCard';
76
+ export type { InvestorProfileCardProps } from './components/specific/InvestorProfileCard/InvestorProfileCard';
77
+ export { InvestorProfileCard } from './components/specific/InvestorProfileCard/InvestorProfileCard';
78
+ export { useDebouncedCallback } from './hooks/useDebouncedCallback';
79
+ export { useForm } from './hooks/useForm';
80
+ export { MOBILE_BREAKPOINT, useIsMobile } from './hooks/useIsMobile';
81
+ export { notify } from './notify';
82
+ export type { AvatarPaletteColor, FairmintColor } from './theme';
83
+ export { AVATAR_PALETTE, brandColors, colors, neutralColors, semanticColors, theme } from './theme';
84
+ export { truncateAddress } from './utils/address';
85
+ export { getAvatarColor } from './utils/avatar';
86
+ export { formatCurrency, formatCurrencyPrecise, formatDate, formatNumber, formatPercent, formatPreciseWithCurrency, } from './utils/format';
18
87
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,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,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,YAAY,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAElF,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAG5E,OAAO,gDAAgD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,YAAY,EAAE,iBAAiB,EAAE,MAAM,wCAA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
+ /**
7
+ * Fairmint notification helpers.
8
+ *
9
+ * Uses Mantine's notifications system with Fairmint semantic colors.
10
+ * Requires FairmintProvider to be mounted in the component tree.
11
+ *
12
+ * @example
13
+ * notify.success({ message: "Investment saved." });
14
+ * notify.error({ title: "Error", message: "Failed to load data." });
15
+ */
16
+ export declare const notify: {
17
+ success: ({ title, message, autoClose }: NotifyOptions) => string;
18
+ error: ({ title, message, autoClose }: NotifyOptions) => string;
19
+ warning: ({ title, message, autoClose }: NotifyOptions) => string;
20
+ info: ({ title, message, autoClose }: NotifyOptions) => string;
21
+ };
22
+ export {};
23
+ //# sourceMappingURL=notify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notify.d.ts","sourceRoot":"","sources":["../src/notify.ts"],"names":[],"mappings":"AAGA,UAAU,aAAa;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CAC5B;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM;6CAC+B,aAAa;2CAGf,aAAa;6CAGX,aAAa;0CAGhB,aAAa;CAE3D,CAAC"}