@sb1/ffe-form-react 100.12.1 → 100.12.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-form-react",
3
- "version": "100.12.1",
3
+ "version": "100.12.4",
4
4
  "description": "React component for form elements in ffe",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -25,13 +25,13 @@
25
25
  "test:watch": "ffe-buildtool jest --watch"
26
26
  },
27
27
  "dependencies": {
28
- "@sb1/ffe-collapse-react": "^100.12.1",
29
- "@sb1/ffe-form": "^100.12.1",
30
- "@sb1/ffe-icons-react": "^100.12.1",
28
+ "@sb1/ffe-collapse-react": "^100.12.4",
29
+ "@sb1/ffe-form": "^100.12.4",
30
+ "@sb1/ffe-icons-react": "^100.12.4",
31
31
  "classnames": "^2.3.1"
32
32
  },
33
33
  "devDependencies": {
34
- "@sb1/ffe-buildtool": "^100.12.1",
34
+ "@sb1/ffe-buildtool": "^100.12.4",
35
35
  "eslint": "^9.22.0",
36
36
  "react": "^18.2.0",
37
37
  "react-dom": "^18.2.0"
@@ -42,5 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "d51dcc5967ccdc3f0f947fc0ba8c6ef016800255"
45
+ "gitHead": "499c82bdc3f2680cf36cfd7cb77c550c623951f7"
46
46
  }
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
- export interface TextFieldProps extends React.ComponentPropsWithoutRef<'input'> {
2
+ export interface TextFieldProps extends Omit<React.ComponentPropsWithoutRef<'input'>, 'prefix' | 'suffix'> {
3
3
  /** Text fields default to `display: block;`. Set this to `true` to apply the inline modifier. */
4
4
  inline?: boolean;
5
5
  /** Make the text right aligned */
6
6
  textRightAlign?: boolean;
7
7
  /** Add a prefix inside the input */
8
- prefix?: string;
8
+ prefix?: React.ReactNode;
9
9
  /** Add a suffix inside the input */
10
- suffix?: string;
10
+ suffix?: React.ReactNode;
11
11
  }
12
12
  export declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;