@fluid-topics/ftds-input-helper-text 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.
@@ -0,0 +1,5 @@
1
+ export interface FtdsInputHelperTextProperties {
2
+ errorMessages: string[];
3
+ warningMessages: string[];
4
+ helperText?: string;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare const FtdsInputHelperTextCssVariables: {
2
+ color: import("@fluid-topics/design-system-variables").FtCssVariable;
3
+ errorColor: import("@fluid-topics/design-system-variables").FtCssVariable;
4
+ warningColor: import("@fluid-topics/design-system-variables").FtCssVariable;
5
+ iconSize: import("@fluid-topics/design-system-variables").FtCssVariable;
6
+ iconHorizontalGap: import("@fluid-topics/design-system-variables").FtCssVariable;
7
+ };
8
+ export declare const styles: import("lit").CSSResult;
@@ -0,0 +1,48 @@
1
+ import { css } from "lit";
2
+ import { semantic } from "@fluid-topics/design-system-variables";
3
+ import { foundation, FtCssVariableFactory, setVariable, } from "@fluid-topics/ft-wc-utils";
4
+ import { FtdsIconCssVariables } from "@fluid-topics/ftds-icon";
5
+ export const FtdsInputHelperTextCssVariables = {
6
+ color: FtCssVariableFactory.extend("--ftds-helper-text-color", "", semantic.contentGlobalSubtle),
7
+ errorColor: FtCssVariableFactory.extend("--ftds-helper-text-error-icon-color", "", semantic.contentErrorPrimary),
8
+ warningColor: FtCssVariableFactory.extend("--ftds-helper-text-warning-icon-color", "", semantic.contentWarningPrimary),
9
+ iconSize: FtCssVariableFactory.extend("--ftds-helper-text-icon-size", "", foundation.iconSize2),
10
+ iconHorizontalGap: FtCssVariableFactory.extend("--ftds-helper-text-icon-horizontal-gap", "", foundation.spacing1),
11
+ };
12
+ // language=CSS
13
+ export const styles = css `
14
+ .ftds-input-helper-text {
15
+ box-sizing: border-box;
16
+ list-style-type: none;
17
+ margin: 0;
18
+ padding: 0;
19
+ }
20
+
21
+ .ftds-input-helper-text--list-item {
22
+ position: relative;
23
+ text-decoration: none;
24
+ display: flex;
25
+ align-items: baseline;
26
+ color: ${FtdsInputHelperTextCssVariables.color};
27
+ }
28
+
29
+ .ftds-input-helper-text--list-item.error {
30
+ color: ${FtdsInputHelperTextCssVariables.errorColor};
31
+ }
32
+
33
+ .ftds-input-helper-text--list-item.warning {
34
+ color: ${FtdsInputHelperTextCssVariables.warningColor};
35
+ }
36
+
37
+ .ftds-input-helper-text--list-item.hasIcon ftds-typography {
38
+ padding-left: calc(${FtdsInputHelperTextCssVariables.iconHorizontalGap} - 2px);
39
+ }
40
+
41
+ .ftds-input-helper-text--list-item.hasIcon {
42
+ left: -2px;
43
+ }
44
+
45
+ ftds-icon {
46
+ ${setVariable(FtdsIconCssVariables.size, FtdsInputHelperTextCssVariables.iconSize)};
47
+ }
48
+ `;
@@ -0,0 +1,4 @@
1
+ export * from "./ftds-input-helper-text.styles";
2
+ export * from "./ftds-input-helper-text.properties";
3
+ export * from "./ftds-input-helper-text";
4
+ import "./define";
package/build/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export * from "./ftds-input-helper-text.styles";
2
+ export * from "./ftds-input-helper-text.properties";
3
+ export * from "./ftds-input-helper-text";
4
+ import "./define";
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@fluid-topics/ftds-input-helper-text",
3
+ "version": "2.1.0",
4
+ "description": "The design system input helper text 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-input-helper-text.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
+ }