@bamboocss/generator 1.20.3 → 1.20.4
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 +13 -1
- package/dist/index.mjs +13 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -877,7 +877,19 @@ function generateRecipes(ctx, filters) {
|
|
|
877
877
|
...${baseName}StaticSlots,
|
|
878
878
|
...Object.fromEntries(${baseName}AnchorFns.map(([slotName, anchorFn]) => [slotName, anchorFn.recipeFn(props)])),
|
|
879
879
|
}))` : outdent.outdent`
|
|
880
|
-
|
|
880
|
+
/**
|
|
881
|
+
* Raw, not the formatted name. \`createRecipe\` routes what it is given through
|
|
882
|
+
* \`createCss\`, which applies \`hash.className\` and \`prefix.className\` itself — so
|
|
883
|
+
* passing the already formatted \`slotKey\` applied both a second time. The runtime
|
|
884
|
+
* asked for \`toHash(toHash(name))\` while the stylesheet emitted \`toHash(name)\`, and
|
|
885
|
+
* every slot on such a recipe rendered unstyled.
|
|
886
|
+
*
|
|
887
|
+
* Invisible only when neither \`hash\` nor \`prefix\` is set, where both applications
|
|
888
|
+
* are identities. A prefixed build was equally broken — \`bam-bam-menu__trigger\`
|
|
889
|
+
* against a stylesheet emitting \`.bam-menu__trigger\` — which is easy to miss, since
|
|
890
|
+
* the obvious reading is that this is a hashing problem.
|
|
891
|
+
*/
|
|
892
|
+
const ${baseName}SlotFns = /* @__PURE__ */ ${baseName}SlotNames.map(([slotName]) => [slotName, createRecipe(\`${config.className}__\${slotName}\`, ${baseName}DefaultVariants, getSlotCompoundVariant(${baseName}CompoundVariants, slotName))])
|
|
881
893
|
|
|
882
894
|
const ${baseName}Fn = memo((props = {}) => {
|
|
883
895
|
return Object.fromEntries(${baseName}SlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
package/dist/index.mjs
CHANGED
|
@@ -851,7 +851,19 @@ function generateRecipes(ctx, filters) {
|
|
|
851
851
|
...${baseName}StaticSlots,
|
|
852
852
|
...Object.fromEntries(${baseName}AnchorFns.map(([slotName, anchorFn]) => [slotName, anchorFn.recipeFn(props)])),
|
|
853
853
|
}))` : outdent`
|
|
854
|
-
|
|
854
|
+
/**
|
|
855
|
+
* Raw, not the formatted name. \`createRecipe\` routes what it is given through
|
|
856
|
+
* \`createCss\`, which applies \`hash.className\` and \`prefix.className\` itself — so
|
|
857
|
+
* passing the already formatted \`slotKey\` applied both a second time. The runtime
|
|
858
|
+
* asked for \`toHash(toHash(name))\` while the stylesheet emitted \`toHash(name)\`, and
|
|
859
|
+
* every slot on such a recipe rendered unstyled.
|
|
860
|
+
*
|
|
861
|
+
* Invisible only when neither \`hash\` nor \`prefix\` is set, where both applications
|
|
862
|
+
* are identities. A prefixed build was equally broken — \`bam-bam-menu__trigger\`
|
|
863
|
+
* against a stylesheet emitting \`.bam-menu__trigger\` — which is easy to miss, since
|
|
864
|
+
* the obvious reading is that this is a hashing problem.
|
|
865
|
+
*/
|
|
866
|
+
const ${baseName}SlotFns = /* @__PURE__ */ ${baseName}SlotNames.map(([slotName]) => [slotName, createRecipe(\`${config.className}__\${slotName}\`, ${baseName}DefaultVariants, getSlotCompoundVariant(${baseName}CompoundVariants, slotName))])
|
|
855
867
|
|
|
856
868
|
const ${baseName}Fn = memo((props = {}) => {
|
|
857
869
|
return Object.fromEntries(${baseName}SlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/generator",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.4",
|
|
4
4
|
"description": "The css generator for css bamboo",
|
|
5
5
|
"homepage": "https://bamboocss.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"pluralize": "8.0.0",
|
|
39
39
|
"postcss": "8.5.26",
|
|
40
40
|
"ts-pattern": "5.9.0",
|
|
41
|
-
"@bamboocss/core": "1.20.
|
|
42
|
-
"@bamboocss/is-valid-prop": "^1.20.
|
|
43
|
-
"@bamboocss/logger": "1.20.
|
|
44
|
-
"@bamboocss/shared": "1.20.
|
|
45
|
-
"@bamboocss/token-dictionary": "1.20.
|
|
46
|
-
"@bamboocss/types": "1.20.
|
|
41
|
+
"@bamboocss/core": "1.20.4",
|
|
42
|
+
"@bamboocss/is-valid-prop": "^1.20.4",
|
|
43
|
+
"@bamboocss/logger": "1.20.4",
|
|
44
|
+
"@bamboocss/shared": "1.20.4",
|
|
45
|
+
"@bamboocss/token-dictionary": "1.20.4",
|
|
46
|
+
"@bamboocss/types": "1.20.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/pluralize": "0.0.33"
|