@getpara/react-components 1.5.0 → 1.6.0

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.js CHANGED
@@ -1,4 +1,35 @@
1
1
  "use client";
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __spreadValues = (a, b) => {
10
+ for (var prop in b || (b = {}))
11
+ if (__hasOwnProp.call(b, prop))
12
+ __defNormalProp(a, prop, b[prop]);
13
+ if (__getOwnPropSymbols)
14
+ for (var prop of __getOwnPropSymbols(b)) {
15
+ if (__propIsEnum.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ }
18
+ return a;
19
+ };
20
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
+ var __objRest = (source, exclude) => {
22
+ var target = {};
23
+ for (var prop in source)
24
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
25
+ target[prop] = source[prop];
26
+ if (source != null && __getOwnPropSymbols)
27
+ for (var prop of __getOwnPropSymbols(source)) {
28
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
29
+ target[prop] = source[prop];
30
+ }
31
+ return target;
32
+ };
2
33
 
3
34
  // lib/components/stencil-generated/react-component-lib/createComponent.tsx
4
35
  import React2, { createElement } from "react";
@@ -114,7 +145,7 @@ var mergeRefs = (...refs) => {
114
145
  };
115
146
  var createForwardRef = (ReactComponent, displayName) => {
116
147
  const forwardRef = (props, ref) => {
117
- return /* @__PURE__ */ React.createElement(ReactComponent, { ...props, forwardedRef: ref });
148
+ return /* @__PURE__ */ React.createElement(ReactComponent, __spreadProps(__spreadValues({}, props), { forwardedRef: ref }));
118
149
  };
119
150
  forwardRef.displayName = displayName;
120
151
  return React.forwardRef(forwardRef);
@@ -140,7 +171,7 @@ var createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunct
140
171
  attachProps(this.componentEl, this.props, prevProps);
141
172
  }
142
173
  render() {
143
- const { children, forwardedRef, style, className, ref, ...cProps } = this.props;
174
+ const _a = this.props, { children, forwardedRef, style, className, ref } = _a, cProps = __objRest(_a, ["children", "forwardedRef", "style", "className", "ref"]);
144
175
  let propsToPass = Object.keys(cProps).reduce((acc, name) => {
145
176
  const value = cProps[name];
146
177
  if (name.indexOf("on") === 0 && name[2] === name[2].toUpperCase()) {
@@ -159,11 +190,10 @@ var createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunct
159
190
  if (manipulatePropsFunction) {
160
191
  propsToPass = manipulatePropsFunction(this.props, propsToPass);
161
192
  }
162
- const newProps = {
163
- ...propsToPass,
193
+ const newProps = __spreadProps(__spreadValues({}, propsToPass), {
164
194
  ref: mergeRefs(forwardedRef, this.setComponentElRef),
165
195
  style
166
- };
196
+ });
167
197
  return createElement(tagName, newProps, children);
168
198
  }
169
199
  static get displayName() {
package/dist/index.js.br CHANGED
Binary file
package/dist/index.js.gz CHANGED
Binary file
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": false
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/react-components",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Capsule Core React Components",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "copy": "node scripts/copy.cjs"
31
31
  },
32
32
  "dependencies": {
33
- "@getpara/core-components": "1.5.0"
33
+ "@getpara/core-components": "1.6.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/react": "^18.2.64",
@@ -42,5 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "0e3c1401b4f1da60b288cdde7695077c9bcbc48f"
45
+ "gitHead": "2dd6c8ea893d72d693804e5c5b0856d2ea6c3a7a"
46
46
  }