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