@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.
Files changed (39) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/{chunk-BU7QENBQ.js → chunk-3JZ42NYM.js} +1 -1
  3. package/dist/{chunk-VJ4NCA6R.js → chunk-3Y67QIZ7.js} +1 -1
  4. package/dist/chunk-52XM5VXJ.js +9 -0
  5. package/dist/chunk-IVLUAUU5.js +10 -0
  6. package/dist/chunk-JMYI6YXR.js +1 -0
  7. package/dist/{chunk-EQ7Q6HRE.js → chunk-OIOBGO3Y.js} +1 -1
  8. package/dist/chunk-RLIAFHVM.js +66 -0
  9. package/dist/components/badge/index.d.cts +2 -0
  10. package/dist/components/badge/index.d.ts +2 -0
  11. package/dist/components/close-button/index.js +2 -1
  12. package/dist/components/data-list/index.cjs +33 -0
  13. package/dist/components/data-list/index.d.cts +1 -0
  14. package/dist/components/data-list/index.d.ts +1 -0
  15. package/dist/components/data-list/index.js +10 -0
  16. package/dist/components/dialog/index.js +3 -2
  17. package/dist/components/drawer/index.js +3 -2
  18. package/dist/components/navbar/index.d.cts +3 -3
  19. package/dist/components/navbar/index.d.ts +3 -3
  20. package/dist/components/persona/index.d.cts +3 -8
  21. package/dist/components/persona/index.d.ts +3 -8
  22. package/dist/components/select/index.js +3 -2
  23. package/dist/components/sidebar/index.d.cts +11 -11
  24. package/dist/components/sidebar/index.d.ts +11 -11
  25. package/dist/components/tabs/index.cjs +35 -0
  26. package/dist/components/tabs/index.d.cts +1 -0
  27. package/dist/components/tabs/index.d.ts +1 -0
  28. package/dist/components/tabs/index.js +12 -0
  29. package/dist/components/toaster/index.cjs +161 -11
  30. package/dist/components/toaster/index.d.cts +6 -5
  31. package/dist/components/toaster/index.d.ts +6 -5
  32. package/dist/components/toaster/index.js +3 -1
  33. package/dist/index.cjs +801 -735
  34. package/dist/index.d.cts +2 -0
  35. package/dist/index.d.ts +2 -0
  36. package/dist/index.js +764 -727
  37. package/package.json +1 -1
  38. package/dist/chunk-HELHPHIQ.js +0 -35
  39. /package/dist/{chunk-BKYGKH3L.js → chunk-YXGJOOMM.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saas-ui/react",
3
- "version": "3.0.0-alpha.23",
3
+ "version": "3.0.0-alpha.24",
4
4
  "description": "Saas UI - The React component library for startups.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -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