@useblu/ocean-react 1.91.0 → 1.93.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
@@ -47094,6 +47094,54 @@ var WebNotification = e.forwardRef(function (_a, ref) {
47094
47094
  });
47095
47095
  WebNotification.displayName = 'WebNotification';
47096
47096
 
47097
+ var SkeletonBar = function (_a) {
47098
+ var width = _a.width, height = _a.height, props = __rest$1(_a, ["width", "height"]);
47099
+ return (e.createElement("div", __assign$1({ className: "ods-skeleton-bar", style: { width: width, height: height } }, props)));
47100
+ };
47101
+
47102
+ var ContentList = function (_a) {
47103
+ var _b;
47104
+ var title = _a.title, description = _a.description, strikethroughDescription = _a.strikethroughDescription, caption = _a.caption, errorMessage = _a.errorMessage, tagLabel = _a.tagLabel, loading = _a.loading, disabled = _a.disabled, _c = _a.state, state = _c === void 0 ? 'default' : _c, _d = _a.type, type = _d === void 0 ? 'default' : _d;
47105
+ return loading ? (e.createElement("div", { className: "ods-content-list__skeleton" },
47106
+ e.createElement(SkeletonBar, { width: "40%", height: "16px" }),
47107
+ e.createElement(SkeletonBar, { width: "90%", height: "16px" }),
47108
+ e.createElement(SkeletonBar, { width: "90%", height: "16px" }))) : (e.createElement("div", { className: classNames('ods-content-list__content', {
47109
+ 'ods-content-list--disabled': disabled,
47110
+ }) },
47111
+ e.createElement("p", { className: classNames('ods-typography', {
47112
+ 'ods-typography__paragraph': type === 'default',
47113
+ 'ods-typography__description': type === 'inverted',
47114
+ 'ods-typography__tag': tagLabel,
47115
+ }) },
47116
+ title,
47117
+ tagLabel && (e.createElement(Tag, { type: "important", size: "small", variant: "highlight" }, tagLabel))),
47118
+ description && (e.createElement("p", { className: classNames('ods-typography', (_b = {
47119
+ 'ods-typography__description': type === 'default',
47120
+ 'ods-typography__paragraph': type === 'inverted'
47121
+ },
47122
+ _b["ods-typography__paragraph--".concat(state)] = state && type === 'inverted',
47123
+ _b)) },
47124
+ strikethroughDescription &&
47125
+ state === 'strikethrough' &&
47126
+ type === 'inverted' && (e.createElement("span", { className: "ods-typography__paragraph--strikethrough-text" }, strikethroughDescription)),
47127
+ description)),
47128
+ caption && (e.createElement("p", { className: classNames('ods-typography', 'ods-typography__captionbold') }, caption)),
47129
+ errorMessage && (e.createElement("p", { className: "ods-typography ods-typography__caption" }, errorMessage))));
47130
+ };
47131
+
47132
+ var SettingsListItem = function (_a) {
47133
+ var title = _a.title, description = _a.description, strikethroughDescription = _a.strikethroughDescription, caption = _a.caption, errorMessage = _a.errorMessage, button = _a.button, tag = _a.tag, disabled = _a.disabled, _b = _a.type, type = _b === void 0 ? 'default' : _b, _c = _a.loading, loading = _c === void 0 ? false : _c, _d = _a.showDivider, showDivider = _d === void 0 ? true : _d, _e = _a.blocked, blocked = _e === void 0 ? false : _e, _f = _a.state, state = _f === void 0 ? 'default' : _f;
47134
+ return (e.createElement("div", { className: classNames('ods-settings-list-item', {
47135
+ 'ods-settings-list-item--disabled': disabled,
47136
+ 'ods-settings-list-item--divider': showDivider,
47137
+ }) },
47138
+ e.createElement(ContentList, { type: type, title: title, description: description, strikethroughDescription: strikethroughDescription, caption: caption, errorMessage: errorMessage, disabled: disabled, loading: loading, state: state }),
47139
+ e.createElement("div", { className: "ods-settings-list-item__actions" },
47140
+ blocked && e.createElement(At, { size: 20 }),
47141
+ button && (e.createElement(Button$1, __assign$1({ size: "sm", disabled: disabled, loading: loading }, button))),
47142
+ tag && e.createElement(Tag, __assign$1({ size: "medium", setIconOff: true }, tag)))));
47143
+ };
47144
+
47097
47145
  exports.Accordion = Accordion;
47098
47146
  exports.Alert = Alert;
47099
47147
  exports.Badge = Badge;
@@ -47125,6 +47173,7 @@ exports.Row = Row$1;
47125
47173
  exports.Search = Search;
47126
47174
  exports.Select = Select;
47127
47175
  exports.SelectAutocomplete = SelectAutocomplete;
47176
+ exports.SettingsListItem = SettingsListItem;
47128
47177
  exports.Shortcut = Shortcut;
47129
47178
  exports.Snackbar = Snackbar;
47130
47179
  exports.Stepper = Stepper;