@pisell/materials 6.5.6 → 6.5.7

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 (203) hide show
  1. package/es/components/appVersionControl/index.d.ts +1 -0
  2. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  3. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  4. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  5. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  6. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  7. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  8. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  9. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  10. package/es/components/dataSourceComponents/fields/index.d.ts +5 -5
  11. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  12. package/es/components/date-picker/index.d.ts +1 -0
  13. package/es/components/drag-sort-tree/index.d.ts +1 -0
  14. package/es/components/lowCodePage/index.d.ts +1 -0
  15. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  16. package/es/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  17. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  18. package/es/components/pisellInput/index.d.ts +1 -0
  19. package/es/components/pisellLoading/index.d.ts +1 -0
  20. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  21. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  22. package/es/components/pisellModal/components/index.d.ts +1 -0
  23. package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
  24. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +1 -0
  25. package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  26. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  27. package/es/components/productCard/components/Note/index.d.ts +1 -0
  28. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  29. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  30. package/es/components/productCard/components/Packages/index.d.ts +1 -0
  31. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -0
  32. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  33. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
  34. package/es/components/productCard/components/Time/index.d.ts +1 -0
  35. package/es/components/qrcode/index.d.ts +1 -0
  36. package/es/components/select-time/index.d.ts +1 -0
  37. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  38. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  39. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  40. package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
  41. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  42. package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
  43. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  44. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  45. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  46. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  47. package/es/components/table/Table/utils.d.ts +1 -1
  48. package/lib/components/appVersionControl/index.d.ts +1 -0
  49. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  50. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  51. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  52. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  53. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  54. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  55. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  56. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  57. package/lib/components/dataSourceComponents/fields/index.d.ts +5 -5
  58. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  59. package/lib/components/date-picker/index.d.ts +1 -0
  60. package/lib/components/drag-sort-tree/index.d.ts +1 -0
  61. package/lib/components/lowCodePage/index.d.ts +1 -0
  62. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  63. package/lib/components/pisellInformationEntry/Scan/index.d.ts +1 -0
  64. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  65. package/lib/components/pisellInput/index.d.ts +1 -0
  66. package/lib/components/pisellLoading/index.d.ts +1 -0
  67. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  68. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  69. package/lib/components/pisellModal/components/index.d.ts +1 -0
  70. package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
  71. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +1 -0
  72. package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  73. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  74. package/lib/components/productCard/components/Note/index.d.ts +1 -0
  75. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  76. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  77. package/lib/components/productCard/components/Packages/index.d.ts +1 -0
  78. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -0
  79. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  80. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -0
  81. package/lib/components/productCard/components/Time/index.d.ts +1 -0
  82. package/lib/components/qrcode/index.d.ts +1 -0
  83. package/lib/components/select-time/index.d.ts +1 -0
  84. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  85. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  86. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  87. package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
  88. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  89. package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
  90. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  91. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  92. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  93. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  94. package/lib/components/table/Table/utils.d.ts +1 -1
  95. package/package.json +1 -1
  96. package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
  97. package/es/components/auto-resize-text/index.d.ts +0 -6
  98. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
  99. package/es/components/keyboard/index.d.ts +0 -22
  100. package/es/components/pisell-config-provider/context.d.ts +0 -22
  101. package/es/components/pisell-config-provider/index.d.ts +0 -13
  102. package/es/components/pisellAdjustPrice/index.d.ts +0 -4
  103. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  104. package/es/components/pisellAdjustPrice/type.d.ts +0 -22
  105. package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
  106. package/es/components/pisellQRScanner/index.d.ts +0 -24
  107. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  108. package/es/components/pisellToast/index.d.ts +0 -17
  109. package/es/components/pisellToast/squareToast/index.d.ts +0 -15
  110. package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
  111. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
  112. package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
  113. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
  114. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
  115. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  116. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  117. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
  118. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  119. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  120. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  121. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  122. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  123. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  124. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  125. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  126. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  127. package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
  128. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
  129. package/es/components/productCard/components/Action/index.d.ts +0 -4
  130. package/es/components/productCard/components/Header/index.d.ts +0 -3
  131. package/es/components/productCard/components/Sales/index.d.ts +0 -3
  132. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  133. package/es/components/productCard/locales.d.ts +0 -84
  134. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -5
  135. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  136. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
  137. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  138. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  139. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  140. package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
  141. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  142. package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
  143. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  144. package/es/components/virtual-keyboard/index.d.ts +0 -25
  145. package/es/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
  146. package/es/components/virtualInput/index.d.ts +0 -24
  147. package/es/locales/en-US.d.ts +0 -307
  148. package/es/locales/zh-CN.d.ts +0 -302
  149. package/es/locales/zh-TW.d.ts +0 -302
  150. package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +0 -20
  151. package/lib/components/auto-resize-text/index.d.ts +0 -6
  152. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
  153. package/lib/components/keyboard/index.d.ts +0 -22
  154. package/lib/components/pisell-config-provider/context.d.ts +0 -22
  155. package/lib/components/pisell-config-provider/index.d.ts +0 -13
  156. package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
  157. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  158. package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
  159. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
  160. package/lib/components/pisellQRScanner/index.d.ts +0 -24
  161. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  162. package/lib/components/pisellToast/index.d.ts +0 -17
  163. package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
  164. package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
  165. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -29
  166. package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
  167. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
  168. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
  169. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  170. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  171. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -27
  172. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  173. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  174. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  175. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  176. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  177. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  178. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  179. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  180. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  181. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
  182. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
  183. package/lib/components/productCard/components/Action/index.d.ts +0 -4
  184. package/lib/components/productCard/components/Header/index.d.ts +0 -3
  185. package/lib/components/productCard/components/Sales/index.d.ts +0 -3
  186. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  187. package/lib/components/productCard/locales.d.ts +0 -84
  188. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -5
  189. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  190. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
  191. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  192. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  193. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  194. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
  195. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  196. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
  197. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  198. package/lib/components/virtual-keyboard/index.d.ts +0 -25
  199. package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +0 -40
  200. package/lib/components/virtualInput/index.d.ts +0 -24
  201. package/lib/locales/en-US.d.ts +0 -307
  202. package/lib/locales/zh-CN.d.ts +0 -302
  203. package/lib/locales/zh-TW.d.ts +0 -302
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GallerySettingType } from "../../../../../types";
3
2
  import "./index.less";
4
3
  declare type TitleProps = GallerySettingType["title"] & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("filters" | "view_mode" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "gallery_setting")[];
158
+ }) => ("filters" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "view_mode" | "gallery_setting")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.5.6",
3
+ "version": "6.5.7",
4
4
  "scripts": {
5
5
  "dev": "father dev",
6
6
  "build": "father build",
@@ -1,20 +0,0 @@
1
- export declare type Options = {
2
- mode?: 'oneline' | 'multiline' | 'box' | 'boxoneline' | undefined;
3
- minFontSizePx?: number | undefined;
4
- maxFontSizePx?: number | undefined;
5
- fontSizePrecisionPx?: number | undefined;
6
- scrollToEnd?: boolean | undefined;
7
- };
8
- export declare function updateTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
9
- innerEl: HTMLElement;
10
- containerEl: HTMLElement;
11
- }): void;
12
- declare type DisconnectableFunction = {
13
- (): void;
14
- disconnect: () => void;
15
- };
16
- export declare function autoTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
17
- innerEl: HTMLElement;
18
- containerEl: HTMLElement;
19
- }): DisconnectableFunction;
20
- export {};
@@ -1,6 +0,0 @@
1
- import React, { DetailedHTMLProps, HTMLAttributes, ReactElement, ReactHTML } from 'react';
2
- import { Options } from './auto-text-size-standalone';
3
- export default function AutoResizeText({ mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, as: Comp, children, ...rest }: Options & {
4
- as?: keyof ReactHTML | React.ComponentType<any>;
5
- children?: React.ReactNode;
6
- } & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>): ReactElement;
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- import { ValueProps, SortType } from '../types';
4
- declare type IdType = string | number;
5
- declare type TreeItemProps = {
6
- id: string | number;
7
- key: string | number;
8
- item: ValueProps | any;
9
- depth: number;
10
- lists: any[];
11
- childrenProps?: SortType;
12
- sensors?: any;
13
- expandedKeys?: IdType[];
14
- setExpandedKeys?: any;
15
- onSelectKeys?: (ids: IdType) => void;
16
- onChange?: (value: any[]) => void;
17
- };
18
- declare const TreeItem: (props: TreeItemProps) => JSX.Element;
19
- export default TreeItem;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export declare type ItemValue = string | number;
4
- export interface Item {
5
- value: ItemValue;
6
- label: React.ReactNode;
7
- disabled: boolean;
8
- type: 'text' | 'primary';
9
- style?: React.CSSProperties;
10
- size?: number;
11
- }
12
- export interface KeyboardProps {
13
- id?: string;
14
- className?: string;
15
- style?: React.CSSProperties;
16
- onChange?: (value?: ItemValue) => void;
17
- items?: Item[];
18
- rightItems?: Item[];
19
- keydown?: boolean;
20
- }
21
- declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
22
- export default _default;
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- export interface PisellContextType {
3
- platform: 'h5' | 'pc' | 'ipad';
4
- /** 货币符号 */
5
- symbol?: string;
6
- /** 当前语言环境 */
7
- locale?: string;
8
- /** 获取货币符号 */
9
- getSymbolic?: () => string;
10
- }
11
- export declare const PisellContext: import("react").Context<PisellContextType>;
12
- /**
13
- * provider外获取当前全局配置
14
- */
15
- declare class GlobalConfig {
16
- private config;
17
- constructor();
18
- setConfig(config: PisellContextType): void;
19
- getConfig(): PisellContextType;
20
- }
21
- export declare const globalConfig: GlobalConfig;
22
- export default PisellContext;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from './context';
3
- interface PisellConfigProviderType {
4
- platform?: PisellContextType['platform'];
5
- children: React.ReactNode;
6
- /** 货币符号 */
7
- symbol?: string;
8
- /** 当前语言环境 */
9
- locale?: string;
10
- getSymbolic?: () => string;
11
- }
12
- declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
13
- export default PisellConfigProvider;
@@ -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,32 +0,0 @@
1
- export declare const defaultConfig: {
2
- dark: {
3
- backgroundColor: string;
4
- containerBackgroundColor: string;
5
- buttonBackgroundColor: string;
6
- textColor: string;
7
- resetButtonBackgroundColor: string;
8
- resetButtonTextColor: string;
9
- isDoneButtonFollowTheme: boolean;
10
- doneButtonBackgroundColor: string;
11
- doneButtonTextColor: string;
12
- isShowMainText: boolean;
13
- mainTextColor: string;
14
- isShowSubText: boolean;
15
- subTextColor: string;
16
- };
17
- light: {
18
- backgroundColor: string;
19
- containerBackgroundColor: string;
20
- buttonBackgroundColor: string;
21
- textColor: string;
22
- resetButtonBackgroundColor: string;
23
- resetButtonTextColor: string;
24
- isDoneButtonFollowTheme: boolean;
25
- doneButtonBackgroundColor: string;
26
- doneButtonTextColor: string;
27
- isShowMainText: boolean;
28
- mainTextColor: string;
29
- isShowSubText: boolean;
30
- subTextColor: string;
31
- };
32
- };
@@ -1,22 +0,0 @@
1
- export interface PisellAdjustPriceProps {
2
- value?: number;
3
- originValue: number;
4
- defaultValue?: number;
5
- onChange?: (val: number) => void;
6
- selectType?: 'light' | 'dark';
7
- backgroundColor?: string;
8
- containerBackgroundColor?: string;
9
- buttonBackgroundColor?: string;
10
- textColor?: string;
11
- resetButtonBackgroundColor?: string;
12
- resetButtonTextColor?: string;
13
- isDoneButtonFollowTheme?: boolean;
14
- doneButtonBackgroundColor?: string;
15
- doneButtonTextColor?: string;
16
- isShowMainText?: boolean;
17
- mainTextColor?: string;
18
- isShowSubText?: boolean;
19
- subTextColor?: string;
20
- resetText?: string;
21
- doneText?: string;
22
- }
@@ -1,40 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from '../pisell-config-provider/context';
3
- import './index.less';
4
- export interface PisellCheckboxGroupOption {
5
- label: string;
6
- value: string;
7
- disabled?: boolean;
8
- error?: boolean;
9
- [key: string]: any;
10
- }
11
- declare type PisellCheckboxGroupValue = string | string[] | any;
12
- export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
13
- platform?: PisellContextType['platform'];
14
- direction?: 'horizontal' | 'vertical';
15
- fullWidth?: boolean;
16
- gap?: number;
17
- padding?: number;
18
- options: PisellCheckboxGroupOption[];
19
- onChange?: (value: PisellCheckboxGroupValue, item: PisellCheckboxGroupOption) => void;
20
- value?: PisellCheckboxGroupValue;
21
- renderOption?: (option: PisellCheckboxGroupOption, active: boolean, index: number) => React.ReactNode;
22
- rowKey?: string;
23
- mode?: 'multiple' | 'single';
24
- iconPosition?: 'left' | 'right' | 'hide';
25
- optionClassName?: string;
26
- optionActiveClassName?: string;
27
- onChangeDebounce?: boolean;
28
- onItemClick?: (e: React.MouseEvent<HTMLDivElement>, option: PisellCheckboxGroupOption) => void;
29
- showActiveBackground?: boolean;
30
- }
31
- /**
32
- * @title: PisellCheckboxGroup
33
- * @description: 选中组件
34
- * @param {PisellCheckboxGroupProps} props
35
- * @return {*}
36
- * @Author: zhiwei.Wang
37
- * @Date: 2024-08-16 10:34
38
- */
39
- declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => JSX.Element;
40
- export default PisellCheckboxGroup;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface PisellQRScannerProps {
4
- /** 是否可见 */
5
- visible: boolean;
6
- /** 是否显示上传图片按钮 */
7
- showUpload?: boolean;
8
- /** 关闭回调 */
9
- onClose: () => void;
10
- /** 扫码成功回调 */
11
- onScan: (value: string) => void;
12
- /**
13
- * 样式属性,可选
14
- * 注意: 不应传入renderMode等不必要属性
15
- */
16
- style?: React.CSSProperties;
17
- /** 类名,可选 */
18
- className?: string;
19
- }
20
- /**
21
- * 二维码扫描组件
22
- */
23
- declare const PisellQRScanner: React.FC<PisellQRScannerProps>;
24
- export default PisellQRScanner;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import { PisellContextType } from '../../../pisell-config-provider/context';
3
- export interface AmountProps extends React.HTMLAttributes<HTMLSpanElement> {
4
- /** 平台 */
5
- platform?: PisellContextType['platform'];
6
- /** 当前数值 */
7
- value?: number | string;
8
- /** 小数点后位数 默认是小数点后2位 */
9
- precision?: number;
10
- /** 显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示 */
11
- showCurrencySymbol?: boolean;
12
- /** 千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭 */
13
- useThousandsSeparator?: boolean;
14
- /** 整数位隐藏小数 指的是如果价格为整数,后面的".00" 将被省略以节省页面空间 */
15
- hideDecimalForWholeNumbers?: boolean;
16
- /** 货币符号 */
17
- symbol?: string;
18
- }
19
- declare const Amount: (props: AmountProps) => JSX.Element;
20
- export default Amount;
@@ -1,17 +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 { useToast } from './squareToast';
17
- export default PisellToast;
@@ -1,15 +0,0 @@
1
- import { clear, show, success, info, loading, fail, hide } from './methods';
2
- import './index.less';
3
- interface ToastInstance {
4
- show: typeof show;
5
- clear: typeof clear;
6
- success: typeof success;
7
- info: typeof info;
8
- loading: typeof loading;
9
- fail: typeof fail;
10
- error: typeof fail;
11
- hide: typeof hide;
12
- }
13
- declare const Toast: ToastInstance;
14
- export declare const useToast: () => ToastInstance;
15
- export default Toast;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { ToastProps } from './toast';
3
- interface ToastInstance {
4
- close: () => void;
5
- }
6
- declare const show: (configOrContent: Partial<ToastProps> | React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
7
- declare const clear: () => void;
8
- declare const success: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
9
- declare const info: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
10
- declare const loading: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
11
- declare const fail: (content: React.ReactNode, duration?: number, afterClose?: () => void) => ToastInstance;
12
- declare const hide: () => void;
13
- export { show, clear, success, info, loading, fail, hide };
@@ -1,29 +0,0 @@
1
- import type { ReactElement } from 'react';
2
- import type { Root } from 'react-dom/client';
3
- import React from 'react';
4
- declare type ImperativeProps = {
5
- open?: boolean;
6
- onCancel?: () => void;
7
- afterClose?: () => void;
8
- };
9
- declare type TargetElement = ReactElement<ImperativeProps>;
10
- export declare type ImperativeHandler = {
11
- close: () => void;
12
- replace: (element: TargetElement) => void;
13
- isRendered?: () => boolean;
14
- };
15
- export declare type UnmountType = () => Promise<void>;
16
- export declare type RenderType = (node: React.ReactElement, container: Element | DocumentFragment) => UnmountType;
17
- declare const MARK = "__pisell_react_root__";
18
- declare type ContainerType = (Element | DocumentFragment) & {
19
- [MARK]?: Root;
20
- };
21
- export declare function render(node: React.ReactElement, container: ContainerType): void;
22
- export declare function unmount(container: ContainerType): Promise<void>;
23
- /**
24
- * @deprecated 设置 React 渲染函数以兼容使用。
25
- */
26
- export declare function unstableSetRender(render?: RenderType): RenderType;
27
- export declare function renderToBody(element: ReactElement): UnmountType;
28
- export declare function renderImperatively(element: TargetElement): ImperativeHandler;
29
- export {};
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export declare type ToastType = 'success' | 'error' | 'warning' | 'info' | 'loading';
4
- export interface ToastProps {
5
- /** Toast 类型 */
6
- icon?: ToastType | React.ReactNode;
7
- /** 显示的内容,支持文本或 React 节点 */
8
- content: React.ReactNode;
9
- /** 是否显示 */
10
- open?: boolean;
11
- /** 自动关闭时间,单位毫秒,0 表示不自动关闭 */
12
- duration?: number;
13
- /** 关闭 */
14
- onCancel?: () => void;
15
- /** 关闭后回调 */
16
- afterClose?: () => void;
17
- /** 自定义样式类名 */
18
- className?: string;
19
- /** 自定义样式 */
20
- style?: React.CSSProperties;
21
- /** 是否显示遮罩 */
22
- mask?: boolean;
23
- }
24
- declare const Toast: React.FC<ToastProps>;
25
- export default Toast;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
3
- export default Footer;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
- export default MultiDay;
@@ -1,14 +0,0 @@
1
- interface InputItem {
2
- start_date: string;
3
- end_date: string;
4
- total: number;
5
- num: number;
6
- }
7
- interface OutputItem {
8
- start_date: string;
9
- end_date: string;
10
- total: number;
11
- num: number;
12
- }
13
- export declare function formatDateRanges(list: InputItem[]): OutputItem[];
14
- export {};
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Note: (props: any) => JSX.Element | null;
3
- export default Note;
@@ -1,27 +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
- holder_id?: any;
17
- };
18
- style?: React.CSSProperties;
19
- /** 作为主商品卡片展示
20
- * 1. 影响商品数量 tag 的位置
21
- * 2. isMain 且 type 为 a5,展示holder
22
- */
23
- isMainProduct?: boolean;
24
- type?: 'a2' | 'a5';
25
- }
26
- declare const BasicInfo: (props: IProps) => JSX.Element;
27
- 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) => string | number;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Resources: (props: any) => JSX.Element | null;
3
- export default Resources;
@@ -1,12 +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
- isShowImage?: boolean;
10
- }
11
- declare const Sales: ({ hideDivider, dataSource, isShowImage }: IProps) => JSX.Element | null;
12
- 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,46 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import React from 'react';
3
- declare type NativeProps<S extends string = never> = {
4
- className?: string;
5
- style?: React.CSSProperties & Partial<Record<S, string>>;
6
- };
7
- declare type PropagationEvent = 'click';
8
- import './index.less';
9
- declare type SideType = 'left' | 'right';
10
- export declare type SwipeActionRef = {
11
- close: () => void;
12
- show: (side?: SideType) => void;
13
- };
14
- declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
15
- export declare type Action = {
16
- key: string | number;
17
- text: ReactNode;
18
- color?: ActionColor | string;
19
- onClick?: (e: React.MouseEvent) => void;
20
- style?: React.CSSProperties;
21
- };
22
- export declare type SwipeActionProps = {
23
- rightActions?: Action[];
24
- leftActions?: Action[];
25
- onAction?: (action: Action, e: React.MouseEvent) => void;
26
- closeOnTouchOutside?: boolean;
27
- closeOnAction?: boolean;
28
- children: ReactNode;
29
- stopPropagation?: PropagationEvent[];
30
- onActionsReveal?: (side: SideType) => void;
31
- onClose?: () => void;
32
- escapeDom?: string;
33
- } & NativeProps<'--background'>;
34
- export declare const SwipeAction: React.ForwardRefExoticComponent<{
35
- rightActions?: Action[] | undefined;
36
- leftActions?: Action[] | undefined;
37
- onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
38
- closeOnTouchOutside?: boolean | undefined;
39
- closeOnAction?: boolean | undefined;
40
- children: ReactNode;
41
- stopPropagation?: "click"[] | undefined;
42
- onActionsReveal?: ((side: SideType) => void) | undefined;
43
- onClose?: (() => void) | undefined;
44
- escapeDom?: string | undefined;
45
- } & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
46
- export {};
@@ -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,10 +0,0 @@
1
- import './index.less';
2
- import { ProductCardTypes } from '../types';
3
- interface ISKUCardProps extends ProductCardTypes {
4
- type: 'a2' | 'a5';
5
- rightActions: any[];
6
- escapeDom?: string;
7
- }
8
- export declare const PREFIX = "pisell-cart-sku-card";
9
- declare const CartSkuCard: (props: ISKUCardProps) => JSX.Element;
10
- export default CartSkuCard;