@useblu/ocean-react 1.69.0 → 1.70.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/CHANGELOG.md +12 -0
- package/Checkbox/Checkbox.d.ts +2 -0
- package/Checkbox/Checkbox.d.ts.map +1 -1
- package/Shortcut/Shortcut.d.ts.map +1 -1
- package/index.es.js +8 -6
- package/index.es.js.map +1 -1
- package/index.js +8 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
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("
|
|
6649
|
-
e__default["default"].createElement("
|
|
6650
|
-
|
|
6651
|
-
|
|
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
|
|
|
@@ -48106,7 +48108,7 @@ Snackbar.displayName = 'Snackbar';
|
|
|
48106
48108
|
|
|
48107
48109
|
var Shortcut = function (_a) {
|
|
48108
48110
|
var icon = _a.icon, label = _a.label, description = _a.description, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.blocked, blocked = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.fullWidth, fullWidth = _e === void 0 ? false : _e, _f = _a.orientation, orientation = _f === void 0 ? 'horizontal' : _f, count = _a.count, rest = __rest$2(_a, ["icon", "label", "description", "size", "blocked", "disabled", "fullWidth", "orientation", "count"]);
|
|
48109
|
-
return (e__default["default"].createElement("div", __assign$2({ className: classNames('ods-shortcut', "ods-shortcut--".concat(size), blocked && 'ods-shortcut--blocked', disabled && 'ods-shortcut--disabled', fullWidth && 'ods-shortcut--full-width', "ods-shortcut--".concat(orientation)) }, rest),
|
|
48111
|
+
return (e__default["default"].createElement("div", __assign$2({ className: classNames('ods-shortcut', "ods-shortcut--".concat(size), blocked && 'ods-shortcut--blocked', disabled && 'ods-shortcut--disabled', fullWidth && 'ods-shortcut--full-width', count && 'ods-shortcut--with-badge', "ods-shortcut--".concat(orientation)) }, rest),
|
|
48110
48112
|
blocked && (e__default["default"].createElement("div", { className: "ods-shortcut__blocked" },
|
|
48111
48113
|
e__default["default"].createElement(At, null))),
|
|
48112
48114
|
count ? (e__default["default"].createElement(Badge, { className: "ods-shortcut__badge", variation: "small", color: "alert", count: count })) : null,
|