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