@ukic/react 2.1.0-beta.5 → 2.1.0-beta.6

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.
@@ -1,3 +1,14 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
1
12
  import React from "react";
2
13
  const defaultProps = {
3
14
  xmlns: "http://www.w3.org/2000/svg",
@@ -5,5 +16,9 @@ const defaultProps = {
5
16
  function slot(name = "") {
6
17
  return { ref: (e) => (e ? e.setAttribute("slot", name) : null) };
7
18
  }
8
- export const SlottedSVG = ({ props, path, slot: slotName }) => (React.createElement("svg", Object.assign({}, slot(slotName), props, defaultProps),
9
- React.createElement("path", { d: path })));
19
+ export const SlottedSVG = (_a) => {
20
+ var { path, slot: slotName, children } = _a, props = __rest(_a, ["path", "slot", "children"]);
21
+ return (React.createElement("svg", Object.assign({}, slot(slotName), props, defaultProps),
22
+ !!path && React.createElement("path", { d: path }),
23
+ children));
24
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ukic/react",
3
3
  "sideEffects": false,
4
- "version": "2.1.0-beta.5",
4
+ "version": "2.1.0-beta.6",
5
5
  "description": "React-wrapped web components compiled using StencilJS",
6
6
  "scripts": {
7
7
  "build": "npm run clean && npm run compile && npm run copy:core-css && npm run copy:normalize-css",
@@ -22,8 +22,8 @@
22
22
  "dist/"
23
23
  ],
24
24
  "dependencies": {
25
- "@ukic/fonts": "^2.1.0-beta.5",
26
- "@ukic/web-components": "^2.1.0-beta.5"
25
+ "@ukic/fonts": "^2.1.0-beta.6",
26
+ "@ukic/web-components": "^2.1.0-beta.6"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@babel/core": "^7.16.0",
@@ -64,5 +64,5 @@
64
64
  "dist"
65
65
  ]
66
66
  },
67
- "gitHead": "bc621e46ef7959819bdde76ba44a75deecf246dc"
67
+ "gitHead": "96e96337cfb37e1ee1a9fdfedb09d3923f4e0d2a"
68
68
  }