@pisell/materials 2.2.86 → 2.2.87

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 (245) 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 +7 -7
  6. package/build/lowcode/preview.js +144 -160
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +25 -35
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +30 -40
  11. package/es/components/batch-editor/index.d.ts +0 -1
  12. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
  13. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  14. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  15. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  16. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  17. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  18. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -3
  19. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  20. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  21. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
  22. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
  23. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  24. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
  25. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
  26. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  27. package/es/components/dataSourceComponents/fields/index.d.ts +10 -11
  28. package/es/components/date-picker/datePickerCpt.d.ts +0 -1
  29. package/es/components/date-picker/index.d.ts +0 -1
  30. package/es/components/filter/index.d.ts +0 -1
  31. package/es/components/list/index.d.ts +0 -1
  32. package/es/components/lowCodePage/index.d.ts +0 -1
  33. package/es/components/page/index.d.ts +0 -1
  34. package/es/components/pisellAdjustPrice/index.d.ts +1 -6
  35. package/es/components/pisellAdjustPrice/index.js +63 -8
  36. package/es/components/pisellAdjustPrice/index.less +35 -6
  37. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  38. package/es/components/pisellAdjustPrice/status.js +32 -0
  39. package/es/components/pisellAdjustPrice/type.d.ts +20 -0
  40. package/es/components/pisellAdjustPrice/type.js +1 -0
  41. package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
  42. package/es/components/pisellInput/index.d.ts +0 -1
  43. package/es/components/pisellLoading/index.d.ts +0 -1
  44. package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  45. package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  46. package/es/components/pisellModal/components/index.d.ts +0 -1
  47. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
  48. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
  49. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
  50. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
  51. package/es/components/productCard/cartSkuCard/index.d.ts +0 -1
  52. package/es/components/productCard/components/AmountFooter/index.d.ts +0 -1
  53. package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -1
  54. package/es/components/productCard/components/Header/index.d.ts +0 -1
  55. package/es/components/productCard/components/MultiDay/index.d.ts +0 -1
  56. package/es/components/productCard/components/Note/index.d.ts +0 -1
  57. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  58. package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  59. package/es/components/productCard/components/Packages/index.d.ts +0 -1
  60. package/es/components/productCard/components/Sales/index.d.ts +0 -1
  61. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
  62. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
  63. package/es/components/qrcode/index.d.ts +0 -1
  64. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  65. package/es/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  66. package/es/components/table/Actions/component/Group/index.d.ts +0 -1
  67. package/es/components/table/Actions/index.d.ts +0 -1
  68. package/es/components/table/BasicTable/index.d.ts +0 -1
  69. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  70. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
  71. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  72. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  73. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  74. package/es/components/table/Table/fields/date/Show/index.d.ts +0 -1
  75. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  76. package/es/components/table/Table/fields/image/Show/index.d.ts +0 -1
  77. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  78. package/es/components/table/Table/fields/index.d.ts +2 -3
  79. package/es/components/table/Table/fields/link/Show/index.d.ts +0 -1
  80. package/es/components/table/Table/fields/link/index.d.ts +0 -1
  81. package/es/components/table/Table/fields/number/Show/index.d.ts +0 -1
  82. package/es/components/table/Table/fields/number/index.d.ts +0 -1
  83. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  84. package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
  85. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  86. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  87. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  88. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  89. package/es/components/table/Table/fields/search/Show/index.d.ts +0 -1
  90. package/es/components/table/Table/fields/search/index.d.ts +0 -1
  91. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  92. package/es/components/table/Table/fields/select/index.d.ts +0 -1
  93. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  94. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  95. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  96. package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  97. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  98. package/es/components/table/Table/utils.d.ts +1 -1
  99. package/es/components/table/View/index.d.ts +0 -1
  100. package/es/components/versionSelect/index.d.ts +0 -1
  101. package/es/components/virtual-keyboard/Amount/index.d.ts +10 -0
  102. package/es/components/virtual-keyboard/Amount/index.js +9 -4
  103. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  104. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +38 -10
  105. package/es/components/virtual-keyboard/Keyboard/index.js +2 -2
  106. package/es/components/virtual-keyboard/Number/index.d.ts +0 -1
  107. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +2 -0
  108. package/es/components/virtual-keyboard/VirtualKeyInput/index.js +10 -3
  109. package/es/utils/index.d.ts +1 -1
  110. package/lib/components/batch-editor/index.d.ts +0 -1
  111. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +0 -1
  112. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  113. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +0 -1
  114. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  115. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  116. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  117. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -3
  118. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  119. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +0 -1
  120. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
  121. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
  122. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  123. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -2
  124. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
  125. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  126. package/lib/components/dataSourceComponents/fields/index.d.ts +10 -11
  127. package/lib/components/date-picker/datePickerCpt.d.ts +0 -1
  128. package/lib/components/date-picker/index.d.ts +0 -1
  129. package/lib/components/filter/index.d.ts +0 -1
  130. package/lib/components/list/index.d.ts +0 -1
  131. package/lib/components/lowCodePage/index.d.ts +0 -1
  132. package/lib/components/page/index.d.ts +0 -1
  133. package/lib/components/pisellAdjustPrice/index.d.ts +1 -6
  134. package/lib/components/pisellAdjustPrice/index.js +118 -57
  135. package/lib/components/pisellAdjustPrice/index.less +35 -6
  136. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  137. package/lib/components/pisellAdjustPrice/status.js +60 -0
  138. package/lib/components/pisellAdjustPrice/type.d.ts +20 -0
  139. package/lib/components/pisellAdjustPrice/type.js +17 -0
  140. package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
  141. package/lib/components/pisellInput/index.d.ts +0 -1
  142. package/lib/components/pisellLoading/index.d.ts +0 -1
  143. package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  144. package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  145. package/lib/components/pisellModal/components/index.d.ts +0 -1
  146. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -1
  147. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
  148. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
  149. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
  150. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -1
  151. package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -1
  152. package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -1
  153. package/lib/components/productCard/components/Header/index.d.ts +0 -1
  154. package/lib/components/productCard/components/MultiDay/index.d.ts +0 -1
  155. package/lib/components/productCard/components/Note/index.d.ts +0 -1
  156. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  157. package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  158. package/lib/components/productCard/components/Packages/index.d.ts +0 -1
  159. package/lib/components/productCard/components/Sales/index.d.ts +0 -1
  160. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
  161. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
  162. package/lib/components/qrcode/index.d.ts +0 -1
  163. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  164. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +0 -1
  165. package/lib/components/table/Actions/component/Group/index.d.ts +0 -1
  166. package/lib/components/table/Actions/index.d.ts +0 -1
  167. package/lib/components/table/BasicTable/index.d.ts +0 -1
  168. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  169. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
  170. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  171. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  172. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  173. package/lib/components/table/Table/fields/date/Show/index.d.ts +0 -1
  174. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  175. package/lib/components/table/Table/fields/image/Show/index.d.ts +0 -1
  176. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  177. package/lib/components/table/Table/fields/index.d.ts +2 -3
  178. package/lib/components/table/Table/fields/link/Show/index.d.ts +0 -1
  179. package/lib/components/table/Table/fields/link/index.d.ts +0 -1
  180. package/lib/components/table/Table/fields/number/Show/index.d.ts +0 -1
  181. package/lib/components/table/Table/fields/number/index.d.ts +0 -1
  182. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +0 -1
  183. package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
  184. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  185. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +0 -1
  186. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  187. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  188. package/lib/components/table/Table/fields/search/Show/index.d.ts +0 -1
  189. package/lib/components/table/Table/fields/search/index.d.ts +0 -1
  190. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  191. package/lib/components/table/Table/fields/select/index.d.ts +0 -1
  192. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  193. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  194. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  195. package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  196. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +0 -1
  197. package/lib/components/table/Table/utils.d.ts +1 -1
  198. package/lib/components/table/View/index.d.ts +0 -1
  199. package/lib/components/versionSelect/index.d.ts +0 -1
  200. package/lib/components/virtual-keyboard/Amount/index.d.ts +10 -0
  201. package/lib/components/virtual-keyboard/Amount/index.js +8 -3
  202. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  203. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +31 -8
  204. package/lib/components/virtual-keyboard/Keyboard/index.js +2 -1
  205. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -1
  206. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +2 -0
  207. package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +34 -27
  208. package/lib/utils/index.d.ts +1 -1
  209. package/lowcode/pisell-adjust-price/meta.ts +168 -0
  210. package/lowcode/pisell-adjust-price/snippets.ts +1 -0
  211. package/package.json +3 -3
  212. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  213. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  214. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  215. package/es/components/drag-sort-tree/index.d.ts +0 -4
  216. package/es/components/iconfont/index.d.ts +0 -8
  217. package/es/components/login-and-register/index.d.ts +0 -82
  218. package/es/components/pisell-config-provider/index.d.ts +0 -12
  219. package/es/components/pisellEmpty/index.d.ts +0 -19
  220. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -93
  221. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  222. package/es/components/productCard/locales.d.ts +0 -84
  223. package/es/components/productCard/status.d.ts +0 -32
  224. package/es/components/productCard/types.d.ts +0 -84
  225. package/es/components/table/types.d.ts +0 -251
  226. package/es/locales/en-US.d.ts +0 -278
  227. package/es/locales/zh-CN.d.ts +0 -273
  228. package/es/locales/zh-TW.d.ts +0 -273
  229. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  230. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
  231. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  232. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  233. package/lib/components/iconfont/index.d.ts +0 -8
  234. package/lib/components/login-and-register/index.d.ts +0 -82
  235. package/lib/components/pisell-config-provider/index.d.ts +0 -12
  236. package/lib/components/pisellEmpty/index.d.ts +0 -19
  237. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -93
  238. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  239. package/lib/components/productCard/locales.d.ts +0 -84
  240. package/lib/components/productCard/status.d.ts +0 -32
  241. package/lib/components/productCard/types.d.ts +0 -84
  242. package/lib/components/table/types.d.ts +0 -251
  243. package/lib/locales/en-US.d.ts +0 -278
  244. package/lib/locales/zh-CN.d.ts +0 -273
  245. package/lib/locales/zh-TW.d.ts +0 -273
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from '../../../filter/types';
3
2
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
4
3
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  declare const useDataSourceKey: () => {
3
- dataSourceKey: string | undefined;
4
- dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
2
+ dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
3
+ dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
5
4
  };
6
5
  export default useDataSourceKey;
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
20
+ title: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
21
21
  pagination: {
22
22
  total: number;
23
23
  current: number;
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
26
26
  showSizeChanger: boolean;
27
27
  };
28
28
  columns: import("./useColumns").Column[];
29
- subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
29
+ subTitle: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
30
30
  buttons: any[] | null;
31
31
  filter: JSX.Element | null;
32
32
  onRow: (record: any) => any;
@@ -70,7 +70,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
70
70
  useCustomAction: boolean;
71
71
  actionType: string;
72
72
  openMode: "modal" | "drawer";
73
- openContentSize: "small" | "large" | "middle";
73
+ openContentSize: "large" | "middle" | "small";
74
74
  openTitle: string;
75
75
  key: string;
76
76
  } | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
3
2
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
4
3
  export default DataSourceWrapper;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { JsonProps } from "./type";
3
2
  import "./ReadPretty.less";
4
3
  declare const JsonReadPretty: (props: JsonProps) => JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PasswordProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const PasswordReadPretty: (props: PasswordProps) => JSX.Element;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: "custom" | "saas" | "xzero";
5
+ rootDomain: "custom" | "xzero" | "saas";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
3
2
  options?: any;
4
- optionSourceType?: "custom" | "default" | "api" | undefined;
3
+ optionSourceType?: "default" | "custom" | "api" | undefined;
5
4
  labelField: string;
6
5
  valueField: string;
7
6
  extraParams?: Record<string, any> | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UploadProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const UploadReadPretty: (props: UploadProps) => JSX.Element | null;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const formFieldMap: {
3
2
  FormItemCheckbox: import("react").FC<{}> & {
4
3
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -20,7 +19,7 @@ declare const formFieldMap: {
20
19
  Subdomain: import("react").FC<import("antd").InputProps & {
21
20
  onChange: (value: string) => void;
22
21
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
23
- rootDomain: "custom" | "saas" | "xzero";
22
+ rootDomain: "custom" | "xzero" | "saas";
24
23
  customDomain?: string | undefined;
25
24
  value?: string | undefined;
26
25
  tenantId: string;
@@ -35,7 +34,7 @@ declare const formFieldMap: {
35
34
  };
36
35
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
37
36
  options?: any;
38
- optionSourceType?: "custom" | "default" | "api" | undefined;
37
+ optionSourceType?: "default" | "custom" | "api" | undefined;
39
38
  labelField: string;
40
39
  valueField: string;
41
40
  extraParams?: Record<string, any> | undefined;
@@ -60,13 +59,11 @@ declare const formFieldMap: {
60
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
61
  };
63
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
64
63
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
65
64
  } & {
66
65
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
67
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
68
- onChange: (value: string) => void;
69
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
66
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
70
67
  JSON: import("react").FC<any>;
71
68
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
72
69
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -79,24 +76,26 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
79
76
  Subdomain: import("react").FC<import("antd").InputProps & {
80
77
  onChange: (value: string) => void;
81
78
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
82
- rootDomain: "custom" | "saas" | "xzero";
79
+ rootDomain: "custom" | "xzero" | "saas";
83
80
  customDomain?: string | undefined;
84
81
  value?: string | undefined;
85
82
  tenantId: string;
86
83
  name?: string | undefined;
87
84
  fieldKey?: string | undefined;
88
85
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
89
- }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
86
+ }) | (import("react").FC<{}> & {
90
87
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
91
88
  } & {
92
89
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
93
90
  }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
94
91
  options?: any;
95
- optionSourceType?: "custom" | "default" | "api" | undefined;
92
+ optionSourceType?: "default" | "custom" | "api" | undefined;
96
93
  labelField: string;
97
94
  valueField: string;
98
95
  extraParams?: Record<string, any> | undefined;
99
96
  } & {
100
97
  dataSource?: any;
101
- }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
98
+ }) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
99
+ onChange: (value: string) => void;
100
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
102
101
  export { getFieldComponent, formFieldMap };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
3
2
  import { Dayjs } from 'dayjs';
4
3
  import './index.less';
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DatePicker: (props: any) => JSX.Element;
3
2
  export default DatePicker;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterProps } from "./types";
3
2
  declare const Filter: (props: FilterProps) => JSX.Element | null;
4
3
  export default Filter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const List: {
4
3
  (props: any): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type LowCodePageProps = {
3
2
  id: number;
4
3
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfigProviderProps } from '../config-provider';
3
2
  interface PageProps extends ConfigProviderProps {
4
3
  }
@@ -1,9 +1,4 @@
1
1
  import './index.less';
2
- export interface PisellAdjustPriceProps {
3
- value?: number;
4
- originValue: number;
5
- defaultValue?: number;
6
- onChange?: (val: number) => void;
7
- }
2
+ import { PisellAdjustPriceProps } from './type';
8
3
  declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
9
4
  export default PisellAdjustPrice;
@@ -35,13 +35,22 @@ module.exports = __toCommonJS(pisellAdjustPrice_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
37
  var import_classnames = __toESM(require("classnames"));
38
+ var import_utils = require("@pisell/utils");
38
39
  var import_pisellText = __toESM(require("../pisellText"));
39
40
  var import_Amount = __toESM(require("../virtual-keyboard/Amount"));
40
41
  var import_locales = require("../../locales");
41
42
  var import_index = require("./index.less");
42
43
  var import_usePisellConfig = __toESM(require("../pisell-config-provider/hooks/usePisellConfig"));
44
+ var import_status = require("./status");
43
45
  var PisellAdjustPrice = (props) => {
44
- const { value, onChange, defaultValue, originValue, ...others } = props;
46
+ const {
47
+ value,
48
+ onChange,
49
+ defaultValue,
50
+ originValue,
51
+ selectType = "light",
52
+ ...others
53
+ } = props;
45
54
  const config = (0, import_usePisellConfig.default)();
46
55
  const [newValue, setNewValue] = (0, import_react.useState)(value || 0);
47
56
  const [updateMode, setUpdateMode] = (0, import_react.useState)(
@@ -53,6 +62,16 @@ var PisellAdjustPrice = (props) => {
53
62
  (0, import_react.useEffect)(() => {
54
63
  document.body.id = "body";
55
64
  }, []);
65
+ const configColor = (0, import_react.useMemo)(() => {
66
+ const currentConfig = import_status.defaultConfig[selectType];
67
+ const validProps = Object.entries(props).reduce((acc, [key, value2]) => {
68
+ if (value2 !== void 0 && key in currentConfig) {
69
+ acc[key] = value2;
70
+ }
71
+ return acc;
72
+ }, {});
73
+ return { ...currentConfig, ...validProps };
74
+ }, [selectType, props]);
56
75
  const handleEnter = () => {
57
76
  if (isDiscountError) {
58
77
  return;
@@ -92,65 +111,107 @@ var PisellAdjustPrice = (props) => {
92
111
  return `${v}%`;
93
112
  }
94
113
  };
95
- return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-adjust-price-wrap" }, /* @__PURE__ */ import_react.default.createElement(
96
- import_antd.Segmented,
97
- {
98
- size: "large",
99
- options: [
100
- {
101
- label: (0, import_locales.getText)("pisell-adjust-price-price-override"),
102
- value: "priceOverride"
103
- },
104
- { label: (0, import_locales.getText)("pisell-adjust-price-discount"), value: "discount" }
105
- ],
106
- value: updateMode,
107
- onChange: handleUpdateMode,
108
- block: true
109
- }
110
- ), updateMode === "discount" && /* @__PURE__ */ import_react.default.createElement(
111
- import_antd.Segmented,
112
- {
113
- size: "large",
114
- options: [
115
- {
116
- label: `${(0, import_locales.getText)("pisell-adjust-price-discount-amount")}(${(config == null ? void 0 : config.symbol) || "$"})`,
117
- value: "amount"
118
- },
119
- {
120
- label: `${(0, import_locales.getText)("pisell-adjust-price-discount-percentage")}(%)`,
121
- value: "percentage"
122
- }
123
- ],
124
- value: discountMode,
125
- onChange: (val) => {
126
- setNewValue("");
127
- setDiscountMode(val);
128
- },
129
- block: true
130
- }
131
- ), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-adjust-price-amount-wrap" }, /* @__PURE__ */ import_react.default.createElement(
132
- import_Amount.default,
133
- {
134
- ...others,
135
- inputFormat,
136
- defaultValue: updateMode === "priceOverride" ? defaultValue : "",
137
- key: updateMode,
138
- value: newValue,
139
- defaultSelect: updateMode === "priceOverride",
140
- onChange: handleChange,
141
- onEnter: handleEnter,
142
- placeholder: discountMode === "amount" ? "0" : "%"
143
- }
144
- )), updateMode === "discount" && /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-low-code-adjust-price-total" }, isDiscountError ? /* @__PURE__ */ import_react.default.createElement(import_pisellText.default.Amount, { value: originValue }) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, newValue && (0, import_locales.getText)("pisell-adjust-price-total-after-discount"), /* @__PURE__ */ import_react.default.createElement(import_pisellText.default.Amount, { value: totalAfterDiscount }))), /* @__PURE__ */ import_react.default.createElement(
114
+ (0, import_react.useEffect)(() => {
115
+ (0, import_utils.setTheme)({
116
+ "--pisell-adjust-price-text-color": configColor.textColor,
117
+ "--pisell-adjust-price-background-color": configColor.backgroundColor,
118
+ "--pisell-adjust-price-container-background-color": configColor.containerBackgroundColor,
119
+ "--pisell-adjust-price-button-background-color": configColor.buttonBackgroundColor,
120
+ "--pisell-adjust-price-main-text-color": configColor.mainTextColor,
121
+ "--pisell-adjust-price-sub-text-color": configColor.subTextColor
122
+ });
123
+ }, [configColor]);
124
+ return /* @__PURE__ */ import_react.default.createElement(
145
125
  "div",
146
126
  {
147
- className: (0, import_classnames.default)("pisell-low-code-adjust-price-amount-desc", {
148
- ["pisell-low-code-adjust-price-amount-desc-error"]: isDiscountError
127
+ className: (0, import_classnames.default)("pisell-lowcode-adjust-price-wrap", {
128
+ "pisell-lowcode-adjust-price-dark": selectType === "dark",
129
+ "pisell-lowcode-adjust-price-light": selectType === "light"
149
130
  })
150
131
  },
151
- (0, import_locales.getText)("pisell-adjust-price-discount-can-be-maximum"),
152
- " ",
153
- discountMode === "amount" ? /* @__PURE__ */ import_react.default.createElement(import_pisellText.default.Amount, { value: originValue }) : "100%"
154
- )));
132
+ /* @__PURE__ */ import_react.default.createElement(
133
+ import_antd.Segmented,
134
+ {
135
+ size: "large",
136
+ options: [
137
+ {
138
+ label: (0, import_locales.getText)("pisell-adjust-price-price-override"),
139
+ value: "priceOverride"
140
+ },
141
+ { label: (0, import_locales.getText)("pisell-adjust-price-discount"), value: "discount" }
142
+ ],
143
+ value: updateMode,
144
+ onChange: handleUpdateMode,
145
+ block: true
146
+ }
147
+ ),
148
+ updateMode === "discount" && /* @__PURE__ */ import_react.default.createElement(
149
+ import_antd.Segmented,
150
+ {
151
+ size: "large",
152
+ options: [
153
+ {
154
+ label: `${(0, import_locales.getText)("pisell-adjust-price-discount-amount")}(${(config == null ? void 0 : config.symbol) || "$"})`,
155
+ value: "amount"
156
+ },
157
+ {
158
+ label: `${(0, import_locales.getText)("pisell-adjust-price-discount-percentage")}(%)`,
159
+ value: "percentage"
160
+ }
161
+ ],
162
+ value: discountMode,
163
+ onChange: (val) => {
164
+ setNewValue("");
165
+ setDiscountMode(val);
166
+ },
167
+ block: true
168
+ }
169
+ ),
170
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-adjust-price-amount-wrap" }, /* @__PURE__ */ import_react.default.createElement(
171
+ import_Amount.default,
172
+ {
173
+ ...others,
174
+ inputFormat,
175
+ defaultValue: updateMode === "priceOverride" ? defaultValue : "",
176
+ key: updateMode,
177
+ value: newValue,
178
+ defaultSelect: updateMode === "priceOverride",
179
+ onChange: handleChange,
180
+ onEnter: handleEnter,
181
+ placeholder: discountMode === "amount" ? "0" : "%",
182
+ rightItemsStyle: {
183
+ buttonBackgroundColor: configColor.buttonBackgroundColor,
184
+ textColor: configColor.textColor,
185
+ resetButtonBackgroundColor: configColor.resetButtonBackgroundColor,
186
+ resetButtonTextColor: configColor.resetButtonTextColor,
187
+ isDoneButtonFollowTheme: configColor.isDoneButtonFollowTheme,
188
+ doneButtonBackgroundColor: configColor.doneButtonBackgroundColor,
189
+ doneButtonTextColor: configColor.doneButtonTextColor
190
+ }
191
+ }
192
+ )),
193
+ updateMode === "discount" && /* @__PURE__ */ import_react.default.createElement("div", null, configColor.isShowMainText ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-low-code-adjust-price-total" }, isDiscountError ? /* @__PURE__ */ import_react.default.createElement(import_pisellText.default.Amount, { value: originValue }) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, newValue && (0, import_locales.getText)("pisell-adjust-price-total-after-discount"), /* @__PURE__ */ import_react.default.createElement(import_pisellText.default.Amount, { value: totalAfterDiscount }))) : null, configColor.isShowSubText ? /* @__PURE__ */ import_react.default.createElement(
194
+ "div",
195
+ {
196
+ className: (0, import_classnames.default)(
197
+ "pisell-low-code-adjust-price-amount-desc",
198
+ {
199
+ ["pisell-low-code-adjust-price-amount-desc-error"]: isDiscountError
200
+ }
201
+ )
202
+ },
203
+ (0, import_locales.getText)("pisell-adjust-price-discount-can-be-maximum"),
204
+ " ",
205
+ discountMode === "amount" ? /* @__PURE__ */ import_react.default.createElement(
206
+ import_pisellText.default.Amount,
207
+ {
208
+ value: originValue,
209
+ style: {
210
+ color: configColor.subTextColor
211
+ }
212
+ }
213
+ ) : "100%"
214
+ ) : null)
215
+ );
155
216
  };
156
217
  var pisellAdjustPrice_default = PisellAdjustPrice;
@@ -1,30 +1,59 @@
1
1
  .pisell-lowcode-adjust-price-wrap {
2
2
  width: 380px;
3
3
  border-radius: 10px;
4
- background-color: #fff;
4
+ background-color: var(--pisell-adjust-price-background-color);
5
5
  padding: 10px;
6
6
  display: flex;
7
7
  flex-direction: column;
8
8
  gap: 10px;
9
+ transition: all 0.3s ease;
10
+
11
+ // 浅色模式样式
12
+ &.pisell-lowcode-adjust-price-light {
13
+ .pisell-lowcode-segmented-item-label {
14
+ color: #667085;
15
+ }
16
+ }
17
+
18
+ // 深色模式样式
19
+ &.pisell-lowcode-adjust-price-dark {
20
+ .pisell-lowcode-segmented-item-label {
21
+ color: #d0d5dd;
22
+ }
23
+ }
24
+
25
+ .pisell-lowcode-segmented {
26
+ background: var(--pisell-adjust-price-container-background-color);
27
+ :hover {
28
+ color: var(--pisell-adjust-price-text-color);
29
+ }
30
+ .pisell-lowcode-segmented-item-selected {
31
+ background: var(--pisell-adjust-price-button-background-color);
32
+ .pisell-lowcode-segmented-item-label {
33
+ color: var(--pisell-adjust-price-text-color) !important;
34
+ }
35
+ }
36
+ }
37
+
9
38
  .pisell-lowcode-adjust-price-amount-wrap {
10
39
  padding: 10px;
11
40
  border-radius: 10px;
12
- background: var(--Gray-300, #D0D5DD);
41
+ background: var(--pisell-adjust-price-container-background-color);
13
42
  }
14
43
  .pisell-low-code-adjust-price-total {
15
- color: var(--Gray-900, #101828);
44
+ color: var(--pisell-adjust-price-main-text-color);
16
45
  font-size: 20px;
17
46
  font-weight: 600;
18
47
  line-height: 30px; /* 150% */
19
48
  }
20
49
  .pisell-low-code-adjust-price-amount-desc {
21
- color: var(--Gray-500, #667085);
50
+ color: var(--pisell-adjust-price-sub-text-color);
22
51
  font-size: 16px;
23
52
  font-style: normal;
24
53
  font-weight: 400;
25
54
  line-height: 24px; /* 150% */
26
55
  }
27
56
  .pisell-low-code-adjust-price-amount-desc-error {
28
- color: var(--Error-600, #D92D20);
57
+ color: var(--Error-600, #d92d20);
29
58
  }
30
- }
59
+ }
@@ -0,0 +1,32 @@
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
+ };
@@ -0,0 +1,60 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/pisellAdjustPrice/status.ts
20
+ var status_exports = {};
21
+ __export(status_exports, {
22
+ defaultConfig: () => defaultConfig
23
+ });
24
+ module.exports = __toCommonJS(status_exports);
25
+ var defaultConfig = {
26
+ dark: {
27
+ backgroundColor: "rgba(0, 0, 0, 0.70)",
28
+ containerBackgroundColor: "rgba(0, 0, 0, 0.40)",
29
+ buttonBackgroundColor: "#ffffff",
30
+ textColor: "#000000",
31
+ resetButtonBackgroundColor: "#ffffff",
32
+ resetButtonTextColor: "#d92d20",
33
+ isDoneButtonFollowTheme: true,
34
+ doneButtonBackgroundColor: "#4ca30d",
35
+ doneButtonTextColor: "#ffffff",
36
+ isShowMainText: true,
37
+ mainTextColor: "#ffffff",
38
+ isShowSubText: true,
39
+ subTextColor: "#d0d5dd"
40
+ },
41
+ light: {
42
+ backgroundColor: "#ffffff",
43
+ containerBackgroundColor: "#d0d5dd",
44
+ buttonBackgroundColor: "#ffffff",
45
+ textColor: "#000000",
46
+ resetButtonBackgroundColor: "#ffffff",
47
+ resetButtonTextColor: "#d92d20",
48
+ isDoneButtonFollowTheme: true,
49
+ doneButtonBackgroundColor: "#4ca30d",
50
+ doneButtonTextColor: "#ffffff",
51
+ isShowMainText: true,
52
+ mainTextColor: "#101828",
53
+ isShowSubText: true,
54
+ subTextColor: "#667085"
55
+ }
56
+ };
57
+ // Annotate the CommonJS export names for ESM import in node:
58
+ 0 && (module.exports = {
59
+ defaultConfig
60
+ });
@@ -0,0 +1,20 @@
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
+ }
@@ -0,0 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+
15
+ // src/components/pisellAdjustPrice/type.ts
16
+ var type_exports = {};
17
+ module.exports = __toCommonJS(type_exports);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps, ButtonProps } from 'antd';
3
2
  import { PisellContextType } from "../../../pisell-config-provider/context";
4
3
  export interface CopyProps extends InputProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputProps } from 'antd';
3
2
  import { PisellContextType } from '../pisell-config-provider/context';
4
3
  declare const PisellInput: {