@bolttech/atoms-button 0.17.0 → 0.18.0
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/index.cjs +8 -7
- package/package.json +2 -2
package/index.cjs
CHANGED
|
@@ -1277,21 +1277,22 @@ const Button = /*#__PURE__*/react.forwardRef((_a, ref) => {
|
|
|
1277
1277
|
children: [iconLeft && jsxRuntime.jsx("div", {
|
|
1278
1278
|
className: "left-img-btn",
|
|
1279
1279
|
"data-testid": `left-img-btn-${iconLeft}`,
|
|
1280
|
-
children: jsxRuntime.jsx(atomsIcon.Icon, {
|
|
1280
|
+
children: jsxRuntime.jsx(atomsIcon.Icon, Object.assign({
|
|
1281
1281
|
dataTestId: `buttonIcon-${iconLeft}`,
|
|
1282
1282
|
icon: iconLeft
|
|
1283
|
-
})
|
|
1284
|
-
}), title && jsxRuntime.jsx(ButtonTitle, {
|
|
1283
|
+
}, uiUtils.applyDataAttributes(props, 'icon-left')))
|
|
1284
|
+
}), title && jsxRuntime.jsx(ButtonTitle, Object.assign({
|
|
1285
1285
|
size: size,
|
|
1286
|
-
sizeVariant: SizeVariant[variant]
|
|
1286
|
+
sizeVariant: SizeVariant[variant]
|
|
1287
|
+
}, uiUtils.applyDataAttributes(props, 'label'), {
|
|
1287
1288
|
children: title
|
|
1288
|
-
}), iconRight && jsxRuntime.jsx("div", {
|
|
1289
|
+
})), iconRight && jsxRuntime.jsx("div", {
|
|
1289
1290
|
className: "right-img-btn",
|
|
1290
1291
|
"data-testid": `left-img-btn-${iconRight}`,
|
|
1291
|
-
children: jsxRuntime.jsx(atomsIcon.Icon, {
|
|
1292
|
+
children: jsxRuntime.jsx(atomsIcon.Icon, Object.assign({
|
|
1292
1293
|
dataTestId: `buttonIcon-${iconRight}`,
|
|
1293
1294
|
icon: iconRight
|
|
1294
|
-
})
|
|
1295
|
+
}, uiUtils.applyDataAttributes(props, 'icon-right')))
|
|
1295
1296
|
})]
|
|
1296
1297
|
})
|
|
1297
1298
|
}));
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolttech/atoms-button",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@bolttech/atoms-icon": "^0.1.14",
|
|
6
6
|
"@bolttech/ui-utils": "0.1.1",
|
|
7
|
-
"@edirect/frontend-foundations": "0.0.
|
|
7
|
+
"@edirect/frontend-foundations": "0.0.70",
|
|
8
8
|
"react": "18.2.0",
|
|
9
9
|
"styled-components": "5.3.6"
|
|
10
10
|
},
|