@postenbring/hedwig-react
Advanced tools
Comparing version 0.0.0-box-pEjLq4Vx-20231118025054 to 0.0.0-box-pEjLq4Vx-20231120172417
import 'react'; | ||
export { a as Box, c as BoxCloseButton, b as BoxCloseButtonProps, B as BoxProps } from '../box-OpbVH1tp.js'; | ||
export { a as Box, c as BoxCloseButton, b as BoxCloseButtonProps, B as BoxProps } from '../index-OpbVH1tp.js'; |
@@ -1,13 +0,2 @@ | ||
import { B as BoxProps, O as OverridableComponent } from '../box-OpbVH1tp.js'; | ||
export { a as Box, c as BoxCloseButton, b as BoxCloseButtonProps } from '../box-OpbVH1tp.js'; | ||
import React__default from 'react'; | ||
type MessageProps = ({ | ||
variant?: "success" | "attention" | "warning"; | ||
} | { | ||
variant: "neutral"; | ||
icon: React__default.ReactNode; | ||
}) & Omit<BoxProps, "variant">; | ||
declare const Message: OverridableComponent<MessageProps, HTMLDivElement>; | ||
export { BoxProps, Message, type MessageProps }; | ||
export { a as Box, c as BoxCloseButton, b as BoxCloseButtonProps, B as BoxProps } from '../index-OpbVH1tp.js'; | ||
import 'react'; |
@@ -53,4 +53,3 @@ "use strict"; | ||
Box: () => Box, | ||
BoxCloseButton: () => BoxCloseButton, | ||
Message: () => Message | ||
BoxCloseButton: () => BoxCloseButton | ||
}); | ||
@@ -61,3 +60,3 @@ module.exports = __toCommonJS(box_exports); | ||
var import_base = require("@postenbring/hedwig-css/dist/base.css"); | ||
var import_box2 = require("@postenbring/hedwig-css/dist/box/box.css"); | ||
var import_box = require("@postenbring/hedwig-css/dist/box/box.css"); | ||
var import_message = require("@postenbring/hedwig-css/dist/box/message.css"); | ||
@@ -137,32 +136,6 @@ | ||
BoxCloseButton.displayName = "BoxCloseButton"; | ||
// src/box/message.tsx | ||
var import_react2 = require("react"); | ||
var import_clsx2 = require("clsx"); | ||
var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname/index.mjs"); | ||
var import_jsx_runtime2 = require("react/jsx-runtime"); | ||
var Message = (0, import_react2.forwardRef)( | ||
(_a, ref) => { | ||
var _b = _a, { children, className, variant = "success", icon } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon"]); | ||
icon; | ||
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)( | ||
Box, | ||
__spreadProps(__spreadValues({ | ||
className: (0, import_clsx2.clsx)((0, import_typed_classname2.t)(`hds--message`), (0, import_typed_classname2.t)(`hds-box--message-${variant}`), className), | ||
ref | ||
}, rest), { | ||
children: [ | ||
variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: (0, import_clsx2.clsx)((0, import_typed_classname2.t)("hds-box--message-neutral__icon")), children: icon }), | ||
children | ||
] | ||
}) | ||
); | ||
} | ||
); | ||
Message.displayName = "Message"; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
Box, | ||
BoxCloseButton, | ||
Message | ||
BoxCloseButton | ||
}); |
@@ -5,6 +5,6 @@ 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/index.js'; | ||
export { a as Box, c as BoxCloseButton, b as BoxCloseButtonProps, B as BoxProps } from './box-OpbVH1tp.js'; | ||
export { Message, MessageProps } from './box/index.js'; | ||
export { ListItem, ListItemProps, ListProps, OrderedList, UnorderedList } from './list/list.js'; | ||
export { a as Box, c as BoxCloseButton, b as BoxCloseButtonProps, B as BoxProps } from './index-OpbVH1tp.js'; | ||
export { Message, MessageProps } from './message/message.js'; | ||
import 'react/jsx-runtime'; | ||
import 'react'; |
@@ -351,3 +351,3 @@ "use strict"; | ||
// src/box/message.tsx | ||
// src/message/message.tsx | ||
var import_react2 = require("react"); | ||
@@ -359,12 +359,11 @@ var import_clsx7 = require("clsx"); | ||
(_a, ref) => { | ||
var _b = _a, { children, className, variant = "success", icon } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon"]); | ||
icon; | ||
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)( | ||
Box, | ||
__spreadProps(__spreadValues({ | ||
className: (0, import_clsx7.clsx)((0, import_typed_classname7.t)(`hds--message`), (0, import_typed_classname7.t)(`hds-box--message-${variant}`), className), | ||
className: (0, import_clsx7.clsx)((0, import_typed_classname7.t)(`hds-message`), (0, import_typed_classname7.t)(`hds-message--${variant}`), className), | ||
ref | ||
}, rest), { | ||
children: [ | ||
variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: (0, import_clsx7.clsx)((0, import_typed_classname7.t)("hds-box--message-neutral__icon")), children: icon }), | ||
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 }), | ||
children | ||
@@ -371,0 +370,0 @@ ] |
export { DescriptionDetails, DescriptionDetailsProps, default as DescriptionList, DescriptionListProps, DescriptionTerm, DescriptionTermProps } from './description-list.js'; | ||
import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
import * as React from 'react'; | ||
import { HTMLAttributes } from 'react'; | ||
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>[]; | ||
/** | ||
* Inherit list styles or do not show these | ||
*/ | ||
listStyle?: "inherit" | "no-bullets"; | ||
/** | ||
* Sets the size of the items (font) | ||
*/ | ||
size?: "small" | "medium" | "large"; | ||
} | ||
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; | ||
declare namespace UnorderedList { | ||
var displayName: string; | ||
} | ||
declare function OrderedList(props: ListProps): react_jsx_runtime.JSX.Element; | ||
declare namespace OrderedList { | ||
var displayName: string; | ||
} | ||
export { ListItem, type ListItemProps, type ListProps, OrderedList, UnorderedList }; | ||
export { ListItem, ListItemProps, ListProps, OrderedList, UnorderedList } from './list.js'; | ||
import 'react/jsx-runtime'; | ||
import 'react'; |
{ | ||
"name": "@postenbring/hedwig-react", | ||
"version": "0.0.0-box-pEjLq4Vx-20231118025054", | ||
"version": "0.0.0-box-pEjLq4Vx-20231120172417", | ||
"main": "./dist/index.js", | ||
@@ -29,4 +29,4 @@ "module": "./dist/index.mjs", | ||
"dependencies": { | ||
"@postenbring/hedwig-css": "0.0.0-box-pEjLq4Vx-20231118025054", | ||
"@postenbring/hedwig-tokens": "0.0.0-box-pEjLq4Vx-20231118025054", | ||
"@postenbring/hedwig-css": "0.0.0-box-pEjLq4Vx-20231120172417", | ||
"@postenbring/hedwig-tokens": "0.0.0-box-pEjLq4Vx-20231120172417", | ||
"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
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
108835
73
2880
+ Added@postenbring/hedwig-css@0.0.0-box-pEjLq4Vx-20231120172417(transitive)
+ Added@postenbring/hedwig-tokens@0.0.0-box-pEjLq4Vx-20231120172417(transitive)
- Removed@postenbring/hedwig-css@0.0.0-box-pEjLq4Vx-20231118025054(transitive)
- Removed@postenbring/hedwig-tokens@0.0.0-box-pEjLq4Vx-20231118025054(transitive)
Updated@postenbring/hedwig-css@0.0.0-box-pEjLq4Vx-20231120172417
Updated@postenbring/hedwig-tokens@0.0.0-box-pEjLq4Vx-20231120172417