@pisell/materials 6.8.17 → 6.9.1

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 (254) 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/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/render/default/view.js +2 -2
  7. package/build/lowcode/view.js +2 -2
  8. package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +1 -0
  9. package/es/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -0
  10. package/es/components/PisellCards/index.d.ts +1 -0
  11. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  14. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  15. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  16. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  17. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  18. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  19. package/es/components/dataSourceComponents/fields/index.d.ts +16 -16
  20. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  21. package/es/components/date-picker/index.d.ts +1 -0
  22. package/es/components/lowCodePage/index.d.ts +1 -0
  23. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  24. package/es/components/pisellDataSourceContainer/components/Pagination/index.js +1 -6
  25. package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +2 -2
  26. package/es/components/pisellDatePicker/index.d.ts +1 -0
  27. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  28. package/es/components/pisellInput/index.d.ts +1 -0
  29. package/es/components/pisellLoading/index.d.ts +1 -0
  30. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  31. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  32. package/es/components/pisellModal/components/index.d.ts +1 -0
  33. package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
  34. package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  35. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  36. package/es/components/productCard/components/Note/index.d.ts +1 -0
  37. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  38. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  39. package/es/components/productCard/components/Packages/index.d.ts +1 -0
  40. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -0
  41. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  42. package/es/components/qrcode/index.d.ts +1 -0
  43. package/es/components/select-time/index.d.ts +1 -0
  44. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  45. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  46. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  47. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  48. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  49. package/es/components/table/Table/fields/index.d.ts +2 -2
  50. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  51. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  52. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  53. package/es/components/table/Table/utils.d.ts +1 -1
  54. package/es/utils/index.d.ts +1 -1
  55. package/es/utils/platform.d.ts +1 -1
  56. package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +1 -0
  57. package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +1 -0
  58. package/lib/components/PisellCards/index.d.ts +1 -0
  59. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  60. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
  61. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  62. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  63. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  64. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  65. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  66. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  67. package/lib/components/dataSourceComponents/fields/index.d.ts +16 -16
  68. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  69. package/lib/components/date-picker/index.d.ts +1 -0
  70. package/lib/components/lowCodePage/index.d.ts +1 -0
  71. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  72. package/lib/components/pisellDataSourceContainer/components/Pagination/index.js +0 -4
  73. package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +2 -2
  74. package/lib/components/pisellDatePicker/index.d.ts +1 -0
  75. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  76. package/lib/components/pisellInput/index.d.ts +1 -0
  77. package/lib/components/pisellLoading/index.d.ts +1 -0
  78. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  79. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  80. package/lib/components/pisellModal/components/index.d.ts +1 -0
  81. package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
  82. package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  83. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  84. package/lib/components/productCard/components/Note/index.d.ts +1 -0
  85. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  86. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  87. package/lib/components/productCard/components/Packages/index.d.ts +1 -0
  88. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +1 -0
  89. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  90. package/lib/components/qrcode/index.d.ts +1 -0
  91. package/lib/components/select-time/index.d.ts +1 -0
  92. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +1 -0
  93. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  94. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  95. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  96. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  97. package/lib/components/table/Table/fields/index.d.ts +2 -2
  98. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  99. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  100. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  101. package/lib/components/table/Table/utils.d.ts +1 -1
  102. package/lib/utils/index.d.ts +1 -1
  103. package/lib/utils/platform.d.ts +1 -1
  104. package/package.json +1 -1
  105. package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
  106. package/es/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
  107. package/es/components/PisellCards/components/TextCard/TextCard.d.ts +0 -7
  108. package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
  109. package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
  110. package/es/components/PisellCards/components/TextCard/types.d.ts +0 -270
  111. package/es/components/cardPro/index.d.ts +0 -3
  112. package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -179
  113. package/es/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +0 -24
  114. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -2
  115. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -4
  116. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
  117. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  118. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
  119. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +0 -16
  120. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
  121. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  122. package/es/components/drag-sort-tree/index.d.ts +0 -4
  123. package/es/components/iconfont/index.d.ts +0 -8
  124. package/es/components/login-and-register/index.d.ts +0 -82
  125. package/es/components/pisell-config-provider/context.d.ts +0 -22
  126. package/es/components/pisell-config-provider/index.d.ts +0 -13
  127. package/es/components/pisellAdjustPrice/index.d.ts +0 -4
  128. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  129. package/es/components/pisellAdjustPrice/type.d.ts +0 -22
  130. package/es/components/pisellCheckboxGroup/index.d.ts +0 -40
  131. package/es/components/pisellEmpty/index.d.ts +0 -19
  132. package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
  133. package/es/components/pisellText/components/Amount/index.d.ts +0 -20
  134. package/es/components/pisellToast/index.d.ts +0 -17
  135. package/es/components/pisellToast/squareToast/index.d.ts +0 -15
  136. package/es/components/pisellToast/squareToast/methods.d.ts +0 -13
  137. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
  138. package/es/components/pisellToast/squareToast/toast.d.ts +0 -25
  139. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
  140. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
  141. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  142. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  143. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -32
  144. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  145. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  146. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -11
  147. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  148. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  149. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  150. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -21
  151. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  152. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  153. package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
  154. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -99
  155. package/es/components/productCard/components/Action/index.d.ts +0 -3
  156. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  157. package/es/components/productCard/components/Header/index.d.ts +0 -3
  158. package/es/components/productCard/components/Sales/index.d.ts +0 -3
  159. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  160. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  161. package/es/components/productCard/components/Time/index.d.ts +0 -3
  162. package/es/components/productCard/locales.d.ts +0 -84
  163. package/es/components/productCard/status.d.ts +0 -32
  164. package/es/components/productCard/types.d.ts +0 -85
  165. package/es/components/productCard/utils.d.ts +0 -31
  166. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  167. package/es/components/table/types.d.ts +0 -268
  168. package/es/components/translation/index.d.ts +0 -14
  169. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -5
  170. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  171. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
  172. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  173. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  174. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  175. package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
  176. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  177. package/es/components/virtual-keyboard/Number/types.d.ts +0 -26
  178. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  179. package/es/components/virtual-keyboard/index.d.ts +0 -25
  180. package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +0 -290
  181. package/lib/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +0 -7
  182. package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +0 -7
  183. package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +0 -26
  184. package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +0 -21
  185. package/lib/components/PisellCards/components/TextCard/types.d.ts +0 -270
  186. package/lib/components/cardPro/index.d.ts +0 -3
  187. package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +0 -179
  188. package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +0 -24
  189. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -2
  190. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -4
  191. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -84
  192. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +0 -24
  193. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +0 -5
  194. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +0 -16
  195. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +0 -15
  196. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  197. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  198. package/lib/components/iconfont/index.d.ts +0 -8
  199. package/lib/components/login-and-register/index.d.ts +0 -82
  200. package/lib/components/pisell-config-provider/context.d.ts +0 -22
  201. package/lib/components/pisell-config-provider/index.d.ts +0 -13
  202. package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
  203. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  204. package/lib/components/pisellAdjustPrice/type.d.ts +0 -22
  205. package/lib/components/pisellCheckboxGroup/index.d.ts +0 -40
  206. package/lib/components/pisellEmpty/index.d.ts +0 -19
  207. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
  208. package/lib/components/pisellText/components/Amount/index.d.ts +0 -20
  209. package/lib/components/pisellToast/index.d.ts +0 -17
  210. package/lib/components/pisellToast/squareToast/index.d.ts +0 -15
  211. package/lib/components/pisellToast/squareToast/methods.d.ts +0 -13
  212. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +0 -28
  213. package/lib/components/pisellToast/squareToast/toast.d.ts +0 -25
  214. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +0 -3
  215. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +0 -3
  216. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +0 -14
  217. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +0 -3
  218. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -32
  219. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  220. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  221. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -11
  222. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  223. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  224. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -12
  225. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -21
  226. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -46
  227. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  228. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
  229. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -99
  230. package/lib/components/productCard/components/Action/index.d.ts +0 -3
  231. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  232. package/lib/components/productCard/components/Header/index.d.ts +0 -3
  233. package/lib/components/productCard/components/Sales/index.d.ts +0 -3
  234. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -13
  235. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  236. package/lib/components/productCard/components/Time/index.d.ts +0 -3
  237. package/lib/components/productCard/locales.d.ts +0 -84
  238. package/lib/components/productCard/status.d.ts +0 -32
  239. package/lib/components/productCard/types.d.ts +0 -85
  240. package/lib/components/productCard/utils.d.ts +0 -31
  241. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  242. package/lib/components/table/types.d.ts +0 -268
  243. package/lib/components/translation/index.d.ts +0 -14
  244. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -5
  245. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  246. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
  247. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +0 -15
  248. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -25
  249. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  250. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
  251. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  252. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -26
  253. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  254. package/lib/components/virtual-keyboard/index.d.ts +0 -25
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare type Value = {
4
- en: string;
5
- 'zh-CN': string;
6
- 'zh-HK': string;
7
- };
8
- interface TranslationProps {
9
- value: Value;
10
- onChange: (value: Value) => void;
11
- maxLength?: number;
12
- }
13
- declare const Translation: React.FC<TranslationProps>;
14
- export default Translation;
@@ -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,32 +0,0 @@
1
- export declare const amountThemeConfig: {
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
- keyboardBackgroundColor: string;
13
- keyboardButtonBackgroundColor: string;
14
- keyboardButtonTextColor: string;
15
- keyboardButtonHoverColor: 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
- keyboardBackgroundColor: string;
28
- keyboardButtonBackgroundColor: string;
29
- keyboardButtonTextColor: string;
30
- keyboardButtonHoverColor: string;
31
- };
32
- };
@@ -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,15 +0,0 @@
1
- import React from 'react';
2
- import './Presets.less';
3
- export declare type PresetsItem = {
4
- label: string;
5
- value: number | string;
6
- style?: React.CSSProperties;
7
- onClick?: (item: PresetsItem, _next: () => void) => void;
8
- render?: (item: PresetsItem) => React.ReactNode;
9
- };
10
- export interface PresetsProps {
11
- presets?: PresetsItem[];
12
- onChange: (val: string) => void;
13
- }
14
- declare const Presets: (props: PresetsProps) => JSX.Element | null;
15
- export default Presets;
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import { PresetsProps } from './Presets';
3
- import { KeyboardProps } from '../Keyboard';
4
- import { RightItemsStyleProps } from '../Amount';
5
- import './index.less';
6
- export interface BaseNumberKeyboardProps {
7
- placeholder?: string;
8
- format?: (val: string) => React.ReactNode;
9
- defaultValue?: string | number;
10
- doneText?: string;
11
- resetText?: string;
12
- onChange?: (val: string) => void;
13
- onEnter?: (val: string) => void;
14
- value?: string | number;
15
- max?: number;
16
- min?: number;
17
- presets?: PresetsProps['presets'];
18
- defaultSelect?: boolean;
19
- rightItemsStyle?: RightItemsStyleProps;
20
- customDisplay?: React.ReactNode | ((props: any) => React.ReactNode);
21
- keyboardProps?: KeyboardProps;
22
- style?: React.CSSProperties;
23
- }
24
- declare const BaseNumberKeyboard: (props: BaseNumberKeyboardProps) => JSX.Element;
25
- export default BaseNumberKeyboard;
@@ -1,21 +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
- className?: string;
14
- style?: React.CSSProperties;
15
- onChange?: (value?: ItemValue) => void;
16
- items?: Item[];
17
- rightItems?: Item[];
18
- keydown?: boolean;
19
- }
20
- declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
21
- export default _default;
@@ -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,32 +0,0 @@
1
- export declare const numberThemeConfig: {
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
- keyboardBackgroundColor: string;
13
- keyboardButtonBackgroundColor: string;
14
- keyboardButtonTextColor: string;
15
- keyboardButtonHoverColor: 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
- keyboardBackgroundColor: string;
28
- keyboardButtonBackgroundColor: string;
29
- keyboardButtonTextColor: string;
30
- keyboardButtonHoverColor: string;
31
- };
32
- };
@@ -1,26 +0,0 @@
1
- export interface NumberProps {
2
- max?: number;
3
- min?: number;
4
- doneText?: string;
5
- resetText: string;
6
- defaultValue?: string | number;
7
- placeholder?: string;
8
- value?: string | number;
9
- onChange?: (val: string | number) => void;
10
- onEnter?: (val: string | number) => void;
11
- defaultSelect?: boolean;
12
- selectType?: 'light' | 'dark';
13
- backgroundColor?: string;
14
- containerBackgroundColor?: string;
15
- buttonBackgroundColor?: string;
16
- textColor?: string;
17
- resetButtonBackgroundColor?: string;
18
- resetButtonTextColor?: string;
19
- isDoneButtonFollowTheme?: boolean;
20
- doneButtonBackgroundColor?: string;
21
- doneButtonTextColor?: string;
22
- keyboardBackgroundColor?: string;
23
- keyboardButtonBackgroundColor?: string;
24
- keyboardButtonTextColor?: string;
25
- keyboardButtonHoverColor?: string;
26
- }
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { InputProps } from 'antd';
3
- import './index.less';
4
- export interface VirtualKeyInputProps extends InputProps {
5
- previewValue?: string;
6
- renderInput?: (props: any) => any;
7
- showDelete?: boolean;
8
- onValueSelect?: (selected: boolean) => void;
9
- defaultSelect?: boolean;
10
- style?: React.CSSProperties;
11
- }
12
- declare const VirtualKeyInput: (props: VirtualKeyInputProps) => JSX.Element;
13
- export default VirtualKeyInput;
@@ -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,290 +0,0 @@
1
- import { CSSProperties, ReactNode } from 'react';
2
- import { PisellBasicCardProps } from '../../types';
3
- import { PisellImageCardProps } from '../PisellImageCard/types';
4
- /**
5
- * 样式变体类型
6
- */
7
- export declare type GraphicTextCardVariant = 'vertical-image' | 'vertical-icon' | 'horizontal' | 'card';
8
- /**
9
- * 尺寸类型
10
- */
11
- export declare type GraphicTextCardSize = 'small' | 'default' | 'large';
12
- /**
13
- * 宽度模式
14
- */
15
- export declare type GraphicTextCardWidthMode = 'auto' | 'fixed' | 'full';
16
- /**
17
- * 图形区域配置
18
- */
19
- export interface GraphicConfig extends PisellImageCardProps {
20
- hidden?: boolean;
21
- /**
22
- * 图形区域宽度(单位:px)
23
- * 如不设置,将根据 variant 和 size 自动计算
24
- */
25
- width?: number;
26
- /**
27
- * 图形区域高度(单位:px)
28
- * 如不设置,将根据 variant 和 size 自动计算
29
- */
30
- height?: number;
31
- /**
32
- * 图形区域圆角
33
- */
34
- borderRadius?: number | string;
35
- /**
36
- * 图形区域背景色
37
- */
38
- background?: string;
39
- /**
40
- * 图形区域边框
41
- */
42
- border?: string;
43
- /**
44
- * 图形区域阴影
45
- */
46
- boxShadow?: string;
47
- /**
48
- * 图形区域内边距
49
- */
50
- padding?: number | string;
51
- /**
52
- * 图标大小(当使用 icon 时有效,单位:px)
53
- */
54
- iconSize?: number;
55
- /**
56
- * 图标颜色(当使用 icon 时有效)
57
- */
58
- iconColor?: string;
59
- /**
60
- * 自定义样式
61
- */
62
- style?: CSSProperties;
63
- }
64
- /**
65
- * 角标类型
66
- */
67
- export declare type BadgeType = 'dot' | 'number' | 'text';
68
- /**
69
- * 角标位置
70
- */
71
- export declare type BadgePosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
72
- /**
73
- * 角标配置
74
- */
75
- export interface BadgeConfig {
76
- /**
77
- * 角标类型
78
- * @default 'dot'
79
- */
80
- type?: BadgeType;
81
- /**
82
- * 角标内容(数字或文本)
83
- * 当 type 为 'number' 或 'text' 时有效
84
- */
85
- content?: ReactNode;
86
- /**
87
- * 角标位置
88
- * @default 'top-right'
89
- */
90
- position?: BadgePosition;
91
- /**
92
- * 角标偏移量 [x, y]
93
- * 正数向右/下偏移,负数向左/上偏移
94
- */
95
- offset?: [number, number];
96
- /**
97
- * 角标颜色
98
- */
99
- color?: string;
100
- /**
101
- * 角标自定义样式
102
- */
103
- style?: CSSProperties;
104
- }
105
- /**
106
- * 文本配置
107
- */
108
- export interface TextConfig {
109
- /**
110
- * 字体大小(单位:px)
111
- */
112
- fontSize?: number;
113
- /**
114
- * 字体粗细
115
- */
116
- fontWeight?: string | number;
117
- /**
118
- * 文本颜色
119
- */
120
- color?: string;
121
- /**
122
- * 最大显示行数
123
- * @default 1
124
- */
125
- maxLines?: number;
126
- /**
127
- * 是否显示省略号
128
- * @default true
129
- */
130
- ellipsis?: boolean;
131
- /**
132
- * 文本对齐方式
133
- * @default 'left'
134
- */
135
- textAlign?: 'left' | 'center' | 'right';
136
- }
137
- /**
138
- * GraphicTextCard 组件 Props
139
- * 基于 PisellBasicCardProps 扩展
140
- * 注意:重写 onClick 为可选属性
141
- */
142
- export interface GraphicTextCardProps extends Omit<PisellBasicCardProps, 'onClick'> {
143
- /**
144
- * 卡片显示的文本内容(必填)
145
- */
146
- text: ReactNode;
147
- /**
148
- * 卡片样式变体
149
- * @default 'vertical-image'
150
- */
151
- variant?: GraphicTextCardVariant;
152
- /**
153
- * 卡片尺寸
154
- * @default 'default'
155
- */
156
- size?: GraphicTextCardSize;
157
- /**
158
- * 是否可点击
159
- * @default true
160
- */
161
- clickable?: boolean;
162
- /**
163
- * 图片地址
164
- * 与 icon 二选一,优先使用 image
165
- */
166
- image?: string;
167
- /**
168
- * 图标
169
- * 支持 ReactNode(如 antd Icon、svg 等)或图标 URL
170
- * 与 image 二选一
171
- */
172
- icon?: ReactNode;
173
- /**
174
- * 图形区域配置
175
- * 用于自定义图形区域的样式和尺寸
176
- */
177
- graphicConfig?: GraphicConfig;
178
- /**
179
- * 图形区域插槽
180
- * 用于完全自定义图形区域,优先级高于 image 和 icon
181
- */
182
- graphicSlot?: ReactNode;
183
- /**
184
- * 角标配置
185
- * 用于显示红点、数字或文本提示
186
- */
187
- badge?: BadgeConfig;
188
- /**
189
- * 前置插槽
190
- * 用于在图形区域前添加自定义内容
191
- */
192
- prefixSlot?: ReactNode;
193
- /**
194
- * 后置插槽
195
- * 用于在文本内容后添加自定义内容
196
- */
197
- suffixSlot?: ReactNode;
198
- /**
199
- * 文本配置
200
- * 用于自定义文本样式和显示行为
201
- */
202
- textConfig?: TextConfig;
203
- /**
204
- * 宽度模式
205
- * - auto: 内容撑满,最大宽度 maxWidth
206
- * - fixed: 固定宽度 width
207
- * - full: 撑满父容器
208
- * @default 'auto'
209
- */
210
- widthMode?: GraphicTextCardWidthMode;
211
- /**
212
- * 固定宽度值
213
- * 当 widthMode='fixed' 时有效
214
- */
215
- width?: number | string;
216
- /**
217
- * 最大宽度
218
- * 当 widthMode='auto' 时有效
219
- * @default 400
220
- */
221
- maxWidth?: number | string;
222
- /**
223
- * 点击事件
224
- * 当 clickable=true 且不在 disabled/loading 状态时触发
225
- * 注意:PisellBasicCardProps 中的 onClick 是必填的,这里重新定义为可选
226
- */
227
- onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
228
- /**
229
- * 自定义渲染函数
230
- * 完全自定义组件的渲染内容
231
- * 当提供此函数时,组件内置的渲染逻辑将被忽略
232
- */
233
- render?: (props: GraphicTextCardProps) => ReactNode;
234
- }
235
- /**
236
- * GraphicArea 组件 Props
237
- * 图形区域子组件
238
- */
239
- export interface GraphicAreaProps {
240
- /**
241
- * 图片地址
242
- */
243
- image?: string;
244
- /**
245
- * 图标内容
246
- */
247
- icon?: ReactNode;
248
- /**
249
- * 图形配置
250
- */
251
- config?: GraphicConfig;
252
- /**
253
- * 自定义类名
254
- */
255
- className?: string;
256
- aliWidth?: number;
257
- }
258
- /**
259
- * TextContent 组件 Props
260
- * 文本内容子组件
261
- */
262
- export interface TextContentProps {
263
- /**
264
- * 文本内容
265
- */
266
- text: ReactNode;
267
- /**
268
- * 文本配置
269
- */
270
- textConfig?: TextConfig;
271
- /**
272
- * 自定义类名
273
- */
274
- className?: string;
275
- active: PisellBasicCardProps['active'];
276
- }
277
- /**
278
- * BadgeWrapper 组件 Props
279
- * 角标包装子组件
280
- */
281
- export interface BadgeWrapperProps {
282
- /**
283
- * 角标配置
284
- */
285
- badge?: BadgeConfig;
286
- /**
287
- * 子元素
288
- */
289
- children: ReactNode;
290
- }
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { PanelWrapperProps } from '../types';
3
- /**
4
- * PanelWrapper 组件
5
- * 次级面板包装器,负责展开/收起动画和样式处理
6
- */
7
- export declare const PanelWrapper: React.FC<PanelWrapperProps>;
@@ -1,7 +0,0 @@
1
- import './TextCard.less';
2
- /**
3
- * Provider 包装器
4
- * 兼容 PisellCards 系统的 props 传递方式
5
- */
6
- declare const Provider: (props: any) => JSX.Element;
7
- export default Provider;
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import { BadgeWrapperProps } from '../types';
3
- /**
4
- * BadgeWrapper 角标包装组件
5
- * 负责角标的渲染和定位,支持红点、数字、文本三种类型
6
- *
7
- * @example
8
- * ```tsx
9
- * // 红点角标
10
- * <BadgeWrapper badge={{ type: 'dot' }}>
11
- * <TextCard text="Item" />
12
- * </BadgeWrapper>
13
- *
14
- * // 数字角标
15
- * <BadgeWrapper badge={{ type: 'number', content: 99 }}>
16
- * <TextCard text="Item" />
17
- * </BadgeWrapper>
18
- *
19
- * // 文本角标
20
- * <BadgeWrapper badge={{ type: 'text', content: 'New' }}>
21
- * <TextCard text="Item" />
22
- * </BadgeWrapper>
23
- * ```
24
- */
25
- declare const BadgeWrapper: React.FC<BadgeWrapperProps>;
26
- export default BadgeWrapper;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { TextContentProps } from '../types';
3
- /**
4
- * TextContent 文本内容组件
5
- * 负责渲染主文本内容,处理文本省略逻辑
6
- *
7
- * @example
8
- * ```tsx
9
- * <TextContent
10
- * text="这是一段很长的文本内容"
11
- * textConfig={{
12
- * maxLines: 2,
13
- * ellipsis: true,
14
- * fontSize: 14,
15
- * color: '#333'
16
- * }}
17
- * />
18
- * ```
19
- */
20
- declare const TextContent: React.FC<TextContentProps>;
21
- export default TextContent;