@allxsmith/bestax-bulma 5.11.1 → 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/LICENSE +21 -0
- 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 +26 -28
- package/src/scss/CLAUDE.md +8 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Alex Smith
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
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
|
-
/**
|
|
11815
|
-
|
|
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
|
*
|