@pisell/materials 6.11.208 → 6.11.210

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.
@@ -48,6 +48,7 @@ var PisellLookupComponent = /*#__PURE__*/forwardRef(function (props, ref) {
48
48
  _props$showPrefixIcon = props.showPrefixIcon,
49
49
  showPrefixIcon = _props$showPrefixIcon === void 0 ? false : _props$showPrefixIcon,
50
50
  prefixIcon = props.prefixIcon,
51
+ addonBefore = props.addonBefore,
51
52
  _props$showClear = props.showClear,
52
53
  showClear = _props$showClear === void 0 ? true : _props$showClear,
53
54
  _props$showConfirmBut = props.showConfirmButton,
@@ -489,6 +490,7 @@ var PisellLookupComponent = /*#__PURE__*/forwardRef(function (props, ref) {
489
490
  size: size,
490
491
  showPrefixIcon: showPrefixIcon,
491
492
  prefixIcon: prefixIcon,
493
+ addonBefore: addonBefore,
492
494
  showClear: showClear,
493
495
  showConfirmButton: showConfirmButton,
494
496
  confirmButtonText: confirmButtonText,
@@ -631,6 +633,7 @@ var PisellLookupComponent = /*#__PURE__*/forwardRef(function (props, ref) {
631
633
  size: size,
632
634
  showPrefixIcon: showPrefixIcon,
633
635
  prefixIcon: prefixIcon,
636
+ addonBefore: addonBefore,
634
637
  showClear: showClear,
635
638
  showConfirmButton: showConfirmButton,
636
639
  confirmButtonText: confirmButtonText,
@@ -39,6 +39,7 @@ var LookupTriggerComponent = /*#__PURE__*/forwardRef(function (props, ref) {
39
39
  _props$showPrefixIcon = props.showPrefixIcon,
40
40
  showPrefixIcon = _props$showPrefixIcon === void 0 ? false : _props$showPrefixIcon,
41
41
  prefixIcon = props.prefixIcon,
42
+ addonBefore = props.addonBefore,
42
43
  _props$showClear = props.showClear,
43
44
  showClear = _props$showClear === void 0 ? true : _props$showClear,
44
45
  _props$showConfirmBut = props.showConfirmButton,
@@ -248,6 +249,7 @@ var LookupTriggerComponent = /*#__PURE__*/forwardRef(function (props, ref) {
248
249
  disabled: disabled,
249
250
  prefix: prefix,
250
251
  suffix: suffix,
252
+ addonBefore: addonBefore,
251
253
  autoFocus: autoFocus,
252
254
  className: "pisell-lookup-trigger-input ".concat(className || '').trim(),
253
255
  style: style
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 自定义 Hooks 统一导出
3
+ */
4
+ export * from './useSearchState';
5
+ export * from './useSearchHistory';
6
+ export * from './useDebounceSearch';
@@ -91,6 +91,13 @@ export interface PisellLookupProps {
91
91
  * 前缀图标
92
92
  */
93
93
  prefixIcon?: React.ReactNode;
94
+ /**
95
+ * 输入框前置内容(透传给底层 antd Input 的 `addonBefore`)。
96
+ *
97
+ * 与输入框连成一体显示在左侧,例如在搜索框内嵌一个「搜索字段」Select。
98
+ * 仅 `triggerType='input'` 形态生效。
99
+ */
100
+ addonBefore?: React.ReactNode;
94
101
  /**
95
102
  * 是否显示清除按钮
96
103
  * @default true
@@ -391,6 +398,10 @@ export interface LookupTriggerProps {
391
398
  * 前缀图标
392
399
  */
393
400
  prefixIcon?: React.ReactNode;
401
+ /**
402
+ * 输入框前置内容(透传给底层 antd Input 的 `addonBefore`)
403
+ */
404
+ addonBefore?: React.ReactNode;
394
405
  /**
395
406
  * 是否显示清除按钮
396
407
  */
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { PisellSortProps } from './type';
3
+ declare const PisellSort: (props: PisellSortProps) => React.JSX.Element;
4
+ export default PisellSort;
@@ -53,6 +53,7 @@ var PisellLookupComponent = (0, import_react.forwardRef)((props, ref) => {
53
53
  disabled = false,
54
54
  showPrefixIcon = false,
55
55
  prefixIcon,
56
+ addonBefore,
56
57
  showClear = true,
57
58
  showConfirmButton = true,
58
59
  confirmButtonText = (0, import_locales.getText)("pisell-lookup-confirm-button-text"),
@@ -312,6 +313,7 @@ var PisellLookupComponent = (0, import_react.forwardRef)((props, ref) => {
312
313
  size,
313
314
  showPrefixIcon,
314
315
  prefixIcon,
316
+ addonBefore,
315
317
  showClear,
316
318
  showConfirmButton,
317
319
  confirmButtonText,
@@ -415,6 +417,7 @@ var PisellLookupComponent = (0, import_react.forwardRef)((props, ref) => {
415
417
  size,
416
418
  showPrefixIcon,
417
419
  prefixIcon,
420
+ addonBefore,
418
421
  showClear,
419
422
  showConfirmButton,
420
423
  confirmButtonText,
@@ -53,6 +53,7 @@ var LookupTriggerComponent = (0, import_react.forwardRef)(
53
53
  size = "middle",
54
54
  showPrefixIcon = false,
55
55
  prefixIcon,
56
+ addonBefore,
56
57
  showClear = true,
57
58
  showConfirmButton = true,
58
59
  confirmButtonText = (0, import_locales.getText)("pisell-lookup-confirm-button-text"),
@@ -184,6 +185,7 @@ var LookupTriggerComponent = (0, import_react.forwardRef)(
184
185
  disabled,
185
186
  prefix,
186
187
  suffix,
188
+ addonBefore,
187
189
  autoFocus,
188
190
  className: `pisell-lookup-trigger-input ${className || ""}`.trim(),
189
191
  style
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 自定义 Hooks 统一导出
3
+ */
4
+ export * from './useSearchState';
5
+ export * from './useSearchHistory';
6
+ export * from './useDebounceSearch';
@@ -91,6 +91,13 @@ export interface PisellLookupProps {
91
91
  * 前缀图标
92
92
  */
93
93
  prefixIcon?: React.ReactNode;
94
+ /**
95
+ * 输入框前置内容(透传给底层 antd Input 的 `addonBefore`)。
96
+ *
97
+ * 与输入框连成一体显示在左侧,例如在搜索框内嵌一个「搜索字段」Select。
98
+ * 仅 `triggerType='input'` 形态生效。
99
+ */
100
+ addonBefore?: React.ReactNode;
94
101
  /**
95
102
  * 是否显示清除按钮
96
103
  * @default true
@@ -391,6 +398,10 @@ export interface LookupTriggerProps {
391
398
  * 前缀图标
392
399
  */
393
400
  prefixIcon?: React.ReactNode;
401
+ /**
402
+ * 输入框前置内容(透传给底层 antd Input 的 `addonBefore`)
403
+ */
404
+ addonBefore?: React.ReactNode;
394
405
  /**
395
406
  * 是否显示清除按钮
396
407
  */
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { PisellSortProps } from './type';
3
+ declare const PisellSort: (props: PisellSortProps) => React.JSX.Element;
4
+ export default PisellSort;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "6.11.208",
3
+ "version": "6.11.210",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -98,9 +98,9 @@
98
98
  "swiper": "^8.4.7",
99
99
  "antd-mobile": "^5.38.1",
100
100
  "vod-js-sdk-v6": "^1.4.11",
101
+ "@pisell/date-picker": "3.0.8",
101
102
  "@pisell/icon": "0.0.11",
102
- "@pisell/utils": "3.0.2",
103
- "@pisell/date-picker": "3.0.8"
103
+ "@pisell/utils": "3.0.2"
104
104
  },
105
105
  "peerDependencies": {
106
106
  "react": "^18.0.0",