@pisell/materials 2.2.52 → 2.2.53

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 (116) 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.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/Pagination/index.d.ts +1 -1
  8. package/es/components/TimeResourceSelector/index.d.ts +21 -0
  9. package/es/components/appVersionControl/index.d.ts +1 -0
  10. package/es/components/collapse/index.d.ts +15 -0
  11. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  14. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  15. package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
  16. package/es/components/drag-sort-tree/index.d.ts +1 -0
  17. package/es/components/page/index.d.ts +1 -0
  18. package/es/components/pisellCard/index.d.ts +20 -0
  19. package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  20. package/es/components/pisellDropdown/index.d.ts +20 -0
  21. package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
  22. package/es/components/pisellImageCarousels/index.d.ts +18 -0
  23. package/es/components/pisellSectionHeaders/index.d.ts +21 -0
  24. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  25. package/es/components/productCard/components/Action/index.d.ts +4 -0
  26. package/es/components/productCard/components/AmountFooter/index.d.ts +4 -0
  27. package/es/components/productCard/components/Divider/index.d.ts +4 -0
  28. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
  29. package/es/components/productCard/components/Header/index.d.ts +4 -0
  30. package/es/components/productCard/components/MultiDay/index.d.ts +4 -0
  31. package/es/components/productCard/components/MultiDay/utils.d.ts +14 -0
  32. package/es/components/productCard/components/Note/index.d.ts +4 -0
  33. package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
  34. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
  35. package/es/components/productCard/components/Packages/components/options/index.d.ts +4 -0
  36. package/es/components/productCard/components/Packages/index.d.ts +4 -0
  37. package/es/components/productCard/components/Packages/utils.d.ts +20 -0
  38. package/es/components/productCard/components/Sales/index.d.ts +4 -0
  39. package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  40. package/es/components/productCard/components/Time/index.d.ts +4 -0
  41. package/es/components/productCard/status.d.ts +32 -0
  42. package/es/components/productCard/types.d.ts +78 -0
  43. package/es/components/section-footers/index.d.ts +9 -0
  44. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  45. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  46. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  47. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  48. package/es/components/table/Actions/component/ExportImport/index.d.ts +1 -0
  49. package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  50. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  51. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  52. package/es/components/table/Actions/component/ViewMode/index.d.ts +1 -0
  53. package/es/components/table/Actions/index.d.ts +1 -0
  54. package/es/components/table/BasicTable/index.d.ts +1 -0
  55. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  56. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  57. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  58. package/es/components/table/View/index.d.ts +1 -0
  59. package/es/components/walletCard/Guest/index.d.ts +4 -0
  60. package/es/components/walletCard/index.d.ts +65 -0
  61. package/lib/components/Pagination/index.d.ts +1 -1
  62. package/lib/components/TimeResourceSelector/index.d.ts +21 -0
  63. package/lib/components/appVersionControl/index.d.ts +1 -0
  64. package/lib/components/collapse/index.d.ts +15 -0
  65. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  66. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  67. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  68. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
  69. package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
  70. package/lib/components/drag-sort-tree/index.d.ts +1 -0
  71. package/lib/components/page/index.d.ts +1 -0
  72. package/lib/components/pisellCard/index.d.ts +20 -0
  73. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  74. package/lib/components/pisellDropdown/index.d.ts +20 -0
  75. package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
  76. package/lib/components/pisellImageCarousels/index.d.ts +18 -0
  77. package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
  78. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  79. package/lib/components/productCard/components/Action/index.d.ts +4 -0
  80. package/lib/components/productCard/components/AmountFooter/index.d.ts +4 -0
  81. package/lib/components/productCard/components/Divider/index.d.ts +4 -0
  82. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
  83. package/lib/components/productCard/components/Header/index.d.ts +4 -0
  84. package/lib/components/productCard/components/MultiDay/index.d.ts +4 -0
  85. package/lib/components/productCard/components/MultiDay/utils.d.ts +14 -0
  86. package/lib/components/productCard/components/Note/index.d.ts +4 -0
  87. package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
  88. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
  89. package/lib/components/productCard/components/Packages/components/options/index.d.ts +4 -0
  90. package/lib/components/productCard/components/Packages/index.d.ts +4 -0
  91. package/lib/components/productCard/components/Packages/utils.d.ts +20 -0
  92. package/lib/components/productCard/components/Sales/index.d.ts +4 -0
  93. package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  94. package/lib/components/productCard/components/Time/index.d.ts +4 -0
  95. package/lib/components/productCard/status.d.ts +32 -0
  96. package/lib/components/productCard/types.d.ts +78 -0
  97. package/lib/components/section-footers/index.d.ts +9 -0
  98. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  99. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  100. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  101. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  102. package/lib/components/table/Actions/component/ExportImport/index.d.ts +1 -0
  103. package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  104. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  105. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  106. package/lib/components/table/Actions/component/ViewMode/index.d.ts +1 -0
  107. package/lib/components/table/Actions/index.d.ts +1 -0
  108. package/lib/components/table/BasicTable/index.d.ts +1 -0
  109. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  110. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  111. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  112. package/lib/components/table/View/index.d.ts +1 -0
  113. package/lib/components/walletCard/Guest/index.d.ts +4 -0
  114. package/lib/components/walletCard/index.d.ts +65 -0
  115. package/lowcode/button-group/meta.ts +1 -4
  116. package/package.json +3 -3
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceGroupType } from "../../../types";
2
3
  declare type GroupProps = {
3
4
  setting: DataSourceGroupType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GridViewType, ModeType } from "../../../types";
2
3
  declare type ViewModeProps = {
3
4
  view: GridViewType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterType } from "../../filter/types";
2
3
  import { ColumnSettingType, DataSourceGroupType, ExportImportType, GallerySettingType, GridViewType, SortType } from "../types";
3
4
  import "./index.less";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TableProps } from 'antd';
2
3
  declare const BasicTable: (props: TableProps<any>) => JSX.Element;
3
4
  export default BasicTable;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType, GallerySettingValueType } from "../../../../../types";
2
3
  declare type CoverProps = {
3
4
  cover?: GallerySettingType["cover"];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType } from "../../../../../types";
2
3
  import "./index.less";
3
4
  declare type TitleProps = GallerySettingType["title"] & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const SortRow: ({ children, rowKey, onSortChange }: any) => JSX.Element;
3
4
  export default SortRow;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GridViewProps } from '../types';
2
3
  declare const View: (props: GridViewProps & {
3
4
  setTableSetting: (values: Record<string, any>) => void;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Guest: (props: any) => JSX.Element;
4
+ export default Guest;
@@ -0,0 +1,65 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare global {
4
+ namespace JSX {
5
+ interface IntrinsicElements {
6
+ [elemName: string]: any;
7
+ }
8
+ }
9
+ }
10
+ export interface WalletCardItem {
11
+ key: string;
12
+ label?: string;
13
+ hidden?: boolean;
14
+ value?: number;
15
+ }
16
+ export interface WalletCardProps {
17
+ /** 二维码弹窗适配平台 */
18
+ platform?: 'pc' | 'h5' | 'ipad';
19
+ /** 卡片主题 */
20
+ mode?: 'dark' | 'light';
21
+ /** 默认还是完整显示code */
22
+ cardStyle?: 'normal' | 'full';
23
+ /** 条形码还是二维码 */
24
+ codeType?: 'barCode' | 'orCode';
25
+ /** 二维码方向 */
26
+ codeDirection?: 'bottom' | 'top';
27
+ /** 自定义背景图 */
28
+ customBackgroundImage?: string;
29
+ /** 图标:可以是React组件或图片URL */
30
+ showIcon?: boolean;
31
+ showWalletName?: boolean;
32
+ iconImg?: string;
33
+ /** 钱包名称 */
34
+ walletName?: string;
35
+ /** 店铺名称 */
36
+ shopName?: string;
37
+ /** 是否显示店铺名称 */
38
+ showShopName?: boolean;
39
+ /** 卡号 */
40
+ cardNo?: string;
41
+ /** 是否显示卡号 */
42
+ showCardNo?: boolean;
43
+ /** 是否显示二维码 */
44
+ showCode?: boolean;
45
+ /** 点击二维码/条形码的回调 */
46
+ onCodeClick?: () => void;
47
+ /** 货币符号 */
48
+ symbol: string;
49
+ /** 点击卡片的回调 */
50
+ onClick?: () => void;
51
+ /** 自定义类名 */
52
+ className?: string;
53
+ items: WalletCardItem[];
54
+ /** 自定义样式 */
55
+ style?: React.CSSProperties;
56
+ title?: string;
57
+ subTitle?: string;
58
+ align?: 'left' | 'center';
59
+ buttonText?: string;
60
+ [key: string]: any;
61
+ /** 是否已登录 */
62
+ isLogin?: boolean;
63
+ }
64
+ declare const WalletCard: React.FC<WalletCardProps>;
65
+ export default WalletCard;
@@ -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: "page" | "next" | "prev" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
8
+ itemRender: (page: number, type: "next" | "page" | "prev" | "jump-prev" | "jump-next", element: React.ReactNode) => React.ReactNode;
9
9
  responsive: boolean;
10
10
  size: string;
11
11
  };
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface TimeSlot {
4
+ value: string;
5
+ label: string;
6
+ time: string;
7
+ remainingCount: number;
8
+ disabled?: boolean;
9
+ }
10
+ export interface TimeResourceSelectorProps {
11
+ timeSlots?: TimeSlot[];
12
+ multiple?: boolean;
13
+ showUnavailable?: boolean;
14
+ defaultExpanded?: boolean;
15
+ defaultSelectFirst?: boolean;
16
+ onChange?: (values: string | string[]) => void;
17
+ className?: string;
18
+ style?: React.CSSProperties;
19
+ }
20
+ declare const TimeResourceSelector: React.FC<TimeResourceSelectorProps>;
21
+ export default TimeResourceSelector;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AppVersionControlProps } from './types';
2
3
  import './index.less';
3
4
  declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface CollapseProps {
4
+ panelBackground?: string;
5
+ panelMarginBottom?: string | 0;
6
+ panelBorderRadius?: string | 0;
7
+ items: any[];
8
+ showHeader?: boolean;
9
+ headerColor?: string | '#101828';
10
+ headerFontSize?: string | 14;
11
+ expandIcon?: any;
12
+ [key: string]: any;
13
+ }
14
+ declare const Collapse: React.FC<CollapseProps>;
15
+ export default Collapse;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Drawer } from 'antd';
2
3
  import { OperationItem } from '../type';
3
4
  declare const useDrawerState: (operationContent?: {
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
20
+ title: number | boolean | JSX.Element | React.ReactFragment | (() => 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.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
29
+ subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
30
30
  buttons: any[] | null;
31
31
  filter: JSX.Element | null;
32
32
  onRow: (record: any) => any;
@@ -70,7 +70,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
70
70
  useCustomAction: boolean;
71
71
  actionType: string;
72
72
  openMode: "modal" | "drawer";
73
- openContentSize: "large" | "small" | "middle";
73
+ openContentSize: "small" | "middle" | "large";
74
74
  openTitle: string;
75
75
  key: string;
76
76
  } | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceTableProps } from '../type';
2
3
  declare type Params = {
3
4
  pagination?: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UrlProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  export declare const formatUrl: (url: string) => string;
@@ -20,7 +20,7 @@ declare const formFieldMap: {
20
20
  Subdomain: import("react").FC<import("antd").InputProps & {
21
21
  onChange: (value: string) => void;
22
22
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
23
- rootDomain: "custom" | "xzero" | "saas";
23
+ rootDomain: "custom" | "saas" | "xzero";
24
24
  customDomain?: string | undefined;
25
25
  value?: string | undefined;
26
26
  tenantId: string;
@@ -60,7 +60,13 @@ declare const formFieldMap: {
60
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
62
  };
63
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | (import("react").FC<import("./Input/type").InputProps> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
64
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
65
+ } & {
66
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
67
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
68
+ onChange: (value: string) => void;
69
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
64
70
  JSON: import("react").FC<any>;
65
71
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
66
72
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -73,18 +79,14 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
73
79
  Subdomain: import("react").FC<import("antd").InputProps & {
74
80
  onChange: (value: string) => void;
75
81
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
76
- rootDomain: "custom" | "xzero" | "saas";
82
+ rootDomain: "custom" | "saas" | "xzero";
77
83
  customDomain?: string | undefined;
78
84
  value?: string | undefined;
79
85
  tenantId: string;
80
86
  name?: string | undefined;
81
87
  fieldKey?: string | undefined;
82
88
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
83
- }) | (import("react").FC<{}> & {
84
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
85
- } & {
86
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
87
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
89
+ }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
88
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
89
91
  } & {
90
92
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -96,7 +98,5 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
96
98
  extraParams?: Record<string, any> | undefined;
97
99
  } & {
98
100
  dataSource?: any;
99
- }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
100
- onChange: (value: string) => void;
101
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
102
102
  export { getFieldComponent, formFieldMap };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { SortType } from './types';
3
4
  declare const DragSortTree: (props: SortType) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ConfigProviderProps } from '../config-provider';
2
3
  interface PageProps extends ConfigProviderProps {
3
4
  }
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { CardProps } from 'antd';
3
+ import './index.less';
4
+ export interface PisellCardProps extends CardProps {
5
+ bordered?: boolean;
6
+ selected?: boolean;
7
+ loading?: boolean;
8
+ padding?: number;
9
+ borderRadius?: number;
10
+ disabled?: boolean;
11
+ onClick?: () => void;
12
+ isClickable?: boolean;
13
+ }
14
+ /**
15
+ * Pisell 卡片容器组件
16
+ * @param props
17
+ * @constructor
18
+ */
19
+ declare const PisellCard: (props: PisellCardProps) => JSX.Element;
20
+ export default PisellCard;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellCustomCheckboxGroupProps {
4
+ dataSource?: any[];
5
+ disabled?: boolean;
6
+ allowAdd?: boolean;
7
+ isMultiple?: boolean;
8
+ id?: string | string[];
9
+ onClick?: (value: any) => void;
10
+ onAdd?: () => void;
11
+ renderAddItem?: (item: any) => React.ReactNode;
12
+ [key: string]: any;
13
+ className?: string;
14
+ }
15
+ declare const PisellCustomCheckboxGroup: React.FC<PisellCustomCheckboxGroupProps>;
16
+ export default PisellCustomCheckboxGroup;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface MenuItemType {
4
+ key: string;
5
+ label: string;
6
+ icon?: React.ReactNode;
7
+ shortcut?: string;
8
+ divider?: boolean;
9
+ }
10
+ export interface PisellDropdownProps {
11
+ trigger?: React.ReactNode;
12
+ items?: MenuItemType[];
13
+ showShortcut?: boolean;
14
+ triggerType?: ('click' | 'hover')[];
15
+ className?: string;
16
+ style?: React.CSSProperties;
17
+ onSelect?: (key: string) => void;
18
+ }
19
+ declare const PisellDropdown: React.FC<PisellDropdownProps>;
20
+ export default PisellDropdown;
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellHeaderProgressBarProps {
4
+ title?: React.ReactNode;
5
+ stepText?: React.ReactNode;
6
+ showClose?: boolean;
7
+ /** 是否启用投影 */
8
+ enableShadow?: boolean;
9
+ /** 是否启用描边 */
10
+ enableBorder?: boolean;
11
+ /** 描边粗细 */
12
+ borderWidth?: number;
13
+ /** 描边颜色 */
14
+ borderColor?: string;
15
+ /** 头部背景颜色 */
16
+ backgroundColor?: string;
17
+ /** 自定义类名 */
18
+ className?: string;
19
+ /** 自定义样式 */
20
+ style?: React.CSSProperties;
21
+ /** 是否显示返回键 */
22
+ showBack?: boolean;
23
+ /** 返回按钮点击事件 */
24
+ onBack?: () => void;
25
+ /** 关闭按钮点击事件 */
26
+ onClose?: () => void;
27
+ }
28
+ declare const PisellHeaderProgressBar: React.FC<PisellHeaderProgressBarProps>;
29
+ export default PisellHeaderProgressBar;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import 'swiper/swiper-bundle.css';
3
+ import './index.less';
4
+ export interface PisellImageCarouselsProps {
5
+ dataSource?: string[];
6
+ width?: number | string;
7
+ height?: number;
8
+ showArrows?: boolean;
9
+ showDots?: boolean;
10
+ autoplay?: boolean;
11
+ interval?: number;
12
+ borderRadius?: number;
13
+ loop?: boolean;
14
+ className?: string;
15
+ style?: React.CSSProperties;
16
+ }
17
+ declare const PisellImageCarousels: React.FC<PisellImageCarouselsProps>;
18
+ export default PisellImageCarousels;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellSectionHeadersProps {
4
+ /** 是否占据空间(true: 占据空间, false: 不占据空间) */
5
+ /** 左侧返回区域 */
6
+ backNode?: React.ReactNode;
7
+ /** 中间内容区域 */
8
+ centerNode?: React.ReactNode;
9
+ /** 右侧操作区域 */
10
+ actionNode?: React.ReactNode;
11
+ /** 自定义类名 */
12
+ className?: string;
13
+ /** 自定义样式 */
14
+ style?: React.CSSProperties;
15
+ /** 返回按钮点击事件 */
16
+ onBack?: () => void;
17
+ /** 操作区域点击事件 */
18
+ onAction?: () => void;
19
+ }
20
+ declare const PisellSectionHeaders: React.FC<PisellSectionHeadersProps>;
21
+ export default PisellSectionHeaders;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../../../pisell-config-provider/context';
3
+ export interface AmountProps extends React.HTMLAttributes<HTMLSpanElement> {
4
+ /** 平台 */
5
+ platform?: PisellContextType['platform'];
6
+ /** 当前数值 */
7
+ value?: number | string;
8
+ /** 小数点后位数 默认是小数点后2位 */
9
+ precision?: number;
10
+ /** 显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示 */
11
+ showCurrencySymbol?: boolean;
12
+ /** 千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭 */
13
+ useThousandsSeparator?: boolean;
14
+ /** 整数位隐藏小数 指的是如果价格为整数,后面的".00" 将被省略以节省页面空间 */
15
+ hideDecimalForWholeNumbers?: boolean;
16
+ /** 货币符号 */
17
+ symbol?: string;
18
+ }
19
+ declare const Amount: (props: AmountProps) => JSX.Element;
20
+ export default Amount;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Action: ({ item, onAction }: any) => JSX.Element;
4
+ export default Action;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
4
+ export default Footer;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Divider: ({ type }: any) => JSX.Element;
4
+ export default Divider;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const DeleteButton: ({ onDelete }: any) => JSX.Element;
4
+ export default DeleteButton;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Header: (props: any) => JSX.Element;
4
+ export default Header;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
4
+ export default MultiDay;
@@ -0,0 +1,14 @@
1
+ interface InputItem {
2
+ start_date: string;
3
+ end_date: string;
4
+ total: number;
5
+ num: number;
6
+ }
7
+ interface OutputItem {
8
+ start_date: string;
9
+ end_date: string;
10
+ total: number;
11
+ num: number;
12
+ }
13
+ export declare function formatDateRanges(list: InputItem[]): OutputItem[];
14
+ export {};
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Note: (props: any) => JSX.Element | null;
4
+ export default Note;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface CollapsibleListProps<T> {
4
+ list: T[];
5
+ renderItem: (item: T, index: number) => React.ReactNode;
6
+ className?: string;
7
+ style?: React.CSSProperties;
8
+ }
9
+ declare const CollapsibleList: React.FC<CollapsibleListProps<any>>;
10
+ export default CollapsibleList;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
4
+ export default Options;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Packages: ({ item, isShowPackageNote }: any) => JSX.Element | null;
4
+ export default Packages;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @title: 金额是否是负
3
+ * @description:
4
+ * @param {string} type
5
+ * @return {*}
6
+ * @Author: WangHan
7
+ * @Date: 2024-11-22 10:01
8
+ */
9
+ export declare const minusSign: (item: any, type?: string) => "" | "-";
10
+ /**
11
+ * @title: 金额格式化
12
+ * @description:
13
+ * @param {number} price
14
+ * @param {string} amountSymbol
15
+ * @param {number} digit
16
+ * @return {*}
17
+ * @Author: WangHan
18
+ * @Date: 2024-11-22 10:58
19
+ */
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
4
+ export default Sales;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Like: ({ status, onLike, className, style, }: {
4
+ style?: any;
5
+ status: string;
6
+ onLike?: any;
7
+ className?: string | undefined;
8
+ }) => JSX.Element;
9
+ export default Like;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Time: ({ item, isShowHolder, onLike }: any) => JSX.Element | null;
4
+ export default Time;
@@ -0,0 +1,32 @@
1
+ import { ProductCardTypes, bundleType, optionType, productType } from './types';
2
+ /**
3
+ * @title: 套餐数据
4
+ * @description:
5
+ * @return {*}
6
+ * @Author: WangHan
7
+ * @Date: 2025-01-02 23:21
8
+ */
9
+ export declare const defaultBundle: bundleType;
10
+ /**
11
+ * @description: 单规格
12
+ * @return {*}
13
+ * @Author: WangHan
14
+ * @Date: 2025-01-02 23:00
15
+ */
16
+ export declare const defaultOption: optionType;
17
+ /**
18
+ * @title: 商品商品类型
19
+ * @description:
20
+ * @return {*}
21
+ * @Author: WangHan
22
+ * @Date: 2025-01-02 22:48
23
+ */
24
+ export declare const defaultProduct: productType;
25
+ /**
26
+ * @title: 默认数据
27
+ * @description:
28
+ * @return {*}
29
+ * @Author: WangHan
30
+ * @Date: 2024-12-12 16:49
31
+ */
32
+ export declare const defaultValue: ProductCardTypes;