@lets-events/react 12.3.1 → 12.3.2

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @lets-events/react@12.3.1 build
2
+ > @lets-events/react@12.3.2 build
3
3
  > tsup src/index.tsx --format esm,cjs --dts --external react
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -10,10 +10,10 @@
10
10
  ESM Build start
11
11
  CJS Build start
12
12
  ESM dist\index.mjs 381.68 KB
13
- ESM ⚡️ Build success in 235ms
13
+ ESM ⚡️ Build success in 225ms
14
14
  CJS dist\index.js 395.71 KB
15
- CJS ⚡️ Build success in 236ms
15
+ CJS ⚡️ Build success in 224ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 4578ms
17
+ DTS ⚡️ Build success in 4574ms
18
18
  DTS dist\index.d.mts 398.68 KB
19
19
  DTS dist\index.d.ts 398.68 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lets-events/react
2
2
 
3
+ ## 12.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fix button loading state
8
+
3
9
  ## 12.3.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1877,7 +1877,7 @@ function Button(_a) {
1877
1877
  return "md";
1878
1878
  }
1879
1879
  }, [size]);
1880
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonStyled, __spreadProps(__spreadValues({ as: Component, disabled: disabled || loading }, props), { children: loading ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SpinningDiv, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "circle-notch", size: spinnerSize }) }) : children }));
1880
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonStyled, __spreadProps(__spreadValues({ as: Component }, props), { disabled: disabled || loading, children: loading ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SpinningDiv, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "circle-notch", size: spinnerSize }) }) : children }));
1881
1881
  }
1882
1882
 
1883
1883
  // src/components/ButtonGroup.tsx
package/dist/index.mjs CHANGED
@@ -1761,7 +1761,7 @@ function Button(_a) {
1761
1761
  return "md";
1762
1762
  }
1763
1763
  }, [size]);
1764
- return /* @__PURE__ */ jsx3(ButtonStyled, __spreadProps(__spreadValues({ as: Component, disabled: disabled || loading }, props), { children: loading ? /* @__PURE__ */ jsx3(SpinningDiv, { children: /* @__PURE__ */ jsx3(Icon_default, { name: "circle-notch", size: spinnerSize }) }) : children }));
1764
+ return /* @__PURE__ */ jsx3(ButtonStyled, __spreadProps(__spreadValues({ as: Component }, props), { disabled: disabled || loading, children: loading ? /* @__PURE__ */ jsx3(SpinningDiv, { children: /* @__PURE__ */ jsx3(Icon_default, { name: "circle-notch", size: spinnerSize }) }) : children }));
1765
1765
  }
1766
1766
 
1767
1767
  // src/components/ButtonGroup.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "12.3.1",
3
+ "version": "12.3.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -32,7 +32,7 @@ export function Button({ asChild, children, loading, ...props }: ButtonProps) {
32
32
  }, [size]);
33
33
 
34
34
  return (
35
- <ButtonStyled as={Component} disabled={disabled || loading} {...props}>
35
+ <ButtonStyled as={Component} {...props} disabled={disabled || loading}>
36
36
  {loading ? (
37
37
  <SpinningDiv>
38
38
  <Icon name="circle-notch" size={spinnerSize} />