@dfds-ui/forms 2.0.8-alpha.9ffcf8a0 → 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,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
|
-
|
|
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: () =>
|
|
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.
|
|
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.
|
|
21
|
-
"@dfds-ui/icons": "2.0.8-alpha.
|
|
22
|
-
"@dfds-ui/react-components": "2.0.8-alpha.
|
|
23
|
-
"@dfds-ui/theme": "2.0.8-alpha.
|
|
24
|
-
"@dfds-ui/typography": "2.0.8-alpha.
|
|
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": "
|
|
26
|
+
"gitHead": "a256147bebc33ef27fc4cfed71b4eb5f629621ce",
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
}
|
package/radio/RadioContext.d.ts
CHANGED
|
@@ -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
|
-
|
|
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: () =>
|
|
10
|
+
declare const useSwitchContext: () => SwitchContextProps | undefined;
|
|
9
11
|
export default useSwitchContext;
|