@elvia/elvis-spotlight 1.6.3 → 1.6.5
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/CHANGELOG.json +24 -0
- package/dist/react/elvia-spotlight.js +36 -19
- package/dist/react/styledComponents.d.ts +17 -4
- package/package.json +10 -4
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../../changelogSchema.json",
|
|
3
|
+
"name": "elvis-spotlight",
|
|
3
4
|
"content": [
|
|
5
|
+
{
|
|
6
|
+
"date": "30.05.24",
|
|
7
|
+
"version": "1.6.5",
|
|
8
|
+
"changelog": [
|
|
9
|
+
{
|
|
10
|
+
"type": "bug_fix",
|
|
11
|
+
"changes": ["Republish the package to fix an issue with the previous release."]
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"date": "30.05.24",
|
|
17
|
+
"version": "1.6.4",
|
|
18
|
+
"changelog": [
|
|
19
|
+
{
|
|
20
|
+
"type": "patch",
|
|
21
|
+
"changes": [
|
|
22
|
+
"Now using <code>@emotion</code> for styling instead of <code>styled-components</code>.",
|
|
23
|
+
"Updated internal dependencies."
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
4
28
|
{
|
|
5
29
|
"date": "11.03.24",
|
|
6
30
|
"version": "1.6.3",
|
|
@@ -2,27 +2,44 @@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
// components/elvis-spotlight/src/react/styledComponents.tsx
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
import _styled from "@emotion/styled/base";
|
|
6
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
7
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
8
|
+
}
|
|
9
|
+
var SpotlightArea = /* @__PURE__ */ _styled("svg", {
|
|
10
|
+
target: "e1uexsug3",
|
|
11
|
+
label: "SpotlightArea"
|
|
12
|
+
})(false ? {
|
|
13
|
+
name: "8afq30",
|
|
14
|
+
styles: "position:fixed;top:0;left:0;z-index:99999;width:100vw;height:100vh"
|
|
15
|
+
} : {
|
|
16
|
+
name: "8afq30",
|
|
17
|
+
styles: "position:fixed;top:0;left:0;z-index:99999;width:100vw;height:100vh",
|
|
18
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
19
|
+
});
|
|
20
|
+
var SpotlightCircle = /* @__PURE__ */ _styled("circle", {
|
|
21
|
+
target: "e1uexsug2",
|
|
22
|
+
label: "SpotlightCircle"
|
|
23
|
+
})("transition:all ", ({
|
|
14
24
|
transitionDuration
|
|
15
|
-
}) => transitionDuration
|
|
16
|
-
var SpotlightRect =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
})
|
|
25
|
+
}) => transitionDuration, " ease-in-out;");
|
|
26
|
+
var SpotlightRect = /* @__PURE__ */ _styled("rect", {
|
|
27
|
+
target: "e1uexsug1",
|
|
28
|
+
label: "SpotlightRect"
|
|
29
|
+
})("transition:all ", ({
|
|
20
30
|
transitionDuration
|
|
21
|
-
}) => transitionDuration
|
|
22
|
-
var SpotlightMask =
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})
|
|
31
|
+
}) => transitionDuration, " ease-in-out;");
|
|
32
|
+
var SpotlightMask = /* @__PURE__ */ _styled("rect", {
|
|
33
|
+
target: "e1uexsug0",
|
|
34
|
+
label: "SpotlightMask"
|
|
35
|
+
})(false ? {
|
|
36
|
+
name: "j858q8",
|
|
37
|
+
styles: "--ewc-spotlight-mask-fill:0.25;.e-color-background-3 &&,.e-theme-dark &&,.e-color-background-3 &&{--ewc-spotlight-mask-fill:0.5;}fill:rgba(0, 0, 0, var(--ewc-spotlight-mask-fill));width:100vw;height:100vh"
|
|
38
|
+
} : {
|
|
39
|
+
name: "j858q8",
|
|
40
|
+
styles: "--ewc-spotlight-mask-fill:0.25;.e-color-background-3 &&,.e-theme-dark &&,.e-color-background-3 &&{--ewc-spotlight-mask-fill:0.5;}fill:rgba(0, 0, 0, var(--ewc-spotlight-mask-fill));width:100vw;height:100vh",
|
|
41
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
42
|
+
});
|
|
26
43
|
|
|
27
44
|
// components/elvis-spotlight/src/react/useLockBodyScroll.tsx
|
|
28
45
|
import { useEffect } from "react";
|
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SpotlightArea: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
+
}, import("react").SVGProps<SVGSVGElement>, {}>;
|
|
2
6
|
interface SpotlightCircleProps {
|
|
3
7
|
transitionDuration: string;
|
|
4
8
|
}
|
|
5
|
-
export declare const SpotlightCircle: import("styled
|
|
9
|
+
export declare const SpotlightCircle: import("@emotion/styled").StyledComponent<{
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
12
|
+
} & SpotlightCircleProps, import("react").SVGProps<SVGCircleElement>, {}>;
|
|
6
13
|
interface SpotlightRectProps {
|
|
7
14
|
transitionDuration: string;
|
|
8
15
|
}
|
|
9
|
-
export declare const SpotlightRect: import("styled
|
|
10
|
-
|
|
16
|
+
export declare const SpotlightRect: import("@emotion/styled").StyledComponent<{
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
|
+
} & SpotlightRectProps, import("react").SVGProps<SVGRectElement>, {}>;
|
|
20
|
+
export declare const SpotlightMask: import("@emotion/styled").StyledComponent<{
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
23
|
+
}, import("react").SVGProps<SVGRectElement>, {}>;
|
|
11
24
|
export {};
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elvia/elvis-spotlight",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://design.elvia.io/components/spotlight",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/3lvia/designsystem.git",
|
|
9
|
+
"directory": "packages/components/components/elvis-spotlight"
|
|
10
|
+
},
|
|
6
11
|
"source": "src/react/elvia-spotlight.tsx",
|
|
7
12
|
"main": "dist/main/web-component.js",
|
|
8
13
|
"files": [
|
|
@@ -11,9 +16,10 @@
|
|
|
11
16
|
"dist"
|
|
12
17
|
],
|
|
13
18
|
"dependencies": {
|
|
14
|
-
"@elvia/elvis-component-wrapper": "^4.
|
|
15
|
-
"@elvia/elvis-toolbox": "^
|
|
16
|
-
"
|
|
19
|
+
"@elvia/elvis-component-wrapper": "^4.2.0",
|
|
20
|
+
"@elvia/elvis-toolbox": "^12.0.1",
|
|
21
|
+
"@emotion/react": "^11.11.4",
|
|
22
|
+
"@emotion/styled": "^11.11.5"
|
|
17
23
|
},
|
|
18
24
|
"peerDependencies": {
|
|
19
25
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|