@pisell/materials 6.2.25 → 6.2.26
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/package.json +1 -1
- package/es/components/pisellAdjustPrice/index.d.ts +0 -4
- package/es/components/pisellToast/index.d.ts +0 -16
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -21
- package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -11
- package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/es/components/productCard/cartSkuCard/index.d.ts +0 -8
- package/es/components/productCard/components/Header/index.d.ts +0 -3
- package/es/components/productCard/components/Sales/index.d.ts +0 -3
- package/es/components/productCard/index.d.ts +0 -7
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -5
- package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
- package/es/components/virtual-keyboard/index.d.ts +0 -25
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
- package/lib/components/pisellToast/index.d.ts +0 -16
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -21
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
- package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
- package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -11
- package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
- package/lib/components/productCard/cartSkuCard/index.d.ts +0 -8
- package/lib/components/productCard/components/Header/index.d.ts +0 -3
- package/lib/components/productCard/components/Sales/index.d.ts +0 -3
- package/lib/components/productCard/index.d.ts +0 -7
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -5
- package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
- package/lib/components/virtual-keyboard/index.d.ts +0 -25
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellToastProps {
|
|
4
|
-
/** 提示内容 */
|
|
5
|
-
content: React.ReactNode;
|
|
6
|
-
/** 自动关闭的延时,单位秒。设为 0 时不自动关闭 */
|
|
7
|
-
duration?: number;
|
|
8
|
-
/** 是否展示action */
|
|
9
|
-
showAction?: boolean;
|
|
10
|
-
/** action文案 */
|
|
11
|
-
actionText?: string;
|
|
12
|
-
/** 关闭时触发的回调函数 */
|
|
13
|
-
onClose?: () => void;
|
|
14
|
-
}
|
|
15
|
-
declare const PisellToast: (props: PisellToastProps) => void;
|
|
16
|
-
export default PisellToast;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface IProps {
|
|
4
|
-
isShowImage?: boolean;
|
|
5
|
-
dataSource: {
|
|
6
|
-
image?: string;
|
|
7
|
-
bundle?: any[];
|
|
8
|
-
options?: any[];
|
|
9
|
-
product_option_string?: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
symbol?: string;
|
|
12
|
-
price?: string | number;
|
|
13
|
-
total?: number;
|
|
14
|
-
origin_total?: number;
|
|
15
|
-
num?: number;
|
|
16
|
-
};
|
|
17
|
-
style?: React.CSSProperties;
|
|
18
|
-
isMainProduct?: boolean;
|
|
19
|
-
}
|
|
20
|
-
declare const BasicInfo: (props: IProps) => JSX.Element;
|
|
21
|
-
export default BasicInfo;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 金额是否是负
|
|
3
|
-
* @description:
|
|
4
|
-
* @param {string} type
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: WangHan
|
|
7
|
-
* @Date: 2024-11-22 10:01
|
|
8
|
-
*/
|
|
9
|
-
export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
10
|
-
/**
|
|
11
|
-
* @title: 金额格式化
|
|
12
|
-
* @description:
|
|
13
|
-
* @param {number} price
|
|
14
|
-
* @param {string} amountSymbol
|
|
15
|
-
* @param {number} digit
|
|
16
|
-
* @return {*}
|
|
17
|
-
* @Author: WangHan
|
|
18
|
-
* @Date: 2024-11-22 10:58
|
|
19
|
-
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
interface IProps {
|
|
3
|
-
hideDivider?: boolean;
|
|
4
|
-
dataSource: {
|
|
5
|
-
symbol?: string;
|
|
6
|
-
relation_products?: any[];
|
|
7
|
-
bundle?: any[];
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
declare const Sales: ({ hideDivider, dataSource }: IProps) => JSX.Element | null;
|
|
11
|
-
export default Sales;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
import { ProductCardTypes } from '../types';
|
|
3
|
-
interface ISKUCardProps extends ProductCardTypes {
|
|
4
|
-
type: 'a2' | 'a5';
|
|
5
|
-
}
|
|
6
|
-
export declare const PREFIX = "pisell-cart-sku-card";
|
|
7
|
-
declare const CartSkuCard: (props: ISKUCardProps) => JSX.Element;
|
|
8
|
-
export default CartSkuCard;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
|
|
3
|
-
export interface RightItemsStyleProps {
|
|
4
|
-
buttonBackgroundColor?: string;
|
|
5
|
-
textColor?: string;
|
|
6
|
-
resetButtonBackgroundColor?: string;
|
|
7
|
-
resetButtonTextColor?: string;
|
|
8
|
-
isDoneButtonFollowTheme?: boolean;
|
|
9
|
-
doneButtonBackgroundColor?: string;
|
|
10
|
-
doneButtonTextColor?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface AmountProps {
|
|
13
|
-
max?: number;
|
|
14
|
-
min?: number;
|
|
15
|
-
doneText?: string;
|
|
16
|
-
resetText?: string;
|
|
17
|
-
defaultValue?: string | number;
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
amountProps?: {
|
|
20
|
-
showCurrencySymbol: boolean;
|
|
21
|
-
useThousandsSeparator: boolean;
|
|
22
|
-
};
|
|
23
|
-
presets?: BaseNumberKeyboardProps['presets'];
|
|
24
|
-
value?: string | number;
|
|
25
|
-
onChange?: (val: string | number) => void;
|
|
26
|
-
onEnter?: (val: string | number) => void;
|
|
27
|
-
defaultSelect?: boolean;
|
|
28
|
-
inputFormat?: (_v: string) => React.ReactNode | null;
|
|
29
|
-
rightItemsStyle?: RightItemsStyleProps;
|
|
30
|
-
selectType?: 'light' | 'dark';
|
|
31
|
-
backgroundColor?: string;
|
|
32
|
-
containerBackgroundColor?: string;
|
|
33
|
-
buttonBackgroundColor?: string;
|
|
34
|
-
textColor?: string;
|
|
35
|
-
resetButtonBackgroundColor?: string;
|
|
36
|
-
resetButtonTextColor?: string;
|
|
37
|
-
isDoneButtonFollowTheme?: boolean;
|
|
38
|
-
doneButtonBackgroundColor?: string;
|
|
39
|
-
doneButtonTextColor?: string;
|
|
40
|
-
keyboardBackgroundColor?: string;
|
|
41
|
-
keyboardButtonBackgroundColor?: string;
|
|
42
|
-
keyboardButtonTextColor?: string;
|
|
43
|
-
keyboardButtonHoverColor?: string;
|
|
44
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PresetsProps } from './Presets';
|
|
3
|
-
import { RightItemsStyleProps } from '../Amount';
|
|
4
|
-
import './index.less';
|
|
5
|
-
export interface BaseNumberKeyboardProps {
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
format?: (val: string) => React.ReactNode;
|
|
8
|
-
defaultValue?: string | number;
|
|
9
|
-
doneText?: string;
|
|
10
|
-
resetText?: string;
|
|
11
|
-
onChange?: (val: string) => void;
|
|
12
|
-
onEnter?: (val: string) => void;
|
|
13
|
-
value?: string | number;
|
|
14
|
-
max?: number;
|
|
15
|
-
min?: number;
|
|
16
|
-
presets?: PresetsProps['presets'];
|
|
17
|
-
defaultSelect?: boolean;
|
|
18
|
-
rightItemsStyle?: RightItemsStyleProps;
|
|
19
|
-
}
|
|
20
|
-
declare const BaseNumberKeyboard: (props: BaseNumberKeyboardProps) => JSX.Element;
|
|
21
|
-
export default BaseNumberKeyboard;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { KeyboardProps } from "./Keyboard";
|
|
3
|
-
import { VirtualKeyInputProps } from "./VirtualKeyInput";
|
|
4
|
-
import "./index.less";
|
|
5
|
-
interface VirtualKeyboardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
keyboardProps?: KeyboardProps;
|
|
7
|
-
virtualKeyInputProps?: VirtualKeyInputProps;
|
|
8
|
-
rightPanel?: React.ReactNode;
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
onChange?: (value?: any) => void;
|
|
11
|
-
value?: string;
|
|
12
|
-
selectType?: 'light' | 'dark';
|
|
13
|
-
backgroundColor?: string;
|
|
14
|
-
containerBackgroundColor?: string;
|
|
15
|
-
buttonBackgroundColor?: string;
|
|
16
|
-
textColor?: string;
|
|
17
|
-
keyboardBackgroundColor?: string;
|
|
18
|
-
keyboardButtonBackgroundColor?: string;
|
|
19
|
-
keyboardButtonTextColor?: string;
|
|
20
|
-
keyboardButtonHoverColor?: string;
|
|
21
|
-
primaryButtonBackgroundColor?: string;
|
|
22
|
-
primaryButtonTextColor?: string;
|
|
23
|
-
}
|
|
24
|
-
declare const VirtualKeyboard: (props: VirtualKeyboardProps) => JSX.Element;
|
|
25
|
-
export default VirtualKeyboard;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface PisellToastProps {
|
|
4
|
-
/** 提示内容 */
|
|
5
|
-
content: React.ReactNode;
|
|
6
|
-
/** 自动关闭的延时,单位秒。设为 0 时不自动关闭 */
|
|
7
|
-
duration?: number;
|
|
8
|
-
/** 是否展示action */
|
|
9
|
-
showAction?: boolean;
|
|
10
|
-
/** action文案 */
|
|
11
|
-
actionText?: string;
|
|
12
|
-
/** 关闭时触发的回调函数 */
|
|
13
|
-
onClose?: () => void;
|
|
14
|
-
}
|
|
15
|
-
declare const PisellToast: (props: PisellToastProps) => void;
|
|
16
|
-
export default PisellToast;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface IProps {
|
|
4
|
-
isShowImage?: boolean;
|
|
5
|
-
dataSource: {
|
|
6
|
-
image?: string;
|
|
7
|
-
bundle?: any[];
|
|
8
|
-
options?: any[];
|
|
9
|
-
product_option_string?: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
symbol?: string;
|
|
12
|
-
price?: string | number;
|
|
13
|
-
total?: number;
|
|
14
|
-
origin_total?: number;
|
|
15
|
-
num?: number;
|
|
16
|
-
};
|
|
17
|
-
style?: React.CSSProperties;
|
|
18
|
-
isMainProduct?: boolean;
|
|
19
|
-
}
|
|
20
|
-
declare const BasicInfo: (props: IProps) => JSX.Element;
|
|
21
|
-
export default BasicInfo;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 金额是否是负
|
|
3
|
-
* @description:
|
|
4
|
-
* @param {string} type
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: WangHan
|
|
7
|
-
* @Date: 2024-11-22 10:01
|
|
8
|
-
*/
|
|
9
|
-
export declare const minusSign: (item: any, type?: string) => "" | "-";
|
|
10
|
-
/**
|
|
11
|
-
* @title: 金额格式化
|
|
12
|
-
* @description:
|
|
13
|
-
* @param {number} price
|
|
14
|
-
* @param {string} amountSymbol
|
|
15
|
-
* @param {number} digit
|
|
16
|
-
* @return {*}
|
|
17
|
-
* @Author: WangHan
|
|
18
|
-
* @Date: 2024-11-22 10:58
|
|
19
|
-
*/
|
|
20
|
-
export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
interface IProps {
|
|
3
|
-
hideDivider?: boolean;
|
|
4
|
-
dataSource: {
|
|
5
|
-
symbol?: string;
|
|
6
|
-
relation_products?: any[];
|
|
7
|
-
bundle?: any[];
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
declare const Sales: ({ hideDivider, dataSource }: IProps) => JSX.Element | null;
|
|
11
|
-
export default Sales;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
import { ProductCardTypes } from '../types';
|
|
3
|
-
interface ISKUCardProps extends ProductCardTypes {
|
|
4
|
-
type: 'a2' | 'a5';
|
|
5
|
-
}
|
|
6
|
-
export declare const PREFIX = "pisell-cart-sku-card";
|
|
7
|
-
declare const CartSkuCard: (props: ISKUCardProps) => JSX.Element;
|
|
8
|
-
export default CartSkuCard;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
|
|
3
|
-
export interface RightItemsStyleProps {
|
|
4
|
-
buttonBackgroundColor?: string;
|
|
5
|
-
textColor?: string;
|
|
6
|
-
resetButtonBackgroundColor?: string;
|
|
7
|
-
resetButtonTextColor?: string;
|
|
8
|
-
isDoneButtonFollowTheme?: boolean;
|
|
9
|
-
doneButtonBackgroundColor?: string;
|
|
10
|
-
doneButtonTextColor?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface AmountProps {
|
|
13
|
-
max?: number;
|
|
14
|
-
min?: number;
|
|
15
|
-
doneText?: string;
|
|
16
|
-
resetText?: string;
|
|
17
|
-
defaultValue?: string | number;
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
amountProps?: {
|
|
20
|
-
showCurrencySymbol: boolean;
|
|
21
|
-
useThousandsSeparator: boolean;
|
|
22
|
-
};
|
|
23
|
-
presets?: BaseNumberKeyboardProps['presets'];
|
|
24
|
-
value?: string | number;
|
|
25
|
-
onChange?: (val: string | number) => void;
|
|
26
|
-
onEnter?: (val: string | number) => void;
|
|
27
|
-
defaultSelect?: boolean;
|
|
28
|
-
inputFormat?: (_v: string) => React.ReactNode | null;
|
|
29
|
-
rightItemsStyle?: RightItemsStyleProps;
|
|
30
|
-
selectType?: 'light' | 'dark';
|
|
31
|
-
backgroundColor?: string;
|
|
32
|
-
containerBackgroundColor?: string;
|
|
33
|
-
buttonBackgroundColor?: string;
|
|
34
|
-
textColor?: string;
|
|
35
|
-
resetButtonBackgroundColor?: string;
|
|
36
|
-
resetButtonTextColor?: string;
|
|
37
|
-
isDoneButtonFollowTheme?: boolean;
|
|
38
|
-
doneButtonBackgroundColor?: string;
|
|
39
|
-
doneButtonTextColor?: string;
|
|
40
|
-
keyboardBackgroundColor?: string;
|
|
41
|
-
keyboardButtonBackgroundColor?: string;
|
|
42
|
-
keyboardButtonTextColor?: string;
|
|
43
|
-
keyboardButtonHoverColor?: string;
|
|
44
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PresetsProps } from './Presets';
|
|
3
|
-
import { RightItemsStyleProps } from '../Amount';
|
|
4
|
-
import './index.less';
|
|
5
|
-
export interface BaseNumberKeyboardProps {
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
format?: (val: string) => React.ReactNode;
|
|
8
|
-
defaultValue?: string | number;
|
|
9
|
-
doneText?: string;
|
|
10
|
-
resetText?: string;
|
|
11
|
-
onChange?: (val: string) => void;
|
|
12
|
-
onEnter?: (val: string) => void;
|
|
13
|
-
value?: string | number;
|
|
14
|
-
max?: number;
|
|
15
|
-
min?: number;
|
|
16
|
-
presets?: PresetsProps['presets'];
|
|
17
|
-
defaultSelect?: boolean;
|
|
18
|
-
rightItemsStyle?: RightItemsStyleProps;
|
|
19
|
-
}
|
|
20
|
-
declare const BaseNumberKeyboard: (props: BaseNumberKeyboardProps) => JSX.Element;
|
|
21
|
-
export default BaseNumberKeyboard;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { KeyboardProps } from "./Keyboard";
|
|
3
|
-
import { VirtualKeyInputProps } from "./VirtualKeyInput";
|
|
4
|
-
import "./index.less";
|
|
5
|
-
interface VirtualKeyboardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
keyboardProps?: KeyboardProps;
|
|
7
|
-
virtualKeyInputProps?: VirtualKeyInputProps;
|
|
8
|
-
rightPanel?: React.ReactNode;
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
onChange?: (value?: any) => void;
|
|
11
|
-
value?: string;
|
|
12
|
-
selectType?: 'light' | 'dark';
|
|
13
|
-
backgroundColor?: string;
|
|
14
|
-
containerBackgroundColor?: string;
|
|
15
|
-
buttonBackgroundColor?: string;
|
|
16
|
-
textColor?: string;
|
|
17
|
-
keyboardBackgroundColor?: string;
|
|
18
|
-
keyboardButtonBackgroundColor?: string;
|
|
19
|
-
keyboardButtonTextColor?: string;
|
|
20
|
-
keyboardButtonHoverColor?: string;
|
|
21
|
-
primaryButtonBackgroundColor?: string;
|
|
22
|
-
primaryButtonTextColor?: string;
|
|
23
|
-
}
|
|
24
|
-
declare const VirtualKeyboard: (props: VirtualKeyboardProps) => JSX.Element;
|
|
25
|
-
export default VirtualKeyboard;
|