@nattui/react-components 0.0.16 → 0.0.18

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.d.mts CHANGED
@@ -19,7 +19,7 @@ interface ButtonIconProps extends ButtonPropsInternal {
19
19
  iconStart?: never;
20
20
  }
21
21
  interface ButtonProps extends ButtonPropsInternal {
22
- children?: string;
22
+ children?: string | string[];
23
23
  iconOnly?: false;
24
24
  }
25
25
  type ButtonUnionProps = ButtonIconProps | ButtonProps;
package/dist/index.mjs CHANGED
@@ -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.16",
3
+ "version": "0.0.18",
4
4
  "description": "A collection of reusable React components built with TypeScript and CSS Modules",
5
5
  "keywords": [
6
6
  "components",