dcp-design-react 1.10.9 → 1.10.10

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,5 +1,4 @@
1
- import React, { Component } from 'react';
2
- import PropTypes from 'prop-types';
1
+ import React from 'react';
3
2
  import type { IConfig } from '../context';
4
3
  type IProps = {
5
4
  locale: IConfig['locale'];
@@ -8,29 +7,6 @@ type IProps = {
8
7
  global?: IConfig['global'];
9
8
  children?: React.ReactNode;
10
9
  };
11
- type IState = {
12
- value: IConfig;
13
- };
14
10
  export type ConfigProviderProps = IProps;
15
- declare class QmConfigProvider extends Component<IProps, IState> {
16
- static propTypes: {
17
- locale: PropTypes.Requireable<string>;
18
- size: (props: any, propName: any, componentName: any) => void;
19
- theme: PropTypes.Requireable<string>;
20
- global: PropTypes.Requireable<object>;
21
- };
22
- static defaultProps: {
23
- locale: string;
24
- size: string;
25
- global: {};
26
- };
27
- constructor(props: IProps);
28
- static getDerivedStateFromProps(nextProps: IProps, prevState: IState): {
29
- value: IConfig & {
30
- locale: import("../../_utils/types").Locale;
31
- size: import("../../_utils/types").ComponentSize;
32
- };
33
- } | null;
34
- render(): React.JSX.Element;
35
- }
11
+ declare const QmConfigProvider: React.FC<IProps>;
36
12
  export default QmConfigProvider;