@saas-ui/react 3.0.0-alpha.23 → 3.0.0-alpha.24
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +10 -0
- package/dist/{chunk-BU7QENBQ.js → chunk-3JZ42NYM.js} +1 -1
- package/dist/{chunk-VJ4NCA6R.js → chunk-3Y67QIZ7.js} +1 -1
- package/dist/chunk-52XM5VXJ.js +9 -0
- package/dist/chunk-IVLUAUU5.js +10 -0
- package/dist/chunk-JMYI6YXR.js +1 -0
- package/dist/{chunk-EQ7Q6HRE.js → chunk-OIOBGO3Y.js} +1 -1
- package/dist/chunk-RLIAFHVM.js +66 -0
- package/dist/components/badge/index.d.cts +2 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/close-button/index.js +2 -1
- package/dist/components/data-list/index.cjs +33 -0
- package/dist/components/data-list/index.d.cts +1 -0
- package/dist/components/data-list/index.d.ts +1 -0
- package/dist/components/data-list/index.js +10 -0
- package/dist/components/dialog/index.js +3 -2
- package/dist/components/drawer/index.js +3 -2
- package/dist/components/navbar/index.d.cts +3 -3
- package/dist/components/navbar/index.d.ts +3 -3
- package/dist/components/persona/index.d.cts +3 -8
- package/dist/components/persona/index.d.ts +3 -8
- package/dist/components/select/index.js +3 -2
- package/dist/components/sidebar/index.d.cts +11 -11
- package/dist/components/sidebar/index.d.ts +11 -11
- package/dist/components/tabs/index.cjs +35 -0
- package/dist/components/tabs/index.d.cts +1 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/index.js +12 -0
- package/dist/components/toaster/index.cjs +161 -11
- package/dist/components/toaster/index.d.cts +6 -5
- package/dist/components/toaster/index.d.ts +6 -5
- package/dist/components/toaster/index.js +3 -1
- package/dist/index.cjs +801 -735
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +764 -727
- package/package.json +1 -1
- package/dist/chunk-HELHPHIQ.js +0 -35
- /package/dist/{chunk-BKYGKH3L.js → chunk-YXGJOOMM.js} +0 -0
package/package.json
CHANGED
package/dist/chunk-HELHPHIQ.js
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
'use client'
|
2
|
-
|
3
|
-
// src/components/toaster/toaster.tsx
|
4
|
-
import {
|
5
|
-
Toaster as ChakraToaster,
|
6
|
-
Portal,
|
7
|
-
Spinner,
|
8
|
-
Stack,
|
9
|
-
Toast,
|
10
|
-
createToaster
|
11
|
-
} from "@chakra-ui/react";
|
12
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
13
|
-
var toast = createToaster({
|
14
|
-
placement: "bottom-end",
|
15
|
-
pauseOnPageIdle: true
|
16
|
-
});
|
17
|
-
var Toaster = () => {
|
18
|
-
return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(ChakraToaster, { toaster: toast, insetInline: { mdDown: "4" }, children: (toast2) => {
|
19
|
-
var _a;
|
20
|
-
return /* @__PURE__ */ jsxs(Toast.Root, { width: { md: "sm" }, children: [
|
21
|
-
toast2.type === "loading" ? /* @__PURE__ */ jsx(Spinner, { size: "sm", color: "colorPalette.solid" }) : /* @__PURE__ */ jsx(Toast.Indicator, {}),
|
22
|
-
/* @__PURE__ */ jsxs(Stack, { gap: "1", flex: "1", maxWidth: "100%", children: [
|
23
|
-
toast2.title && /* @__PURE__ */ jsx(Toast.Title, { children: toast2.title }),
|
24
|
-
toast2.description && /* @__PURE__ */ jsx(Toast.Description, { children: toast2.description })
|
25
|
-
] }),
|
26
|
-
toast2.action && /* @__PURE__ */ jsx(Toast.ActionTrigger, { children: toast2.action.label }),
|
27
|
-
((_a = toast2.meta) == null ? void 0 : _a.closable) && /* @__PURE__ */ jsx(Toast.CloseTrigger, {})
|
28
|
-
] });
|
29
|
-
} }) });
|
30
|
-
};
|
31
|
-
|
32
|
-
export {
|
33
|
-
toast,
|
34
|
-
Toaster
|
35
|
-
};
|
File without changes
|