@pisell/materials 6.11.10 → 6.11.12

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 (229) 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 +9 -9
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +21 -21
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +18 -18
  11. package/es/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +7 -0
  12. package/es/components/PisellProcedure/PisellProcedure.d.ts +22 -0
  13. package/es/components/PisellProcedure/PisellProcedure.stories.d.ts +163 -0
  14. package/es/components/PisellProcedure/components/ProcedureBody.d.ts +41 -0
  15. package/es/components/PisellProcedure/components/ProcedureFooter.d.ts +38 -0
  16. package/es/components/PisellProcedure/components/ProcedureHeader.d.ts +34 -0
  17. package/es/components/PisellProcedure/components/index.d.ts +12 -0
  18. package/es/components/PisellProcedure/index.d.ts +5 -0
  19. package/es/components/PisellSuperTabs/PisellSuperTabs.d.ts +8 -0
  20. package/es/components/PisellSuperTabs/hooks/index.d.ts +1 -0
  21. package/es/components/PisellSuperTabs/hooks/useTabsState.d.ts +7 -0
  22. package/es/components/PisellSuperTabs/index.d.ts +3 -0
  23. package/es/components/PisellSuperTabs/types.d.ts +212 -0
  24. package/es/components/PisellTabbar/constants.d.ts +47 -0
  25. package/es/components/PisellTabbar/hooks/index.d.ts +2 -0
  26. package/es/components/PisellTabbar/hooks/useActiveKey.d.ts +55 -0
  27. package/es/components/PisellTabbar/hooks/useExpand.d.ts +42 -0
  28. package/es/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
  29. package/es/components/PisellTabbar/template/Template1/utils/index.d.ts +35 -0
  30. package/es/components/PisellTabbar/types.d.ts +90 -0
  31. package/es/components/PisellTabbar/utils/index.d.ts +69 -0
  32. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  33. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  34. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  35. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +26 -0
  36. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  37. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  38. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  39. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +21 -0
  40. package/es/components/dataSourceComponents/fields/index.d.ts +15 -15
  41. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
  42. package/es/components/drag-sort-tree/TreeItem/index.d.ts +19 -0
  43. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  44. package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +0 -2
  45. package/es/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.js +5 -5
  46. package/es/components/pisellGridPro/index.d.ts +4 -0
  47. package/es/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
  48. package/es/components/pisellLookup/components/LookupTrigger.js +16 -13
  49. package/es/components/pisellMetricCard/PisellMetricCard.stories.d.ts +17 -0
  50. package/es/components/pisellMetricCard/components/index.d.ts +7 -0
  51. package/es/components/pisellMetricCard/index.d.ts +6 -0
  52. package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +15 -7
  53. package/es/components/pisellRecordBoard/PisellRecordBoard.js +47 -14
  54. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +8 -0
  55. package/es/components/pisellRecordBoard/PisellRecordBoard.stories.js +482 -249
  56. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.js +121 -16
  57. package/es/components/pisellRecordBoard/layouts/GridLayout/Grid.less +38 -0
  58. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +4 -2
  59. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +92 -13
  60. package/es/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +7 -3
  61. package/es/components/pisellRecordBoard/shellFrame/Pagination/index.js +1 -1
  62. package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +9 -3
  63. package/es/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +6 -2
  64. package/es/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +21 -0
  65. package/es/components/pisellRecordBoard/utils/recordBoardColumns.js +112 -15
  66. package/es/components/pisellSingleSelect/PisellSingleSelect.less +15 -0
  67. package/es/components/pisellSort/index.d.ts +4 -0
  68. package/es/components/pisellStatisticList/index.d.ts +22 -0
  69. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.js +2 -2
  70. package/es/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.stories.d.ts +61 -0
  71. package/es/components/pisellTimeRangeDisplay/index.d.ts +3 -0
  72. package/es/components/productCard/cartSkuCard/components/Gift/index.d.ts +5 -0
  73. package/es/components/productCard/cartSkuCard/components/Gift/index.js +60 -0
  74. package/es/components/productCard/cartSkuCard/components/Gift/index.less +84 -0
  75. package/es/components/productCard/cartSkuCard/components/Gift/types.d.ts +29 -0
  76. package/es/components/productCard/cartSkuCard/components/Gift/types.js +1 -0
  77. package/es/components/productCard/cartSkuCard/components/Promotion/index.d.ts +7 -0
  78. package/es/components/productCard/cartSkuCard/components/Promotion/index.js +24 -0
  79. package/es/components/productCard/cartSkuCard/components/Promotion/index.less +16 -0
  80. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +4 -0
  81. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +41 -6
  82. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +66 -1
  83. package/es/components/productCard/cartSkuCard/components/packages/index.js +1 -0
  84. package/es/components/productCard/cartSkuCard/index.d.ts +1 -1
  85. package/es/components/productCard/cartSkuCard/index.js +44 -7
  86. package/es/components/productCard/cartSkuCard/locales.d.ts +178 -0
  87. package/es/components/productCard/cartSkuCard/locales.js +30 -5
  88. package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -1
  89. package/es/components/productCard/components/Header/EditButton/index.js +3 -1
  90. package/es/components/productCard/status.d.ts +32 -0
  91. package/es/components/productCard/status.js +3 -0
  92. package/es/components/productCard/types.d.ts +95 -0
  93. package/es/components/select/index.d.ts +9 -0
  94. package/es/components/select/index.less +18 -2
  95. package/es/components/table/Table/fields/image/index.d.ts +1 -0
  96. package/es/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  97. package/es/components/table/Table/fields/select/Edit/index.d.ts +4 -0
  98. package/es/components/table/Table/utils.d.ts +1 -1
  99. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  100. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  101. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  102. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  103. package/es/components/virtualInput/BaseVirtualInput/index.less +2 -2
  104. package/es/components/virtualInput/index.js +6 -2
  105. package/es/hooks/useThemeTokens.js +20 -0
  106. package/es/index.d.ts +1 -0
  107. package/es/locales/en-US.d.ts +2 -0
  108. package/es/locales/en-US.js +2 -0
  109. package/es/locales/ja.d.ts +2 -0
  110. package/es/locales/ja.js +2 -0
  111. package/es/locales/pt.d.ts +2 -0
  112. package/es/locales/pt.js +2 -0
  113. package/es/locales/zh-CN.d.ts +2 -0
  114. package/es/locales/zh-CN.js +2 -0
  115. package/es/locales/zh-TW.d.ts +2 -0
  116. package/es/locales/zh-TW.js +2 -0
  117. package/lib/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +7 -0
  118. package/lib/components/PisellProcedure/PisellProcedure.d.ts +22 -0
  119. package/lib/components/PisellProcedure/PisellProcedure.stories.d.ts +163 -0
  120. package/lib/components/PisellProcedure/components/ProcedureBody.d.ts +41 -0
  121. package/lib/components/PisellProcedure/components/ProcedureFooter.d.ts +38 -0
  122. package/lib/components/PisellProcedure/components/ProcedureHeader.d.ts +34 -0
  123. package/lib/components/PisellProcedure/components/index.d.ts +12 -0
  124. package/lib/components/PisellProcedure/index.d.ts +5 -0
  125. package/lib/components/PisellSuperTabs/PisellSuperTabs.d.ts +8 -0
  126. package/lib/components/PisellSuperTabs/hooks/index.d.ts +1 -0
  127. package/lib/components/PisellSuperTabs/hooks/useTabsState.d.ts +7 -0
  128. package/lib/components/PisellSuperTabs/index.d.ts +3 -0
  129. package/lib/components/PisellSuperTabs/types.d.ts +212 -0
  130. package/lib/components/PisellTabbar/constants.d.ts +47 -0
  131. package/lib/components/PisellTabbar/hooks/index.d.ts +2 -0
  132. package/lib/components/PisellTabbar/hooks/useActiveKey.d.ts +55 -0
  133. package/lib/components/PisellTabbar/hooks/useExpand.d.ts +42 -0
  134. package/lib/components/PisellTabbar/template/Template1/constants.d.ts +10 -0
  135. package/lib/components/PisellTabbar/template/Template1/utils/index.d.ts +35 -0
  136. package/lib/components/PisellTabbar/types.d.ts +90 -0
  137. package/lib/components/PisellTabbar/utils/index.d.ts +69 -0
  138. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  139. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  140. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  141. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +26 -0
  142. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  143. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  144. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  145. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +21 -0
  146. package/lib/components/dataSourceComponents/fields/index.d.ts +15 -15
  147. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
  148. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +19 -0
  149. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  150. package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +0 -2
  151. package/lib/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.js +3 -3
  152. package/lib/components/pisellGridPro/index.d.ts +4 -0
  153. package/lib/components/pisellLookup/components/LookupTrigger.d.ts +3 -0
  154. package/lib/components/pisellLookup/components/LookupTrigger.js +8 -8
  155. package/lib/components/pisellMetricCard/PisellMetricCard.stories.d.ts +17 -0
  156. package/lib/components/pisellMetricCard/components/index.d.ts +7 -0
  157. package/lib/components/pisellMetricCard/index.d.ts +6 -0
  158. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +15 -7
  159. package/lib/components/pisellRecordBoard/PisellRecordBoard.js +39 -9
  160. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.d.ts +8 -0
  161. package/lib/components/pisellRecordBoard/PisellRecordBoard.stories.js +159 -0
  162. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.js +94 -9
  163. package/lib/components/pisellRecordBoard/layouts/GridLayout/Grid.less +38 -0
  164. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.d.ts +4 -2
  165. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/ColumnSettingPopover.js +88 -3
  166. package/lib/components/pisellRecordBoard/shellFrame/ColumnSetting/index.js +6 -2
  167. package/lib/components/pisellRecordBoard/shellFrame/Pagination/index.js +1 -1
  168. package/lib/components/pisellRecordBoard/shellFrame/ToolBar/index.js +9 -1
  169. package/lib/components/pisellRecordBoard/shellFrame/ToolBarReset/index.js +3 -2
  170. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.d.ts +21 -0
  171. package/lib/components/pisellRecordBoard/utils/recordBoardColumns.js +60 -0
  172. package/lib/components/pisellSingleSelect/PisellSingleSelect.less +15 -0
  173. package/lib/components/pisellSort/index.d.ts +4 -0
  174. package/lib/components/pisellStatisticList/index.d.ts +22 -0
  175. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.js +1 -1
  176. package/lib/components/pisellTimeRangeDisplay/PisellTimeRangeDisplay.stories.d.ts +61 -0
  177. package/lib/components/pisellTimeRangeDisplay/index.d.ts +3 -0
  178. package/lib/components/productCard/cartSkuCard/components/Gift/index.d.ts +5 -0
  179. package/lib/components/productCard/cartSkuCard/components/Gift/index.js +62 -0
  180. package/lib/components/productCard/cartSkuCard/components/Gift/index.less +84 -0
  181. package/lib/components/productCard/cartSkuCard/components/Gift/types.d.ts +29 -0
  182. package/lib/components/productCard/cartSkuCard/components/Gift/types.js +17 -0
  183. package/lib/components/productCard/cartSkuCard/components/Promotion/index.d.ts +7 -0
  184. package/lib/components/productCard/cartSkuCard/components/Promotion/index.js +63 -0
  185. package/lib/components/productCard/cartSkuCard/components/Promotion/index.less +16 -0
  186. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +4 -0
  187. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +20 -3
  188. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +66 -1
  189. package/lib/components/productCard/cartSkuCard/components/packages/index.js +1 -1
  190. package/lib/components/productCard/cartSkuCard/index.d.ts +1 -1
  191. package/lib/components/productCard/cartSkuCard/index.js +42 -6
  192. package/lib/components/productCard/cartSkuCard/locales.d.ts +178 -0
  193. package/lib/components/productCard/cartSkuCard/locales.js +20 -5
  194. package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -1
  195. package/lib/components/productCard/components/Header/EditButton/index.js +2 -1
  196. package/lib/components/productCard/status.d.ts +32 -0
  197. package/lib/components/productCard/status.js +3 -0
  198. package/lib/components/productCard/types.d.ts +95 -0
  199. package/lib/components/select/index.d.ts +9 -0
  200. package/lib/components/select/index.less +18 -2
  201. package/lib/components/table/Table/fields/image/index.d.ts +1 -0
  202. package/lib/components/table/Table/fields/pSwitch/index.d.ts +1 -0
  203. package/lib/components/table/Table/fields/select/Edit/index.d.ts +4 -0
  204. package/lib/components/table/Table/utils.d.ts +1 -1
  205. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  206. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  207. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  208. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  209. package/lib/components/virtualInput/BaseVirtualInput/index.less +2 -2
  210. package/lib/components/virtualInput/index.js +7 -1
  211. package/lib/hooks/useThemeTokens.js +40 -0
  212. package/lib/index.d.ts +1 -0
  213. package/lib/locales/en-US.d.ts +2 -0
  214. package/lib/locales/en-US.js +2 -0
  215. package/lib/locales/ja.d.ts +2 -0
  216. package/lib/locales/ja.js +2 -0
  217. package/lib/locales/pt.d.ts +2 -0
  218. package/lib/locales/pt.js +2 -0
  219. package/lib/locales/zh-CN.d.ts +2 -0
  220. package/lib/locales/zh-CN.js +2 -0
  221. package/lib/locales/zh-TW.d.ts +2 -0
  222. package/lib/locales/zh-TW.js +2 -0
  223. package/package.json +3 -3
  224. package/es/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.d.ts +0 -7
  225. package/es/components/pisellDateTimeDisplay/formats/index.d.ts +0 -1
  226. package/es/components/virtualInput/index.d.ts +0 -24
  227. package/lib/components/pisellDateTimeDisplay/formats/dateTimeDisplayFormats.d.ts +0 -7
  228. package/lib/components/pisellDateTimeDisplay/formats/index.d.ts +0 -1
  229. package/lib/components/virtualInput/index.d.ts +0 -24
@@ -5,16 +5,32 @@
5
5
  &-select-dropdown-render-divider {
6
6
  margin: 8px 0;
7
7
  }
8
+
8
9
  &-select-dropdown-render-options-wrap {
9
10
  padding: 0 5px 5px;
10
11
  }
12
+
13
+ &-select-clear {
14
+ color: #667085;
15
+ display: inline-flex;
16
+ align-items: center;
17
+ justify-content: center;
18
+ min-width: 36px;
19
+ min-height: 36px;
20
+ margin: -18px -6px;
21
+ padding: 8px 6px;
22
+
23
+ &:hover {
24
+ color: #344054;
25
+ }
26
+ }
11
27
  }
12
28
 
13
29
  // 添加选项间距
14
30
  .pisell-base-select-dropdown {
15
31
  .pisell-lowcode-select-item {
16
32
  margin-bottom: 4px;
17
-
33
+
18
34
  &:last-child {
19
35
  margin-bottom: 0;
20
36
  }
@@ -27,4 +43,4 @@
27
43
 
28
44
  box-shadow: none !important;
29
45
  border-color: transparent !important;
30
- }
46
+ }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { EditPropsType } from "../../types";
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<EditPropsType, "ref"> & React.RefAttributes<any>>;
4
+ export default _default;
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("filters" | "view_mode" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "gallery_setting")[];
158
+ }) => ("view_mode" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "gallery_setting" | "filters")[];
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 {};
@@ -0,0 +1,32 @@
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
+ };
@@ -0,0 +1,21 @@
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) => React.JSX.Element>;
21
+ export default _default;
@@ -0,0 +1,32 @@
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
+ };
@@ -0,0 +1,13 @@
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) => React.JSX.Element;
13
+ export default VirtualKeyInput;
@@ -76,7 +76,7 @@
76
76
  .pisell-base-virtual-input-caret {
77
77
  width: 2px;
78
78
  height: var(--virtual-input-caret-height);
79
- background-color: var(--theme-color, #7f56d9);
79
+ background-color: var(--color-primary, #5d3f9f);
80
80
  border-radius: 1px;
81
81
  animation: pisell-base-virtual-input-caret-blink 1s infinite;
82
82
  }
@@ -107,7 +107,7 @@
107
107
  right: -1px;
108
108
  transform: translateY(-50%);
109
109
  height: 1.2em;
110
- background-color: var(--theme-color, #7f56d9);
110
+ background-color: var(--color-primary, #5d3f9f);
111
111
  pointer-events: none;
112
112
  z-index: -1;
113
113
  }
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["topContent", "bottomContent", "wrapperStyle", "wrapperClassName", "allowClear", "onClear", "value", "clearButtonStyle"];
2
+ var _excluded = ["topContent", "bottomContent", "wrapperStyle", "wrapperClassName", "allowClear", "onClear", "value", "clearButtonStyle", "theme"];
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -12,6 +12,7 @@ import React, { forwardRef, useImperativeHandle, useRef } from 'react';
12
12
  import classNames from 'classnames';
13
13
  import Icon from "../icon";
14
14
  import BaseVirtualInput from "./BaseVirtualInput";
15
+ import useThemeTokens from "../../hooks/useThemeTokens";
15
16
  import "./index.less";
16
17
  var VirtualInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
17
18
  var topContent = _ref.topContent,
@@ -24,8 +25,11 @@ var VirtualInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
24
25
  value = _ref.value,
25
26
  _ref$clearButtonStyle = _ref.clearButtonStyle,
26
27
  clearButtonStyle = _ref$clearButtonStyle === void 0 ? {} : _ref$clearButtonStyle,
28
+ theme = _ref.theme,
27
29
  virtualInputProps = _objectWithoutProperties(_ref, _excluded);
28
30
  var baseInputRef = useRef(null);
31
+ var _useThemeTokens = useThemeTokens(theme),
32
+ colorPrimary = _useThemeTokens.colorPrimary;
29
33
 
30
34
  // 处理清除操作
31
35
  var handleClear = function handleClear() {
@@ -48,7 +52,7 @@ var VirtualInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
48
52
  });
49
53
  return /*#__PURE__*/React.createElement("div", {
50
54
  className: classNames('pisell-virtual-input-wrapper', wrapperClassName),
51
- style: wrapperStyle
55
+ style: _objectSpread(_objectSpread({}, wrapperStyle || {}), {}, _defineProperty({}, '--color-primary', colorPrimary))
52
56
  }, topContent, /*#__PURE__*/React.createElement("div", {
53
57
  className: "pisell-virtual-input-container"
54
58
  }, allowClear && /*#__PURE__*/React.createElement("div", {
@@ -0,0 +1,20 @@
1
+ import { theme } from 'antd';
2
+ var themeTokenCache = new Map();
3
+ var useThemeTokens = function useThemeTokens(themeInput) {
4
+ var _themeInput$token;
5
+ var useToken = theme.useToken,
6
+ getDesignToken = theme.getDesignToken;
7
+ var _useToken = useToken(),
8
+ antdToken = _useToken.token;
9
+ var overrideColorPrimary = (themeInput === null || themeInput === void 0 || (_themeInput$token = themeInput.token) === null || _themeInput$token === void 0 ? void 0 : _themeInput$token.colorPrimary) || antdToken.colorPrimary;
10
+ var cached = themeTokenCache.get(overrideColorPrimary);
11
+ if (cached) return cached;
12
+ var computed = getDesignToken({
13
+ token: {
14
+ colorPrimary: overrideColorPrimary
15
+ }
16
+ });
17
+ themeTokenCache.set(overrideColorPrimary, computed);
18
+ return computed;
19
+ };
20
+ export default useThemeTokens;
package/es/index.d.ts CHANGED
@@ -199,6 +199,7 @@ export { default as PisellSort } from './components/pisellSort';
199
199
  export type { PisellSortProps } from './components/pisellSort/type';
200
200
  export { default as PisellStatisticList } from './components/pisellStatisticList';
201
201
  export { default as PisellTags } from './components/pisellTags';
202
+ export type { PisellTagsProps } from './components/pisellTags';
202
203
  export { default as PisellText } from './components/pisellText';
203
204
  export { default as PisellToast, useToast } from './components/pisellToast';
204
205
  export { default as PisellTooltip } from './components/pisellTooltip';
@@ -34,6 +34,8 @@ declare const _default: {
34
34
  'table-action-column-title': string;
35
35
  'table-column-group-records': string;
36
36
  'table-column-group-lock-tip': string;
37
+ 'record-board-uniform-summary-empty': string;
38
+ 'record-board-uniform-summary-same': string;
37
39
  'table-column-drag-sort-disabled-tip': string;
38
40
  'table-action-filter-no-filter': string;
39
41
  'table-action-range-picker-placeholder-start': string;
@@ -40,6 +40,8 @@ export default {
40
40
  'table-action-column-title': 'Header settings',
41
41
  'table-column-group-records': 'records',
42
42
  'table-column-group-lock-tip': 'Fixed column immutable order',
43
+ 'record-board-uniform-summary-empty': '-',
44
+ 'record-board-uniform-summary-same': 'Same',
43
45
  'table-column-drag-sort-disabled-tip': 'Automatic sorting is enabled, manual dragging is disabled.',
44
46
  'table-action-filter-no-filter': 'No filter options available.',
45
47
  'table-action-range-picker-placeholder-start': 'Start date',
@@ -31,6 +31,8 @@ declare const _default: {
31
31
  'table-action-column-title': string;
32
32
  'table-column-group-records': string;
33
33
  'table-column-group-lock-tip': string;
34
+ 'record-board-uniform-summary-empty': string;
35
+ 'record-board-uniform-summary-same': string;
34
36
  'table-column-drag-sort-disabled-tip': string;
35
37
  'table-action-filter-no-filter': string;
36
38
  'table-action-range-picker-presets-today': string;
package/es/locales/ja.js CHANGED
@@ -37,6 +37,8 @@ export default {
37
37
  'table-action-column-title': 'ヘッダー設定',
38
38
  'table-column-group-records': '件のレコード',
39
39
  'table-column-group-lock-tip': '固定列は順序を変更できません',
40
+ 'record-board-uniform-summary-empty': '-',
41
+ 'record-board-uniform-summary-same': '同一',
40
42
  'table-column-drag-sort-disabled-tip': '自動並び替えが有効になっているため、手動ドラッグは無効です。',
41
43
  'table-action-filter-no-filter': '利用可能なフィルターオプションがありません。',
42
44
  'table-action-range-picker-presets-today': '今日',
@@ -31,6 +31,8 @@ declare const _default: {
31
31
  'table-action-column-title': string;
32
32
  'table-column-group-records': string;
33
33
  'table-column-group-lock-tip': string;
34
+ 'record-board-uniform-summary-empty': string;
35
+ 'record-board-uniform-summary-same': string;
34
36
  'table-column-drag-sort-disabled-tip': string;
35
37
  'table-action-filter-no-filter': string;
36
38
  'table-action-range-picker-presets-today': string;
package/es/locales/pt.js CHANGED
@@ -37,6 +37,8 @@ export default {
37
37
  'table-action-column-title': 'Configurações do cabeçalho',
38
38
  'table-column-group-records': 'registros',
39
39
  'table-column-group-lock-tip': 'Ordem da coluna fixa imutável',
40
+ 'record-board-uniform-summary-empty': '-',
41
+ 'record-board-uniform-summary-same': 'Mesmo',
40
42
  'table-column-drag-sort-disabled-tip': 'A ordenação automática está ativada, o arrasto manual está desativado.',
41
43
  'table-action-filter-no-filter': 'Nenhuma opção de filtro disponível.',
42
44
  'table-action-range-picker-presets-today': 'Hoje',
@@ -34,6 +34,8 @@ declare const _default: {
34
34
  'table-action-column-title': string;
35
35
  'table-column-group-records': string;
36
36
  'table-column-group-lock-tip': string;
37
+ 'record-board-uniform-summary-empty': string;
38
+ 'record-board-uniform-summary-same': string;
37
39
  'table-column-drag-sort-disabled-tip': string;
38
40
  'table-action-filter-no-filter': string;
39
41
  'table-action-range-picker-placeholder-start': string;
@@ -40,6 +40,8 @@ export default {
40
40
  'table-action-column-title': '表头设置',
41
41
  'table-column-group-records': '条记录',
42
42
  'table-column-group-lock-tip': '固定列不可移动顺序',
43
+ 'record-board-uniform-summary-empty': '-',
44
+ 'record-board-uniform-summary-same': '重复数据',
43
45
  'table-column-drag-sort-disabled-tip': '已开启自动排序,无法手动拖拽',
44
46
  'table-action-filter-no-filter': '没有可用的筛选器。',
45
47
  'table-action-range-picker-placeholder-start': '开始日期',
@@ -34,6 +34,8 @@ declare const _default: {
34
34
  'table-action-column-title': string;
35
35
  'table-column-group-records': string;
36
36
  'table-column-group-lock-tip': string;
37
+ 'record-board-uniform-summary-empty': string;
38
+ 'record-board-uniform-summary-same': string;
37
39
  'table-column-drag-sort-disabled-tip': string;
38
40
  'table-action-filter-no-filter': string;
39
41
  'table-action-range-picker-placeholder-start': string;
@@ -40,6 +40,8 @@ export default {
40
40
  'table-action-column-title': '表頭設置',
41
41
  'table-column-group-records': '條記錄',
42
42
  'table-column-group-lock-tip': '固定列不可移動順序',
43
+ 'record-board-uniform-summary-empty': '-',
44
+ 'record-board-uniform-summary-same': '重複數據',
43
45
  'table-column-drag-sort-disabled-tip': '已開啟自動排序,無法手動拖曳',
44
46
  'table-action-filter-no-filter': '沒有可用的篩選器。',
45
47
  'table-action-range-picker-placeholder-start': '開始日期',
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { PanelWrapperProps } from '../types';
3
+ /**
4
+ * PanelWrapper 组件
5
+ * 次级面板包装器,负责展开/收起动画和样式处理
6
+ */
7
+ export declare const PanelWrapper: React.FC<PanelWrapperProps>;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import type { PisellProcedureProps, PisellProcedureRef } from './types';
3
+ import './PisellProcedure.less';
4
+ /**
5
+ * PisellProcedure 流程容器组件
6
+ *
7
+ * @description 用于管理多步骤流程的复合容器组件,基于 PisellLayout 实现三段式布局
8
+ * @author Pisell Team
9
+ * @version 1.0.0
10
+ *
11
+ * @example
12
+ * // 使用 ref 调用组件方法
13
+ * const procedureRef = useRef<PisellProcedureRef>(null);
14
+ *
15
+ * // 跳转到下一步
16
+ * procedureRef.current?.goNext();
17
+ *
18
+ * // 获取当前步骤
19
+ * const currentStep = procedureRef.current?.getCurrentStep();
20
+ */
21
+ declare const PisellProcedure: React.ForwardRefExoticComponent<PisellProcedureProps & React.RefAttributes<PisellProcedureRef>>;
22
+ export default PisellProcedure;
@@ -0,0 +1,163 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import PisellProcedure from './PisellProcedure';
3
+ /**
4
+ * PisellProcedure 流程容器组件
5
+ *
6
+ * 用于管理多步骤流程的复合容器组件,基于 PisellLayout 实现三段式布局
7
+ * 包含头部区域(步骤条)、主体区域(内容区+信息区)、底部区域(操作按钮)
8
+ */
9
+ declare const meta: Meta<typeof PisellProcedure>;
10
+ export default meta;
11
+ declare type Story = StoryObj<typeof PisellProcedure>;
12
+ /**
13
+ * 基础用法
14
+ * @description 默认流程容器,包含头部、主体、底部三个区域
15
+ */
16
+ export declare const Default: Story;
17
+ /**
18
+ * 页面模式
19
+ * @description 默认模式,支持响应式和移动端适配
20
+ */
21
+ export declare const PageMode: Story;
22
+ /**
23
+ * 弹窗模式
24
+ * @description 用于弹窗场景,不应用移动端适配
25
+ */
26
+ export declare const ModalMode: Story;
27
+ /**
28
+ * 步骤控制
29
+ * @description 使用 onStepsChange 监听步骤变化
30
+ */
31
+ export declare const StepControl: Story;
32
+ /**
33
+ * 步骤拦截
34
+ * @description 通过 onNext/onPrev 返回 false 阻止步骤切换
35
+ */
36
+ export declare const StepIntercept: Story;
37
+ /**
38
+ * 无侧边栏
39
+ */
40
+ export declare const WithoutSidebar: Story;
41
+ /**
42
+ * 无头部
43
+ */
44
+ export declare const WithoutHeader: Story;
45
+ /**
46
+ * 无底部
47
+ */
48
+ export declare const WithoutFooter: Story;
49
+ /**
50
+ * 最小配置
51
+ * @description 仅显示主体内容
52
+ */
53
+ export declare const MinimalConfig: Story;
54
+ /**
55
+ * 头部插槽顺序 - 默认
56
+ * @description left 在左,right 在右
57
+ */
58
+ export declare const HeaderSlotDefault: Story;
59
+ /**
60
+ * 头部插槽顺序 - 反转
61
+ * @description left 在右,right 在左
62
+ */
63
+ export declare const HeaderSlotReverse: Story;
64
+ /**
65
+ * 隐藏步骤条
66
+ * @description 仅显示头部插槽,不显示步骤条
67
+ */
68
+ export declare const HideSteps: Story;
69
+ /**
70
+ * 第一步显示返回按钮
71
+ * @description 通过 showBackOnFirstStep 控制
72
+ */
73
+ export declare const ShowBackOnFirstStep: Story;
74
+ /**
75
+ * 返回确认弹窗
76
+ * @description 点击返回时弹出确认弹窗
77
+ */
78
+ export declare const BackConfirmModal: Story;
79
+ /**
80
+ * 关闭确认弹窗
81
+ * @description 点击关闭时弹出确认弹窗
82
+ */
83
+ export declare const CloseConfirmModal: Story;
84
+ /**
85
+ * 主体布局 - 比例布局
86
+ * @description 使用比例分配内容区和侧边栏宽度
87
+ */
88
+ export declare const BodyRatioLayout: Story;
89
+ /**
90
+ * 主体布局 - 固定宽度
91
+ * @description 侧边栏使用固定宽度
92
+ */
93
+ export declare const BodyFixedLayout: Story;
94
+ /**
95
+ * 主体布局 - 垂直布局
96
+ * @description 内容区和侧边栏上下排列
97
+ */
98
+ export declare const BodyVerticalLayout: Story;
99
+ /**
100
+ * 主体布局 - 内容顺序反转
101
+ * @description 侧边栏在左/上,内容区在右/下
102
+ */
103
+ export declare const BodyContentOrderReverse: Story;
104
+ /**
105
+ * 底部位置 - 悬浮在侧边栏
106
+ * @description 默认位置,底部悬浮在侧边栏区域
107
+ */
108
+ export declare const FooterFloatSidebar: Story;
109
+ /**
110
+ * 底部位置 - 固定在整体底部
111
+ */
112
+ export declare const FooterFixedBottom: Story;
113
+ /**
114
+ * 底部位置 - 悬浮在整体区域
115
+ * @description 移动端默认使用此模式
116
+ */
117
+ export declare const FooterFloatAll: Story;
118
+ /**
119
+ * 底部位置 - 悬浮在内容区
120
+ */
121
+ export declare const FooterFloatContent: Story;
122
+ /**
123
+ * 底部位置 - 内嵌在内容区底部
124
+ */
125
+ export declare const FooterFixedContentBottom: Story;
126
+ /**
127
+ * 底部位置 - 内嵌在侧边栏底部
128
+ */
129
+ export declare const FooterFixedSidebarBottom: Story;
130
+ /**
131
+ * 移动端总结按钮
132
+ * @description 移动端显示总结按钮,点击可查看侧边栏内容
133
+ */
134
+ export declare const MobileSummaryButton: Story;
135
+ /**
136
+ * 溢出收纳功能
137
+ * @description 当宽度不足时,按钮会被收纳到 More 菜单中
138
+ */
139
+ export declare const OverflowActions: Story;
140
+ /**
141
+ * 禁用溢出收纳
142
+ * @description 不启用溢出收纳,按钮会换行显示
143
+ */
144
+ export declare const DisableOverflow: Story;
145
+ /**
146
+ * 完整示例 - 购物流程
147
+ * @description 模拟真实的购物流程
148
+ */
149
+ export declare const ShoppingFlow: Story;
150
+ /**
151
+ * 完整示例 - 注册流程
152
+ * @description 模拟用户注册流程
153
+ */
154
+ export declare const RegistrationFlow: Story;
155
+ /**
156
+ * 完整示例 - 表单向导
157
+ * @description 多步表单向导
158
+ */
159
+ export declare const FormWizard: Story;
160
+ /**
161
+ * 交互测试 - 组件渲染
162
+ */
163
+ export declare const InteractionTest: Story;
@@ -0,0 +1,41 @@
1
+ import React from 'react';
2
+ import type { ProcedureBodyProps as BodyProps, ProcedureFooterProps, FooterPositionMode, ProcedureMode } from '../types';
3
+ /**
4
+ * ProcedureBody 子组件 Props
5
+ */
6
+ export interface ProcedureBodyProps {
7
+ /** 主体配置 */
8
+ bodyProps?: BodyProps;
9
+ /** 底部配置 */
10
+ footerProps?: ProcedureFooterProps;
11
+ /** 底部位置模式 */
12
+ footerPosition: FooterPositionMode;
13
+ /** 是否显示底部 */
14
+ showFooter?: boolean;
15
+ /** 是否显示信息区 */
16
+ showSidebar?: boolean;
17
+ /** 自定义类名 */
18
+ className?: string;
19
+ /** 移动端弹窗是否打开 */
20
+ summaryModalOpen?: boolean;
21
+ /** 打开移动端弹窗 */
22
+ onOpenSummaryModal?: () => void;
23
+ /** 关闭移动端弹窗 */
24
+ onCloseSummaryModal?: () => void;
25
+ /** 上一步回调 */
26
+ goPrev?: () => void;
27
+ /** 下一步回调 */
28
+ goNext?: () => void;
29
+ /** 组件使用模式 */
30
+ mode?: ProcedureMode;
31
+ containerSize?: any;
32
+ responsiveClsComputed?: string;
33
+ }
34
+ /**
35
+ * ProcedureBody 主体区域组件
36
+ *
37
+ * @description 包含内容区和信息区的布局容器,支持固定宽度和比例两种布局模式
38
+ * @author Pisell Team
39
+ */
40
+ declare const ProcedureBody: React.FC<ProcedureBodyProps>;
41
+ export default ProcedureBody;
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ import type { ProcedureFooterProps as FooterProps, FooterPositionMode, ProcedureMode } from '../types';
3
+ import type { ReactNode } from 'react';
4
+ /**
5
+ * ProcedureFooter 子组件 Props
6
+ */
7
+ export interface ProcedureFooterProps {
8
+ /** 底部配置 */
9
+ footerProps?: FooterProps;
10
+ /** 底部位置模式 */
11
+ position: FooterPositionMode;
12
+ /** 自定义类名 */
13
+ className?: string;
14
+ /** 是否作为全局底部(使用 PisellFooter 包裹) */
15
+ isGlobal?: boolean;
16
+ /** 信息区内容(用于移动端弹窗展示) */
17
+ sidebarContent?: ReactNode;
18
+ /** 移动端弹窗是否打开(受控) */
19
+ summaryModalOpen?: boolean;
20
+ /** 打开移动端弹窗 */
21
+ onOpenSummaryModal?: () => void;
22
+ /** 关闭移动端弹窗 */
23
+ onCloseSummaryModal?: () => void;
24
+ /** 上一步回调 */
25
+ goPrev?: () => void;
26
+ /** 下一步回调 */
27
+ goNext?: () => void;
28
+ /** 组件使用模式 */
29
+ mode?: ProcedureMode;
30
+ }
31
+ /**
32
+ * ProcedureFooter 底部操作区组件
33
+ *
34
+ * @description 包含左侧自定义内容和右侧操作按钮(支持溢出收纳功能)
35
+ * @author Pisell Team
36
+ */
37
+ declare const ProcedureFooter: React.FC<ProcedureFooterProps>;
38
+ export default ProcedureFooter;