@dfds-ui/forms 2.0.8-alpha.5cfc6b9d → 2.0.8-alpha.a256147b

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,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { CheckboxProps } from './Checkbox';
3
3
  declare type CheckboxContextProps = {
4
+ children?: React.ReactNode;
4
5
  visualSize: NonNullable<CheckboxProps['visualSize']>;
5
6
  error: CheckboxProps['error'];
6
7
  };
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { CheckboxProps } from './Checkbox';
3
3
  declare type CheckboxContextProps = {
4
+ children?: React.ReactNode;
4
5
  visualSize: NonNullable<CheckboxProps['visualSize']>;
5
6
  error: CheckboxProps['error'];
6
7
  };
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { RadioProps } from './Radio';
3
3
  declare type RadioContextProps = {
4
+ children?: React.ReactNode;
4
5
  visualSize: NonNullable<RadioProps['visualSize']>;
5
6
  error: RadioProps['error'];
6
7
  };
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import { SwitchProps } from './Switch';
3
- declare type SwitchContextProps = Required<Pick<SwitchProps, 'size' | 'error'>>;
4
- export declare const SwitchContext: React.Context<Required<Pick<SwitchProps, "error" | "size">> | undefined>;
3
+ declare type SwitchContextProps = Required<Pick<SwitchProps, 'size' | 'error'>> & {
4
+ children?: React.ReactNode;
5
+ };
6
+ export declare const SwitchContext: React.Context<SwitchContextProps | undefined>;
5
7
  export declare const SwitchContextProvider: React.FC<{
6
8
  value: SwitchContextProps;
7
9
  }>;
8
- declare const useSwitchContext: () => Required<Pick<SwitchProps, "error" | "size">> | undefined;
10
+ declare const useSwitchContext: () => SwitchContextProps | undefined;
9
11
  export default useSwitchContext;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Form components",
4
4
  "license": "MIT",
5
5
  "private": false,
6
- "version": "2.0.8-alpha.5cfc6b9d",
6
+ "version": "2.0.8-alpha.a256147b",
7
7
  "sideEffects": false,
8
8
  "main": "./cjs/index.js",
9
9
  "module": "./index.js",
@@ -17,13 +17,13 @@
17
17
  "react-select": "^4.0.0"
18
18
  },
19
19
  "dependencies": {
20
- "@dfds-ui/hooks": "2.0.8-alpha.5cfc6b9d",
21
- "@dfds-ui/icons": "2.0.8-alpha.5cfc6b9d",
22
- "@dfds-ui/react-components": "2.0.8-alpha.5cfc6b9d",
23
- "@dfds-ui/theme": "2.0.8-alpha.5cfc6b9d",
24
- "@dfds-ui/typography": "2.0.8-alpha.5cfc6b9d"
20
+ "@dfds-ui/hooks": "2.0.8-alpha.a256147b",
21
+ "@dfds-ui/icons": "2.0.8-alpha.a256147b",
22
+ "@dfds-ui/react-components": "2.0.8-alpha.a256147b",
23
+ "@dfds-ui/theme": "2.0.8-alpha.a256147b",
24
+ "@dfds-ui/typography": "2.0.8-alpha.a256147b"
25
25
  },
26
- "gitHead": "5cfc6b9d9be710196f40e656de7c5920f9a00b49",
26
+ "gitHead": "a256147bebc33ef27fc4cfed71b4eb5f629621ce",
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  }
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { RadioProps } from './Radio';
3
3
  declare type RadioContextProps = {
4
+ children?: React.ReactNode;
4
5
  visualSize: NonNullable<RadioProps['visualSize']>;
5
6
  error: RadioProps['error'];
6
7
  };
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import { SwitchProps } from './Switch';
3
- declare type SwitchContextProps = Required<Pick<SwitchProps, 'size' | 'error'>>;
4
- export declare const SwitchContext: React.Context<Required<Pick<SwitchProps, "error" | "size">> | undefined>;
3
+ declare type SwitchContextProps = Required<Pick<SwitchProps, 'size' | 'error'>> & {
4
+ children?: React.ReactNode;
5
+ };
6
+ export declare const SwitchContext: React.Context<SwitchContextProps | undefined>;
5
7
  export declare const SwitchContextProvider: React.FC<{
6
8
  value: SwitchContextProps;
7
9
  }>;
8
- declare const useSwitchContext: () => Required<Pick<SwitchProps, "error" | "size">> | undefined;
10
+ declare const useSwitchContext: () => SwitchContextProps | undefined;
9
11
  export default useSwitchContext;