@allxsmith/bestax-bulma 5.11.2 → 5.11.3

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 CHANGED
@@ -11293,6 +11293,14 @@ const bulmaCssVars = [
11293
11293
  '--bulma-danger-h',
11294
11294
  '--bulma-danger-s',
11295
11295
  '--bulma-danger-l',
11296
+ // shadow (the upstream token .box/.card/.dropdown/.panel derive their own
11297
+ // shadow variables from; overriding it from an ancestor is the route that
11298
+ // cascades, since those selectors re-declare their derived var on
11299
+ // themselves)
11300
+ '--bulma-shadow-h',
11301
+ '--bulma-shadow-s',
11302
+ '--bulma-shadow-l',
11303
+ '--bulma-shadow',
11296
11304
  // typography
11297
11305
  '--bulma-family-primary',
11298
11306
  '--bulma-family-secondary',
@@ -11811,8 +11819,18 @@ function cssVarToProp(varName) {
11811
11819
  .map((part, i) => i === 0 ? part : part.charAt(0).toUpperCase() + part.slice(1))
11812
11820
  .join('');
11813
11821
  }
11814
- /** Mapping of camelCase prop names to their Bulma CSS variable counterparts. */
11815
- const bulmaVarPropMap = Object.fromEntries(bulmaCssVars.map(cssVar => [cssVarToProp(cssVar), cssVar]));
11822
+ /**
11823
+ * Mapping of camelCase prop names to their Bulma CSS variable counterparts.
11824
+ *
11825
+ * `--bulma-shadow` is excluded: `cssVarToProp` would mint it as `shadow`,
11826
+ * which already exists as a `BulmaOtherProps` prop (`shadow?: 'shadowless'`,
11827
+ * applied via `useBulmaClasses`) — keeping it out of this map means that
11828
+ * prop keeps its existing class-based meaning, while `--bulma-shadow` is
11829
+ * still reachable through the `bulmaVars` object.
11830
+ */
11831
+ const bulmaVarPropMap = Object.fromEntries(bulmaCssVars
11832
+ .map(cssVar => [cssVarToProp(cssVar), cssVar])
11833
+ .filter(([prop]) => prop !== 'shadow'));
11816
11834
  /**
11817
11835
  * Theme component that injects Bulma CSS variables either globally or locally.
11818
11836
  *