@useblu/ocean-react 1.46.3 → 1.48.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/FormControl/FormControl.d.ts.map +1 -1
- package/Shortcut/Shortcut.d.ts +4 -2
- package/Shortcut/Shortcut.d.ts.map +1 -1
- package/index.es.js +8 -8
- package/index.es.js.map +1 -1
- package/index.js +8 -8
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5012,11 +5012,11 @@ var FormControl = function (_a) {
|
|
|
5012
5012
|
typeof labelProp === 'string' ? (e__default["default"].createElement(FormLabel, { htmlFor: htmlFor, disabled: disabled }, labelProp)) : (labelProp);
|
|
5013
5013
|
}
|
|
5014
5014
|
return (e__default["default"].createElement("div", { className: "ods-form-control__root" },
|
|
5015
|
-
e__default["default"].createElement("div", { className: "ods-form-control__header" },
|
|
5016
|
-
e__default["default"].createElement("div", { className: "ods-form-control__label" }, label),
|
|
5017
|
-
tooltipMessage
|
|
5015
|
+
(labelProp || tooltipMessage) && (e__default["default"].createElement("div", { className: "ods-form-control__header" },
|
|
5016
|
+
labelProp && e__default["default"].createElement("div", { className: "ods-form-control__label" }, label),
|
|
5017
|
+
tooltipMessage && (e__default["default"].createElement("div", { "aria-label": tooltipMessage, className: "ods-form-control__icon ods-tooltip", "data-tooltip-pos": "up-left" },
|
|
5018
5018
|
e__default["default"].createElement(Er, { size: 16, color: "#B6B9CC" }),
|
|
5019
|
-
' '))
|
|
5019
|
+
' ')))),
|
|
5020
5020
|
e__default["default"].createElement("div", { className: classNames('ods-form-control__element') }, children),
|
|
5021
5021
|
helperText && (e__default["default"].createElement("p", { className: classNames('ods-form-control__helper-text', error && 'ods-form-control__helper-text--error', disabled && 'ods-form-control__helper-text--disabled') }, helperText))));
|
|
5022
5022
|
};
|
|
@@ -46350,15 +46350,15 @@ var Snackbar = e__default["default"].forwardRef(function (_a, ref) {
|
|
|
46350
46350
|
Snackbar.displayName = 'Snackbar';
|
|
46351
46351
|
|
|
46352
46352
|
var Shortcut = function (_a) {
|
|
46353
|
-
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, count = _a.count, rest = __rest$1(_a, ["icon", "label", "description", "size", "blocked", "disabled", "count"]);
|
|
46354
|
-
return (e__default["default"].createElement("div", __assign$1({ className: classNames('ods-shortcut', "ods-shortcut--".concat(size), blocked && 'ods-shortcut--blocked', disabled && 'ods-shortcut--disabled') }, rest),
|
|
46353
|
+
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$1(_a, ["icon", "label", "description", "size", "blocked", "disabled", "fullWidth", "orientation", "count"]);
|
|
46354
|
+
return (e__default["default"].createElement("div", __assign$1({ 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),
|
|
46355
46355
|
blocked && (e__default["default"].createElement("div", { className: "ods-shortcut__blocked" },
|
|
46356
46356
|
e__default["default"].createElement(jr, null))),
|
|
46357
46357
|
count ? (e__default["default"].createElement(Badge, { className: "ods-shortcut__badge", variation: "small", color: "alert", count: count })) : null,
|
|
46358
|
-
e__default["default"].createElement("div", { className: "ods-shortcut__content" },
|
|
46358
|
+
e__default["default"].createElement("div", { className: classNames('ods-shortcut__content', "ods-shortcut__content--".concat(orientation)) },
|
|
46359
46359
|
e__default["default"].createElement("div", { className: "ods-shortcut__icon" }, icon),
|
|
46360
46360
|
e__default["default"].createElement("h5", { className: classNames('ods-shortcut__label', 'ods-typography', 'ods-typography__heading5') }, label)),
|
|
46361
|
-
|
|
46361
|
+
size === 'medium' && description && (e__default["default"].createElement("span", { className: classNames('ods-shortcut__description', 'ods-typography', 'ods-typography__description') }, description))));
|
|
46362
46362
|
};
|
|
46363
46363
|
|
|
46364
46364
|
exports.Alert = Alert;
|