@useblu/ocean-react 1.63.0 → 1.65.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.js CHANGED
@@ -334,7 +334,7 @@ var Accordion = function (_a) {
334
334
  return (e__default["default"].createElement("div", { className: classNames('ods-accordion', className) },
335
335
  e__default["default"].createElement("button", { onClick: onHandleAccordion, type: "button", className: classNames('ods-accordion__header', {
336
336
  'ods-accordion__header--collapsed': isCollapsed
337
- }), "aria-expanded": !isCollapsed },
337
+ }), "aria-expanded": !isCollapsed, "data-testid": "accordion-header" },
338
338
  title,
339
339
  e__default["default"].createElement(J, { className: classNames('ods-accordion__icon', {
340
340
  'ods-accordion__icon--rotated': isCollapsed
@@ -407,8 +407,12 @@ var LinkIcons = e__default["default"].memo(function (_a) {
407
407
  LinkIcons.displayName = 'LinkIcons';
408
408
 
409
409
  var Link = e.forwardRef(function (_a, ref) {
410
- var children = _a.children, className = _a.className, _b = _a.variant, variant = _b === void 0 ? 'primary' : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, icon = _a.icon, rest = __rest$2(_a, ["children", "className", "variant", "size", "icon"]);
411
- return (e__default["default"].createElement("a", __assign$2({ ref: ref, className: classNames('ods-link', "ods-link--".concat(size), "ods-link--".concat(variant), icon ? 'ods-link--with-icon' : '', className) }, rest),
410
+ var children = _a.children, className = _a.className, _b = _a.variant, variant = _b === void 0 ? 'primary' : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, icon = _a.icon, disabled = _a.disabled, rest = __rest$2(_a, ["children", "className", "variant", "size", "icon", "disabled"]);
411
+ return (e__default["default"].createElement("a", __assign$2({ "aria-disabled": disabled, ref: ref, className: classNames('ods-link', "ods-link--".concat(size), "ods-link--".concat(variant), icon ? 'ods-link--with-icon' : '', className, {
412
+ 'ods-link--disabled': disabled,
413
+ 'ods-link--chevron': icon === 'linkChevron',
414
+ 'ods-link--external': icon === 'externalLink'
415
+ }) }, rest),
412
416
  e__default["default"].createElement("span", { className: "ods-link__content" }, children),
413
417
  e__default["default"].createElement(LinkIcons, { icon: icon })));
414
418
  });
@@ -47887,19 +47891,27 @@ var Shortcut = function (_a) {
47887
47891
  size === 'medium' && description && (e__default["default"].createElement("span", { className: classNames('ods-shortcut__description', 'ods-typography', 'ods-typography__description') }, description))));
47888
47892
  };
47889
47893
 
47890
- var CardListItem = function (_a) {
47891
- var title = _a.title, description = _a.description, caption = _a.caption, leadingIcon = _a.leadingIcon, actionIcon = _a.actionIcon, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.fullWidth, fullWidth = _d === void 0 ? false : _d, onClick = _a.onClick;
47892
- return (e__default["default"].createElement("div", { "data-testid": "card-list-item", className: classNames('ods-card-list-item', "ods-card-list-item--size-".concat(size), { 'ods-card-list-item--disabled': disabled }, { 'ods-card-list-item--full-width': fullWidth }), onClick: function () {
47894
+ var CardListItem = e.forwardRef(function (_a, ref) {
47895
+ var title = _a.title, description = _a.description, caption = _a.caption, leadingIcon = _a.leadingIcon, actionIcon = _a.actionIcon, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.fullWidth, fullWidth = _d === void 0 ? false : _d, onClick = _a.onClick, loading = _a.loading, rest = __rest$2(_a, ["title", "description", "caption", "leadingIcon", "actionIcon", "size", "disabled", "fullWidth", "onClick", "loading"]);
47896
+ return loading ? (e__default["default"].createElement("div", __assign$2({ ref: ref }, rest, { "data-testid": "card-list-item", className: classNames('ods-card-list-item', "ods-card-list-item--size-".concat(size), { 'ods-card-list-item--full-width': fullWidth }, {
47897
+ 'ods-card-list-item--loading': loading
47898
+ }) }),
47899
+ e__default["default"].createElement("div", { className: "ods-card-list-item__circle" }),
47900
+ e__default["default"].createElement("div", { className: "ods-card-list-item__lines" },
47901
+ e__default["default"].createElement("div", { className: "ods-card-list-item__lines__line1" }),
47902
+ e__default["default"].createElement("div", { className: "ods-card-list-item__lines__line2" }),
47903
+ size === 'medium' && (e__default["default"].createElement("div", { className: "ods-card-list-item__lines__line3" }))))) : (e__default["default"].createElement("div", __assign$2({ ref: ref }, rest, { "data-testid": "card-list-item", className: classNames('ods-card-list-item', "ods-card-list-item--size-".concat(size), { 'ods-card-list-item--disabled': disabled }, { 'ods-card-list-item--full-width': fullWidth }), onClick: function () {
47893
47904
  if (!disabled && onClick)
47894
47905
  onClick();
47895
- } },
47906
+ } }),
47896
47907
  leadingIcon && (e__default["default"].createElement("div", { className: "ods-card-list-item__leading-icon" }, leadingIcon)),
47897
47908
  e__default["default"].createElement("div", { className: "ods-card-list-item__content" },
47898
47909
  e__default["default"].createElement("div", { className: "ods-card-list-item__content__title" }, title),
47899
47910
  description && (e__default["default"].createElement("div", { className: "ods-card-list-item__content__description" }, description)),
47900
47911
  caption && size === 'medium' && (e__default["default"].createElement("div", { className: "ods-card-list-item__content__caption" }, caption))),
47901
47912
  actionIcon && (e__default["default"].createElement("div", { className: "ods-card-list-item__action" }, actionIcon))));
47902
- };
47913
+ });
47914
+ CardListItem.displayName = 'CardListItem';
47903
47915
 
47904
47916
  var Options = function (_a) {
47905
47917
  var options = _a.options, selectedOptions = _a.selectedOptions, clearLabel = _a.clearLabel, filterLabel = _a.filterLabel, multiChoice = _a.multiChoice, onSelect = _a.onSelect, filterOptions = _a.filterOptions, clearOptions = _a.clearOptions;