@loomhq/lens 10.97.0 → 10.98.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.
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
function SvgWatchLater(props) {
|
|
3
3
|
return (React.createElement("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none" }, props),
|
|
4
|
-
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "
|
|
5
|
-
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M19.4663 14.6865C20.0186 14.6865 20.4663 15.1342 20.4663 15.6865V21.7537C20.4663 22.306 20.0186 22.7537 19.4663 22.7537C18.914 22.7537 18.4663 22.306 18.4663 21.7537V15.6865C18.4663 15.1342 18.914 14.6865 19.4663 14.6865Z", fill: "currentColor" }),
|
|
6
|
-
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.4326 18.7202C15.4326 18.1679 15.8803 17.7202 16.4326 17.7202H22.4998C23.0521 17.7202 23.4998 18.1679 23.4998 18.7202C23.4998 19.2725 23.0521 19.7202 22.4998 19.7202H16.4326C15.8803 19.7202 15.4326 19.2725 15.4326 18.7202Z", fill: "currentColor" })));
|
|
4
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7 4C6.73478 4 6.48043 4.10536 6.29289 4.29289C6.10536 4.48043 6 4.73478 6 5V19.0568L11.4188 15.1863C11.7665 14.9379 12.2335 14.9379 12.5812 15.1863L18 19.0568V5C18 4.73478 17.8946 4.48043 17.7071 4.29289C17.5196 4.10536 17.2652 4 17 4H7ZM4.87868 2.87868C5.44129 2.31607 6.20435 2 7 2H17C17.7956 2 18.5587 2.31607 19.1213 2.87868C19.6839 3.44129 20 4.20435 20 5V21C20 21.3746 19.7907 21.7178 19.4576 21.8892C19.1245 22.0606 18.7236 22.0315 18.4188 21.8137L12 17.2289L5.58124 21.8137C5.27642 22.0315 4.87549 22.0606 4.54242 21.8892C4.20935 21.7178 4 21.3746 4 21V5C4 4.20435 4.31607 3.44129 4.87868 2.87868Z", fill: "currentColor" })));
|
|
7
5
|
}
|
|
8
6
|
export default SvgWatchLater;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const LogoLoaderWrapper: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, LogoLoaderProps, object>;
|
|
3
|
-
declare const LogoLoader: ({ animation, brand, }: LogoLoaderProps & React.ComponentProps<typeof LogoLoaderWrapper>) => JSX.Element;
|
|
3
|
+
declare const LogoLoader: ({ animation, brand, size, }: LogoLoaderProps & React.ComponentProps<typeof LogoLoaderWrapper>) => JSX.Element;
|
|
4
4
|
declare type LogoLoaderProps = {
|
|
5
5
|
animation?: string;
|
|
6
6
|
brand?: 'loom' | 'ai';
|
|
7
|
+
size?: 'small' | 'medium';
|
|
7
8
|
};
|
|
8
9
|
export default LogoLoader;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { LENS_CDN } from '../../constants/routes';
|
|
4
|
+
const sizeToPx = {
|
|
5
|
+
small: '40px',
|
|
6
|
+
medium: '80px',
|
|
7
|
+
};
|
|
4
8
|
const LogoLoaderWrapper = styled.span `
|
|
5
9
|
animation: ${props => props.animation};
|
|
6
10
|
background-image: url(${LENS_CDN}/${props => props.brand}-loader.svg);
|
|
7
11
|
background-size: cover;
|
|
8
12
|
background-position: left center;
|
|
9
13
|
display: block;
|
|
10
|
-
height:
|
|
11
|
-
width:
|
|
14
|
+
height: ${props => sizeToPx[props.size]};
|
|
15
|
+
width: ${props => sizeToPx[props.size]};
|
|
12
16
|
|
|
13
17
|
@keyframes spin {
|
|
14
18
|
100% {
|
|
@@ -16,7 +20,7 @@ const LogoLoaderWrapper = styled.span `
|
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
`;
|
|
19
|
-
const LogoLoader = ({ animation = 'spin 2s infinite steps(49) forwards', brand = 'loom', }) => {
|
|
20
|
-
return React.createElement(LogoLoaderWrapper, { animation: animation, brand: brand });
|
|
23
|
+
const LogoLoader = ({ animation = 'spin 2s infinite steps(49) forwards', brand = 'loom', size = 'medium', }) => {
|
|
24
|
+
return React.createElement(LogoLoaderWrapper, { animation: animation, brand: brand, size: size });
|
|
21
25
|
};
|
|
22
26
|
export default LogoLoader;
|