@kopexa/button 6.0.4 → 6.0.5
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 +3 -5
- package/dist/button.mjs +1 -1
- package/dist/{chunk-LUQR5CDX.mjs → chunk-WIVTGPLC.mjs} +3 -5
- package/dist/{chunk-TYBPWI6V.mjs → chunk-XVQ2D54Y.mjs} +1 -1
- package/dist/icon-button.js +3 -5
- package/dist/icon-button.mjs +2 -2
- package/dist/index.js +3 -5
- package/dist/index.mjs +2 -2
- package/package.json +5 -5
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: "
|
|
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"
|
|
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
|
@@ -68,7 +68,7 @@ var Button = (props) => {
|
|
|
68
68
|
);
|
|
69
69
|
const spinnerSize = useMemo(() => {
|
|
70
70
|
const buttonSpinnerSizeMap = {
|
|
71
|
-
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"
|
|
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
|
}
|
package/dist/icon-button.js
CHANGED
|
@@ -101,7 +101,7 @@ var Button = (props) => {
|
|
|
101
101
|
);
|
|
102
102
|
const spinnerSize = (0, import_react.useMemo)(() => {
|
|
103
103
|
const buttonSpinnerSizeMap = {
|
|
104
|
-
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"
|
|
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
|
}
|
package/dist/icon-button.mjs
CHANGED
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: "
|
|
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"
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/button",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
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.
|
|
31
|
+
"@kopexa/theme": "1.5.5"
|
|
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.
|
|
38
|
-
"@kopexa/tooltip": "4.0.
|
|
39
|
-
"@kopexa/ripple": "8.0.
|
|
37
|
+
"@kopexa/spinner": "4.0.5",
|
|
38
|
+
"@kopexa/tooltip": "4.0.5",
|
|
39
|
+
"@kopexa/ripple": "8.0.5"
|
|
40
40
|
},
|
|
41
41
|
"clean-package": "../../../clean-package.config.json",
|
|
42
42
|
"module": "dist/index.mjs",
|