@useblu/ocean-react 1.68.0 → 1.69.1

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
@@ -6644,11 +6644,13 @@ var TokenInput = e.memo(function (_a) {
6644
6644
  TokenInput.displayName = 'TokenInput';
6645
6645
 
6646
6646
  var Checkbox = e__default["default"].forwardRef(function (_a, ref) {
6647
- var error = _a.error, className = _a.className, label = _a.label, id = _a.id, indeterminate = _a.indeterminate, rest = __rest$2(_a, ["error", "className", "label", "id", "indeterminate"]);
6648
- return (e__default["default"].createElement("label", { className: "ods-checkbox__root", htmlFor: id },
6649
- e__default["default"].createElement("input", __assign$2({ ref: ref, id: id, className: classNames('ods-checkbox', className) }, rest, { type: "checkbox", "data-indeterminate": indeterminate })),
6650
- e__default["default"].createElement("span", { className: classNames('ods-checkbox__checkmark', indeterminate && 'ods-checkbox__checkmark--indeterminate', error && 'ods-checkbox__checkmark--error') }),
6651
- label && (e__default["default"].createElement("span", { className: "ods-typography ods-typography__description ods-checkbox__label" }, label))));
6647
+ var error = _a.error, errorMessage = _a.errorMessage, className = _a.className, label = _a.label, id = _a.id, indeterminate = _a.indeterminate, rest = __rest$2(_a, ["error", "errorMessage", "className", "label", "id", "indeterminate"]);
6648
+ return (e__default["default"].createElement("div", { className: "ods-checkbox__root-container" },
6649
+ e__default["default"].createElement("label", { className: "ods-checkbox__root", htmlFor: id },
6650
+ e__default["default"].createElement("input", __assign$2({ ref: ref, id: id, className: classNames('ods-checkbox', className) }, rest, { type: "checkbox", "data-indeterminate": indeterminate })),
6651
+ e__default["default"].createElement("span", { className: classNames('ods-checkbox__checkmark', indeterminate && 'ods-checkbox__checkmark--indeterminate', error && 'ods-checkbox__checkmark--error') }),
6652
+ label && (e__default["default"].createElement("span", { className: "ods-typography ods-typography__description ods-checkbox__label" }, label))),
6653
+ error && errorMessage && (e__default["default"].createElement("span", { className: "ods-checkbox__root-container__error-message" }, errorMessage))));
6652
6654
  });
6653
6655
  Checkbox.displayName = 'Checkbox';
6654
6656
 
@@ -48117,7 +48119,7 @@ var Shortcut = function (_a) {
48117
48119
  };
48118
48120
 
48119
48121
  var CardListItem = e.forwardRef(function (_a, ref) {
48120
- 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"]);
48122
+ 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, tag = _a.tag, rest = __rest$2(_a, ["title", "description", "caption", "leadingIcon", "actionIcon", "size", "disabled", "fullWidth", "onClick", "loading", "tag"]);
48121
48123
  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 }, {
48122
48124
  'ods-card-list-item--loading': loading
48123
48125
  }) }),
@@ -48134,7 +48136,9 @@ var CardListItem = e.forwardRef(function (_a, ref) {
48134
48136
  e__default["default"].createElement("div", { className: "ods-card-list-item__content__title" }, title),
48135
48137
  description && (e__default["default"].createElement("div", { className: "ods-card-list-item__content__description" }, description)),
48136
48138
  caption && size === 'medium' && (e__default["default"].createElement("div", { className: "ods-card-list-item__content__caption" }, caption))),
48137
- actionIcon && (e__default["default"].createElement("div", { className: "ods-card-list-item__action" }, actionIcon))));
48139
+ e__default["default"].createElement("div", { className: "ods-card-list-item__wrapper" },
48140
+ tag && (e__default["default"].createElement(Tag, { variant: "highlight", type: "important" }, tag)),
48141
+ actionIcon && (e__default["default"].createElement("div", { className: "ods-card-list-item__action" }, actionIcon)))));
48138
48142
  });
48139
48143
  CardListItem.displayName = 'CardListItem';
48140
48144