@saas-ui/react 3.0.0-alpha.21 → 3.0.0-alpha.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{chunk-72LEGXHY.js → chunk-EQ7Q6HRE.js} +5 -13
  3. package/dist/{chunk-4VH4IGVF.js → chunk-GWC5GCMW.js} +10 -18
  4. package/dist/chunk-IEWHAXXU.js +28 -0
  5. package/dist/chunk-INV6RT5B.js +8 -0
  6. package/dist/{chunk-C7B3ELC4.js → chunk-KFXNVUEZ.js} +3 -3
  7. package/dist/chunk-MS2ELLDY.js +26 -0
  8. package/dist/chunk-NGSHWY7E.js +27 -0
  9. package/dist/{chunk-MZ75UMS3.js → chunk-NSD5HRIP.js} +1 -5
  10. package/dist/{chunk-WS5XGFSL.js → chunk-VJ4NCA6R.js} +6 -13
  11. package/dist/chunk-YHQ5JGCC.js +1 -0
  12. package/dist/chunk-YKSY7UOM.js +20 -0
  13. package/dist/components/avatar/index.js +2 -1
  14. package/dist/components/badge/index.cjs +31 -0
  15. package/dist/components/badge/index.d.cts +1 -0
  16. package/dist/components/badge/index.d.ts +1 -0
  17. package/dist/components/badge/index.js +8 -0
  18. package/dist/components/button/index.cjs +8 -26
  19. package/dist/components/button/index.js +1 -1
  20. package/dist/components/dialog/index.cjs +5 -13
  21. package/dist/components/dialog/index.d.cts +2 -1
  22. package/dist/components/dialog/index.d.ts +2 -1
  23. package/dist/components/dialog/index.js +1 -1
  24. package/dist/components/drawer/index.cjs +6 -13
  25. package/dist/components/drawer/index.d.cts +2 -1
  26. package/dist/components/drawer/index.d.ts +2 -1
  27. package/dist/components/drawer/index.js +1 -1
  28. package/dist/components/grid-list/index.cjs +1 -5
  29. package/dist/components/grid-list/index.d.cts +1 -1
  30. package/dist/components/grid-list/index.d.ts +1 -1
  31. package/dist/components/grid-list/index.js +1 -1
  32. package/dist/components/icon-button/index.cjs +38 -2
  33. package/dist/components/icon-button/index.d.cts +9 -1
  34. package/dist/components/icon-button/index.d.ts +9 -1
  35. package/dist/components/icon-button/index.js +2 -1
  36. package/dist/components/menu/index.cjs +8 -26
  37. package/dist/components/menu/index.js +2 -2
  38. package/dist/components/persona/index.cjs +61 -34
  39. package/dist/components/persona/index.d.cts +4 -3
  40. package/dist/components/persona/index.d.ts +4 -3
  41. package/dist/components/persona/index.js +2 -1
  42. package/dist/components/status/index.cjs +45 -0
  43. package/dist/components/status/index.d.cts +17 -0
  44. package/dist/components/status/index.d.ts +17 -0
  45. package/dist/components/status/index.js +8 -0
  46. package/dist/components/tag/index.cjs +53 -0
  47. package/dist/components/tag/index.d.cts +12 -0
  48. package/dist/components/tag/index.d.ts +12 -0
  49. package/dist/components/tag/index.js +8 -0
  50. package/dist/index.cjs +2636 -2568
  51. package/dist/index.d.cts +4 -1
  52. package/dist/index.d.ts +4 -1
  53. package/dist/index.js +2187 -2121
  54. package/package.json +1 -1
  55. package/dist/chunk-BCNPBZZK.js +0 -45
  56. package/dist/chunk-QVFJV6HJ.js +0 -8
  57. /package/dist/{chunk-UCQ3LZIE.js → chunk-JO4WJVYO.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.21",
3
+ "version": "3.0.0-alpha.23",
4
4
  "description": "Saas UI - The React component library for startups.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,45 +0,0 @@
1
- 'use client'
2
-
3
- // src/components/button/button.tsx
4
- import { forwardRef } from "react";
5
- import {
6
- AbsoluteCenter,
7
- Button as ButtonPrimitive,
8
- Span,
9
- Spinner
10
- } from "@chakra-ui/react";
11
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
- var Button = forwardRef(
13
- function Button2(props, ref) {
14
- const {
15
- loading,
16
- disabled,
17
- loadingText,
18
- children,
19
- variant = "glass",
20
- colorPalette = variant === "glass" ? "accent" : "gray",
21
- ...rest
22
- } = props;
23
- return /* @__PURE__ */ jsx(
24
- ButtonPrimitive,
25
- {
26
- colorPalette,
27
- disabled: loading || disabled,
28
- variant,
29
- ref,
30
- ...rest,
31
- children: loading && !loadingText ? /* @__PURE__ */ jsxs(Fragment, { children: [
32
- /* @__PURE__ */ jsx(AbsoluteCenter, { display: "inline-flex", children: /* @__PURE__ */ jsx(Spinner, { size: "inherit", color: "inherit" }) }),
33
- /* @__PURE__ */ jsx(Span, { opacity: 0, children })
34
- ] }) : loading && loadingText ? /* @__PURE__ */ jsxs(Fragment, { children: [
35
- /* @__PURE__ */ jsx(Spinner, { size: "inherit", color: "inherit" }),
36
- loadingText
37
- ] }) : children
38
- }
39
- );
40
- }
41
- );
42
-
43
- export {
44
- Button
45
- };
@@ -1,8 +0,0 @@
1
- 'use client'
2
-
3
- // src/components/icon-button/index.ts
4
- import { IconButton } from "@chakra-ui/react";
5
-
6
- export {
7
- IconButton
8
- };
File without changes