@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.cjs.js CHANGED
@@ -37830,17 +37830,19 @@ const Printer$1 = (_a) => {
37830
37830
  var _b = _a, {
37831
37831
  children,
37832
37832
  className,
37833
+ id,
37833
37834
  onAfterPrint = () => {
37834
37835
  }
37835
37836
  } = _b, props = __objRest$1(_b, [
37836
37837
  "children",
37837
37838
  "className",
37839
+ "id",
37838
37840
  "onAfterPrint"
37839
37841
  ]);
37840
37842
  const contentRef = React.useRef(null);
37841
37843
  const reactToPrintFn = libExports.useReactToPrint({ contentRef, onAfterPrint });
37842
37844
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
37843
- children ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `cur-pointer ${className}`, onClick: reactToPrintFn, children }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
37845
+ children ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id, className: `cur-pointer ${className}`, onClick: reactToPrintFn, children }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
37844
37846
  "button",
37845
37847
  {
37846
37848
  onClick: reactToPrintFn,