@fluid-topics/ft-icon 1.2.39 → 1.2.41
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/assets/fonts/fticons.svg +4 -2
- package/assets/fonts/fticons.ttf +0 -0
- package/assets/fonts/fticons.woff +0 -0
- package/build/ft-icon.d.ts +2 -1
- package/build/ft-icon.js +5 -1
- package/build/ft-icon.light.js +45 -45
- package/build/ft-icon.min.js +56 -56
- package/build/ft-icon.styles.d.ts +1 -1
- package/build/ft-icon.styles.js +46 -44
- package/build/icons.d.ts +2 -1
- package/build/icons.js +1 -0
- package/package.json +3 -3
|
@@ -5,4 +5,4 @@ export declare const FtIconCssVariables: {
|
|
|
5
5
|
materialFontFamily: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
6
6
|
verticalAlign: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
7
7
|
};
|
|
8
|
-
export declare const styles: import("lit").CSSResult;
|
|
8
|
+
export declare const styles: import("lit").CSSResult[];
|
package/build/ft-icon.styles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
import { FtCssVariableFactory } from "@fluid-topics/ft-wc-utils";
|
|
2
|
+
import { FtCssVariableFactory, noTextSelect } from "@fluid-topics/ft-wc-utils";
|
|
3
3
|
export const FtIconCssVariables = {
|
|
4
4
|
size: FtCssVariableFactory.create("--ft-icon-font-size", "", "SIZE", "24px"),
|
|
5
5
|
fluidTopicsFontFamily: FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family", "", FtCssVariableFactory.create("--ft-icon-font-family", "", "UNKNOWN", "ft-icons")),
|
|
@@ -8,52 +8,54 @@ export const FtIconCssVariables = {
|
|
|
8
8
|
verticalAlign: FtCssVariableFactory.create("--ft-icon-vertical-align", "", "UNKNOWN", "unset"),
|
|
9
9
|
};
|
|
10
10
|
//language=css
|
|
11
|
-
export const styles =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
export const styles = [
|
|
12
|
+
css `
|
|
13
|
+
:host, i.ft-icon {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
flex-grow: 0;
|
|
18
|
+
}
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
:host {
|
|
21
|
+
width: ${FtIconCssVariables.size};
|
|
22
|
+
height: ${FtIconCssVariables.size};
|
|
23
|
+
}
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
25
|
+
i.ft-icon {
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
font-size: ${FtIconCssVariables.size};
|
|
29
|
+
line-height: 1;
|
|
30
|
+
font-weight: normal;
|
|
31
|
+
text-transform: none;
|
|
32
|
+
font-style: normal;
|
|
33
|
+
font-variant: normal;
|
|
34
|
+
speak: none;
|
|
35
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
36
|
+
text-rendering: auto;
|
|
37
|
+
-webkit-font-smoothing: antialiased;
|
|
38
|
+
-moz-osx-font-smoothing: grayscale;
|
|
39
|
+
vertical-align: ${FtIconCssVariables.verticalAlign};
|
|
40
|
+
}
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
i.ft-icon.ft-icon--fluid-topics {
|
|
43
|
+
font-family: ${FtIconCssVariables.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
/* Ugly fix because font is broken */
|
|
46
|
+
font-size: calc(0.75 * ${FtIconCssVariables.size});
|
|
47
|
+
line-height: ${FtIconCssVariables.size};
|
|
48
|
+
position: relative;
|
|
49
|
+
top: -4%;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
}
|
|
51
52
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
.ft-icon--file-format {
|
|
54
|
+
font-family: ${FtIconCssVariables.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
55
|
+
}
|
|
55
56
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
.ft-icon--material {
|
|
58
|
+
font-family: ${FtIconCssVariables.materialFontFamily}, "Material Icons", sans-serif;
|
|
59
|
+
}
|
|
60
|
+
`, noTextSelect
|
|
61
|
+
];
|
package/build/icons.d.ts
CHANGED
|
@@ -195,7 +195,8 @@ export declare enum FtIcons {
|
|
|
195
195
|
EXPAND = "",
|
|
196
196
|
ARROW_ROTATE_LEFT = "",
|
|
197
197
|
EYE = "",
|
|
198
|
-
SHARE = "󨃱"
|
|
198
|
+
SHARE = "󨃱",
|
|
199
|
+
MOBILE_SMALL = ""
|
|
199
200
|
}
|
|
200
201
|
export declare enum FtFileFormatIcons {
|
|
201
202
|
UNKNOWN = "",
|
package/build/icons.js
CHANGED
|
@@ -197,6 +197,7 @@ export var FtIcons;
|
|
|
197
197
|
FtIcons["ARROW_ROTATE_LEFT"] = "";
|
|
198
198
|
FtIcons["EYE"] = "";
|
|
199
199
|
FtIcons["SHARE"] = "󨃱";
|
|
200
|
+
FtIcons["MOBILE_SMALL"] = "";
|
|
200
201
|
})(FtIcons || (FtIcons = {}));
|
|
201
202
|
export var FtFileFormatIcons;
|
|
202
203
|
(function (FtFileFormatIcons) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-icon",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.41",
|
|
4
4
|
"description": "Typography components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.2.
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.2.41",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "2f51fbafc6693cb23bd5207ea7f9a7534bd8cb25"
|
|
27
27
|
}
|