@noah-libjs/components 0.0.3

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.
Files changed (80) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +47 -0
  3. package/dist/ContainerDimensions/index.d.ts +9 -0
  4. package/dist/GlobalModal/index.d.ts +8 -0
  5. package/dist/GlobalModal/utils.d.ts +65 -0
  6. package/dist/LazyAntd/AutoComplete/Inner.d.ts +3 -0
  7. package/dist/LazyAntd/AutoComplete/index.d.ts +4 -0
  8. package/dist/LazyAntd/Checkbox/GroupInner.d.ts +3 -0
  9. package/dist/LazyAntd/Checkbox/Inner.d.ts +2 -0
  10. package/dist/LazyAntd/Checkbox/index.d.ts +9 -0
  11. package/dist/LazyAntd/ColorPicker/Inner.d.ts +3 -0
  12. package/dist/LazyAntd/ColorPicker/index.d.ts +42 -0
  13. package/dist/LazyAntd/DatePicker/Base/Calendar.d.ts +3 -0
  14. package/dist/LazyAntd/DatePicker/Base/DatePicker.d.ts +35 -0
  15. package/dist/LazyAntd/DatePicker/Base/index.d.ts +58 -0
  16. package/dist/LazyAntd/DatePicker/Calendar.d.ts +5 -0
  17. package/dist/LazyAntd/DatePicker/DatePicker.d.ts +12 -0
  18. package/dist/LazyAntd/DatePicker/MonthPicker.d.ts +11 -0
  19. package/dist/LazyAntd/DatePicker/RangePicker.d.ts +17 -0
  20. package/dist/LazyAntd/DatePicker/TimePicker.d.ts +12 -0
  21. package/dist/LazyAntd/DatePicker/index.d.ts +5 -0
  22. package/dist/LazyAntd/Dropdown/Button.d.ts +2 -0
  23. package/dist/LazyAntd/Dropdown/Inner.d.ts +2 -0
  24. package/dist/LazyAntd/Dropdown/index.d.ts +10 -0
  25. package/dist/LazyAntd/Form/FormItemInner.d.ts +2 -0
  26. package/dist/LazyAntd/Form/Inner.d.ts +2 -0
  27. package/dist/LazyAntd/Form/index.d.ts +9 -0
  28. package/dist/LazyAntd/Modal/Inner.d.ts +3 -0
  29. package/dist/LazyAntd/Modal/index.d.ts +3 -0
  30. package/dist/LazyAntd/Pagination/Inner.d.ts +2 -0
  31. package/dist/LazyAntd/Pagination/index.d.ts +3 -0
  32. package/dist/LazyAntd/QRCode/Inner.d.ts +3 -0
  33. package/dist/LazyAntd/QRCode/index.d.ts +2 -0
  34. package/dist/LazyAntd/Select/Inner.d.ts +2 -0
  35. package/dist/LazyAntd/Select/OptionInner.d.ts +2 -0
  36. package/dist/LazyAntd/Select/index.d.ts +10 -0
  37. package/dist/LazyAntd/Switch/index.d.ts +1 -0
  38. package/dist/LazyAntd/Table/Inner.d.ts +2 -0
  39. package/dist/LazyAntd/Table/index.d.ts +3 -0
  40. package/dist/LazyAntd/Tree/DirectoryTreeInner.d.ts +2 -0
  41. package/dist/LazyAntd/Tree/Inner.d.ts +2 -0
  42. package/dist/LazyAntd/Tree/TreeNodeInner.d.ts +3 -0
  43. package/dist/LazyAntd/Tree/index.d.ts +12 -0
  44. package/dist/LazyAntd/TreeSelect/Inner.d.ts +2 -0
  45. package/dist/LazyAntd/TreeSelect/index.d.ts +3 -0
  46. package/dist/LazyAntd/index.d.ts +14 -0
  47. package/dist/Monaco/Inner.d.ts +4 -0
  48. package/dist/Monaco/index.d.ts +6 -0
  49. package/dist/Monaco/types.d.ts +9 -0
  50. package/dist/MyColor/index.d.ts +6 -0
  51. package/dist/MyInput/index.d.ts +5 -0
  52. package/dist/MyInput/types.d.ts +7 -0
  53. package/dist/MyLazyComponent/index.d.ts +6 -0
  54. package/dist/a_chunks/AutoComplete.Inner.js +9 -0
  55. package/dist/a_chunks/Base.Calendar.js +4 -0
  56. package/dist/a_chunks/Base.DatePicker.js +5 -0
  57. package/dist/a_chunks/Checkbox.GroupInner.js +9 -0
  58. package/dist/a_chunks/Checkbox.Inner.js +9 -0
  59. package/dist/a_chunks/ColorPicker.Inner.js +9 -0
  60. package/dist/a_chunks/Dropdown.Button.js +9 -0
  61. package/dist/a_chunks/Dropdown.Inner.js +9 -0
  62. package/dist/a_chunks/Form.FormItemInner.js +9 -0
  63. package/dist/a_chunks/Form.Inner.js +9 -0
  64. package/dist/a_chunks/Modal.Inner.js +9 -0
  65. package/dist/a_chunks/Monaco.Inner.js +38 -0
  66. package/dist/a_chunks/Pagination.Inner.js +19 -0
  67. package/dist/a_chunks/QRCode.Inner.js +9 -0
  68. package/dist/a_chunks/Select.Inner.js +9 -0
  69. package/dist/a_chunks/Select.OptionInner.js +9 -0
  70. package/dist/a_chunks/Table.Inner.js +9 -0
  71. package/dist/a_chunks/Tree.DirectoryTreeInner.js +9 -0
  72. package/dist/a_chunks/Tree.Inner.js +9 -0
  73. package/dist/a_chunks/TreeSelect.Inner.js +9 -0
  74. package/dist/index.d.ts +7 -0
  75. package/dist/index.js +573 -0
  76. package/dist/pack_components.d.ts +10 -0
  77. package/dist/utils/getInputStyle.d.ts +11 -0
  78. package/dist/utils/index.d.ts +2 -0
  79. package/dist/utils/other.d.ts +4 -0
  80. package/package.json +47 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Lam
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # @lm_fe/components
2
+
3
+ ## 安装
4
+
5
+ ```bash
6
+ # 查看版本信息
7
+ yarn info @lm_fe/components
8
+
9
+ # 安装核心包 @lm_fe/core 即可获得所有功能
10
+ yarn add @lm_fe/core
11
+ ```
12
+
13
+
14
+
15
+
16
+
17
+
18
+ ## 组件
19
+
20
+ ### MyAddress(兼容新旧地址组件)、MyAddressNew(新的地址组件)
21
+
22
+
23
+ ```tsx
24
+
25
+ export interface IMyAddressProps {
26
+ value?: string;
27
+ onChange?: (value: string) => void;
28
+ id?: string;
29
+ disabled?: boolean;
30
+ size?: 'large' | 'middle' | 'small';
31
+ getPopupContainer?: any;
32
+ bordered?: boolean;
33
+ // 同上按钮需要用到
34
+ form?: FormInstance
35
+ // 同上按钮配置
36
+ addressBtns?: { name: string, label: string, props: ButtonProps }[]
37
+ }
38
+
39
+ // 用法
40
+ <MyAddressNew form={form} addressBtns={[{ name: 'aa.bb', label: '同户籍地'}]} />
41
+
42
+ ```
43
+
44
+
45
+ ## License
46
+
47
+ ISC
@@ -0,0 +1,9 @@
1
+ import React, { Component, FC } from "react";
2
+ import { ContainerDimensionsProps } from 'react-container-dimensions';
3
+ export declare class ContainerDimensions extends Component<ContainerDimensionsProps, {
4
+ Comp: FC<ContainerDimensionsProps> | null;
5
+ }> {
6
+ constructor(props: any);
7
+ componentDidMount(): void;
8
+ render(): React.JSX.Element;
9
+ }
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { GlobalModal, IGlobalModalProps, TGlobalModalMeta } from './utils';
3
+ export * from './utils';
4
+ export { IGlobalModalProps };
5
+ export declare function MountGlobalModal(props: {
6
+ meta: TGlobalModalMeta;
7
+ globalModal: GlobalModal<any>;
8
+ }): React.JSX.Element;
@@ -0,0 +1,65 @@
1
+ import { ModalFuncProps, ModalProps } from "antd";
2
+ export interface IGlobalModalProps<T> extends Omit<ModalProps, 'onOk' | 'onClose'> {
3
+ modal_data: T;
4
+ props?: any;
5
+ /**
6
+ * 避免使用 onOk, 请使用 onClose 替代。当前栈弹出时, 内部会调用 onClose, onOk 或者 onCancel。
7
+ *
8
+ * @deprecated
9
+ *
10
+ */
11
+ onOk?: (e?: React.MouseEvent<HTMLElement>) => void;
12
+ /**
13
+ * 避免使用 onCancel, 请使用 onClose 替代。当前栈弹出时, 内部会调用 onClose, onOk 或者 onCancel。
14
+ *
15
+ * @deprecated
16
+ *
17
+ * */
18
+ onCancel?: (e?: React.MouseEvent<HTMLElement>) => void;
19
+ /**
20
+ * 当前栈弹出时, 内部会调用 onClose, onOk 或者 onCancel。
21
+ */
22
+ onClose?: (status?: boolean) => void;
23
+ /**
24
+ * pop 当前栈, 内部会调用 onClose, onOk 或者 onCancel
25
+ *
26
+ */
27
+ close?: (status?: boolean, e?: React.MouseEvent<HTMLElement>) => void;
28
+ }
29
+ export type TGlobalModalMeta = {
30
+ [x: string]: (...args: any) => any;
31
+ };
32
+ export declare class GlobalModal_<T extends {
33
+ [x: string]: (...args: any) => any;
34
+ }> {
35
+ open: <S extends keyof T>(n: S, ...data: Parameters<T[S]>) => number;
36
+ openOne: <S extends keyof T>(id: number, n: S, ...data: Parameters<T[S]>) => number;
37
+ pop: (status?: boolean) => void;
38
+ destroyAll: () => void;
39
+ confirmOnce({ storeKey, cb, ...others }: ModalFuncProps & {
40
+ storeKey: string;
41
+ cb(): void;
42
+ }): void;
43
+ }
44
+ type StackItem = {
45
+ name: any;
46
+ data: IGlobalModalProps<{}>;
47
+ id: number;
48
+ };
49
+ export declare class GlobalModal<T extends {
50
+ [x: string]: (...args: any) => any;
51
+ }> {
52
+ private stack;
53
+ private setStack;
54
+ init(stack: StackItem[], setStack: (v: StackItem[]) => void): void;
55
+ open<S extends keyof T>(name: S, data: Parameters<T[S]>[0]): number;
56
+ openOne<S extends keyof T>(id: any, name: S, data: Parameters<T[S]>[0]): any;
57
+ pop(status?: boolean, e?: React.MouseEvent<HTMLElement>): void;
58
+ private clear_one;
59
+ destroyAll(): void;
60
+ confirmOnce({ storeKey, cb, ...others }: ModalFuncProps & {
61
+ storeKey: string;
62
+ cb(): void;
63
+ }): void;
64
+ }
65
+ export {};
@@ -0,0 +1,3 @@
1
+ import { AutoCompleteProps } from 'antd/es/auto-complete';
2
+ import React from 'react';
3
+ export default function LazyInner(props: AutoCompleteProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { AutoCompleteProps } from 'antd/es/auto-complete';
2
+ import * as React from 'react';
3
+ declare const AutoComplete_L: React.ForwardRefExoticComponent<AutoCompleteProps<any, import("antd/es/select").DefaultOptionType> & React.RefAttributes<any>>;
4
+ export { AutoComplete_L, AutoCompleteProps };
@@ -0,0 +1,3 @@
1
+ import { CheckboxGroupProps } from 'antd/es/checkbox';
2
+ import React from 'react';
3
+ export default function GroupInner(props: CheckboxGroupProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function CheckboxInner(props: any): React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { SelectProps } from 'antd';
2
+ import React from 'react';
3
+ declare const GroupInner: React.LazyExoticComponent<typeof import("./GroupInner").default>;
4
+ declare function Checkbox_<T extends Object = any>(props: SelectProps<T>): React.JSX.Element;
5
+ type CheckboxType = typeof Checkbox_ & {
6
+ Option: typeof GroupInner;
7
+ };
8
+ export declare const Checkbox_L: CheckboxType;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ColorPickerProps } from 'antd/es/color-picker';
2
+ import React from 'react';
3
+ export default function LazyInner(props: ColorPickerProps): React.JSX.Element;
@@ -0,0 +1,42 @@
1
+ import { ColorPickerProps } from 'antd';
2
+ import * as React from 'react';
3
+ export type { ColorPickerProps as RcColorPickerProps } from '@rc-component/color-picker';
4
+ declare const ColorPicker_L: React.ForwardRefExoticComponent<Omit<import("@rc-component/color-picker").ColorPickerProps, "value" | "onChange" | "defaultValue" | "components" | "panelRender" | "disabledAlpha" | "onChangeComplete"> & {
5
+ [key: `data-${string}`]: string;
6
+ mode?: import("antd/es/color-picker/interface").ModeType | import("antd/es/color-picker/interface").ModeType[];
7
+ value?: import("antd/es/color-picker/interface").ColorValueType;
8
+ defaultValue?: import("antd/es/color-picker/interface").ColorValueType;
9
+ children?: React.ReactNode;
10
+ open?: boolean;
11
+ disabled?: boolean;
12
+ placement?: import("antd/es/color-picker/interface").TriggerPlacement;
13
+ trigger?: import("antd/es/color-picker/interface").TriggerType;
14
+ format?: import("antd/es/color-picker/interface").ColorFormatType;
15
+ defaultFormat?: import("antd/es/color-picker/interface").ColorFormatType;
16
+ allowClear?: boolean;
17
+ presets?: import("antd/es/color-picker/interface").PresetsItem[];
18
+ arrow?: boolean | {
19
+ pointAtCenter: boolean;
20
+ };
21
+ panelRender?: (panel: React.ReactNode, extra: {
22
+ components: {
23
+ Picker: React.FC;
24
+ Presets: React.FC;
25
+ };
26
+ }) => React.ReactNode;
27
+ showText?: boolean | ((color: import("antd/es/color-picker").Color) => React.ReactNode);
28
+ size?: import("antd/es/button").ButtonSize;
29
+ styles?: {
30
+ popup?: React.CSSProperties;
31
+ popupOverlayInner?: React.CSSProperties;
32
+ };
33
+ rootClassName?: string;
34
+ disabledAlpha?: boolean;
35
+ onOpenChange?: (open: boolean) => void;
36
+ onFormatChange?: (format?: import("antd/es/color-picker/interface").ColorFormatType) => void;
37
+ onChange?: (value: import("antd/es/color-picker").Color, css: string) => void;
38
+ onClear?: () => void;
39
+ onChangeComplete?: (value: import("antd/es/color-picker").Color) => void;
40
+ disabledFormat?: boolean;
41
+ } & Pick<import("antd").PopoverProps, "getPopupContainer" | "autoAdjustOverflow" | "destroyTooltipOnHide"> & React.RefAttributes<any>>;
42
+ export { ColorPicker_L, ColorPickerProps };
@@ -0,0 +1,3 @@
1
+ import { Dayjs } from 'dayjs';
2
+ declare const Calendar: import("react").FC<Readonly<import("antd/es/calendar/generateCalendar").CalendarProps<Dayjs>>>;
3
+ export default Calendar;
@@ -0,0 +1,35 @@
1
+ import { Dayjs } from 'dayjs';
2
+ export { Dayjs };
3
+ declare const DatePicker: (<ValueType = Dayjs>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Dayjs, import("antd/es/date-picker/generatePicker").PickerProps<Dayjs>, ValueType>) => React.ReactElement) & {
4
+ displayName?: string;
5
+ } & {
6
+ displayName?: string;
7
+ WeekPicker: (<ValueType = Dayjs>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Dayjs, Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs>, "picker">, ValueType>) => React.ReactElement) & {
8
+ displayName?: string;
9
+ };
10
+ MonthPicker: (<ValueType = Dayjs>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Dayjs, Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs>, "picker">, ValueType>) => React.ReactElement) & {
11
+ displayName?: string;
12
+ };
13
+ YearPicker: (<ValueType = Dayjs>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Dayjs, Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs>, "picker">, ValueType>) => React.ReactElement) & {
14
+ displayName?: string;
15
+ };
16
+ RangePicker: import("react").ForwardRefExoticComponent<Omit<import("rc-picker").RangePickerProps<Dayjs>, "locale" | "generateConfig" | "hideHeader"> & {
17
+ locale?: import("antd/es/date-picker/generatePicker").PickerLocale;
18
+ size?: import("antd/es/button").ButtonSize;
19
+ placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
20
+ bordered?: boolean;
21
+ status?: import("antd/es/_util/statusUtils").InputStatus;
22
+ variant?: import("antd/es/config-provider").Variant;
23
+ dropdownClassName?: string;
24
+ popupClassName?: string;
25
+ rootClassName?: string;
26
+ popupStyle?: React.CSSProperties;
27
+ } & import("react").RefAttributes<import("rc-picker").PickerRef>>;
28
+ TimePicker: (<ValueType = Dayjs>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Dayjs, Omit<import("antd/es/date-picker/generatePicker/interface").GenericTimePickerProps<Dayjs>, "picker">, ValueType>) => React.ReactElement) & {
29
+ displayName?: string;
30
+ };
31
+ QuarterPicker: (<ValueType = Dayjs>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<Dayjs, Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs>, "picker">, ValueType>) => React.ReactElement) & {
32
+ displayName?: string;
33
+ };
34
+ };
35
+ export { DatePicker };
@@ -0,0 +1,58 @@
1
+ import { GetProps } from 'antd';
2
+ export { Dayjs } from 'dayjs';
3
+ export declare const DatePickerInner: import("react").LazyExoticComponent<(<ValueType = import("dayjs").Dayjs>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<import("dayjs").Dayjs, import("antd/es/date-picker/generatePicker").PickerProps<import("dayjs").Dayjs>, ValueType>) => React.ReactElement) & {
4
+ displayName?: string;
5
+ } & {
6
+ displayName?: string;
7
+ WeekPicker: (<ValueType = import("dayjs").Dayjs>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<import("dayjs").Dayjs, Omit<import("antd/es/date-picker/generatePicker").PickerProps<import("dayjs").Dayjs>, "picker">, ValueType>) => React.ReactElement) & {
8
+ displayName?: string;
9
+ };
10
+ MonthPicker: (<ValueType = import("dayjs").Dayjs>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<import("dayjs").Dayjs, Omit<import("antd/es/date-picker/generatePicker").PickerProps<import("dayjs").Dayjs>, "picker">, ValueType>) => React.ReactElement) & {
11
+ displayName?: string;
12
+ };
13
+ YearPicker: (<ValueType = import("dayjs").Dayjs>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<import("dayjs").Dayjs, Omit<import("antd/es/date-picker/generatePicker").PickerProps<import("dayjs").Dayjs>, "picker">, ValueType>) => React.ReactElement) & {
14
+ displayName?: string;
15
+ };
16
+ RangePicker: import("react").ForwardRefExoticComponent<Omit<import("rc-picker").RangePickerProps<import("dayjs").Dayjs>, "locale" | "generateConfig" | "hideHeader"> & {
17
+ locale?: import("antd/es/date-picker/generatePicker").PickerLocale;
18
+ size?: import("antd/es/button").ButtonSize;
19
+ placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
20
+ bordered?: boolean;
21
+ status?: import("antd/es/_util/statusUtils").InputStatus;
22
+ variant?: import("antd/es/config-provider").Variant;
23
+ dropdownClassName?: string;
24
+ popupClassName?: string;
25
+ rootClassName?: string;
26
+ popupStyle?: React.CSSProperties;
27
+ } & import("react").RefAttributes<import("rc-picker").PickerRef>>;
28
+ TimePicker: (<ValueType = import("dayjs").Dayjs>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<import("dayjs").Dayjs, Omit<import("antd/es/date-picker/generatePicker/interface").GenericTimePickerProps<import("dayjs").Dayjs>, "picker">, ValueType>) => React.ReactElement) & {
29
+ displayName?: string;
30
+ };
31
+ QuarterPicker: (<ValueType = import("dayjs").Dayjs>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<import("dayjs").Dayjs, Omit<import("antd/es/date-picker/generatePicker").PickerProps<import("dayjs").Dayjs>, "picker">, ValueType>) => React.ReactElement) & {
32
+ displayName?: string;
33
+ };
34
+ }>;
35
+ export type DatePickerProps = GetProps<typeof DatePickerInner>;
36
+ export declare const RangePickerInner: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<Omit<import("rc-picker").RangePickerProps<import("dayjs").Dayjs>, "locale" | "generateConfig" | "hideHeader"> & {
37
+ locale?: import("antd/es/date-picker/generatePicker").PickerLocale;
38
+ size?: import("antd/es/button").ButtonSize;
39
+ placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
40
+ bordered?: boolean;
41
+ status?: import("antd/es/_util/statusUtils").InputStatus;
42
+ variant?: import("antd/es/config-provider").Variant;
43
+ dropdownClassName?: string;
44
+ popupClassName?: string;
45
+ rootClassName?: string;
46
+ popupStyle?: React.CSSProperties;
47
+ } & import("react").RefAttributes<import("rc-picker").PickerRef>>>;
48
+ export type RangePickerProps = GetProps<typeof RangePickerInner>;
49
+ export declare const MonthPickerInner: import("react").LazyExoticComponent<(<ValueType = import("dayjs").Dayjs>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<import("dayjs").Dayjs, Omit<import("antd/es/date-picker/generatePicker").PickerProps<import("dayjs").Dayjs>, "picker">, ValueType>) => React.ReactElement) & {
50
+ displayName?: string;
51
+ }>;
52
+ export type MonthPickerProps = GetProps<typeof MonthPickerInner>;
53
+ export declare const TimePickerInner: import("react").LazyExoticComponent<(<ValueType = import("dayjs").Dayjs>(props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<import("dayjs").Dayjs, Omit<import("antd/es/date-picker/generatePicker/interface").GenericTimePickerProps<import("dayjs").Dayjs>, "picker">, ValueType>) => React.ReactElement) & {
54
+ displayName?: string;
55
+ }>;
56
+ export type TimePickerProps = GetProps<typeof TimePickerInner>;
57
+ export declare const CalendarInner: import("react").LazyExoticComponent<import("react").FC<Readonly<import("antd").CalendarProps<import("dayjs").Dayjs>>>>;
58
+ export type CalendarProps = GetProps<typeof CalendarInner>;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import { CalendarProps } from './Base';
3
+ import { Dayjs } from 'dayjs';
4
+ declare const Calendar_L: React.ForwardRefExoticComponent<Readonly<import("antd").CalendarProps<Dayjs>> & React.RefAttributes<any>>;
5
+ export { Dayjs, Calendar_L, CalendarProps };
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import { DatePickerProps } from './Base';
3
+ import { Dayjs } from 'dayjs';
4
+ declare const DatePicker_L: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("antd/es/date-picker/generatePicker").PickerProps<Dayjs>, "value" | "onChange" | "defaultValue" | "onOk"> & React.RefAttributes<import("rc-picker").PickerRef> & {
5
+ defaultValue?: unknown;
6
+ value?: unknown;
7
+ onChange?: ((date: unknown, dateString: string | string[]) => void) | undefined;
8
+ onOk?: ((date: unknown) => void) | undefined;
9
+ }, "ref"> & {
10
+ ref?: ((instance: import("rc-picker").PickerRef | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<import("rc-picker").PickerRef> | null | undefined;
11
+ }, "ref"> & React.RefAttributes<any>>;
12
+ export { Dayjs, DatePicker_L, DatePickerProps };
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { MonthPickerProps } from './Base';
3
+ declare const MonthPicker_L: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("antd/es/date-picker/generatePicker").PickerProps<import("dayjs").Dayjs>, "picker">, "value" | "onChange" | "defaultValue" | "onOk"> & React.RefAttributes<import("rc-picker").PickerRef> & {
4
+ defaultValue?: unknown;
5
+ value?: unknown;
6
+ onChange?: ((date: unknown, dateString: string | string[]) => void) | undefined;
7
+ onOk?: ((date: unknown) => void) | undefined;
8
+ }, "ref"> & {
9
+ ref?: ((instance: import("rc-picker").PickerRef | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<import("rc-picker").PickerRef> | null | undefined;
10
+ }, "ref"> & React.RefAttributes<any>>;
11
+ export { MonthPicker_L, MonthPickerProps };
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { RangePickerProps } from './Base';
3
+ declare const RangePicker_L: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("rc-picker").RangePickerProps<import("dayjs").Dayjs>, "locale" | "generateConfig" | "hideHeader"> & {
4
+ locale?: import("antd/es/date-picker/generatePicker").PickerLocale;
5
+ size?: import("antd/es/button").ButtonSize;
6
+ placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
7
+ bordered?: boolean;
8
+ status?: import("antd/es/_util/statusUtils").InputStatus;
9
+ variant?: import("antd/es/config-provider").Variant;
10
+ dropdownClassName?: string;
11
+ popupClassName?: string;
12
+ rootClassName?: string;
13
+ popupStyle?: React.CSSProperties;
14
+ } & React.RefAttributes<import("rc-picker").PickerRef>, "ref"> & {
15
+ ref?: ((instance: import("rc-picker").PickerRef | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<import("rc-picker").PickerRef> | null | undefined;
16
+ }, "ref"> & React.RefAttributes<any>>;
17
+ export { RangePicker_L, RangePickerProps, };
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import { TimePickerProps } from './Base';
3
+ import { Dayjs } from 'dayjs';
4
+ declare const TimePicker_L: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("antd/es/date-picker/generatePicker/interface").GenericTimePickerProps<Dayjs>, "picker">, "value" | "onChange" | "defaultValue" | "onOk"> & React.RefAttributes<import("rc-picker").PickerRef> & {
5
+ defaultValue?: unknown;
6
+ value?: unknown;
7
+ onChange?: ((date: unknown, dateString: string | string[]) => void) | undefined;
8
+ onOk?: ((date: unknown) => void) | undefined;
9
+ }, "ref"> & {
10
+ ref?: ((instance: import("rc-picker").PickerRef | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<import("rc-picker").PickerRef> | null | undefined;
11
+ }, "ref"> & React.RefAttributes<any>>;
12
+ export { TimePicker_L, TimePickerProps, Dayjs };
@@ -0,0 +1,5 @@
1
+ export * from './DatePicker';
2
+ export * from './TimePicker';
3
+ export * from './MonthPicker';
4
+ export * from './RangePicker';
5
+ export * from './Calendar';
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function LazyInner(props: any): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function LazyInner(props: any): React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { DropDownProps } from 'antd';
2
+ import { DropdownButtonProps } from 'antd/es/dropdown';
3
+ import React, { FC } from 'react';
4
+ declare const Dropdown_: FC<DropDownProps>;
5
+ declare function Button(props: DropdownButtonProps): React.JSX.Element;
6
+ type DropdownType = typeof Dropdown_ & {
7
+ Button: typeof Button;
8
+ };
9
+ export declare const Dropdown_L: DropdownType;
10
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function LazyInner(props: any): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function LazyInner(props: any): React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { FormProps } from 'antd';
2
+ import React from 'react';
3
+ declare const FormItemInner: React.LazyExoticComponent<typeof import("./FormItemInner").default>;
4
+ declare function Form_<T extends Object = any>(props: FormProps<T>): React.JSX.Element;
5
+ type TreeType = typeof Form_ & {
6
+ Item: typeof FormItemInner;
7
+ };
8
+ export declare const Form_L: TreeType;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ModalProps } from 'antd';
2
+ import React from 'react';
3
+ export default function LazyInner(props: ModalProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { ModalProps } from 'antd';
2
+ import React from 'react';
3
+ export declare function Modal_L(props: ModalProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function LazyInner(props: any): React.JSX.Element | "loading Pagination ...";
@@ -0,0 +1,3 @@
1
+ import { PaginationProps } from 'antd/es/pagination';
2
+ import React from 'react';
3
+ export declare function Pagination_L(props: PaginationProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { QRCodeProps } from 'antd';
2
+ import React from 'react';
3
+ export default function QRCodeInner(props: QRCodeProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare const QRCode_L: import("react").LazyExoticComponent<typeof import("./Inner").default>;
2
+ export { QRCode_L };
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function LazyInner(props: any): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function LazyInner(props: any): React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { SelectProps } from 'antd';
2
+ import { OptionProps } from 'antd/lib/select';
3
+ import React from 'react';
4
+ declare function Select_<T extends Object = any>(props: SelectProps<T>): React.JSX.Element;
5
+ declare function SelectOption(props: OptionProps): React.JSX.Element;
6
+ type SelectType = typeof Select_ & {
7
+ Option: typeof SelectOption;
8
+ };
9
+ export declare const Select_L: SelectType;
10
+ export {};
@@ -0,0 +1 @@
1
+ export declare const Switch_L: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("antd/es/switch").SwitchProps & import("react").RefAttributes<HTMLButtonElement>>>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function LazyInner(props: any): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { TableProps } from 'antd';
2
+ import React from 'react';
3
+ export declare function Table_L<T extends Object = any>(props: TableProps<T>): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function LazyInner(props: any): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function LazyInner(props: any): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { TreeProps } from 'antd';
2
+ import { DirectoryTreeProps } from 'antd/lib/tree';
3
+ import TreeNode from 'rc-tree/es/TreeNode';
4
+ import React from 'react';
5
+ declare function Tree_<T extends Object = any>(props: TreeProps<T>): React.JSX.Element;
6
+ declare function DirectoryTree(props: DirectoryTreeProps): React.JSX.Element;
7
+ type TreeType = typeof Tree_ & {
8
+ TreeNode: typeof TreeNode;
9
+ DirectoryTree: typeof DirectoryTree;
10
+ };
11
+ export declare const Tree_L: TreeType;
12
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function LazyInner(props: any): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { TreeSelectProps } from 'antd';
2
+ import React from 'react';
3
+ export declare function TreeSelect_L<T extends Object = any>(props: TreeSelectProps<T>): React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ export * from './DatePicker';
2
+ export * from './AutoComplete';
3
+ export * from './ColorPicker';
4
+ export * from "./Form";
5
+ export * from "./Dropdown";
6
+ export * from "./Table";
7
+ export * from "./Tree";
8
+ export * from "./Modal";
9
+ export * from "./Pagination";
10
+ export * from "./Select";
11
+ export * from "./TreeSelect";
12
+ export * from "./Checkbox";
13
+ export * from "./QRCode";
14
+ export * from "./Switch";
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IMonacoProps } from './types';
3
+ declare function MonacoInner(props: IMonacoProps): React.JSX.Element;
4
+ export default MonacoInner;
@@ -0,0 +1,6 @@
1
+ declare const MonacoInner: import("react").LazyExoticComponent<typeof import("./Inner").default>;
2
+ type TMonaco = typeof MonacoInner & {
3
+ config: (vs: string) => void;
4
+ };
5
+ declare const MyMonaco: TMonaco;
6
+ export { MyMonaco };
@@ -0,0 +1,9 @@
1
+ export interface IMonacoProps {
2
+ value?: string;
3
+ defaultValue?: string;
4
+ onChange?(e?: string): void;
5
+ language?: 'json' | 'javascript';
6
+ defaultLanguage?: string;
7
+ height?: string;
8
+ theme?: "vs-dark" | 'light';
9
+ }
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { ColorPickerProps } from "src/LazyAntd";
3
+ export declare function MyColor(props: Omit<ColorPickerProps, 'value' | 'onChange'> & {
4
+ value?: string | null;
5
+ onChange?(v: string | null): void;
6
+ }): React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { InputRef } from 'antd';
2
+ import React from 'react';
3
+ import { IMyInputProps } from './types';
4
+ export * from './types';
5
+ export declare const MyInput: React.ForwardRefExoticComponent<IMyInputProps & React.RefAttributes<InputRef>>;
@@ -0,0 +1,7 @@
1
+ import { FormInstance, InputProps } from 'antd';
2
+ export interface IMyInputProps extends Omit<InputProps, 'value' | 'onChange' | 'form'> {
3
+ value?: string;
4
+ onChange?(v: string): void;
5
+ form?: FormInstance;
6
+ warning?: boolean;
7
+ }