@fluid-topics/ft-content-watermark 1.4.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/README.md +28 -0
- package/build/ft-content-watermark.d.ts +15 -0
- package/build/ft-content-watermark.js +73 -0
- package/build/ft-content-watermark.light.js +179 -0
- package/build/ft-content-watermark.min.js +429 -0
- package/build/ft-content-watermark.properties.d.ts +2 -0
- package/build/ft-content-watermark.properties.js +1 -0
- package/build/ft-content-watermark.styles.d.ts +4 -0
- package/build/ft-content-watermark.styles.js +26 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +6 -0
- package/package.json +29 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
import { FtCssVariableFactory } from "@fluid-topics/ft-wc-utils";
|
|
3
|
+
export const FtContentWatermarkCssVariables = {
|
|
4
|
+
position: FtCssVariableFactory.create("--ft-content-watermark-position", "Position property of the watermark container", "POSITION", "sticky"),
|
|
5
|
+
};
|
|
6
|
+
// language=CSS
|
|
7
|
+
export const styles = css `
|
|
8
|
+
:host {
|
|
9
|
+
position: absolute;
|
|
10
|
+
top: 0;
|
|
11
|
+
right: 0;
|
|
12
|
+
bottom: 0;
|
|
13
|
+
left: 0;
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ft-watermark-container {
|
|
18
|
+
position: ${FtContentWatermarkCssVariables.position};
|
|
19
|
+
top: 0;
|
|
20
|
+
text-align: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ft-watermark {
|
|
24
|
+
z-index: 79;
|
|
25
|
+
}
|
|
26
|
+
`;
|
package/build/index.d.ts
ADDED
package/build/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { customElement } from "@fluid-topics/ft-wc-utils";
|
|
2
|
+
import { FtContentWatermark } from "./ft-content-watermark";
|
|
3
|
+
export * from "./ft-content-watermark.styles";
|
|
4
|
+
export * from "./ft-content-watermark.properties";
|
|
5
|
+
export * from "./ft-content-watermark";
|
|
6
|
+
customElement("ft-content-watermark")(FtContentWatermark);
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fluid-topics/ft-content-watermark",
|
|
3
|
+
"version": "1.4.5",
|
|
4
|
+
"description": "Generic component that overlays a watermark on top of FT content",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Lit"
|
|
7
|
+
],
|
|
8
|
+
"author": "Fluid Topics <devtopics@antidot.net>",
|
|
9
|
+
"license": "ISC",
|
|
10
|
+
"main": "build/index.js",
|
|
11
|
+
"web": "build/ft-content-watermark.min.js",
|
|
12
|
+
"typings": "build/index",
|
|
13
|
+
"files": [
|
|
14
|
+
"build/**/*.js",
|
|
15
|
+
"build/**/*.ts"
|
|
16
|
+
],
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "1.4.5",
|
|
23
|
+
"lit": "3.1.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@fluid-topics/ft-wc-test-utils": "1.4.5"
|
|
27
|
+
},
|
|
28
|
+
"gitHead": "efdc859657751cd9e7af2736f3783341ffd6aae4"
|
|
29
|
+
}
|