@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.
Files changed (45) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/package.json +1 -1
  6. package/es/components/pisellAdjustPrice/index.d.ts +0 -4
  7. package/es/components/pisellToast/index.d.ts +0 -16
  8. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -21
  9. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  10. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  11. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  12. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  13. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  14. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -11
  15. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  16. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  17. package/es/components/productCard/cartSkuCard/index.d.ts +0 -8
  18. package/es/components/productCard/components/Header/index.d.ts +0 -3
  19. package/es/components/productCard/components/Sales/index.d.ts +0 -3
  20. package/es/components/productCard/index.d.ts +0 -7
  21. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -5
  22. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
  23. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -21
  24. package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
  25. package/es/components/virtual-keyboard/index.d.ts +0 -25
  26. package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
  27. package/lib/components/pisellToast/index.d.ts +0 -16
  28. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -21
  29. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  30. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  31. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  32. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  33. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  34. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -11
  35. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  36. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  37. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -8
  38. package/lib/components/productCard/components/Header/index.d.ts +0 -3
  39. package/lib/components/productCard/components/Sales/index.d.ts +0 -3
  40. package/lib/components/productCard/index.d.ts +0 -7
  41. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -5
  42. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
  43. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -21
  44. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
  45. package/lib/components/virtual-keyboard/index.d.ts +0 -25
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.2.25",
3
+ "version": "6.2.26",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1,4 +0,0 @@
1
- import './index.less';
2
- import { PisellAdjustPriceProps } from './type';
3
- declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
4
- export default PisellAdjustPrice;
@@ -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,2 +0,0 @@
1
- declare const DiscountReason: (props: any) => JSX.Element;
2
- export default DiscountReason;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Holders: (props: any) => JSX.Element | null;
3
- export default Holders;
@@ -1,10 +0,0 @@
1
- import './index.less';
2
- interface IProps {
3
- isShowImage?: boolean;
4
- dataSource: {
5
- bundle?: any[];
6
- symbol?: string;
7
- };
8
- }
9
- declare const Packages: ({ isShowImage, dataSource }: IProps) => JSX.Element | null;
10
- export default Packages;
@@ -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,3 +0,0 @@
1
- import './index.less';
2
- declare const Resources: (props: any) => JSX.Element;
3
- export default Resources;
@@ -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,3 +0,0 @@
1
- import './index.less';
2
- declare const Specs: (props: any) => JSX.Element | null;
3
- export default Specs;
@@ -1,6 +0,0 @@
1
- import 'dayjs/locale/zh-cn';
2
- import 'dayjs/locale/en';
3
- import 'dayjs/locale/zh-tw';
4
- import './index.less';
5
- declare const TimeRange: (props: any) => JSX.Element | null;
6
- export default TimeRange;
@@ -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,3 +0,0 @@
1
- import './index.less';
2
- declare const Header: (props: any) => JSX.Element;
3
- export default Header;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
3
- export default Sales;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { ProductCardTypes } from './types';
3
- import './index.less';
4
- declare const ProductCard: React.FC<ProductCardTypes> & {
5
- V2: any;
6
- };
7
- export default ProductCard;
@@ -1,5 +0,0 @@
1
- import { AmountProps, RightItemsStyleProps } from './types';
2
- import './index.less';
3
- export type { AmountProps, RightItemsStyleProps };
4
- declare const Amount: (props: AmountProps) => JSX.Element;
5
- export default Amount;
@@ -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,5 +0,0 @@
1
- import { NumberProps } from './types';
2
- import './index.less';
3
- export type { NumberProps };
4
- declare const Number: (props: NumberProps) => JSX.Element;
5
- export default Number;
@@ -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,4 +0,0 @@
1
- import './index.less';
2
- import { PisellAdjustPriceProps } from './type';
3
- declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
4
- export default PisellAdjustPrice;
@@ -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,2 +0,0 @@
1
- declare const DiscountReason: (props: any) => JSX.Element;
2
- export default DiscountReason;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Holders: (props: any) => JSX.Element | null;
3
- export default Holders;
@@ -1,10 +0,0 @@
1
- import './index.less';
2
- interface IProps {
3
- isShowImage?: boolean;
4
- dataSource: {
5
- bundle?: any[];
6
- symbol?: string;
7
- };
8
- }
9
- declare const Packages: ({ isShowImage, dataSource }: IProps) => JSX.Element | null;
10
- export default Packages;
@@ -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,3 +0,0 @@
1
- import './index.less';
2
- declare const Resources: (props: any) => JSX.Element;
3
- export default Resources;
@@ -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,3 +0,0 @@
1
- import './index.less';
2
- declare const Specs: (props: any) => JSX.Element | null;
3
- export default Specs;
@@ -1,6 +0,0 @@
1
- import 'dayjs/locale/zh-cn';
2
- import 'dayjs/locale/en';
3
- import 'dayjs/locale/zh-tw';
4
- import './index.less';
5
- declare const TimeRange: (props: any) => JSX.Element | null;
6
- export default TimeRange;
@@ -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,3 +0,0 @@
1
- import './index.less';
2
- declare const Header: (props: any) => JSX.Element;
3
- export default Header;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
3
- export default Sales;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { ProductCardTypes } from './types';
3
- import './index.less';
4
- declare const ProductCard: React.FC<ProductCardTypes> & {
5
- V2: any;
6
- };
7
- export default ProductCard;
@@ -1,5 +0,0 @@
1
- import { AmountProps, RightItemsStyleProps } from './types';
2
- import './index.less';
3
- export type { AmountProps, RightItemsStyleProps };
4
- declare const Amount: (props: AmountProps) => JSX.Element;
5
- export default Amount;
@@ -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,5 +0,0 @@
1
- import { NumberProps } from './types';
2
- import './index.less';
3
- export type { NumberProps };
4
- declare const Number: (props: NumberProps) => JSX.Element;
5
- export default Number;
@@ -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;