@saas-ui/react 3.0.0-alpha.21 → 3.0.0-alpha.22
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/dist/{chunk-72LEGXHY.js → chunk-EQ7Q6HRE.js} +5 -13
- package/dist/{chunk-4VH4IGVF.js → chunk-GWC5GCMW.js} +10 -18
- package/dist/chunk-IEWHAXXU.js +28 -0
- package/dist/chunk-INV6RT5B.js +8 -0
- package/dist/{chunk-C7B3ELC4.js → chunk-KFXNVUEZ.js} +3 -3
- package/dist/chunk-MS2ELLDY.js +26 -0
- package/dist/chunk-NGSHWY7E.js +27 -0
- package/dist/{chunk-MZ75UMS3.js → chunk-NSD5HRIP.js} +1 -5
- package/dist/chunk-Q6IC3BTH.js +20 -0
- package/dist/{chunk-WS5XGFSL.js → chunk-VJ4NCA6R.js} +6 -13
- package/dist/chunk-YHQ5JGCC.js +1 -0
- package/dist/components/avatar/index.js +2 -1
- package/dist/components/badge/index.cjs +31 -0
- package/dist/components/badge/index.d.cts +1 -0
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/badge/index.js +8 -0
- package/dist/components/button/index.cjs +8 -26
- package/dist/components/button/index.js +1 -1
- package/dist/components/dialog/index.cjs +5 -13
- package/dist/components/dialog/index.d.cts +2 -1
- package/dist/components/dialog/index.d.ts +2 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/drawer/index.cjs +6 -13
- package/dist/components/drawer/index.d.cts +2 -1
- package/dist/components/drawer/index.d.ts +2 -1
- package/dist/components/drawer/index.js +1 -1
- package/dist/components/grid-list/index.cjs +1 -5
- package/dist/components/grid-list/index.d.cts +1 -1
- package/dist/components/grid-list/index.d.ts +1 -1
- package/dist/components/grid-list/index.js +1 -1
- package/dist/components/icon-button/index.cjs +38 -2
- package/dist/components/icon-button/index.d.cts +9 -1
- package/dist/components/icon-button/index.d.ts +9 -1
- package/dist/components/icon-button/index.js +2 -1
- package/dist/components/menu/index.cjs +8 -26
- package/dist/components/menu/index.js +2 -2
- package/dist/components/persona/index.cjs +61 -34
- package/dist/components/persona/index.d.cts +4 -3
- package/dist/components/persona/index.d.ts +4 -3
- package/dist/components/persona/index.js +2 -1
- package/dist/components/status/index.cjs +45 -0
- package/dist/components/status/index.d.cts +17 -0
- package/dist/components/status/index.d.ts +17 -0
- package/dist/components/status/index.js +8 -0
- package/dist/components/tag/index.cjs +53 -0
- package/dist/components/tag/index.d.cts +12 -0
- package/dist/components/tag/index.d.ts +12 -0
- package/dist/components/tag/index.js +8 -0
- package/dist/index.cjs +2622 -2575
- package/dist/index.d.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +2171 -2126
- package/package.json +1 -1
- package/dist/chunk-BCNPBZZK.js +0 -45
- package/dist/chunk-QVFJV6HJ.js +0 -8
- /package/dist/{chunk-UCQ3LZIE.js → chunk-JO4WJVYO.js} +0 -0
package/package.json
CHANGED
package/dist/chunk-BCNPBZZK.js
DELETED
@@ -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
|
-
};
|
package/dist/chunk-QVFJV6HJ.js
DELETED
File without changes
|