@pisell/materials 6.8.1 → 6.8.3

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 (123) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +2 -2
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +2 -2
  9. package/es/components/Pagination/index.d.ts +1 -1
  10. package/es/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +0 -1
  11. package/es/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +0 -1
  12. package/es/components/PisellCards/index.d.ts +0 -1
  13. package/es/components/PisellProcedure/PisellProcedure.js +9 -4
  14. package/es/components/PisellProcedure/PisellProcedure.less +121 -104
  15. package/es/components/PisellProcedure/components/ProcedureBody.js +2 -1
  16. package/es/components/PisellProcedure/components/ProcedureSidebar.d.ts +3 -1
  17. package/es/components/PisellProcedure/components/ProcedureSidebar.js +27 -14
  18. package/es/components/PisellProcedure/hooks/useElementSize.js +3 -2
  19. package/es/components/PisellProcedure/hooks/useSidebarHeight.js +1 -1
  20. package/es/components/PisellSteps/PisellSteps.less +2 -2
  21. package/es/components/PisellTabbar2/PisellTabbar.js +45 -3
  22. package/es/components/PisellTabbar2/PisellTabbar.less +1 -0
  23. package/es/components/PisellTabbar2/components/TabbarLevel.js +1 -0
  24. package/es/components/batch-editor/fields/index.d.ts +0 -1
  25. package/es/components/calendar/index.d.ts +0 -1
  26. package/es/components/checkbox/index.d.ts +0 -1
  27. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  28. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -3
  29. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  30. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  31. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  32. package/es/components/dataSourceComponents/fields/index.d.ts +0 -1
  33. package/es/components/date-picker/index.d.ts +0 -1
  34. package/es/components/filter/components/items/index.d.ts +0 -1
  35. package/es/components/filter/components/items/text/Editor/index.d.ts +0 -1
  36. package/es/components/filter/components/items/text/Preview/index.d.ts +0 -1
  37. package/es/components/filter/components/items/text/index.d.ts +0 -1
  38. package/es/components/pisellDatePicker/index.d.ts +0 -1
  39. package/es/components/pisellModal/components/index.d.ts +0 -1
  40. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  41. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  42. package/es/components/radio/index.d.ts +0 -1
  43. package/es/components/skeleton/index.d.ts +0 -1
  44. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  45. package/es/components/table/Table/fields/date/index.d.ts +0 -1
  46. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  47. package/es/components/table/Table/fields/index.d.ts +0 -1
  48. package/es/components/table/Table/fields/link/index.d.ts +0 -1
  49. package/es/components/table/Table/fields/number/index.d.ts +0 -1
  50. package/es/components/table/Table/fields/numberRange/index.d.ts +0 -1
  51. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  52. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  53. package/es/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  54. package/es/components/table/Table/fields/search/index.d.ts +0 -1
  55. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  56. package/es/components/table/Table/fields/select/index.d.ts +0 -1
  57. package/es/components/table/Table/fields/text/index.d.ts +0 -1
  58. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  59. package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  60. package/es/components/table/Table/utils.d.ts +1 -1
  61. package/es/components/time-picker/index.d.ts +0 -1
  62. package/es/components/upload/index.d.ts +0 -1
  63. package/es/components/virtual-keyboard/Time/utils.d.ts +0 -1
  64. package/es/utils/index.d.ts +1 -1
  65. package/es/utils/platform.d.ts +1 -1
  66. package/lib/components/Pagination/index.d.ts +1 -1
  67. package/lib/components/PisellCards/components/MultilevelCard/hooks/useMultilevelCardExpand.d.ts +0 -1
  68. package/lib/components/PisellCards/components/PisellImageCard/hooks/useImageLoad.d.ts +0 -1
  69. package/lib/components/PisellCards/index.d.ts +0 -1
  70. package/lib/components/PisellProcedure/PisellProcedure.js +5 -2
  71. package/lib/components/PisellProcedure/PisellProcedure.less +121 -104
  72. package/lib/components/PisellProcedure/components/ProcedureBody.js +2 -1
  73. package/lib/components/PisellProcedure/components/ProcedureSidebar.d.ts +3 -1
  74. package/lib/components/PisellProcedure/components/ProcedureSidebar.js +21 -8
  75. package/lib/components/PisellProcedure/hooks/useElementSize.js +2 -2
  76. package/lib/components/PisellProcedure/hooks/useSidebarHeight.js +1 -1
  77. package/lib/components/PisellSteps/PisellSteps.less +2 -2
  78. package/lib/components/PisellTabbar2/PisellTabbar.js +14 -6
  79. package/lib/components/PisellTabbar2/PisellTabbar.less +1 -0
  80. package/lib/components/PisellTabbar2/components/TabbarLevel.js +1 -0
  81. package/lib/components/batch-editor/fields/index.d.ts +0 -1
  82. package/lib/components/calendar/index.d.ts +0 -1
  83. package/lib/components/checkbox/index.d.ts +0 -1
  84. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  85. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -3
  86. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -1
  87. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  88. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +0 -1
  89. package/lib/components/dataSourceComponents/fields/index.d.ts +0 -1
  90. package/lib/components/date-picker/index.d.ts +0 -1
  91. package/lib/components/filter/components/items/index.d.ts +0 -1
  92. package/lib/components/filter/components/items/text/Editor/index.d.ts +0 -1
  93. package/lib/components/filter/components/items/text/Preview/index.d.ts +0 -1
  94. package/lib/components/filter/components/items/text/index.d.ts +0 -1
  95. package/lib/components/pisellDatePicker/index.d.ts +0 -1
  96. package/lib/components/pisellModal/components/index.d.ts +0 -1
  97. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  98. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  99. package/lib/components/radio/index.d.ts +0 -1
  100. package/lib/components/skeleton/index.d.ts +0 -1
  101. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  102. package/lib/components/table/Table/fields/date/index.d.ts +0 -1
  103. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  104. package/lib/components/table/Table/fields/index.d.ts +0 -1
  105. package/lib/components/table/Table/fields/link/index.d.ts +0 -1
  106. package/lib/components/table/Table/fields/number/index.d.ts +0 -1
  107. package/lib/components/table/Table/fields/numberRange/index.d.ts +0 -1
  108. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +0 -1
  109. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  110. package/lib/components/table/Table/fields/rangePicker/index.d.ts +0 -1
  111. package/lib/components/table/Table/fields/search/index.d.ts +0 -1
  112. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  113. package/lib/components/table/Table/fields/select/index.d.ts +0 -1
  114. package/lib/components/table/Table/fields/text/index.d.ts +0 -1
  115. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  116. package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  117. package/lib/components/table/Table/utils.d.ts +1 -1
  118. package/lib/components/time-picker/index.d.ts +0 -1
  119. package/lib/components/upload/index.d.ts +0 -1
  120. package/lib/components/virtual-keyboard/Time/utils.d.ts +0 -1
  121. package/lib/utils/index.d.ts +1 -1
  122. package/lib/utils/platform.d.ts +1 -1
  123. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { CSSProperties, ReactNode } from 'react';
3
- import type { ProcedureMode } from '../types';
3
+ import type { ProcedureMode, BodyDirection } from '../types';
4
4
  /**
5
5
  * ProcedureSidebar 子组件 Props
6
6
  */
@@ -23,6 +23,8 @@ export interface ProcedureSidebarProps {
23
23
  containerSelector?: string;
24
24
  /** 组件使用模式 */
25
25
  mode?: ProcedureMode;
26
+ /** 排列方向 */
27
+ direction?: BodyDirection;
26
28
  }
27
29
  /**
28
30
  * ProcedureSidebar 信息区组件
@@ -43,19 +43,21 @@ var ProcedureSidebar = ({
43
43
  extra,
44
44
  isRatioMode = false,
45
45
  containerSelector,
46
- mode = "page"
46
+ mode = "page",
47
+ direction = "horizontal"
47
48
  }) => {
49
+ const isVertical = direction === "vertical";
48
50
  const headerSize = (0, import_hooks.useElementSize)({
49
51
  selector: ".pisell-procedure-header",
50
- enabled: true
52
+ enabled: !isVertical
51
53
  });
52
54
  const floatAllFooterSize = (0, import_hooks.useElementSize)({
53
55
  selector: ".pisell-procedure-footer--float-all",
54
- enabled: true
56
+ enabled: !isVertical
55
57
  });
56
58
  const fixedBottomFooterSize = (0, import_hooks.useElementSize)({
57
59
  selector: ".pisell-procedure-footer--fixed-bottom",
58
- enabled: true
60
+ enabled: !isVertical
59
61
  });
60
62
  const footerHeight = Math.max(
61
63
  (floatAllFooterSize == null ? void 0 : floatAllFooterSize.height) || 0,
@@ -63,7 +65,7 @@ var ProcedureSidebar = ({
63
65
  );
64
66
  const containerSize = (0, import_hooks.useElementSize)({
65
67
  selector: containerSelector || "",
66
- enabled: !!containerSelector,
68
+ enabled: !isVertical && !!containerSelector,
67
69
  threshold: 5,
68
70
  debounceMs: 200
69
71
  });
@@ -82,6 +84,9 @@ var ProcedureSidebar = ({
82
84
  };
83
85
  }, [containerWidth]);
84
86
  const isSizeStable = (0, import_react.useMemo)(() => {
87
+ if (isVertical) {
88
+ return false;
89
+ }
85
90
  if (!(headerSize == null ? void 0 : headerSize.height) || headerSize.height === 0) {
86
91
  return false;
87
92
  }
@@ -89,14 +94,21 @@ var ProcedureSidebar = ({
89
94
  return (containerSize == null ? void 0 : containerSize.width) > 0 && (containerSize == null ? void 0 : containerSize.height) > 0;
90
95
  }
91
96
  return true;
92
- }, [containerSelector, containerSize == null ? void 0 : containerSize.width, containerSize == null ? void 0 : containerSize.height, headerSize == null ? void 0 : headerSize.height]);
97
+ }, [
98
+ isVertical,
99
+ containerSelector,
100
+ containerSize == null ? void 0 : containerSize.width,
101
+ containerSize == null ? void 0 : containerSize.height,
102
+ headerSize == null ? void 0 : headerSize.height
103
+ ]);
93
104
  const siderHeight = (0, import_hooks.useSidebarHeight)(isSizeStable, {
94
105
  containerSelector,
95
106
  containerHeight: containerSize == null ? void 0 : containerSize.height,
96
107
  headerHeight: headerSize == null ? void 0 : headerSize.height,
97
108
  footerHeight
98
109
  });
99
- const responsiveCls = mode === "modal" ? (0, import_hooks.useResponsiveClass)(containerWidth) : "";
110
+ const responsiveClsComputed = (0, import_hooks.useResponsiveClass)(containerWidth);
111
+ const responsiveCls = mode === "modal" ? responsiveClsComputed : "";
100
112
  const sidebarCls = (0, import_react.useMemo)(() => {
101
113
  return (0, import_utils.mergeClassNames)(
102
114
  "pisell-procedure-sidebar",
@@ -114,7 +126,8 @@ var ProcedureSidebar = ({
114
126
  overflow: "hidden",
115
127
  ...siderHeight && siderHeight > 0 ? {
116
128
  height: `${siderHeight}px`
117
- } : {}
129
+ } : {},
130
+ top: mode === "modal" ? 0 : `${(headerSize == null ? void 0 : headerSize.height) + 32}px`
118
131
  }
119
132
  },
120
133
  /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-procedure-sider-content-top" }, children),
@@ -55,8 +55,8 @@ var useElementSize = ({
55
55
  const element = document.querySelector(selector);
56
56
  if (element) {
57
57
  const rect = element.getBoundingClientRect();
58
- const newWidth = rect.width;
59
- const newHeight = rect.height;
58
+ const newWidth = Math.round(rect.width * 100) / 100;
59
+ const newHeight = Math.round(rect.height * 100) / 100;
60
60
  const previousSize = previousSizeRef.current;
61
61
  const widthDiff = Math.abs(newWidth - previousSize.width);
62
62
  const heightDiff = Math.abs(newHeight - previousSize.height);
@@ -50,7 +50,7 @@ var useSidebarHeight = (isSizeStable, sizeValues) => {
50
50
  const headerHeightValue = headerHeight || 0;
51
51
  const calculatedHeight = baseHeight - headerHeightValue - footerHeight - bodyPadding;
52
52
  return calculatedHeight;
53
- }, []);
53
+ }, [sizeValuesRef.current]);
54
54
  (0, import_react.useEffect)(() => {
55
55
  if (typeof window === "undefined" || typeof document === "undefined") {
56
56
  return;
@@ -242,13 +242,13 @@
242
242
  // 水平布局时(labelPlacement='horizontal'),控制图标右侧的间距
243
243
  .ant-steps-item {
244
244
  .ant-steps-item-icon {
245
- margin-right: var(--pisell-steps-item-gap);
245
+ margin-right: var(--pisell-steps-item-gap) !important;
246
246
  }
247
247
  }
248
248
 
249
249
  // 低代码平台中的样式支持 - 水平布局
250
250
  .pisell-lowcode-steps-item-icon {
251
- margin-right: var(--pisell-steps-item-gap);
251
+ margin-right: var(--pisell-steps-item-gap) !important;
252
252
  }
253
253
 
254
254
  // 低代码平台垂直布局 - 设置内容区域的上边距
@@ -74,11 +74,15 @@ var PisellTabbar = (props) => {
74
74
  const handleLevel1Change = (0, import_react.useCallback)(
75
75
  (key, item) => {
76
76
  var _a, _b;
77
- setActiveKey(
78
- 0,
79
- key,
80
- ((_a = item == null ? void 0 : item.children) == null ? void 0 : _a.length) ? (_b = item == null ? void 0 : item.children[0]) == null ? void 0 : _b.id : void 0
81
- );
77
+ if (item.childrenMaxLevel !== void 0 && item.childrenMaxLevel < 2) {
78
+ setActiveKey(0, key, 0);
79
+ } else {
80
+ setActiveKey(
81
+ 0,
82
+ key,
83
+ ((_a = item == null ? void 0 : item.children) == null ? void 0 : _a.length) ? (_b = item == null ? void 0 : item.children[0]) == null ? void 0 : _b.id : void 0
84
+ );
85
+ }
82
86
  },
83
87
  [setActiveKey]
84
88
  );
@@ -228,7 +232,11 @@ var PisellTabbar = (props) => {
228
232
  gap: 12
229
233
  },
230
234
  panelStyle: {
231
- height: "100%",
235
+ position: "absolute",
236
+ top: 40,
237
+ right: 0,
238
+ // zIndex: 99,
239
+ height: "calc(100% - 40px)",
232
240
  transition: "0.3s ease-in-out"
233
241
  },
234
242
  startSlot: null,
@@ -4,6 +4,7 @@
4
4
  .pisell-tabbar2 {
5
5
  // height: 100vh;
6
6
  width: 96px;
7
+ height: 100%;
7
8
  // position: fixed;
8
9
  // top: 0;
9
10
  // right: 0;
@@ -293,6 +293,7 @@ var TabbarLevel = (0, import_react.memo)((props) => {
293
293
  import_PisellCards.default.MultilevelCard,
294
294
  {
295
295
  ...itemProps,
296
+ panelWidthMode: "auto",
296
297
  card: (cardProps) => {
297
298
  if (level === "level1") {
298
299
  return renderLevel1NormalCard(cardProps);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  price: import("react").FC<import("./Price").PriceProps>;
4
3
  image: (props: import("./Image").ImageProps) => import("react").JSX.Element | null;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Calendar: (props: any) => import("react").JSX.Element;
3
2
  export default Calendar;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Checkbox: (props: any) => import("react").JSX.Element;
3
2
  export default Checkbox;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DataSourceQRCode: (props: any) => import("react").JSX.Element;
3
2
  export default DataSourceQRCode;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  declare const useDataSourceKey: () => {
3
- dataSourceKey: string | undefined;
4
- dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
2
+ dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
3
+ dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
5
4
  };
6
5
  export default useDataSourceKey;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const useDrawerState: (operationContent?: {
3
2
  [key: string]: import("react").ReactNode;
4
3
  } | undefined) => any;
@@ -19,7 +19,7 @@ interface UseTablePropsProps {
19
19
  */
20
20
  declare const useTableProps: (props: UseTablePropsProps) => {
21
21
  currentComponentId: any;
22
- title: number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
22
+ title: string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
23
23
  pagination: {
24
24
  total: number;
25
25
  current: number;
@@ -28,7 +28,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
28
28
  showSizeChanger: boolean;
29
29
  };
30
30
  columns: import("./useColumns").Column[];
31
- subTitle: number | boolean | React.JSX.Element | Iterable<React.ReactNode> | (() => React.ReactNode) | null | undefined;
31
+ subTitle: string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
32
32
  buttons: any[] | null;
33
33
  filter: {
34
34
  dom: any;
@@ -54,7 +54,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
54
54
  width: number;
55
55
  align: "center" | "left" | "right";
56
56
  fixed: false | "left" | "right";
57
- type: "link" | "button";
57
+ type: "button" | "link";
58
58
  items: OperationItem[];
59
59
  } | undefined;
60
60
  operationContent?: {
@@ -72,7 +72,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
72
72
  useCustomAction: boolean;
73
73
  actionType: string;
74
74
  openMode: "modal" | "drawer";
75
- openContentSize: "small" | "large" | "middle";
75
+ openContentSize: "small" | "middle" | "large";
76
76
  openTitle: string;
77
77
  key: string;
78
78
  } | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataSourceTableProps } from '../type';
3
2
  declare type Params = {
4
3
  pagination?: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const formFieldMap: {
3
2
  FormItemCheckbox: import("react").FC<{}> & {
4
3
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DatePicker: (props: any) => import("react").JSX.Element;
3
2
  export default DatePicker;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Text: () => import("react").JSX.Element;
3
2
  export default Text;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Text: (props: any) => import("react").JSX.Element;
3
2
  export default Text;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const PisellDatePicker: (props: any) => import("react").JSX.Element;
3
2
  export default PisellDatePicker;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import IpadModal from './IpadModal';
3
2
  import MobileModal from './MobileModal';
4
3
  import PcModal from './PcModal';
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Radio: (props: any) => import("react").JSX.Element;
3
2
  export default Radio;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Skeleton: (props: any) => import("react").JSX.Element;
3
2
  export default Skeleton;
@@ -1,5 +1,5 @@
1
1
  declare const useGapSize: (gap: number | number[]) => {
2
- horizontal: number;
3
- vertical: number;
2
+ horizontal: any;
3
+ vertical: any;
4
4
  };
5
5
  export default useGapSize;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[] | Record<string, any>[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import filter from "./filterUtil";
3
2
  declare const _default: {
4
3
  field: {
@@ -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
- }) => ("view_mode" | "filter_setting" | "group_by" | "order_by" | "column_setting" | "gallery_setting" | "filters")[];
158
+ }) => ("filters" | "filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TimePicker: (props: any) => import("react").JSX.Element;
3
2
  export default TimePicker;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Upload: (props: any) => import("react").JSX.Element;
3
2
  export default Upload;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const formatStringToTime: (value: string) => {
3
2
  valueArray: string[];
4
3
  valueString: string;
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string;
2
+ export declare const getCssNumber: (val: string | number) => string | number;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
@@ -1 +1 @@
1
- export declare const isMobile: () => boolean;
1
+ export declare const isMobile: () => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.8.1",
3
+ "version": "6.8.3",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -78,9 +78,9 @@
78
78
  "swiper": "^8.4.7",
79
79
  "antd-mobile": "^5.38.1",
80
80
  "vod-js-sdk-v6": "^1.4.11",
81
+ "@pisell/date-picker": "3.0.7",
81
82
  "@pisell/icon": "0.0.11",
82
- "@pisell/utils": "3.0.2",
83
- "@pisell/date-picker": "3.0.7"
83
+ "@pisell/utils": "3.0.2"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "react": "^18.0.0",