@kmkf-fe-packages/basic-components 0.6.3 → 0.7.1-alpha.0

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 (61) hide show
  1. package/README.md +1 -1
  2. package/dist/index.esm.js +473 -154
  3. package/dist/index.js +475 -153
  4. package/dist/jest.config.d.ts +17 -0
  5. package/dist/{apaas → src/apaas}/ApaasAddress/index.d.ts +2 -1
  6. package/dist/src/apaas/ApaasCascader/index.d.ts +3 -0
  7. package/dist/{apaas → src/apaas}/ApaasCheckbox/index.d.ts +2 -1
  8. package/dist/{apaas → src/apaas}/ApaasDate/index.d.ts +2 -1
  9. package/dist/{apaas → src/apaas}/ApaasInput/index.d.ts +2 -1
  10. package/dist/src/apaas/ApaasInputNumber/index.d.ts +4 -0
  11. package/dist/src/apaas/ApaasMultipleSelect/index.d.ts +4 -0
  12. package/dist/src/apaas/ApaasRadio/test/props.test.d.ts +1 -0
  13. package/dist/{apaas → src/apaas}/ApaasSelect/index.d.ts +2 -1
  14. package/dist/{apaas → src/apaas}/ApaasTextArea/index.d.ts +2 -1
  15. package/dist/{apaas → src/apaas}/ApaasUpload/index.d.ts +2 -1
  16. package/dist/{apaas → src/apaas}/ApaasUploadAsync/index.d.ts +2 -1
  17. package/dist/{apaas → src/apaas}/hoc/withFormItem.d.ts +1 -1
  18. package/dist/src/basics/FormItem/index.d.ts +3 -0
  19. package/dist/{business → src/business}/AliPay/index.d.ts +2 -1
  20. package/dist/{business → src/business}/BuyerNick/index.d.ts +2 -1
  21. package/dist/src/business/ChooseBaby/index.d.ts +4 -0
  22. package/dist/{business → src/business}/ExpressLogistics/index.d.ts +2 -1
  23. package/dist/{business → src/business}/Invoice/index.d.ts +2 -1
  24. package/dist/src/business/LogisticsInterception/index.d.ts +25 -0
  25. package/dist/{business → src/business}/Payment/index.d.ts +2 -1
  26. package/dist/{business → src/business}/Remark/index.d.ts +2 -1
  27. package/dist/{business → src/business}/ShopName/index.d.ts +2 -1
  28. package/dist/src/business/Status/index.d.ts +25 -0
  29. package/dist/src/business/Supplier/index.d.ts +4 -0
  30. package/dist/src/business/TBGoodId/index.d.ts +4 -0
  31. package/dist/src/business/TBGoodSerial/index.d.ts +4 -0
  32. package/dist/{business → src/business}/TradeId/index.d.ts +2 -1
  33. package/dist/{common → src/common}/ExpressCompany/index.d.ts +2 -1
  34. package/dist/{common → src/common}/Goods/goodModel.d.ts +2 -1
  35. package/dist/{common → src/common}/Goods/index.d.ts +2 -1
  36. package/dist/{common → src/common}/GoodsTable/goodModel.d.ts +2 -1
  37. package/dist/src/common/IdentifyAddress/index.d.ts +13 -0
  38. package/dist/src/common/Logistics/index.d.ts +4 -0
  39. package/dist/src/common/ParseLogistics/index.d.ts +6 -0
  40. package/dist/{config → src/config}/utils.d.ts +0 -1
  41. package/dist/{index.d.ts → src/index.d.ts} +3 -0
  42. package/dist/{jst → src/jst}/Goods/index.d.ts +2 -1
  43. package/dist/{jst → src/jst}/ItemList/index.d.ts +2 -1
  44. package/package.json +21 -4
  45. package/dist/apaas/ApaasCascader/index.d.ts +0 -2
  46. package/dist/apaas/ApaasInputNumber/index.d.ts +0 -3
  47. package/dist/apaas/ApaasMultipleSelect/index.d.ts +0 -3
  48. package/dist/basics/FormItem/index.d.ts +0 -2
  49. package/dist/business/ChooseBaby/index.d.ts +0 -3
  50. package/dist/business/Status/index.d.ts +0 -16
  51. package/dist/business/Supplier/index.d.ts +0 -3
  52. package/dist/business/TBGoodId/index.d.ts +0 -3
  53. package/dist/business/TBGoodSerial/index.d.ts +0 -3
  54. package/dist/common/Logistics/index.d.ts +0 -3
  55. /package/dist/{apaas → src/apaas}/ApaasRadio/index.d.ts +0 -0
  56. /package/dist/{apaas → src/apaas}/ApaasRate/index.d.ts +0 -0
  57. /package/dist/{apaas → src/apaas}/ApaasSlider/index.d.ts +0 -0
  58. /package/dist/{business → src/business}/Address/index.d.ts +0 -0
  59. /package/dist/{common → src/common}/GoodsTable/index.d.ts +0 -0
  60. /package/dist/{common → src/common}/Sku/index.d.ts +0 -0
  61. /package/dist/{common → src/common}/request.d.ts +0 -0
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ clearMocks: boolean;
3
+ collectCoverage: boolean;
4
+ coverageDirectory: string;
5
+ coverageProvider: string;
6
+ moduleFileExtensions: string[];
7
+ moduleNameMapper: {
8
+ '\\.(css|less|jpg|jpeg|png|gif)$': string;
9
+ };
10
+ preset: string;
11
+ roots: string[];
12
+ testEnvironment: string;
13
+ transform: {
14
+ '^.+\\.ts?$': string;
15
+ };
16
+ };
17
+ export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  interface Option {
2
3
  value: string | number;
3
4
  label: string;
@@ -9,5 +10,5 @@ interface ProvinceType {
9
10
  disabled: boolean;
10
11
  onChange: (value: any, selectedOptions: any) => void;
11
12
  }
12
- declare const Province: (props: Partial<ProvinceType>) => JSX.Element;
13
+ declare const Province: (props: Partial<ProvinceType>) => React.JSX.Element;
13
14
  export default Province;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare function ApaasCascader(props: any): React.JSX.Element;
3
+ export default ApaasCascader;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { CheckboxGroupProps, CheckboxValueType } from 'antd/es/checkbox/Group';
2
3
  type OptionsType = {
3
4
  label: string;
@@ -17,5 +18,5 @@ export interface ApaasCheckboxProps extends Omit<CheckboxGroupProps, 'onChange'
17
18
  value?: CheckboxValue;
18
19
  [key: string]: any;
19
20
  }
20
- declare function ApaasCheckbox(props: ApaasCheckboxProps): JSX.Element;
21
+ declare function ApaasCheckbox(props: ApaasCheckboxProps): React.JSX.Element;
21
22
  export default ApaasCheckbox;
@@ -1,8 +1,9 @@
1
+ import React from 'react';
1
2
  declare const DateType: ["DATE", "DATE_TIME", "DATE_RANGE", "DATE_TIME_RANGE"];
2
3
  export declare type ButtonType = typeof DateType[number];
3
4
  export interface ApaasDate {
4
5
  dateType?: ButtonType;
5
6
  [propName: string]: any;
6
7
  }
7
- declare const ApaasDate: (props: ApaasDate) => JSX.Element;
8
+ declare const ApaasDate: (props: ApaasDate) => React.JSX.Element;
8
9
  export default ApaasDate;
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import { InputProps } from 'antd';
2
3
  export interface ApaasInputProps extends InputProps {
3
4
  isNumber?: boolean;
4
5
  replaceWarn?: boolean;
5
6
  }
6
- declare function ApaasInput(props: ApaasInputProps): JSX.Element;
7
+ declare function ApaasInput(props: ApaasInputProps): React.JSX.Element;
7
8
  export default ApaasInput;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { InputNumberProps } from 'antd';
3
+ declare function ApaasInputNumber(props: InputNumberProps): React.JSX.Element;
4
+ export default ApaasInputNumber;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ApaasSelectProps } from '../ApaasSelect/index';
3
+ declare function ApaasMultipleSelect(props: ApaasSelectProps): React.JSX.Element;
4
+ export default ApaasMultipleSelect;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { SelectProps } from 'antd';
2
3
  type OptionsType = {
3
4
  label: string;
@@ -8,5 +9,5 @@ export interface ApaasSelectProps extends SelectProps<string[]> {
8
9
  options?: OptionsType[];
9
10
  [propName: string]: any;
10
11
  }
11
- declare function ApaasSelect(props: ApaasSelectProps): JSX.Element;
12
+ declare function ApaasSelect(props: ApaasSelectProps): React.JSX.Element;
12
13
  export default ApaasSelect;
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import { TextAreaProps } from 'antd/es/input';
2
3
  export interface ITextAreaProps {
3
4
  minRows?: number;
4
5
  maxRows?: number;
5
6
  }
6
- declare function ApaasTextArea(props: TextAreaProps & ITextAreaProps): JSX.Element;
7
+ declare function ApaasTextArea(props: TextAreaProps & ITextAreaProps): React.JSX.Element;
7
8
  export default ApaasTextArea;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { UploadProps } from 'antd';
2
3
  declare type UploadValue = string[];
3
4
  export interface ApaasUploadProps extends Omit<UploadProps, 'onChange' | 'value'> {
@@ -9,5 +10,5 @@ export interface ApaasUploadProps extends Omit<UploadProps, 'onChange' | 'value'
9
10
  onChange?: (value: UploadValue) => void;
10
11
  value?: UploadValue;
11
12
  }
12
- declare const ApaasUpload: ({ maxCount, maxSize, uploadText, onChange, value, accept, canPreview, disabled, ...resetProps }: ApaasUploadProps) => JSX.Element;
13
+ declare const ApaasUpload: ({ maxCount, maxSize, uploadText, onChange, value, accept, canPreview, disabled, ...resetProps }: ApaasUploadProps) => React.JSX.Element;
13
14
  export default ApaasUpload;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { UploadProps } from 'antd';
2
3
  declare type UploadValue = string[];
3
4
  export interface ApaasUploadProps extends Omit<UploadProps, 'onChange' | 'value'> {
@@ -12,5 +13,5 @@ export interface ApaasUploadProps extends Omit<UploadProps, 'onChange' | 'value'
12
13
  hostUrl?: string;
13
14
  actionUrl?: string;
14
15
  }
15
- declare const ApaasUploadAsync: ({ maxCount, maxSize, uploadText, onChange, value, accept, canPreview, disabled, uniqueKey, hostUrl, actionUrl, ...resetProps }: ApaasUploadProps) => JSX.Element;
16
+ declare const ApaasUploadAsync: ({ maxCount, maxSize, uploadText, onChange, value, accept, canPreview, disabled, uniqueKey, hostUrl, actionUrl, ...resetProps }: ApaasUploadProps) => React.JSX.Element;
16
17
  export default ApaasUploadAsync;
@@ -9,4 +9,4 @@ export interface WithFormItemProps {
9
9
  initialValue?: string;
10
10
  [prop: string]: any;
11
11
  }
12
- export default function withFormItem(WrappedComponent: React.ComponentType<WithFormItemProps>): (props: WithFormItemProps) => JSX.Element;
12
+ export default function withFormItem(WrappedComponent: React.ComponentType<WithFormItemProps>): (props: WithFormItemProps) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const FormItem: (props: any) => React.JSX.Element;
3
+ export default FormItem;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  interface AliPayValueType {
2
3
  name?: string;
3
4
  user?: string;
@@ -9,5 +10,5 @@ interface AliPayProps {
9
10
  onChange: (value: AliPayValueType) => void;
10
11
  onBlur?: (value: string, type: string) => void;
11
12
  }
12
- declare const AliPay: (props: Partial<AliPayProps>) => JSX.Element;
13
+ declare const AliPay: (props: Partial<AliPayProps>) => React.JSX.Element;
13
14
  export default AliPay;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  interface BuyerNickValueType {
2
3
  buyerNick?: string;
3
4
  buyerOpenUid?: string;
@@ -10,5 +11,5 @@ interface BuyerNickProps {
10
11
  onChange: (value: BuyerNickValueType) => void;
11
12
  onBlur: (value: string, type: string) => void;
12
13
  }
13
- declare const BuyerNick: (props: Partial<BuyerNickProps>) => JSX.Element;
14
+ declare const BuyerNick: (props: Partial<BuyerNickProps>) => React.JSX.Element;
14
15
  export default BuyerNick;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { GoodsProps } from '../../common/Goods';
3
+ declare const ChooseBaby: (props: Partial<GoodsProps>) => React.JSX.Element;
4
+ export default ChooseBaby;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { LogisticsType } from '../../common/Logistics/index.d';
2
- declare const ExpressLogistics: (props: Partial<LogisticsType>) => JSX.Element;
3
+ declare const ExpressLogistics: (props: Partial<LogisticsType>) => React.JSX.Element;
3
4
  export default ExpressLogistics;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
3
  export interface InvoiceValueType {
3
4
  ordinaryTaitou: string;
@@ -10,5 +11,5 @@ export interface InvoiceProps {
10
11
  disabled?: boolean;
11
12
  onChange: (value: InvoiceValueType) => void;
12
13
  }
13
- declare const Invoice: (props: Partial<InvoiceProps>) => JSX.Element;
14
+ declare const Invoice: (props: Partial<InvoiceProps>) => React.JSX.Element;
14
15
  export default Invoice;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ interface LogisticsInterceptionValueType {
3
+ interceptCompany: string;
4
+ interceptCode: string;
5
+ interceptType: string;
6
+ interceptSenderMobile: string;
7
+ interceptAddress: any[];
8
+ interceptDetail: string;
9
+ interceptReceiverName: string;
10
+ interceptReceiverMobile: string;
11
+ interceptLogisticsStatus: string | number;
12
+ interceptLogisticsStatusOther: string;
13
+ }
14
+ interface LogisticsInterceptionProps {
15
+ value: Partial<LogisticsInterceptionValueType>;
16
+ logisticsOptions: any[];
17
+ expressInterceptData: any[];
18
+ logisticsAddressData: any[];
19
+ required: boolean;
20
+ disabled: boolean;
21
+ isEditing: boolean;
22
+ onChange: (value: Partial<LogisticsInterceptionValueType>) => void;
23
+ }
24
+ declare const LogisticsInterception: (props: Partial<LogisticsInterceptionProps>) => React.JSX.Element;
25
+ export default LogisticsInterception;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  export interface PaymentProps {
2
3
  value: any;
3
4
  zhiFubaoRequired: boolean;
@@ -10,5 +11,5 @@ export interface PaymentProps {
10
11
  onSearch: (value: any) => void;
11
12
  onBlur: (value: any, type: string) => void;
12
13
  }
13
- declare const Payment: (props: Partial<PaymentProps>) => JSX.Element;
14
+ declare const Payment: (props: Partial<PaymentProps>) => React.JSX.Element;
14
15
  export default Payment;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  interface ValueType {
2
3
  remark?: string;
3
4
  flag?: number;
@@ -8,5 +9,5 @@ interface RemarkType {
8
9
  value: ValueType;
9
10
  onChange: (value: ValueType) => void;
10
11
  }
11
- declare const RemarkInput: (props: Partial<RemarkType>) => JSX.Element;
12
+ declare const RemarkInput: (props: Partial<RemarkType>) => React.JSX.Element;
12
13
  export default RemarkInput;
@@ -1,8 +1,9 @@
1
+ import React from 'react';
1
2
  interface ShopNameType {
2
3
  value: number;
3
4
  onChange: (value: number) => void;
4
5
  disabled: boolean;
5
6
  style: any;
6
7
  }
7
- declare const ShopNameSelect: (props: Partial<ShopNameType>) => JSX.Element;
8
+ declare const ShopNameSelect: (props: Partial<ShopNameType>) => React.JSX.Element;
8
9
  export default ShopNameSelect;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * props
3
+ * isUseCustomStatus true/false 是否自定义文案
4
+ * customStatusText 自定义文案内容
5
+ * isSelectStyle true/false 是否为下拉框
6
+ * require true/false 是否必填
7
+ * originCustomer和isEditing 当状态组件处于编辑状态下,工单状态从未处理切换到已处理时候,我们需要将客服重置为初始值
8
+ */
9
+ import React from 'react';
10
+ export interface StatusProps {
11
+ shopId: string;
12
+ customStatusText: string;
13
+ customerService: any[];
14
+ isEditing: boolean;
15
+ isSelectStyle: boolean;
16
+ isUseCustomStatus: boolean;
17
+ status?: string;
18
+ originCustomer?: string[];
19
+ value: any;
20
+ disabled?: boolean;
21
+ required: boolean;
22
+ onChange: (value: any) => void;
23
+ }
24
+ declare const Status: (props: StatusProps) => React.JSX.Element;
25
+ export default Status;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { GoodsProps } from '../../common/Goods';
3
+ declare const Supplier: (props: Partial<GoodsProps>) => React.JSX.Element;
4
+ export default Supplier;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { GoodsProps } from '../../common/Goods';
3
+ declare const TBGoodId: (props: Partial<GoodsProps>) => React.JSX.Element;
4
+ export default TBGoodId;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { GoodsProps } from '../../common/Goods';
3
+ declare const TBGoodSerial: (props: Partial<GoodsProps>) => React.JSX.Element;
4
+ export default TBGoodSerial;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { InputProps } from 'antd';
2
3
  interface TradeIdProps extends InputProps {
3
4
  value: string;
@@ -6,5 +7,5 @@ interface TradeIdProps extends InputProps {
6
7
  disabled?: boolean;
7
8
  onSearch: (value: any) => void;
8
9
  }
9
- declare function TradeId(props: Partial<TradeIdProps>): JSX.Element;
10
+ declare function TradeId(props: Partial<TradeIdProps>): React.JSX.Element;
10
11
  export default TradeId;
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  type ExpressCompanyProps = {
2
3
  options: any[];
3
4
  value: string;
4
5
  onChange: (v: string) => void;
5
6
  };
6
- declare const ExpressCompany: (props: ExpressCompanyProps) => JSX.Element;
7
+ declare const ExpressCompany: (props: ExpressCompanyProps) => React.JSX.Element;
7
8
  export default ExpressCompany;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
3
  interface GoodModelProps {
3
4
  visible: boolean;
@@ -11,5 +12,5 @@ interface GoodModelProps {
11
12
  onSubmit: (...args: any[]) => any;
12
13
  onCancel: (...args: any[]) => any;
13
14
  }
14
- declare const GoodsModal: (props: GoodModelProps) => JSX.Element;
15
+ declare const GoodsModal: (props: GoodModelProps) => React.JSX.Element;
15
16
  export default GoodsModal;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
3
  export interface GoodsProps {
3
4
  value?: GoodsValues;
@@ -33,5 +34,5 @@ export interface IEditState {
33
34
  itemId?: string | null;
34
35
  supplierName: string | null;
35
36
  }
36
- declare const Goods: (props: Partial<GoodsProps>) => JSX.Element;
37
+ declare const Goods: (props: Partial<GoodsProps>) => React.JSX.Element;
37
38
  export default Goods;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
3
  interface GoodModelProps {
3
4
  visible: boolean;
@@ -9,5 +10,5 @@ interface GoodModelProps {
9
10
  onSubmit: (...args: any[]) => any;
10
11
  onCancel: (...args: any[]) => any;
11
12
  }
12
- declare const GoodsModal: (props: GoodModelProps) => JSX.Element;
13
+ declare const GoodsModal: (props: GoodModelProps) => React.JSX.Element;
13
14
  export default GoodsModal;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface IdentifyAddressProps {
3
+ value: {
4
+ address: any[];
5
+ detail: string;
6
+ receiverName: string;
7
+ receiverMobile: string;
8
+ };
9
+ onChange: (value: any, type?: string) => void;
10
+ disabled?: boolean;
11
+ }
12
+ declare const IdentifyAddress: (props: IdentifyAddressProps) => React.JSX.Element;
13
+ export default IdentifyAddress;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { LogisticsType } from './index.d';
3
+ declare const Logistics: (props: Partial<LogisticsType>) => React.JSX.Element;
4
+ export default Logistics;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ interface ParseLogisticsProps {
3
+ onChange: (value: any) => void;
4
+ }
5
+ declare const ParseLogistics: (props: ParseLogisticsProps) => React.JSX.Element;
6
+ export default ParseLogistics;
@@ -1,3 +1,2 @@
1
- export declare const toTree: (list: any[] | undefined, parId: number) => any[];
2
1
  export declare const keepDecimals: (value: string) => string;
3
2
  export declare function dataURLtoFile(dataurl: string, filename: string): File;
@@ -28,7 +28,10 @@ export { default as Supplier } from './business/Supplier';
28
28
  export { default as Invoice } from './business/Invoice';
29
29
  export { default as Status } from './business/Status';
30
30
  export { default as Payment } from './business/Payment';
31
+ export { default as LogisticsInterception } from './business/LogisticsInterception';
31
32
  export { default as Goods } from './common/Goods';
32
33
  export { default as JstGoods } from './jst/Goods';
33
34
  export { default as JstItemList } from './jst/ItemList';
34
35
  export { default as GoodsTable } from './common/GoodsTable';
36
+ export { default as ParseLogistics } from './common/ParseLogistics';
37
+ export { default as IdentifyAddress } from './common/IdentifyAddress';
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  interface JstGoodsProps {
2
3
  value: any[];
3
4
  type: number;
@@ -6,5 +7,5 @@ interface JstGoodsProps {
6
7
  onChange: (val: any[]) => void;
7
8
  showField: string;
8
9
  }
9
- declare const jstGoods: (props: Partial<JstGoodsProps>) => JSX.Element;
10
+ declare const jstGoods: (props: Partial<JstGoodsProps>) => React.JSX.Element;
10
11
  export default jstGoods;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
3
  export interface GoodsProps {
3
4
  value: any[];
@@ -15,5 +16,5 @@ export interface GoodsItem {
15
16
  price: string;
16
17
  [key: string]: any;
17
18
  }
18
- declare const ItemList: (props: Partial<GoodsProps>) => JSX.Element;
19
+ declare const ItemList: (props: Partial<GoodsProps>) => React.JSX.Element;
19
20
  export default ItemList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.6.3",
3
+ "version": "0.7.1-alpha.0",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -12,21 +12,38 @@
12
12
  ],
13
13
  "scripts": {
14
14
  "async": "yarn build && yalc push",
15
- "build": "father-build",
15
+ "build": "yarn lint && father-build",
16
+ "lint": "eslint '**/*.{ts,tsx}'",
17
+ "lint:fix": "eslint --fix '**/*.{ts,tsx}'",
16
18
  "start": "dumi dev",
19
+ "test": "jest",
17
20
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
18
21
  },
19
22
  "dependencies": {
23
+ "@kmkf-fe-packages/kmkf-utils": "^0.7.1-alpha.0",
20
24
  "umi-request": "^1.4.0"
21
25
  },
22
26
  "devDependencies": {
23
- "@umijs/test": "^3.0.5",
27
+ "@testing-library/jest-dom": "^5.16.5",
28
+ "@testing-library/react": "12.1.5",
29
+ "@types/jest": "^29.5.1",
30
+ "@types/node": "^20.1.4",
31
+ "@types/react-test-renderer": "^18.0.0",
32
+ "@typescript-eslint/eslint-plugin": "^5.59.2",
33
+ "@typescript-eslint/parser": "^5.59.2",
24
34
  "babel-plugin-import": "^1.13.5",
25
35
  "dumi": "^1.0.16",
36
+ "eslint": "^8.40.0",
26
37
  "father-build": "^1.17.2",
27
38
  "gh-pages": "^3.0.0",
39
+ "identity-obj-proxy": "^3.0.0",
40
+ "jest": "^29.5.0",
41
+ "jest-environment-jsdom": "^29.5.0",
28
42
  "lint-staged": "^10.0.7",
29
43
  "prettier": "^2.2.1",
44
+ "react-test-renderer": "17.0.2",
45
+ "ts-jest": "^29.1.0",
46
+ "ts-node": "^10.9.1",
30
47
  "yorkie": "^2.0.0"
31
48
  },
32
49
  "peerDependencies": {
@@ -37,5 +54,5 @@
37
54
  "publishConfig": {
38
55
  "access": "public"
39
56
  },
40
- "gitHead": "7729e2b404a284239abb60eaaed125766688ec30"
57
+ "gitHead": "7ad1a590f1f169f979d75636f52a0456343ceeee"
41
58
  }
@@ -1,2 +0,0 @@
1
- declare function ApaasCascader(props: any): JSX.Element;
2
- export default ApaasCascader;
@@ -1,3 +0,0 @@
1
- import { InputNumberProps } from 'antd';
2
- declare function ApaasInputNumber(props: InputNumberProps): JSX.Element;
3
- export default ApaasInputNumber;
@@ -1,3 +0,0 @@
1
- import { ApaasSelectProps } from '../ApaasSelect/index';
2
- declare function ApaasMultipleSelect(props: ApaasSelectProps): JSX.Element;
3
- export default ApaasMultipleSelect;
@@ -1,2 +0,0 @@
1
- declare const FormItem: (props: any) => JSX.Element;
2
- export default FormItem;
@@ -1,3 +0,0 @@
1
- import { GoodsProps } from '../../common/Goods';
2
- declare const ChooseBaby: (props: Partial<GoodsProps>) => JSX.Element;
3
- export default ChooseBaby;
@@ -1,16 +0,0 @@
1
- export interface StatusProps {
2
- shopId: string;
3
- customStatusText: string;
4
- customerService: any[];
5
- isEditing: boolean;
6
- isSelectStyle: boolean;
7
- isUseCustomStatus: boolean;
8
- status?: string;
9
- originCustomer?: string[];
10
- value: any;
11
- disabled?: boolean;
12
- required: boolean;
13
- onChange: (value: any) => void;
14
- }
15
- declare const Status: (props: StatusProps) => JSX.Element;
16
- export default Status;
@@ -1,3 +0,0 @@
1
- import { GoodsProps } from '../../common/Goods';
2
- declare const Supplier: (props: Partial<GoodsProps>) => JSX.Element;
3
- export default Supplier;
@@ -1,3 +0,0 @@
1
- import { GoodsProps } from '../../common/Goods';
2
- declare const TBGoodId: (props: Partial<GoodsProps>) => JSX.Element;
3
- export default TBGoodId;
@@ -1,3 +0,0 @@
1
- import { GoodsProps } from '../../common/Goods';
2
- declare const TBGoodSerial: (props: Partial<GoodsProps>) => JSX.Element;
3
- export default TBGoodSerial;
@@ -1,3 +0,0 @@
1
- import { LogisticsType } from './index.d';
2
- declare const Logistics: (props: Partial<LogisticsType>) => JSX.Element;
3
- export default Logistics;
File without changes
File without changes
File without changes
File without changes