axokit-react 0.0.6 → 0.0.7
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.js +6 -2
- package/dist/index.mjs +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -138,7 +138,7 @@ function AsyncButton({
|
|
|
138
138
|
const label = getLabel();
|
|
139
139
|
if (state === "loading" && showSpinner) {
|
|
140
140
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: { display: "flex", gap: "0.5em", alignItems: "center" }, children: [
|
|
141
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
141
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
142
142
|
"svg",
|
|
143
143
|
{
|
|
144
144
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -151,7 +151,11 @@ function AsyncButton({
|
|
|
151
151
|
"stroke-linecap": "round",
|
|
152
152
|
"stroke-linejoin": "round",
|
|
153
153
|
className: "lucide lucide-loader-circle-icon lucide-loader-circle",
|
|
154
|
-
|
|
154
|
+
style: { animation: "spin 1s linear infinite" },
|
|
155
|
+
children: [
|
|
156
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", { children: `@keyframes spin { to { transform: rotate(360deg); } }` }),
|
|
157
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
|
158
|
+
]
|
|
155
159
|
}
|
|
156
160
|
),
|
|
157
161
|
label
|
package/dist/index.mjs
CHANGED
|
@@ -101,7 +101,7 @@ function AsyncButton({
|
|
|
101
101
|
const label = getLabel();
|
|
102
102
|
if (state === "loading" && showSpinner) {
|
|
103
103
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: "0.5em", alignItems: "center" }, children: [
|
|
104
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ jsxs(
|
|
105
105
|
"svg",
|
|
106
106
|
{
|
|
107
107
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -114,7 +114,11 @@ function AsyncButton({
|
|
|
114
114
|
"stroke-linecap": "round",
|
|
115
115
|
"stroke-linejoin": "round",
|
|
116
116
|
className: "lucide lucide-loader-circle-icon lucide-loader-circle",
|
|
117
|
-
|
|
117
|
+
style: { animation: "spin 1s linear infinite" },
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ jsx("style", { children: `@keyframes spin { to { transform: rotate(360deg); } }` }),
|
|
120
|
+
/* @__PURE__ */ jsx("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
|
121
|
+
]
|
|
118
122
|
}
|
|
119
123
|
),
|
|
120
124
|
label
|