@pisell/materials 1.0.606 → 1.0.608

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 (136) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +3 -3
  6. package/build/lowcode/preview.js +154 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +37 -23
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +38 -24
  11. package/es/components/Pagination/index.d.ts +1 -1
  12. package/es/components/appVersionControl/index.less +3 -0
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +6 -2
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +15 -1
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  16. package/es/components/dataSourceComponents/fields/Select/index.js +2 -1
  17. package/es/components/dataSourceComponents/fields/index.d.ts +1 -1
  18. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.js +3 -0
  19. package/es/components/pisellDraggable/components/Action/Action.d.ts +10 -0
  20. package/es/components/pisellDraggable/components/Action/Action.js +31 -0
  21. package/es/components/pisellDraggable/components/Action/Action.less +50 -0
  22. package/es/components/pisellDraggable/components/Action/index.d.ts +2 -0
  23. package/es/components/pisellDraggable/components/Action/index.js +1 -0
  24. package/es/components/pisellDraggable/components/Handle/Handle.d.ts +3 -0
  25. package/es/components/pisellDraggable/components/Handle/Handle.js +15 -0
  26. package/es/components/pisellDraggable/components/Handle/index.d.ts +1 -0
  27. package/es/components/pisellDraggable/components/Handle/index.js +1 -0
  28. package/es/components/pisellDraggable/components/Remove/Remove.d.ts +3 -0
  29. package/es/components/pisellDraggable/components/Remove/Remove.js +17 -0
  30. package/es/components/pisellDraggable/components/Remove/index.d.ts +1 -0
  31. package/es/components/pisellDraggable/components/Remove/index.js +1 -0
  32. package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +8 -0
  33. package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.js +51 -0
  34. package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +21 -0
  35. package/es/components/pisellDraggable/components/TreeItem/TreeItem.js +57 -0
  36. package/es/components/pisellDraggable/components/TreeItem/TreeItem.less +128 -0
  37. package/es/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
  38. package/es/components/pisellDraggable/components/TreeItem/index.js +2 -0
  39. package/es/components/pisellDraggable/components/index.d.ts +4 -0
  40. package/es/components/pisellDraggable/components/index.js +4 -0
  41. package/es/components/pisellDraggable/index.d.ts +28 -3
  42. package/es/components/pisellDraggable/index.js +380 -2
  43. package/es/components/pisellDraggable/types.d.ts +15 -99
  44. package/es/components/pisellDraggable/utilities.d.ts +17 -0
  45. package/es/components/pisellDraggable/utilities.js +230 -0
  46. package/es/components/pisellDropSort/PisellDropSort.d.ts +5 -0
  47. package/es/components/pisellDropSort/PisellDropSort.js +102 -0
  48. package/es/components/pisellDropSort/PisellDropSort.less +92 -0
  49. package/es/components/pisellDropSort/components/SortableItem/index.d.ts +19 -0
  50. package/es/components/pisellDropSort/components/SortableItem/index.js +93 -0
  51. package/es/components/pisellDropSort/components/SortableItem/index.less +155 -0
  52. package/es/components/pisellDropSort/index.d.ts +3 -0
  53. package/es/components/pisellDropSort/index.js +2 -0
  54. package/es/components/pisellDropSort/types.d.ts +42 -0
  55. package/es/components/pisellDropSort/types.js +1 -0
  56. package/es/components/pisellModal/components/Information/index.js +0 -1
  57. package/es/components/versionModal/index.js +3 -1
  58. package/es/components/versionModal/index.less +9 -2
  59. package/es/index.d.ts +1 -0
  60. package/es/index.js +2 -1
  61. package/es/locales/en-US.d.ts +7 -6
  62. package/es/locales/en-US.js +16 -22
  63. package/es/locales/zh-CN.d.ts +7 -6
  64. package/es/locales/zh-CN.js +15 -21
  65. package/es/locales/zh-TW.d.ts +7 -6
  66. package/es/locales/zh-TW.js +17 -23
  67. package/lib/components/Pagination/index.d.ts +1 -1
  68. package/lib/components/appVersionControl/index.less +3 -0
  69. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +6 -2
  70. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +16 -1
  71. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  72. package/lib/components/dataSourceComponents/fields/Select/index.js +2 -1
  73. package/lib/components/dataSourceComponents/fields/index.d.ts +1 -1
  74. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.js +3 -0
  75. package/lib/components/pisellDraggable/components/Action/Action.d.ts +10 -0
  76. package/lib/components/pisellDraggable/components/Action/Action.js +60 -0
  77. package/lib/components/pisellDraggable/components/Action/Action.less +50 -0
  78. package/lib/components/pisellDraggable/components/Action/index.d.ts +2 -0
  79. package/lib/components/pisellDraggable/components/Action/index.js +29 -0
  80. package/lib/components/pisellDraggable/components/Handle/Handle.d.ts +3 -0
  81. package/lib/components/pisellDraggable/components/Handle/Handle.js +54 -0
  82. package/lib/components/pisellDraggable/components/Handle/index.d.ts +1 -0
  83. package/lib/components/pisellDraggable/components/Handle/index.js +29 -0
  84. package/lib/components/pisellDraggable/components/Remove/Remove.d.ts +3 -0
  85. package/lib/components/pisellDraggable/components/Remove/Remove.js +53 -0
  86. package/lib/components/pisellDraggable/components/Remove/index.d.ts +1 -0
  87. package/lib/components/pisellDraggable/components/Remove/index.js +29 -0
  88. package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +8 -0
  89. package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.js +83 -0
  90. package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +21 -0
  91. package/lib/components/pisellDraggable/components/TreeItem/TreeItem.js +93 -0
  92. package/lib/components/pisellDraggable/components/TreeItem/TreeItem.less +128 -0
  93. package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
  94. package/lib/components/pisellDraggable/components/TreeItem/index.js +32 -0
  95. package/lib/components/pisellDraggable/components/index.d.ts +4 -0
  96. package/lib/components/pisellDraggable/components/index.js +40 -0
  97. package/lib/components/pisellDraggable/index.d.ts +28 -3
  98. package/lib/components/pisellDraggable/index.js +237 -2
  99. package/lib/components/pisellDraggable/types.d.ts +15 -99
  100. package/lib/components/pisellDraggable/utilities.d.ts +17 -0
  101. package/lib/components/pisellDraggable/utilities.js +190 -0
  102. package/lib/components/pisellDropSort/PisellDropSort.d.ts +5 -0
  103. package/lib/components/pisellDropSort/PisellDropSort.js +147 -0
  104. package/lib/components/pisellDropSort/PisellDropSort.less +92 -0
  105. package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +19 -0
  106. package/lib/components/pisellDropSort/components/SortableItem/index.js +164 -0
  107. package/lib/components/pisellDropSort/components/SortableItem/index.less +155 -0
  108. package/lib/components/pisellDropSort/index.d.ts +3 -0
  109. package/lib/components/pisellDropSort/index.js +36 -0
  110. package/lib/components/pisellDropSort/types.d.ts +42 -0
  111. package/lib/components/pisellDropSort/types.js +17 -0
  112. package/lib/components/pisellModal/components/Information/index.js +0 -1
  113. package/lib/components/versionModal/index.js +1 -1
  114. package/lib/components/versionModal/index.less +9 -2
  115. package/lib/index.d.ts +1 -0
  116. package/lib/index.js +3 -0
  117. package/lib/locales/en-US.d.ts +7 -6
  118. package/lib/locales/en-US.js +11 -1
  119. package/lib/locales/zh-CN.d.ts +7 -6
  120. package/lib/locales/zh-CN.js +10 -1
  121. package/lib/locales/zh-TW.d.ts +7 -6
  122. package/lib/locales/zh-TW.js +10 -1
  123. package/lowcode/custom-select/meta.ts +11 -15
  124. package/lowcode/form-item-translation/meta.ts +59 -1
  125. package/lowcode/pisell-drop-sort/meta.ts +343 -0
  126. package/package.json +2 -2
  127. package/es/components/pisellDraggable/PisellDraggable.d.ts +0 -18
  128. package/es/components/pisellDraggable/PisellDraggable.js +0 -190
  129. package/es/components/pisellDraggable/PisellDraggable.less +0 -154
  130. package/es/components/pisellDraggable/SortableItem.d.ts +0 -41
  131. package/es/components/pisellDraggable/SortableItem.js +0 -115
  132. package/lib/components/pisellDraggable/PisellDraggable.d.ts +0 -18
  133. package/lib/components/pisellDraggable/PisellDraggable.js +0 -175
  134. package/lib/components/pisellDraggable/PisellDraggable.less +0 -154
  135. package/lib/components/pisellDraggable/SortableItem.d.ts +0 -41
  136. package/lib/components/pisellDraggable/SortableItem.js +0 -127
@@ -0,0 +1,3 @@
1
+ import PisellDropSort from './PisellDropSort';
2
+ export default PisellDropSort;
3
+ export type { PisellDropSortProps, DropSortItem } from './types';
@@ -0,0 +1,2 @@
1
+ import PisellDropSort from "./PisellDropSort";
2
+ export default PisellDropSort;
@@ -0,0 +1,42 @@
1
+ import { CSSProperties } from 'react';
2
+ import type { Props as TreeItem } from '../pisellDraggable/components/TreeItem/TreeItem';
3
+ import type { TreeItem as TreeItemType } from '../pisellDraggable/types';
4
+ export interface DropSortItem extends TreeItemType {
5
+ [key: string]: any;
6
+ }
7
+ export interface PisellDropSortProps {
8
+ /** value */
9
+ value: DropSortItem[];
10
+ /** 允许拖拽 */
11
+ allowDrag?: boolean;
12
+ /** 允许删除 */
13
+ allowDelete?: boolean;
14
+ /** 允许添加子节点 */
15
+ allowAddChild?: boolean;
16
+ /** 允许添加根节点 */
17
+ allowAddRoot?: boolean;
18
+ /** 是否禁用 */
19
+ disabled?: boolean;
20
+ /** 节点间距 */
21
+ spacing?: number;
22
+ /** 最大层级数 */
23
+ maxLevel?: number;
24
+ /** 是否显示边框 */
25
+ showBorder?: boolean;
26
+ /** 样式 */
27
+ style?: CSSProperties;
28
+ /** 类名 */
29
+ className?: string;
30
+ /** 数据源变化回调 */
31
+ onChange?: (items: DropSortItem[]) => void;
32
+ /** 删除节点回调 */
33
+ onDelete?: (itemProps: TreeItem) => void;
34
+ /** 添加节点回调 */
35
+ onAdd?: (itemProps: TreeItem) => void;
36
+ /** 自定义渲染节点 */
37
+ renderItem?: (itemProps: TreeItem) => React.ReactNode;
38
+ /** 添加根节点回调 */
39
+ onAddRoot?: () => void;
40
+ /** 左侧自定义内容 */
41
+ leftContent?: React.ReactNode;
42
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -14,7 +14,6 @@ var Information = function Information(props) {
14
14
  mobileModalHeight: "auto",
15
15
  headerDivider: false,
16
16
  footerDivider: footerDivider,
17
- size: "small",
18
17
  transitionName: "pisell-move-down"
19
18
  }), /*#__PURE__*/React.createElement("div", {
20
19
  className: "pisell-modal-information-title"
@@ -130,7 +130,9 @@ var PublishVersionModal = function PublishVersionModal(_ref) {
130
130
  layout: "vertical",
131
131
  preserve: false,
132
132
  className: "pisell-lowcode-version-modal-form"
133
- }, isShowCurrentVersion && /*#__PURE__*/React.createElement("p", null, getText('pisell-version-modal-current-version'), ": ", currentVersion), isShowBasedOn && /*#__PURE__*/React.createElement(Form.Item, {
133
+ }, isShowCurrentVersion && /*#__PURE__*/React.createElement("p", {
134
+ className: "pisell-lowcode-version-modal-current-version"
135
+ }, getText('pisell-version-modal-current-version'), ": ", currentVersion), isShowBasedOn && /*#__PURE__*/React.createElement(Form.Item, {
134
136
  label: getText('pisell-version-modal-based-on-version'),
135
137
  name: "baseVersion",
136
138
  initialValue: currentVersion,
@@ -1,3 +1,10 @@
1
1
  .pisell-lowcode-version-modal-form {
2
- padding: 24px 0 0 !important;
3
- }
2
+ padding: 16px 0 0 !important;
3
+ }
4
+
5
+ .pisell-lowcode-version-modal-current-version {
6
+ color: var(--Gray-500, #667085);
7
+ font-size: 16px;
8
+ font-weight: 400;
9
+ line-height: 24px; /* 150% */
10
+ }
package/es/index.d.ts CHANGED
@@ -132,3 +132,4 @@ export { default as PisellPriceKeyboard } from './components/virtual-keyboard/Am
132
132
  export { default as PisellNumberKeyboard } from './components/virtual-keyboard/Number';
133
133
  export { default as VirtualKeyboardTime } from './components/virtual-keyboard/Time';
134
134
  export { default as WalletCard } from './components/walletCard';
135
+ export { default as PisellDropSort } from './components/pisellDropSort';
package/es/index.js CHANGED
@@ -131,4 +131,5 @@ export { default as VirtualKeyboard } from "./components/virtual-keyboard";
131
131
  export { default as PisellPriceKeyboard } from "./components/virtual-keyboard/Amount";
132
132
  export { default as PisellNumberKeyboard } from "./components/virtual-keyboard/Number";
133
133
  export { default as VirtualKeyboardTime } from "./components/virtual-keyboard/Time";
134
- export { default as WalletCard } from "./components/walletCard";
134
+ export { default as WalletCard } from "./components/walletCard";
135
+ export { default as PisellDropSort } from "./components/pisellDropSort";
@@ -190,12 +190,6 @@ declare const _default: {
190
190
  'pisell-version-modal-version-error': string;
191
191
  'pisell-version-modal-version-required': string;
192
192
  'pisell-version-modal-based-on-version': string;
193
- 'pisell-icon-select-outlined': string;
194
- 'pisell-icon-select-filled': string;
195
- 'pisell-icon-select-two-tone': string;
196
- 'pisell-icon-select-iconfont': string;
197
- 'pisell-icon-select-search': string;
198
- 'pisell-icon-select-select': string;
199
193
  'subdomain-error-too-short': string;
200
194
  'subdomain-error-too-long': string;
201
195
  'subdomain-error-pattern': string;
@@ -203,6 +197,12 @@ declare const _default: {
203
197
  'subdomain-error-hyphen-ends': string;
204
198
  'subdomain-error-consecutive-hyphens': string;
205
199
  'subdomain-error-required': string;
200
+ 'pisell-icon-select-outlined': string;
201
+ 'pisell-icon-select-filled': string;
202
+ 'pisell-icon-select-two-tone': string;
203
+ 'pisell-icon-select-iconfont': string;
204
+ 'pisell-icon-select-search': string;
205
+ 'pisell-icon-select-select': string;
206
206
  'pisell-lowcode-app-version-control-live': string;
207
207
  'pisell-lowcode-app-version-control-draft': string;
208
208
  'pisell-lowcode-app-version-control-deprecated': string;
@@ -213,5 +213,6 @@ declare const _default: {
213
213
  'pisell-lowcode-app-version-control-promote-version-ok': string;
214
214
  'pisell-lowcode-app-version-control-promote-version-cancel': string;
215
215
  'pisell-lowcode-app-version-control-version-exists': string;
216
+ 'pisell-lowcode-drop-sort-add': string;
216
217
  };
217
218
  export default _default;
@@ -1,4 +1,9 @@
1
- export default {
1
+ var _tableFilterSearch$;
2
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
6
+ export default (_tableFilterSearch$ = {
2
7
  "table-filter-search": "Search",
3
8
  "table-filter-clear": "Clear",
4
9
  "table-filter-filter": "Filter",
@@ -242,13 +247,6 @@ export default {
242
247
  'pisell-version-modal-version-error': 'Version number must be greater than the current version',
243
248
  'pisell-version-modal-version-required': 'Version number is required',
244
249
  'pisell-version-modal-based-on-version': 'Based on version',
245
- // 图标选择组件
246
- 'pisell-icon-select-outlined': 'Outlined',
247
- 'pisell-icon-select-filled': 'Filled',
248
- 'pisell-icon-select-two-tone': 'Two-tone',
249
- 'pisell-icon-select-iconfont': 'Iconfont',
250
- 'pisell-icon-select-search': 'Search icon',
251
- 'pisell-icon-select-select': 'Select icon',
252
250
  // 子域名校验错误
253
251
  'subdomain-error-too-short': 'Subdomain must be at least 2 characters long',
254
252
  'subdomain-error-too-long': 'Subdomain cannot exceed 60 characters',
@@ -257,17 +255,13 @@ export default {
257
255
  'subdomain-error-hyphen-ends': 'Subdomain cannot start or end with a hyphen',
258
256
  'subdomain-error-consecutive-hyphens': 'Subdomain cannot contain consecutive hyphens',
259
257
  'subdomain-error-required': 'Please enter subdomain',
260
- // 应用版本控制组件
261
- 'pisell-lowcode-app-version-control-live': 'Live',
262
- 'pisell-lowcode-app-version-control-draft': 'Draft',
263
- 'pisell-lowcode-app-version-control-deprecated': 'Deprecated',
264
- 'pisell-lowcode-app-version-control-new-version': 'New version',
265
- 'pisell-lowcode-app-version-control-promote-to-live': 'Promote to live',
266
- 'pisell-lowcode-app-version-control-promote-version': function pisellLowcodeAppVersionControlPromoteVersion(version) {
267
- return "Promote version ".concat(version || "", "?");
268
- },
269
- 'pisell-lowcode-app-version-control-promote-version-describe': 'Promoting this version will lock it further changes',
270
- 'pisell-lowcode-app-version-control-promote-version-ok': 'Promote',
271
- 'pisell-lowcode-app-version-control-promote-version-cancel': 'Cancel',
272
- 'pisell-lowcode-app-version-control-version-exists': 'Version already exists'
273
- };
258
+ // 图标选择组件
259
+ 'pisell-icon-select-outlined': 'Outlined',
260
+ 'pisell-icon-select-filled': 'Filled',
261
+ 'pisell-icon-select-two-tone': 'Two-tone',
262
+ 'pisell-icon-select-iconfont': 'Iconfont',
263
+ 'pisell-icon-select-search': 'Search icon',
264
+ 'pisell-icon-select-select': 'Select icon'
265
+ }, _defineProperty(_tableFilterSearch$, "subdomain-error-too-short", 'Subdomain must be at least 2 characters long'), _defineProperty(_tableFilterSearch$, "subdomain-error-too-long", 'Subdomain cannot exceed 60 characters'), _defineProperty(_tableFilterSearch$, "subdomain-error-pattern", 'Subdomain can only contain lowercase letters, numbers and hyphens'), _defineProperty(_tableFilterSearch$, "subdomain-error-numbers-only", 'Subdomain cannot contain only numbers'), _defineProperty(_tableFilterSearch$, "subdomain-error-hyphen-ends", 'Subdomain cannot start or end with a hyphen'), _defineProperty(_tableFilterSearch$, "subdomain-error-consecutive-hyphens", 'Subdomain cannot contain consecutive hyphens'), _defineProperty(_tableFilterSearch$, "subdomain-error-required", 'Please enter subdomain'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-live', 'Live'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-draft', 'Draft'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-deprecated', 'Deprecated'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-new-version', 'New version'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-to-live', 'Promote to live'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version', function pisellLowcodeAppVersionControlPromoteVersion(version) {
266
+ return "Promote version ".concat(version || "", "?");
267
+ }), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-describe', 'Promoting this version will lock it further changes'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-ok', 'Promote'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-cancel', 'Cancel'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-version-exists', 'Version already exists'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-drop-sort-add', 'Add'), _tableFilterSearch$);
@@ -190,18 +190,18 @@ declare const _default: {
190
190
  'pisell-version-modal-version-error': string;
191
191
  'pisell-version-modal-version-required': string;
192
192
  'pisell-version-modal-based-on-version': string;
193
- 'pisell-icon-select-outlined': string;
194
- 'pisell-icon-select-filled': string;
195
- 'pisell-icon-select-two-tone': string;
196
- 'pisell-icon-select-iconfont': string;
197
- 'pisell-icon-select-search': string;
198
- 'pisell-icon-select-select': string;
199
193
  'subdomain-error-too-short': string;
200
194
  'subdomain-error-too-long': string;
201
195
  'subdomain-error-pattern': string;
202
196
  'subdomain-error-numbers-only': string;
203
197
  'subdomain-error-hyphen-ends': string;
204
198
  'subdomain-error-consecutive-hyphens': string;
199
+ 'pisell-icon-select-outlined': string;
200
+ 'pisell-icon-select-filled': string;
201
+ 'pisell-icon-select-two-tone': string;
202
+ 'pisell-icon-select-iconfont': string;
203
+ 'pisell-icon-select-search': string;
204
+ 'pisell-icon-select-select': string;
205
205
  'pisell-lowcode-app-version-control-live': string;
206
206
  'pisell-lowcode-app-version-control-draft': string;
207
207
  'pisell-lowcode-app-version-control-deprecated': string;
@@ -212,5 +212,6 @@ declare const _default: {
212
212
  'pisell-lowcode-app-version-control-promote-version-ok': string;
213
213
  'pisell-lowcode-app-version-control-promote-version-cancel': string;
214
214
  'pisell-lowcode-app-version-control-version-exists': string;
215
+ 'pisell-lowcode-drop-sort-add': string;
215
216
  };
216
217
  export default _default;
@@ -1,4 +1,9 @@
1
- export default {
1
+ var _tableFilterSearch$;
2
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
6
+ export default (_tableFilterSearch$ = {
2
7
  "table-filter-search": "搜索",
3
8
  "table-filter-clear": "清除",
4
9
  "table-filter-filter": "筛选",
@@ -241,12 +246,6 @@ export default {
241
246
  'pisell-version-modal-version-error': '版本号必须大于当前版本',
242
247
  'pisell-version-modal-version-required': '版本号为必填项',
243
248
  'pisell-version-modal-based-on-version': '基于版本',
244
- 'pisell-icon-select-outlined': '线框风格',
245
- 'pisell-icon-select-filled': '实底风格',
246
- 'pisell-icon-select-two-tone': '双色风格',
247
- 'pisell-icon-select-iconfont': 'Iconfont',
248
- 'pisell-icon-select-search': '搜索图标',
249
- 'pisell-icon-select-select': '选择图标',
250
249
  // 子域名校验错误
251
250
  'subdomain-error-too-short': '子域名长度不能小于2个字符',
252
251
  'subdomain-error-too-long': '子域名长度不能超过60个字符',
@@ -254,17 +253,12 @@ export default {
254
253
  'subdomain-error-numbers-only': '子域名不能全为数字',
255
254
  'subdomain-error-hyphen-ends': '子域名不能以连字符开头或结尾',
256
255
  'subdomain-error-consecutive-hyphens': '子域名不能包含连续的连字符',
257
- // 应用版本控制组件
258
- 'pisell-lowcode-app-version-control-live': '正式版',
259
- 'pisell-lowcode-app-version-control-draft': '草稿',
260
- 'pisell-lowcode-app-version-control-deprecated': '已废弃',
261
- 'pisell-lowcode-app-version-control-new-version': '新版本',
262
- 'pisell-lowcode-app-version-control-promote-to-live': '发布正式版',
263
- 'pisell-lowcode-app-version-control-promote-version': function pisellLowcodeAppVersionControlPromoteVersion(version) {
264
- return "\u53D1\u5E03\u7248\u672C ".concat(version || "", "?");
265
- },
266
- 'pisell-lowcode-app-version-control-promote-version-describe': '发布版本后,该版本将无法再进行修改',
267
- 'pisell-lowcode-app-version-control-promote-version-ok': '发布',
268
- 'pisell-lowcode-app-version-control-promote-version-cancel': '取消',
269
- 'pisell-lowcode-app-version-control-version-exists': '版本已存在'
270
- };
256
+ 'pisell-icon-select-outlined': '线框风格',
257
+ 'pisell-icon-select-filled': '实底风格',
258
+ 'pisell-icon-select-two-tone': '双色风格',
259
+ 'pisell-icon-select-iconfont': 'Iconfont',
260
+ 'pisell-icon-select-search': '搜索图标',
261
+ 'pisell-icon-select-select': '选择图标'
262
+ }, _defineProperty(_tableFilterSearch$, "subdomain-error-too-short", '子域名长度不能小于2个字符'), _defineProperty(_tableFilterSearch$, "subdomain-error-too-long", '子域名长度不能超过60个字符'), _defineProperty(_tableFilterSearch$, "subdomain-error-pattern", '子域名只能包含小写字母、数字和连字符'), _defineProperty(_tableFilterSearch$, "subdomain-error-numbers-only", '子域名不能全为数字'), _defineProperty(_tableFilterSearch$, "subdomain-error-hyphen-ends", '子域名不能以连字符开头或结尾'), _defineProperty(_tableFilterSearch$, "subdomain-error-consecutive-hyphens", '子域名不能包含连续的连字符'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-live', '正式版'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-draft', '草稿'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-deprecated', '已废弃'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-new-version', '新版本'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-to-live', '发布正式版'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version', function pisellLowcodeAppVersionControlPromoteVersion(version) {
263
+ return "\u53D1\u5E03\u7248\u672C ".concat(version || "", "?");
264
+ }), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-describe', '发布版本后,该版本将无法再进行修改'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-ok', '发布'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-cancel', '取消'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-version-exists', '版本已存在'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-drop-sort-add', '添加'), _tableFilterSearch$);
@@ -189,6 +189,12 @@ declare const _default: {
189
189
  'pisell-version-modal-version-error': string;
190
190
  'pisell-version-modal-version-required': string;
191
191
  'pisell-version-modal-based-on-version': string;
192
+ 'subdomain-error-too-short': string;
193
+ 'subdomain-error-too-long': string;
194
+ 'subdomain-error-pattern': string;
195
+ 'subdomain-error-numbers-only': string;
196
+ 'subdomain-error-hyphen-ends': string;
197
+ 'subdomain-error-consecutive-hyphens': string;
192
198
  'pisell-icon-select-placeholder': string;
193
199
  'pisell-icon-select-outlined': string;
194
200
  'pisell-icon-select-filled': string;
@@ -196,12 +202,6 @@ declare const _default: {
196
202
  'pisell-icon-select-iconfont': string;
197
203
  'pisell-icon-select-search': string;
198
204
  'pisell-icon-select-select': string;
199
- 'subdomain-error-too-short': string;
200
- 'subdomain-error-too-long': string;
201
- 'subdomain-error-pattern': string;
202
- 'subdomain-error-numbers-only': string;
203
- 'subdomain-error-hyphen-ends': string;
204
- 'subdomain-error-consecutive-hyphens': string;
205
205
  'pisell-lowcode-app-version-control-live': string;
206
206
  'pisell-lowcode-app-version-control-draft': string;
207
207
  'pisell-lowcode-app-version-control-deprecated': string;
@@ -212,5 +212,6 @@ declare const _default: {
212
212
  'pisell-lowcode-app-version-control-promote-version-ok': string;
213
213
  'pisell-lowcode-app-version-control-promote-version-cancel': string;
214
214
  'pisell-lowcode-app-version-control-version-exists': string;
215
+ 'pisell-lowcode-drop-sort-add': string;
215
216
  };
216
217
  export default _default;
@@ -1,4 +1,9 @@
1
- export default {
1
+ var _tableFilterSearch$;
2
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
6
+ export default (_tableFilterSearch$ = {
2
7
  "table-filter-search": "搜索",
3
8
  "table-filter-clear": "清除",
4
9
  "table-filter-filter": "篩選",
@@ -241,14 +246,6 @@ export default {
241
246
  'pisell-version-modal-version-error': '版本號必須大於當前版本',
242
247
  'pisell-version-modal-version-required': '版本號為必填項',
243
248
  'pisell-version-modal-based-on-version': '基於版本',
244
- // 图标选择组件
245
- 'pisell-icon-select-placeholder': '選擇圖標',
246
- 'pisell-icon-select-outlined': '線框風格',
247
- 'pisell-icon-select-filled': '實底風格',
248
- 'pisell-icon-select-two-tone': '雙色風格',
249
- 'pisell-icon-select-iconfont': 'Iconfont',
250
- 'pisell-icon-select-search': '搜索圖標',
251
- 'pisell-icon-select-select': '選擇圖標',
252
249
  // 子域名校验错误
253
250
  'subdomain-error-too-short': '子域名長度不能小於2個字符',
254
251
  'subdomain-error-too-long': '子域名長度不能超過60個字符',
@@ -256,17 +253,14 @@ export default {
256
253
  'subdomain-error-numbers-only': '子域名不能全為數字',
257
254
  'subdomain-error-hyphen-ends': '子域名不能以連字符開頭或結尾',
258
255
  'subdomain-error-consecutive-hyphens': '子域名不能包含連續的連字符',
259
- // 应用版本控制组件
260
- 'pisell-lowcode-app-version-control-live': '正式版',
261
- 'pisell-lowcode-app-version-control-draft': '草稿',
262
- 'pisell-lowcode-app-version-control-deprecated': '已廢棄',
263
- 'pisell-lowcode-app-version-control-new-version': '新版本',
264
- 'pisell-lowcode-app-version-control-promote-to-live': '發布正式版',
265
- 'pisell-lowcode-app-version-control-promote-version': function pisellLowcodeAppVersionControlPromoteVersion(version) {
266
- return "\u767C\u5E03\u7248\u672C ".concat(version || "", "?");
267
- },
268
- 'pisell-lowcode-app-version-control-promote-version-describe': '發布版本後,該版本將無法再進行修改',
269
- 'pisell-lowcode-app-version-control-promote-version-ok': '發布',
270
- 'pisell-lowcode-app-version-control-promote-version-cancel': '取消',
271
- 'pisell-lowcode-app-version-control-version-exists': '版本已存在'
272
- };
256
+ // 图标选择组件
257
+ 'pisell-icon-select-placeholder': '選擇圖標',
258
+ 'pisell-icon-select-outlined': '線框風格',
259
+ 'pisell-icon-select-filled': '實底風格',
260
+ 'pisell-icon-select-two-tone': '雙色風格',
261
+ 'pisell-icon-select-iconfont': 'Iconfont',
262
+ 'pisell-icon-select-search': '搜索圖標',
263
+ 'pisell-icon-select-select': '選擇圖標'
264
+ }, _defineProperty(_tableFilterSearch$, "subdomain-error-too-short", '子域名長度不能小於2個字符'), _defineProperty(_tableFilterSearch$, "subdomain-error-too-long", '子域名長度不能超過60個字符'), _defineProperty(_tableFilterSearch$, "subdomain-error-pattern", '子域名只能包含小寫字母、數字和連字符'), _defineProperty(_tableFilterSearch$, "subdomain-error-numbers-only", '子域名不能全為數字'), _defineProperty(_tableFilterSearch$, "subdomain-error-hyphen-ends", '子域名不能以連字符開頭或結尾'), _defineProperty(_tableFilterSearch$, "subdomain-error-consecutive-hyphens", '子域名不能包含連續的連字符'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-live', '正式版'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-draft', '草稿'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-deprecated', '已廢棄'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-new-version', '新版本'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-to-live', '發布正式版'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version', function pisellLowcodeAppVersionControlPromoteVersion(version) {
265
+ return "\u767C\u5E03\u7248\u672C ".concat(version || "", "?");
266
+ }), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-describe', '發布版本後,該版本將無法再進行修改'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-ok', '發布'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-cancel', '取消'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-version-exists', '版本已存在'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-drop-sort-add', '添加'), _tableFilterSearch$);
@@ -5,7 +5,7 @@ export declare const paginationConfig: {
5
5
  className: string;
6
6
  defaultCurrent: number;
7
7
  showTotal: (total: number, range: [number, number]) => string;
8
- itemRender: (page: number, type: "next" | "page" | "prev" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
8
+ itemRender: (page: number, type: "page" | "next" | "prev" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
9
9
  responsive: boolean;
10
10
  size: string;
11
11
  };
@@ -8,6 +8,9 @@
8
8
  justify-content: center;
9
9
  gap: 12px;
10
10
  padding: 12px !important;
11
+ &::after {
12
+ display: none;
13
+ }
11
14
  .pisell-lowcode-app-version-control-avatar {
12
15
  display: flex;
13
16
  .pisell-lowcode-avatar-string {
@@ -9,12 +9,16 @@ export declare type UseFormatParams = {
9
9
  dataSourceKey: string;
10
10
  fields: Field[];
11
11
  };
12
- export declare type FormatListResultParams = {
12
+ export declare type ApiListResult = {
13
13
  list: any[];
14
14
  count: number;
15
- page: number;
16
15
  size: number;
16
+ } & ({
17
+ page: number;
17
18
  } | {
19
+ skip: number;
20
+ });
21
+ export declare type FormatListResultParams = ApiListResult | {
18
22
  data: any[];
19
23
  meta: {
20
24
  count: number;
@@ -122,7 +122,7 @@ var customApiFormatFilter = (filter) => {
122
122
  var useFormat = ({ dataSourceKey, fields }) => {
123
123
  const formatListResult = (0, import_ahooks.useMemoizedFn)(
124
124
  (res) => {
125
- if (dataSourceKey === "pisell2-api" && "list" in res) {
125
+ if (dataSourceKey === "pisell2-api" && "list" in res && "page" in res) {
126
126
  return {
127
127
  data: res.list,
128
128
  count: res.count,
@@ -130,6 +130,14 @@ var useFormat = ({ dataSourceKey, fields }) => {
130
130
  pageSize: res.size
131
131
  };
132
132
  }
133
+ if (dataSourceKey === "mypisell-api" && "list" in res && "skip" in res) {
134
+ return {
135
+ data: res.list,
136
+ count: res.count,
137
+ page: res.skip,
138
+ pageSize: res.size
139
+ };
140
+ }
133
141
  if ("meta" in res) {
134
142
  return {
135
143
  data: res.data,
@@ -156,6 +164,13 @@ var useFormat = ({ dataSourceKey, fields }) => {
156
164
  ...customApiFormatFilter(params.filter || {})
157
165
  };
158
166
  }
167
+ if (dataSourceKey === "mypisell-api") {
168
+ return {
169
+ skip: (params == null ? void 0 : params.page) || 1,
170
+ num: (params == null ? void 0 : params.pageSize) || 10,
171
+ ...customApiFormatFilter(params.filter || {})
172
+ };
173
+ }
159
174
  return params;
160
175
  });
161
176
  const formatCreateUpdateParams = (0, import_ahooks.useMemoizedFn)((params) => {
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
20
+ title: number | boolean | Iterable<React.ReactNode> | React.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 | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
29
+ subTitle: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
30
30
  buttons: any[] | null;
31
31
  filter: React.JSX.Element | null;
32
32
  onRow: (record: any) => any;
@@ -47,7 +47,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
47
47
  width: number;
48
48
  align: "center" | "left" | "right";
49
49
  fixed: false | "left" | "right";
50
- type: "link" | "button";
50
+ type: "button" | "link";
51
51
  items: OperationItem[];
52
52
  } | undefined;
53
53
  operationContent?: {
@@ -65,7 +65,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
65
65
  useCustomAction: boolean;
66
66
  actionType: string;
67
67
  openMode: "modal" | "drawer";
68
- openContentSize: "small" | "large" | "middle";
68
+ openContentSize: "small" | "middle" | "large";
69
69
  openTitle: string;
70
70
  key: string;
71
71
  } | undefined;
@@ -36,7 +36,8 @@ var import_utils = require("../../dataSourceForm/utils");
36
36
  var import_WithMode = __toESM(require("./WithMode"));
37
37
  var SelectWithFormItem = (0, import_utils.withFormItem)(import_WithMode.default, {
38
38
  innerProps: {
39
- getPopupContainer: (triggerNode) => triggerNode.parentElement
39
+ getPopupContainer: (triggerNode) => triggerNode.parentElement,
40
+ virtual: false
40
41
  }
41
42
  });
42
43
  var SelectWithOptions = (0, import_utils.withOptions)(SelectWithFormItem);
@@ -59,7 +59,7 @@ declare const formFieldMap: {
59
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  };
62
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<any> | (import("react").FC<{}> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
63
63
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
64
  } & {
65
65
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -69,6 +69,9 @@ var VariablesProvider = (props) => {
69
69
  variables,
70
70
  {
71
71
  global: {
72
+ value: {
73
+ query: initialQuery
74
+ },
72
75
  query: initialQuery
73
76
  }
74
77
  },
@@ -0,0 +1,10 @@
1
+ import React, { CSSProperties } from 'react';
2
+ import './Action.less';
3
+ export interface Props extends React.HTMLAttributes<HTMLButtonElement> {
4
+ active?: {
5
+ fill: string;
6
+ background: string;
7
+ };
8
+ cursor?: CSSProperties['cursor'];
9
+ }
10
+ export declare const Action: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,60 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/pisellDraggable/components/Action/Action.tsx
30
+ var Action_exports = {};
31
+ __export(Action_exports, {
32
+ Action: () => Action
33
+ });
34
+ module.exports = __toCommonJS(Action_exports);
35
+ var import_classnames = __toESM(require("classnames"));
36
+ var import_react = __toESM(require("react"));
37
+ var import_Action = require("./Action.less");
38
+ var Action = (0, import_react.forwardRef)(
39
+ ({ active, className, cursor, style, ...props }, ref) => {
40
+ return /* @__PURE__ */ import_react.default.createElement(
41
+ "button",
42
+ {
43
+ ref,
44
+ ...props,
45
+ className: (0, import_classnames.default)("Action", className),
46
+ tabIndex: 0,
47
+ style: {
48
+ ...style,
49
+ cursor,
50
+ "--fill": active == null ? void 0 : active.fill,
51
+ "--background": active == null ? void 0 : active.background
52
+ }
53
+ }
54
+ );
55
+ }
56
+ );
57
+ // Annotate the CommonJS export names for ESM import in node:
58
+ 0 && (module.exports = {
59
+ Action
60
+ });