Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@postenbring/hedwig-react

Package Overview
Dependencies
Maintainers
3
Versions
477
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@postenbring/hedwig-react - npm Package Compare versions

Comparing version 0.0.0-badge-20231116111626 to 0.0.0-font-size-and-line-height-with-min-max-fluid-20231117120127

dist/badge/badge.d.mts

40

dist/button/index.d.ts

@@ -1,37 +0,3 @@

import * as react_jsx_runtime from 'react/jsx-runtime';
import * as React from 'react';
interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "style"> {
/**
* The height, font size and padding of the button
*/
size?: "small" | "medium" | "large";
/**
* Make the button use 100% width available.
* Using the "mobile" it only stretch to full width on smaller screens
*/
fullWidth?: boolean | "mobile";
/**
* The background of the button.
*/
fill?: "contained" | "outlined";
children: React.ReactNode;
buttonRef?: React.ForwardedRef<HTMLButtonElement>;
}
/**
* ## TODO
*
* - [ ] Handle links that looks like buttons
* - [ ] Revisit how to handle outline
* - [ ] Figure out outline-white
*/
declare function PrimaryButton(props: ButtonProps): react_jsx_runtime.JSX.Element;
declare namespace PrimaryButton {
var displayName: string;
}
declare function SecondaryButton(props: ButtonProps): react_jsx_runtime.JSX.Element;
declare namespace SecondaryButton {
var displayName: string;
}
export { PrimaryButton, SecondaryButton };
export { ButtonProps, PrimaryButton, SecondaryButton } from './button.js';
import 'react/jsx-runtime';
import 'react';

@@ -56,2 +56,3 @@ "use strict";

module.exports = __toCommonJS(button_exports);
var import_fonts = require("@postenbring/hedwig-tokens/tokens-output/css/fonts.css");
var import_tokens = require("@postenbring/hedwig-tokens/tokens-output/css/tokens.css");

@@ -63,3 +64,3 @@ var import_base = require("@postenbring/hedwig-css/dist/base.css");

var import_clsx = require("clsx");
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname.mjs");
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");

@@ -104,4 +105,3 @@ // src/utils.ts

}),
ref: buttonRef,
type: "button"
ref: buttonRef
}, rest), {

@@ -108,0 +108,0 @@ children

@@ -1,51 +0,6 @@

export { PrimaryButton, SecondaryButton } from './button/index.js';
import * as react_jsx_runtime from 'react/jsx-runtime';
import * as React from 'react';
interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "className" | "style"> {
/**
* The visual style of the link
*/
variant?: "underline" | "solid" | "inverted" | "no-underline";
/**
* Font size of the link
*/
size?: "small" | "medium" | "large";
children: React.ReactNode;
anchorRef?: React.ForwardedRef<HTMLAnchorElement>;
}
/**
* ## TODO
*
* - [ ] Handle button styling
*/
declare function Link({ children, variant, size, anchorRef, ...rest }: LinkProps): react_jsx_runtime.JSX.Element;
declare namespace Link {
var displayName: string;
}
interface BadgeProps extends Omit<React.AnchorHTMLAttributes<HTMLSpanElement>, "className" | "style"> {
/**
* Font size of the badge
*/
size?: "small" | "smaller";
children: React.ReactNode;
}
declare function Badge(props: BadgeProps): react_jsx_runtime.JSX.Element;
declare namespace Badge {
var displayName: string;
}
declare function DarkBadge(props: BadgeProps): react_jsx_runtime.JSX.Element;
declare namespace DarkBadge {
var displayName: string;
}
declare function WhiteBadge(props: BadgeProps): react_jsx_runtime.JSX.Element;
declare namespace WhiteBadge {
var displayName: string;
}
declare function WarningBadge(props: BadgeProps): react_jsx_runtime.JSX.Element;
declare namespace WarningBadge {
var displayName: string;
}
export { Badge, DarkBadge, Link, WarningBadge, WhiteBadge };
export { ButtonProps, PrimaryButton, SecondaryButton } from './button/button.js';
export { Link, LinkProps } from './link/link.js';
export { Badge, BadgeProps, DarkBadge, WarningBadge, WhiteBadge } from './badge/badge.js';
export { DescriptionDetails, DescriptionDetailsProps, default as DescriptionList, DescriptionListProps, DescriptionTerm, DescriptionTermProps } from './list/description-list.js';
import 'react/jsx-runtime';
import 'react';

@@ -54,2 +54,5 @@ "use strict";

DarkBadge: () => DarkBadge,
DescriptionDetails: () => DescriptionDetails,
DescriptionList: () => DescriptionList,
DescriptionTerm: () => DescriptionTerm,
Link: () => Link,

@@ -63,10 +66,5 @@ PrimaryButton: () => PrimaryButton,

// src/button/index.tsx
var import_tokens = require("@postenbring/hedwig-tokens/tokens-output/css/tokens.css");
var import_base = require("@postenbring/hedwig-css/dist/base.css");
var import_button = require("@postenbring/hedwig-css/dist/button/button.css");
// src/button/button.tsx
var import_clsx = require("clsx");
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname.mjs");
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");

@@ -111,4 +109,3 @@ // src/utils.ts

}),
ref: buttonRef,
type: "button"
ref: buttonRef
}, rest), {

@@ -129,10 +126,5 @@ children

// src/link/index.tsx
var import_tokens2 = require("@postenbring/hedwig-tokens/tokens-output/css/tokens.css");
var import_base2 = require("@postenbring/hedwig-css/dist/base.css");
var import_link = require("@postenbring/hedwig-css/dist/link/link.css");
// src/link/link.tsx
var import_clsx2 = require("clsx");
var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname.mjs");
var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
var import_jsx_runtime2 = require("react/jsx-runtime");

@@ -168,10 +160,5 @@ function Link(_a) {

// src/badge/index.tsx
var import_tokens3 = require("@postenbring/hedwig-tokens/tokens-output/css/tokens.css");
var import_base3 = require("@postenbring/hedwig-css/dist/base.css");
var import_badge = require("@postenbring/hedwig-css/dist/badge/badge.css");
// src/badge/badge.tsx
var import_clsx3 = require("clsx");
var import_typed_classname3 = require("@postenbring/hedwig-css/typed-classname.mjs");
var import_typed_classname3 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
var import_jsx_runtime3 = require("react/jsx-runtime");

@@ -189,3 +176,10 @@ function BaseBadge(_a) {

warnForStyleOverrides(rest);
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: (0, import_clsx3.clsx)((0, import_typed_classname3.t)("hds-badge"), (0, import_typed_classname3.t)(`hds-badge--${size}`), (0, import_typed_classname3.t)(`hds-badge--${variant}`)), children });
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
"span",
__spreadProps(__spreadValues({
className: (0, import_clsx3.clsx)((0, import_typed_classname3.t)("hds-badge"), (0, import_typed_classname3.t)(`hds-badge--${size}`), (0, import_typed_classname3.t)(`hds-badge--${variant}`))
}, rest), {
children
})
);
}

@@ -208,3 +202,33 @@ BaseBadge.displayName = "BaseBadge";

}
WarningBadge.displayName = "Badge";
WarningBadge.displayName = "WarningBadge";
// src/list/description-list.tsx
var import_clsx4 = require("clsx");
var import_typed_classname4 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
var import_jsx_runtime4 = require("react/jsx-runtime");
function DescriptionDetails(_a) {
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
warnForStyleOverrides(rest);
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dd", __spreadProps(__spreadValues({}, rest), { children }));
}
function DescriptionTerm(_a) {
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
warnForStyleOverrides(rest);
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dt", __spreadProps(__spreadValues({}, rest), { children }));
}
function DescriptionList(_a) {
var _b = _a, { variant = "vertical" } = _b, rest = __objRest(_b, ["variant"]);
warnForStyleOverrides(rest);
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
"dl",
__spreadValues({
className: (0, import_clsx4.clsx)((0, import_typed_classname4.t)("hds-description-list"), {
[(0, import_typed_classname4.t)("hds-description-list--horizontal")]: variant === "horizontal"
})
}, rest)
);
}
DescriptionList.displayName = "DescriptionList";
DescriptionTerm.displayName = "DescriptionTerm";
DescriptionDetails.displayName = "DescriptionDetails";
// Annotate the CommonJS export names for ESM import in node:

@@ -214,2 +238,5 @@ 0 && (module.exports = {

DarkBadge,
DescriptionDetails,
DescriptionList,
DescriptionTerm,
Link,

@@ -216,0 +243,0 @@ PrimaryButton,

{
"name": "@postenbring/hedwig-react",
"version": "0.0.0-badge-20231116111626",
"version": "0.0.0-font-size-and-line-height-with-min-max-fluid-20231117120127",
"main": "./dist/index.js",

@@ -25,8 +25,8 @@ "module": "./dist/index.mjs",

"react": "^18.2.0",
"tsup": "^7.2.0",
"tsup": "^7.3.0",
"typescript": "^5.2.2"
},
"dependencies": {
"@postenbring/hedwig-css": "0.0.0-badge-20231116111626",
"@postenbring/hedwig-tokens": "*",
"@postenbring/hedwig-css": "0.0.0-font-size-and-line-height-with-min-max-fluid-20231117120127",
"@postenbring/hedwig-tokens": "0.0.0-font-size-and-line-height-with-min-max-fluid-20231117120127",
"clsx": "^2.0.0"

@@ -33,0 +33,0 @@ },

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

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