@linzjs/step-ag-grid 22.2.5 → 22.3.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "22.2.5",
5
+ "version": "22.3.0",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -1,7 +1,25 @@
1
1
  @use "../../node_modules/@linzjs/lui/dist/scss/Foundation/Variables/ColorVars" as colors;
2
2
 
3
- .FormError-helpText {
4
- font-size: 0.75rem;
5
- color: colors.$fuscous;
6
- font-weight: 400;
3
+
4
+ .FormError {
5
+ display: flex;
6
+
7
+ &-helpText {
8
+ font-size: 0.75rem;
9
+ color: colors.$fuscous;
10
+ font-weight: 400;
11
+ }
12
+
13
+ &-text-icon {
14
+ margin-top: 4px;
15
+ margin-right: 4px;
16
+ }
17
+
18
+ &-error {
19
+ padding-left: 0;
20
+ font-size: 14px;
21
+ font-weight: 600;
22
+ color: colors.$charcoal;
23
+ align-items: center;
24
+ }
7
25
  }
@@ -1,6 +1,7 @@
1
1
  import "./FormError.scss";
2
2
 
3
3
  import { ReactElement } from "react";
4
+ import { LuiIcon } from "@linzjs/lui";
4
5
 
5
6
  export interface FormErrorProps {
6
7
  helpText?: string;
@@ -11,9 +12,10 @@ export const FormError = (props: FormErrorProps) => {
11
12
  return (
12
13
  <>
13
14
  {props.error && (
14
- <span className="LuiTextInput-error" style={{ paddingLeft: 0 }}>
15
- {props.error}
16
- </span>
15
+ <div className="FormError">
16
+ <LuiIcon alt="error" name="ic_error" className="FormError-text-icon" size="sm" status="error" />
17
+ <span className="FormError-error">{props.error}</span>
18
+ </div>
17
19
  )}
18
20
 
19
21
  {props.helpText && !props.error && <span className={"FormError-helpText"}>{props.helpText}</span>}
@@ -1,3 +1,5 @@
1
+ @use "@linzjs/lui/dist/scss/Core" as lui;
2
+
1
3
  .LuiTextInput.GridLuiTextInput {
2
4
  margin-bottom: 0;
3
5
  }
@@ -7,5 +9,5 @@
7
9
  right: 14px;
8
10
  top: 0;
9
11
  line-height: 48px;
10
- color: #beb9b4;
12
+ color: lui.$fuscous;
11
13
  }