reactive-bulma 1.11.1 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +17 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/atoms/Box/index.d.ts +4 -0
- package/dist/cjs/types/components/atoms/Title/index.d.ts +4 -0
- package/dist/cjs/types/components/atoms/index.d.ts +2 -0
- package/dist/cjs/types/interfaces/atomProps.d.ts +13 -1
- package/dist/cjs/types/types/styleTypes.d.ts +1 -0
- package/dist/esm/index.js +16 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/Box/index.d.ts +4 -0
- package/dist/esm/types/components/atoms/Title/index.d.ts +4 -0
- package/dist/esm/types/components/atoms/index.d.ts +2 -0
- package/dist/esm/types/interfaces/atomProps.d.ts +13 -1
- package/dist/esm/types/types/styleTypes.d.ts +1 -0
- package/dist/index.d.ts +18 -1
- package/package.json +28 -28
package/dist/cjs/index.js
CHANGED
@@ -2914,9 +2914,26 @@ const Tag = ({ text, testId = null, style = null, color = null, isLight = null,
|
|
2914
2914
|
withDelete ? (React.createElement("button", { "data-testid": `${_testId}-delete`, className: 'delete', onClick: onDeleteClick || undefined })) : null));
|
2915
2915
|
};
|
2916
2916
|
|
2917
|
+
const Box = ({ testId = 'test-box', style = null, children = null }) => children ? (React.createElement("section", { "data-testid": testId, className: 'box', style: style || undefined }, children)) : null;
|
2918
|
+
|
2919
|
+
const renderTitleSection = (section) => {
|
2920
|
+
var _a, _b;
|
2921
|
+
const sectionClasses = parseClasses([
|
2922
|
+
section === null || section === void 0 ? void 0 : section.prop,
|
2923
|
+
(_a = section === null || section === void 0 ? void 0 : section.size) !== null && _a !== void 0 ? _a : 'is-6',
|
2924
|
+
(section === null || section === void 0 ? void 0 : section.prop) === 'title' && (section === null || section === void 0 ? void 0 : section.isSpaced) ? 'is-spaced' : null
|
2925
|
+
]);
|
2926
|
+
return section ? (React.createElement("p", { "data-testid": (_b = section === null || section === void 0 ? void 0 : section.testId) !== null && _b !== void 0 ? _b : `${section === null || section === void 0 ? void 0 : section.prop}-test`, className: sectionClasses, style: section.style || undefined }, section === null || section === void 0 ? void 0 : section.text)) : null;
|
2927
|
+
};
|
2928
|
+
const Title = ({ main, secondary }) => (React.createElement(React.Fragment, null,
|
2929
|
+
renderTitleSection(main),
|
2930
|
+
renderTitleSection(secondary)));
|
2931
|
+
|
2917
2932
|
exports.Block = Block;
|
2933
|
+
exports.Box = Box;
|
2918
2934
|
exports.Button = Button;
|
2919
2935
|
exports.Column = Column;
|
2920
2936
|
exports.ProgressBar = ProgressBar;
|
2921
2937
|
exports.Tag = Tag;
|
2938
|
+
exports.Title = Title;
|
2922
2939
|
//# sourceMappingURL=index.js.map
|