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