@sb1/ffe-form-react 21.1.10 → 21.1.12
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/es/message/index.js +1 -1
- package/package.json +3 -3
- package/types/Checkbox.d.ts +1 -0
- package/types/RadioSwitch.d.ts +2 -1
- package/types/message/index.d.ts +6 -3
package/es/message/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-form-react",
|
|
3
|
-
"version": "21.1.
|
|
3
|
+
"version": "21.1.12",
|
|
4
4
|
"description": "React component for form elements in ffe",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SpareBank 1",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"test:watch": "ffe-buildtool jest --watch"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@sb1/ffe-collapse-react": "^5.0.
|
|
29
|
+
"@sb1/ffe-collapse-react": "^5.0.11",
|
|
30
30
|
"@sb1/ffe-form": "^30.0.10",
|
|
31
31
|
"@sb1/ffe-icons-react": "^11.0.8",
|
|
32
32
|
"@types/uuid": "^9.0.0",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "2b2a6ab980b5ac247d29fa805f36633365be561d"
|
|
48
48
|
}
|
package/types/Checkbox.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export interface CheckboxProps extends Omit<React.ComponentPropsWithoutRef<'inpu
|
|
|
4
4
|
noMargins?: boolean;
|
|
5
5
|
/** If you plan to render the checkbox without a visible label */
|
|
6
6
|
hiddenLabel?: boolean;
|
|
7
|
+
/** Display inline */
|
|
7
8
|
inline?: boolean;
|
|
8
9
|
children: React.ReactNode | ((labelProps: {
|
|
9
10
|
className: string;
|
package/types/RadioSwitch.d.ts
CHANGED
|
@@ -7,12 +7,13 @@ export interface RadioSwitchProps extends Omit<React.ComponentPropsWithoutRef<'i
|
|
|
7
7
|
leftLabel: string;
|
|
8
8
|
/** The value of the choice to the left */
|
|
9
9
|
leftValue: Value /** Ref-setting function, or ref created by useRef, passed to the input element */;
|
|
10
|
+
/** Ref to left radio */
|
|
10
11
|
leftInnerRef?: React.Ref<HTMLInputElement>;
|
|
11
12
|
/** The label of the choice to the right */
|
|
12
13
|
rightLabel: string;
|
|
13
14
|
/** The value of the choice to the right */
|
|
14
15
|
rightValue: Value;
|
|
15
|
-
/** Ref
|
|
16
|
+
/** Ref to right radio */
|
|
16
17
|
rightInnerRef?: React.Ref<HTMLInputElement>;
|
|
17
18
|
/** The selected value of the radio button set */
|
|
18
19
|
selectedValue?: Value | null;
|
package/types/message/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export { ErrorFieldMessage
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export { ErrorFieldMessage } from './ErrorFieldMessage';
|
|
2
|
+
export type { ErrorFieldMessageProps } from './ErrorFieldMessage';
|
|
3
|
+
export { InfoFieldMessage } from './InfoFieldMessage';
|
|
4
|
+
export type { InfoFieldMessageProps } from './InfoFieldMessage';
|
|
5
|
+
export { SuccessFieldMessage } from './SuccessFieldMessage';
|
|
6
|
+
export type { SuccessFieldMessageProps } from './SuccessFieldMessage';
|