@allxsmith/bestax-bulma 5.10.0 → 5.11.1
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/AGENTS.md +12 -0
- package/CLAUDE.md +12 -0
- package/dist/index.cjs.js +119 -33
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +117 -34
- package/dist/index.esm.js.map +1 -1
- package/dist/types/components/Card.d.ts +8 -3
- package/dist/types/elements/Box.d.ts +8 -3
- package/dist/types/helpers/Theme.d.ts +1 -1
- package/dist/types/helpers/bulmaClassHelpers.d.ts +9 -0
- package/dist/types/helpers/mergeBulmaStyles.d.ts +17 -0
- package/dist/types/helpers/useBulmaClasses.d.ts +25 -8
- package/dist/types/helpers/useColorClasses.d.ts +43 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/layout/Container.d.ts +8 -3
- package/dist/types/layout/Footer.d.ts +8 -3
- package/dist/types/layout/Hero.d.ts +29 -9
- package/dist/types/layout/Section.d.ts +8 -3
- package/llms.txt +12 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -244,6 +244,22 @@ const validColorShades = [
|
|
|
244
244
|
'bold',
|
|
245
245
|
'on-scheme',
|
|
246
246
|
];
|
|
247
|
+
/**
|
|
248
|
+
* Valid Bulma scheme color names for scheme-aware backgrounds.
|
|
249
|
+
*
|
|
250
|
+
* Bulma ships no `has-background-scheme-*` helper classes, so these values
|
|
251
|
+
* never emit a class — components render them as a dark-mode-safe inline
|
|
252
|
+
* `background-color: var(--bulma-<value>)` style instead.
|
|
253
|
+
* @example 'scheme-main', 'scheme-main-bis', 'scheme-invert'
|
|
254
|
+
*/
|
|
255
|
+
const validSchemeColors = [
|
|
256
|
+
'scheme-main',
|
|
257
|
+
'scheme-main-bis',
|
|
258
|
+
'scheme-main-ter',
|
|
259
|
+
'scheme-invert',
|
|
260
|
+
'scheme-invert-bis',
|
|
261
|
+
'scheme-invert-ter',
|
|
262
|
+
];
|
|
247
263
|
/**
|
|
248
264
|
* Valid Bulma size classes for margins and paddings.
|
|
249
265
|
* @example '0', '1', 'auto'
|
|
@@ -435,6 +451,10 @@ const createBulmaClassHelpers = (classPrefix, viewport) => {
|
|
|
435
451
|
/**
|
|
436
452
|
* A hook that generates Bulma text and background color helper classes.
|
|
437
453
|
*
|
|
454
|
+
* Scheme background values (`scheme-main`, `scheme-main-bis`, …) are dropped
|
|
455
|
+
* from class emission — Bulma ships no `has-background-scheme-*` classes; use
|
|
456
|
+
* {@link useColorStyles} to render them as an inline style.
|
|
457
|
+
*
|
|
438
458
|
* @function useColorClasses
|
|
439
459
|
* @param props - Color-related Bulma helper props.
|
|
440
460
|
* @returns A space-separated string of color helper classes.
|
|
@@ -471,6 +491,38 @@ const useColorClasses = (props) => {
|
|
|
471
491
|
return classNames(classes);
|
|
472
492
|
}, [classPrefix, color, colorShade, backgroundColor, backgroundColorShade]);
|
|
473
493
|
};
|
|
494
|
+
/**
|
|
495
|
+
* A hook that generates inline styles for scheme-aware color props.
|
|
496
|
+
*
|
|
497
|
+
* When `backgroundColor` is one of the scheme color names in
|
|
498
|
+
* `validSchemeColors`, returns `{ backgroundColor: 'var(--bulma-<value>)' }` —
|
|
499
|
+
* an inline style that tracks Bulma's scheme CSS variables, so it adapts to
|
|
500
|
+
* light/dark mode with no bestax-shipped CSS. For every other input it
|
|
501
|
+
* returns `undefined` (never `{}`), so components that don't use scheme
|
|
502
|
+
* values produce identical DOM to before.
|
|
503
|
+
*
|
|
504
|
+
* `backgroundColorShade` is ignored for scheme values — Bulma defines no
|
|
505
|
+
* shaded scheme variables. Only the background is set: the `scheme-invert*`
|
|
506
|
+
* values do not change text color, so pair them with a contrasting
|
|
507
|
+
* foreground.
|
|
508
|
+
*
|
|
509
|
+
* @function useColorStyles
|
|
510
|
+
* @param props - Color-related Bulma helper props (scheme-aware).
|
|
511
|
+
* @returns An inline style object for scheme backgrounds, or `undefined`.
|
|
512
|
+
* @example
|
|
513
|
+
* const colorStyles = useColorStyles({ backgroundColor: 'scheme-main-bis' });
|
|
514
|
+
* // colorStyles: { backgroundColor: 'var(--bulma-scheme-main-bis)' }
|
|
515
|
+
*/
|
|
516
|
+
const useColorStyles = (props) => {
|
|
517
|
+
const { backgroundColor } = props;
|
|
518
|
+
return useMemo(() => {
|
|
519
|
+
if (backgroundColor &&
|
|
520
|
+
validSchemeColors.includes(backgroundColor)) {
|
|
521
|
+
return { backgroundColor: `var(--bulma-${backgroundColor})` };
|
|
522
|
+
}
|
|
523
|
+
return undefined;
|
|
524
|
+
}, [backgroundColor]);
|
|
525
|
+
};
|
|
474
526
|
|
|
475
527
|
/**
|
|
476
528
|
* A hook that generates Bulma margin and padding helper classes.
|
|
@@ -841,16 +893,23 @@ const useOtherClasses = (props) => {
|
|
|
841
893
|
* useTypographyClasses, useVisibilityClasses, useFlexboxClasses, and
|
|
842
894
|
* useOtherClasses), which can also be used individually.
|
|
843
895
|
*
|
|
896
|
+
* Scheme background values (`backgroundColor: 'scheme-main-bis'`, …) emit no
|
|
897
|
+
* class; they are returned as `bulmaHelperStyles` — a dark-mode-safe inline
|
|
898
|
+
* `background-color: var(--bulma-scheme-*)` style (`undefined` for all other
|
|
899
|
+
* inputs). Merge it with a user `style` prop via `mergeBulmaStyles`.
|
|
900
|
+
*
|
|
844
901
|
* @function useBulmaClasses
|
|
845
|
-
* @param props - Combination of
|
|
846
|
-
* @returns An object containing the Bulma helper classes
|
|
902
|
+
* @param props - Combination of BulmaClassesPropsWithScheme and additional props.
|
|
903
|
+
* @returns An object containing the Bulma helper classes, optional helper
|
|
904
|
+
* styles, and unhandled props.
|
|
847
905
|
* @example
|
|
848
|
-
* const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
906
|
+
* const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({
|
|
849
907
|
* color: 'primary',
|
|
850
|
-
*
|
|
908
|
+
* backgroundColor: 'scheme-main-bis',
|
|
851
909
|
* className: 'custom-class'
|
|
852
910
|
* });
|
|
853
|
-
* // bulmaHelperClasses: 'has-text-primary
|
|
911
|
+
* // bulmaHelperClasses: 'has-text-primary'
|
|
912
|
+
* // bulmaHelperStyles: { backgroundColor: 'var(--bulma-scheme-main-bis)' }
|
|
854
913
|
* // rest: { className: 'custom-class' }
|
|
855
914
|
*/
|
|
856
915
|
const useBulmaClasses = (props) => {
|
|
@@ -861,6 +920,7 @@ const useBulmaClasses = (props) => {
|
|
|
861
920
|
backgroundColor,
|
|
862
921
|
backgroundColorShade,
|
|
863
922
|
});
|
|
923
|
+
const bulmaHelperStyles = useColorStyles({ backgroundColor });
|
|
864
924
|
const spacingClasses = useSpacingClasses({
|
|
865
925
|
m,
|
|
866
926
|
mt,
|
|
@@ -948,7 +1008,7 @@ const useBulmaClasses = (props) => {
|
|
|
948
1008
|
flexboxClasses,
|
|
949
1009
|
otherClasses,
|
|
950
1010
|
]);
|
|
951
|
-
return { bulmaHelperClasses, rest };
|
|
1011
|
+
return { bulmaHelperClasses, bulmaHelperStyles, rest };
|
|
952
1012
|
};
|
|
953
1013
|
|
|
954
1014
|
/**
|
|
@@ -1411,6 +1471,23 @@ const Breadcrumb = ({ className, alignment, separator, size, children, ...props
|
|
|
1411
1471
|
return (jsx("nav", { className: breadcrumbClasses, "aria-label": "breadcrumbs", ...rest, children: jsx("ul", { children: children }) }));
|
|
1412
1472
|
};
|
|
1413
1473
|
|
|
1474
|
+
/**
|
|
1475
|
+
* Merges helper-emitted inline styles (e.g., `bulmaHelperStyles` from
|
|
1476
|
+
* `useBulmaClasses`) with a user-supplied `style` prop.
|
|
1477
|
+
*
|
|
1478
|
+
* The user's `style` wins on conflicting properties, and when both inputs are
|
|
1479
|
+
* absent the result is `undefined` — so components that receive neither
|
|
1480
|
+
* render with no `style` attribute at all, exactly as before.
|
|
1481
|
+
*
|
|
1482
|
+
* @function mergeBulmaStyles
|
|
1483
|
+
* @param helperStyles - Inline styles emitted by the Bulma helper hooks.
|
|
1484
|
+
* @param style - The component consumer's `style` prop.
|
|
1485
|
+
* @returns The merged style object, or `undefined` when both are absent.
|
|
1486
|
+
* @example
|
|
1487
|
+
* <section style={mergeBulmaStyles(bulmaHelperStyles, style)} />
|
|
1488
|
+
*/
|
|
1489
|
+
const mergeBulmaStyles = (helperStyles, style) => helperStyles || style ? { ...helperStyles, ...style } : undefined;
|
|
1490
|
+
|
|
1414
1491
|
/**
|
|
1415
1492
|
* Wrap each footer item in a `.card-footer-item` span.
|
|
1416
1493
|
* @param {CardProps['footer']} footer - Footer content (single node or array).
|
|
@@ -1449,9 +1526,9 @@ const hasCompoundComponents = (children) => {
|
|
|
1449
1526
|
* @returns {JSX.Element} The rendered card element.
|
|
1450
1527
|
* @see {@link https://bulma.io/documentation/components/card/ | Bulma Card documentation}
|
|
1451
1528
|
*/
|
|
1452
|
-
const CardComponent = ({ className, children, textColor, color, bgColor, hasShadow = true, header, headerCentered, headerIcon, footer, image, imageAlt, ...props }) => {
|
|
1529
|
+
const CardComponent = ({ className, children, textColor, color, bgColor, hasShadow = true, header, headerCentered, headerIcon, footer, image, imageAlt, style, ...props }) => {
|
|
1453
1530
|
const { classPrefix } = useConfig();
|
|
1454
|
-
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1531
|
+
const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({
|
|
1455
1532
|
color: textColor ?? color,
|
|
1456
1533
|
backgroundColor: bgColor,
|
|
1457
1534
|
...props,
|
|
@@ -1470,7 +1547,7 @@ const CardComponent = ({ className, children, textColor, color, bgColor, hasShad
|
|
|
1470
1547
|
'is-centered': headerCentered,
|
|
1471
1548
|
}), children: header })), headerIcon] }));
|
|
1472
1549
|
};
|
|
1473
|
-
return (jsxs("div", { className: cardClasses, ...rest, children: [renderHeader(header, headerIcon, headerCentered, classPrefix), image && (jsx("div", { className: prefixedClassNames(classPrefix, 'card-image'), children: typeof image === 'string' ? (jsx("figure", { className: prefixedClassNames(classPrefix, 'image'), children: jsx("img", { src: image, alt: imageAlt ?? 'Card image' }) })) : (image) })), typeof children !== 'undefined' &&
|
|
1550
|
+
return (jsxs("div", { className: cardClasses, style: mergeBulmaStyles(bulmaHelperStyles, style), ...rest, children: [renderHeader(header, headerIcon, headerCentered, classPrefix), image && (jsx("div", { className: prefixedClassNames(classPrefix, 'card-image'), children: typeof image === 'string' ? (jsx("figure", { className: prefixedClassNames(classPrefix, 'image'), children: jsx("img", { src: image, alt: imageAlt ?? 'Card image' }) })) : (image) })), typeof children !== 'undefined' &&
|
|
1474
1551
|
children !== null &&
|
|
1475
1552
|
children !== '' &&
|
|
1476
1553
|
!hasCompoundComponents(children) && (jsx("div", { className: prefixedClassNames(classPrefix, 'card-content'), children: children })), typeof children !== 'undefined' &&
|
|
@@ -4568,11 +4645,11 @@ const Block = ({ className, textColor, color, bgColor, children, ...props }) =>
|
|
|
4568
4645
|
* @returns {JSX.Element} The rendered box element.
|
|
4569
4646
|
* @see {@link https://bulma.io/documentation/elements/box/ | Bulma Box documentation}
|
|
4570
4647
|
*/
|
|
4571
|
-
const Box = ({ className, textColor, color, bgColor, hasShadow = true, children, ...props }) => {
|
|
4648
|
+
const Box = ({ className, textColor, color, bgColor, hasShadow = true, children, style, ...props }) => {
|
|
4572
4649
|
/**
|
|
4573
4650
|
* Generates Bulma helper classes and separates out remaining props.
|
|
4574
4651
|
*/
|
|
4575
|
-
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
4652
|
+
const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({
|
|
4576
4653
|
color: textColor ?? color,
|
|
4577
4654
|
backgroundColor: bgColor,
|
|
4578
4655
|
...props,
|
|
@@ -4581,7 +4658,7 @@ const Box = ({ className, textColor, color, bgColor, hasShadow = true, children,
|
|
|
4581
4658
|
'is-shadowless': !hasShadow,
|
|
4582
4659
|
});
|
|
4583
4660
|
const boxClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
4584
|
-
return (jsx("div", { className: boxClasses, ...rest, children: children }));
|
|
4661
|
+
return (jsx("div", { className: boxClasses, style: mergeBulmaStyles(bulmaHelperStyles, style), ...rest, children: children }));
|
|
4585
4662
|
};
|
|
4586
4663
|
|
|
4587
4664
|
/**
|
|
@@ -11173,6 +11250,12 @@ const bulmaCssVars = [
|
|
|
11173
11250
|
// scheme
|
|
11174
11251
|
'--bulma-scheme-h',
|
|
11175
11252
|
'--bulma-scheme-s',
|
|
11253
|
+
'--bulma-scheme-main',
|
|
11254
|
+
'--bulma-scheme-main-bis',
|
|
11255
|
+
'--bulma-scheme-main-ter',
|
|
11256
|
+
'--bulma-scheme-invert',
|
|
11257
|
+
'--bulma-scheme-invert-bis',
|
|
11258
|
+
'--bulma-scheme-invert-ter',
|
|
11176
11259
|
'--bulma-light-l',
|
|
11177
11260
|
'--bulma-light-invert-l',
|
|
11178
11261
|
'--bulma-dark-l',
|
|
@@ -11856,8 +11939,8 @@ const Theme = ({ bulmaVars = {}, children, className, isRoot = false, colorMode,
|
|
|
11856
11939
|
* @returns {JSX.Element} The rendered container.
|
|
11857
11940
|
* @see {@link https://bulma.io/documentation/layout/container/ | Bulma Container documentation}
|
|
11858
11941
|
*/
|
|
11859
|
-
const Container = ({ className, textColor, color, bgColor, fluid, widescreen, fullhd, breakpoint, isMax, children, ...props }) => {
|
|
11860
|
-
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
11942
|
+
const Container = ({ className, textColor, color, bgColor, fluid, widescreen, fullhd, breakpoint, isMax, children, style, ...props }) => {
|
|
11943
|
+
const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({
|
|
11861
11944
|
color: textColor ?? color,
|
|
11862
11945
|
backgroundColor: bgColor,
|
|
11863
11946
|
...props,
|
|
@@ -11885,7 +11968,7 @@ const Container = ({ className, textColor, color, bgColor, fluid, widescreen, fu
|
|
|
11885
11968
|
});
|
|
11886
11969
|
const prefixedBreakpointClass = usePrefixedClassNames(breakpointClass || '');
|
|
11887
11970
|
const containerClasses = classNames(mainClass, containerModifiers, prefixedBreakpointClass, className, bulmaHelperClasses);
|
|
11888
|
-
return (jsx("div", { className: containerClasses, ...rest, children: children }));
|
|
11971
|
+
return (jsx("div", { className: containerClasses, style: mergeBulmaStyles(bulmaHelperStyles, style), ...rest, children: children }));
|
|
11889
11972
|
};
|
|
11890
11973
|
|
|
11891
11974
|
/**
|
|
@@ -11901,8 +11984,8 @@ const Container = ({ className, textColor, color, bgColor, fluid, widescreen, fu
|
|
|
11901
11984
|
* <div className="content has-text-centered">...</div>
|
|
11902
11985
|
* </Footer>
|
|
11903
11986
|
*/
|
|
11904
|
-
const Footer = ({ as = 'footer', className, children, color, bgColor, textColor, ...props }) => {
|
|
11905
|
-
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
11987
|
+
const Footer = ({ as = 'footer', className, children, color, bgColor, textColor, style, ...props }) => {
|
|
11988
|
+
const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({
|
|
11906
11989
|
color: textColor ?? color,
|
|
11907
11990
|
backgroundColor: bgColor,
|
|
11908
11991
|
...props,
|
|
@@ -11910,7 +11993,7 @@ const Footer = ({ as = 'footer', className, children, color, bgColor, textColor,
|
|
|
11910
11993
|
const Tag = as;
|
|
11911
11994
|
const mainClass = usePrefixedClassNames('footer');
|
|
11912
11995
|
const footerClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
11913
|
-
return (jsx(Tag, { className: footerClasses, ...rest, children: children }));
|
|
11996
|
+
return (jsx(Tag, { className: footerClasses, style: mergeBulmaStyles(bulmaHelperStyles, style), ...rest, children: children }));
|
|
11914
11997
|
};
|
|
11915
11998
|
|
|
11916
11999
|
/**
|
|
@@ -11921,9 +12004,9 @@ const Footer = ({ as = 'footer', className, children, color, bgColor, textColor,
|
|
|
11921
12004
|
* @returns {JSX.Element} The rendered hero.
|
|
11922
12005
|
* @see {@link https://bulma.io/documentation/layout/hero/ | Bulma Hero documentation}
|
|
11923
12006
|
*/
|
|
11924
|
-
const HeroComponent = ({ className, color, size, bgColor, fullheightWithNavbar, children, ...props }) => {
|
|
12007
|
+
const HeroComponent = ({ className, color, size, bgColor, fullheightWithNavbar, children, style, ...props }) => {
|
|
11925
12008
|
warnUnstyledColor('Hero', color, ['inherit', 'current']);
|
|
11926
|
-
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
12009
|
+
const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({
|
|
11927
12010
|
backgroundColor: bgColor,
|
|
11928
12011
|
...props,
|
|
11929
12012
|
});
|
|
@@ -11933,7 +12016,7 @@ const HeroComponent = ({ className, color, size, bgColor, fullheightWithNavbar,
|
|
|
11933
12016
|
'is-fullheight-with-navbar': fullheightWithNavbar || size === 'fullheight-with-navbar',
|
|
11934
12017
|
});
|
|
11935
12018
|
const heroClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
11936
|
-
return (jsx("section", { className: heroClasses, ...rest, children: children }));
|
|
12019
|
+
return (jsx("section", { className: heroClasses, style: mergeBulmaStyles(bulmaHelperStyles, style), ...rest, children: children }));
|
|
11937
12020
|
};
|
|
11938
12021
|
/**
|
|
11939
12022
|
* Top bar for navigation or branding.
|
|
@@ -11942,15 +12025,15 @@ const HeroComponent = ({ className, color, size, bgColor, fullheightWithNavbar,
|
|
|
11942
12025
|
* @param {HeroHeadProps} props - Props for the HeroHead component.
|
|
11943
12026
|
* @returns {JSX.Element} The rendered hero head.
|
|
11944
12027
|
*/
|
|
11945
|
-
const HeroHead = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
11946
|
-
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
12028
|
+
const HeroHead = ({ className, children, color, bgColor, textColor, style, ...props }) => {
|
|
12029
|
+
const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({
|
|
11947
12030
|
color: textColor ?? color,
|
|
11948
12031
|
backgroundColor: bgColor,
|
|
11949
12032
|
...props,
|
|
11950
12033
|
});
|
|
11951
12034
|
const mainClass = usePrefixedClassNames('hero-head');
|
|
11952
12035
|
const heroHeadClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
11953
|
-
return (jsx("div", { className: heroHeadClasses, ...rest, children: children }));
|
|
12036
|
+
return (jsx("div", { className: heroHeadClasses, style: mergeBulmaStyles(bulmaHelperStyles, style), ...rest, children: children }));
|
|
11954
12037
|
};
|
|
11955
12038
|
/**
|
|
11956
12039
|
* Main content area, vertically centered by default.
|
|
@@ -11959,15 +12042,15 @@ const HeroHead = ({ className, children, color, bgColor, textColor, ...props })
|
|
|
11959
12042
|
* @param {HeroBodyProps} props - Props for the HeroBody component.
|
|
11960
12043
|
* @returns {JSX.Element} The rendered hero body.
|
|
11961
12044
|
*/
|
|
11962
|
-
const HeroBody = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
11963
|
-
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
12045
|
+
const HeroBody = ({ className, children, color, bgColor, textColor, style, ...props }) => {
|
|
12046
|
+
const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({
|
|
11964
12047
|
color: textColor ?? color,
|
|
11965
12048
|
backgroundColor: bgColor,
|
|
11966
12049
|
...props,
|
|
11967
12050
|
});
|
|
11968
12051
|
const mainClass = usePrefixedClassNames('hero-body');
|
|
11969
12052
|
const heroBodyClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
11970
|
-
return (jsx("div", { className: heroBodyClasses, ...rest, children: children }));
|
|
12053
|
+
return (jsx("div", { className: heroBodyClasses, style: mergeBulmaStyles(bulmaHelperStyles, style), ...rest, children: children }));
|
|
11971
12054
|
};
|
|
11972
12055
|
/**
|
|
11973
12056
|
* Bottom bar for tabs or actions.
|
|
@@ -11976,15 +12059,15 @@ const HeroBody = ({ className, children, color, bgColor, textColor, ...props })
|
|
|
11976
12059
|
* @param {HeroFootProps} props - Props for the HeroFoot component.
|
|
11977
12060
|
* @returns {JSX.Element} The rendered hero foot.
|
|
11978
12061
|
*/
|
|
11979
|
-
const HeroFoot = ({ className, children, color, bgColor, textColor, ...props }) => {
|
|
11980
|
-
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
12062
|
+
const HeroFoot = ({ className, children, color, bgColor, textColor, style, ...props }) => {
|
|
12063
|
+
const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({
|
|
11981
12064
|
color: textColor ?? color,
|
|
11982
12065
|
backgroundColor: bgColor,
|
|
11983
12066
|
...props,
|
|
11984
12067
|
});
|
|
11985
12068
|
const mainClass = usePrefixedClassNames('hero-foot');
|
|
11986
12069
|
const heroFootClasses = classNames(mainClass, bulmaHelperClasses, className);
|
|
11987
|
-
return (jsx("div", { className: heroFootClasses, ...rest, children: children }));
|
|
12070
|
+
return (jsx("div", { className: heroFootClasses, style: mergeBulmaStyles(bulmaHelperStyles, style), ...rest, children: children }));
|
|
11988
12071
|
};
|
|
11989
12072
|
// Attach subcomponents
|
|
11990
12073
|
const Hero = withSubComponents(HeroComponent, {
|
|
@@ -12163,8 +12246,8 @@ const Media = withSubComponents(MediaComponent, {
|
|
|
12163
12246
|
* @returns {JSX.Element} The rendered section.
|
|
12164
12247
|
* @see {@link https://bulma.io/documentation/layout/section/ | Bulma Section documentation}
|
|
12165
12248
|
*/
|
|
12166
|
-
const Section = ({ size, className, children, color, bgColor, textColor, ...props }) => {
|
|
12167
|
-
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
12249
|
+
const Section = ({ size, className, children, color, bgColor, textColor, style, ...props }) => {
|
|
12250
|
+
const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({
|
|
12168
12251
|
color: textColor ?? color,
|
|
12169
12252
|
backgroundColor: bgColor,
|
|
12170
12253
|
...props,
|
|
@@ -12174,8 +12257,8 @@ const Section = ({ size, className, children, color, bgColor, textColor, ...prop
|
|
|
12174
12257
|
[`is-${size}`]: size,
|
|
12175
12258
|
});
|
|
12176
12259
|
const sectionClasses = classNames(mainClass, sectionModifiers, className, bulmaHelperClasses);
|
|
12177
|
-
return (jsx("section", { className: sectionClasses, ...rest, children: children }));
|
|
12260
|
+
return (jsx("section", { className: sectionClasses, style: mergeBulmaStyles(bulmaHelperStyles, style), ...rest, children: children }));
|
|
12178
12261
|
};
|
|
12179
12262
|
|
|
12180
|
-
export { Autocomplete, Avatar, Avatars, Badge, Block, Box, Breadcrumb, Button, Buttons, Card, Carousel, CarouselItem, Cell, Checkbox, Checkboxes, Code, Collapse, Column, Columns, ConfigProvider, Container, Content, Control, DateInput, DateInputBase, DateTimeInput, DateTimeInputBase, Delete, Dialog, DialogContainer, Divider, Dropdown, DropdownDivider, DropdownItem, Emphasis, Field, FieldBody, FieldLabel, Figure, File, Footer, Grid, Hero, HeroBody, HeroFoot, HeroHead, Icon, IconText, Image, Input, InputBase, Level, LevelItem, LevelLeft, LevelRight, Link, LinkButton, ListItem, Loading, Media, MediaContent, MediaLeft, MediaRight, Menu, MenuItem, MenuLabel, MenuList, Message, Modal, Navbar, NavbarBrand, NavbarBurger, NavbarDivider, NavbarDropdown, NavbarDropdownMenu, NavbarEnd, NavbarItem, NavbarLink, NavbarMenu, NavbarStart, Notification, NotificationContainer, NumberInput, Numberinput, OrderedList, Pagination, PaginationEllipsis, PaginationLink, PaginationList, PaginationNext, PaginationPrevious, Panel, PanelBlock, PanelButtonBlock, PanelCheckboxBlock, PanelHeading, PanelIcon, PanelInputBlock, PanelTabs, Paragraph, Pre, Progress, Radio, Radios, Rate, Reveal, Section, Select, SelectBase, Sidebar, Skeleton, Slider, Span, Step, Steps, Strong, SubTitle, Switch, Tab, TabContentItem, TabItem, TabList, Table, Tabs, TabsContent, Tag, TagInput, Taginput, Tags, Tbody, Td, TextArea, TextAreaBase, Tfoot, Th, Thead, Theme, TimeInput, TimeInputBase, Title, Toast, ToastContainer, Tooltip, Tr, UnorderedList, __test_exports__, checkboxColors, checkboxSizes, classNames, createPrefixedClassNames, dialog, isBrowser$1 as isBrowser, notification, prefixedClassNames, radioColors, radioSizes, switchColors, switchSizes, toast, useBulmaClasses, useClassPrefix, useColorClasses, useConfig, useFlexboxClasses, useIconLibrary, useInsideControl, useInsideField, useOtherClasses, usePrefixedClass, usePrefixedClassNames, useSpacingClasses, useTypographyClasses, useVisibilityClasses, validAlignContents, validAlignItems, validAlignSelfs, validAlignments$1 as validAlignments, validColorShades, validColors, validDisplays, validFlexDirections, validFlexGrowShrink, validFlexWraps, validFontFamilies, validJustifyContents, validSizes$1 as validSizes, validTableColors, validTextSizes, validTextTransforms, validTextWeights, validViewports, validVisibilities };
|
|
12263
|
+
export { Autocomplete, Avatar, Avatars, Badge, Block, Box, Breadcrumb, Button, Buttons, Card, Carousel, CarouselItem, Cell, Checkbox, Checkboxes, Code, Collapse, Column, Columns, ConfigProvider, Container, Content, Control, DateInput, DateInputBase, DateTimeInput, DateTimeInputBase, Delete, Dialog, DialogContainer, Divider, Dropdown, DropdownDivider, DropdownItem, Emphasis, Field, FieldBody, FieldLabel, Figure, File, Footer, Grid, Hero, HeroBody, HeroFoot, HeroHead, Icon, IconText, Image, Input, InputBase, Level, LevelItem, LevelLeft, LevelRight, Link, LinkButton, ListItem, Loading, Media, MediaContent, MediaLeft, MediaRight, Menu, MenuItem, MenuLabel, MenuList, Message, Modal, Navbar, NavbarBrand, NavbarBurger, NavbarDivider, NavbarDropdown, NavbarDropdownMenu, NavbarEnd, NavbarItem, NavbarLink, NavbarMenu, NavbarStart, Notification, NotificationContainer, NumberInput, Numberinput, OrderedList, Pagination, PaginationEllipsis, PaginationLink, PaginationList, PaginationNext, PaginationPrevious, Panel, PanelBlock, PanelButtonBlock, PanelCheckboxBlock, PanelHeading, PanelIcon, PanelInputBlock, PanelTabs, Paragraph, Pre, Progress, Radio, Radios, Rate, Reveal, Section, Select, SelectBase, Sidebar, Skeleton, Slider, Span, Step, Steps, Strong, SubTitle, Switch, Tab, TabContentItem, TabItem, TabList, Table, Tabs, TabsContent, Tag, TagInput, Taginput, Tags, Tbody, Td, TextArea, TextAreaBase, Tfoot, Th, Thead, Theme, TimeInput, TimeInputBase, Title, Toast, ToastContainer, Tooltip, Tr, UnorderedList, __test_exports__, checkboxColors, checkboxSizes, classNames, createPrefixedClassNames, dialog, isBrowser$1 as isBrowser, mergeBulmaStyles, notification, prefixedClassNames, radioColors, radioSizes, switchColors, switchSizes, toast, useBulmaClasses, useClassPrefix, useColorClasses, useColorStyles, useConfig, useFlexboxClasses, useIconLibrary, useInsideControl, useInsideField, useOtherClasses, usePrefixedClass, usePrefixedClassNames, useSpacingClasses, useTypographyClasses, useVisibilityClasses, validAlignContents, validAlignItems, validAlignSelfs, validAlignments$1 as validAlignments, validColorShades, validColors, validDisplays, validFlexDirections, validFlexGrowShrink, validFlexWraps, validFontFamilies, validJustifyContents, validSchemeColors, validSizes$1 as validSizes, validTableColors, validTextSizes, validTextTransforms, validTextWeights, validViewports, validVisibilities };
|
|
12181
12264
|
//# sourceMappingURL=index.esm.js.map
|