@snack-uikit/button
Advanced tools
Comparing version 0.15.0 to 0.15.1
@@ -6,2 +6,13 @@ # Change Log | ||
## 0.15.1 (2023-12-28) | ||
### Bug Fixes | ||
* **FF-3960:** single color for focused state ([c791470](https://github.com/cloud-ru-tech/snack-uikit/commit/c79147027e3218c358a896ece913876f7922dcf1)) | ||
# 0.15.0 (2023-12-14) | ||
@@ -8,0 +19,0 @@ |
@@ -48,5 +48,5 @@ var __rest = (this && this.__rest) || function (s, e) { | ||
if (href) { | ||
return (_jsx("a", Object.assign({ role: 'button', href: href, target: target }, buttonProps, { ref: ref }, { children: children }))); | ||
return (_jsx("a", Object.assign({ role: 'button', href: href, target: target }, buttonProps, { ref: ref, children: children }))); | ||
} | ||
return (_jsx("button", Object.assign({}, buttonProps, { type: type, ref: ref }, { children: children }))); | ||
return (_jsx("button", Object.assign({}, buttonProps, { type: type, ref: ref, children: children }))); | ||
}); |
@@ -21,10 +21,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; | ||
export function getWrappedCounter({ counter, loading, disabled, counterForIcon }) { | ||
return typeof (counter === null || counter === void 0 ? void 0 : counter.value) === 'number' && !loading && !disabled ? (_jsx("span", Object.assign({ "data-test-id": 'counter', className: cn(counterForIcon ? styles.counterForIcon : styles.counterForLabel) }, { children: _jsx(Counter, Object.assign({}, counter)) }))) : undefined; | ||
return typeof (counter === null || counter === void 0 ? void 0 : counter.value) === 'number' && !loading && !disabled ? (_jsx("span", { "data-test-id": 'counter', className: cn(counterForIcon ? styles.counterForIcon : styles.counterForLabel), children: _jsx(Counter, Object.assign({}, counter)) })) : undefined; | ||
} | ||
export function getWrappedIcon({ icon, iconClassName, loading, wrappedCounter }) { | ||
if (loading) { | ||
return (_jsx("span", Object.assign({ "data-test-id": 'loading-icon', className: iconClassName }, { children: _jsx(Sun, { size: 's' }) }))); | ||
return (_jsx("span", { "data-test-id": 'loading-icon', className: iconClassName, children: _jsx(Sun, { size: 's' }) })); | ||
} | ||
if (icon) { | ||
return (_jsxs("span", Object.assign({ "data-test-id": 'icon', className: cn(iconClassName, { [styles.iconWithCounter]: Boolean(wrappedCounter) }) }, { children: [icon, wrappedCounter] }))); | ||
return (_jsxs("span", { "data-test-id": 'icon', className: cn(iconClassName, { [styles.iconWithCounter]: Boolean(wrappedCounter) }), children: [icon, wrappedCounter] })); | ||
} | ||
@@ -34,3 +34,3 @@ return undefined; | ||
export function getWrappedLabel({ label, labelClassName, wrappedCounter }) { | ||
return label ? (_jsxs("span", Object.assign({ "data-test-id": 'label', className: labelClassName }, { children: [label, wrappedCounter] }))) : undefined; | ||
return label ? (_jsxs("span", { "data-test-id": 'label', className: labelClassName, children: [label, wrappedCounter] })) : undefined; | ||
} | ||
@@ -37,0 +37,0 @@ export function getChildren({ icon, label, iconPosition, iconClassName, labelClassName, loading, disabled, counter, }) { |
@@ -7,3 +7,3 @@ { | ||
"title": "Button", | ||
"version": "0.15.0", | ||
"version": "0.15.1", | ||
"sideEffects": [ | ||
@@ -36,3 +36,3 @@ "*.css", | ||
"dependencies": { | ||
"@snack-uikit/counter": "0.5.0", | ||
"@snack-uikit/counter": "0.6.0", | ||
"@snack-uikit/loaders": "0.5.0", | ||
@@ -42,3 +42,3 @@ "@snack-uikit/utils": "3.2.0", | ||
}, | ||
"gitHead": "bd39c5e674f3b91b0e2487782a04b15034cf3d8b" | ||
"gitHead": "57c597a3eebaf6528c0c61b6b27dd244753de1cf" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
163279
+ Added@snack-uikit/counter@0.6.0(transitive)
- Removed@snack-uikit/counter@0.5.0(transitive)
Updated@snack-uikit/counter@0.6.0