@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.
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { MergeElementProps } from '../_util/type';
3
3
  type DeprecatedVariant = 'text' | 'textCritical';
4
- type Variant = 'primary' | 'primaryCritical' | 'secondary' | 'secondaryCritical' | 'tertiary' | 'tertiaryCritical' | 'textTertiary' | 'textTertiaryCritical' | 'inverse' | DeprecatedVariant;
4
+ type Variant = 'primary' | 'primaryCritical' | 'primaryWarning' | 'secondary' | 'secondaryCritical' | 'secondaryWarning' | 'tertiary' | 'tertiaryCritical' | 'tertiaryWarning' | 'textTertiary' | 'textTertiaryCritical' | 'inverse' | DeprecatedVariant;
5
5
  type ButtonVariant = Exclude<Variant, DeprecatedVariant>;
6
6
  export type ButtonProps<P extends React.ElementType = 'button'> = {
7
7
  component?: P;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGlD,KAAK,iBAAiB,GAAG,MAAM,GAAG,cAAc,CAAC;AAEjD,KAAK,OAAO,GACR,SAAS,GACT,iBAAiB,GACjB,WAAW,GACX,mBAAmB,GACnB,UAAU,GACV,kBAAkB,GAClB,cAAc,GACd,sBAAsB,GACtB,SAAS,GACT,iBAAiB,CAAC;AAEtB,KAAK,aAAa,GAAG,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;AAEzD,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,IAAI;IAKhE,SAAS,CAAC,EAAE,CAAC,CAAC;CACf,GAAG,iBAAiB,CACnB,CAAC,EACD;IAKE,OAAO,CAAC,EAAE,aAAa,CAAC;IAK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OAAO,CAAC,EAAE,OAAO,CAAC;IAKlB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CACF,CAAC;AAEF,iBAAS,UAAU,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EACxD,EACE,QAAQ,EACR,SAAS,EACT,IAAW,EACX,OAAmB,EACnB,OAAe,EACf,OAAe,EACf,SAAS,EACT,GAAG,IAAI,EACR,EAAE,WAAW,CAAC,CAAC,CAAC,EACjB,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,sEA2ClC;AAED,QAAA,MAAM,MAAM,EAA8C,OAAO,UAAU,CAAC;AAE5E,eAAe,MAAM,CAAC"}
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.128.0](https://github.com/ocean-ds/ocean-web/compare/v1.127.0...v1.128.0) (2026-02-04)
7
+
8
+ ### Features
9
+
10
+ - create new Button variants ([#1222](https://github.com/ocean-ds/ocean-web/issues/1222)) ([7db9ec6](https://github.com/ocean-ds/ocean-web/commit/7db9ec6c24ea52241ebb63c2303c62937e3c27a3))
11
+
6
12
  # [1.127.0](https://github.com/ocean-ds/ocean-web/compare/v1.126.0...v1.127.0) (2026-01-14)
7
13
 
8
14
  ### Features
package/index.es.js CHANGED
@@ -420,7 +420,7 @@ function ButtonBase(_a, ref) {
420
420
  console.warn('Ocean Design System: The "textCritical" variant is deprecated. Please use "tertiaryCritical" instead.');
421
421
  }
422
422
  }, [variant]);
423
- var onColor = ['primary', 'primaryCritical', 'inverse'].includes(variant);
423
+ var onColor = ['primary', 'primaryCritical', 'primaryWarning', 'inverse'].includes(variant);
424
424
  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,
425
425
  e.createElement(Progress, { size: size, onColor: onColor }),
426
426
  e.createElement("span", null, children))) : (children));