@useblu/ocean-react 1.127.0 → 1.128.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/Button/Button.d.ts +1 -1
- package/Button/Button.d.ts.map +1 -1
- package/CHANGELOG.md +6 -0
- package/index.es.js +1 -1
- package/index.es.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -422,7 +422,7 @@ function ButtonBase(_a, ref) {
|
|
|
422
422
|
console.warn('Ocean Design System: The "textCritical" variant is deprecated. Please use "tertiaryCritical" instead.');
|
|
423
423
|
}
|
|
424
424
|
}, [variant]);
|
|
425
|
-
var onColor = ['primary', 'primaryCritical', 'inverse'].includes(variant);
|
|
425
|
+
var onColor = ['primary', 'primaryCritical', 'primaryWarning', 'inverse'].includes(variant);
|
|
426
426
|
return e.createElement(component || 'button', __assign$1(__assign$1({ ref: ref, className: classNames('ods-btn', "ods-btn--".concat(size), "ods-btn--".concat(variant.replace(/[A-Z]/g, function (m) { return "-".concat(m.toLowerCase()); })), blocked && 'ods-btn--blocked', className, { 'ods-btn--loading': loading }) }, rest), { onClick: loading ? function () { return false; } : rest.onClick }), loading ? (e.createElement(e.Fragment, null,
|
|
427
427
|
e.createElement(Progress, { size: size, onColor: onColor }),
|
|
428
428
|
e.createElement("span", null, children))) : (children));
|