@allxsmith/bestax-bulma 5.26.1 → 5.26.2

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 CHANGED
@@ -15557,6 +15557,25 @@ const Theme = ({ bulmaVars = {}, children, className, isRoot = false, colorMode,
15557
15557
  }
15558
15558
  return { bulmaVarProps: varProps, otherProps: otherPropsObj };
15559
15559
  }, [restProps]);
15560
+ // Everything left in `otherProps` lands on the wrapper div, as a helper
15561
+ // class or an attribute, and so does `className`. A root Theme renders no
15562
+ // wrapper, so under `isRoot` all of it is dropped. `radius` and `columnGap`
15563
+ // are not in `otherProps`; the checks above cover them.
15564
+ if (isRoot) {
15565
+ const dropped = Object.entries(otherProps)
15566
+ .filter(([, value]) => value !== undefined && value !== null && value !== false)
15567
+ .map(([key]) => key);
15568
+ if (className) {
15569
+ dropped.unshift('className');
15570
+ }
15571
+ if (dropped.length > 0) {
15572
+ warnOnce('Theme:root-dropped-props', `[bestax-bulma] <Theme isRoot>: a root Theme renders no wrapper ` +
15573
+ `element, so ${dropped.join(', ')} ` +
15574
+ `${dropped.length === 1 ? 'has' : 'have'} nothing to apply to. ` +
15575
+ 'Put helper props and classes on an element inside the Theme ' +
15576
+ 'instead.');
15577
+ }
15578
+ }
15560
15579
  // Use Bulma classes for styling (only when not isRoot). Only a helper value
15561
15580
  // of `radius` reaches the helper; a legacy string went to the variable.
15562
15581
  const { bulmaHelperClasses, rest } = useBulmaClasses({