@pisell/materials 6.11.12 → 6.11.13

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 (215) 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/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +2 -2
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +3 -3
  9. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  10. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
  11. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  12. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  13. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  14. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  15. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  16. package/es/components/dataSourceComponents/fields/index.d.ts +14 -14
  17. package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
  18. package/es/components/pisellDatePicker/index.d.ts +0 -1
  19. package/es/components/productCard/cartSkuCard/components/Gift/index.js +1 -1
  20. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +5 -3
  21. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -1
  22. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  23. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +1 -0
  24. package/es/components/productCard/cartSkuCard/index.js +5 -1
  25. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  26. package/es/components/table/Table/utils.d.ts +1 -1
  27. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  28. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
  29. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  30. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  31. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  32. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  33. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  34. package/lib/components/dataSourceComponents/fields/index.d.ts +14 -14
  35. package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +0 -1
  36. package/lib/components/pisellDatePicker/index.d.ts +0 -1
  37. package/lib/components/productCard/cartSkuCard/components/Gift/index.js +1 -1
  38. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +7 -1
  39. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +1 -1
  40. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  41. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +1 -0
  42. package/lib/components/productCard/cartSkuCard/index.js +5 -1
  43. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  44. package/lib/components/table/Table/utils.d.ts +1 -1
  45. package/package.json +3 -3
  46. package/es/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +0 -5
  47. package/es/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +0 -27
  48. package/es/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +0 -5
  49. package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +0 -15
  50. package/es/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +0 -18
  51. package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
  52. package/es/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +0 -19
  53. package/es/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
  54. package/es/components/PisellCards/components/TextCard/TextCard.d.ts +0 -8
  55. package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
  56. package/es/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +0 -17
  57. package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
  58. package/es/components/PisellCards/components/TextCard/components/index.d.ts +0 -6
  59. package/es/components/PisellCards/components/TextCard/index.d.ts +0 -5
  60. package/es/components/PisellCards/components/TextCard/types.d.ts +0 -270
  61. package/es/components/PisellSteps/PisellSteps.d.ts +0 -14
  62. package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
  63. package/es/components/PisellSuperTabs/hooks/index.d.ts +0 -1
  64. package/es/components/PisellSuperTabs/hooks/useTabsState.d.ts +0 -7
  65. package/es/components/PisellSuperTabs/index.d.ts +0 -3
  66. package/es/components/PisellSuperTabs/types.d.ts +0 -212
  67. package/es/components/PisellTabbar/constants.d.ts +0 -47
  68. package/es/components/PisellTabbar/hooks/index.d.ts +0 -2
  69. package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +0 -55
  70. package/es/components/PisellTabbar/hooks/useExpand.d.ts +0 -42
  71. package/es/components/PisellTabbar/template/Template1/constants.d.ts +0 -10
  72. package/es/components/PisellTabbar/template/Template1/utils/index.d.ts +0 -35
  73. package/es/components/PisellTabbar/types.d.ts +0 -90
  74. package/es/components/PisellTabbar/utils/index.d.ts +0 -69
  75. package/es/components/cardPro/index.d.ts +0 -4
  76. package/es/components/config-provider/index.d.ts +0 -10
  77. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
  78. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -27
  79. package/es/components/dataSourceComponents/fields/Upload/constants.d.ts +0 -9
  80. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
  81. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
  82. package/es/components/drag-sort-tree/index.d.ts +0 -5
  83. package/es/components/filter/components/Dropdown/types.d.ts +0 -13
  84. package/es/components/filter/components/FilterButton/types.d.ts +0 -24
  85. package/es/components/filter/types.d.ts +0 -48
  86. package/es/components/iconfont/index.d.ts +0 -8
  87. package/es/components/login-and-register/index.d.ts +0 -82
  88. package/es/components/pisell-config-provider/context.d.ts +0 -22
  89. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  90. package/es/components/pisellAdjustPrice/type.d.ts +0 -22
  91. package/es/components/pisellEmpty/index.d.ts +0 -19
  92. package/es/components/pisellFilter/type.d.ts +0 -5
  93. package/es/components/pisellGridPro/index.d.ts +0 -4
  94. package/es/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
  95. package/es/components/pisellQuickFilter/type.d.ts +0 -12
  96. package/es/components/pisellStatisticList/index.d.ts +0 -22
  97. package/es/components/pisellToast/squareToast/index.d.ts +0 -15
  98. package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
  99. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
  100. package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
  101. package/es/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
  102. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  103. package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
  104. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
  105. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  106. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -9
  107. package/es/components/productCard/cartSkuCard/index.d.ts +0 -11
  108. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -178
  109. package/es/components/productCard/components/Action/index.d.ts +0 -4
  110. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
  111. package/es/components/productCard/locales.d.ts +0 -138
  112. package/es/components/productCard/status.d.ts +0 -32
  113. package/es/components/productCard/types.d.ts +0 -95
  114. package/es/components/select/index.d.ts +0 -9
  115. package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -9
  116. package/es/components/table/Table/fields/select/Edit/index.d.ts +0 -4
  117. package/es/components/table/types.d.ts +0 -268
  118. package/es/components/translation/utils.d.ts +0 -9
  119. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  120. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  121. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  122. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  123. package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
  124. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  125. package/es/locales/en-US.d.ts +0 -384
  126. package/es/locales/index.d.ts +0 -1
  127. package/es/locales/ja.d.ts +0 -348
  128. package/es/locales/pt.d.ts +0 -348
  129. package/es/locales/zh-CN.d.ts +0 -379
  130. package/es/locales/zh-TW.d.ts +0 -379
  131. package/lib/components/PisellCards/components/GraphicTextCard/components/BadgeWrapper.d.ts +0 -5
  132. package/lib/components/PisellCards/components/GraphicTextCard/components/TextContent.d.ts +0 -27
  133. package/lib/components/PisellCards/components/GraphicTextCard/hooks/index.d.ts +0 -5
  134. package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardClick.d.ts +0 -15
  135. package/lib/components/PisellCards/components/GraphicTextCard/hooks/useGraphicTextCardStyle.d.ts +0 -18
  136. package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
  137. package/lib/components/PisellCards/components/GraphicTextCard/utils/index.d.ts +0 -19
  138. package/lib/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
  139. package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +0 -8
  140. package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
  141. package/lib/components/PisellCards/components/TextCard/components/IconWrapper.d.ts +0 -17
  142. package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
  143. package/lib/components/PisellCards/components/TextCard/components/index.d.ts +0 -6
  144. package/lib/components/PisellCards/components/TextCard/index.d.ts +0 -5
  145. package/lib/components/PisellCards/components/TextCard/types.d.ts +0 -270
  146. package/lib/components/PisellSteps/PisellSteps.d.ts +0 -14
  147. package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +0 -8
  148. package/lib/components/PisellSuperTabs/hooks/index.d.ts +0 -1
  149. package/lib/components/PisellSuperTabs/hooks/useTabsState.d.ts +0 -7
  150. package/lib/components/PisellSuperTabs/index.d.ts +0 -3
  151. package/lib/components/PisellSuperTabs/types.d.ts +0 -212
  152. package/lib/components/PisellTabbar/constants.d.ts +0 -47
  153. package/lib/components/PisellTabbar/hooks/index.d.ts +0 -2
  154. package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +0 -55
  155. package/lib/components/PisellTabbar/hooks/useExpand.d.ts +0 -42
  156. package/lib/components/PisellTabbar/template/Template1/constants.d.ts +0 -10
  157. package/lib/components/PisellTabbar/template/Template1/utils/index.d.ts +0 -35
  158. package/lib/components/PisellTabbar/types.d.ts +0 -90
  159. package/lib/components/PisellTabbar/utils/index.d.ts +0 -69
  160. package/lib/components/cardPro/index.d.ts +0 -4
  161. package/lib/components/config-provider/index.d.ts +0 -10
  162. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -26
  163. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -27
  164. package/lib/components/dataSourceComponents/fields/Upload/constants.d.ts +0 -9
  165. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
  166. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
  167. package/lib/components/drag-sort-tree/index.d.ts +0 -5
  168. package/lib/components/filter/components/Dropdown/types.d.ts +0 -13
  169. package/lib/components/filter/components/FilterButton/types.d.ts +0 -24
  170. package/lib/components/filter/types.d.ts +0 -48
  171. package/lib/components/iconfont/index.d.ts +0 -8
  172. package/lib/components/login-and-register/index.d.ts +0 -82
  173. package/lib/components/pisell-config-provider/context.d.ts +0 -22
  174. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  175. package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
  176. package/lib/components/pisellEmpty/index.d.ts +0 -19
  177. package/lib/components/pisellFilter/type.d.ts +0 -5
  178. package/lib/components/pisellGridPro/index.d.ts +0 -4
  179. package/lib/components/pisellLookup/components/LookupTrigger.d.ts +0 -3
  180. package/lib/components/pisellQuickFilter/type.d.ts +0 -12
  181. package/lib/components/pisellStatisticList/index.d.ts +0 -22
  182. package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
  183. package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
  184. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
  185. package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
  186. package/lib/components/productCard/cartSkuCard/components/Gift/types.d.ts +0 -29
  187. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  188. package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +0 -7
  189. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -36
  190. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  191. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -9
  192. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -11
  193. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -178
  194. package/lib/components/productCard/components/Action/index.d.ts +0 -4
  195. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -4
  196. package/lib/components/productCard/locales.d.ts +0 -138
  197. package/lib/components/productCard/status.d.ts +0 -32
  198. package/lib/components/productCard/types.d.ts +0 -95
  199. package/lib/components/select/index.d.ts +0 -9
  200. package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -9
  201. package/lib/components/table/Table/fields/select/Edit/index.d.ts +0 -4
  202. package/lib/components/table/types.d.ts +0 -268
  203. package/lib/components/translation/utils.d.ts +0 -9
  204. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  205. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  206. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  207. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  208. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
  209. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  210. package/lib/locales/en-US.d.ts +0 -384
  211. package/lib/locales/index.d.ts +0 -1
  212. package/lib/locales/ja.d.ts +0 -348
  213. package/lib/locales/pt.d.ts +0 -348
  214. package/lib/locales/zh-CN.d.ts +0 -379
  215. package/lib/locales/zh-TW.d.ts +0 -379
@@ -1,19 +0,0 @@
1
- import React from '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) => React.JSX.Element;
19
- export default TreeItem;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- import { SortType } from './types';
4
- declare const DragSortTree: (props: SortType) => React.JSX.Element;
5
- export default DragSortTree;
@@ -1,13 +0,0 @@
1
- import { FilterItemProps } from '../../types';
2
- export interface DropdownProps {
3
- quickFilter: FilterItemProps[];
4
- otherFilter: FilterItemProps[];
5
- hiddenQuickFilter?: boolean;
6
- hiddenOtherFilter?: boolean;
7
- onChange: (list: {
8
- quickFilter: FilterItemProps[];
9
- otherFilter: FilterItemProps[];
10
- }) => void;
11
- quickFilterMaxLength: number;
12
- formFiltersPrefix: string;
13
- }
@@ -1,24 +0,0 @@
1
- /// <reference types="react" />
2
- import { FilterItemProps } from '../../types';
3
- export declare type FilterValueType = {
4
- quickFilter: FilterItemProps[];
5
- otherFilter: FilterItemProps[];
6
- /** 筛选项表单值,字段名 -> 值,与 Form 的 values 一致 */
7
- values?: Record<string, any>;
8
- };
9
- export declare type FilterListProps = {
10
- value?: FilterValueType;
11
- hiddenQuickFilter?: boolean;
12
- hiddenOtherFilter?: boolean;
13
- onChange?: (value: FilterValueType) => void;
14
- quickFilterMaxLength: number;
15
- formFiltersPrefix: string;
16
- renderItem?: (item: any, otherProps?: any) => React.ReactNode;
17
- placement?: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
18
- /** 筛选按钮尺寸,与 antd Button size 一致 */
19
- size?: 'small' | 'middle' | 'large';
20
- /** 筛选触发按钮的 className,用于定制样式(如与设计系统对齐) */
21
- buttonClassName?: string;
22
- /** 筛选按钮文案,不传则使用 materials 内置多语言 */
23
- buttonText?: string;
24
- };
@@ -1,48 +0,0 @@
1
- import { ModeType } from "../table/types";
2
- /**
3
- * 筛选总配置
4
- */
5
- export declare type FilterType = {
6
- /** 筛选是否展示 */
7
- show: boolean;
8
- /** 筛选项排序按钮是否展示 */
9
- sortButtonShow: boolean;
10
- /** 筛选列表 */
11
- list: FilterItemProps[];
12
- items?: string[];
13
- /** 快速筛选最大长度 */
14
- quickFilterMaxLength: number;
15
- /** 配置存储模式 */
16
- storageMode: "" | "localStorage";
17
- /** 筛选列表项dom */
18
- dom?: any;
19
- };
20
- /**
21
- * 筛选列表项配置
22
- * - type 为 single/input/rangePicker 等时使用内置或映射组件
23
- * - type 为 "custom" 时使用 other.component,组件接收 value/onChange(由 Form 注入)
24
- */
25
- export declare type FilterItemProps = {
26
- type: "single" | "input" | "datePicker" | "rangePicker" | "rangePickerNew" | "search" | "custom";
27
- name?: string | string[];
28
- key: string;
29
- props?: object;
30
- label?: string;
31
- sort?: boolean;
32
- localFilter?: boolean;
33
- other: Record<string, any>;
34
- isCustom?: boolean;
35
- columnKey?: string;
36
- isHidden?: boolean;
37
- };
38
- /**
39
- * 筛选组件属性
40
- */
41
- export interface FilterProps {
42
- filter: FilterType;
43
- isRenderFormContent: boolean;
44
- onValuesChange?: () => void;
45
- tableId?: string;
46
- viewMode?: ModeType;
47
- isMobile?: boolean;
48
- }
@@ -1,8 +0,0 @@
1
- import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
2
- import React from 'react';
3
- interface IconFontProps extends IconComponentProps {
4
- type: string;
5
- onClick?: React.MouseEventHandler<HTMLSpanElement>;
6
- }
7
- declare const IconFont: React.FC<IconFontProps>;
8
- export default IconFont;
@@ -1,82 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- /**
4
- * loginAndRegister组件的属性接口
5
- */
6
- export interface loginAndRegisterProps {
7
- /** Logo相关配置 */
8
- showLogo?: boolean;
9
- logo?: string;
10
- logoPosition?: 'left' | 'center' | 'right';
11
- logoSize?: {
12
- width?: number;
13
- height?: number;
14
- };
15
- /** 标题相关配置 */
16
- title?: string;
17
- showTitle?: boolean;
18
- titleAlign?: 'left' | 'center' | 'right';
19
- /** 副标题相关配置 */
20
- subtitle?: string;
21
- showSubtitle?: boolean;
22
- subtitleAlign?: 'left' | 'center' | 'right';
23
- /** 登录方式配置 */
24
- loginMethods?: ('email' | 'google' | 'facebook' | 'apple')[];
25
- defaultLoginMethod?: 'email' | 'google' | 'facebook' | 'apple';
26
- /** 表单配置 */
27
- emailLabel?: string;
28
- passwordLabel?: string;
29
- emailPlaceholder?: string;
30
- passwordPlaceholder?: string;
31
- emailRules?: any[];
32
- buttonText?: string;
33
- rememberMeText?: string;
34
- forgotPasswordText?: string;
35
- showRememberMe?: boolean;
36
- showForgotPassword?: boolean;
37
- /** 社交登录配置 */
38
- socialLoginTexts?: {
39
- google?: string;
40
- facebook?: string;
41
- apple?: string;
42
- };
43
- /** 底部配置 */
44
- showFooter?: boolean;
45
- showSignUp?: boolean;
46
- signUpText?: string;
47
- signUpLink?: string;
48
- signUpPosition?: 'left' | 'center' | 'right';
49
- otherLinks?: Array<{
50
- text: string;
51
- url: string;
52
- }>;
53
- otherLinksPosition?: 'left' | 'center' | 'right';
54
- /** 登录/注册切换配置 */
55
- showTabs?: boolean;
56
- loginTabText?: string;
57
- registerTabText?: string;
58
- /** 注册表单配置 */
59
- registerEmailPlaceholder?: string;
60
- registerPasswordPlaceholder?: string;
61
- registerButtonText?: string;
62
- /** 事件回调 */
63
- onLogin?: (values: {
64
- email: string;
65
- loginMethod: string;
66
- }) => void;
67
- onSocialLogin?: (type: 'google' | 'facebook' | 'apple') => void;
68
- onSignUp?: () => void;
69
- onRegister?: (values: {
70
- email: string;
71
- password: string;
72
- }) => void;
73
- /** 新增背景图片属性 */
74
- backgroundImage?: string;
75
- }
76
- /**
77
- * Saas登录组件
78
- * @param props - 组件属性
79
- * @returns React组件
80
- */
81
- declare const loginAndRegister: React.FC<loginAndRegisterProps>;
82
- export default loginAndRegister;
@@ -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,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,19 +0,0 @@
1
- import React from 'react';
2
- import { EmptyProps } from 'antd';
3
- import { PisellContextType } from '../pisell-config-provider/context';
4
- import './index.less';
5
- export interface PisellEmptyProps extends EmptyProps {
6
- /** 平台 */
7
- platform?: PisellContextType['platform'];
8
- /** 额外内容描述 */
9
- extraDescription?: React.ReactNode;
10
- /** 额外内容描述 */
11
- icon?: React.ReactNode;
12
- /** 自定义底部额外操作区域 */
13
- footer?: React.ReactNode;
14
- [key: string]: any;
15
- /** 最大宽度 */
16
- maxWidth?: number;
17
- }
18
- declare const PisellEmpty: (props: PisellEmptyProps) => React.JSX.Element;
19
- export default PisellEmpty;
@@ -1,5 +0,0 @@
1
- import { FilterListProps } from '../filter/components/FilterButton/types';
2
- import { FormInstance } from 'antd';
3
- export declare type PisellFilterProps = FilterListProps & FormInstance & {
4
- hasForm?: boolean;
5
- };
@@ -1,4 +0,0 @@
1
- import { GridProProps } from './GridPro';
2
- export type { GridProProps };
3
- declare const PisellGridPro: any;
4
- export default PisellGridPro;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import type { LookupTriggerProps, LookupTriggerRef } from '../types';
3
- export declare const LookupTrigger: React.ForwardRefExoticComponent<LookupTriggerProps & React.RefAttributes<LookupTriggerRef>>;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { FilterItemProps } from '../filter/types';
3
- import { FormInstance } from 'antd';
4
- export declare type PisellQuickFilterProps = FormInstance & {
5
- hasForm?: boolean;
6
- children?: React.ReactNode;
7
- formFiltersPrefix: string;
8
- filterList?: FilterItemProps[];
9
- quickFilterMaxLength: number;
10
- hiddenQuickFilter: boolean;
11
- hiddenOtherFilter: boolean;
12
- };
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface PisellStatisticListProps extends React.HTMLAttributes<HTMLDivElement> {
4
- isHasBorder?: boolean;
5
- backgroundColors?: string[];
6
- labelColor?: string;
7
- valueColor?: string;
8
- data: {
9
- label: string;
10
- value: string;
11
- isLink?: boolean;
12
- link?: string;
13
- tip?: string;
14
- onClick?: () => void;
15
- children?: {
16
- label: string;
17
- value: string;
18
- }[];
19
- }[];
20
- }
21
- declare const PisellStatisticList: (props: PisellStatisticListProps) => React.JSX.Element;
22
- export default PisellStatisticList;
@@ -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,28 +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 renderImperatively(element: TargetElement): ImperativeHandler;
28
- 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,29 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * 赠品项数据结构
4
- */
5
- export interface IGiftItem {
6
- /** 图片 URL */
7
- image?: string;
8
- /** 标题 */
9
- title?: string;
10
- /** 唯一标识 */
11
- id?: string;
12
- }
13
- /**
14
- * Gift 组件 Props
15
- */
16
- export interface IGiftProps {
17
- /** 是否显示赠品组件 */
18
- isShow?: boolean;
19
- /** 赠品总数量(可选择的总数) */
20
- totalCount?: number;
21
- /** 已选择的赠品列表 */
22
- selectedGifts?: IGiftItem[];
23
- /** 选择的赠品原始数据列表 */
24
- _selectedOriginGifts?: any[];
25
- /** 提示文本(未选择时显示) */
26
- promptText?: string;
27
- /** 点击事件回调 */
28
- onClick?: (e: React.MouseEvent) => void;
29
- }
@@ -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,7 +0,0 @@
1
- import React from 'react';
2
- interface IPromotionProps {
3
- promotions: any[];
4
- onClick?: (item: any) => void;
5
- }
6
- declare const Promotion: (props: IPromotionProps) => React.JSX.Element;
7
- export default Promotion;
@@ -1,36 +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
- isFormSubject?: boolean;
18
- totalDifference?: number;
19
- };
20
- style?: React.CSSProperties;
21
- /** 作为主商品卡片展示
22
- * 1. 影响商品数量 tag 的位置
23
- * 2. isMain 且 type 为 a5,展示holder
24
- */
25
- isMainProduct?: boolean;
26
- maxSpecsCount?: number;
27
- type?: 'a2' | 'a5' | 'a9';
28
- isBundle?: boolean;
29
- showFooter?: boolean;
30
- isShowOriginalPrice?: boolean;
31
- isShowEditProduct?: boolean;
32
- onEditProduct?: (val: any) => void;
33
- disabledEditClick?: boolean;
34
- }
35
- declare const BasicInfo: (props: IProps) => React.JSX.Element;
36
- export default BasicInfo;
@@ -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,9 +0,0 @@
1
- import React from 'react';
2
- import 'dayjs/locale/zh-cn';
3
- import 'dayjs/locale/en';
4
- import 'dayjs/locale/zh-tw';
5
- import 'dayjs/locale/ja';
6
- import 'dayjs/locale/pt';
7
- import './index.less';
8
- declare const TimeRange: (props: any) => React.JSX.Element | null;
9
- export default TimeRange;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- import { ProductCardTypes } from '../types';
4
- interface ISKUCardProps extends ProductCardTypes {
5
- type: 'a2' | 'a5' | 'a9';
6
- rightActions: any[];
7
- escapeDom?: string;
8
- }
9
- export declare const PREFIX = "pisell-cart-sku-card";
10
- declare const CartSkuCard: (props: ISKUCardProps) => React.JSX.Element | null;
11
- export default CartSkuCard;