@pisell/materials 6.2.29 → 6.3.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 (248) 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 +3 -3
  6. package/build/lowcode/preview.js +150 -150
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +24 -28
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +25 -29
  11. package/dist/umd/materials.min.css +1 -0
  12. package/dist/umd/materials.min.js +1 -0
  13. package/dist/umd/static/DotsSix.57d66266.svg +1 -0
  14. package/dist/umd/static/arrow-left.e542294f.svg +1 -0
  15. package/dist/umd/static/arrow-right.763f03e0.svg +1 -0
  16. package/dist/umd/static/filter-lines.04a54ae9.svg +1 -0
  17. package/dist/umd/static/help-circle.31c9be40.svg +1 -0
  18. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +1 -0
  19. package/es/components/DragSortList/index.js +6 -6
  20. package/es/components/batch-editor/index.d.ts +0 -1
  21. package/es/components/classicLayout/index.js +5 -4
  22. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  23. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  24. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  25. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  26. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  27. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  28. package/es/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  29. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  30. package/es/components/dataSourceComponents/fields/index.d.ts +6 -7
  31. package/es/components/date-picker/index.d.ts +0 -1
  32. package/es/components/filter/index.d.ts +0 -1
  33. package/es/components/icon/index.js +5 -5
  34. package/es/components/iconfont/index.js +1 -1
  35. package/es/components/list/index.js +6 -6
  36. package/es/components/page/index.d.ts +0 -1
  37. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  38. package/es/components/pisellGoodPassCard/index.d.ts +0 -1
  39. package/es/components/pisellGoodPassCard/index.js +5 -17
  40. package/es/components/pisellInput/index.d.ts +0 -1
  41. package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  42. package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  43. package/es/components/pisellModal/components/index.d.ts +0 -1
  44. package/es/components/pisellToast/index.js +0 -3
  45. package/es/components/pisellWalletPassCard/index.d.ts +0 -1
  46. package/es/components/productCard/components/Header/index.js +8 -21
  47. package/es/components/productCard/components/Header/index.less +0 -15
  48. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  49. package/es/components/productCard/components/Sales/index.js +2 -2
  50. package/es/components/productCard/index.d.ts +1 -3
  51. package/es/components/productCard/index.js +2 -5
  52. package/es/components/productCard/index.less +0 -6
  53. package/es/components/qrcode/index.js +1 -1
  54. package/es/components/select-time/index.d.ts +0 -1
  55. package/es/components/sort/components/InlineMenu/index.js +1 -1
  56. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  57. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  58. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  59. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  60. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  61. package/es/components/table/Actions/index.d.ts +0 -1
  62. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  63. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +5 -4
  64. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  65. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  66. package/es/components/table/Header/Buttons/index.js +5 -5
  67. package/es/components/table/Table/AddFieldModal/index.js +6 -6
  68. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  69. package/es/components/table/Table/SelectField/index.js +4 -4
  70. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  71. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  72. package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
  73. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  74. package/es/components/table/Table/fields/index.d.ts +2 -3
  75. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  76. package/es/components/table/Table/fields/link/index.d.ts +0 -1
  77. package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
  78. package/es/components/table/Table/fields/number/index.d.ts +0 -1
  79. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  80. package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
  81. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  82. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  83. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  84. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  85. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  86. package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
  87. package/es/components/table/Table/fields/search/filterUtil/index.js +1 -0
  88. package/es/components/table/Table/fields/search/index.d.ts +0 -1
  89. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  90. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  91. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  92. package/es/components/table/Table/fields/text/filterUtil/index.js +1 -0
  93. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  94. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  95. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  96. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  97. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  98. package/es/components/table/Table/utils.d.ts +1 -1
  99. package/es/components/table/hooks/useMergeColumnSetting.js +2 -1
  100. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  101. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  102. package/es/components/translation/utils.js +5 -5
  103. package/es/components/versionSelect/index.d.ts +0 -1
  104. package/es/components/virtual-keyboard/index.d.ts +0 -11
  105. package/es/components/virtual-keyboard/index.js +3 -88
  106. package/es/components/virtual-keyboard/index.less +1 -33
  107. package/es/hooks/useResponsive.js +2 -2
  108. package/es/utils/hoc.js +1 -1
  109. package/es/utils/index.d.ts +1 -1
  110. package/es/utils/miniRedux.js +9 -8
  111. package/lib/components/batch-editor/index.d.ts +0 -1
  112. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  113. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  114. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  115. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  116. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  117. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  118. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +0 -1
  119. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  120. package/lib/components/dataSourceComponents/fields/index.d.ts +6 -7
  121. package/lib/components/date-picker/index.d.ts +0 -1
  122. package/lib/components/filter/index.d.ts +0 -1
  123. package/lib/components/iconfont/index.js +1 -1
  124. package/lib/components/lowCodePage/index.js +2 -1
  125. package/lib/components/page/index.d.ts +0 -1
  126. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  127. package/lib/components/pisellGoodPassCard/index.d.ts +0 -1
  128. package/lib/components/pisellGoodPassCard/index.js +4 -31
  129. package/lib/components/pisellInput/index.d.ts +0 -1
  130. package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  131. package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  132. package/lib/components/pisellModal/components/index.d.ts +0 -1
  133. package/lib/components/pisellToast/index.js +0 -3
  134. package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
  135. package/lib/components/productCard/components/Header/index.js +11 -20
  136. package/lib/components/productCard/components/Header/index.less +0 -15
  137. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  138. package/lib/components/productCard/components/Sales/index.js +2 -2
  139. package/lib/components/productCard/index.d.ts +1 -3
  140. package/lib/components/productCard/index.js +2 -6
  141. package/lib/components/productCard/index.less +0 -6
  142. package/lib/components/select-time/index.d.ts +0 -1
  143. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  144. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  145. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  146. package/lib/components/table/Actions/index.d.ts +0 -1
  147. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  148. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  149. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  150. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  151. package/lib/components/table/Table/fields/date/filterUtil/index.js +6 -3
  152. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  153. package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
  154. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  155. package/lib/components/table/Table/fields/index.d.ts +2 -3
  156. package/lib/components/table/Table/fields/link/index.d.ts +0 -1
  157. package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
  158. package/lib/components/table/Table/fields/number/index.d.ts +0 -1
  159. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  160. package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
  161. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  162. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  163. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  164. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +8 -4
  165. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  166. package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
  167. package/lib/components/table/Table/fields/search/index.d.ts +0 -1
  168. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  169. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  170. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  171. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  172. package/lib/components/table/Table/fields/utils/index.js +2 -1
  173. package/lib/components/table/Table/utils.d.ts +1 -1
  174. package/lib/components/versionSelect/index.d.ts +0 -1
  175. package/lib/components/virtual-keyboard/index.d.ts +0 -11
  176. package/lib/components/virtual-keyboard/index.js +2 -60
  177. package/lib/components/virtual-keyboard/index.less +1 -33
  178. package/lib/hooks/useResponsive.js +6 -3
  179. package/lib/utils/index.d.ts +1 -1
  180. package/lowcode/_setters/antd-icon-setter/index.tsx +2 -3
  181. package/lowcode/virtual-keyboard/meta.ts +0 -131
  182. package/package.json +3 -5
  183. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -21
  184. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +0 -73
  185. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -113
  186. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  187. package/es/components/productCard/cartSkuCard/components/discountReason/index.js +0 -51
  188. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
  189. package/es/components/productCard/cartSkuCard/components/holders/index.js +0 -32
  190. package/es/components/productCard/cartSkuCard/components/holders/index.less +0 -32
  191. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  192. package/es/components/productCard/cartSkuCard/components/packages/index.js +0 -52
  193. package/es/components/productCard/cartSkuCard/components/packages/index.less +0 -22
  194. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  195. package/es/components/productCard/cartSkuCard/components/packages/utils.js +0 -40
  196. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
  197. package/es/components/productCard/cartSkuCard/components/resources/index.js +0 -44
  198. package/es/components/productCard/cartSkuCard/components/resources/index.less +0 -20
  199. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -11
  200. package/es/components/productCard/cartSkuCard/components/sales/index.js +0 -55
  201. package/es/components/productCard/cartSkuCard/components/sales/index.less +0 -22
  202. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  203. package/es/components/productCard/cartSkuCard/components/specs/index.js +0 -43
  204. package/es/components/productCard/cartSkuCard/components/specs/index.less +0 -28
  205. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
  206. package/es/components/productCard/cartSkuCard/components/swipeAction/index.js +0 -292
  207. package/es/components/productCard/cartSkuCard/components/swipeAction/index.less +0 -35
  208. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -7
  209. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +0 -53
  210. package/es/components/productCard/cartSkuCard/components/timeRange/index.less +0 -37
  211. package/es/components/productCard/cartSkuCard/index.d.ts +0 -10
  212. package/es/components/productCard/cartSkuCard/index.js +0 -216
  213. package/es/components/productCard/cartSkuCard/index.less +0 -69
  214. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -96
  215. package/es/components/productCard/cartSkuCard/locales.js +0 -30
  216. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -21
  217. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +0 -79
  218. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +0 -113
  219. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  220. package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +0 -70
  221. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -4
  222. package/lib/components/productCard/cartSkuCard/components/holders/index.js +0 -52
  223. package/lib/components/productCard/cartSkuCard/components/holders/index.less +0 -32
  224. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  225. package/lib/components/productCard/cartSkuCard/components/packages/index.js +0 -73
  226. package/lib/components/productCard/cartSkuCard/components/packages/index.less +0 -22
  227. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  228. package/lib/components/productCard/cartSkuCard/components/packages/utils.js +0 -44
  229. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -4
  230. package/lib/components/productCard/cartSkuCard/components/resources/index.js +0 -73
  231. package/lib/components/productCard/cartSkuCard/components/resources/index.less +0 -20
  232. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -11
  233. package/lib/components/productCard/cartSkuCard/components/sales/index.js +0 -76
  234. package/lib/components/productCard/cartSkuCard/components/sales/index.less +0 -22
  235. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  236. package/lib/components/productCard/cartSkuCard/components/specs/index.js +0 -65
  237. package/lib/components/productCard/cartSkuCard/components/specs/index.less +0 -28
  238. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
  239. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.js +0 -339
  240. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.less +0 -35
  241. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -7
  242. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +0 -67
  243. package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +0 -37
  244. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -10
  245. package/lib/components/productCard/cartSkuCard/index.js +0 -234
  246. package/lib/components/productCard/cartSkuCard/index.less +0 -69
  247. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -96
  248. package/lib/components/productCard/cartSkuCard/locales.js +0 -61
@@ -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
- }) => ("column_setting" | "gallery_setting" | "order_by" | "group_by" | "view_mode" | "filter_setting")[];
158
+ }) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
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 {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  import './index.less';
4
3
  export interface Version {
@@ -9,17 +9,6 @@ interface VirtualKeyboardProps extends React.HTMLAttributes<HTMLDivElement> {
9
9
  style?: React.CSSProperties;
10
10
  onChange?: (value?: any) => void;
11
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
12
  }
24
13
  declare const VirtualKeyboard: (props: VirtualKeyboardProps) => JSX.Element;
25
14
  export default VirtualKeyboard;
@@ -37,8 +37,6 @@ var import_Keyboard = __toESM(require("./Keyboard"));
37
37
  var import_VirtualKeyInput = __toESM(require("./VirtualKeyInput"));
38
38
  var import_index = require("./index.less");
39
39
  var import_classnames = __toESM(require("classnames"));
40
- var import_utils = require("@pisell/utils");
41
- var import_usePisellConfig = __toESM(require("../pisell-config-provider/hooks/usePisellConfig"));
42
40
  var items = [
43
41
  {
44
42
  value: 1,
@@ -107,32 +105,6 @@ var items = [
107
105
  type: "primary"
108
106
  }
109
107
  ];
110
- var virtualKeyboardThemeConfig = {
111
- dark: {
112
- backgroundColor: "rgba(0, 0, 0, 0.70)",
113
- containerBackgroundColor: "rgba(0, 0, 0, 0.40)",
114
- buttonBackgroundColor: "#ffffff",
115
- textColor: "#000000",
116
- keyboardBackgroundColor: "rgba(0, 0, 0, 0.40)",
117
- keyboardButtonBackgroundColor: "#ffffff",
118
- keyboardButtonTextColor: "#000000",
119
- keyboardButtonHoverColor: "#f5f5f5",
120
- primaryButtonBackgroundColor: "#4ca30d",
121
- primaryButtonTextColor: "#ffffff"
122
- },
123
- light: {
124
- backgroundColor: "#ffffff",
125
- containerBackgroundColor: "#d0d5dd",
126
- buttonBackgroundColor: "#ffffff",
127
- textColor: "#000000",
128
- keyboardBackgroundColor: "#f9f9f9",
129
- keyboardButtonBackgroundColor: "#ffffff",
130
- keyboardButtonTextColor: "#000000",
131
- keyboardButtonHoverColor: "#f5f5f5",
132
- primaryButtonBackgroundColor: "#4ca30d",
133
- primaryButtonTextColor: "#ffffff"
134
- }
135
- };
136
108
  var VirtualKeyboard = (props) => {
137
109
  const {
138
110
  virtualKeyInputProps,
@@ -141,45 +113,15 @@ var VirtualKeyboard = (props) => {
141
113
  keyboardProps,
142
114
  onChange,
143
115
  value,
144
- rightPanel,
145
- selectType = "light",
146
- ...others
116
+ rightPanel
147
117
  } = props;
148
- const config = (0, import_usePisellConfig.default)();
149
118
  (0, import_react.useEffect)(() => {
150
119
  document.body.id = "body";
151
120
  }, []);
152
- const configColor = (0, import_react.useMemo)(() => {
153
- const currentConfig = virtualKeyboardThemeConfig[selectType];
154
- const validProps = Object.entries(props).reduce((acc, [key, value2]) => {
155
- if (value2 !== void 0 && key in currentConfig) {
156
- acc[key] = value2;
157
- }
158
- return acc;
159
- }, {});
160
- return { ...currentConfig, ...validProps };
161
- }, [selectType, props]);
162
- (0, import_react.useEffect)(() => {
163
- (0, import_utils.setTheme)({
164
- "--virtual-keyboard-background-color": configColor.backgroundColor,
165
- "--virtual-keyboard-container-background-color": configColor.containerBackgroundColor,
166
- "--virtual-keyboard-button-background-color": configColor.buttonBackgroundColor,
167
- "--virtual-keyboard-text-color": configColor.textColor,
168
- "--virtual-keyboard-keyboard-background-color": configColor.keyboardBackgroundColor,
169
- "--virtual-keyboard-keyboard-button-background-color": configColor.keyboardButtonBackgroundColor,
170
- "--virtual-keyboard-keyboard-button-text-color": configColor.keyboardButtonTextColor,
171
- "--virtual-keyboard-keyboard-button-hover-color": configColor.keyboardButtonHoverColor,
172
- "--virtual-keyboard-primary-button-background-color": configColor.primaryButtonBackgroundColor,
173
- "--virtual-keyboard-primary-button-text-color": configColor.primaryButtonTextColor
174
- });
175
- }, [configColor]);
176
121
  return /* @__PURE__ */ import_react.default.createElement(
177
122
  "div",
178
123
  {
179
- className: (0, import_classnames.default)("virtual-keyboard-component", className, {
180
- "virtual-keyboard-component-dark": selectType === "dark",
181
- "virtual-keyboard-component-light": selectType === "light"
182
- }),
124
+ className: (0, import_classnames.default)("virtual-keyboard-component", className),
183
125
  style
184
126
  },
185
127
  /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("virtual-keyboard-component-left") }, /* @__PURE__ */ import_react.default.createElement(import_VirtualKeyInput.default, { ...virtualKeyInputProps }), /* @__PURE__ */ import_react.default.createElement(import_Keyboard.default, { items, ...keyboardProps })),
@@ -2,46 +2,14 @@
2
2
  display: flex;
3
3
  align-items: center;
4
4
  gap: 20px;
5
- background-color: var(--virtual-keyboard-background-color, #ffffff);
6
-
7
- &.virtual-keyboard-component-dark {
8
- background-color: var(--virtual-keyboard-background-color, rgba(0, 0, 0, 0.70));
9
- }
10
-
11
- &.virtual-keyboard-component-light {
12
- background-color: var(--virtual-keyboard-background-color, #ffffff);
13
- }
14
5
  }
15
6
 
16
7
  .virtual-keyboard-component-left {
17
8
  padding: 10px;
18
9
  width: 380px;
19
10
  border-radius: 10px;
20
- background: var(--virtual-keyboard-container-background-color, #D0D5DD);
11
+ background: var(--Gray-300, #D0D5DD);
21
12
  backdrop-filter: blur(50px);
22
-
23
- .pisell-virtual-keyboard-input {
24
- background-color: var(--virtual-keyboard-button-background-color, #ffffff);
25
- color: var(--virtual-keyboard-text-color, #000000);
26
- }
27
-
28
- .pisell-keyboard {
29
- background-color: var(--virtual-keyboard-keyboard-background-color, #f9f9f9);
30
-
31
- .pisell-keyboard-item {
32
- background-color: var(--virtual-keyboard-keyboard-button-background-color, #ffffff);
33
- color: var(--virtual-keyboard-keyboard-button-text-color, #000000);
34
-
35
- &:hover {
36
- background-color: var(--virtual-keyboard-keyboard-button-hover-color, #f5f5f5);
37
- }
38
-
39
- &.pisell-keyboard-item-primary {
40
- background-color: var(--virtual-keyboard-primary-button-background-color, #4ca30d);
41
- color: var(--virtual-keyboard-primary-button-text-color, #ffffff);
42
- }
43
- }
44
- }
45
13
  }
46
14
 
47
15
  .virtual-keyboard-component-right {
@@ -35,7 +35,8 @@ var responsiveConfig = {
35
35
  function handleResize() {
36
36
  const oldInfo = info;
37
37
  calculate();
38
- if (oldInfo === info) return;
38
+ if (oldInfo === info)
39
+ return;
39
40
  for (const subscriber of subscribers) {
40
41
  subscriber();
41
42
  }
@@ -57,7 +58,8 @@ function calculate() {
57
58
  }
58
59
  function configResponsive(config) {
59
60
  responsiveConfig = config;
60
- if (info) calculate();
61
+ if (info)
62
+ calculate();
61
63
  }
62
64
  function useResponsive() {
63
65
  if (import_utils.isBrowser && !listening) {
@@ -68,7 +70,8 @@ function useResponsive() {
68
70
  }
69
71
  const [state, setState] = (0, import_react.useState)(info);
70
72
  (0, import_react.useEffect)(() => {
71
- if (!import_utils.isBrowser) return;
73
+ if (!import_utils.isBrowser)
74
+ return;
72
75
  if (!listening) {
73
76
  window.addEventListener("resize", handleResize);
74
77
  }
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string;
2
+ export declare const getCssNumber: (val: string | number) => string | number;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
@@ -226,12 +226,11 @@ const AntdIconSetter = (props: AntdIconSetterProps) => {
226
226
  <Balloon
227
227
  className="lc-antd-icon-setter-balloon"
228
228
  trigger={triggerNode}
229
- autoAdjust
229
+ needAdjust
230
230
  triggerType="click"
231
231
  closable={false}
232
232
  alignEdge
233
- align="l"
234
- v2
233
+ align="lt"
235
234
  style={{ width: 300 }}
236
235
  >
237
236
  <div className="lc-antd-icon-setter-header">
@@ -21,137 +21,6 @@ const VirtualKeyboardMeta: ComponentMetadata = {
21
21
  name: "others",
22
22
  setter: ["JsonSetter", "VariableSetter"],
23
23
  },
24
- {
25
- name: 'selectType',
26
- title: { label: '选择类型', tip: 'selectType | 选择类型' },
27
- setter: {
28
- componentName: 'RadioGroupSetter',
29
- props: {
30
- options: [
31
- { title: 'Light', value: 'light' },
32
- { title: 'Dark', value: 'dark' },
33
- ],
34
- },
35
- },
36
- defaultValue: 'light',
37
- extraProps: {
38
- onChange: (value: string, target: any) => {
39
- // 根据主题切换自动设置颜色
40
- const isLight = value === 'light';
41
-
42
- target.getProps().setPropValue('backgroundColor', isLight ? '#ffffff' : 'rgba(0, 0, 0, 0.70)');
43
- target.getProps().setPropValue('containerBackgroundColor', isLight ? '#d0d5dd' : 'rgba(0, 0, 0, 0.40)');
44
- target.getProps().setPropValue('buttonBackgroundColor', '#ffffff');
45
- target.getProps().setPropValue('textColor', "#000000");
46
- target.getProps().setPropValue('keyboardBackgroundColor', isLight ? '#f9f9f9' : 'rgba(0, 0, 0, 0.40)');
47
- target.getProps().setPropValue('keyboardButtonBackgroundColor', '#ffffff');
48
- target.getProps().setPropValue('keyboardButtonTextColor', '#000000');
49
- target.getProps().setPropValue('keyboardButtonHoverColor', '#f5f5f5');
50
- target.getProps().setPropValue('primaryButtonBackgroundColor', '#4ca30d');
51
- target.getProps().setPropValue('primaryButtonTextColor', '#ffffff');
52
- }
53
- }
54
- },
55
- {
56
- name: "backgroundColor",
57
- title: {
58
- label: "背景色",
59
- tip: "backgroundColor | 背景色",
60
- },
61
- propType: "string",
62
- setter: "ColorSetter",
63
- defaultValue: "#ffffff",
64
- },
65
- {
66
- name: "containerBackgroundColor",
67
- title: {
68
- label: "容器背景色",
69
- tip: "containerBackgroundColor | 容器背景色",
70
- },
71
- propType: "string",
72
- setter: "ColorSetter",
73
- defaultValue: "#d0d5dd",
74
- },
75
- {
76
- name: "buttonBackgroundColor",
77
- title: {
78
- label: "按钮背景色",
79
- tip: "buttonBackgroundColor | 按钮背景色",
80
- },
81
- propType: "string",
82
- setter: "ColorSetter",
83
- defaultValue: "#ffffff",
84
- },
85
- {
86
- name: "textColor",
87
- title: {
88
- label: "文本颜色",
89
- tip: "textColor | 文本颜色",
90
- },
91
- propType: "string",
92
- setter: "ColorSetter",
93
- defaultValue: "#000000",
94
- },
95
- {
96
- name: "keyboardBackgroundColor",
97
- title: {
98
- label: "键盘背景色",
99
- tip: "keyboardBackgroundColor | 键盘背景色",
100
- },
101
- propType: "string",
102
- setter: "ColorSetter",
103
- defaultValue: "#f9f9f9",
104
- },
105
- {
106
- name: "keyboardButtonBackgroundColor",
107
- title: {
108
- label: "键盘按钮背景色",
109
- tip: "keyboardButtonBackgroundColor | 键盘按钮背景色",
110
- },
111
- propType: "string",
112
- setter: "ColorSetter",
113
- defaultValue: "#ffffff",
114
- },
115
- {
116
- name: "keyboardButtonTextColor",
117
- title: {
118
- label: "键盘按钮文本颜色",
119
- tip: "keyboardButtonTextColor | 键盘按钮文本颜色",
120
- },
121
- propType: "string",
122
- setter: "ColorSetter",
123
- defaultValue: "#000000",
124
- },
125
- {
126
- name: "keyboardButtonHoverColor",
127
- title: {
128
- label: "键盘按钮悬停颜色",
129
- tip: "keyboardButtonHoverColor | 键盘按钮悬停颜色",
130
- },
131
- propType: "string",
132
- setter: "ColorSetter",
133
- defaultValue: "#f5f5f5",
134
- },
135
- {
136
- name: "primaryButtonBackgroundColor",
137
- title: {
138
- label: "主要按钮背景色",
139
- tip: "primaryButtonBackgroundColor | 主要按钮背景色",
140
- },
141
- propType: "string",
142
- setter: "ColorSetter",
143
- defaultValue: "#4ca30d",
144
- },
145
- {
146
- name: "primaryButtonTextColor",
147
- title: {
148
- label: "主要按钮文本颜色",
149
- tip: "primaryButtonTextColor | 主要按钮文本颜色",
150
- },
151
- propType: "string",
152
- setter: "ColorSetter",
153
- defaultValue: "#ffffff",
154
- },
155
24
  ],
156
25
  configure: {
157
26
  supports: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.2.29",
3
+ "version": "6.3.1",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -55,8 +55,6 @@
55
55
  "@dnd-kit/modifiers": "^6.0.1",
56
56
  "@dnd-kit/sortable": "^7.0.2",
57
57
  "@dnd-kit/utilities": "^3.2.1",
58
- "@react-spring/web": "^9.6.1",
59
- "@use-gesture/react": "^10.3.1",
60
58
  "@zxing/library": "0.21.2",
61
59
  "ahooks": "^3.7.6",
62
60
  "antd": "^5.6.3",
@@ -65,16 +63,16 @@
65
63
  "crypto-js": "^4.2.0",
66
64
  "dayjs": "^1.11.8",
67
65
  "libphonenumber-js": "^1.11.17",
68
- "react-barcode": "^1.5.3",
69
66
  "react-infinite-scroll-component": "^6.1.0",
70
67
  "react-resizable": "^3.0.5",
71
68
  "react-virtualized-auto-sizer": "^1.0.20",
72
69
  "react-window": "^1.8.10",
73
70
  "styled-components": "^6.0.0-rc.3",
74
71
  "swiper": "^8.4.7",
72
+ "react-barcode": "^1.5.3",
75
73
  "vod-js-sdk-v6": "^1.4.11",
76
- "@pisell/icon": "0.0.11",
77
74
  "@pisell/date-picker": "3.0.4",
75
+ "@pisell/icon": "0.0.11",
78
76
  "@pisell/utils": "3.0.0"
79
77
  },
80
78
  "peerDependencies": {
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface IProps {
4
- isShowImage?: boolean;
5
- dataSource: {
6
- image?: string;
7
- bundle?: any[];
8
- options?: any[];
9
- product_option_string?: string;
10
- name?: string;
11
- symbol?: string;
12
- price?: string | number;
13
- total?: number;
14
- origin_total?: number;
15
- num?: number;
16
- };
17
- style?: React.CSSProperties;
18
- isMainProduct?: boolean;
19
- }
20
- declare const BasicInfo: (props: IProps) => JSX.Element;
21
- export default BasicInfo;
@@ -1,73 +0,0 @@
1
- import React from 'react';
2
- import classNames from 'classnames';
3
- import { image as imageAli, formatAmount } from '@pisell/utils';
4
- import Specs from "../specs";
5
- import { PREFIX } from "../../index";
6
- import "./index.less";
7
- var BasicInfo = function BasicInfo(props) {
8
- var isShowImage = props.isShowImage,
9
- _props$dataSource = props.dataSource,
10
- dataSource = _props$dataSource === void 0 ? {} : _props$dataSource,
11
- style = props.style,
12
- isMainProduct = props.isMainProduct;
13
- var image = dataSource.image,
14
- bundle = dataSource.bundle,
15
- options = dataSource.options,
16
- product_option_string = dataSource.product_option_string,
17
- name = dataSource.name,
18
- price = dataSource.price,
19
- symbol = dataSource.symbol,
20
- _dataSource$total = dataSource.total,
21
- total = _dataSource$total === void 0 ? 0 : _dataSource$total,
22
- _dataSource$origin_to = dataSource.origin_total,
23
- origin_total = _dataSource$origin_to === void 0 ? 0 : _dataSource$origin_to,
24
- _dataSource$num = dataSource.num,
25
- num = _dataSource$num === void 0 ? 1 : _dataSource$num;
26
- var renderNumTag = function renderNumTag() {
27
- if (num > 1) return /*#__PURE__*/React.createElement("div", {
28
- className: classNames("num-tag", {
29
- 'is-main': isMainProduct
30
- })
31
- }, num < 100 ? num : '99+');
32
- return null;
33
- };
34
- var hasSpecs = (bundle === null || bundle === void 0 ? void 0 : bundle.length) || (options === null || options === void 0 ? void 0 : options.length) || product_option_string;
35
- var renderImage = function renderImage() {
36
- if (!isShowImage) return null;
37
- if (image) {
38
- return /*#__PURE__*/React.createElement("img", {
39
- src: imageAli.ali(image, 64),
40
- className: "product-cover"
41
- });
42
- }
43
-
44
- // 如果没有图片,显示文字图片
45
- var displayText = name ? name.slice(0, 2) : '';
46
- return /*#__PURE__*/React.createElement("div", {
47
- className: "product-cover-text"
48
- }, displayText);
49
- };
50
- return /*#__PURE__*/React.createElement("div", {
51
- className: "".concat(PREFIX, "__basic-info"),
52
- style: style || {}
53
- }, renderNumTag(), renderImage(), (!isShowImage || !image && !name) && num > 1 ? /*#__PURE__*/React.createElement("div", {
54
- style: {
55
- width: 26
56
- }
57
- }) : null, /*#__PURE__*/React.createElement("div", {
58
- className: "product-info"
59
- }, /*#__PURE__*/React.createElement("div", {
60
- className: "product-name"
61
- }, name), hasSpecs ? /*#__PURE__*/React.createElement(Specs, {
62
- dataSource: dataSource
63
- }) : /*#__PURE__*/React.createElement("div", {
64
- className: "product-price"
65
- }, formatAmount(price, 2, symbol))), /*#__PURE__*/React.createElement("div", {
66
- className: "product-amount"
67
- }, /*#__PURE__*/React.createElement("div", {
68
- className: "total-amont"
69
- }, formatAmount(total * num, 2, symbol)), origin_total && Number(total) !== Number(origin_total) ? /*#__PURE__*/React.createElement("div", {
70
- className: "origin-amount"
71
- }, formatAmount(origin_total * num, 2, symbol)) : null));
72
- };
73
- export default BasicInfo;
@@ -1,113 +0,0 @@
1
- .pisell-cart-sku-card {
2
- &__basic-info {
3
- display: flex;
4
- gap: 4px;
5
- position: relative;
6
-
7
- .num-tag {
8
- background-color: #7f56da;
9
- position: absolute;
10
- left: 0;
11
- top: 0;
12
- border-radius: 12px;
13
- min-width: 24px;
14
- height: 24px;
15
- display: flex;
16
- align-items: center;
17
- justify-content: center;
18
- z-index: 1;
19
-
20
- color: var(--Base-White, #fff);
21
- font-size: 16px;
22
- font-style: normal;
23
- font-weight: 600;
24
- line-height: 16px;
25
-
26
- &.is-main {
27
- left: -4px;
28
- top: -4px;
29
- }
30
- }
31
-
32
- img {
33
- width: 48px;
34
- height: 48px;
35
- flex-shrink: 0;
36
- border-radius: 6px;
37
- }
38
-
39
- .product-cover-text {
40
- width: 48px;
41
- height: 48px;
42
- flex-shrink: 0;
43
- border-radius: 8px;
44
- background-color: #DEDEDE;
45
- color: #7E7E7E;
46
- display: flex;
47
- align-items: center;
48
- justify-content: center;
49
- font-size: 22px;
50
- font-weight: 500;
51
- line-height: 1;
52
- }
53
-
54
- .product-info {
55
- flex: 1;
56
- display: flex;
57
- align-items: center;
58
- gap: 4px;
59
- flex: 1 0 0;
60
- flex-wrap: wrap;
61
- overflow: hidden;
62
-
63
- .product-name {
64
- color: var(--Gray-900, #101828);
65
- font-size: 14px;
66
- font-style: normal;
67
- font-weight: 600;
68
- line-height: 20px;
69
- width: 100%;
70
- overflow: hidden;
71
- text-overflow: ellipsis;
72
- white-space: nowrap;
73
- }
74
-
75
- .product-price {
76
- color: var(--Gray-900, #101828);
77
- font-size: 14px;
78
- font-style: normal;
79
- font-weight: 500;
80
- line-height: 20px;
81
- width: 100%;
82
- }
83
- }
84
-
85
- .product-amount {
86
- display: flex;
87
- align-items: center;
88
- gap: 4px;
89
- flex-wrap: wrap;
90
- flex-shrink: 0;
91
- .total-amont {
92
- color: var(--Base-Black, #000);
93
- text-align: center;
94
- font-size: 14px;
95
- font-style: normal;
96
- font-weight: 600;
97
- line-height: 20px;
98
- width: 100%;
99
- }
100
-
101
- .origin-amount {
102
- color: var(--Gray-500, #667085);
103
- text-align: center;
104
- font-size: 12px;
105
- font-style: normal;
106
- font-weight: 400;
107
- line-height: 18px;
108
- text-decoration-line: line-through;
109
- width: 100%;
110
- }
111
- }
112
- }
113
- }
@@ -1,2 +0,0 @@
1
- declare const DiscountReason: (props: any) => JSX.Element;
2
- export default DiscountReason;
@@ -1,51 +0,0 @@
1
- import React, { useMemo } from 'react';
2
- import { Divider, Tag } from 'antd';
3
- import { locales } from '@pisell/utils';
4
- import { PREFIX } from "../../index";
5
- var DiscountReason = function DiscountReason(props) {
6
- var _props$dataSource = props.dataSource,
7
- dataSource = _props$dataSource === void 0 ? {} : _props$dataSource,
8
- hideDivider = props.hideDivider;
9
- var total = dataSource.total,
10
- origin_total = dataSource.origin_total,
11
- symbol = dataSource.symbol,
12
- tip = dataSource.tip,
13
- num = dataSource.num,
14
- discount_reason = dataSource.discount_reason;
15
- var isDiscount = useMemo(function () {
16
- // item中没有该属性则不展示
17
- if (!origin_total) return false;
18
- return Number(total) != Number(origin_total);
19
- }, [total, origin_total]);
20
- var renderDivider = function renderDivider() {
21
- return isDiscount && discount_reason && !hideDivider ? /*#__PURE__*/React.createElement(Divider, {
22
- style: {
23
- margin: '4px 0'
24
- }
25
- }) : null;
26
- };
27
- var renderDiscountReason = function renderDiscountReason() {
28
- if (isDiscount && discount_reason) {
29
- if (Array.isArray(discount_reason)) {
30
- return /*#__PURE__*/React.createElement("div", {
31
- className: "".concat(PREFIX, "_discount-reason"),
32
- style: {
33
- display: 'flex',
34
- flexWrap: 'wrap',
35
- gap: '4px'
36
- }
37
- }, discount_reason.map(function (reason, index) {
38
- return /*#__PURE__*/React.createElement(Tag, {
39
- key: index,
40
- color: "red"
41
- }, reason);
42
- }));
43
- }
44
- return /*#__PURE__*/React.createElement("div", {
45
- className: "".concat(PREFIX, "_discount-reason")
46
- }, /*#__PURE__*/React.createElement("span", null, "".concat(locales.getText('pisell2.product.card.discount.reason'), ": ").concat(discount_reason)));
47
- }
48
- };
49
- return /*#__PURE__*/React.createElement(React.Fragment, null, renderDivider(), renderDiscountReason());
50
- };
51
- export default DiscountReason;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- declare const Holders: (props: any) => JSX.Element | null;
4
- export default Holders;