@fluid-topics/ft-reader-attachments 2.1.9 → 2.1.11
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/build/ft-base-attachments.d.ts +30 -0
- package/build/ft-base-attachments.js +118 -0
- package/build/{ft-reader-attachments.properties.d.ts → ft-base-attachments.properties.d.ts} +1 -1
- package/build/ft-base-attachments.styles.d.ts +15 -0
- package/build/ft-base-attachments.styles.js +74 -0
- package/build/ft-reader-attachments.d.ts +8 -25
- package/build/ft-reader-attachments.js +20 -102
- package/build/ft-reader-attachments.light.js +232 -232
- package/build/ft-reader-attachments.min.js +244 -244
- package/build/ft-reader-attachments.styles.d.ts +2 -14
- package/build/ft-reader-attachments.styles.js +1 -73
- package/build/index.d.ts +3 -1
- package/build/index.js +3 -1
- package/package.json +10 -10
- /package/build/{ft-reader-attachments.properties.js → ft-base-attachments.properties.js} +0 -0
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
itemPadding: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
4
|
-
itemBorderWidth: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
5
|
-
itemBorderColor: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
6
|
-
itemBorderRadius: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
7
|
-
itemBackgroundColor: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
8
|
-
itemTextColor: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
9
|
-
itemHoverBackgroundColor: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
10
|
-
itemHoverTextColor: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
11
|
-
fileFormatIconSize: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
12
|
-
downloadIconSize: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
13
|
-
};
|
|
14
|
-
export declare const styles: import("lit").CSSResult;
|
|
1
|
+
import { FtBaseAttachmentsCssVariables } from "./ft-base-attachments.styles";
|
|
2
|
+
export declare const FtReaderAttachmentsCssVariables: FtBaseAttachmentsCssVariables;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { designSystemVariables, FtCssVariableFactory, setVariable } from "@fluid-topics/ft-wc-utils";
|
|
3
|
-
import { FtRippleCssVariables } from "@fluid-topics/ft-ripple/build/ft-ripple.styles";
|
|
4
|
-
import { FtIconCssVariables } from "@fluid-topics/ft-icon/build/ft-icon.styles";
|
|
1
|
+
import { designSystemVariables, FtCssVariableFactory, } from "@fluid-topics/ft-wc-utils";
|
|
5
2
|
export const FtReaderAttachmentsCssVariables = {
|
|
6
3
|
itemsGap: FtCssVariableFactory.create("--ft-reader-attachments-items-gap", "", "SIZE", "8px"),
|
|
7
4
|
itemPadding: FtCssVariableFactory.create("--ft-reader-attachments-item-padding", "", "SIZE", "8px"),
|
|
@@ -15,72 +12,3 @@ export const FtReaderAttachmentsCssVariables = {
|
|
|
15
12
|
fileFormatIconSize: FtCssVariableFactory.create("--ft-reader-attachments-file-format-icon-size", "", "SIZE", "30px"),
|
|
16
13
|
downloadIconSize: FtCssVariableFactory.create("--ft-reader-attachments-down-icon-size", "", "SIZE", "20px"),
|
|
17
14
|
};
|
|
18
|
-
// language=CSS
|
|
19
|
-
export const styles = css `
|
|
20
|
-
[part="container"] {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
gap: ${FtReaderAttachmentsCssVariables.itemsGap};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
[part="attachment"] {
|
|
27
|
-
border-style: solid;
|
|
28
|
-
border-width: ${FtReaderAttachmentsCssVariables.itemBorderWidth};
|
|
29
|
-
border-color: ${FtReaderAttachmentsCssVariables.itemBorderColor};
|
|
30
|
-
border-radius: ${FtReaderAttachmentsCssVariables.itemBorderRadius};
|
|
31
|
-
background-color: ${FtReaderAttachmentsCssVariables.itemBackgroundColor};
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
[part="attachment"], [part="viewer-link"], [part="download-link"] {
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: row;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
[part="viewer-link"], [part="download-link"] {
|
|
40
|
-
position: relative;
|
|
41
|
-
color: ${FtReaderAttachmentsCssVariables.itemTextColor};
|
|
42
|
-
text-decoration: none;
|
|
43
|
-
padding: ${FtReaderAttachmentsCssVariables.itemPadding};
|
|
44
|
-
align-items: center;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
[part="viewer-link"]:hover, [part="download-link"]:hover {
|
|
48
|
-
color: ${FtReaderAttachmentsCssVariables.itemHoverTextColor};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
[part="viewer-link"] {
|
|
52
|
-
gap: 8px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
[part="viewer-link"], [part="name"] {
|
|
56
|
-
flex-grow: 1;
|
|
57
|
-
flex-shrink: 1;
|
|
58
|
-
word-wrap: break-word;
|
|
59
|
-
word-break: break-word;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
[part~="ripple"] {
|
|
63
|
-
${setVariable(FtRippleCssVariables.color, FtReaderAttachmentsCssVariables.itemHoverBackgroundColor)};
|
|
64
|
-
${setVariable(FtRippleCssVariables.borderRadius, FtReaderAttachmentsCssVariables.itemBorderRadius)};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
[part="file-format-icon"] {
|
|
68
|
-
${setVariable(FtIconCssVariables.size, FtReaderAttachmentsCssVariables.fileFormatIconSize)};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
[part="download-icon"] {
|
|
72
|
-
${setVariable(FtIconCssVariables.size, FtReaderAttachmentsCssVariables.downloadIconSize)};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.hide-file-format-icon [part="file-format-icon"] {
|
|
76
|
-
display: none;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.hide-filename [part="name"] {
|
|
80
|
-
display: none;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.hide-download-icon [part="download-link"] {
|
|
84
|
-
display: none;
|
|
85
|
-
}
|
|
86
|
-
`;
|
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from "./ft-reader-attachments.styles";
|
|
2
|
-
export * from "./ft-reader-attachments.properties";
|
|
3
2
|
export * from "./ft-reader-attachments";
|
|
3
|
+
export * from "./ft-base-attachments.styles";
|
|
4
|
+
export * from "./ft-base-attachments.properties";
|
|
5
|
+
export * from "./ft-base-attachments";
|
|
4
6
|
import "./define";
|
package/build/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from "./ft-reader-attachments.styles";
|
|
2
|
-
export * from "./ft-reader-attachments.properties";
|
|
3
2
|
export * from "./ft-reader-attachments";
|
|
3
|
+
export * from "./ft-base-attachments.styles";
|
|
4
|
+
export * from "./ft-base-attachments.properties";
|
|
5
|
+
export * from "./ft-base-attachments";
|
|
4
6
|
import "./define";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-attachments",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.11",
|
|
4
4
|
"description": "Reader component to list map attachments",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-app-context": "2.1.
|
|
23
|
-
"@fluid-topics/ft-i18n": "2.1.
|
|
24
|
-
"@fluid-topics/ft-icon": "2.1.
|
|
25
|
-
"@fluid-topics/ft-reader-context": "2.1.
|
|
26
|
-
"@fluid-topics/ft-ripple": "2.1.
|
|
27
|
-
"@fluid-topics/ft-typography": "2.1.
|
|
28
|
-
"@fluid-topics/ft-wc-utils": "2.1.
|
|
29
|
-
"@fluid-topics/public-api": "1.0.
|
|
22
|
+
"@fluid-topics/ft-app-context": "2.1.11",
|
|
23
|
+
"@fluid-topics/ft-i18n": "2.1.11",
|
|
24
|
+
"@fluid-topics/ft-icon": "2.1.11",
|
|
25
|
+
"@fluid-topics/ft-reader-context": "2.1.11",
|
|
26
|
+
"@fluid-topics/ft-ripple": "2.1.11",
|
|
27
|
+
"@fluid-topics/ft-typography": "2.1.11",
|
|
28
|
+
"@fluid-topics/ft-wc-utils": "2.1.11",
|
|
29
|
+
"@fluid-topics/public-api": "1.0.129",
|
|
30
30
|
"lit": "3.1.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "0bd65ae6c78742b2e7f43789ecf6145f2a476ecb"
|
|
33
33
|
}
|
|
File without changes
|