@fluid-topics/ft-input-label 2.0.38 → 2.1.1
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/definitions.d.ts +0 -2
- package/build/definitions.js +0 -2
- package/build/ft-input-label.d.ts +1 -1
- package/build/ft-input-label.light.js +107 -232
- package/build/ft-input-label.min.js +101 -210
- package/build/ft-input-label.styles.d.ts +12 -12
- package/build/index.d.ts +0 -3
- package/build/index.js +0 -3
- package/package.json +4 -4
- package/build/ftds-input-label.d.ts +0 -9
- package/build/ftds-input-label.js +0 -17
- package/build/ftds-input-label.properties.d.ts +0 -3
- package/build/ftds-input-label.properties.js +0 -1
- package/build/ftds-input-label.styles.d.ts +0 -15
- package/build/ftds-input-label.styles.js +0 -105
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export declare const FtInputLabelCssVariables: {
|
|
2
|
-
fontSize: import("@fluid-topics/
|
|
3
|
-
raisedFontSize: import("@fluid-topics/
|
|
4
|
-
raisedZIndex: import("@fluid-topics/
|
|
5
|
-
verticalSpacing: import("@fluid-topics/
|
|
6
|
-
horizontalSpacing: import("@fluid-topics/
|
|
7
|
-
labelMaxWidth: import("@fluid-topics/
|
|
8
|
-
borderColor: import("@fluid-topics/
|
|
9
|
-
textColor: import("@fluid-topics/
|
|
10
|
-
disabledTextColor: import("@fluid-topics/
|
|
11
|
-
backgroundColor: import("@fluid-topics/
|
|
12
|
-
borderRadius: import("@fluid-topics/
|
|
13
|
-
colorError: import("@fluid-topics/
|
|
2
|
+
fontSize: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
3
|
+
raisedFontSize: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
4
|
+
raisedZIndex: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
5
|
+
verticalSpacing: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
6
|
+
horizontalSpacing: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
7
|
+
labelMaxWidth: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
8
|
+
borderColor: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
9
|
+
textColor: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
10
|
+
disabledTextColor: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
11
|
+
backgroundColor: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
12
|
+
borderRadius: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
13
|
+
colorError: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
14
14
|
};
|
|
15
15
|
export declare const styles: import("lit").CSSResult;
|
package/build/index.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export * from "./ft-input-label";
|
|
2
2
|
export * from "./ft-input-label.styles";
|
|
3
3
|
export * from "./ft-input-label.properties";
|
|
4
|
-
export * from "./ftds-input-label";
|
|
5
|
-
export * from "./ftds-input-label.styles";
|
|
6
|
-
export * from "./ftds-input-label.properties";
|
|
7
4
|
import "./define";
|
package/build/index.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export * from "./ft-input-label";
|
|
2
2
|
export * from "./ft-input-label.styles";
|
|
3
3
|
export * from "./ft-input-label.properties";
|
|
4
|
-
export * from "./ftds-input-label";
|
|
5
|
-
export * from "./ftds-input-label.styles";
|
|
6
|
-
export * from "./ftds-input-label.properties";
|
|
7
4
|
import "./define";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-input-label",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Dynamic label with outline",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-typography": "2.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "2.
|
|
22
|
+
"@fluid-topics/ft-typography": "2.1.1",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "2.1.1",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "a9f1e471fb2dba9aeb8c12394a25460f675597dc"
|
|
27
27
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FtBaseInputLabel } from "./ft-base-input-label";
|
|
2
|
-
import { FtdsInputLabelProperties } from "./ftds-input-label.properties";
|
|
3
|
-
import { ClassInfo } from "lit/directives/class-map.js";
|
|
4
|
-
declare const FtdsInputLabel_base: import("@fluid-topics/ft-wc-utils").FtdsBaseType<typeof FtBaseInputLabel>;
|
|
5
|
-
export declare class FtdsInputLabel extends FtdsInputLabel_base implements FtdsInputLabelProperties {
|
|
6
|
-
static styles: any[];
|
|
7
|
-
get inputLabelClasses(): ClassInfo;
|
|
8
|
-
}
|
|
9
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FtBaseInputLabel } from "./ft-base-input-label";
|
|
2
|
-
import { toFtdsBase } from "@fluid-topics/ft-wc-utils";
|
|
3
|
-
import { designSystemStyles } from "./ftds-input-label.styles";
|
|
4
|
-
import { FtTypographyCaption } from "@fluid-topics/ft-typography";
|
|
5
|
-
export class FtdsInputLabel extends toFtdsBase(FtBaseInputLabel) {
|
|
6
|
-
get inputLabelClasses() {
|
|
7
|
-
return {
|
|
8
|
-
"ft-input-label": true,
|
|
9
|
-
"ft-input-label--raised": this.raised,
|
|
10
|
-
...this.getDesignSystemBaseClasses()
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
FtdsInputLabel.styles = [
|
|
15
|
-
FtTypographyCaption,
|
|
16
|
-
designSystemStyles
|
|
17
|
-
];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const FtdsInputLabelCssVariables: {
|
|
2
|
-
fontSize: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
3
|
-
fontSizeRaised: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
4
|
-
lineHeight: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
5
|
-
color: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
6
|
-
largeFieldHeight: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
7
|
-
largeFieldVerticalGap: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
8
|
-
largeFieldHorizontalPadding: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
9
|
-
mediumFieldHeight: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
10
|
-
mediumFieldVerticalGap: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
11
|
-
mediumFieldHorizontalPadding: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
12
|
-
additionalPaddingLeft: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
13
|
-
additionalPaddingRight: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
14
|
-
};
|
|
15
|
-
export declare const designSystemStyles: any;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { css, } from "lit";
|
|
2
|
-
import { foundation, typographyBody2Medium, typographyCaption2Medium } from "@fluid-topics/design-system-variables";
|
|
3
|
-
import { FtTypographyCaptionCssVariables } from "@fluid-topics/ft-typography/build/ft-typography.styles";
|
|
4
|
-
import { FtInputLabelCssVariables } from "./ft-input-label.styles";
|
|
5
|
-
import { FtCssVariableFactory, semantic, setVariable } from "@fluid-topics/ft-wc-utils";
|
|
6
|
-
export const FtdsInputLabelCssVariables = {
|
|
7
|
-
fontSize: FtCssVariableFactory.extend("--ft-input-label-font-size", "", typographyBody2Medium.fontSize),
|
|
8
|
-
fontSizeRaised: FtCssVariableFactory.extend("--ft-input-label-font-size-raised", "", typographyCaption2Medium.fontSize),
|
|
9
|
-
lineHeight: FtCssVariableFactory.extend("--ft-input-label-line-height", "", typographyCaption2Medium.lineHeight),
|
|
10
|
-
color: FtCssVariableFactory.extend("--ft-input-label-color", "", semantic.contentGlobalSubtle),
|
|
11
|
-
largeFieldHeight: FtCssVariableFactory.create("--ft-input-label-large-height", "", "SIZE", "50px"),
|
|
12
|
-
largeFieldVerticalGap: FtCssVariableFactory.extend("--ft-input-label-large-field-vertical-gap", "", foundation.spacing05),
|
|
13
|
-
largeFieldHorizontalPadding: FtCssVariableFactory.extend("--ft-input-label-large-field-horizontal-padding", "", foundation.spacing4),
|
|
14
|
-
mediumFieldHeight: FtCssVariableFactory.create("--ft-input-label-medium-height", "", "SIZE", "40px"),
|
|
15
|
-
mediumFieldVerticalGap: FtCssVariableFactory.create("--ft-input-label-medium-field-vertical-gap", "", "SIZE", "0px"),
|
|
16
|
-
mediumFieldHorizontalPadding: FtCssVariableFactory.extend("--ft-input-label-medium-field-horizontal-padding", "", foundation.spacing4),
|
|
17
|
-
additionalPaddingLeft: FtCssVariableFactory.create("--ft-input-label-additional-padding-left", "", "SIZE", "0px"),
|
|
18
|
-
additionalPaddingRight: FtCssVariableFactory.create("--ft-input-label-additional-padding-right", "", "SIZE", "0px"),
|
|
19
|
-
};
|
|
20
|
-
//language=css
|
|
21
|
-
export const designSystemStyles = [
|
|
22
|
-
css `
|
|
23
|
-
|
|
24
|
-
:root {
|
|
25
|
-
--field-height: ${FtdsInputLabelCssVariables.largeFieldHeight};
|
|
26
|
-
--field-vertical-gap: ${FtdsInputLabelCssVariables.largeFieldVerticalGap};
|
|
27
|
-
--field-horizontal-padding: ${FtdsInputLabelCssVariables.largeFieldHorizontalPadding};
|
|
28
|
-
|
|
29
|
-
--typo-caption-height: calc(${typographyCaption2Medium.lineHeight} * ${typographyCaption2Medium.fontSize});
|
|
30
|
-
--typo-body-height: calc(${typographyBody2Medium.lineHeight} * ${typographyBody2Medium.fontSize});
|
|
31
|
-
--caption-label-and-value-combined-height: calc(var(--field-vertical-gap) + var(--typo-caption-height) + var(--typo-body-height));
|
|
32
|
-
--input-content-vertical-padding: calc((var(--field-height) - var(--caption-label-and-value-combined-height)) / 2);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.ft-input-label {
|
|
36
|
-
position: absolute;
|
|
37
|
-
inset: 0;
|
|
38
|
-
display: flex;
|
|
39
|
-
flex-direction: column;
|
|
40
|
-
align-items: center;
|
|
41
|
-
pointer-events: none;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.ft-input-label.ftds--size-large {
|
|
45
|
-
--field-height: ${FtdsInputLabelCssVariables.largeFieldHeight};
|
|
46
|
-
--field-vertical-gap: ${FtdsInputLabelCssVariables.largeFieldVerticalGap};
|
|
47
|
-
--field-horizontal-padding: ${FtdsInputLabelCssVariables.largeFieldHorizontalPadding};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.ft-input-label.ftds--size-medium {
|
|
51
|
-
--field-height: ${FtdsInputLabelCssVariables.mediumFieldHeight};
|
|
52
|
-
--field-vertical-gap: ${FtdsInputLabelCssVariables.mediumFieldVerticalGap};
|
|
53
|
-
--field-horizontal-padding: ${FtdsInputLabelCssVariables.mediumFieldHorizontalPadding};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.ft-input-label--text {
|
|
57
|
-
display: flex;
|
|
58
|
-
flex-shrink: 1;
|
|
59
|
-
position: relative;
|
|
60
|
-
text-overflow: ellipsis;
|
|
61
|
-
z-index: 10;
|
|
62
|
-
width: 100%;
|
|
63
|
-
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
64
|
-
${setVariable(FtTypographyCaptionCssVariables.fontSize, FtdsInputLabelCssVariables.fontSize)};
|
|
65
|
-
${setVariable(FtTypographyCaptionCssVariables.lineHeight, FtdsInputLabelCssVariables.lineHeight)};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.ft-input-label--hidden-text {
|
|
69
|
-
padding: 0 4px;
|
|
70
|
-
opacity: 0;
|
|
71
|
-
max-width: 100%;
|
|
72
|
-
box-sizing: border-box;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.ft-input-label--floating-text {
|
|
76
|
-
position: absolute;
|
|
77
|
-
box-sizing: border-box;
|
|
78
|
-
transition: top 250ms;
|
|
79
|
-
width: 100%;
|
|
80
|
-
|
|
81
|
-
top: calc((var(--field-height) - var(--typo-body-height)) / 2);
|
|
82
|
-
overflow: hidden;
|
|
83
|
-
white-space: nowrap;
|
|
84
|
-
text-overflow: ellipsis;
|
|
85
|
-
|
|
86
|
-
padding-top: ${FtInputLabelCssVariables.verticalSpacing};
|
|
87
|
-
padding-bottom: ${FtInputLabelCssVariables.verticalSpacing};
|
|
88
|
-
padding-left: calc(var(--field-horizontal-padding) + ${FtdsInputLabelCssVariables.additionalPaddingLeft});
|
|
89
|
-
padding-right: calc(var(--field-horizontal-padding) + ${FtdsInputLabelCssVariables.additionalPaddingRight});
|
|
90
|
-
|
|
91
|
-
margin: calc(${FtInputLabelCssVariables.verticalSpacing} * -1) 0;
|
|
92
|
-
color: ${FtdsInputLabelCssVariables.color};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.ft-input-label--raised .ft-input-label--text {
|
|
96
|
-
${setVariable(FtTypographyCaptionCssVariables.fontSize, FtdsInputLabelCssVariables.fontSizeRaised)};
|
|
97
|
-
${setVariable(FtTypographyCaptionCssVariables.lineHeight, FtdsInputLabelCssVariables.lineHeight)};
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.ft-input-label--raised .ft-input-label--floating-text {
|
|
101
|
-
top: var(--input-content-vertical-padding);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
`
|
|
105
|
-
];
|