@jingx/lottery-components-react-jsx 1.0.1 → 1.0.2

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/index.esm.js CHANGED
@@ -37810,17 +37810,19 @@ const Printer$1 = (_a) => {
37810
37810
  var _b = _a, {
37811
37811
  children,
37812
37812
  className,
37813
+ id,
37813
37814
  onAfterPrint = () => {
37814
37815
  }
37815
37816
  } = _b, props = __objRest$1(_b, [
37816
37817
  "children",
37817
37818
  "className",
37819
+ "id",
37818
37820
  "onAfterPrint"
37819
37821
  ]);
37820
37822
  const contentRef = useRef(null);
37821
37823
  const reactToPrintFn = libExports.useReactToPrint({ contentRef, onAfterPrint });
37822
37824
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
37823
- children ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `cur-pointer ${className}`, onClick: reactToPrintFn, children }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
37825
+ children ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id, className: `cur-pointer ${className}`, onClick: reactToPrintFn, children }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
37824
37826
  "button",
37825
37827
  {
37826
37828
  onClick: reactToPrintFn,