@loomhq/lens 10.29.1 → 10.29.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/components/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default as Avatar } from './avatar/avatar';
|
|
2
2
|
export { default as BaseStyles, buildGlobalStylesheet, } from './base-styles/base-styles';
|
|
3
|
-
export { default as SetUnit } from './set-unit/set-unit';
|
|
4
3
|
export { default as Button } from './button/button';
|
|
5
4
|
export { default as Text } from './text/text';
|
|
6
5
|
export { default as Spacer } from './spacer/spacer';
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
};
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { getSizingCssVarsDeclarations } from '../../css-variables';
|
|
14
|
-
import { getTextSize } from '../../utilities';
|
|
15
|
-
import styled from '@emotion/styled';
|
|
16
|
-
const Wrapper = styled.div `
|
|
17
|
-
${getSizingCssVarsDeclarations()};
|
|
18
|
-
${props => props.unit && `--lns-unit: ${props.unit}`};
|
|
19
|
-
${getTextSize('medium')};
|
|
20
|
-
`;
|
|
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));
|
|
24
|
-
};
|
|
25
|
-
export default SetUnit;
|