@pisell/materials 6.1.6 → 6.1.8

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 (86) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +6 -6
  7. package/build/lowcode/view.js +20 -20
  8. package/es/components/appVersionControl/index.d.ts +0 -1
  9. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  10. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  11. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  12. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  13. package/es/components/dataSourceComponents/fields/index.d.ts +3 -3
  14. package/es/components/drag-sort-tree/index.d.ts +0 -1
  15. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
  16. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  17. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
  18. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
  19. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  20. package/es/components/productCard/cartSkuCard/index.d.ts +0 -1
  21. package/es/components/productCard/components/Action/index.d.ts +0 -1
  22. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
  23. package/es/components/productCard/components/Header/index.d.ts +0 -1
  24. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -1
  25. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
  26. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
  27. package/es/components/productCard/components/Time/index.d.ts +0 -1
  28. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  29. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  30. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  31. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  32. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -1
  33. package/es/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  34. package/es/components/table/Table/AddFieldModal/index.d.ts +1 -0
  35. package/es/components/table/Table/AddFieldModal/index.js +13 -13
  36. package/es/components/table/Table/AddFieldModal/index.less +11 -11
  37. package/es/components/table/Table/fields/index.d.ts +2 -2
  38. package/es/components/table/Table/utils.d.ts +1 -1
  39. package/lib/components/appVersionControl/index.d.ts +0 -1
  40. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  41. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  42. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  43. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  44. package/lib/components/dataSourceComponents/fields/index.d.ts +3 -3
  45. package/lib/components/drag-sort-tree/index.d.ts +0 -1
  46. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -1
  47. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -1
  48. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -1
  49. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -1
  50. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -1
  51. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -1
  52. package/lib/components/productCard/components/Action/index.d.ts +0 -1
  53. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -1
  54. package/lib/components/productCard/components/Header/index.d.ts +0 -1
  55. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -1
  56. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +0 -1
  57. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -1
  58. package/lib/components/productCard/components/Time/index.d.ts +0 -1
  59. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +0 -1
  60. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +0 -1
  61. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +0 -1
  62. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +0 -1
  63. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -1
  64. package/lib/components/table/Actions/component/ViewMode/index.d.ts +0 -1
  65. package/lib/components/table/Table/AddFieldModal/index.d.ts +1 -0
  66. package/lib/components/table/Table/AddFieldModal/index.js +9 -9
  67. package/lib/components/table/Table/AddFieldModal/index.less +11 -11
  68. package/lib/components/table/Table/fields/index.d.ts +2 -2
  69. package/lib/components/table/Table/utils.d.ts +1 -1
  70. package/package.json +1 -1
  71. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
  72. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  73. package/es/components/pisellAdjustPrice/type.d.ts +0 -20
  74. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
  75. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  76. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  77. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  78. package/es/components/virtual-keyboard/Number/types.d.ts +0 -25
  79. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -19
  80. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  81. package/lib/components/pisellAdjustPrice/type.d.ts +0 -20
  82. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +0 -45
  83. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  84. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  85. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  86. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -25
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GridViewType, ModeType } from "../../../types";
3
2
  declare type ViewModeProps = {
4
3
  view: GridViewType;
@@ -1,3 +1,4 @@
1
1
  import React from "react";
2
+ import "./index.less";
2
3
  declare const AddFieldModal: React.FC;
3
4
  export default AddFieldModal;
@@ -36,7 +36,7 @@ var import_iconfont = __toESM(require("../../../iconfont"));
36
36
  var import_antd = require("antd");
37
37
  var import_react = __toESM(require("react"));
38
38
  var import_SelectField = __toESM(require("../SelectField"));
39
- var import_index = __toESM(require("./index.less"));
39
+ var import_index = require("./index.less");
40
40
  var import_hooks = require("../../../../hooks");
41
41
  var import_model = require("../../model");
42
42
  var AddFieldModal = () => {
@@ -85,7 +85,7 @@ var AddFieldModal = () => {
85
85
  },
86
86
  onFinish: addField
87
87
  },
88
- /* @__PURE__ */ import_react.default.createElement("div", { className: import_index.default["add-field-modal"] }, /* @__PURE__ */ import_react.default.createElement(
88
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-add-field-modal" }, /* @__PURE__ */ import_react.default.createElement(
89
89
  import_antd.Form.Item,
90
90
  {
91
91
  label: "Field Name",
@@ -101,13 +101,13 @@ var AddFieldModal = () => {
101
101
  import_antd.Input,
102
102
  {
103
103
  placeholder: "Field name (optional)",
104
- className: import_index.default["header-search"]
104
+ className: "pisell-lowcode-header-search"
105
105
  }
106
106
  )
107
- ), /* @__PURE__ */ import_react.default.createElement(import_SelectField.default, null), /* @__PURE__ */ import_react.default.createElement("div", { className: import_index.default["modal-footer"] }, /* @__PURE__ */ import_react.default.createElement("div", { className: import_index.default["add-describe"] }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pi-Plus", className: import_index.default["icon"] }), /* @__PURE__ */ import_react.default.createElement("span", { className: import_index.default["label"] }, "Add description")), /* @__PURE__ */ import_react.default.createElement("div", { className: import_index.default["btns"] }, /* @__PURE__ */ import_react.default.createElement(
107
+ ), /* @__PURE__ */ import_react.default.createElement(import_SelectField.default, null), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-modal-footer" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-add-describe" }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pi-Plus", className: "pisell-lowcode-icon" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode-label" }, "Add description")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-btns" }, /* @__PURE__ */ import_react.default.createElement(
108
108
  "div",
109
109
  {
110
- className: import_index.default["cancel"],
110
+ className: "pisell-lowcode-cancel",
111
111
  onClick: () => {
112
112
  onCloseModal();
113
113
  }
@@ -116,7 +116,7 @@ var AddFieldModal = () => {
116
116
  ), /* @__PURE__ */ import_react.default.createElement(
117
117
  "div",
118
118
  {
119
- className: import_index.default["submit"],
119
+ className: "pisell-lowcode-submit",
120
120
  onClick: () => {
121
121
  form.submit();
122
122
  }
@@ -136,7 +136,7 @@ var AddFieldModal = () => {
136
136
  placement: "bottomRight",
137
137
  overlayInnerStyle: { padding: 0 },
138
138
  trigger: "click",
139
- overlayClassName: import_index.default["popover-wrap"],
139
+ overlayClassName: "pisell-lowcode-popover-wrap",
140
140
  onOpenChange: (e) => {
141
141
  if (!e) {
142
142
  onCloseModal();
@@ -146,11 +146,11 @@ var AddFieldModal = () => {
146
146
  },
147
147
  open: openModal
148
148
  },
149
- /* @__PURE__ */ import_react.default.createElement("div", { className: import_index.default["add-field-btn"] }, /* @__PURE__ */ import_react.default.createElement(
149
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-add-field-btn" }, /* @__PURE__ */ import_react.default.createElement(
150
150
  import_iconfont.default,
151
151
  {
152
152
  type: "pi-a-Property3Add",
153
- className: import_index.default["add-field-icon"]
153
+ className: "pisell-lowcode-add-field-icon"
154
154
  }
155
155
  ))
156
156
  );
@@ -1,4 +1,4 @@
1
- .add-field-btn {
1
+ .pisell-lowcode-add-field-btn {
2
2
  position: absolute;
3
3
  right: 0;
4
4
  top: 0;
@@ -11,10 +11,10 @@
11
11
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06);
12
12
  cursor: pointer;
13
13
 
14
- .add-field-icon {}
14
+ .pisell-lowcode-add-field-icon {}
15
15
  }
16
16
 
17
- .popover-wrap {
17
+ .pisell-lowcode-popover-wrap {
18
18
  :global {
19
19
  .pisell-lowcode-popover-arrow {
20
20
  display: none;
@@ -22,11 +22,11 @@
22
22
  }
23
23
  }
24
24
 
25
- .add-field-modal {
25
+ .pisell-lowcode-add-field-modal {
26
26
  width: 360px;
27
27
  padding: 16px 16px 0 16px;
28
28
 
29
- .modal-footer {
29
+ .pisell-lowcode-modal-footer {
30
30
  display: flex;
31
31
  align-items: center;
32
32
  justify-content: space-between;
@@ -35,13 +35,13 @@
35
35
  padding: 0 16px;
36
36
  border-top: 1px solid #F1F1F1;
37
37
 
38
- .add-describe {
38
+ .pisell-lowcode-add-describe {
39
39
  cursor: pointer;
40
40
  display: flex;
41
41
  align-items: center;
42
42
  justify-content: center;
43
43
 
44
- .icon {
44
+ .pisell-lowcode-icon {
45
45
  width: 24px;
46
46
  height: 24px;
47
47
  display: flex;
@@ -51,27 +51,27 @@
51
51
  color: #1B1B1B;
52
52
  }
53
53
 
54
- .label {
54
+ .pisell-lowcode-label {
55
55
  margin-left: 2px;
56
56
  font-size: 14px;
57
57
  color: #777777;
58
58
  }
59
59
  }
60
60
 
61
- .btns {
61
+ .pisell-lowcode-btns {
62
62
  display: flex;
63
63
  align-items: center;
64
64
  justify-content: center;
65
65
  gap: 16px;
66
66
 
67
- .cancel {
67
+ .pisell-lowcode-cancel {
68
68
  cursor: pointer;
69
69
  font-weight: 400;
70
70
  font-size: 14px;
71
71
  color: #1B1B1B;
72
72
  }
73
73
 
74
- .submit {
74
+ .pisell-lowcode-submit {
75
75
  cursor: pointer;
76
76
  font-weight: 400;
77
77
  font-size: 14px;
@@ -158,7 +158,7 @@ export declare const fieldList: ({
158
158
  field_icon: string;
159
159
  field_name: string;
160
160
  field_type: string;
161
- default_value: boolean;
161
+ default_value: string;
162
162
  } | {
163
163
  field_icon: string;
164
164
  field_name: string;
@@ -198,7 +198,7 @@ export declare const fieldList: ({
198
198
  field_icon: string;
199
199
  field_name: string;
200
200
  field_type: string;
201
- default_value: string;
201
+ default_value: boolean;
202
202
  } | {
203
203
  field_icon: string;
204
204
  field_name: string;
@@ -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
- }) => ("filter_setting" | "view_mode" | "group_by" | "column_setting" | "order_by" | "gallery_setting")[];
158
+ }) => ("filter_setting" | "group_by" | "order_by" | "column_setting" | "view_mode" | "gallery_setting")[];
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.1.6",
3
+ "version": "6.1.8",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- import { ValueProps, SortType } from '../types';
4
- declare type IdType = string | number;
5
- declare type TreeItemProps = {
6
- id: string | number;
7
- key: string | number;
8
- item: ValueProps | any;
9
- depth: number;
10
- lists: any[];
11
- childrenProps?: SortType;
12
- sensors?: any;
13
- expandedKeys?: IdType[];
14
- setExpandedKeys?: any;
15
- onSelectKeys?: (ids: IdType) => void;
16
- onChange?: (value: any[]) => void;
17
- };
18
- declare const TreeItem: (props: TreeItemProps) => JSX.Element;
19
- export default TreeItem;
@@ -1,32 +0,0 @@
1
- export declare const defaultConfig: {
2
- dark: {
3
- backgroundColor: string;
4
- containerBackgroundColor: string;
5
- buttonBackgroundColor: string;
6
- textColor: string;
7
- resetButtonBackgroundColor: string;
8
- resetButtonTextColor: string;
9
- isDoneButtonFollowTheme: boolean;
10
- doneButtonBackgroundColor: string;
11
- doneButtonTextColor: string;
12
- isShowMainText: boolean;
13
- mainTextColor: string;
14
- isShowSubText: boolean;
15
- subTextColor: string;
16
- };
17
- light: {
18
- backgroundColor: string;
19
- containerBackgroundColor: string;
20
- buttonBackgroundColor: string;
21
- textColor: string;
22
- resetButtonBackgroundColor: string;
23
- resetButtonTextColor: string;
24
- isDoneButtonFollowTheme: boolean;
25
- doneButtonBackgroundColor: string;
26
- doneButtonTextColor: string;
27
- isShowMainText: boolean;
28
- mainTextColor: string;
29
- isShowSubText: boolean;
30
- subTextColor: string;
31
- };
32
- };
@@ -1,20 +0,0 @@
1
- export interface PisellAdjustPriceProps {
2
- value?: number;
3
- originValue: number;
4
- defaultValue?: number;
5
- onChange?: (val: number) => void;
6
- selectType?: 'light' | 'dark';
7
- backgroundColor?: string;
8
- containerBackgroundColor?: string;
9
- buttonBackgroundColor?: string;
10
- textColor?: string;
11
- resetButtonBackgroundColor?: string;
12
- resetButtonTextColor?: string;
13
- isDoneButtonFollowTheme?: boolean;
14
- doneButtonBackgroundColor?: string;
15
- doneButtonTextColor?: string;
16
- isShowMainText?: boolean;
17
- mainTextColor?: string;
18
- isShowSubText?: boolean;
19
- subTextColor?: string;
20
- }
@@ -1,45 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import React from 'react';
3
- declare type NativeProps<S extends string = never> = {
4
- className?: string;
5
- style?: React.CSSProperties & Partial<Record<S, string>>;
6
- };
7
- declare type PropagationEvent = 'click';
8
- import './index.less';
9
- declare type SideType = 'left' | 'right';
10
- export declare type SwipeActionRef = {
11
- close: () => void;
12
- show: (side?: SideType) => void;
13
- };
14
- declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
15
- export declare type Action = {
16
- key: string | number;
17
- text: ReactNode;
18
- color?: ActionColor | string;
19
- onClick?: (e: React.MouseEvent) => void;
20
- };
21
- export declare type SwipeActionProps = {
22
- rightActions?: Action[];
23
- leftActions?: Action[];
24
- onAction?: (action: Action, e: React.MouseEvent) => void;
25
- closeOnTouchOutside?: boolean;
26
- closeOnAction?: boolean;
27
- children: ReactNode;
28
- stopPropagation?: PropagationEvent[];
29
- onActionsReveal?: (side: SideType) => void;
30
- onClose?: () => void;
31
- escapeDom?: string;
32
- } & NativeProps<'--background'>;
33
- export declare const SwipeAction: React.ForwardRefExoticComponent<{
34
- rightActions?: Action[] | undefined;
35
- leftActions?: Action[] | undefined;
36
- onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
37
- closeOnTouchOutside?: boolean | undefined;
38
- closeOnAction?: boolean | undefined;
39
- children: ReactNode;
40
- stopPropagation?: "click"[] | undefined;
41
- onActionsReveal?: ((side: SideType) => void) | undefined;
42
- onClose?: (() => void) | undefined;
43
- escapeDom?: string | undefined;
44
- } & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
45
- export {};
@@ -1,32 +0,0 @@
1
- export declare const amountThemeConfig: {
2
- dark: {
3
- backgroundColor: string;
4
- containerBackgroundColor: string;
5
- buttonBackgroundColor: string;
6
- textColor: string;
7
- resetButtonBackgroundColor: string;
8
- resetButtonTextColor: string;
9
- isDoneButtonFollowTheme: boolean;
10
- doneButtonBackgroundColor: string;
11
- doneButtonTextColor: string;
12
- keyboardBackgroundColor: string;
13
- keyboardButtonBackgroundColor: string;
14
- keyboardButtonTextColor: string;
15
- keyboardButtonHoverColor: string;
16
- };
17
- light: {
18
- backgroundColor: string;
19
- containerBackgroundColor: string;
20
- buttonBackgroundColor: string;
21
- textColor: string;
22
- resetButtonBackgroundColor: string;
23
- resetButtonTextColor: string;
24
- isDoneButtonFollowTheme: boolean;
25
- doneButtonBackgroundColor: string;
26
- doneButtonTextColor: string;
27
- keyboardBackgroundColor: string;
28
- keyboardButtonBackgroundColor: string;
29
- keyboardButtonTextColor: string;
30
- keyboardButtonHoverColor: string;
31
- };
32
- };
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export declare type ItemValue = string | number;
4
- export interface Item {
5
- value: ItemValue;
6
- label: React.ReactNode;
7
- disabled: boolean;
8
- type: 'text' | 'primary';
9
- style?: React.CSSProperties;
10
- size?: number;
11
- }
12
- export interface KeyboardProps {
13
- className?: string;
14
- style?: React.CSSProperties;
15
- onChange?: (value?: ItemValue) => void;
16
- items?: Item[];
17
- rightItems?: Item[];
18
- keydown?: boolean;
19
- }
20
- declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
21
- export default _default;
@@ -1,32 +0,0 @@
1
- export declare const numberThemeConfig: {
2
- dark: {
3
- backgroundColor: string;
4
- containerBackgroundColor: string;
5
- buttonBackgroundColor: string;
6
- textColor: string;
7
- resetButtonBackgroundColor: string;
8
- resetButtonTextColor: string;
9
- isDoneButtonFollowTheme: boolean;
10
- doneButtonBackgroundColor: string;
11
- doneButtonTextColor: string;
12
- keyboardBackgroundColor: string;
13
- keyboardButtonBackgroundColor: string;
14
- keyboardButtonTextColor: string;
15
- keyboardButtonHoverColor: string;
16
- };
17
- light: {
18
- backgroundColor: string;
19
- containerBackgroundColor: string;
20
- buttonBackgroundColor: string;
21
- textColor: string;
22
- resetButtonBackgroundColor: string;
23
- resetButtonTextColor: string;
24
- isDoneButtonFollowTheme: boolean;
25
- doneButtonBackgroundColor: string;
26
- doneButtonTextColor: string;
27
- keyboardBackgroundColor: string;
28
- keyboardButtonBackgroundColor: string;
29
- keyboardButtonTextColor: string;
30
- keyboardButtonHoverColor: string;
31
- };
32
- };
@@ -1,25 +0,0 @@
1
- export interface NumberProps {
2
- max?: number;
3
- min?: number;
4
- doneText?: string;
5
- resetText: string;
6
- defaultValue?: string | number;
7
- placeholder?: string;
8
- value?: string | number;
9
- onChange?: (val: string | number) => void;
10
- onEnter?: (val: string | number) => void;
11
- selectType?: 'light' | 'dark';
12
- backgroundColor?: string;
13
- containerBackgroundColor?: string;
14
- buttonBackgroundColor?: string;
15
- textColor?: string;
16
- resetButtonBackgroundColor?: string;
17
- resetButtonTextColor?: string;
18
- isDoneButtonFollowTheme?: boolean;
19
- doneButtonBackgroundColor?: string;
20
- doneButtonTextColor?: string;
21
- keyboardBackgroundColor?: string;
22
- keyboardButtonBackgroundColor?: string;
23
- keyboardButtonTextColor?: string;
24
- keyboardButtonHoverColor?: string;
25
- }
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- import { ValueProps, SortType } from '../types';
4
- declare type IdType = string | number;
5
- declare type TreeItemProps = {
6
- id: string | number;
7
- key: string | number;
8
- item: ValueProps | any;
9
- depth: number;
10
- lists: any[];
11
- childrenProps?: SortType;
12
- sensors?: any;
13
- expandedKeys?: IdType[];
14
- setExpandedKeys?: any;
15
- onSelectKeys?: (ids: IdType) => void;
16
- onChange?: (value: any[]) => void;
17
- };
18
- declare const TreeItem: (props: TreeItemProps) => JSX.Element;
19
- export default TreeItem;
@@ -1,32 +0,0 @@
1
- export declare const defaultConfig: {
2
- dark: {
3
- backgroundColor: string;
4
- containerBackgroundColor: string;
5
- buttonBackgroundColor: string;
6
- textColor: string;
7
- resetButtonBackgroundColor: string;
8
- resetButtonTextColor: string;
9
- isDoneButtonFollowTheme: boolean;
10
- doneButtonBackgroundColor: string;
11
- doneButtonTextColor: string;
12
- isShowMainText: boolean;
13
- mainTextColor: string;
14
- isShowSubText: boolean;
15
- subTextColor: string;
16
- };
17
- light: {
18
- backgroundColor: string;
19
- containerBackgroundColor: string;
20
- buttonBackgroundColor: string;
21
- textColor: string;
22
- resetButtonBackgroundColor: string;
23
- resetButtonTextColor: string;
24
- isDoneButtonFollowTheme: boolean;
25
- doneButtonBackgroundColor: string;
26
- doneButtonTextColor: string;
27
- isShowMainText: boolean;
28
- mainTextColor: string;
29
- isShowSubText: boolean;
30
- subTextColor: string;
31
- };
32
- };
@@ -1,20 +0,0 @@
1
- export interface PisellAdjustPriceProps {
2
- value?: number;
3
- originValue: number;
4
- defaultValue?: number;
5
- onChange?: (val: number) => void;
6
- selectType?: 'light' | 'dark';
7
- backgroundColor?: string;
8
- containerBackgroundColor?: string;
9
- buttonBackgroundColor?: string;
10
- textColor?: string;
11
- resetButtonBackgroundColor?: string;
12
- resetButtonTextColor?: string;
13
- isDoneButtonFollowTheme?: boolean;
14
- doneButtonBackgroundColor?: string;
15
- doneButtonTextColor?: string;
16
- isShowMainText?: boolean;
17
- mainTextColor?: string;
18
- isShowSubText?: boolean;
19
- subTextColor?: string;
20
- }
@@ -1,45 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import React from 'react';
3
- declare type NativeProps<S extends string = never> = {
4
- className?: string;
5
- style?: React.CSSProperties & Partial<Record<S, string>>;
6
- };
7
- declare type PropagationEvent = 'click';
8
- import './index.less';
9
- declare type SideType = 'left' | 'right';
10
- export declare type SwipeActionRef = {
11
- close: () => void;
12
- show: (side?: SideType) => void;
13
- };
14
- declare type ActionColor = 'light' | 'weak' | 'primary' | 'success' | 'warning' | 'danger';
15
- export declare type Action = {
16
- key: string | number;
17
- text: ReactNode;
18
- color?: ActionColor | string;
19
- onClick?: (e: React.MouseEvent) => void;
20
- };
21
- export declare type SwipeActionProps = {
22
- rightActions?: Action[];
23
- leftActions?: Action[];
24
- onAction?: (action: Action, e: React.MouseEvent) => void;
25
- closeOnTouchOutside?: boolean;
26
- closeOnAction?: boolean;
27
- children: ReactNode;
28
- stopPropagation?: PropagationEvent[];
29
- onActionsReveal?: (side: SideType) => void;
30
- onClose?: () => void;
31
- escapeDom?: string;
32
- } & NativeProps<'--background'>;
33
- export declare const SwipeAction: React.ForwardRefExoticComponent<{
34
- rightActions?: Action[] | undefined;
35
- leftActions?: Action[] | undefined;
36
- onAction?: ((action: Action, e: React.MouseEvent) => void) | undefined;
37
- closeOnTouchOutside?: boolean | undefined;
38
- closeOnAction?: boolean | undefined;
39
- children: ReactNode;
40
- stopPropagation?: "click"[] | undefined;
41
- onActionsReveal?: ((side: SideType) => void) | undefined;
42
- onClose?: (() => void) | undefined;
43
- escapeDom?: string | undefined;
44
- } & NativeProps<"--background"> & React.RefAttributes<SwipeActionRef>>;
45
- export {};
@@ -1,32 +0,0 @@
1
- export declare const amountThemeConfig: {
2
- dark: {
3
- backgroundColor: string;
4
- containerBackgroundColor: string;
5
- buttonBackgroundColor: string;
6
- textColor: string;
7
- resetButtonBackgroundColor: string;
8
- resetButtonTextColor: string;
9
- isDoneButtonFollowTheme: boolean;
10
- doneButtonBackgroundColor: string;
11
- doneButtonTextColor: string;
12
- keyboardBackgroundColor: string;
13
- keyboardButtonBackgroundColor: string;
14
- keyboardButtonTextColor: string;
15
- keyboardButtonHoverColor: string;
16
- };
17
- light: {
18
- backgroundColor: string;
19
- containerBackgroundColor: string;
20
- buttonBackgroundColor: string;
21
- textColor: string;
22
- resetButtonBackgroundColor: string;
23
- resetButtonTextColor: string;
24
- isDoneButtonFollowTheme: boolean;
25
- doneButtonBackgroundColor: string;
26
- doneButtonTextColor: string;
27
- keyboardBackgroundColor: string;
28
- keyboardButtonBackgroundColor: string;
29
- keyboardButtonTextColor: string;
30
- keyboardButtonHoverColor: string;
31
- };
32
- };
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export declare type ItemValue = string | number;
4
- export interface Item {
5
- value: ItemValue;
6
- label: React.ReactNode;
7
- disabled: boolean;
8
- type: 'text' | 'primary';
9
- style?: React.CSSProperties;
10
- size?: number;
11
- }
12
- export interface KeyboardProps {
13
- className?: string;
14
- style?: React.CSSProperties;
15
- onChange?: (value?: ItemValue) => void;
16
- items?: Item[];
17
- rightItems?: Item[];
18
- keydown?: boolean;
19
- }
20
- declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
21
- export default _default;
@@ -1,32 +0,0 @@
1
- export declare const numberThemeConfig: {
2
- dark: {
3
- backgroundColor: string;
4
- containerBackgroundColor: string;
5
- buttonBackgroundColor: string;
6
- textColor: string;
7
- resetButtonBackgroundColor: string;
8
- resetButtonTextColor: string;
9
- isDoneButtonFollowTheme: boolean;
10
- doneButtonBackgroundColor: string;
11
- doneButtonTextColor: string;
12
- keyboardBackgroundColor: string;
13
- keyboardButtonBackgroundColor: string;
14
- keyboardButtonTextColor: string;
15
- keyboardButtonHoverColor: string;
16
- };
17
- light: {
18
- backgroundColor: string;
19
- containerBackgroundColor: string;
20
- buttonBackgroundColor: string;
21
- textColor: string;
22
- resetButtonBackgroundColor: string;
23
- resetButtonTextColor: string;
24
- isDoneButtonFollowTheme: boolean;
25
- doneButtonBackgroundColor: string;
26
- doneButtonTextColor: string;
27
- keyboardBackgroundColor: string;
28
- keyboardButtonBackgroundColor: string;
29
- keyboardButtonTextColor: string;
30
- keyboardButtonHoverColor: string;
31
- };
32
- };
@@ -1,25 +0,0 @@
1
- export interface NumberProps {
2
- max?: number;
3
- min?: number;
4
- doneText?: string;
5
- resetText: string;
6
- defaultValue?: string | number;
7
- placeholder?: string;
8
- value?: string | number;
9
- onChange?: (val: string | number) => void;
10
- onEnter?: (val: string | number) => void;
11
- selectType?: 'light' | 'dark';
12
- backgroundColor?: string;
13
- containerBackgroundColor?: string;
14
- buttonBackgroundColor?: string;
15
- textColor?: string;
16
- resetButtonBackgroundColor?: string;
17
- resetButtonTextColor?: string;
18
- isDoneButtonFollowTheme?: boolean;
19
- doneButtonBackgroundColor?: string;
20
- doneButtonTextColor?: string;
21
- keyboardBackgroundColor?: string;
22
- keyboardButtonBackgroundColor?: string;
23
- keyboardButtonTextColor?: string;
24
- keyboardButtonHoverColor?: string;
25
- }