@postenbring/hedwig-react
Advanced tools
Comparing version 0.0.0-convert-link-to-pure-css-XUJw4VAo-20231122124325 to 0.0.0-fix-failing-build-20231123103522
@@ -6,3 +6,5 @@ export { ButtonProps, PrimaryButton, SecondaryButton } from './button/button.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'; |
@@ -53,2 +53,4 @@ "use strict"; | ||
Badge: () => Badge, | ||
Box: () => Box, | ||
BoxCloseButton: () => BoxCloseButton, | ||
DarkBadge: () => DarkBadge, | ||
@@ -60,2 +62,3 @@ DescriptionDetails: () => DescriptionDetails, | ||
ListItem: () => ListItem, | ||
Message: () => Message, | ||
OrderedList: () => OrderedList, | ||
@@ -70,2 +73,8 @@ PrimaryButton: () => PrimaryButton, | ||
// 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 | ||
@@ -129,2 +138,8 @@ var import_clsx = require("clsx"); | ||
// 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 | ||
@@ -163,2 +178,8 @@ var import_clsx2 = require("clsx"); | ||
// 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 | ||
@@ -206,2 +227,9 @@ var import_clsx3 = require("clsx"); | ||
// 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_list = require("@postenbring/hedwig-css/dist/list/list.css"); | ||
// src/list/description-list.tsx | ||
@@ -280,5 +308,118 @@ var import_clsx4 = require("clsx"); | ||
UnorderedList.displayName = "UnorderedList"; | ||
// 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 | ||
var import_react = require("react"); | ||
var import_clsx6 = require("clsx"); | ||
var import_typed_classname6 = require("@postenbring/hedwig-css/typed-classname/index.mjs"); | ||
var import_jsx_runtime6 = require("react/jsx-runtime"); | ||
var Box = (0, import_react.forwardRef)( | ||
(_a, ref) => { | ||
var _b = _a, { | ||
as: Component = "div", | ||
variant = "light-grey", | ||
hideCloseButton, | ||
onClose: onCloseProp, | ||
closed: closedProp, | ||
closeButtonProps, | ||
children, | ||
className | ||
} = _b, rest = __objRest(_b, [ | ||
"as", | ||
"variant", | ||
"hideCloseButton", | ||
"onClose", | ||
"closed", | ||
"closeButtonProps", | ||
"children", | ||
"className" | ||
]); | ||
const [closedState, setClosedState] = (0, import_react.useState)(false); | ||
const onClose = (0, import_react.useCallback)(() => { | ||
if (onCloseProp) { | ||
const result = onCloseProp(); | ||
if (result === true) { | ||
setClosedState(true); | ||
} | ||
} else { | ||
setClosedState(true); | ||
} | ||
}, []); | ||
const closed = closedProp != null ? closedProp : closedState; | ||
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)( | ||
Component, | ||
__spreadProps(__spreadValues({ | ||
className: (0, import_clsx6.clsx)( | ||
(0, import_typed_classname6.t)("hds-box"), | ||
(0, import_typed_classname6.t)(`hds-box--${variant}`), | ||
{ [(0, import_typed_classname6.t)("hds-box--closed")]: closed }, | ||
className | ||
), | ||
ref | ||
}, rest), { | ||
children: [ | ||
!hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)), | ||
children | ||
] | ||
}) | ||
); | ||
} | ||
); | ||
Box.displayName = "Box"; | ||
var BoxCloseButton = (0, import_react.forwardRef)( | ||
(_a, ref) => { | ||
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]); | ||
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)( | ||
"button", | ||
__spreadValues({ | ||
className: (0, import_clsx6.clsx)((0, import_typed_classname6.t)("hds-box__close-button"), className), | ||
ref, | ||
type: "button" | ||
}, rest) | ||
); | ||
} | ||
); | ||
BoxCloseButton.displayName = "BoxCloseButton"; | ||
// 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 | ||
var import_react2 = require("react"); | ||
var import_clsx7 = require("clsx"); | ||
var import_typed_classname7 = require("@postenbring/hedwig-css/typed-classname/index.mjs"); | ||
var import_jsx_runtime7 = 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)( | ||
Box, | ||
__spreadProps(__spreadValues({ | ||
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)("div", { className: (0, import_clsx7.clsx)((0, import_typed_classname7.t)("hds-message--neutral__icon"), iconClassName), children: icon }), | ||
children | ||
] | ||
}) | ||
); | ||
} | ||
); | ||
Message.displayName = "Message"; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
Badge, | ||
Box, | ||
BoxCloseButton, | ||
DarkBadge, | ||
@@ -290,2 +431,3 @@ DescriptionDetails, | ||
ListItem, | ||
Message, | ||
OrderedList, | ||
@@ -292,0 +434,0 @@ PrimaryButton, |
{ | ||
"name": "@postenbring/hedwig-react", | ||
"version": "0.0.0-convert-link-to-pure-css-XUJw4VAo-20231122124325", | ||
"version": "0.0.0-fix-failing-build-20231123103522", | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"sideEffects": false, | ||
"sideEffects": true, | ||
"license": "MIT", | ||
@@ -29,4 +29,4 @@ "files": [ | ||
"dependencies": { | ||
"@postenbring/hedwig-css": "0.0.0-convert-link-to-pure-css-XUJw4VAo-20231122124325", | ||
"@postenbring/hedwig-tokens": "0.0.0-convert-link-to-pure-css-XUJw4VAo-20231122124325", | ||
"@postenbring/hedwig-css": "0.0.0-fix-failing-build-20231123103522", | ||
"@postenbring/hedwig-tokens": "0.0.0-fix-failing-build-20231123103522", | ||
"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
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
111171
73
2913
+ Added@postenbring/hedwig-css@0.0.0-fix-failing-build-20231123103522(transitive)
+ Added@postenbring/hedwig-tokens@0.0.0-fix-failing-build-20231123103522(transitive)
- Removed@postenbring/hedwig-css@0.0.0-convert-link-to-pure-css-XUJw4VAo-20231122124325(transitive)
- Removed@postenbring/hedwig-tokens@0.0.0-convert-link-to-pure-css-XUJw4VAo-20231122124325(transitive)
Updated@postenbring/hedwig-css@0.0.0-fix-failing-build-20231123103522
Updated@postenbring/hedwig-tokens@0.0.0-fix-failing-build-20231123103522