reactive-bulma 2.13.0 → 2.14.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -3708,6 +3708,15 @@ const Level = ({ testId = null, cssClasses = null, style = null, leftSide = null
3708
3708
  rightSide ? (React.createElement("section", { className: 'level-right' }, renderLevelSection(rightSide))) : null));
3709
3709
  };
3710
3710
 
3711
+ const Hero = ({ testId = null, cssClasses = null, style = null, header = null, body, footer = null, color = null, size = null }) => {
3712
+ const heroClasses = parseClasses(['hero', color, size, cssClasses]);
3713
+ const heroTestId = testId !== null && testId !== void 0 ? testId : parseTestId({ tag: 'hero', parsedClasses: heroClasses });
3714
+ return (React.createElement("section", { "data-testid": heroTestId, className: heroClasses, style: style !== null && style !== void 0 ? style : undefined },
3715
+ size === 'is-fullheight' ? (React.createElement("section", { "data-testid": `${heroTestId}-head`, className: 'hero-head' }, header)) : null,
3716
+ React.createElement("section", { "data-testid": `${heroTestId}-body`, className: 'hero-body' }, body),
3717
+ size === 'is-fullheight' ? (React.createElement("section", { "data-testid": `${heroTestId}-foot`, className: 'hero-foot' }, footer)) : null));
3718
+ };
3719
+
3711
3720
  exports.Block = Block;
3712
3721
  exports.Box = Box;
3713
3722
  exports.BreadcrumbItem = BreadcrumbItem;
@@ -3723,6 +3732,7 @@ exports.DropdownItem = DropdownItem;
3723
3732
  exports.DropdownTrigger = DropdownTrigger;
3724
3733
  exports.File = File;
3725
3734
  exports.FormField = FormField;
3735
+ exports.Hero = Hero;
3726
3736
  exports.Icon = Icon;
3727
3737
  exports.Image = Image;
3728
3738
  exports.Input = Input;