@fluid-topics/ftds-link 2.1.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.
- package/README.md +19 -0
- package/build/define.d.ts +1 -0
- package/build/define.js +3 -0
- package/build/definitions.d.ts +5 -0
- package/build/definitions.js +4 -0
- package/build/ftds-link.d.ts +25 -0
- package/build/ftds-link.js +91 -0
- package/build/ftds-link.light.js +724 -0
- package/build/ftds-link.min.js +865 -0
- package/build/ftds-link.properties.d.ts +4 -0
- package/build/ftds-link.properties.js +1 -0
- package/build/ftds-link.styles.d.ts +2 -0
- package/build/ftds-link.styles.js +95 -0
- package/build/index.d.ts +4 -0
- package/build/index.js +4 -0
- package/package.json +31 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
import { link } from "@fluid-topics/design-system-variables";
|
|
3
|
+
import { FtdsIconCssVariables } from "@fluid-topics/ftds-icon";
|
|
4
|
+
import { designSystemVariables, setVariable, } from "@fluid-topics/ft-wc-utils";
|
|
5
|
+
export { link as FtdsLinkCssVariables } from "@fluid-topics/design-system-variables";
|
|
6
|
+
// language=CSS
|
|
7
|
+
export const styles = css `
|
|
8
|
+
|
|
9
|
+
.ftds-link {
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
align-items: baseline;
|
|
12
|
+
text-decoration: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ftds-link.ftds-link--underlined .ftds-link--label {
|
|
16
|
+
text-decoration: underline;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ftds-link:focus-visible {
|
|
20
|
+
outline: 2px solid;
|
|
21
|
+
outline-offset: 2px;
|
|
22
|
+
border-radius: ${designSystemVariables.borderRadiusS};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ftds-link--variant-caption-2-medium,
|
|
26
|
+
.ftds-link--variant-caption-2-semibold,
|
|
27
|
+
.ftds-link--variant-caption-2-bold {
|
|
28
|
+
${setVariable(FtdsIconCssVariables.size, "14px")};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ftds-link--variant-caption-1-medium,
|
|
32
|
+
.ftds-link--variant-caption-1-semibold,
|
|
33
|
+
.ftds-link--variant-caption-1-bold {
|
|
34
|
+
${setVariable(FtdsIconCssVariables.size, "16px")};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ftds-link--variant-body-2-medium,
|
|
38
|
+
.ftds-link--variant-body-2-semibold,
|
|
39
|
+
.ftds-link--variant-body-2-regular {
|
|
40
|
+
${setVariable(FtdsIconCssVariables.size, "18px")};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ftds--family-neutral {
|
|
44
|
+
color: ${link.neutralDefaultColor};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ftds--family-neutral:hover {
|
|
48
|
+
color: ${link.neutralHoverColor};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ftds--family-neutral:focus-visible {
|
|
52
|
+
color: ${link.neutralFocusColor};
|
|
53
|
+
outline-color: ${link.neutralFocusFocusRingColor};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ftds--family-neutral:active {
|
|
57
|
+
color: ${link.neutralActiveColor};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ftds--family-info {
|
|
61
|
+
color: ${link.infoDefaultColor};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ftds--family-info:hover {
|
|
65
|
+
color: ${link.infoHoverColor};
|
|
66
|
+
opacity: ${link.infoHoverOpacity};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.ftds--family-info:focus-visible {
|
|
70
|
+
color: ${link.infoFocusColor};
|
|
71
|
+
outline-color: ${link.infoFocusFocusRingColor};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.ftds--family-info:active {
|
|
75
|
+
color: ${link.infoActiveColor};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.ftds--family-brand {
|
|
79
|
+
color: ${link.brandDefaultColor};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ftds--family-brand:hover {
|
|
83
|
+
color: ${link.brandHoverColor};
|
|
84
|
+
opacity: ${link.brandHoverOpacity};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ftds--family-brand:focus-visible {
|
|
88
|
+
color: ${link.brandFocusColor};
|
|
89
|
+
outline-color: ${link.brandFocusFocusRingColor};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.ftds--family-brand:active {
|
|
93
|
+
color: ${link.infoActiveColor};
|
|
94
|
+
}
|
|
95
|
+
`;
|
package/build/index.d.ts
ADDED
package/build/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fluid-topics/ftds-link",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "The design system link component",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Lit"
|
|
7
|
+
],
|
|
8
|
+
"author": "Fluid Topics <devtopics@antidot.net>",
|
|
9
|
+
"license": "ISC",
|
|
10
|
+
"main": "build/index.js",
|
|
11
|
+
"web": "build/ftds-link.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": "2.1.0",
|
|
23
|
+
"@fluid-topics/ftds-icon": "2.1.0",
|
|
24
|
+
"@fluid-topics/ftds-typography": "2.1.0",
|
|
25
|
+
"lit": "3.1.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@fluid-topics/ft-wc-test-utils": "2.1.0"
|
|
29
|
+
},
|
|
30
|
+
"gitHead": "4727cf19d04236ad1d2b2cb43ce1c46298834c7e"
|
|
31
|
+
}
|