@nattui/react-components 0.0.17 → 0.0.19
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.
|
@@ -49,7 +49,7 @@ function ButtonSpinner(props) {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
// src/button.tsx
|
|
52
|
-
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
52
|
+
import { Fragment as Fragment2, jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
53
53
|
function Button(props) {
|
|
54
54
|
const {
|
|
55
55
|
children = "",
|
|
@@ -88,7 +88,7 @@ function Button(props) {
|
|
|
88
88
|
/* @__PURE__ */ jsx3(ButtonBackground, { isRounded, variant }),
|
|
89
89
|
isLoading && /* @__PURE__ */ jsx3(ButtonSpinner, {}),
|
|
90
90
|
!isLoading && iconStart,
|
|
91
|
-
iconOnly ? children : /* @__PURE__ */ jsx3("span", { children }),
|
|
91
|
+
iconOnly ? isLoading ? /* @__PURE__ */ jsx3(Fragment2, {}) : children : /* @__PURE__ */ jsx3("span", { children }),
|
|
92
92
|
!isLoading && iconEnd
|
|
93
93
|
]
|
|
94
94
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nattui/react-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "A collection of reusable React components built with TypeScript and CSS Modules",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"url": "git+https://github.com/nattui/react-components.git"
|
|
17
17
|
},
|
|
18
18
|
"author": "Natt Nguyen <hello@natt.sh> (https://natt.sh)",
|
|
19
|
+
"type": "module",
|
|
19
20
|
"exports": {
|
|
20
21
|
".": {
|
|
21
22
|
"types": "./dist/index.d.mts",
|
|
File without changes
|