@allxsmith/bestax-bulma 5.5.0 → 5.6.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/index.cjs.js CHANGED
@@ -682,7 +682,13 @@ const Column = ({ className, textColor, color: _fieldColor, bgColor, size, sizeM
682
682
  return (jsxRuntime.jsx("div", { className: columnClasses, ...rest, children: children }));
683
683
  };
684
684
 
685
- const Columns = ({ className, textColor, color: _fieldColor, bgColor, isCentered, isGapless, isMultiline, isVCentered, isMobile, isDesktop, gapSize, gapSizeMobile, gapSizeTablet, gapSizeDesktop, gapSizeWidescreen, gapSizeFullhd, children, ...props }) => {
685
+ const Columns = ({ className, textColor, color: _fieldColor, bgColor, isCentered, isGapless, isMultiline, isVCentered, isMobile, isDesktop, gap, gapMobile, gapTablet, gapDesktop, gapWidescreen, gapFullhd, gapSize, gapSizeMobile, gapSizeTablet, gapSizeDesktop, gapSizeWidescreen, gapSizeFullhd, children, ...props }) => {
686
+ const resolvedGap = gap ?? gapSize;
687
+ const resolvedGapMobile = gapMobile ?? gapSizeMobile;
688
+ const resolvedGapTablet = gapTablet ?? gapSizeTablet;
689
+ const resolvedGapDesktop = gapDesktop ?? gapSizeDesktop;
690
+ const resolvedGapWidescreen = gapWidescreen ?? gapSizeWidescreen;
691
+ const resolvedGapFullhd = gapFullhd ?? gapSizeFullhd;
686
692
  const { bulmaHelperClasses, rest } = useBulmaClasses({
687
693
  color: textColor,
688
694
  backgroundColor: bgColor,
@@ -690,12 +696,12 @@ const Columns = ({ className, textColor, color: _fieldColor, bgColor, isCentered
690
696
  });
691
697
  const mainClass = usePrefixedClassNames('columns');
692
698
  const gapClasses = usePrefixedClassNames('', {
693
- [`is-${gapSize}`]: gapSize !== undefined && gapSize !== null,
694
- [`is-${gapSizeMobile}-mobile`]: gapSizeMobile !== undefined && gapSizeMobile !== null,
695
- [`is-${gapSizeTablet}-tablet`]: gapSizeTablet !== undefined && gapSizeTablet !== null,
696
- [`is-${gapSizeDesktop}-desktop`]: gapSizeDesktop !== undefined && gapSizeDesktop !== null,
697
- [`is-${gapSizeWidescreen}-widescreen`]: gapSizeWidescreen !== undefined && gapSizeWidescreen !== null,
698
- [`is-${gapSizeFullhd}-fullhd`]: gapSizeFullhd !== undefined && gapSizeFullhd !== null,
699
+ [`is-${resolvedGap}`]: resolvedGap !== undefined && resolvedGap !== null,
700
+ [`is-${resolvedGapMobile}-mobile`]: resolvedGapMobile !== undefined && resolvedGapMobile !== null,
701
+ [`is-${resolvedGapTablet}-tablet`]: resolvedGapTablet !== undefined && resolvedGapTablet !== null,
702
+ [`is-${resolvedGapDesktop}-desktop`]: resolvedGapDesktop !== undefined && resolvedGapDesktop !== null,
703
+ [`is-${resolvedGapWidescreen}-widescreen`]: resolvedGapWidescreen !== undefined && resolvedGapWidescreen !== null,
704
+ [`is-${resolvedGapFullhd}-fullhd`]: resolvedGapFullhd !== undefined && resolvedGapFullhd !== null,
699
705
  'is-centered': !!isCentered,
700
706
  'is-gapless': !!isGapless,
701
707
  'is-multiline': !!isMultiline,