@fluid-topics/ftds-text-area 0.0.0-stage → 2.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/README.md +25 -2
- 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-text-area.d.ts +29 -0
- package/build/ftds-text-area.js +179 -0
- package/build/ftds-text-area.light.js +2621 -0
- package/build/ftds-text-area.min.js +2743 -0
- package/build/ftds-text-area.properties.d.ts +4 -0
- package/build/ftds-text-area.properties.js +1 -0
- package/build/ftds-text-area.styles.d.ts +10 -0
- package/build/ftds-text-area.styles.js +67 -0
- package/build/index.d.ts +4 -0
- package/build/index.js +4 -0
- package/package.json +34 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const FtdsTextAreaCssVariables: {
|
|
2
|
+
fieldPaddingLeft: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
3
|
+
fieldPaddingRight: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
4
|
+
fieldMinHeight: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
5
|
+
fieldMaxHeight: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
6
|
+
resizeBottom: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
7
|
+
resizeRight: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
8
|
+
};
|
|
9
|
+
export declare const scrollbarWidthCssVariable: import("@fluid-topics/design-system-variables").FtCssVariable;
|
|
10
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
import { foundation, textArea, textInput, typographyBody2Medium, } from "@fluid-topics/design-system-variables";
|
|
3
|
+
import { FtdsBaseInputCssVariables } from "@fluid-topics/ftds-base-input";
|
|
4
|
+
import { FtCssVariableFactory } from "@fluid-topics/ft-wc-utils";
|
|
5
|
+
export const FtdsTextAreaCssVariables = {
|
|
6
|
+
...textArea,
|
|
7
|
+
};
|
|
8
|
+
export const scrollbarWidthCssVariable = FtCssVariableFactory.create("--ftds-text-area-scrollbar-width", "", "SIZE", "0px");
|
|
9
|
+
// language=CSS
|
|
10
|
+
export const styles = css `
|
|
11
|
+
|
|
12
|
+
:host {
|
|
13
|
+
display: block;
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
ftds-base-input {
|
|
18
|
+
cursor: text;
|
|
19
|
+
${FtdsBaseInputCssVariables.largeFieldHorizontalPadding.set(textArea.fieldPaddingLeft)};
|
|
20
|
+
${FtdsBaseInputCssVariables.errorHelperTextColor.set(textInput.errorHelperTextColor)};
|
|
21
|
+
${FtdsBaseInputCssVariables.warningHelperTextColor.set(textInput.warningHelperTextColor)};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
ftds-base-input::part(inside-structure) {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
min-height: ${textArea.fieldMinHeight};
|
|
28
|
+
max-height: ${textArea.fieldMaxHeight};
|
|
29
|
+
padding-right: 0;
|
|
30
|
+
padding-bottom: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
ftds-base-input::part(inside-structure--input) {
|
|
34
|
+
position: relative;
|
|
35
|
+
flex: 1 1 auto;
|
|
36
|
+
min-height: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
textarea {
|
|
40
|
+
display: block;
|
|
41
|
+
width: 100%;
|
|
42
|
+
height: 100%;
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
margin: 0;
|
|
45
|
+
padding: 0 ${textArea.fieldPaddingRight} var(--value-padding-bottom) 0;
|
|
46
|
+
resize: none;
|
|
47
|
+
font-family: ${typographyBody2Medium.fontFamily};
|
|
48
|
+
font-weight: ${typographyBody2Medium.fontWeight};
|
|
49
|
+
color: ${textInput.contentValueColor};
|
|
50
|
+
border: none;
|
|
51
|
+
background: transparent;
|
|
52
|
+
outline: none;
|
|
53
|
+
overflow-y: auto;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
textarea.ftds-text-area--with-scrollbar {
|
|
57
|
+
padding-right: calc(${textArea.fieldPaddingRight} + ${foundation.spacing1});
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
ft-resizer {
|
|
61
|
+
position: absolute;
|
|
62
|
+
bottom: ${textArea.resizeBottom};
|
|
63
|
+
right: calc(${scrollbarWidthCssVariable} + ${textArea.resizeRight});
|
|
64
|
+
width: auto;
|
|
65
|
+
height: auto;
|
|
66
|
+
}
|
|
67
|
+
`;
|
package/build/index.d.ts
ADDED
package/build/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "@fluid-topics/ftds-text-area",
|
|
3
|
+
"version": "2.2.41",
|
|
4
|
+
"description": "Design system text-area",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Lit"
|
|
7
|
+
],
|
|
8
|
+
"author": "Fluid Topics <devtopics@antidot.net>",
|
|
9
|
+
"license": "ISC",
|
|
10
|
+
"main": "build/index.js",
|
|
11
|
+
"web": "build/ftds-text-area.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/design-system-variables": "3.16.0",
|
|
23
|
+
"@fluid-topics/ft-i18n": "2.2.41",
|
|
24
|
+
"@fluid-topics/ft-resizer": "2.2.41",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "2.2.41",
|
|
26
|
+
"@fluid-topics/ftds-base-input": "2.2.41",
|
|
27
|
+
"@fluid-topics/ftds-typography": "2.2.41",
|
|
28
|
+
"@fluid-topics/public-api": "1.0.149",
|
|
29
|
+
"lit": "3.3.3"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@fluid-topics/ft-wc-test-utils": "2.2.41"
|
|
33
|
+
},
|
|
34
|
+
"gitHead": "2651e9245c0e8fe0dcb2bc475ae6c91642746e55"
|
|
35
|
+
}
|