@allxsmith/bestax-bulma 5.11.7 → 5.12.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 +9 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/types/components/Message.d.ts +8 -1
- package/dist/types/elements/Buttons.d.ts +8 -1
- package/dist/types/elements/Icon.d.ts +9 -1
- package/dist/types/elements/Tags.d.ts +9 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1868,6 +1868,7 @@ const Menu = withSubComponents(MenuComponent, {
|
|
|
1868
1868
|
Item: MenuItem,
|
|
1869
1869
|
}, 'Menu');
|
|
1870
1870
|
|
|
1871
|
+
const validMessageSizes = ['small', 'medium', 'large'];
|
|
1871
1872
|
/**
|
|
1872
1873
|
* The `Message` component provides Bulma's flexible notice/message box for your Bulma React UI.
|
|
1873
1874
|
*
|
|
@@ -1876,7 +1877,7 @@ const Menu = withSubComponents(MenuComponent, {
|
|
|
1876
1877
|
* @returns {JSX.Element} The rendered message.
|
|
1877
1878
|
* @see {@link https://bulma.io/documentation/components/message/ | Bulma Message documentation}
|
|
1878
1879
|
*/
|
|
1879
|
-
const MessageComponent = ({ className, title, textColor, color, bgColor, onClose, children, ...props }) => {
|
|
1880
|
+
const MessageComponent = ({ className, title, textColor, color, bgColor, size, onClose, children, ...props }) => {
|
|
1880
1881
|
const { classPrefix } = useConfig();
|
|
1881
1882
|
const { bulmaHelperClasses, rest } = useBulmaClasses({
|
|
1882
1883
|
color: textColor,
|
|
@@ -1886,6 +1887,7 @@ const MessageComponent = ({ className, title, textColor, color, bgColor, onClose
|
|
|
1886
1887
|
// Generate Bulma classes with prefix
|
|
1887
1888
|
const bulmaClasses = usePrefixedClassNames('message', {
|
|
1888
1889
|
[`is-${color}`]: color,
|
|
1890
|
+
[`is-${size}`]: size && validMessageSizes.includes(size),
|
|
1889
1891
|
});
|
|
1890
1892
|
const deleteClass = usePrefixedClassNames('delete');
|
|
1891
1893
|
const messageClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
@@ -4684,6 +4686,7 @@ const LinkButton = ({ variant = 'text', color, className, ...props }) => {
|
|
|
4684
4686
|
return (jsxRuntime.jsx(Button, { color: buttonColor, className: classNames(prefixedClasses, className), ...props }));
|
|
4685
4687
|
};
|
|
4686
4688
|
|
|
4689
|
+
const validButtonsSizes = ['small', 'medium', 'large'];
|
|
4687
4690
|
/**
|
|
4688
4691
|
* The `Buttons` component lets you group multiple `Button` elements together with Bulma's spacing, alignment, and add-on features.
|
|
4689
4692
|
*
|
|
@@ -4692,11 +4695,12 @@ const LinkButton = ({ variant = 'text', color, className, ...props }) => {
|
|
|
4692
4695
|
* @returns {JSX.Element} The rendered group of buttons.
|
|
4693
4696
|
* @see {@link https://bulma.io/documentation/elements/button/#group | Bulma Button Group documentation}
|
|
4694
4697
|
*/
|
|
4695
|
-
const ButtonsComponent = ({ className, textColor, color, bgColor, isCentered, isRight, hasAddons, children, ...props }) => {
|
|
4698
|
+
const ButtonsComponent = ({ className, textColor, color, bgColor, isCentered, isRight, hasAddons, size, children, ...props }) => {
|
|
4696
4699
|
const buttonsClasses = usePrefixedClassNames('buttons', {
|
|
4697
4700
|
'is-centered': isCentered,
|
|
4698
4701
|
'is-right': isRight,
|
|
4699
4702
|
'has-addons': hasAddons,
|
|
4703
|
+
[`are-${size}`]: size && validButtonsSizes.includes(size),
|
|
4700
4704
|
});
|
|
4701
4705
|
/**
|
|
4702
4706
|
* Generates Bulma helper classes and separates out remaining props.
|
|
@@ -5595,6 +5599,7 @@ const Tag = ({ className, color, size, isLight, isRounded, isDelete, isHoverable
|
|
|
5595
5599
|
return (jsxRuntime.jsx("span", { className: tagClasses, ...rest, children: children }));
|
|
5596
5600
|
};
|
|
5597
5601
|
|
|
5602
|
+
const validTagsSizes = ['medium', 'large'];
|
|
5598
5603
|
/**
|
|
5599
5604
|
* The `Tags` component groups multiple `Tag` components together in a horizontal (or multiline) Bulma-styled container.
|
|
5600
5605
|
*
|
|
@@ -5603,7 +5608,7 @@ const Tag = ({ className, color, size, isLight, isRounded, isDelete, isHoverable
|
|
|
5603
5608
|
* @returns {JSX.Element} The rendered tags container.
|
|
5604
5609
|
* @see {@link https://bulma.io/documentation/elements/tag/#list-of-tags | Bulma Tags documentation}
|
|
5605
5610
|
*/
|
|
5606
|
-
const TagsComponent = ({ className, hasAddons, isMultiline, children, ...props }) => {
|
|
5611
|
+
const TagsComponent = ({ className, hasAddons, isMultiline, size, children, ...props }) => {
|
|
5607
5612
|
/**
|
|
5608
5613
|
* Generates Bulma helper classes and separates out remaining props.
|
|
5609
5614
|
*/
|
|
@@ -5611,6 +5616,7 @@ const TagsComponent = ({ className, hasAddons, isMultiline, children, ...props }
|
|
|
5611
5616
|
const bulmaClasses = usePrefixedClassNames('tags', {
|
|
5612
5617
|
'has-addons': hasAddons,
|
|
5613
5618
|
'are-multiline': isMultiline,
|
|
5619
|
+
[`are-${size}`]: size && validTagsSizes.includes(size),
|
|
5614
5620
|
});
|
|
5615
5621
|
const tagsClasses = classNames(bulmaClasses, bulmaHelperClasses, className);
|
|
5616
5622
|
return (jsxRuntime.jsx("div", { className: tagsClasses, ...rest, children: children }));
|