@kopexa/button 6.0.4 → 6.0.6

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/button.js CHANGED
@@ -97,7 +97,7 @@ var Button = (props) => {
97
97
  );
98
98
  const spinnerSize = (0, import_react.useMemo)(() => {
99
99
  const buttonSpinnerSizeMap = {
100
- sm: "sm",
100
+ sm: "xs",
101
101
  md: "sm",
102
102
  lg: "md"
103
103
  };
@@ -117,11 +117,9 @@ var Button = (props) => {
117
117
  tabIndex: isDisabled ? -1 : void 0,
118
118
  ...rest,
119
119
  children: [
120
- startContent,
121
- isLoading && spinnerPlacement === "start" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_spinner.Spinner, { color: "current", size: spinnerSize }),
120
+ isLoading && spinnerPlacement === "start" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_spinner.Spinner, { color: "current", size: spinnerSize }) : startContent,
122
121
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slot.Slottable, { children }),
123
- isLoading && spinnerPlacement === "end" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_spinner.Spinner, { color: "current", size: spinnerSize }),
124
- endContent,
122
+ isLoading && spinnerPlacement === "end" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_spinner.Spinner, { color: "current", size: spinnerSize }) : endContent,
125
123
  !disableRipple && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ripple.Ripple, { ...getRippleProps() })
126
124
  ]
127
125
  }
package/dist/button.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Button
4
- } from "./chunk-LUQR5CDX.mjs";
4
+ } from "./chunk-WIVTGPLC.mjs";
5
5
  export {
6
6
  Button
7
7
  };
@@ -68,7 +68,7 @@ var Button = (props) => {
68
68
  );
69
69
  const spinnerSize = useMemo(() => {
70
70
  const buttonSpinnerSizeMap = {
71
- sm: "sm",
71
+ sm: "xs",
72
72
  md: "sm",
73
73
  lg: "md"
74
74
  };
@@ -88,11 +88,9 @@ var Button = (props) => {
88
88
  tabIndex: isDisabled ? -1 : void 0,
89
89
  ...rest,
90
90
  children: [
91
- startContent,
92
- isLoading && spinnerPlacement === "start" && /* @__PURE__ */ jsx(Spinner, { color: "current", size: spinnerSize }),
91
+ isLoading && spinnerPlacement === "start" ? /* @__PURE__ */ jsx(Spinner, { color: "current", size: spinnerSize }) : startContent,
93
92
  /* @__PURE__ */ jsx(Slot.Slottable, { children }),
94
- isLoading && spinnerPlacement === "end" && /* @__PURE__ */ jsx(Spinner, { color: "current", size: spinnerSize }),
95
- endContent,
93
+ isLoading && spinnerPlacement === "end" ? /* @__PURE__ */ jsx(Spinner, { color: "current", size: spinnerSize }) : endContent,
96
94
  !disableRipple && /* @__PURE__ */ jsx(Ripple, { ...getRippleProps() })
97
95
  ]
98
96
  }
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Button
4
- } from "./chunk-LUQR5CDX.mjs";
4
+ } from "./chunk-WIVTGPLC.mjs";
5
5
 
6
6
  // src/icon-button.tsx
7
7
  import { Tooltip } from "@kopexa/tooltip";
@@ -101,7 +101,7 @@ var Button = (props) => {
101
101
  );
102
102
  const spinnerSize = (0, import_react.useMemo)(() => {
103
103
  const buttonSpinnerSizeMap = {
104
- sm: "sm",
104
+ sm: "xs",
105
105
  md: "sm",
106
106
  lg: "md"
107
107
  };
@@ -121,11 +121,9 @@ var Button = (props) => {
121
121
  tabIndex: isDisabled ? -1 : void 0,
122
122
  ...rest,
123
123
  children: [
124
- startContent,
125
- isLoading && spinnerPlacement === "start" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_spinner.Spinner, { color: "current", size: spinnerSize }),
124
+ isLoading && spinnerPlacement === "start" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_spinner.Spinner, { color: "current", size: spinnerSize }) : startContent,
126
125
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slot.Slottable, { children }),
127
- isLoading && spinnerPlacement === "end" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_spinner.Spinner, { color: "current", size: spinnerSize }),
128
- endContent,
126
+ isLoading && spinnerPlacement === "end" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_spinner.Spinner, { color: "current", size: spinnerSize }) : endContent,
129
127
  !disableRipple && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ripple.Ripple, { ...getRippleProps() })
130
128
  ]
131
129
  }
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  IconButton
4
- } from "./chunk-TYBPWI6V.mjs";
5
- import "./chunk-LUQR5CDX.mjs";
4
+ } from "./chunk-XVQ2D54Y.mjs";
5
+ import "./chunk-WIVTGPLC.mjs";
6
6
  export {
7
7
  IconButton
8
8
  };
package/dist/index.js CHANGED
@@ -100,7 +100,7 @@ var Button = (props) => {
100
100
  );
101
101
  const spinnerSize = (0, import_react.useMemo)(() => {
102
102
  const buttonSpinnerSizeMap = {
103
- sm: "sm",
103
+ sm: "xs",
104
104
  md: "sm",
105
105
  lg: "md"
106
106
  };
@@ -120,11 +120,9 @@ var Button = (props) => {
120
120
  tabIndex: isDisabled ? -1 : void 0,
121
121
  ...rest,
122
122
  children: [
123
- startContent,
124
- isLoading && spinnerPlacement === "start" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_spinner.Spinner, { color: "current", size: spinnerSize }),
123
+ isLoading && spinnerPlacement === "start" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_spinner.Spinner, { color: "current", size: spinnerSize }) : startContent,
125
124
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slot.Slottable, { children }),
126
- isLoading && spinnerPlacement === "end" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_spinner.Spinner, { color: "current", size: spinnerSize }),
127
- endContent,
125
+ isLoading && spinnerPlacement === "end" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_spinner.Spinner, { color: "current", size: spinnerSize }) : endContent,
128
126
  !disableRipple && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ripple.Ripple, { ...getRippleProps() })
129
127
  ]
130
128
  }
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  IconButton
4
- } from "./chunk-TYBPWI6V.mjs";
4
+ } from "./chunk-XVQ2D54Y.mjs";
5
5
  import {
6
6
  Button
7
- } from "./chunk-LUQR5CDX.mjs";
7
+ } from "./chunk-WIVTGPLC.mjs";
8
8
  export {
9
9
  Button,
10
10
  IconButton
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kopexa/button",
3
- "version": "6.0.4",
3
+ "version": "6.0.6",
4
4
  "description": "Buttons allow users to perform actions and choose with a single tap.",
5
5
  "keywords": [
6
6
  "button"
@@ -28,15 +28,15 @@
28
28
  "motion": ">=12.23.6",
29
29
  "react": ">=19.0.0-rc.0",
30
30
  "react-dom": ">=19.0.0-rc.0",
31
- "@kopexa/theme": "1.5.4"
31
+ "@kopexa/theme": "1.5.6"
32
32
  },
33
33
  "dependencies": {
34
34
  "@radix-ui/react-slot": "^1.2.3",
35
35
  "@kopexa/shared-utils": "1.1.5",
36
36
  "@kopexa/react-utils": "2.0.5",
37
- "@kopexa/spinner": "4.0.4",
38
- "@kopexa/tooltip": "4.0.4",
39
- "@kopexa/ripple": "8.0.4"
37
+ "@kopexa/spinner": "4.0.6",
38
+ "@kopexa/tooltip": "4.0.6",
39
+ "@kopexa/ripple": "8.0.6"
40
40
  },
41
41
  "clean-package": "../../../clean-package.config.json",
42
42
  "module": "dist/index.mjs",