@cerberus-design/react 1.2.0 → 1.3.0-rc.1

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 (154) hide show
  1. package/dist/components/accordion/primitives.d.cts +8 -23
  2. package/dist/components/accordion/primitives.d.ts +8 -23
  3. package/dist/components/admonition/match-avatar.cjs +1 -1
  4. package/dist/components/admonition/match-avatar.js +1 -1
  5. package/dist/components/admonition/primitives.cjs +5 -5
  6. package/dist/components/admonition/primitives.d.cts +13 -2871
  7. package/dist/components/admonition/primitives.d.ts +13 -2871
  8. package/dist/components/admonition/primitives.js +6 -6
  9. package/dist/components/avatar/primitives.d.cts +4 -13
  10. package/dist/components/avatar/primitives.d.ts +4 -13
  11. package/dist/components/button/button.cjs +19 -7
  12. package/dist/components/button/button.d.cts +8 -5
  13. package/dist/components/button/button.d.ts +8 -5
  14. package/dist/components/button/button.js +19 -7
  15. package/dist/components/button/index.cjs +1 -1
  16. package/dist/components/button/index.js +1 -1
  17. package/dist/components/button/primitives.cjs +2 -7
  18. package/dist/components/button/primitives.d.cts +4 -8
  19. package/dist/components/button/primitives.d.ts +4 -8
  20. package/dist/components/button/primitives.js +3 -7
  21. package/dist/components/carousel/primitives.d.cts +9 -33
  22. package/dist/components/carousel/primitives.d.ts +9 -33
  23. package/dist/components/checkbox/primitives.d.cts +7 -25
  24. package/dist/components/checkbox/primitives.d.ts +7 -25
  25. package/dist/components/circular-progress/primitives.d.cts +8 -29
  26. package/dist/components/circular-progress/primitives.d.ts +8 -29
  27. package/dist/components/clipboard/primitives.d.cts +7 -25
  28. package/dist/components/clipboard/primitives.d.ts +7 -25
  29. package/dist/components/collapsible/primitives.d.cts +6 -21
  30. package/dist/components/collapsible/primitives.d.ts +6 -21
  31. package/dist/components/combobox/primitives.d.cts +16 -61
  32. package/dist/components/combobox/primitives.d.ts +16 -61
  33. package/dist/components/combobox/use-stateful-collection.cjs +1 -1
  34. package/dist/components/combobox/use-stateful-collection.js +1 -1
  35. package/dist/components/cta-dialog/provider.cjs +2 -2
  36. package/dist/components/cta-dialog/provider.js +2 -2
  37. package/dist/components/date-picker/primitives.d.cts +24 -93
  38. package/dist/components/date-picker/primitives.d.ts +24 -93
  39. package/dist/components/dialog/close-icon-trigger.cjs +1 -1
  40. package/dist/components/dialog/close-icon-trigger.js +1 -1
  41. package/dist/components/dialog/dialog.cjs +1 -1
  42. package/dist/components/dialog/dialog.js +1 -1
  43. package/dist/components/dialog/index.cjs +2 -1
  44. package/dist/components/dialog/index.js +3 -3
  45. package/dist/components/dialog/primitives.cjs +2 -0
  46. package/dist/components/dialog/primitives.d.cts +14 -38
  47. package/dist/components/dialog/primitives.d.ts +14 -38
  48. package/dist/components/dialog/primitives.js +2 -1
  49. package/dist/components/field/primitives.d.cts +21 -48
  50. package/dist/components/field/primitives.d.ts +21 -48
  51. package/dist/components/fieldset/primitives.d.cts +5 -17
  52. package/dist/components/fieldset/primitives.d.ts +5 -17
  53. package/dist/components/file-upload/file-status.cjs +1 -1
  54. package/dist/components/file-upload/file-status.js +1 -1
  55. package/dist/components/file-upload/primitives.d.cts +19 -73
  56. package/dist/components/file-upload/primitives.d.ts +19 -73
  57. package/dist/components/group/primitives.d.cts +2 -5
  58. package/dist/components/group/primitives.d.ts +2 -5
  59. package/dist/components/icon-button/button.cjs +1 -3
  60. package/dist/components/icon-button/button.js +1 -3
  61. package/dist/components/icon-button/primitives.cjs +4 -2
  62. package/dist/components/icon-button/primitives.d.cts +5 -8
  63. package/dist/components/icon-button/primitives.d.ts +5 -8
  64. package/dist/components/icon-button/primitives.js +4 -2
  65. package/dist/components/menu/menu.d.cts +6 -21
  66. package/dist/components/menu/menu.d.ts +6 -21
  67. package/dist/components/menu/primitives.d.cts +11 -41
  68. package/dist/components/menu/primitives.d.ts +11 -41
  69. package/dist/components/notifications/center.cjs +7 -23
  70. package/dist/components/notifications/center.d.cts +2 -6
  71. package/dist/components/notifications/center.d.ts +2 -6
  72. package/dist/components/notifications/center.js +8 -23
  73. package/dist/components/notifications/index.cjs +0 -14
  74. package/dist/components/notifications/index.js +3 -3
  75. package/dist/components/notifications/match-icon.cjs +7 -1
  76. package/dist/components/notifications/match-icon.d.cts +1 -5
  77. package/dist/components/notifications/match-icon.d.ts +1 -5
  78. package/dist/components/notifications/match-icon.js +7 -1
  79. package/dist/components/notifications/primitives.d.cts +5 -20
  80. package/dist/components/notifications/primitives.d.ts +5 -20
  81. package/dist/components/notifications/toaster.d.cts +0 -1
  82. package/dist/components/notifications/toaster.d.ts +0 -1
  83. package/dist/components/notifications/toaster.js +2 -2
  84. package/dist/components/notifications/types.d.cts +4 -30
  85. package/dist/components/notifications/types.d.ts +4 -30
  86. package/dist/components/number-input/primitives.d.cts +8 -29
  87. package/dist/components/number-input/primitives.d.ts +8 -29
  88. package/dist/components/pagination/primitives.d.cts +8 -29
  89. package/dist/components/pagination/primitives.d.ts +8 -29
  90. package/dist/components/pagination/triggers.d.cts +2 -3
  91. package/dist/components/pagination/triggers.d.ts +2 -3
  92. package/dist/components/pin-input/primitives.d.cts +6 -21
  93. package/dist/components/pin-input/primitives.d.ts +6 -21
  94. package/dist/components/popover/primitives.d.cts +14 -53
  95. package/dist/components/popover/primitives.d.ts +14 -53
  96. package/dist/components/progress/primitives.cjs +2 -2
  97. package/dist/components/progress/primitives.d.cts +7 -1910
  98. package/dist/components/progress/primitives.d.ts +7 -1910
  99. package/dist/components/progress/primitives.js +3 -3
  100. package/dist/components/radio/primitives.d.cts +8 -29
  101. package/dist/components/radio/primitives.d.ts +8 -29
  102. package/dist/components/rating/primitives.d.cts +5 -17
  103. package/dist/components/rating/primitives.d.ts +5 -17
  104. package/dist/components/select/option-group.d.cts +3 -9
  105. package/dist/components/select/option-group.d.ts +3 -9
  106. package/dist/components/select/primitives.d.cts +16 -61
  107. package/dist/components/select/primitives.d.ts +16 -61
  108. package/dist/components/split-button/button.cjs +1 -1
  109. package/dist/components/split-button/button.js +1 -1
  110. package/dist/components/switch/primitives.d.cts +6 -21
  111. package/dist/components/switch/primitives.d.ts +6 -21
  112. package/dist/components/table/primitives.cjs +10 -10
  113. package/dist/components/table/primitives.d.cts +23 -9518
  114. package/dist/components/table/primitives.d.ts +23 -9518
  115. package/dist/components/table/primitives.js +11 -11
  116. package/dist/components/tabs/primitives.d.cts +6 -21
  117. package/dist/components/tabs/primitives.d.ts +6 -21
  118. package/dist/components/tag/primitives.d.cts +2 -5
  119. package/dist/components/tag/primitives.d.ts +2 -5
  120. package/dist/components/toggle/primitives.d.cts +3 -9
  121. package/dist/components/toggle/primitives.d.ts +3 -9
  122. package/dist/components/tooltip/primitives.d.cts +7 -25
  123. package/dist/components/tooltip/primitives.d.ts +7 -25
  124. package/dist/components/tooltip/renderer.cjs +11 -0
  125. package/dist/components/tooltip/renderer.d.cts +6 -0
  126. package/dist/components/tooltip/renderer.d.ts +6 -0
  127. package/dist/components/tooltip/renderer.js +11 -0
  128. package/dist/components/tooltip/tooltip.cjs +6 -2
  129. package/dist/components/tooltip/tooltip.d.cts +4 -0
  130. package/dist/components/tooltip/tooltip.d.ts +4 -0
  131. package/dist/components/tooltip/tooltip.js +6 -2
  132. package/dist/context/cerberus.cjs +1 -1
  133. package/dist/context/cerberus.js +1 -1
  134. package/dist/context/confirm-modal.cjs +1 -1
  135. package/dist/context/confirm-modal.js +1 -1
  136. package/dist/context/feature-flags.cjs +1 -1
  137. package/dist/context/feature-flags.js +1 -1
  138. package/dist/context/navMenu.cjs +1 -1
  139. package/dist/context/navMenu.js +1 -1
  140. package/dist/context/prompt-modal.cjs +2 -2
  141. package/dist/context/prompt-modal.js +2 -2
  142. package/dist/context/theme.cjs +1 -1
  143. package/dist/context/theme.js +1 -1
  144. package/dist/index.cjs +18 -19
  145. package/dist/index.client.d.cts +1 -1
  146. package/dist/index.client.d.ts +1 -1
  147. package/dist/index.client.js +2 -2
  148. package/dist/index.js +8 -8
  149. package/dist/panda.buildinfo.json +15 -3
  150. package/dist/system/primitive-factory.cjs +11 -9
  151. package/dist/system/primitive-factory.d.cts +4 -13
  152. package/dist/system/primitive-factory.d.ts +4 -13
  153. package/dist/system/primitive-factory.js +11 -9
  154. package/package.json +6 -6
@@ -1,7 +1,7 @@
1
1
  import { MenuContentProps, MenuTriggerProps } from './primitives';
2
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
3
  import { CerberusPrimitiveProps } from '../..';
3
4
  import { MenuRootProps, MenuItemProps, MenuItemGroupProps, MenuItemGroupLabelProps, MenuSeparatorProps } from '@ark-ui/react';
4
- import { RefAttributes } from 'react';
5
5
  /**
6
6
  * This module contains the Menu named abstractions component.
7
7
  * @module @cerberus-design/react/components/menu
@@ -16,10 +16,7 @@ import { RefAttributes } from 'react';
16
16
  * <MenuTrigger>Trigger</MenuTrigger>
17
17
  * </Menu>
18
18
  */
19
- export declare const Menu: {
20
- (internalProps: CerberusPrimitiveProps<MenuRootProps>): import("react/jsx-runtime").JSX.Element;
21
- displayName: string;
22
- };
19
+ export declare const Menu: ForwardRefExoticComponent<Omit< CerberusPrimitiveProps<MenuRootProps>, "ref"> & RefAttributes<HTMLElement>>;
23
20
  /**
24
21
  * The MenuTrigger component opens/closes the Menu.
25
22
  * @definition [Cerberus docs](https://cerberus.digitalu.design/react/menu/dev)
@@ -63,10 +60,7 @@ export declare function MenuContent(props: MenuContentProps): import("react/jsx-
63
60
  * </MenuContent>
64
61
  * </Menu>
65
62
  */
66
- export declare const MenuItem: {
67
- (internalProps: CerberusPrimitiveProps< MenuItemProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
68
- displayName: string;
69
- };
63
+ export declare const MenuItem: ForwardRefExoticComponent<Omit< CerberusPrimitiveProps< MenuItemProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
70
64
  /**
71
65
  * The MenuItemGroup component is a group of menu items.
72
66
  * @definition [Cerberus docs](https://cerberus.digitalu.design/react/menu/dev)
@@ -84,10 +78,7 @@ export declare const MenuItem: {
84
78
  * </MenuContent>
85
79
  * </Menu>
86
80
  */
87
- export declare const MenuItemGroup: {
88
- (props: CerberusPrimitiveProps< MenuItemGroupProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
89
- displayName: string;
90
- };
81
+ export declare const MenuItemGroup: ForwardRefExoticComponent<Omit< CerberusPrimitiveProps< MenuItemGroupProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
91
82
  /**
92
83
  * The MenuItemGroupLabel component is the label for a group of menu items.
93
84
  * @definition [Cerberus docs](https://cerberus.digitalu.design/react/menu/dev)
@@ -106,10 +97,7 @@ export declare const MenuItemGroup: {
106
97
  * </MenuContent>
107
98
  * </Menu>
108
99
  */
109
- export declare const MenuGroupLabel: {
110
- (internalProps: CerberusPrimitiveProps< MenuItemGroupLabelProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
111
- displayName: string;
112
- };
100
+ export declare const MenuGroupLabel: ForwardRefExoticComponent<Omit< CerberusPrimitiveProps< MenuItemGroupLabelProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
113
101
  /**
114
102
  * The MenuSeparator component is a visual divider between menu items.
115
103
  * @definition [Cerberus docs](https://cerberus.digitalu.design/react/menu/dev)
@@ -129,7 +117,4 @@ export declare const MenuGroupLabel: {
129
117
  * </MenuContent>
130
118
  * </Menu>
131
119
  */
132
- export declare const MenuSeparator: {
133
- (internalProps: CerberusPrimitiveProps< MenuSeparatorProps & RefAttributes<HTMLHRElement>>): import("react/jsx-runtime").JSX.Element;
134
- displayName: string;
135
- };
120
+ export declare const MenuSeparator: ForwardRefExoticComponent<Omit< CerberusPrimitiveProps< MenuSeparatorProps & RefAttributes<HTMLHRElement>>, "ref"> & RefAttributes<HTMLElement>>;
@@ -1,54 +1,24 @@
1
1
  import { Menu as ArkMenu, MenuRootProps as ArkMenuRootProps, MenuTriggerProps as ArkMenuTriggerProps, MenuTriggerItemProps as ArkMenuTriggerItemProps, MenuIndicatorProps as ArkMenuIndicatorProps, MenuPositionerProps as ArkMenuPositionerProps, MenuContentProps as ArkMenuContentProps, MenuItemProps as ArkMenuItemProps, MenuItemGroupProps as ArkMenuItemGroupProps, MenuItemGroupLabelProps as ArkMenuItemGroupLabelProps, MenuSeparatorProps as ArkMenuSeparatorProps } from '@ark-ui/react';
2
2
  import { CerberusPrimitiveProps } from '../../system/index';
3
- import { RefAttributes } from 'react';
3
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
4
4
  export type MenuRootProps = CerberusPrimitiveProps<ArkMenuRootProps>;
5
- export declare const MenuRoot: {
6
- (internalProps: CerberusPrimitiveProps<ArkMenu.RootProps>): import("react/jsx-runtime").JSX.Element;
7
- displayName: string;
8
- };
5
+ export declare const MenuRoot: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.RootProps>, "ref"> & RefAttributes<HTMLElement>>;
9
6
  export type MenuTriggerProps = CerberusPrimitiveProps<ArkMenuTriggerProps>;
10
- export declare const MenuTriggerEl: {
11
- (props: CerberusPrimitiveProps<ArkMenu.TriggerProps & RefAttributes<HTMLButtonElement>>): import("react/jsx-runtime").JSX.Element;
12
- displayName: string;
13
- };
7
+ export declare const MenuTriggerEl: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.TriggerProps & RefAttributes<HTMLButtonElement>>, "ref"> & RefAttributes<HTMLElement>>;
14
8
  export type MenuTriggerItemProps = CerberusPrimitiveProps<ArkMenuTriggerItemProps>;
15
- export declare const MenuTriggerItem: {
16
- (props: CerberusPrimitiveProps<ArkMenu.TriggerItemProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
17
- displayName: string;
18
- };
9
+ export declare const MenuTriggerItem: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.TriggerItemProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
19
10
  export type MenuIndicatorProps = CerberusPrimitiveProps<ArkMenuIndicatorProps>;
20
- export declare const MenuIndicator: {
21
- (props: CerberusPrimitiveProps<ArkMenu.IndicatorProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
22
- displayName: string;
23
- };
11
+ export declare const MenuIndicator: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.IndicatorProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
24
12
  export type MenuPositionerProps = CerberusPrimitiveProps<ArkMenuPositionerProps>;
25
- export declare const MenuPositioner: {
26
- (internalProps: CerberusPrimitiveProps<ArkMenu.PositionerProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
27
- displayName: string;
28
- };
13
+ export declare const MenuPositioner: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.PositionerProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
29
14
  export type MenuContentProps = CerberusPrimitiveProps<ArkMenuContentProps>;
30
- export declare const MenuContentEl: {
31
- (internalProps: CerberusPrimitiveProps<ArkMenu.ContentProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
32
- displayName: string;
33
- };
15
+ export declare const MenuContentEl: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.ContentProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
34
16
  export type MenuItemProps = CerberusPrimitiveProps<ArkMenuItemProps>;
35
- export declare const MenuItemEl: {
36
- (internalProps: CerberusPrimitiveProps<ArkMenu.ItemProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
37
- displayName: string;
38
- };
17
+ export declare const MenuItemEl: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.ItemProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
39
18
  export type MenuItemGroupProps = CerberusPrimitiveProps<ArkMenuItemGroupProps>;
40
- export declare const MenuItemGroupEl: {
41
- (props: CerberusPrimitiveProps<ArkMenu.ItemGroupProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
42
- displayName: string;
43
- };
19
+ export declare const MenuItemGroupEl: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.ItemGroupProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
44
20
  export type MenuItemGroupLabelProps = CerberusPrimitiveProps<ArkMenuItemGroupLabelProps>;
45
- export declare const MenuItemGroupLabelEl: {
46
- (internalProps: CerberusPrimitiveProps<ArkMenu.ItemGroupLabelProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
47
- displayName: string;
48
- };
21
+ export declare const MenuItemGroupLabelEl: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.ItemGroupLabelProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
49
22
  export type MenuSeparatorProps = CerberusPrimitiveProps<ArkMenuSeparatorProps>;
50
- export declare const MenuSeparatorEl: {
51
- (internalProps: CerberusPrimitiveProps<ArkMenu.SeparatorProps & RefAttributes<HTMLHRElement>>): import("react/jsx-runtime").JSX.Element;
52
- displayName: string;
53
- };
23
+ export declare const MenuSeparatorEl: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.SeparatorProps & RefAttributes<HTMLHRElement>>, "ref"> & RefAttributes<HTMLElement>>;
54
24
  export type { MenuSelectionDetails } from '@ark-ui/react/menu';
@@ -1,54 +1,24 @@
1
1
  import { Menu as ArkMenu, MenuRootProps as ArkMenuRootProps, MenuTriggerProps as ArkMenuTriggerProps, MenuTriggerItemProps as ArkMenuTriggerItemProps, MenuIndicatorProps as ArkMenuIndicatorProps, MenuPositionerProps as ArkMenuPositionerProps, MenuContentProps as ArkMenuContentProps, MenuItemProps as ArkMenuItemProps, MenuItemGroupProps as ArkMenuItemGroupProps, MenuItemGroupLabelProps as ArkMenuItemGroupLabelProps, MenuSeparatorProps as ArkMenuSeparatorProps } from '@ark-ui/react';
2
2
  import { CerberusPrimitiveProps } from '../../system/index';
3
- import { RefAttributes } from 'react';
3
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
4
4
  export type MenuRootProps = CerberusPrimitiveProps<ArkMenuRootProps>;
5
- export declare const MenuRoot: {
6
- (internalProps: CerberusPrimitiveProps<ArkMenu.RootProps>): import("react/jsx-runtime").JSX.Element;
7
- displayName: string;
8
- };
5
+ export declare const MenuRoot: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.RootProps>, "ref"> & RefAttributes<HTMLElement>>;
9
6
  export type MenuTriggerProps = CerberusPrimitiveProps<ArkMenuTriggerProps>;
10
- export declare const MenuTriggerEl: {
11
- (props: CerberusPrimitiveProps<ArkMenu.TriggerProps & RefAttributes<HTMLButtonElement>>): import("react/jsx-runtime").JSX.Element;
12
- displayName: string;
13
- };
7
+ export declare const MenuTriggerEl: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.TriggerProps & RefAttributes<HTMLButtonElement>>, "ref"> & RefAttributes<HTMLElement>>;
14
8
  export type MenuTriggerItemProps = CerberusPrimitiveProps<ArkMenuTriggerItemProps>;
15
- export declare const MenuTriggerItem: {
16
- (props: CerberusPrimitiveProps<ArkMenu.TriggerItemProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
17
- displayName: string;
18
- };
9
+ export declare const MenuTriggerItem: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.TriggerItemProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
19
10
  export type MenuIndicatorProps = CerberusPrimitiveProps<ArkMenuIndicatorProps>;
20
- export declare const MenuIndicator: {
21
- (props: CerberusPrimitiveProps<ArkMenu.IndicatorProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
22
- displayName: string;
23
- };
11
+ export declare const MenuIndicator: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.IndicatorProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
24
12
  export type MenuPositionerProps = CerberusPrimitiveProps<ArkMenuPositionerProps>;
25
- export declare const MenuPositioner: {
26
- (internalProps: CerberusPrimitiveProps<ArkMenu.PositionerProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
27
- displayName: string;
28
- };
13
+ export declare const MenuPositioner: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.PositionerProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
29
14
  export type MenuContentProps = CerberusPrimitiveProps<ArkMenuContentProps>;
30
- export declare const MenuContentEl: {
31
- (internalProps: CerberusPrimitiveProps<ArkMenu.ContentProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
32
- displayName: string;
33
- };
15
+ export declare const MenuContentEl: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.ContentProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
34
16
  export type MenuItemProps = CerberusPrimitiveProps<ArkMenuItemProps>;
35
- export declare const MenuItemEl: {
36
- (internalProps: CerberusPrimitiveProps<ArkMenu.ItemProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
37
- displayName: string;
38
- };
17
+ export declare const MenuItemEl: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.ItemProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
39
18
  export type MenuItemGroupProps = CerberusPrimitiveProps<ArkMenuItemGroupProps>;
40
- export declare const MenuItemGroupEl: {
41
- (props: CerberusPrimitiveProps<ArkMenu.ItemGroupProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
42
- displayName: string;
43
- };
19
+ export declare const MenuItemGroupEl: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.ItemGroupProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
44
20
  export type MenuItemGroupLabelProps = CerberusPrimitiveProps<ArkMenuItemGroupLabelProps>;
45
- export declare const MenuItemGroupLabelEl: {
46
- (internalProps: CerberusPrimitiveProps<ArkMenu.ItemGroupLabelProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
47
- displayName: string;
48
- };
21
+ export declare const MenuItemGroupLabelEl: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.ItemGroupLabelProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
49
22
  export type MenuSeparatorProps = CerberusPrimitiveProps<ArkMenuSeparatorProps>;
50
- export declare const MenuSeparatorEl: {
51
- (internalProps: CerberusPrimitiveProps<ArkMenu.SeparatorProps & RefAttributes<HTMLHRElement>>): import("react/jsx-runtime").JSX.Element;
52
- displayName: string;
53
- };
23
+ export declare const MenuSeparatorEl: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<ArkMenu.SeparatorProps & RefAttributes<HTMLHRElement>>, "ref"> & RefAttributes<HTMLElement>>;
54
24
  export type { MenuSelectionDetails } from '@ark-ui/react/menu';
@@ -3,9 +3,10 @@
3
3
  const require_show = require("../show/show.cjs");
4
4
  const require_button = require("../button/button.cjs");
5
5
  const require_parts = require("./parts.cjs");
6
- const require_match_icon = require("./match-icon.cjs");
7
6
  const require_close_trigger = require("./close-trigger.cjs");
7
+ const require_match_icon = require("./match-icon.cjs");
8
8
  const require_toaster = require("./toaster.cjs");
9
+ let react = require("react");
9
10
  let react_jsx_runtime = require("react/jsx-runtime");
10
11
  let styled_system_jsx = require("styled-system/jsx");
11
12
  let _ark_ui_react_toast = require("@ark-ui/react/toast");
@@ -14,8 +15,9 @@ let _ark_ui_react_toast = require("@ark-ui/react/toast");
14
15
  * This module contains an abstraction of the Notification parts.
15
16
  * @module 'notification/center'
16
17
  */
17
- function getEmphasis(type) {
18
- return type.includes("subtle") ? "low" : "high";
18
+ function getEmphasis(options) {
19
+ if (options.usage === "subtle") return "low";
20
+ return "high";
19
21
  }
20
22
  /**
21
23
  * The NotificationCenter component is an abstraction for the Notification
@@ -23,9 +25,9 @@ function getEmphasis(type) {
23
25
  */
24
26
  function NotificationCenter(props) {
25
27
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_toast.Toaster, {
26
- toaster: props.toaster || require_toaster.toaster,
28
+ toaster: (0, react.useMemo)(() => props.toaster || require_toaster.toaster, [props.toaster]),
27
29
  children: (toast) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_parts.NotificationParts.Root, {
28
- "data-emphasis": getEmphasis(toast.type ?? "info"),
30
+ "data-emphasis": getEmphasis(toast),
29
31
  children: [
30
32
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_match_icon.MatchNotificationIcon, { type: toast.type }),
31
33
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(styled_system_jsx.Box, {
@@ -53,24 +55,6 @@ function NotificationCenter(props) {
53
55
  }, toast.id)
54
56
  });
55
57
  }
56
- /**
57
- * @deprecated use `toaster` instead
58
- */
59
- function useNotificationCenter() {
60
- function notify(options) {
61
- require_toaster.toaster.create({
62
- title: options.heading,
63
- description: options.description,
64
- type: options.palette,
65
- action: options.action
66
- });
67
- }
68
- return {
69
- ...require_toaster.toaster,
70
- notify
71
- };
72
- }
73
58
  //#endregion
74
59
  exports.NotificationCenter = NotificationCenter;
75
60
  exports.getEmphasis = getEmphasis;
76
- exports.useNotificationCenter = useNotificationCenter;
@@ -1,10 +1,10 @@
1
1
  import { CreateToasterReturn } from '@ark-ui/react/toast';
2
- import { NotifyOptionsType, UseNotificationCenterReturn } from './types';
2
+ import { NotifyOptions } from './types';
3
3
  /**
4
4
  * This module contains an abstraction of the Notification parts.
5
5
  * @module 'notification/center'
6
6
  */
7
- export declare function getEmphasis(type: NotifyOptionsType): "high" | "low";
7
+ export declare function getEmphasis(options: NotifyOptions): "high" | "low";
8
8
  export interface NotificationCenterProps {
9
9
  toaster?: CreateToasterReturn;
10
10
  }
@@ -13,7 +13,3 @@ export interface NotificationCenterProps {
13
13
  * component. It manages displaying all the toasts in the center.
14
14
  */
15
15
  export declare function NotificationCenter(props: NotificationCenterProps): import("react/jsx-runtime").JSX.Element;
16
- /**
17
- * @deprecated use `toaster` instead
18
- */
19
- export declare function useNotificationCenter(): UseNotificationCenterReturn;
@@ -1,10 +1,10 @@
1
1
  import { CreateToasterReturn } from '@ark-ui/react/toast';
2
- import { NotifyOptionsType, UseNotificationCenterReturn } from './types';
2
+ import { NotifyOptions } from './types';
3
3
  /**
4
4
  * This module contains an abstraction of the Notification parts.
5
5
  * @module 'notification/center'
6
6
  */
7
- export declare function getEmphasis(type: NotifyOptionsType): "high" | "low";
7
+ export declare function getEmphasis(options: NotifyOptions): "high" | "low";
8
8
  export interface NotificationCenterProps {
9
9
  toaster?: CreateToasterReturn;
10
10
  }
@@ -13,7 +13,3 @@ export interface NotificationCenterProps {
13
13
  * component. It manages displaying all the toasts in the center.
14
14
  */
15
15
  export declare function NotificationCenter(props: NotificationCenterProps): import("react/jsx-runtime").JSX.Element;
16
- /**
17
- * @deprecated use `toaster` instead
18
- */
19
- export declare function useNotificationCenter(): UseNotificationCenterReturn;
@@ -3,9 +3,10 @@
3
3
  import { Show } from "../show/show.js";
4
4
  import { Button } from "../button/button.js";
5
5
  import { NotificationParts } from "./parts.js";
6
- import { MatchNotificationIcon } from "./match-icon.js";
7
6
  import { ToastCloseTrigger } from "./close-trigger.js";
7
+ import { MatchNotificationIcon } from "./match-icon.js";
8
8
  import { toaster } from "./toaster.js";
9
+ import { useMemo } from "react";
9
10
  import { jsx, jsxs } from "react/jsx-runtime";
10
11
  import { Box } from "styled-system/jsx";
11
12
  import { Toaster } from "@ark-ui/react/toast";
@@ -14,8 +15,9 @@ import { Toaster } from "@ark-ui/react/toast";
14
15
  * This module contains an abstraction of the Notification parts.
15
16
  * @module 'notification/center'
16
17
  */
17
- function getEmphasis(type) {
18
- return type.includes("subtle") ? "low" : "high";
18
+ function getEmphasis(options) {
19
+ if (options.usage === "subtle") return "low";
20
+ return "high";
19
21
  }
20
22
  /**
21
23
  * The NotificationCenter component is an abstraction for the Notification
@@ -23,9 +25,9 @@ function getEmphasis(type) {
23
25
  */
24
26
  function NotificationCenter(props) {
25
27
  return /* @__PURE__ */ jsx(Toaster, {
26
- toaster: props.toaster || toaster,
28
+ toaster: useMemo(() => props.toaster || toaster, [props.toaster]),
27
29
  children: (toast) => /* @__PURE__ */ jsxs(NotificationParts.Root, {
28
- "data-emphasis": getEmphasis(toast.type ?? "info"),
30
+ "data-emphasis": getEmphasis(toast),
29
31
  children: [
30
32
  /* @__PURE__ */ jsx(MatchNotificationIcon, { type: toast.type }),
31
33
  /* @__PURE__ */ jsxs(Box, {
@@ -53,22 +55,5 @@ function NotificationCenter(props) {
53
55
  }, toast.id)
54
56
  });
55
57
  }
56
- /**
57
- * @deprecated use `toaster` instead
58
- */
59
- function useNotificationCenter() {
60
- function notify(options) {
61
- toaster.create({
62
- title: options.heading,
63
- description: options.description,
64
- type: options.palette,
65
- action: options.action
66
- });
67
- }
68
- return {
69
- ...toaster,
70
- notify
71
- };
72
- }
73
58
  //#endregion
74
- export { NotificationCenter, getEmphasis, useNotificationCenter };
59
+ export { NotificationCenter, getEmphasis };
@@ -3,7 +3,6 @@ const require_primitives = require("./primitives.cjs");
3
3
  const require_parts = require("./parts.cjs");
4
4
  const require_toaster = require("./toaster.cjs");
5
5
  const require_center = require("./center.cjs");
6
- let _ark_ui_react_toast = require("@ark-ui/react/toast");
7
6
  exports.NotificationActionTrigger = require_primitives.NotificationActionTrigger;
8
7
  exports.NotificationCenter = require_center.NotificationCenter;
9
8
  exports.NotificationCloseTrigger = require_primitives.NotificationCloseTrigger;
@@ -12,18 +11,5 @@ exports.NotificationHeading = require_primitives.NotificationHeading;
12
11
  exports.NotificationParts = require_parts.NotificationParts;
13
12
  exports.NotificationProvider = require_primitives.NotificationProvider;
14
13
  exports.NotificationRoot = require_primitives.NotificationRoot;
15
- Object.defineProperty(exports, "Toaster", {
16
- enumerable: true,
17
- get: function() {
18
- return _ark_ui_react_toast.Toaster;
19
- }
20
- });
21
- Object.defineProperty(exports, "createToaster", {
22
- enumerable: true,
23
- get: function() {
24
- return _ark_ui_react_toast.createToaster;
25
- }
26
- });
27
14
  exports.getEmphasis = require_center.getEmphasis;
28
15
  exports.toaster = require_toaster.toaster;
29
- exports.useNotificationCenter = require_center.useNotificationCenter;
@@ -1,5 +1,5 @@
1
1
  import { NotificationActionTrigger, NotificationCloseTrigger, NotificationDescription, NotificationHeading, NotificationProvider, NotificationRoot } from "./primitives.js";
2
2
  import { NotificationParts } from "./parts.js";
3
- import { Toaster, createToaster, toaster } from "./toaster.js";
4
- import { NotificationCenter, getEmphasis, useNotificationCenter } from "./center.js";
5
- export { NotificationActionTrigger, NotificationCenter, NotificationCloseTrigger, NotificationDescription, NotificationHeading, NotificationParts, NotificationProvider, NotificationRoot, Toaster, createToaster, getEmphasis, toaster, useNotificationCenter };
3
+ import { toaster } from "./toaster.js";
4
+ import { NotificationCenter, getEmphasis } from "./center.js";
5
+ export { NotificationActionTrigger, NotificationCenter, NotificationCloseTrigger, NotificationDescription, NotificationHeading, NotificationParts, NotificationProvider, NotificationRoot, getEmphasis, toaster };
@@ -7,13 +7,19 @@ let styled_system_recipes = require("styled-system/recipes");
7
7
  let _ark_ui_react_factory = require("@ark-ui/react/factory");
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
9
  //#region src/components/notifications/match-icon.tsx
10
+ /**
11
+ * This private module contains a component that returns the correct icon for a
12
+ * notification based on the palette. If there is no result, it is assumed to
13
+ * be a 'loading' type.
14
+ * @module 'notification/match-icon'
15
+ */
10
16
  function MatchNotificationIcon(props) {
11
17
  const { icons } = require_cerberus.useCerberusContext();
12
18
  const type = props.type?.split("-")[0] || "info";
13
19
  const styles = (0, styled_system_recipes.toast)();
14
20
  const Icon = icons[`${type}Notification`] || ToastLoadingIcon;
15
21
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_ark_ui_react_factory.ark.div, {
16
- "data-emphasis": require_center.getEmphasis(props.type),
22
+ "data-emphasis": require_center.getEmphasis(props),
17
23
  className: styles.icon,
18
24
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {})
19
25
  });
@@ -5,8 +5,4 @@ import { NotifyOptions } from './types';
5
5
  * be a 'loading' type.
6
6
  * @module 'notification/match-icon'
7
7
  */
8
- interface MatchNotificationIconProps {
9
- type?: NotifyOptions['palette'];
10
- }
11
- export declare function MatchNotificationIcon(props: MatchNotificationIconProps): import("react/jsx-runtime").JSX.Element;
12
- export {};
8
+ export declare function MatchNotificationIcon(props: NotifyOptions): import("react/jsx-runtime").JSX.Element;
@@ -5,8 +5,4 @@ import { NotifyOptions } from './types';
5
5
  * be a 'loading' type.
6
6
  * @module 'notification/match-icon'
7
7
  */
8
- interface MatchNotificationIconProps {
9
- type?: NotifyOptions['palette'];
10
- }
11
- export declare function MatchNotificationIcon(props: MatchNotificationIconProps): import("react/jsx-runtime").JSX.Element;
12
- export {};
8
+ export declare function MatchNotificationIcon(props: NotifyOptions): import("react/jsx-runtime").JSX.Element;
@@ -7,13 +7,19 @@ import { toast } from "styled-system/recipes";
7
7
  import { ark } from "@ark-ui/react/factory";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/components/notifications/match-icon.tsx
10
+ /**
11
+ * This private module contains a component that returns the correct icon for a
12
+ * notification based on the palette. If there is no result, it is assumed to
13
+ * be a 'loading' type.
14
+ * @module 'notification/match-icon'
15
+ */
10
16
  function MatchNotificationIcon(props) {
11
17
  const { icons } = useCerberusContext();
12
18
  const type = props.type?.split("-")[0] || "info";
13
19
  const styles = toast();
14
20
  const Icon = icons[`${type}Notification`] || ToastLoadingIcon;
15
21
  return /* @__PURE__ */ jsx(ark.div, {
16
- "data-emphasis": getEmphasis(props.type),
22
+ "data-emphasis": getEmphasis(props),
17
23
  className: styles.icon,
18
24
  children: /* @__PURE__ */ jsx(Icon, {})
19
25
  });
@@ -5,27 +5,12 @@ import { ForwardRefExoticComponent, RefAttributes } from 'react';
5
5
  export type NotificationProviderProps = ToasterProps;
6
6
  export declare const NotificationProvider: ForwardRefExoticComponent<ToasterProps & RefAttributes<HTMLDivElement>>;
7
7
  export type NotificationRootProps = CerberusPrimitiveProps<ToastRootProps & ToastVariantProps>;
8
- export declare const NotificationRoot: {
9
- (internalProps: CerberusPrimitiveProps<Toast.RootProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
10
- displayName: string;
11
- };
8
+ export declare const NotificationRoot: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<Toast.RootProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
12
9
  export type NotificationHeadingProps = CerberusPrimitiveProps<ToastTitleProps>;
13
- export declare const NotificationHeading: {
14
- (internalProps: CerberusPrimitiveProps<Toast.TitleProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
15
- displayName: string;
16
- };
10
+ export declare const NotificationHeading: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<Toast.TitleProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
17
11
  export type NotificationDescriptionProps = CerberusPrimitiveProps<ToastDescriptionProps>;
18
- export declare const NotificationDescription: {
19
- (internalProps: CerberusPrimitiveProps<Toast.DescriptionProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
20
- displayName: string;
21
- };
12
+ export declare const NotificationDescription: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<Toast.DescriptionProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
22
13
  export type NotificationCloseTriggerProps = CerberusPrimitiveProps<ToastCloseTriggerProps>;
23
- export declare const NotificationCloseTrigger: {
24
- (internalProps: CerberusPrimitiveProps<Toast.CloseTriggerProps & RefAttributes<HTMLButtonElement>>): import("react/jsx-runtime").JSX.Element;
25
- displayName: string;
26
- };
14
+ export declare const NotificationCloseTrigger: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<Toast.CloseTriggerProps & RefAttributes<HTMLButtonElement>>, "ref"> & RefAttributes<HTMLElement>>;
27
15
  export type NotificationActionTriggerProps = CerberusPrimitiveProps<ToastActionTriggerProps>;
28
- export declare const NotificationActionTrigger: {
29
- (internalProps: CerberusPrimitiveProps<Toast.ActionTriggerProps & RefAttributes<HTMLButtonElement>>): import("react/jsx-runtime").JSX.Element;
30
- displayName: string;
31
- };
16
+ export declare const NotificationActionTrigger: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<Toast.ActionTriggerProps & RefAttributes<HTMLButtonElement>>, "ref"> & RefAttributes<HTMLElement>>;
@@ -5,27 +5,12 @@ import { ForwardRefExoticComponent, RefAttributes } from 'react';
5
5
  export type NotificationProviderProps = ToasterProps;
6
6
  export declare const NotificationProvider: ForwardRefExoticComponent<ToasterProps & RefAttributes<HTMLDivElement>>;
7
7
  export type NotificationRootProps = CerberusPrimitiveProps<ToastRootProps & ToastVariantProps>;
8
- export declare const NotificationRoot: {
9
- (internalProps: CerberusPrimitiveProps<Toast.RootProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
10
- displayName: string;
11
- };
8
+ export declare const NotificationRoot: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<Toast.RootProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
12
9
  export type NotificationHeadingProps = CerberusPrimitiveProps<ToastTitleProps>;
13
- export declare const NotificationHeading: {
14
- (internalProps: CerberusPrimitiveProps<Toast.TitleProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
15
- displayName: string;
16
- };
10
+ export declare const NotificationHeading: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<Toast.TitleProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
17
11
  export type NotificationDescriptionProps = CerberusPrimitiveProps<ToastDescriptionProps>;
18
- export declare const NotificationDescription: {
19
- (internalProps: CerberusPrimitiveProps<Toast.DescriptionProps & RefAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
20
- displayName: string;
21
- };
12
+ export declare const NotificationDescription: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<Toast.DescriptionProps & RefAttributes<HTMLDivElement>>, "ref"> & RefAttributes<HTMLElement>>;
22
13
  export type NotificationCloseTriggerProps = CerberusPrimitiveProps<ToastCloseTriggerProps>;
23
- export declare const NotificationCloseTrigger: {
24
- (internalProps: CerberusPrimitiveProps<Toast.CloseTriggerProps & RefAttributes<HTMLButtonElement>>): import("react/jsx-runtime").JSX.Element;
25
- displayName: string;
26
- };
14
+ export declare const NotificationCloseTrigger: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<Toast.CloseTriggerProps & RefAttributes<HTMLButtonElement>>, "ref"> & RefAttributes<HTMLElement>>;
27
15
  export type NotificationActionTriggerProps = CerberusPrimitiveProps<ToastActionTriggerProps>;
28
- export declare const NotificationActionTrigger: {
29
- (internalProps: CerberusPrimitiveProps<Toast.ActionTriggerProps & RefAttributes<HTMLButtonElement>>): import("react/jsx-runtime").JSX.Element;
30
- displayName: string;
31
- };
16
+ export declare const NotificationActionTrigger: ForwardRefExoticComponent<Omit<CerberusPrimitiveProps<Toast.ActionTriggerProps & RefAttributes<HTMLButtonElement>>, "ref"> & RefAttributes<HTMLElement>>;
@@ -1,3 +1,2 @@
1
1
  import { CreateToasterReturn } from '@ark-ui/react/toast';
2
2
  export declare const toaster: CreateToasterReturn;
3
- export { createToaster, Toaster } from '@ark-ui/react/toast';
@@ -1,3 +1,2 @@
1
1
  import { CreateToasterReturn } from '@ark-ui/react/toast';
2
2
  export declare const toaster: CreateToasterReturn;
3
- export { createToaster, Toaster } from '@ark-ui/react/toast';
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  "use client";
3
- import { Toaster as Toaster$1, createToaster, createToaster as createToaster$1 } from "@ark-ui/react/toast";
3
+ import { createToaster } from "@ark-ui/react/toast";
4
4
  //#region src/components/notifications/toaster.ts
5
5
  var toaster = createToaster({
6
6
  gap: 16,
@@ -8,4 +8,4 @@ var toaster = createToaster({
8
8
  placement: "top-end"
9
9
  });
10
10
  //#endregion
11
- export { Toaster$1 as Toaster, createToaster$1 as createToaster, toaster };
11
+ export { toaster };
@@ -1,31 +1,5 @@
1
- import { CreateToasterReturn } from '@ark-ui/react/toast';
2
- import { ReactNode } from 'react';
3
- export type NotifyOptionsType = 'info' | 'info-subtle' | 'success' | 'success-subtle' | 'warning' | 'warning-subtle' | 'error' | 'error-subtle' | 'loading' | 'loading-subtle';
4
- export interface NotifyOptions {
5
- /**
6
- * The palette of the notification.
7
- * @default 'info'
8
- */
9
- palette?: NotifyOptionsType;
10
- /**
11
- * The heading of the notification.
12
- */
13
- heading: string;
14
- /**
15
- * The description of the notification.
16
- */
17
- description?: ReactNode;
18
- /**
19
- * The action to take when the notification is closed
20
- */
21
- action?: {
22
- label: string;
23
- onClick: () => void;
24
- };
1
+ import { ToastOptions } from '@ark-ui/react/toast';
2
+ export type NotifyOptionsType = ToastOptions['type'];
3
+ export interface NotifyOptions extends ToastOptions {
4
+ usage?: 'subtle' | 'default';
25
5
  }
26
- export type UseNotificationCenterReturn = CreateToasterReturn & {
27
- /**
28
- * @deprecated use `create` instead
29
- */
30
- notify: (options: NotifyOptions) => void;
31
- };
@@ -1,31 +1,5 @@
1
- import { CreateToasterReturn } from '@ark-ui/react/toast';
2
- import { ReactNode } from 'react';
3
- export type NotifyOptionsType = 'info' | 'info-subtle' | 'success' | 'success-subtle' | 'warning' | 'warning-subtle' | 'error' | 'error-subtle' | 'loading' | 'loading-subtle';
4
- export interface NotifyOptions {
5
- /**
6
- * The palette of the notification.
7
- * @default 'info'
8
- */
9
- palette?: NotifyOptionsType;
10
- /**
11
- * The heading of the notification.
12
- */
13
- heading: string;
14
- /**
15
- * The description of the notification.
16
- */
17
- description?: ReactNode;
18
- /**
19
- * The action to take when the notification is closed
20
- */
21
- action?: {
22
- label: string;
23
- onClick: () => void;
24
- };
1
+ import { ToastOptions } from '@ark-ui/react/toast';
2
+ export type NotifyOptionsType = ToastOptions['type'];
3
+ export interface NotifyOptions extends ToastOptions {
4
+ usage?: 'subtle' | 'default';
25
5
  }
26
- export type UseNotificationCenterReturn = CreateToasterReturn & {
27
- /**
28
- * @deprecated use `create` instead
29
- */
30
- notify: (options: NotifyOptions) => void;
31
- };