@vygruppen/spor-react 11.3.0 → 11.3.1
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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +6 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/typography/Heading.tsx +4 -3
package/dist/index.mjs
CHANGED
@@ -2396,7 +2396,7 @@ var Heading2 = ({
|
|
2396
2396
|
id: externalId,
|
2397
2397
|
...props
|
2398
2398
|
}) => {
|
2399
|
-
const id = externalId ?? (autoId && typeof props.children === "string"
|
2399
|
+
const id = externalId ?? (autoId && typeof props.children === "string" ? slugify(props.children) : void 0);
|
2400
2400
|
const color = useColorModeValue("text.primary.light", "text.primary.dark");
|
2401
2401
|
return /* @__PURE__ */ React86__default.createElement(Text, { as, textStyle: variant, id, color, ...props });
|
2402
2402
|
};
|