reactive-bulma 2.2.1 → 2.3.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/dist/cjs/index.js +17 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/molecules/Notification/index.d.ts +4 -0
- package/dist/cjs/types/components/molecules/index.d.ts +1 -0
- package/dist/cjs/types/interfaces/atomProps.d.ts +18 -18
- package/dist/cjs/types/interfaces/commonProps.d.ts +1 -15
- package/dist/cjs/types/interfaces/moleculeProps.d.ts +13 -2
- package/dist/esm/index.js +17 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/molecules/Notification/index.d.ts +4 -0
- package/dist/esm/types/components/molecules/index.d.ts +1 -0
- package/dist/esm/types/interfaces/atomProps.d.ts +18 -18
- package/dist/esm/types/interfaces/commonProps.d.ts +1 -15
- package/dist/esm/types/interfaces/moleculeProps.d.ts +13 -2
- package/dist/index.d.ts +32 -24
- package/package.json +8 -8
package/dist/cjs/index.js
CHANGED
@@ -3230,6 +3230,22 @@ const ColumnGroup = ({ testId = null, cssClasses = null, style = null, listOfCol
|
|
3230
3230
|
return (React.createElement("section", { "data-testid": columnGroupTestId, className: columnGroupClasses, style: style !== null && style !== void 0 ? style : undefined }, listOfColumns.map((_columnItem, i) => (React.createElement(Column, Object.assign({ key: `column-group-item-${i}` }, _columnItem))))));
|
3231
3231
|
};
|
3232
3232
|
|
3233
|
+
const Notification = ({ testId = null, cssClasses = null, style = null, children = null, deleteButton = null, color = null, isLightColor = null }) => {
|
3234
|
+
const notificationClasses = parseClasses([
|
3235
|
+
'notification',
|
3236
|
+
color,
|
3237
|
+
isLightColor ? 'is-light' : null,
|
3238
|
+
cssClasses
|
3239
|
+
]);
|
3240
|
+
const notificationTestId = testId !== null && testId !== void 0 ? testId : parseTestId({
|
3241
|
+
tag: 'notification',
|
3242
|
+
parsedClasses: notificationClasses
|
3243
|
+
});
|
3244
|
+
return (React.createElement("section", { "data-testid": notificationTestId, className: notificationClasses, style: style !== null && style !== void 0 ? style : undefined },
|
3245
|
+
deleteButton ? React.createElement(Delete, Object.assign({}, deleteButton)) : null,
|
3246
|
+
children));
|
3247
|
+
};
|
3248
|
+
|
3233
3249
|
exports.Block = Block;
|
3234
3250
|
exports.Box = Box;
|
3235
3251
|
exports.Button = Button;
|
@@ -3241,6 +3257,7 @@ exports.Delete = Delete;
|
|
3241
3257
|
exports.File = File;
|
3242
3258
|
exports.Icon = Icon;
|
3243
3259
|
exports.Input = Input;
|
3260
|
+
exports.Notification = Notification;
|
3244
3261
|
exports.ProgressBar = ProgressBar;
|
3245
3262
|
exports.RadioButton = RadioButton;
|
3246
3263
|
exports.Select = Select;
|