@akinon/ui-button 1.4.7 → 1.4.9
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/cjs/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +5 -5
package/dist/cjs/index.js
CHANGED
|
@@ -183,7 +183,7 @@ const Button = (_a) => {
|
|
|
183
183
|
// END: Icon
|
|
184
184
|
};
|
|
185
185
|
});
|
|
186
|
-
const renderButton = () => (react_1.default.createElement(antd_1.Button, Object.assign({}, buttonProps, { icon: buttonProps.icon ? (react_1.default.createElement(icons_1.Icon, { icon: buttonProps.icon, size: iconSize !== null && iconSize !== void 0 ? iconSize : 12, style: {
|
|
186
|
+
const renderButton = () => (react_1.default.createElement(antd_1.Button, Object.assign({}, buttonProps, { icon: buttonProps.icon ? (react_1.default.createElement(icons_1.Icon, { icon: buttonProps.icon, size: iconSize !== null && iconSize !== void 0 ? iconSize : 12, style: { display: 'block' } })) : undefined }), buttonProps.children));
|
|
187
187
|
// If tooltip prop is provided, wrap the button with Tooltip
|
|
188
188
|
if (buttonProps.tooltip) {
|
|
189
189
|
const tooltipProps = typeof buttonProps.tooltip === 'string'
|
package/dist/esm/index.js
CHANGED
|
@@ -180,7 +180,7 @@ export const Button = (_a) => {
|
|
|
180
180
|
// END: Icon
|
|
181
181
|
};
|
|
182
182
|
});
|
|
183
|
-
const renderButton = () => (React.createElement(AntButton, Object.assign({}, buttonProps, { icon: buttonProps.icon ? (React.createElement(Icon, { icon: buttonProps.icon, size: iconSize !== null && iconSize !== void 0 ? iconSize : 12, style: {
|
|
183
|
+
const renderButton = () => (React.createElement(AntButton, Object.assign({}, buttonProps, { icon: buttonProps.icon ? (React.createElement(Icon, { icon: buttonProps.icon, size: iconSize !== null && iconSize !== void 0 ? iconSize : 12, style: { display: 'block' } })) : undefined }), buttonProps.children));
|
|
184
184
|
// If tooltip prop is provided, wrap the button with Tooltip
|
|
185
185
|
if (buttonProps.tooltip) {
|
|
186
186
|
const tooltipProps = typeof buttonProps.tooltip === 'string'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/ui-button",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A basic button react component.",
|
|
6
6
|
"type": "module",
|
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@ant-design/cssinjs": "^1.24.0",
|
|
14
14
|
"antd": "^5.27.0",
|
|
15
|
-
"@akinon/icons": "1.2.
|
|
16
|
-
"@akinon/ui-
|
|
17
|
-
"@akinon/ui-
|
|
15
|
+
"@akinon/icons": "1.2.8",
|
|
16
|
+
"@akinon/ui-theme": "1.2.8",
|
|
17
|
+
"@akinon/ui-tooltip": "1.4.8"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"clean-package": "2.2.0",
|
|
21
21
|
"copyfiles": "^2.4.1",
|
|
22
22
|
"rimraf": "^5.0.5",
|
|
23
23
|
"typescript": "*",
|
|
24
|
-
"@akinon/typescript-config": "1.1.
|
|
24
|
+
"@akinon/typescript-config": "1.1.8"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^18 || ^19",
|