@nation-a/ui 0.16.7 → 0.16.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/types/components/Toast/index.d.ts +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20665,6 +20665,7 @@ const Description$1 = forwardRef(
|
|
|
20665
20665
|
return /* @__PURE__ */ jsx(Box$1, { ref, className: cx(styles2.description, className), children });
|
|
20666
20666
|
}
|
|
20667
20667
|
);
|
|
20668
|
+
Description$1.displayName = "Toast.Description";
|
|
20668
20669
|
const Icon = forwardRef(({ icon, className }, ref) => {
|
|
20669
20670
|
const styles2 = toastRecipe();
|
|
20670
20671
|
return /* @__PURE__ */ jsx(Box$1, { ref, className: cx(styles2.icon, className), children: icon });
|
|
@@ -20675,7 +20676,7 @@ const ActionTrigger = forwardRef(({ onClick, children, className, asLink = false
|
|
|
20675
20676
|
return /* @__PURE__ */ jsx("button", { ref, className: cx(styles2.actionTrigger, className), onClick, children });
|
|
20676
20677
|
});
|
|
20677
20678
|
ActionTrigger.displayName = "Toast.ActionTrigger";
|
|
20678
|
-
const Toaster = () => {
|
|
20679
|
+
const Toaster = ({ toastOptions, ...props }) => {
|
|
20679
20680
|
return /* @__PURE__ */ jsx(
|
|
20680
20681
|
Oe,
|
|
20681
20682
|
{
|
|
@@ -20688,8 +20689,10 @@ const Toaster = () => {
|
|
|
20688
20689
|
padding: 0,
|
|
20689
20690
|
margin: 0,
|
|
20690
20691
|
width: "100%"
|
|
20691
|
-
}
|
|
20692
|
-
|
|
20692
|
+
},
|
|
20693
|
+
...toastOptions
|
|
20694
|
+
},
|
|
20695
|
+
...props
|
|
20693
20696
|
}
|
|
20694
20697
|
);
|
|
20695
20698
|
};
|
|
@@ -20697,6 +20700,7 @@ Toaster.displayName = "Toast.Toaster";
|
|
|
20697
20700
|
const Toast = forwardRef((props, ref) => {
|
|
20698
20701
|
return /* @__PURE__ */ jsx(Box$1, { ref, ...props });
|
|
20699
20702
|
});
|
|
20703
|
+
Toast.displayName = "Toast";
|
|
20700
20704
|
Toast.Root = Root$5;
|
|
20701
20705
|
Toast.Content = Content$1;
|
|
20702
20706
|
Toast.Description = Description$1;
|