@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.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-${
|
|
694
|
-
[`is-${
|
|
695
|
-
[`is-${
|
|
696
|
-
[`is-${
|
|
697
|
-
[`is-${
|
|
698
|
-
[`is-${
|
|
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,
|