@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.
@@ -0,0 +1,4 @@
1
+ import { FtInputInterface } from "@fluid-topics/ft-wc-utils";
2
+ export interface FtdsTextAreaProperties extends FtInputInterface<string> {
3
+ height?: number;
4
+ }
@@ -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
+ `;
@@ -0,0 +1,4 @@
1
+ export * from "./ftds-text-area.styles";
2
+ export * from "./ftds-text-area.properties";
3
+ export * from "./ftds-text-area";
4
+ import "./define";
package/build/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export * from "./ftds-text-area.styles";
2
+ export * from "./ftds-text-area.properties";
3
+ export * from "./ftds-text-area";
4
+ import "./define";
package/package.json CHANGED
@@ -1,6 +1,35 @@
1
1
  {
2
- "name": "@fluid-topics/ftds-text-area",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
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
+ }