@postenbring/hedwig-react
Advanced tools
Comparing version 0.0.0-box-pEjLq4Vx-20231121084506 to 0.0.0-ci-checks-9e3k0vB6-20231126132156
import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
import * as React from 'react'; | ||
interface BadgeProps extends Omit<React.AnchorHTMLAttributes<HTMLSpanElement>, "className" | "style"> { | ||
interface BadgeProps extends React.AnchorHTMLAttributes<HTMLSpanElement> { | ||
/** | ||
@@ -6,0 +6,0 @@ * Font size of the badge |
@@ -60,14 +60,2 @@ "use strict"; | ||
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs"); | ||
// src/utils.ts | ||
function warnForStyleOverrides(props) { | ||
if (props.className) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
if (props.styles) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
} | ||
// src/badge/badge.tsx | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
@@ -84,3 +72,2 @@ function BaseBadge(_a) { | ||
]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)( | ||
@@ -87,0 +74,0 @@ "span", |
@@ -66,14 +66,2 @@ "use strict"; | ||
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs"); | ||
// src/utils.ts | ||
function warnForStyleOverrides(props) { | ||
if (props.className) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
if (props.styles) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
} | ||
// src/badge/badge.tsx | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
@@ -90,3 +78,2 @@ function BaseBadge(_a) { | ||
]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)( | ||
@@ -93,0 +80,0 @@ "span", |
@@ -60,3 +60,3 @@ "use strict"; | ||
var import_box = require("@postenbring/hedwig-css/dist/box/box.css"); | ||
var import_message = require("@postenbring/hedwig-css/dist/box/message.css"); | ||
var import_message = require("@postenbring/hedwig-css/dist/message/message.css"); | ||
@@ -63,0 +63,0 @@ // src/box/box.tsx |
import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
import * as React from 'react'; | ||
interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "style"> { | ||
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> { | ||
/** | ||
@@ -6,0 +6,0 @@ * The height, font size and padding of the button |
@@ -58,14 +58,2 @@ "use strict"; | ||
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs"); | ||
// src/utils.ts | ||
function warnForStyleOverrides(props) { | ||
if (props.className) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
if (props.styles) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
} | ||
// src/button/button.tsx | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
@@ -88,3 +76,2 @@ function BaseButton(_a) { | ||
]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)( | ||
@@ -91,0 +78,0 @@ "button", |
@@ -64,14 +64,2 @@ "use strict"; | ||
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs"); | ||
// src/utils.ts | ||
function warnForStyleOverrides(props) { | ||
if (props.className) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
if (props.styles) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
} | ||
// src/button/button.tsx | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
@@ -94,3 +82,2 @@ function BaseButton(_a) { | ||
]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)( | ||
@@ -97,0 +84,0 @@ "button", |
@@ -5,3 +5,4 @@ export { ButtonProps, PrimaryButton, SecondaryButton } from './button/button.js'; | ||
export { DescriptionDetails, DescriptionDetailsProps, default as DescriptionList, DescriptionListProps, DescriptionTerm, DescriptionTermProps } from './list/description-list.js'; | ||
export { ListItem, ListItemProps, ListProps, OrderedList, UnorderedList } from './list/list.js'; | ||
export { ListProps, OrderedList, UnorderedList } from './list/list.js'; | ||
export { LinkList, LinkListProps } from './list/link-list.js'; | ||
export { a as Box, c as BoxCloseButton, b as BoxCloseButtonProps, B as BoxProps } from './index-OpbVH1tp.js'; | ||
@@ -8,0 +9,0 @@ export { Message, MessageProps } from './message/message.js'; |
@@ -60,3 +60,3 @@ "use strict"; | ||
Link: () => Link, | ||
ListItem: () => ListItem, | ||
LinkList: () => LinkList, | ||
Message: () => Message, | ||
@@ -72,17 +72,11 @@ OrderedList: () => OrderedList, | ||
// src/button/index.tsx | ||
var import_fonts = require("@postenbring/hedwig-tokens/tokens-output/css/fonts.css"); | ||
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/index.mjs"); | ||
// src/utils.ts | ||
function warnForStyleOverrides(props) { | ||
if (props.className) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
if (props.styles) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
} | ||
// src/button/button.tsx | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
@@ -105,3 +99,2 @@ function BaseButton(_a) { | ||
]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)( | ||
@@ -132,2 +125,8 @@ "button", | ||
// src/link/index.tsx | ||
var import_fonts2 = require("@postenbring/hedwig-tokens/tokens-output/css/fonts.css"); | ||
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 | ||
@@ -149,3 +148,2 @@ var import_clsx2 = require("clsx"); | ||
]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)( | ||
@@ -167,2 +165,8 @@ "a", | ||
// src/badge/index.tsx | ||
var import_fonts3 = require("@postenbring/hedwig-tokens/tokens-output/css/fonts.css"); | ||
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 | ||
@@ -182,3 +186,2 @@ var import_clsx3 = require("clsx"); | ||
]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)( | ||
@@ -211,2 +214,9 @@ "span", | ||
// src/list/index.tsx | ||
var import_fonts4 = require("@postenbring/hedwig-tokens/tokens-output/css/fonts.css"); | ||
var import_tokens4 = require("@postenbring/hedwig-tokens/tokens-output/css/tokens.css"); | ||
var import_base4 = require("@postenbring/hedwig-css/dist/base.css"); | ||
var import_description_list = require("@postenbring/hedwig-css/dist/list/description-list.css"); | ||
var import_list2 = require("@postenbring/hedwig-css/dist/list/list.css"); | ||
// src/list/description-list.tsx | ||
@@ -218,3 +228,2 @@ var import_clsx4 = require("clsx"); | ||
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dd", __spreadProps(__spreadValues({}, rest), { children })); | ||
@@ -224,3 +233,2 @@ } | ||
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dt", __spreadProps(__spreadValues({}, rest), { children })); | ||
@@ -230,3 +238,2 @@ } | ||
var _b = _a, { variant = "vertical" } = _b, rest = __objRest(_b, ["variant"]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)( | ||
@@ -261,3 +268,2 @@ "dl", | ||
]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)( | ||
@@ -274,7 +280,2 @@ ListTag, | ||
} | ||
function ListItem(_a) { | ||
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("li", __spreadProps(__spreadValues({}, rest), { children })); | ||
} | ||
function UnorderedList(props) { | ||
@@ -286,3 +287,2 @@ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children })); | ||
} | ||
ListItem.displayName = "ListItem"; | ||
BaseList.displayName = "BaseList"; | ||
@@ -292,2 +292,16 @@ OrderedList.displayName = "UnorderedList"; | ||
// src/list/link-list.tsx | ||
var import_jsx_runtime6 = require("react/jsx-runtime"); | ||
function LinkList(props) { | ||
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children })); | ||
} | ||
LinkList.displayName = "LinkList"; | ||
// src/box/index.tsx | ||
var import_fonts5 = require("@postenbring/hedwig-tokens/tokens-output/css/fonts.css"); | ||
var import_tokens5 = require("@postenbring/hedwig-tokens/tokens-output/css/tokens.css"); | ||
var import_base5 = require("@postenbring/hedwig-css/dist/base.css"); | ||
var import_box = require("@postenbring/hedwig-css/dist/box/box.css"); | ||
var import_message = require("@postenbring/hedwig-css/dist/message/message.css"); | ||
// src/box/box.tsx | ||
@@ -297,3 +311,3 @@ var import_react = require("react"); | ||
var import_typed_classname6 = require("@postenbring/hedwig-css/typed-classname/index.mjs"); | ||
var import_jsx_runtime6 = require("react/jsx-runtime"); | ||
var import_jsx_runtime7 = require("react/jsx-runtime"); | ||
var Box = (0, import_react.forwardRef)( | ||
@@ -332,3 +346,3 @@ (_a, ref) => { | ||
const closed = closedProp != null ? closedProp : closedState; | ||
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)( | ||
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)( | ||
Component, | ||
@@ -345,3 +359,3 @@ __spreadProps(__spreadValues({ | ||
children: [ | ||
!hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)), | ||
!hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)), | ||
children | ||
@@ -357,3 +371,3 @@ ] | ||
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]); | ||
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)( | ||
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)( | ||
"button", | ||
@@ -370,2 +384,9 @@ __spreadValues({ | ||
// src/message/index.tsx | ||
var import_fonts6 = require("@postenbring/hedwig-tokens/tokens-output/css/fonts.css"); | ||
var import_tokens6 = require("@postenbring/hedwig-tokens/tokens-output/css/tokens.css"); | ||
var import_base6 = require("@postenbring/hedwig-css/dist/base.css"); | ||
var import_box3 = require("@postenbring/hedwig-css/dist/box/box.css"); | ||
var import_message2 = require("@postenbring/hedwig-css/dist/message/message.css"); | ||
// src/message/message.tsx | ||
@@ -375,7 +396,7 @@ var import_react2 = require("react"); | ||
var import_typed_classname7 = require("@postenbring/hedwig-css/typed-classname/index.mjs"); | ||
var import_jsx_runtime7 = require("react/jsx-runtime"); | ||
var import_jsx_runtime8 = require("react/jsx-runtime"); | ||
var Message = (0, import_react2.forwardRef)( | ||
(_a, ref) => { | ||
var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]); | ||
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)( | ||
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)( | ||
Box, | ||
@@ -387,3 +408,3 @@ __spreadProps(__spreadValues({ | ||
children: [ | ||
variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: (0, import_clsx7.clsx)((0, import_typed_classname7.t)("hds-message--neutral__icon"), iconClassName), children: icon }), | ||
variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: (0, import_clsx7.clsx)((0, import_typed_classname7.t)("hds-message--neutral__icon"), iconClassName), children: icon }), | ||
children | ||
@@ -406,3 +427,3 @@ ] | ||
Link, | ||
ListItem, | ||
LinkList, | ||
Message, | ||
@@ -409,0 +430,0 @@ OrderedList, |
@@ -63,14 +63,2 @@ "use strict"; | ||
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs"); | ||
// src/utils.ts | ||
function warnForStyleOverrides(props) { | ||
if (props.className) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
if (props.styles) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
} | ||
// src/link/link.tsx | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
@@ -89,3 +77,2 @@ function Link(_a) { | ||
]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)( | ||
@@ -92,0 +79,0 @@ "a", |
import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
import * as React from 'react'; | ||
interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "className" | "style"> { | ||
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> { | ||
/** | ||
@@ -6,0 +6,0 @@ * The visual style of the link |
@@ -57,14 +57,2 @@ "use strict"; | ||
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs"); | ||
// src/utils.ts | ||
function warnForStyleOverrides(props) { | ||
if (props.className) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
if (props.styles) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
} | ||
// src/link/link.tsx | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
@@ -83,3 +71,2 @@ function Link(_a) { | ||
]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)( | ||
@@ -86,0 +73,0 @@ "a", |
import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
import React__default, { ReactNode, HTMLAttributes } from 'react'; | ||
import { HTMLAttributes, ReactNode } from 'react'; | ||
type DescriptionDetailsProps = DLDTProps; | ||
type DescriptionTermProps = DLDTProps; | ||
interface DLDTProps extends Omit<React__default.HTMLAttributes<HTMLBaseElement>, "className" | "style"> { | ||
interface DLDTProps extends HTMLAttributes<HTMLBaseElement> { | ||
children: ReactNode; | ||
} | ||
interface DescriptionListProps extends Omit<HTMLAttributes<HTMLDListElement>, "className" | "style"> { | ||
interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> { | ||
/** | ||
@@ -11,0 +11,0 @@ * Either `DescriptionDetails` or `DescriptionTerm` elements |
@@ -60,18 +60,5 @@ "use strict"; | ||
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs"); | ||
// src/utils.ts | ||
function warnForStyleOverrides(props) { | ||
if (props.className) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
if (props.styles) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
} | ||
// src/list/description-list.tsx | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
function DescriptionDetails(_a) { | ||
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", __spreadProps(__spreadValues({}, rest), { children })); | ||
@@ -81,3 +68,2 @@ } | ||
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", __spreadProps(__spreadValues({}, rest), { children })); | ||
@@ -87,3 +73,2 @@ } | ||
var _b = _a, { variant = "vertical" } = _b, rest = __objRest(_b, ["variant"]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)( | ||
@@ -90,0 +75,0 @@ "dl", |
export { DescriptionDetails, DescriptionDetailsProps, default as DescriptionList, DescriptionListProps, DescriptionTerm, DescriptionTermProps } from './description-list.js'; | ||
export { ListItem, ListItemProps, ListProps, OrderedList, UnorderedList } from './list.js'; | ||
export { ListProps, OrderedList, UnorderedList } from './list.js'; | ||
export { LinkList, LinkListProps } from './link-list.js'; | ||
import 'react/jsx-runtime'; | ||
import 'react'; |
@@ -55,3 +55,3 @@ "use strict"; | ||
DescriptionTerm: () => DescriptionTerm, | ||
ListItem: () => ListItem, | ||
LinkList: () => LinkList, | ||
OrderedList: () => OrderedList, | ||
@@ -65,3 +65,3 @@ UnorderedList: () => UnorderedList | ||
var import_description_list = require("@postenbring/hedwig-css/dist/list/description-list.css"); | ||
var import_list = require("@postenbring/hedwig-css/dist/list/list.css"); | ||
var import_list2 = require("@postenbring/hedwig-css/dist/list/list.css"); | ||
@@ -71,18 +71,5 @@ // src/list/description-list.tsx | ||
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs"); | ||
// src/utils.ts | ||
function warnForStyleOverrides(props) { | ||
if (props.className) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
if (props.styles) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
} | ||
// src/list/description-list.tsx | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
function DescriptionDetails(_a) { | ||
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", __spreadProps(__spreadValues({}, rest), { children })); | ||
@@ -92,3 +79,2 @@ } | ||
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", __spreadProps(__spreadValues({}, rest), { children })); | ||
@@ -98,3 +84,2 @@ } | ||
var _b = _a, { variant = "vertical" } = _b, rest = __objRest(_b, ["variant"]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)( | ||
@@ -129,3 +114,2 @@ "dl", | ||
]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)( | ||
@@ -142,7 +126,2 @@ ListTag, | ||
} | ||
function ListItem(_a) { | ||
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("li", __spreadProps(__spreadValues({}, rest), { children })); | ||
} | ||
function UnorderedList(props) { | ||
@@ -154,6 +133,12 @@ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children })); | ||
} | ||
ListItem.displayName = "ListItem"; | ||
BaseList.displayName = "BaseList"; | ||
OrderedList.displayName = "UnorderedList"; | ||
UnorderedList.displayName = "UnorderedList"; | ||
// src/list/link-list.tsx | ||
var import_jsx_runtime3 = require("react/jsx-runtime"); | ||
function LinkList(props) { | ||
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children })); | ||
} | ||
LinkList.displayName = "LinkList"; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -164,5 +149,5 @@ 0 && (module.exports = { | ||
DescriptionTerm, | ||
ListItem, | ||
LinkList, | ||
OrderedList, | ||
UnorderedList | ||
}); |
@@ -5,7 +5,4 @@ import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
interface ListItemProps extends Omit<React.HTMLAttributes<HTMLLIElement>, "className" | "style"> { | ||
children: React.ReactNode; | ||
} | ||
interface ListProps extends Omit<HTMLAttributes<HTMLOListElement | HTMLUListElement>, "className" | "style"> { | ||
children: React.ReactElement<ListItemProps> | React.ReactElement<ListItemProps>[]; | ||
interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> { | ||
children: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[]; | ||
/** | ||
@@ -20,6 +17,2 @@ * Inherit list styles or do not show these | ||
} | ||
declare function ListItem({ children, ...rest }: ListItemProps): react_jsx_runtime.JSX.Element; | ||
declare namespace ListItem { | ||
var displayName: string; | ||
} | ||
declare function UnorderedList(props: ListProps): react_jsx_runtime.JSX.Element; | ||
@@ -34,2 +27,2 @@ declare namespace UnorderedList { | ||
export { ListItem, type ListItemProps, type ListProps, OrderedList, UnorderedList }; | ||
export { type ListProps, OrderedList, UnorderedList }; |
@@ -52,3 +52,2 @@ "use strict"; | ||
__export(list_exports, { | ||
ListItem: () => ListItem, | ||
OrderedList: () => OrderedList, | ||
@@ -60,14 +59,2 @@ UnorderedList: () => UnorderedList | ||
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs"); | ||
// src/utils.ts | ||
function warnForStyleOverrides(props) { | ||
if (props.className) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
if (props.styles) { | ||
console.warn("Overriding styles are not premited"); | ||
} | ||
} | ||
// src/list/list.tsx | ||
var import_jsx_runtime = require("react/jsx-runtime"); | ||
@@ -86,3 +73,2 @@ function BaseList(_a) { | ||
]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)( | ||
@@ -99,7 +85,2 @@ ListTag, | ||
} | ||
function ListItem(_a) { | ||
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]); | ||
warnForStyleOverrides(rest); | ||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", __spreadProps(__spreadValues({}, rest), { children })); | ||
} | ||
function UnorderedList(props) { | ||
@@ -111,3 +92,2 @@ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children })); | ||
} | ||
ListItem.displayName = "ListItem"; | ||
BaseList.displayName = "BaseList"; | ||
@@ -118,5 +98,4 @@ OrderedList.displayName = "UnorderedList"; | ||
0 && (module.exports = { | ||
ListItem, | ||
OrderedList, | ||
UnorderedList | ||
}); |
{ | ||
"name": "@postenbring/hedwig-react", | ||
"version": "0.0.0-box-pEjLq4Vx-20231121084506", | ||
"version": "0.0.0-ci-checks-9e3k0vB6-20231126132156", | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"sideEffects": false, | ||
"sideEffects": true, | ||
"license": "MIT", | ||
@@ -12,26 +12,26 @@ "files": [ | ||
], | ||
"scripts": { | ||
"build": "tsup --format esm,cjs --dts --external react", | ||
"dev": "tsup --format esm,cjs --watch --dts --external react", | ||
"lint": "eslint src/", | ||
"typecheck": "tsc --noEmit", | ||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.2.37", | ||
"@types/react-dom": "^18.2.15", | ||
"eslint-config-custom": "*", | ||
"hedwig-tsconfig": "*", | ||
"react": "^18.2.0", | ||
"tsup": "^7.3.0", | ||
"typescript": "^5.2.2" | ||
"tsup": "^8.0.1", | ||
"typescript": "^5.2.2", | ||
"eslint-config-custom": "0.0.0-ci-checks-9e3k0vB6-20231126132156", | ||
"hedwig-tsconfig": "0.0.0" | ||
}, | ||
"dependencies": { | ||
"@postenbring/hedwig-css": "0.0.0-box-pEjLq4Vx-20231121084506", | ||
"@postenbring/hedwig-tokens": "0.0.0-box-pEjLq4Vx-20231121084506", | ||
"clsx": "^2.0.0" | ||
"clsx": "^2.0.0", | ||
"@postenbring/hedwig-css": "0.0.0-ci-checks-9e3k0vB6-20231126132156", | ||
"@postenbring/hedwig-tokens": "0.0.0-ci-checks-9e3k0vB6-20231126132156" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"build": "tsup --format esm,cjs --dts --external react", | ||
"dev": "tsup --format esm,cjs --watch --dts --external react", | ||
"lint": "eslint src/", | ||
"typecheck": "tsc --noEmit", | ||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" | ||
} | ||
} | ||
} |
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 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 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 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 not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119708
82
3033
+ Added@postenbring/hedwig-css@0.0.0-ci-checks-9e3k0vB6-20231126132156(transitive)
+ Added@postenbring/hedwig-tokens@0.0.0-ci-checks-9e3k0vB6-20231126132156(transitive)
- Removed@postenbring/hedwig-css@0.0.0-box-pEjLq4Vx-20231121084506(transitive)
- Removed@postenbring/hedwig-tokens@0.0.0-box-pEjLq4Vx-20231121084506(transitive)
Updated@postenbring/hedwig-css@0.0.0-ci-checks-9e3k0vB6-20231126132156
Updated@postenbring/hedwig-tokens@0.0.0-ci-checks-9e3k0vB6-20231126132156