@sb1/ffe-form-react 21.1.11 → 21.1.13

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.
@@ -1,3 +1,3 @@
1
1
  export { ErrorFieldMessage } from './ErrorFieldMessage';
2
2
  export { InfoFieldMessage } from './InfoFieldMessage';
3
- export { SuccessFieldMessage, } from './SuccessFieldMessage';
3
+ export { SuccessFieldMessage } from './SuccessFieldMessage';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-form-react",
3
- "version": "21.1.11",
3
+ "version": "21.1.13",
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.11",
29
+ "@sb1/ffe-collapse-react": "^5.0.12",
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": "474d2c3e218a31f1652c5a4116c73f14290b50fd"
47
+ "gitHead": "a6b9359e155ef81fdb9604243c9c99396d17213c"
48
48
  }
@@ -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;
@@ -9,7 +9,7 @@ export interface RadioBlockProps extends React.ComponentPropsWithoutRef<'input'>
9
9
  /** The name of the radio button set */
10
10
  name: string;
11
11
  /** The selected value of the radio button set */
12
- selectedValue?: string;
12
+ selectedValue?: string | null;
13
13
  /** Whether or not children are always visible */
14
14
  showChildren?: boolean;
15
15
  /** The value of the radio block */
@@ -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-setting function, or ref created by useRef, passed to the input element */
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;
@@ -1,3 +1,6 @@
1
- export { ErrorFieldMessage, ErrorFieldMessageProps } from './ErrorFieldMessage';
2
- export { InfoFieldMessage, InfoFieldMessageProps } from './InfoFieldMessage';
3
- export { SuccessFieldMessage, SuccessFieldMessageProps, } from './SuccessFieldMessage';
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';