@loomhq/lens 10.29.0 → 10.29.1

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,6 +1,7 @@
1
1
  import React from 'react';
2
- declare const SetUnit: ({ children, unit, }: {
2
+ declare type SetUnitProps = {
3
3
  children: React.ReactNode;
4
- unit: string;
5
- }) => JSX.Element;
4
+ unit?: string;
5
+ };
6
+ declare const SetUnit: ({ unit, children, ...props }: SetUnitProps) => JSX.Element;
6
7
  export default SetUnit;
@@ -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
  import { getSizingCssVarsDeclarations } from '../../css-variables';
3
14
  import { getTextSize } from '../../utilities';
@@ -7,7 +18,8 @@ const Wrapper = styled.div `
7
18
  ${props => props.unit && `--lns-unit: ${props.unit}`};
8
19
  ${getTextSize('medium')};
9
20
  `;
10
- const SetUnit = ({ children, unit, }) => {
11
- return (React.createElement(Wrapper, { unit: unit, "data-name": "SetUnit" }, children));
21
+ const SetUnit = (_a) => {
22
+ var { unit, children } = _a, props = __rest(_a, ["unit", "children"]);
23
+ return (React.createElement(Wrapper, Object.assign({ unit: unit, "data-name": "SetUnit" }, props), children));
12
24
  };
13
25
  export default SetUnit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomhq/lens",
3
- "version": "10.29.0",
3
+ "version": "10.29.1",
4
4
  "scripts": {
5
5
  "dev": "next",
6
6
  "build:next": "next build",