@julo-ui/typography
Advanced tools
Comparing version 1.0.0-beta.4 to 1.0.0-beta.5
@@ -62,13 +62,5 @@ "use strict"; | ||
var import_css3 = require("@emotion/css"); | ||
var import_react2 = require("react"); | ||
var import_react = require("react"); | ||
var import_callAllFn = __toESM(require_callAllFn()); | ||
// ../../core/system/src/forward-ref.tsx | ||
var import_react = require("react"); | ||
function forwardRef(component) { | ||
return (0, import_react.forwardRef)(component); | ||
} | ||
var forward_ref_default = forwardRef; | ||
// src/components/Heading/Heading.tsx | ||
var import_system = require("@julo-ui/system"); | ||
var import_provider = require("@julo-ui/provider"); | ||
@@ -124,3 +116,3 @@ | ||
// src/components/Heading/Heading.tsx | ||
var Heading = forward_ref_default((props, ref) => { | ||
var Heading = (0, import_system.forwardRef)((props, ref) => { | ||
const { asChild, headingType, children, className, onClick, ...resProps } = props; | ||
@@ -131,3 +123,3 @@ const styleProps = omitHTMLProps(resProps); | ||
if (asChild) { | ||
if (!(0, import_react2.isValidElement)(children)) | ||
if (!(0, import_react.isValidElement)(children)) | ||
throw new Error("Please render an element"); | ||
@@ -137,3 +129,3 @@ const { props: childProps } = children; | ||
const lineHeight = theme.lineHeights[`h${headingType}`]; | ||
return (0, import_react2.cloneElement)(children, { | ||
return (0, import_react.cloneElement)(children, { | ||
...htmlProps, | ||
@@ -152,3 +144,3 @@ ...childProps, | ||
} | ||
return (0, import_react2.createElement)(`h${headingType}`, { | ||
return (0, import_react.createElement)(`h${headingType}`, { | ||
ref, | ||
@@ -166,4 +158,4 @@ children, | ||
}); | ||
var Heading_default = (0, import_react2.memo)(Heading); | ||
var Heading_default = (0, import_react.memo)(Heading); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = {}); |
@@ -64,13 +64,5 @@ "use strict"; | ||
var import_css3 = require("@emotion/css"); | ||
var import_react2 = require("react"); | ||
var import_react = require("react"); | ||
var import_callAllFn = __toESM(require_callAllFn()); | ||
// ../../core/system/src/forward-ref.tsx | ||
var import_react = require("react"); | ||
function forwardRef(component) { | ||
return (0, import_react.forwardRef)(component); | ||
} | ||
var forward_ref_default = forwardRef; | ||
// src/components/Heading/Heading.tsx | ||
var import_system = require("@julo-ui/system"); | ||
var import_provider = require("@julo-ui/provider"); | ||
@@ -126,3 +118,3 @@ | ||
// src/components/Heading/Heading.tsx | ||
var Heading = forward_ref_default((props, ref) => { | ||
var Heading = (0, import_system.forwardRef)((props, ref) => { | ||
const { asChild, headingType, children, className, onClick, ...resProps } = props; | ||
@@ -133,3 +125,3 @@ const styleProps = omitHTMLProps(resProps); | ||
if (asChild) { | ||
if (!(0, import_react2.isValidElement)(children)) | ||
if (!(0, import_react.isValidElement)(children)) | ||
throw new Error("Please render an element"); | ||
@@ -139,3 +131,3 @@ const { props: childProps } = children; | ||
const lineHeight = theme.lineHeights[`h${headingType}`]; | ||
return (0, import_react2.cloneElement)(children, { | ||
return (0, import_react.cloneElement)(children, { | ||
...htmlProps, | ||
@@ -154,3 +146,3 @@ ...childProps, | ||
} | ||
return (0, import_react2.createElement)(`h${headingType}`, { | ||
return (0, import_react.createElement)(`h${headingType}`, { | ||
ref, | ||
@@ -168,4 +160,4 @@ children, | ||
}); | ||
var Heading_default = (0, import_react2.memo)(Heading); | ||
var Heading_default = (0, import_react.memo)(Heading); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = {}); |
{ | ||
"name": "@julo-ui/typography", | ||
"version": "1.0.0-beta.4", | ||
"version": "1.0.0-beta.5", | ||
"description": "A Component used to give other component Typography style", | ||
@@ -29,6 +29,7 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@julo-ui/system": "0.0.1-alpha.1" | ||
"@julo-ui/system": "0.0.1-alpha.2" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=18" | ||
"react": ">=18", | ||
"@julo-ui/system": "0.0.1-alpha.2" | ||
}, | ||
@@ -35,0 +36,0 @@ "clean-package": "../../../clean-package.config.json", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
0
76455
4
2330