@postenbring/hedwig-react 0.0.72 → 0.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_tsup-dts-rollup.d.mts +14 -4
- package/dist/_tsup-dts-rollup.d.ts +14 -4
- package/dist/{chunk-E5O6ID3L.mjs → chunk-E2RTLHMZ.mjs} +4 -4
- package/dist/chunk-E2RTLHMZ.mjs.map +1 -0
- package/dist/help-text/help-text.js +3 -3
- package/dist/help-text/help-text.js.map +1 -1
- package/dist/help-text/help-text.mjs +1 -1
- package/dist/help-text/index.js +3 -3
- package/dist/help-text/index.js.map +1 -1
- package/dist/help-text/index.mjs +1 -1
- package/dist/index-no-css.js +3 -3
- package/dist/index-no-css.js.map +1 -1
- package/dist/index-no-css.mjs +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/chunk-E5O6ID3L.mjs.map +0 -1
package/dist/index-no-css.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1294,7 +1294,7 @@ var import_react22 = require("react");
|
|
|
1294
1294
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1295
1295
|
var HelpText = (0, import_react22.forwardRef)(
|
|
1296
1296
|
(_a, ref) => {
|
|
1297
|
-
var _b = _a, { children, className,
|
|
1297
|
+
var _b = _a, { children, className, helpText, title, side = "top", align = "start", boxProps } = _b, rest = __objRest(_b, ["children", "className", "helpText", "title", "side", "align", "boxProps"]);
|
|
1298
1298
|
return (
|
|
1299
1299
|
// NOTE: Using radix's [Popover component](https://www.radix-ui.com/primitives/docs/components/popover)
|
|
1300
1300
|
// In the future we can use the native popover api, but as of writing, though all browsers support it
|
|
@@ -1309,7 +1309,7 @@ var HelpText = (0, import_react22.forwardRef)(
|
|
|
1309
1309
|
title,
|
|
1310
1310
|
type: "button"
|
|
1311
1311
|
}, rest), {
|
|
1312
|
-
children
|
|
1312
|
+
children
|
|
1313
1313
|
})
|
|
1314
1314
|
) }),
|
|
1315
1315
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Popover.Content, { asChild: true, side, align, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
@@ -1318,7 +1318,7 @@ var HelpText = (0, import_react22.forwardRef)(
|
|
|
1318
1318
|
className: (0, import_typed_classname23.clsx)("hds-help-text-box", boxProps == null ? void 0 : boxProps.className),
|
|
1319
1319
|
children: [
|
|
1320
1320
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(BoxComponent.CloseButton, {}) }),
|
|
1321
|
-
|
|
1321
|
+
helpText
|
|
1322
1322
|
]
|
|
1323
1323
|
})
|
|
1324
1324
|
) }) })
|