@causw/core 0.0.19 → 0.0.21

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 (137) hide show
  1. package/dist/components/Avatar/Avatar.d.cts +2 -2
  2. package/dist/components/Avatar/Avatar.d.mts +2 -2
  3. package/dist/components/Avatar/Avatar.styles.d.cts +3 -3
  4. package/dist/components/Avatar/Avatar.styles.d.mts +3 -3
  5. package/dist/components/Avatar/Avatar.styles.d.mts.map +1 -1
  6. package/dist/components/BottomNavigation/BottomNavigation.cjs +8 -8
  7. package/dist/components/BottomNavigation/BottomNavigation.d.cts +9 -5
  8. package/dist/components/BottomNavigation/BottomNavigation.d.cts.map +1 -1
  9. package/dist/components/BottomNavigation/BottomNavigation.d.mts +9 -5
  10. package/dist/components/BottomNavigation/BottomNavigation.d.mts.map +1 -1
  11. package/dist/components/BottomNavigation/BottomNavigation.mjs +8 -8
  12. package/dist/components/BottomNavigation/BottomNavigation.mjs.map +1 -1
  13. package/dist/components/BottomNavigation/BottomNavigation.styles.cjs +1 -1
  14. package/dist/components/BottomNavigation/BottomNavigation.styles.d.mts +3 -3
  15. package/dist/components/BottomNavigation/BottomNavigation.styles.mjs +1 -1
  16. package/dist/components/BottomNavigation/BottomNavigation.styles.mjs.map +1 -1
  17. package/dist/components/BottomSheet/BottomSheet.d.cts +6 -6
  18. package/dist/components/BottomSheet/BottomSheet.d.mts +6 -6
  19. package/dist/components/BottomSheet/BottomSheet.styles.d.cts +3 -3
  20. package/dist/components/BottomSheet/BottomSheet.styles.d.mts +3 -3
  21. package/dist/components/Box/Box.styles.d.cts +3 -3
  22. package/dist/components/Button/Button.d.cts +2 -2
  23. package/dist/components/Button/Button.d.cts.map +1 -1
  24. package/dist/components/Button/Button.d.mts +2 -2
  25. package/dist/components/Button/Button.d.mts.map +1 -1
  26. package/dist/components/Button/Button.styles.d.cts +3 -3
  27. package/dist/components/Button/Button.styles.d.mts +3 -3
  28. package/dist/components/CTAButton/CTAButton.d.cts +2 -2
  29. package/dist/components/CTAButton/CTAButton.d.cts.map +1 -1
  30. package/dist/components/CTAButton/CTAButton.d.mts +2 -2
  31. package/dist/components/CTAButton/CTAButton.styles.d.cts +3 -3
  32. package/dist/components/CTAButton/CTAButton.styles.d.mts +3 -3
  33. package/dist/components/Calendar/Calendar.d.cts +2 -2
  34. package/dist/components/Calendar/Calendar.d.mts +2 -2
  35. package/dist/components/Calendar/Calendar.styles.d.cts +3 -3
  36. package/dist/components/Calendar/Calendar.styles.d.mts +3 -3
  37. package/dist/components/Checkbox/Checkbox.d.cts +4 -4
  38. package/dist/components/Checkbox/Checkbox.d.mts +4 -4
  39. package/dist/components/Checkbox/Checkbox.styles.d.cts +3 -3
  40. package/dist/components/Chip/Chip.d.cts +2 -2
  41. package/dist/components/Chip/Chip.d.mts +2 -2
  42. package/dist/components/Chip/Chip.styles.d.cts +3 -3
  43. package/dist/components/Chip/Chip.styles.d.mts +3 -3
  44. package/dist/components/DatePicker/DatePicker.d.cts +2 -2
  45. package/dist/components/DatePicker/DatePicker.d.cts.map +1 -1
  46. package/dist/components/DatePicker/DatePicker.d.mts +2 -2
  47. package/dist/components/DatePicker/DatePicker.styles.d.cts +3 -3
  48. package/dist/components/DatePicker/DatePicker.styles.d.cts.map +1 -1
  49. package/dist/components/DatePicker/DatePicker.styles.d.mts +3 -3
  50. package/dist/components/Dialog/Dialog.d.cts +5 -5
  51. package/dist/components/Dialog/Dialog.d.mts +5 -5
  52. package/dist/components/Dialog/Dialog.styles.d.cts +3 -3
  53. package/dist/components/Dialog/Dialog.styles.d.cts.map +1 -1
  54. package/dist/components/Dialog/Dialog.styles.d.mts +3 -3
  55. package/dist/components/Dialog/Dialog.styles.d.mts.map +1 -1
  56. package/dist/components/Dropdown/Dropdown.d.cts +3 -3
  57. package/dist/components/Dropdown/Dropdown.d.mts +3 -3
  58. package/dist/components/Dropdown/Dropdown.styles.d.cts +3 -3
  59. package/dist/components/Dropdown/Dropdown.styles.d.mts +3 -3
  60. package/dist/components/Field/Field.d.mts +5 -5
  61. package/dist/components/FloatingActionButton/FloatingActionButton.d.cts +2 -2
  62. package/dist/components/FloatingActionButton/FloatingActionButton.d.mts +2 -2
  63. package/dist/components/FloatingActionButton/FloatingActionButton.styles.d.mts +3 -3
  64. package/dist/components/Grid/Grid.styles.d.mts +3 -3
  65. package/dist/components/HStack/HStack.d.cts +2 -2
  66. package/dist/components/HStack/HStack.d.mts +2 -2
  67. package/dist/components/Modal/Modal.d.cts +7 -7
  68. package/dist/components/Modal/Modal.d.mts +10 -10
  69. package/dist/components/Modal/Modal.styles.d.mts +3 -3
  70. package/dist/components/Primitive/Primitive.d.cts +16 -16
  71. package/dist/components/Primitive/Primitive.d.mts +16 -16
  72. package/dist/components/PullToRefresh/PullToRefresh.d.cts +2 -2
  73. package/dist/components/PullToRefresh/PullToRefresh.d.mts +2 -2
  74. package/dist/components/PullToRefresh/PullToRefresh.styles.d.cts +3 -3
  75. package/dist/components/Radio/Radio.d.cts +3 -3
  76. package/dist/components/Radio/Radio.d.mts +3 -3
  77. package/dist/components/RatioChart/RatioChart.d.cts +5 -5
  78. package/dist/components/RatioChart/RatioChart.d.mts +5 -5
  79. package/dist/components/RatioChart/RatioChartEditor.d.cts +2 -2
  80. package/dist/components/RatioChart/RatioChartEditor.d.mts +2 -2
  81. package/dist/components/Select/Select.d.cts +5 -5
  82. package/dist/components/Select/Select.d.mts +5 -5
  83. package/dist/components/Select/Select.styles.d.cts +3 -3
  84. package/dist/components/Separator/Separator.styles.d.cts +3 -3
  85. package/dist/components/Separator/Separator.styles.d.cts.map +1 -1
  86. package/dist/components/Sidebar/Sidebar.d.cts +8 -8
  87. package/dist/components/Sidebar/Sidebar.d.mts +8 -8
  88. package/dist/components/Sidebar/Sidebar.styles.d.mts +3 -3
  89. package/dist/components/Skeleton/Skeleton.d.cts +2 -2
  90. package/dist/components/Skeleton/Skeleton.d.mts +2 -2
  91. package/dist/components/Skeleton/Skeleton.styles.d.mts +3 -3
  92. package/dist/components/Spacer/Spacer.styles.d.cts +3 -3
  93. package/dist/components/Spacer/Spacer.styles.d.cts.map +1 -1
  94. package/dist/components/Spinner/Spinner.d.cts +2 -2
  95. package/dist/components/Spinner/Spinner.d.mts +2 -2
  96. package/dist/components/Spinner/Spinner.styles.d.cts +3 -3
  97. package/dist/components/Stack/Stack.styles.d.cts +3 -3
  98. package/dist/components/Tab/Tab.d.cts +6 -6
  99. package/dist/components/Tab/Tab.d.mts +6 -6
  100. package/dist/components/Tab/Tab.styles.d.mts +3 -3
  101. package/dist/components/Text/Text.d.cts +1 -1
  102. package/dist/components/Text/Text.d.mts +1 -1
  103. package/dist/components/Text/Text.styles.d.cts +3 -3
  104. package/dist/components/TextArea/TextArea.d.cts +4 -4
  105. package/dist/components/TextArea/TextArea.d.mts +4 -4
  106. package/dist/components/TextArea/TextArea.styles.d.cts +3 -3
  107. package/dist/components/TextInput/TextInput.d.cts +2 -2
  108. package/dist/components/TextInput/TextInput.d.cts.map +1 -1
  109. package/dist/components/Toast/Toast.d.cts +3 -3
  110. package/dist/components/Toast/Toast.d.mts +5 -5
  111. package/dist/components/Toast/Toast.styles.d.cts +3 -3
  112. package/dist/components/Toast/Toaster.cjs +41 -0
  113. package/dist/components/Toast/Toaster.d.cts +7 -0
  114. package/dist/components/Toast/Toaster.d.cts.map +1 -0
  115. package/dist/components/Toast/Toaster.d.mts +7 -0
  116. package/dist/components/Toast/Toaster.d.mts.map +1 -0
  117. package/dist/components/Toast/Toaster.mjs +41 -0
  118. package/dist/components/Toast/Toaster.mjs.map +1 -0
  119. package/dist/components/Toast/index.d.cts +2 -1
  120. package/dist/components/Toast/index.d.mts +2 -1
  121. package/dist/components/Toast/toastStore.cjs +14 -3
  122. package/dist/components/Toast/toastStore.d.cts.map +1 -1
  123. package/dist/components/Toast/toastStore.d.mts.map +1 -1
  124. package/dist/components/Toast/toastStore.mjs +13 -4
  125. package/dist/components/Toast/toastStore.mjs.map +1 -1
  126. package/dist/components/Toggle/Toggle.d.cts +4 -4
  127. package/dist/components/Toggle/Toggle.d.mts +4 -4
  128. package/dist/components/Toggle/Toggle.d.mts.map +1 -1
  129. package/dist/components/Toggle/Toggle.styles.d.cts +3 -3
  130. package/dist/components/VStack/VStack.d.mts +2 -2
  131. package/dist/components/index.d.cts +1 -0
  132. package/dist/components/index.d.mts +1 -0
  133. package/dist/index.cjs +2 -0
  134. package/dist/index.d.cts +2 -1
  135. package/dist/index.d.mts +2 -1
  136. package/dist/index.mjs +2 -1
  137. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { PrimitiveProps } from "../Primitive/Primitive.cjs";
2
2
  import "../Primitive/index.cjs";
3
3
  import { TextAreaVariants } from "./TextArea.styles.cjs";
4
4
  import React from "react";
5
- import * as react_jsx_runtime6 from "react/jsx-runtime";
5
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/TextArea/TextArea.d.ts
8
8
  interface TextAreaProps extends React.HTMLAttributes<HTMLDivElement>, PrimitiveProps {
@@ -17,7 +17,7 @@ declare const TextArea: {
17
17
  className,
18
18
  children,
19
19
  ...props
20
- }: TextAreaProps): react_jsx_runtime6.JSX.Element;
20
+ }: TextAreaProps): react_jsx_runtime4.JSX.Element;
21
21
  displayName: string;
22
22
  } & {
23
23
  Input: {
@@ -26,7 +26,7 @@ declare const TextArea: {
26
26
  disabled: disabledProp,
27
27
  className,
28
28
  ...props
29
- }: TextAreaInputProps): react_jsx_runtime6.JSX.Element;
29
+ }: TextAreaInputProps): react_jsx_runtime4.JSX.Element;
30
30
  displayName: string;
31
31
  };
32
32
  Footer: {
@@ -34,7 +34,7 @@ declare const TextArea: {
34
34
  className,
35
35
  children,
36
36
  ...props
37
- }: TextAreaFooterProps): react_jsx_runtime6.JSX.Element;
37
+ }: TextAreaFooterProps): react_jsx_runtime4.JSX.Element;
38
38
  displayName: string;
39
39
  };
40
40
  };
@@ -2,7 +2,7 @@ import { PrimitiveProps } from "../Primitive/Primitive.mjs";
2
2
  import "../Primitive/index.mjs";
3
3
  import { TextAreaVariants } from "./TextArea.styles.mjs";
4
4
  import React from "react";
5
- import * as react_jsx_runtime5 from "react/jsx-runtime";
5
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/TextArea/TextArea.d.ts
8
8
  interface TextAreaProps extends React.HTMLAttributes<HTMLDivElement>, PrimitiveProps {
@@ -17,7 +17,7 @@ declare const TextArea: {
17
17
  className,
18
18
  children,
19
19
  ...props
20
- }: TextAreaProps): react_jsx_runtime5.JSX.Element;
20
+ }: TextAreaProps): react_jsx_runtime0.JSX.Element;
21
21
  displayName: string;
22
22
  } & {
23
23
  Input: {
@@ -26,7 +26,7 @@ declare const TextArea: {
26
26
  disabled: disabledProp,
27
27
  className,
28
28
  ...props
29
- }: TextAreaInputProps): react_jsx_runtime5.JSX.Element;
29
+ }: TextAreaInputProps): react_jsx_runtime0.JSX.Element;
30
30
  displayName: string;
31
31
  };
32
32
  Footer: {
@@ -34,7 +34,7 @@ declare const TextArea: {
34
34
  className,
35
35
  children,
36
36
  ...props
37
- }: TextAreaFooterProps): react_jsx_runtime5.JSX.Element;
37
+ }: TextAreaFooterProps): react_jsx_runtime0.JSX.Element;
38
38
  displayName: string;
39
39
  };
40
40
  };
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants33 from "tailwind-variants";
1
+ import * as tailwind_variants31 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/components/TextArea/TextArea.styles.d.ts
5
- declare const textArea: tailwind_variants33.TVReturnType<{
5
+ declare const textArea: tailwind_variants31.TVReturnType<{
6
6
  disabled: {
7
7
  true: {
8
8
  root: string;
@@ -52,7 +52,7 @@ declare const textArea: tailwind_variants33.TVReturnType<{
52
52
  root: string;
53
53
  input: string;
54
54
  footer: string;
55
- }, tailwind_variants33.TVReturnType<{
55
+ }, tailwind_variants31.TVReturnType<{
56
56
  disabled: {
57
57
  true: {
58
58
  root: string;
@@ -2,7 +2,7 @@ import { TextVariants } from "../Text/Text.styles.cjs";
2
2
  import "../Text/index.cjs";
3
3
  import { TextInputVariants } from "./TextInput.styles.cjs";
4
4
  import React from "react";
5
- import * as react_jsx_runtime19 from "react/jsx-runtime";
5
+ import * as react_jsx_runtime7 from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/TextInput/TextInput.d.ts
8
8
  interface TextInputProps extends React.ComponentProps<'input'>, TextVariants, TextInputVariants {
@@ -25,7 +25,7 @@ declare const TextInput: {
25
25
  typography,
26
26
  textColor,
27
27
  ...props
28
- }: TextInputProps): react_jsx_runtime19.JSX.Element;
28
+ }: TextInputProps): react_jsx_runtime7.JSX.Element;
29
29
  displayName: string;
30
30
  };
31
31
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.d.cts","names":[],"sources":["../../../src/components/TextInput/TextInput.tsx"],"mappings":";;;;;;;UAMiB,cAAA,SACP,KAAA,CAAM,cAAA,WAAyB,YAAA,EAAc,iBAAA;;EAErD,QAAA,GAAW,KAAA,CAAM,SAAA;;EAEjB,SAAA,GAAY,KAAA,CAAM,SAAA;EAJlB;EAMA,KAAA;AAAA;AAAA,cAGW,SAAA;EAAA;;;;;;;;;;;KAWV,cAAA,GAAc,mBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"TextInput.d.cts","names":[],"sources":["../../../src/components/TextInput/TextInput.tsx"],"mappings":";;;;;;;UAMiB,cAAA,SACP,KAAA,CAAM,cAAA,WAAyB,YAAA,EAAc,iBAAA;;EAErD,QAAA,GAAW,KAAA,CAAM,SAAA;;EAEjB,SAAA,GAAY,KAAA,CAAM,SAAA;EAJlB;EAMA,KAAA;AAAA;AAAA,cAGW,SAAA;EAAA;;;;;;;;;;;KAWV,cAAA,GAAc,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,6 +1,6 @@
1
1
  import { ToastVariants } from "./Toast.styles.cjs";
2
2
  import * as react11 from "react";
3
- import * as react_jsx_runtime31 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime43 from "react/jsx-runtime";
4
4
  import * as ToastPrimitives from "@radix-ui/react-toast";
5
5
 
6
6
  //#region src/components/Toast/Toast.d.ts
@@ -15,12 +15,12 @@ declare const Toast: ({
15
15
  message,
16
16
  icon,
17
17
  ...props
18
- }: ToastProps) => react_jsx_runtime31.JSX.Element;
18
+ }: ToastProps) => react_jsx_runtime43.JSX.Element;
19
19
  type ToastViewportProps = React.ComponentProps<typeof ToastPrimitives.Viewport>;
20
20
  declare const ToastViewport: ({
21
21
  className,
22
22
  ...props
23
- }: ToastViewportProps) => react_jsx_runtime31.JSX.Element;
23
+ }: ToastViewportProps) => react_jsx_runtime43.JSX.Element;
24
24
  declare const ToastProvider: react11.FC<ToastPrimitives.ToastProviderProps>;
25
25
  //#endregion
26
26
  export { Toast, ToastProps, ToastProvider, ToastViewport, ToastViewportProps };
@@ -1,6 +1,6 @@
1
1
  import { ToastVariants } from "./Toast.styles.mjs";
2
- import * as react15 from "react";
3
- import * as react_jsx_runtime67 from "react/jsx-runtime";
2
+ import * as react11 from "react";
3
+ import * as react_jsx_runtime44 from "react/jsx-runtime";
4
4
  import * as ToastPrimitives from "@radix-ui/react-toast";
5
5
 
6
6
  //#region src/components/Toast/Toast.d.ts
@@ -15,13 +15,13 @@ declare const Toast: ({
15
15
  message,
16
16
  icon,
17
17
  ...props
18
- }: ToastProps) => react_jsx_runtime67.JSX.Element;
18
+ }: ToastProps) => react_jsx_runtime44.JSX.Element;
19
19
  type ToastViewportProps = React.ComponentProps<typeof ToastPrimitives.Viewport>;
20
20
  declare const ToastViewport: ({
21
21
  className,
22
22
  ...props
23
- }: ToastViewportProps) => react_jsx_runtime67.JSX.Element;
24
- declare const ToastProvider: react15.FC<ToastPrimitives.ToastProviderProps>;
23
+ }: ToastViewportProps) => react_jsx_runtime44.JSX.Element;
24
+ declare const ToastProvider: react11.FC<ToastPrimitives.ToastProviderProps>;
25
25
  //#endregion
26
26
  export { Toast, ToastProps, ToastProvider, ToastViewport, ToastViewportProps };
27
27
  //# sourceMappingURL=Toast.d.mts.map
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants19 from "tailwind-variants";
1
+ import * as tailwind_variants21 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/components/Toast/Toast.styles.d.ts
5
- declare const toast: tailwind_variants19.TVReturnType<{
5
+ declare const toast: tailwind_variants21.TVReturnType<{
6
6
  variant: {
7
7
  default: {
8
8
  root: string;
@@ -20,7 +20,7 @@ declare const toast: tailwind_variants19.TVReturnType<{
20
20
  }, {
21
21
  root: string[];
22
22
  viewport: string[];
23
- }, tailwind_variants19.TVReturnType<{
23
+ }, tailwind_variants21.TVReturnType<{
24
24
  variant: {
25
25
  default: {
26
26
  root: string;
@@ -0,0 +1,41 @@
1
+ 'use client';
2
+
3
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
4
+ const require_Toast = require('./Toast.cjs');
5
+ const require_toastStore = require('./toastStore.cjs');
6
+ let react_jsx_runtime = require("react/jsx-runtime");
7
+ let _causw_icons = require("@causw/icons");
8
+
9
+ //#region src/components/Toast/Toaster.tsx
10
+ const Icons = {
11
+ success: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_causw_icons.SuccessColored, { size: 20 }),
12
+ error: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_causw_icons.ErrorColored, { size: 20 }),
13
+ loading: () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_causw_icons.LoadingColored, {
14
+ size: 20,
15
+ className: "animate-spin"
16
+ })
17
+ };
18
+ const toastIconMap = {
19
+ success: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icons.success, {}),
20
+ error: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icons.error, {}),
21
+ loading: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icons.loading, {}),
22
+ default: void 0
23
+ };
24
+ const Toaster = () => {
25
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_Toast.ToastProvider, { children: [require_toastStore.useToastStore().map((t) => {
26
+ const iconToRender = t.icon || toastIconMap[t.type];
27
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Toast.Toast, {
28
+ message: t.message,
29
+ icon: iconToRender,
30
+ variant: "default",
31
+ duration: t.duration || 3e3,
32
+ open: true,
33
+ onOpenChange: (open) => {
34
+ if (!open) require_toastStore.toast.dismiss(t.id);
35
+ }
36
+ }, t.id);
37
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Toast.ToastViewport, {})] });
38
+ };
39
+
40
+ //#endregion
41
+ exports.Toaster = Toaster;
@@ -0,0 +1,7 @@
1
+ import * as react_jsx_runtime45 from "react/jsx-runtime";
2
+
3
+ //#region src/components/Toast/Toaster.d.ts
4
+ declare const Toaster: () => react_jsx_runtime45.JSX.Element;
5
+ //#endregion
6
+ export { Toaster };
7
+ //# sourceMappingURL=Toaster.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toaster.d.cts","names":[],"sources":["../../../src/components/Toast/Toaster.tsx"],"mappings":";;;cAmBa,OAAA,QAAO,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -0,0 +1,7 @@
1
+ import * as react_jsx_runtime43 from "react/jsx-runtime";
2
+
3
+ //#region src/components/Toast/Toaster.d.ts
4
+ declare const Toaster: () => react_jsx_runtime43.JSX.Element;
5
+ //#endregion
6
+ export { Toaster };
7
+ //# sourceMappingURL=Toaster.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toaster.d.mts","names":[],"sources":["../../../src/components/Toast/Toaster.tsx"],"mappings":";;;cAmBa,OAAA,QAAO,mBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -0,0 +1,41 @@
1
+ 'use client';
2
+
3
+ import { Toast, ToastProvider, ToastViewport } from "./Toast.mjs";
4
+ import { toast, useToastStore } from "./toastStore.mjs";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { ErrorColored, LoadingColored, SuccessColored } from "@causw/icons";
7
+
8
+ //#region src/components/Toast/Toaster.tsx
9
+ const Icons = {
10
+ success: () => /* @__PURE__ */ jsx(SuccessColored, { size: 20 }),
11
+ error: () => /* @__PURE__ */ jsx(ErrorColored, { size: 20 }),
12
+ loading: () => /* @__PURE__ */ jsx(LoadingColored, {
13
+ size: 20,
14
+ className: "animate-spin"
15
+ })
16
+ };
17
+ const toastIconMap = {
18
+ success: /* @__PURE__ */ jsx(Icons.success, {}),
19
+ error: /* @__PURE__ */ jsx(Icons.error, {}),
20
+ loading: /* @__PURE__ */ jsx(Icons.loading, {}),
21
+ default: void 0
22
+ };
23
+ const Toaster = () => {
24
+ return /* @__PURE__ */ jsxs(ToastProvider, { children: [useToastStore().map((t) => {
25
+ const iconToRender = t.icon || toastIconMap[t.type];
26
+ return /* @__PURE__ */ jsx(Toast, {
27
+ message: t.message,
28
+ icon: iconToRender,
29
+ variant: "default",
30
+ duration: t.duration || 3e3,
31
+ open: true,
32
+ onOpenChange: (open) => {
33
+ if (!open) toast.dismiss(t.id);
34
+ }
35
+ }, t.id);
36
+ }), /* @__PURE__ */ jsx(ToastViewport, {})] });
37
+ };
38
+
39
+ //#endregion
40
+ export { Toaster };
41
+ //# sourceMappingURL=Toaster.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toaster.mjs","names":[],"sources":["../../../src/components/Toast/Toaster.tsx"],"sourcesContent":["'use client';\n\nimport { Toast, ToastProvider, ToastViewport } from './Toast';\nimport { useToastStore, toast, ToastType } from './toastStore';\nimport { SuccessColored, ErrorColored, LoadingColored } from '@causw/icons';\n\nconst Icons = {\n success: () => <SuccessColored size={20} />,\n error: () => <ErrorColored size={20} />,\n loading: () => <LoadingColored size={20} className=\"animate-spin\" />,\n};\n\nconst toastIconMap: Record<ToastType, React.ReactNode> = {\n success: <Icons.success />,\n error: <Icons.error />,\n loading: <Icons.loading />,\n default: undefined,\n};\n\nexport const Toaster = () => {\n const toasts = useToastStore();\n\n return (\n <ToastProvider>\n {toasts.map((t) => {\n const iconToRender = t.icon || toastIconMap[t.type];\n\n return (\n <Toast\n key={t.id}\n message={t.message}\n icon={iconToRender}\n variant=\"default\"\n duration={t.duration || 3000}\n open={true}\n onOpenChange={(open) => {\n if (!open) toast.dismiss(t.id);\n }}\n />\n );\n })}\n <ToastViewport />\n </ToastProvider>\n );\n};\n"],"mappings":";;;;;;;;AAMA,MAAM,QAAQ;CACZ,eAAe,oBAAC,kBAAe,MAAM,KAAM;CAC3C,aAAa,oBAAC,gBAAa,MAAM,KAAM;CACvC,eAAe,oBAAC;EAAe,MAAM;EAAI,WAAU;GAAiB;CACrE;AAED,MAAM,eAAmD;CACvD,SAAS,oBAAC,MAAM,YAAU;CAC1B,OAAO,oBAAC,MAAM,UAAQ;CACtB,SAAS,oBAAC,MAAM,YAAU;CAC1B,SAAS;CACV;AAED,MAAa,gBAAgB;AAG3B,QACE,qBAAC,4BAHY,eAAe,CAIlB,KAAK,MAAM;EACjB,MAAM,eAAe,EAAE,QAAQ,aAAa,EAAE;AAE9C,SACE,oBAAC;GAEC,SAAS,EAAE;GACX,MAAM;GACN,SAAQ;GACR,UAAU,EAAE,YAAY;GACxB,MAAM;GACN,eAAe,SAAS;AACtB,QAAI,CAAC,KAAM,OAAM,QAAQ,EAAE,GAAG;;KAP3B,EAAE,GASP;GAEJ,EACF,oBAAC,kBAAgB,IACH"}
@@ -1,3 +1,4 @@
1
1
  import { ToastVariants } from "./Toast.styles.cjs";
2
2
  import { Toast, ToastProps, ToastProvider, ToastViewport, ToastViewportProps } from "./Toast.cjs";
3
- import { toast } from "./toastStore.cjs";
3
+ import { toast } from "./toastStore.cjs";
4
+ import { Toaster } from "./Toaster.cjs";
@@ -1,3 +1,4 @@
1
1
  import { ToastVariants } from "./Toast.styles.mjs";
2
2
  import { Toast, ToastProps, ToastProvider, ToastViewport, ToastViewportProps } from "./Toast.mjs";
3
- import { toast } from "./toastStore.mjs";
3
+ import { toast } from "./toastStore.mjs";
4
+ import { Toaster } from "./Toaster.mjs";
@@ -1,3 +1,4 @@
1
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
1
2
  let react = require("react");
2
3
 
3
4
  //#region src/components/Toast/toastStore.ts
@@ -11,15 +12,24 @@ const genId = () => {
11
12
  };
12
13
  const dispatch = (message, type, options) => {
13
14
  const id = genId();
14
- memoryState = [{
15
+ const newToast = {
15
16
  id,
16
17
  message,
17
18
  type,
18
19
  ...options
19
- }];
20
+ };
21
+ memoryState = [...memoryState, newToast];
20
22
  notify();
21
23
  return id;
22
24
  };
25
+ const useToastStore = () => {
26
+ return (0, react.useSyncExternalStore)((listener) => {
27
+ listeners.push(listener);
28
+ return () => {
29
+ listeners = listeners.filter((l) => l !== listener);
30
+ };
31
+ }, () => memoryState, () => []);
32
+ };
23
33
  const toastRoot = (message, options) => dispatch(message, "default", options);
24
34
  const toast = Object.assign(toastRoot, {
25
35
  success: (message, options) => dispatch(message, "success", options),
@@ -35,4 +45,5 @@ const toast = Object.assign(toastRoot, {
35
45
  });
36
46
 
37
47
  //#endregion
38
- exports.toast = toast;
48
+ exports.toast = toast;
49
+ exports.useToastStore = useToastStore;
@@ -1 +1 @@
1
- {"version":3,"file":"toastStore.d.cts","names":[],"sources":["../../../src/components/Toast/toastStore.ts"],"mappings":";KAEY,SAAA;AAAA,UAEK,SAAA;EACf,EAAA;EACA,OAAA;EACA,IAAA,EAAM,SAAA;EACN,QAAA;EACA,IAAA,GAAO,KAAA,CAAM,SAAA;AAAA;AAAA,KAGV,YAAA,GAAe,IAAA,CAAK,SAAA;AAAA,cAoCZ,KAAA,IAAK,OAAA,UAHgB,OAAA,GAAY,YAAA;6BAInB,OAAA,GAAY,YAAA;2BAEd,OAAA,GAAY,YAAA;6BAEV,OAAA,GAAY,YAAA"}
1
+ {"version":3,"file":"toastStore.d.cts","names":[],"sources":["../../../src/components/Toast/toastStore.ts"],"mappings":";KAEY,SAAA;AAAA,UAEK,SAAA;EACf,EAAA;EACA,OAAA;EACA,IAAA,EAAM,SAAA;EACN,QAAA;EACA,IAAA,GAAO,KAAA,CAAM,SAAA;AAAA;AAAA,KAGV,YAAA,GAAe,IAAA,CAAK,SAAA;AAAA,cAqCZ,KAAA,IAAK,OAAA,UAHgB,OAAA,GAAY,YAAA;6BAInB,OAAA,GAAY,YAAA;2BAEd,OAAA,GAAY,YAAA;6BAEV,OAAA,GAAY,YAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"toastStore.d.mts","names":[],"sources":["../../../src/components/Toast/toastStore.ts"],"mappings":";KAEY,SAAA;AAAA,UAEK,SAAA;EACf,EAAA;EACA,OAAA;EACA,IAAA,EAAM,SAAA;EACN,QAAA;EACA,IAAA,GAAO,KAAA,CAAM,SAAA;AAAA;AAAA,KAGV,YAAA,GAAe,IAAA,CAAK,SAAA;AAAA,cAoCZ,KAAA,IAAK,OAAA,UAHgB,OAAA,GAAY,YAAA;6BAInB,OAAA,GAAY,YAAA;2BAEd,OAAA,GAAY,YAAA;6BAEV,OAAA,GAAY,YAAA"}
1
+ {"version":3,"file":"toastStore.d.mts","names":[],"sources":["../../../src/components/Toast/toastStore.ts"],"mappings":";KAEY,SAAA;AAAA,UAEK,SAAA;EACf,EAAA;EACA,OAAA;EACA,IAAA,EAAM,SAAA;EACN,QAAA;EACA,IAAA,GAAO,KAAA,CAAM,SAAA;AAAA;AAAA,KAGV,YAAA,GAAe,IAAA,CAAK,SAAA;AAAA,cAqCZ,KAAA,IAAK,OAAA,UAHgB,OAAA,GAAY,YAAA;6BAInB,OAAA,GAAY,YAAA;2BAEd,OAAA,GAAY,YAAA;6BAEV,OAAA,GAAY,YAAA"}
@@ -1,4 +1,4 @@
1
- import "react";
1
+ import { useSyncExternalStore } from "react";
2
2
 
3
3
  //#region src/components/Toast/toastStore.ts
4
4
  let memoryState = [];
@@ -11,15 +11,24 @@ const genId = () => {
11
11
  };
12
12
  const dispatch = (message, type, options) => {
13
13
  const id = genId();
14
- memoryState = [{
14
+ const newToast = {
15
15
  id,
16
16
  message,
17
17
  type,
18
18
  ...options
19
- }];
19
+ };
20
+ memoryState = [...memoryState, newToast];
20
21
  notify();
21
22
  return id;
22
23
  };
24
+ const useToastStore = () => {
25
+ return useSyncExternalStore((listener) => {
26
+ listeners.push(listener);
27
+ return () => {
28
+ listeners = listeners.filter((l) => l !== listener);
29
+ };
30
+ }, () => memoryState, () => []);
31
+ };
23
32
  const toastRoot = (message, options) => dispatch(message, "default", options);
24
33
  const toast = Object.assign(toastRoot, {
25
34
  success: (message, options) => dispatch(message, "success", options),
@@ -35,5 +44,5 @@ const toast = Object.assign(toastRoot, {
35
44
  });
36
45
 
37
46
  //#endregion
38
- export { toast };
47
+ export { toast, useToastStore };
39
48
  //# sourceMappingURL=toastStore.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"toastStore.mjs","names":[],"sources":["../../../src/components/Toast/toastStore.ts"],"sourcesContent":["import { useSyncExternalStore } from 'react';\n\nexport type ToastType = 'default' | 'success' | 'error' | 'loading';\n\nexport interface ToastData {\n id: string;\n message: string;\n type: ToastType;\n duration?: number;\n icon?: React.ReactNode;\n}\n\ntype ToastOptions = Omit<ToastData, 'id' | 'message' | 'type'>;\n\nlet memoryState: ToastData[] = [];\nlet listeners: Array<() => void> = [];\nconst notify = () => listeners.forEach((l) => l());\n\nlet count = 0;\nconst genId = () => {\n count = (count + 1) % Number.MAX_SAFE_INTEGER;\n return count.toString();\n};\n\nconst dispatch = (message: string, type: ToastType, options?: ToastOptions) => {\n const id = genId();\n const newToast = { id, message, type, ...options };\n\n memoryState = [newToast];\n notify();\n return id;\n};\n\nexport const useToastStore = () => {\n return useSyncExternalStore(\n (listener) => {\n listeners.push(listener);\n return () => {\n listeners = listeners.filter((l) => l !== listener);\n };\n },\n () => memoryState,\n );\n};\n\nconst toastRoot = (message: string, options?: ToastOptions) =>\n dispatch(message, 'default', options);\n\nexport const toast = Object.assign(toastRoot, {\n success: (message: string, options?: ToastOptions) =>\n dispatch(message, 'success', options),\n error: (message: string, options?: ToastOptions) =>\n dispatch(message, 'error', options),\n loading: (message: string, options?: ToastOptions) =>\n dispatch(message, 'loading', {\n ...options,\n duration: options?.duration ?? 100000,\n }),\n dismiss: (id: string) => {\n memoryState = memoryState.filter((t) => t.id !== id);\n notify();\n },\n});\n"],"mappings":";;;AAcA,IAAI,cAA2B,EAAE;AACjC,IAAI,YAA+B,EAAE;AACrC,MAAM,eAAe,UAAU,SAAS,MAAM,GAAG,CAAC;AAElD,IAAI,QAAQ;AACZ,MAAM,cAAc;AAClB,UAAS,QAAQ,KAAK,OAAO;AAC7B,QAAO,MAAM,UAAU;;AAGzB,MAAM,YAAY,SAAiB,MAAiB,YAA2B;CAC7E,MAAM,KAAK,OAAO;AAGlB,eAAc,CAFG;EAAE;EAAI;EAAS;EAAM,GAAG;EAAS,CAE1B;AACxB,SAAQ;AACR,QAAO;;AAeT,MAAM,aAAa,SAAiB,YAClC,SAAS,SAAS,WAAW,QAAQ;AAEvC,MAAa,QAAQ,OAAO,OAAO,WAAW;CAC5C,UAAU,SAAiB,YACzB,SAAS,SAAS,WAAW,QAAQ;CACvC,QAAQ,SAAiB,YACvB,SAAS,SAAS,SAAS,QAAQ;CACrC,UAAU,SAAiB,YACzB,SAAS,SAAS,WAAW;EAC3B,GAAG;EACH,UAAU,SAAS,YAAY;EAChC,CAAC;CACJ,UAAU,OAAe;AACvB,gBAAc,YAAY,QAAQ,MAAM,EAAE,OAAO,GAAG;AACpD,UAAQ;;CAEX,CAAC"}
1
+ {"version":3,"file":"toastStore.mjs","names":[],"sources":["../../../src/components/Toast/toastStore.ts"],"sourcesContent":["import { useSyncExternalStore } from 'react';\n\nexport type ToastType = 'default' | 'success' | 'error' | 'loading';\n\nexport interface ToastData {\n id: string;\n message: string;\n type: ToastType;\n duration?: number;\n icon?: React.ReactNode;\n}\n\ntype ToastOptions = Omit<ToastData, 'id' | 'message' | 'type'>;\n\nlet memoryState: ToastData[] = [];\nlet listeners: Array<() => void> = [];\nconst notify = () => listeners.forEach((l) => l());\n\nlet count = 0;\nconst genId = () => {\n count = (count + 1) % Number.MAX_SAFE_INTEGER;\n return count.toString();\n};\n\nconst dispatch = (message: string, type: ToastType, options?: ToastOptions) => {\n const id = genId();\n const newToast = { id, message, type, ...options };\n\n memoryState = [...memoryState, newToast];\n notify();\n return id;\n};\n\nexport const useToastStore = () => {\n return useSyncExternalStore(\n (listener) => {\n listeners.push(listener);\n return () => {\n listeners = listeners.filter((l) => l !== listener);\n };\n },\n () => memoryState,\n () => [],\n );\n};\n\nconst toastRoot = (message: string, options?: ToastOptions) =>\n dispatch(message, 'default', options);\n\nexport const toast = Object.assign(toastRoot, {\n success: (message: string, options?: ToastOptions) =>\n dispatch(message, 'success', options),\n error: (message: string, options?: ToastOptions) =>\n dispatch(message, 'error', options),\n loading: (message: string, options?: ToastOptions) =>\n dispatch(message, 'loading', {\n ...options,\n duration: options?.duration ?? 100000,\n }),\n dismiss: (id: string) => {\n memoryState = memoryState.filter((t) => t.id !== id);\n notify();\n },\n});\n"],"mappings":";;;AAcA,IAAI,cAA2B,EAAE;AACjC,IAAI,YAA+B,EAAE;AACrC,MAAM,eAAe,UAAU,SAAS,MAAM,GAAG,CAAC;AAElD,IAAI,QAAQ;AACZ,MAAM,cAAc;AAClB,UAAS,QAAQ,KAAK,OAAO;AAC7B,QAAO,MAAM,UAAU;;AAGzB,MAAM,YAAY,SAAiB,MAAiB,YAA2B;CAC7E,MAAM,KAAK,OAAO;CAClB,MAAM,WAAW;EAAE;EAAI;EAAS;EAAM,GAAG;EAAS;AAElD,eAAc,CAAC,GAAG,aAAa,SAAS;AACxC,SAAQ;AACR,QAAO;;AAGT,MAAa,sBAAsB;AACjC,QAAO,sBACJ,aAAa;AACZ,YAAU,KAAK,SAAS;AACxB,eAAa;AACX,eAAY,UAAU,QAAQ,MAAM,MAAM,SAAS;;UAGjD,mBACA,EAAE,CACT;;AAGH,MAAM,aAAa,SAAiB,YAClC,SAAS,SAAS,WAAW,QAAQ;AAEvC,MAAa,QAAQ,OAAO,OAAO,WAAW;CAC5C,UAAU,SAAiB,YACzB,SAAS,SAAS,WAAW,QAAQ;CACvC,QAAQ,SAAiB,YACvB,SAAS,SAAS,SAAS,QAAQ;CACrC,UAAU,SAAiB,YACzB,SAAS,SAAS,WAAW;EAC3B,GAAG;EACH,UAAU,SAAS,YAAY;EAChC,CAAC;CACJ,UAAU,OAAe;AACvB,gBAAc,YAAY,QAAQ,MAAM,EAAE,OAAO,GAAG;AACpD,UAAQ;;CAEX,CAAC"}
@@ -5,7 +5,7 @@ import "../Text/index.cjs";
5
5
  import "../../utils/index.cjs";
6
6
  import { ToggleVariants } from "./Toggle.styles.cjs";
7
7
  import React from "react";
8
- import * as react_jsx_runtime14 from "react/jsx-runtime";
8
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
9
9
 
10
10
  //#region src/components/Toggle/Toggle.d.ts
11
11
  interface ToggleRootProps extends Omit<React.ComponentProps<'label'>, 'onChange'>, ToggleVariants {
@@ -23,11 +23,11 @@ declare const Toggle: {
23
23
  children,
24
24
  className,
25
25
  ...props
26
- }: ToggleRootProps): react_jsx_runtime14.JSX.Element;
26
+ }: ToggleRootProps): react_jsx_runtime10.JSX.Element;
27
27
  displayName: string;
28
28
  } & {
29
29
  Switch: {
30
- (): react_jsx_runtime14.JSX.Element;
30
+ (): react_jsx_runtime10.JSX.Element;
31
31
  displayName: string;
32
32
  };
33
33
  Label: {
@@ -37,7 +37,7 @@ declare const Toggle: {
37
37
  textColor,
38
38
  className,
39
39
  ...props
40
- }: ToggleLabelProps<E>): react_jsx_runtime14.JSX.Element;
40
+ }: ToggleLabelProps<E>): react_jsx_runtime10.JSX.Element;
41
41
  displayName: string;
42
42
  };
43
43
  };
@@ -5,7 +5,7 @@ import "../Text/index.mjs";
5
5
  import "../../utils/index.mjs";
6
6
  import { ToggleVariants } from "./Toggle.styles.mjs";
7
7
  import React from "react";
8
- import * as react_jsx_runtime10 from "react/jsx-runtime";
8
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
9
9
 
10
10
  //#region src/components/Toggle/Toggle.d.ts
11
11
  interface ToggleRootProps extends Omit<React.ComponentProps<'label'>, 'onChange'>, ToggleVariants {
@@ -23,11 +23,11 @@ declare const Toggle: {
23
23
  children,
24
24
  className,
25
25
  ...props
26
- }: ToggleRootProps): react_jsx_runtime10.JSX.Element;
26
+ }: ToggleRootProps): react_jsx_runtime9.JSX.Element;
27
27
  displayName: string;
28
28
  } & {
29
29
  Switch: {
30
- (): react_jsx_runtime10.JSX.Element;
30
+ (): react_jsx_runtime9.JSX.Element;
31
31
  displayName: string;
32
32
  };
33
33
  Label: {
@@ -37,7 +37,7 @@ declare const Toggle: {
37
37
  textColor,
38
38
  className,
39
39
  ...props
40
- }: ToggleLabelProps<E>): react_jsx_runtime10.JSX.Element;
40
+ }: ToggleLabelProps<E>): react_jsx_runtime9.JSX.Element;
41
41
  displayName: string;
42
42
  };
43
43
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Toggle.d.mts","names":[],"sources":["../../../src/components/Toggle/Toggle.tsx"],"mappings":";;;;;;;;;;UAyBiB,eAAA,SACP,IAAA,CAAK,KAAA,CAAM,cAAA,wBAAsC,cAAA;EACzD,cAAA;EACA,eAAA,IAAmB,OAAA;EACnB,QAAA,GAAW,KAAA,CAAM,SAAA;AAAA;AAAA,KAwDP,gBAAA,WAA2B,WAAA,aAAwB,gBAAA,CAC7D,CAAA,EACA,YAAA;AAAA,cA8BW,MAAA;EAAA;;;;;;;;KA7EV,eAAA,GAAe,mBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;eAkDa,WAAA;MAAW,QAAA;MAAA,UAAA;MAAA,SAAA;MAAA,SAAA;MAAA,GAAA;IAAA,GAMvC,gBAAA,CAAiB,CAAA,IAAE,mBAAA,CAAA,GAAA,CAAA,OAAA"}
1
+ {"version":3,"file":"Toggle.d.mts","names":[],"sources":["../../../src/components/Toggle/Toggle.tsx"],"mappings":";;;;;;;;;;UAyBiB,eAAA,SACP,IAAA,CAAK,KAAA,CAAM,cAAA,wBAAsC,cAAA;EACzD,cAAA;EACA,eAAA,IAAmB,OAAA;EACnB,QAAA,GAAW,KAAA,CAAM,SAAA;AAAA;AAAA,KAwDP,gBAAA,WAA2B,WAAA,aAAwB,gBAAA,CAC7D,CAAA,EACA,YAAA;AAAA,cA8BW,MAAA;EAAA;;;;;;;;KA7EV,eAAA,GAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;eAkDa,WAAA;MAAW,QAAA;MAAA,UAAA;MAAA,SAAA;MAAA,SAAA;MAAA,GAAA;IAAA,GAMvC,gBAAA,CAAiB,CAAA,IAAE,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -1,8 +1,8 @@
1
- import * as tailwind_variants39 from "tailwind-variants";
1
+ import * as tailwind_variants33 from "tailwind-variants";
2
2
  import { VariantProps } from "tailwind-variants";
3
3
 
4
4
  //#region src/components/Toggle/Toggle.styles.d.ts
5
- declare const toggle: tailwind_variants39.TVReturnType<{
5
+ declare const toggle: tailwind_variants33.TVReturnType<{
6
6
  checked: {
7
7
  true: {
8
8
  switch: string;
@@ -46,7 +46,7 @@ declare const toggle: tailwind_variants39.TVReturnType<{
46
46
  switch: string;
47
47
  switchThumb: string;
48
48
  label: string;
49
- }, tailwind_variants39.TVReturnType<{
49
+ }, tailwind_variants33.TVReturnType<{
50
50
  checked: {
51
51
  true: {
52
52
  switch: string;
@@ -1,14 +1,14 @@
1
1
  import { StackProps } from "../Stack/Stack.mjs";
2
2
  import "../Stack/index.mjs";
3
3
  import { ElementType } from "react";
4
- import * as react_jsx_runtime19 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime18 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/VStack/VStack.d.ts
7
7
  type VStackProps<E extends ElementType = 'div'> = Omit<StackProps<E>, 'direction'>;
8
8
  declare const VStack: {
9
9
  <E extends ElementType = "div">({
10
10
  ...props
11
- }: VStackProps<E>): react_jsx_runtime19.JSX.Element;
11
+ }: VStackProps<E>): react_jsx_runtime18.JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  //#endregion
@@ -69,6 +69,7 @@ import "./Tab/index.cjs";
69
69
  import { ToastVariants } from "./Toast/Toast.styles.cjs";
70
70
  import { Toast, ToastProps, ToastProvider, ToastViewport, ToastViewportProps } from "./Toast/Toast.cjs";
71
71
  import { toast } from "./Toast/toastStore.cjs";
72
+ import { Toaster } from "./Toast/Toaster.cjs";
72
73
  import "./Toast/index.cjs";
73
74
  import { ModalVariants } from "./Modal/Modal.styles.cjs";
74
75
  import { Modal, ModalActionProps, ModalContentProps, ModalDescriptionProps, ModalFooterProps, ModalOverlayProps, ModalTitleProps } from "./Modal/Modal.cjs";
@@ -69,6 +69,7 @@ import "./Tab/index.mjs";
69
69
  import { ToastVariants } from "./Toast/Toast.styles.mjs";
70
70
  import { Toast, ToastProps, ToastProvider, ToastViewport, ToastViewportProps } from "./Toast/Toast.mjs";
71
71
  import { toast } from "./Toast/toastStore.mjs";
72
+ import { Toaster } from "./Toast/Toaster.mjs";
72
73
  import "./Toast/index.mjs";
73
74
  import { ModalVariants } from "./Modal/Modal.styles.mjs";
74
75
  import { Modal, ModalActionProps, ModalContentProps, ModalDescriptionProps, ModalFooterProps, ModalOverlayProps, ModalTitleProps } from "./Modal/Modal.mjs";
package/dist/index.cjs CHANGED
@@ -32,6 +32,7 @@ const require_Avatar = require('./components/Avatar/Avatar.cjs');
32
32
  const require_Tab = require('./components/Tab/Tab.cjs');
33
33
  const require_Toast = require('./components/Toast/Toast.cjs');
34
34
  const require_toastStore = require('./components/Toast/toastStore.cjs');
35
+ const require_Toaster = require('./components/Toast/Toaster.cjs');
35
36
  const require_Modal = require('./components/Modal/Modal.cjs');
36
37
  const require_Sidebar = require('./components/Sidebar/Sidebar.cjs');
37
38
  const require_BottomNavigation = require('./components/BottomNavigation/BottomNavigation.cjs');
@@ -81,6 +82,7 @@ exports.TextInput = require_TextInput.TextInput;
81
82
  exports.Toast = require_Toast.Toast;
82
83
  exports.ToastProvider = require_Toast.ToastProvider;
83
84
  exports.ToastViewport = require_Toast.ToastViewport;
85
+ exports.Toaster = require_Toaster.Toaster;
84
86
  exports.Toggle = require_Toggle.Toggle;
85
87
  exports.VStack = require_VStack.VStack;
86
88
  exports.box = require_Box_styles.box;
package/dist/index.d.cts CHANGED
@@ -47,6 +47,7 @@ import { Tab, TabContentProps, TabListProps, TabRootProps, TabTabItemProps } fro
47
47
  import { ToastVariants } from "./components/Toast/Toast.styles.cjs";
48
48
  import { Toast, ToastProps, ToastProvider, ToastViewport, ToastViewportProps } from "./components/Toast/Toast.cjs";
49
49
  import { toast } from "./components/Toast/toastStore.cjs";
50
+ import { Toaster } from "./components/Toast/Toaster.cjs";
50
51
  import { ModalVariants } from "./components/Modal/Modal.styles.cjs";
51
52
  import { Modal, ModalActionProps, ModalContentProps, ModalDescriptionProps, ModalFooterProps, ModalOverlayProps, ModalTitleProps } from "./components/Modal/Modal.cjs";
52
53
  import { SidebarVariants } from "./components/Sidebar/Sidebar.styles.cjs";
@@ -60,4 +61,4 @@ import { PullToRefresh, PullToRefreshProps } from "./components/PullToRefresh/Pu
60
61
  import { DatePickerVariants } from "./components/DatePicker/DatePicker.styles.cjs";
61
62
  import { DatePicker, DatePickerProps } from "./components/DatePicker/DatePicker.cjs";
62
63
  import "./components/index.cjs";
63
- export { Avatar, AvatarProps, AvatarVariants, BottomNavigation, BottomSheet, Box, BoxProps, BoxVariants, Button, ButtonProps, CTAButton, CTAButtonProps, Calendar, CalendarEvent, CalendarProps, Checkbox, CheckboxLabelProps, CheckboxRootProps, Chip, ChipProps, ChipVariants, DatePicker, DatePickerProps, DatePickerVariants, Dialog, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogOverlayProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps, DialogVariants, Dropdown, DropdownContentProps, DropdownItemProps, DropdownProps, DropdownTriggerProps, DropdownVariants, Field, FieldDescriptionProps, FieldErrorDescriptionProps, FieldLabelProps, FieldProps, Flex, FlexAlign, FlexDirection, FlexGap, FlexJustify, FlexProps, Float, FloatProps, FloatingActionButton, FloatingActionButtonProps, Grid, GridProps, HStack, HStackProps, Modal, ModalActionProps, ModalContentProps, ModalDescriptionProps, ModalFooterProps, ModalOverlayProps, ModalTitleProps, ModalVariants, PolymorphicProps, PolymorphicPropsWithoutRef, Primitive, PrimitiveProps, PullToRefresh, PullToRefreshProps, Radio, RadioGroup, RadioGroupProps, RadioProps, RatioChart, RatioChartEditor, RatioChartEditorOption, RatioChartEditorProps, RatioChartFooterProps, RatioChartItemProps, RatioChartRootProps, Select, SelectContentProps, SelectGroupProps, SelectItemProps, SelectLabelProps, SelectProps, SelectTriggerProps, SelectValueProps, SelectVariants, Separator, SeparatorProps, SeparatorVariants, Sidebar, SidebarVariants, Skeleton, SkeletonProps, Spacer, SpacerProps, SpacerVariants, Spinner, SpinnerProps, Stack, StackProps, StackVariants, Tab, TabContentProps, TabListProps, TabRootProps, TabTabItemProps, TabVariants, Text, TextArea, TextAreaFooterProps, TextAreaInputProps, TextAreaProps, TextElement, TextInput, TextInputProps, TextInputVariants, TextProps, TextVariants, Toast, ToastProps, ToastProvider, ToastVariants, ToastViewport, ToastViewportProps, Toggle, ToggleLabelProps, ToggleRootProps, VStack, VStackProps, box, convertPxToRem, mergeStyles, splitVariantProps, toast, useRadioGroupContext };
64
+ export { Avatar, AvatarProps, AvatarVariants, BottomNavigation, BottomSheet, Box, BoxProps, BoxVariants, Button, ButtonProps, CTAButton, CTAButtonProps, Calendar, CalendarEvent, CalendarProps, Checkbox, CheckboxLabelProps, CheckboxRootProps, Chip, ChipProps, ChipVariants, DatePicker, DatePickerProps, DatePickerVariants, Dialog, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogOverlayProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps, DialogVariants, Dropdown, DropdownContentProps, DropdownItemProps, DropdownProps, DropdownTriggerProps, DropdownVariants, Field, FieldDescriptionProps, FieldErrorDescriptionProps, FieldLabelProps, FieldProps, Flex, FlexAlign, FlexDirection, FlexGap, FlexJustify, FlexProps, Float, FloatProps, FloatingActionButton, FloatingActionButtonProps, Grid, GridProps, HStack, HStackProps, Modal, ModalActionProps, ModalContentProps, ModalDescriptionProps, ModalFooterProps, ModalOverlayProps, ModalTitleProps, ModalVariants, PolymorphicProps, PolymorphicPropsWithoutRef, Primitive, PrimitiveProps, PullToRefresh, PullToRefreshProps, Radio, RadioGroup, RadioGroupProps, RadioProps, RatioChart, RatioChartEditor, RatioChartEditorOption, RatioChartEditorProps, RatioChartFooterProps, RatioChartItemProps, RatioChartRootProps, Select, SelectContentProps, SelectGroupProps, SelectItemProps, SelectLabelProps, SelectProps, SelectTriggerProps, SelectValueProps, SelectVariants, Separator, SeparatorProps, SeparatorVariants, Sidebar, SidebarVariants, Skeleton, SkeletonProps, Spacer, SpacerProps, SpacerVariants, Spinner, SpinnerProps, Stack, StackProps, StackVariants, Tab, TabContentProps, TabListProps, TabRootProps, TabTabItemProps, TabVariants, Text, TextArea, TextAreaFooterProps, TextAreaInputProps, TextAreaProps, TextElement, TextInput, TextInputProps, TextInputVariants, TextProps, TextVariants, Toast, ToastProps, ToastProvider, ToastVariants, ToastViewport, ToastViewportProps, Toaster, Toggle, ToggleLabelProps, ToggleRootProps, VStack, VStackProps, box, convertPxToRem, mergeStyles, splitVariantProps, toast, useRadioGroupContext };
package/dist/index.d.mts CHANGED
@@ -47,6 +47,7 @@ import { Tab, TabContentProps, TabListProps, TabRootProps, TabTabItemProps } fro
47
47
  import { ToastVariants } from "./components/Toast/Toast.styles.mjs";
48
48
  import { Toast, ToastProps, ToastProvider, ToastViewport, ToastViewportProps } from "./components/Toast/Toast.mjs";
49
49
  import { toast } from "./components/Toast/toastStore.mjs";
50
+ import { Toaster } from "./components/Toast/Toaster.mjs";
50
51
  import { ModalVariants } from "./components/Modal/Modal.styles.mjs";
51
52
  import { Modal, ModalActionProps, ModalContentProps, ModalDescriptionProps, ModalFooterProps, ModalOverlayProps, ModalTitleProps } from "./components/Modal/Modal.mjs";
52
53
  import { SidebarVariants } from "./components/Sidebar/Sidebar.styles.mjs";
@@ -60,4 +61,4 @@ import { PullToRefresh, PullToRefreshProps } from "./components/PullToRefresh/Pu
60
61
  import { DatePickerVariants } from "./components/DatePicker/DatePicker.styles.mjs";
61
62
  import { DatePicker, DatePickerProps } from "./components/DatePicker/DatePicker.mjs";
62
63
  import "./components/index.mjs";
63
- export { Avatar, AvatarProps, AvatarVariants, BottomNavigation, BottomSheet, Box, BoxProps, BoxVariants, Button, ButtonProps, CTAButton, CTAButtonProps, Calendar, CalendarEvent, CalendarProps, Checkbox, CheckboxLabelProps, CheckboxRootProps, Chip, ChipProps, ChipVariants, DatePicker, DatePickerProps, DatePickerVariants, Dialog, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogOverlayProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps, DialogVariants, Dropdown, DropdownContentProps, DropdownItemProps, DropdownProps, DropdownTriggerProps, DropdownVariants, Field, FieldDescriptionProps, FieldErrorDescriptionProps, FieldLabelProps, FieldProps, Flex, FlexAlign, FlexDirection, FlexGap, FlexJustify, FlexProps, Float, FloatProps, FloatingActionButton, FloatingActionButtonProps, Grid, GridProps, HStack, HStackProps, Modal, ModalActionProps, ModalContentProps, ModalDescriptionProps, ModalFooterProps, ModalOverlayProps, ModalTitleProps, ModalVariants, PolymorphicProps, PolymorphicPropsWithoutRef, Primitive, PrimitiveProps, PullToRefresh, PullToRefreshProps, Radio, RadioGroup, RadioGroupProps, RadioProps, RatioChart, RatioChartEditor, RatioChartEditorOption, RatioChartEditorProps, RatioChartFooterProps, RatioChartItemProps, RatioChartRootProps, Select, SelectContentProps, SelectGroupProps, SelectItemProps, SelectLabelProps, SelectProps, SelectTriggerProps, SelectValueProps, SelectVariants, Separator, SeparatorProps, SeparatorVariants, Sidebar, SidebarVariants, Skeleton, SkeletonProps, Spacer, SpacerProps, SpacerVariants, Spinner, SpinnerProps, Stack, StackProps, StackVariants, Tab, TabContentProps, TabListProps, TabRootProps, TabTabItemProps, TabVariants, Text, TextArea, TextAreaFooterProps, TextAreaInputProps, TextAreaProps, TextElement, TextInput, TextInputProps, TextInputVariants, TextProps, TextVariants, Toast, ToastProps, ToastProvider, ToastVariants, ToastViewport, ToastViewportProps, Toggle, ToggleLabelProps, ToggleRootProps, VStack, VStackProps, box, convertPxToRem, mergeStyles, splitVariantProps, toast, useRadioGroupContext };
64
+ export { Avatar, AvatarProps, AvatarVariants, BottomNavigation, BottomSheet, Box, BoxProps, BoxVariants, Button, ButtonProps, CTAButton, CTAButtonProps, Calendar, CalendarEvent, CalendarProps, Checkbox, CheckboxLabelProps, CheckboxRootProps, Chip, ChipProps, ChipVariants, DatePicker, DatePickerProps, DatePickerVariants, Dialog, DialogCloseProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogOverlayProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps, DialogVariants, Dropdown, DropdownContentProps, DropdownItemProps, DropdownProps, DropdownTriggerProps, DropdownVariants, Field, FieldDescriptionProps, FieldErrorDescriptionProps, FieldLabelProps, FieldProps, Flex, FlexAlign, FlexDirection, FlexGap, FlexJustify, FlexProps, Float, FloatProps, FloatingActionButton, FloatingActionButtonProps, Grid, GridProps, HStack, HStackProps, Modal, ModalActionProps, ModalContentProps, ModalDescriptionProps, ModalFooterProps, ModalOverlayProps, ModalTitleProps, ModalVariants, PolymorphicProps, PolymorphicPropsWithoutRef, Primitive, PrimitiveProps, PullToRefresh, PullToRefreshProps, Radio, RadioGroup, RadioGroupProps, RadioProps, RatioChart, RatioChartEditor, RatioChartEditorOption, RatioChartEditorProps, RatioChartFooterProps, RatioChartItemProps, RatioChartRootProps, Select, SelectContentProps, SelectGroupProps, SelectItemProps, SelectLabelProps, SelectProps, SelectTriggerProps, SelectValueProps, SelectVariants, Separator, SeparatorProps, SeparatorVariants, Sidebar, SidebarVariants, Skeleton, SkeletonProps, Spacer, SpacerProps, SpacerVariants, Spinner, SpinnerProps, Stack, StackProps, StackVariants, Tab, TabContentProps, TabListProps, TabRootProps, TabTabItemProps, TabVariants, Text, TextArea, TextAreaFooterProps, TextAreaInputProps, TextAreaProps, TextElement, TextInput, TextInputProps, TextInputVariants, TextProps, TextVariants, Toast, ToastProps, ToastProvider, ToastVariants, ToastViewport, ToastViewportProps, Toaster, Toggle, ToggleLabelProps, ToggleRootProps, VStack, VStackProps, box, convertPxToRem, mergeStyles, splitVariantProps, toast, useRadioGroupContext };
package/dist/index.mjs CHANGED
@@ -32,6 +32,7 @@ import { Avatar } from "./components/Avatar/Avatar.mjs";
32
32
  import { Tab } from "./components/Tab/Tab.mjs";
33
33
  import { Toast, ToastProvider, ToastViewport } from "./components/Toast/Toast.mjs";
34
34
  import { toast } from "./components/Toast/toastStore.mjs";
35
+ import { Toaster } from "./components/Toast/Toaster.mjs";
35
36
  import { Modal } from "./components/Modal/Modal.mjs";
36
37
  import { Sidebar } from "./components/Sidebar/Sidebar.mjs";
37
38
  import { BottomNavigation } from "./components/BottomNavigation/BottomNavigation.mjs";
@@ -42,4 +43,4 @@ import { Spinner } from "./components/Spinner/Spinner.mjs";
42
43
  import { PullToRefresh } from "./components/PullToRefresh/PullToRefresh.mjs";
43
44
  import { DatePicker } from "./components/DatePicker/DatePicker.mjs";
44
45
 
45
- export { Avatar, BottomNavigation, BottomSheet, Box, Button, CTAButton, Calendar, Checkbox, Chip, DatePicker, Dialog, Dropdown, Field, Flex, Float, FloatingActionButton, Grid, HStack, Modal, Primitive, PullToRefresh, Radio, RadioGroup, RatioChart, RatioChartEditor, Select, Separator, Sidebar, Skeleton, Spacer, Spinner, Stack, Tab, Text, TextArea, TextInput, Toast, ToastProvider, ToastViewport, Toggle, VStack, box, convertPxToRem, mergeStyles, splitVariantProps, toast, useRadioGroupContext };
46
+ export { Avatar, BottomNavigation, BottomSheet, Box, Button, CTAButton, Calendar, Checkbox, Chip, DatePicker, Dialog, Dropdown, Field, Flex, Float, FloatingActionButton, Grid, HStack, Modal, Primitive, PullToRefresh, Radio, RadioGroup, RatioChart, RatioChartEditor, Select, Separator, Sidebar, Skeleton, Spacer, Spinner, Stack, Tab, Text, TextArea, TextInput, Toast, ToastProvider, ToastViewport, Toaster, Toggle, VStack, box, convertPxToRem, mergeStyles, splitVariantProps, toast, useRadioGroupContext };