New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@julo-ui/typography

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@julo-ui/typography - npm Package Compare versions

Comparing version 1.0.0-beta.4 to 1.0.0-beta.5

dist/chunk-6SJYUVA6.mjs

22

dist/components/Heading/Heading.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc