@pisell/materials 1.0.1057 → 1.0.1059
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +3 -3
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +20 -20
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -23
- package/es/components/PisellCards/index.d.ts +3 -0
- package/es/components/PisellCards/index.js +3 -1
- package/es/components/PisellContactBrief/PisellContactBrief.d.ts +13 -0
- package/es/components/PisellContactBrief/PisellContactBrief.js +223 -0
- package/es/components/PisellContactBrief/PisellContactBrief.less +192 -0
- package/es/components/PisellContactBrief/PisellContactBrief.stories.d.ts +31 -0
- package/es/components/PisellContactBrief/PisellContactBrief.stories.js +196 -0
- package/es/components/PisellContactBrief/components/ContactFormModal.d.ts +23 -0
- package/es/components/PisellContactBrief/components/ContactFormModal.js +177 -0
- package/es/components/PisellContactBrief/components/index.d.ts +5 -0
- package/es/components/PisellContactBrief/components/index.js +4 -0
- package/es/components/PisellContactBrief/index.d.ts +6 -0
- package/es/components/PisellContactBrief/index.js +5 -0
- package/es/components/PisellContactBrief/locales.d.ts +55 -0
- package/es/components/PisellContactBrief/locales.js +54 -0
- package/es/components/PisellContactBrief/types.d.ts +82 -0
- package/es/components/PisellContactBrief/types.js +1 -0
- package/es/components/dataSourceComponents/fields/Tabs/Tabs.less +8 -0
- package/es/components/pisellActionPanel/PisellActionPanel.d.ts +13 -0
- package/es/components/pisellActionPanel/PisellActionPanel.js +98 -0
- package/es/components/pisellActionPanel/PisellActionPanel.less +69 -0
- package/es/components/pisellActionPanel/PisellActionPanel.stories.d.ts +19 -0
- package/es/components/pisellActionPanel/PisellActionPanel.stories.js +208 -0
- package/es/components/pisellActionPanel/index.d.ts +6 -0
- package/es/components/pisellActionPanel/index.js +5 -0
- package/es/components/pisellActionPanel/types.d.ts +83 -0
- package/es/components/pisellActionPanel/types.js +1 -0
- package/es/components/pisellBaseCard/PisellBaseCard.d.ts +8 -0
- package/es/components/pisellBaseCard/PisellBaseCard.js +96 -0
- package/es/components/pisellBaseCard/PisellBaseCard.less +25 -0
- package/es/components/pisellBaseCard/PisellBaseCard.stories.d.ts +19 -0
- package/es/components/pisellBaseCard/PisellBaseCard.stories.js +99 -0
- package/es/components/pisellBaseCard/index.d.ts +5 -0
- package/es/components/pisellBaseCard/index.js +4 -0
- package/es/components/pisellBaseCard/types.d.ts +45 -0
- package/es/components/pisellBaseCard/types.js +1 -0
- package/es/components/pisellCurrency/PisellCurrency.js +18 -12
- package/es/components/pisellCurrency/PisellCurrency.less +0 -123
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +15 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.js +145 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.less +8 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.stories.d.ts +23 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.stories.js +193 -0
- package/es/components/pisellCustomerBrief/index.d.ts +6 -0
- package/es/components/pisellCustomerBrief/index.js +5 -0
- package/es/components/pisellCustomerBrief/types.d.ts +82 -0
- package/es/components/pisellCustomerBrief/types.js +1 -0
- package/es/components/pisellEmail/PisellEmail.js +48 -42
- package/es/components/pisellEmail/PisellEmail.less +0 -92
- package/es/components/pisellEntityCard/PisellEntityCard.d.ts +8 -0
- package/es/components/pisellEntityCard/PisellEntityCard.js +474 -0
- package/es/components/pisellEntityCard/PisellEntityCard.less +362 -0
- package/es/components/pisellEntityCard/PisellEntityCard.stories.d.ts +47 -0
- package/es/components/pisellEntityCard/PisellEntityCard.stories.js +450 -0
- package/es/components/pisellEntityCard/index.d.ts +5 -0
- package/es/components/pisellEntityCard/index.js +4 -0
- package/es/components/pisellEntityCard/types.d.ts +144 -0
- package/es/components/pisellEntityCard/types.js +1 -0
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +32 -4
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +4 -2
- package/es/components/pisellFloorMapLayout/components/ViewControls.d.ts +4 -0
- package/es/components/pisellFloorMapLayout/components/ViewControls.js +12 -2
- package/es/components/pisellFloorMapLayout/types.d.ts +2 -0
- package/es/components/pisellLongText/PisellLongText.js +18 -12
- package/es/components/pisellLongText/PisellLongText.less +0 -67
- package/es/components/pisellLookup/PisellLookup.js +8 -1
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.js +14 -6
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +18 -139
- package/es/components/pisellMultipleSelect/components/EditView.js +1 -0
- package/es/components/pisellNumber/PisellNumber.js +18 -12
- package/es/components/pisellNumber/PisellNumber.less +0 -103
- package/es/components/pisellPhone/PisellPhone.js +18 -12
- package/es/components/pisellPhone/PisellPhone.less +0 -119
- package/es/components/pisellPhone/components/EditView.js +44 -33
- package/es/components/pisellPhone/constants/countryCodes.d.ts +1 -0
- package/es/components/pisellPhone/constants/countryCodes.js +26 -25
- package/es/components/pisellPhone/types.d.ts +2 -2
- package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +4 -4
- package/es/components/pisellPhone/utils/countryCodeHelper.js +5 -5
- package/es/components/pisellRating/PisellRating.js +7 -3
- package/es/components/pisellSingleLineText/PisellSingleLineText.js +27 -20
- package/es/components/pisellSingleLineText/PisellSingleLineText.less +58 -201
- package/es/components/pisellSingleSelect/PisellSingleSelect.js +14 -5
- package/es/components/pisellSingleSelect/PisellSingleSelect.less +5 -106
- package/es/components/pisellUrl/PisellUrl.js +48 -42
- package/es/components/pisellWalletPassCard/index.js +2 -1
- package/es/index.d.ts +15 -4
- package/es/index.js +8 -4
- package/es/theme/pisell-components.d.ts +14 -0
- package/es/theme/pisell-components.js +74 -0
- package/lib/components/PisellCards/index.d.ts +3 -0
- package/lib/components/PisellCards/index.js +3 -1
- package/lib/components/PisellContactBrief/PisellContactBrief.d.ts +13 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.js +231 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.less +192 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.stories.d.ts +31 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.stories.js +188 -0
- package/lib/components/PisellContactBrief/components/ContactFormModal.d.ts +23 -0
- package/lib/components/PisellContactBrief/components/ContactFormModal.js +154 -0
- package/lib/components/PisellContactBrief/components/index.d.ts +5 -0
- package/lib/components/PisellContactBrief/components/index.js +29 -0
- package/lib/components/PisellContactBrief/index.d.ts +6 -0
- package/lib/components/PisellContactBrief/index.js +29 -0
- package/lib/components/PisellContactBrief/locales.d.ts +55 -0
- package/lib/components/PisellContactBrief/locales.js +74 -0
- package/lib/components/PisellContactBrief/types.d.ts +82 -0
- package/lib/components/PisellContactBrief/types.js +17 -0
- package/lib/components/dataSourceComponents/fields/Tabs/Tabs.less +8 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.d.ts +13 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.js +124 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.less +69 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.stories.d.ts +19 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.stories.js +186 -0
- package/lib/components/pisellActionPanel/index.d.ts +6 -0
- package/lib/components/pisellActionPanel/index.js +29 -0
- package/lib/components/pisellActionPanel/types.d.ts +83 -0
- package/lib/components/pisellActionPanel/types.js +17 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.d.ts +8 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.js +124 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.less +25 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.stories.d.ts +19 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.stories.js +107 -0
- package/lib/components/pisellBaseCard/index.d.ts +5 -0
- package/lib/components/pisellBaseCard/index.js +29 -0
- package/lib/components/pisellBaseCard/types.d.ts +45 -0
- package/lib/components/pisellBaseCard/types.js +17 -0
- package/lib/components/pisellCurrency/PisellCurrency.js +16 -10
- package/lib/components/pisellCurrency/PisellCurrency.less +0 -123
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +15 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.js +143 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.less +8 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.stories.d.ts +23 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.stories.js +171 -0
- package/lib/components/pisellCustomerBrief/index.d.ts +6 -0
- package/lib/components/pisellCustomerBrief/index.js +29 -0
- package/lib/components/pisellCustomerBrief/types.d.ts +82 -0
- package/lib/components/pisellCustomerBrief/types.js +17 -0
- package/lib/components/pisellEmail/PisellEmail.js +16 -10
- package/lib/components/pisellEmail/PisellEmail.less +0 -92
- package/lib/components/pisellEntityCard/PisellEntityCard.d.ts +8 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.js +426 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.less +362 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.stories.d.ts +47 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.stories.js +349 -0
- package/lib/components/pisellEntityCard/index.d.ts +5 -0
- package/lib/components/pisellEntityCard/index.js +29 -0
- package/lib/components/pisellEntityCard/types.d.ts +144 -0
- package/lib/components/pisellEntityCard/types.js +17 -0
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +22 -3
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +2 -2
- package/lib/components/pisellFloorMapLayout/components/ViewControls.d.ts +4 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControls.js +11 -1
- package/lib/components/pisellFloorMapLayout/types.d.ts +2 -0
- package/lib/components/pisellLongText/PisellLongText.js +16 -10
- package/lib/components/pisellLongText/PisellLongText.less +0 -67
- package/lib/components/pisellLookup/PisellLookup.js +5 -1
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.js +62 -53
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +18 -139
- package/lib/components/pisellMultipleSelect/components/EditView.js +42 -30
- package/lib/components/pisellNumber/PisellNumber.js +16 -10
- package/lib/components/pisellNumber/PisellNumber.less +0 -103
- package/lib/components/pisellPhone/PisellPhone.js +16 -10
- package/lib/components/pisellPhone/PisellPhone.less +0 -119
- package/lib/components/pisellPhone/components/EditView.js +40 -24
- package/lib/components/pisellPhone/constants/countryCodes.d.ts +1 -0
- package/lib/components/pisellPhone/constants/countryCodes.js +24 -24
- package/lib/components/pisellPhone/types.d.ts +2 -2
- package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +4 -4
- package/lib/components/pisellPhone/utils/countryCodeHelper.js +1 -1
- package/lib/components/pisellRating/PisellRating.js +4 -2
- package/lib/components/pisellSingleLineText/PisellSingleLineText.js +16 -10
- package/lib/components/pisellSingleLineText/PisellSingleLineText.less +58 -201
- package/lib/components/pisellSingleSelect/PisellSingleSelect.js +34 -35
- package/lib/components/pisellSingleSelect/PisellSingleSelect.less +5 -106
- package/lib/components/pisellUrl/PisellUrl.js +16 -10
- package/lib/components/pisellWalletPassCard/index.js +1 -1
- package/lib/index.d.ts +15 -4
- package/lib/index.js +18 -3
- package/lib/theme/pisell-components.d.ts +14 -0
- package/lib/theme/pisell-components.js +89 -0
- package/lowcode/pisell-action-panel/meta.ts +146 -0
- package/lowcode/pisell-action-panel/snippets.ts +42 -0
- package/lowcode/pisell-base-card/meta.ts +98 -0
- package/lowcode/pisell-base-card/snippets.ts +13 -0
- package/lowcode/pisell-contact-brief/meta.ts +178 -0
- package/lowcode/pisell-contact-brief/snippets.ts +40 -0
- package/lowcode/pisell-customer-brief/meta.ts +262 -0
- package/lowcode/pisell-customer-brief/snippets.ts +46 -0
- package/lowcode/pisell-entity-card/meta.ts +296 -0
- package/lowcode/pisell-entity-card/snippets.ts +41 -0
- package/lowcode/pisell-floor-map-layout/meta.ts +37 -1
- package/package.json +4 -4
|
@@ -1,40 +1,42 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ConfigProvider } from 'antd';
|
|
2
3
|
import { getDisplayState } from '@pisell/utils';
|
|
3
4
|
import ReadOnlyView from "./components/ReadOnlyView";
|
|
4
5
|
import EditView from "./components/EditView";
|
|
5
6
|
import DisabledView from "./components/DisabledView";
|
|
7
|
+
import { getPisellComponentsThemeConfig } from "../../theme/pisell-components";
|
|
6
8
|
import "./PisellEmail.less";
|
|
7
9
|
|
|
8
|
-
/**
|
|
9
|
-
* PisellEmail 邮箱地址组件
|
|
10
|
-
*
|
|
11
|
-
* 邮箱地址输入/展示组件,支持只读、编辑、禁用三种状态。
|
|
12
|
-
* 基于 Ant Design AutoComplete 和 Input 组件开发,提供邮箱格式校验、域名智能补全、
|
|
13
|
-
* mailto 邮件发送和域名隐藏功能。
|
|
14
|
-
*
|
|
15
|
-
* @param props 组件 Props
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* // 编辑态(邮箱输入)
|
|
19
|
-
* <PisellEmail
|
|
20
|
-
* placeholder="请输入邮箱地址"
|
|
21
|
-
* required
|
|
22
|
-
* />
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* // 只读态(可发邮件)
|
|
26
|
-
* <PisellEmail
|
|
27
|
-
* mode="read"
|
|
28
|
-
* value="user@example.com"
|
|
29
|
-
* enableMailto
|
|
30
|
-
* />
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* // 域名补全
|
|
34
|
-
* <PisellEmail
|
|
35
|
-
* enableAutoComplete
|
|
36
|
-
* autoCompleteDomains={['gmail.com', 'company.com']}
|
|
37
|
-
* />
|
|
10
|
+
/**
|
|
11
|
+
* PisellEmail 邮箱地址组件
|
|
12
|
+
*
|
|
13
|
+
* 邮箱地址输入/展示组件,支持只读、编辑、禁用三种状态。
|
|
14
|
+
* 基于 Ant Design AutoComplete 和 Input 组件开发,提供邮箱格式校验、域名智能补全、
|
|
15
|
+
* mailto 邮件发送和域名隐藏功能。
|
|
16
|
+
*
|
|
17
|
+
* @param props 组件 Props
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* // 编辑态(邮箱输入)
|
|
21
|
+
* <PisellEmail
|
|
22
|
+
* placeholder="请输入邮箱地址"
|
|
23
|
+
* required
|
|
24
|
+
* />
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // 只读态(可发邮件)
|
|
28
|
+
* <PisellEmail
|
|
29
|
+
* mode="read"
|
|
30
|
+
* value="user@example.com"
|
|
31
|
+
* enableMailto
|
|
32
|
+
* />
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* // 域名补全
|
|
36
|
+
* <PisellEmail
|
|
37
|
+
* enableAutoComplete
|
|
38
|
+
* autoCompleteDomains={['gmail.com', 'company.com']}
|
|
39
|
+
* />
|
|
38
40
|
*/
|
|
39
41
|
export var PisellEmail = function PisellEmail(props) {
|
|
40
42
|
var _props$mode = props.mode,
|
|
@@ -44,18 +46,22 @@ export var PisellEmail = function PisellEmail(props) {
|
|
|
44
46
|
|
|
45
47
|
// 计算显示状态
|
|
46
48
|
var displayState = getDisplayState(mode, disabled);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
49
|
+
var render = function render() {
|
|
50
|
+
switch (displayState) {
|
|
51
|
+
case 'read':
|
|
52
|
+
return /*#__PURE__*/React.createElement(ReadOnlyView, props);
|
|
53
|
+
case 'edit':
|
|
54
|
+
return /*#__PURE__*/React.createElement(EditView, props);
|
|
55
|
+
case 'disabled':
|
|
56
|
+
return /*#__PURE__*/React.createElement(DisabledView, props);
|
|
57
|
+
default:
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
var theme = getPisellComponentsThemeConfig();
|
|
62
|
+
return /*#__PURE__*/React.createElement(ConfigProvider, {
|
|
63
|
+
theme: theme
|
|
64
|
+
}, render());
|
|
59
65
|
};
|
|
60
66
|
|
|
61
67
|
// 性能优化:使用 memo 避免不必要的重渲染
|
|
@@ -7,98 +7,6 @@
|
|
|
7
7
|
&-edit {
|
|
8
8
|
position: relative;
|
|
9
9
|
width: 100%;
|
|
10
|
-
|
|
11
|
-
// 仅对 affix-wrapper 设边框,避免与内层 input 双边框(Figma 设计规范)
|
|
12
|
-
.pisell-lowcode-input-affix-wrapper {
|
|
13
|
-
font-size: 16px !important;
|
|
14
|
-
line-height: 24px !important;
|
|
15
|
-
border-radius: 8px !important;
|
|
16
|
-
border: 1px solid #d0d5dd !important; // Gray/300
|
|
17
|
-
padding: 0 !important;
|
|
18
|
-
height: 48px !important;
|
|
19
|
-
color: #101828 !important; // Gray/900
|
|
20
|
-
background-color: #ffffff !important;
|
|
21
|
-
|
|
22
|
-
&:focus,
|
|
23
|
-
&:focus-within {
|
|
24
|
-
border-color: #d6bbfb !important; // Primary/300
|
|
25
|
-
box-shadow: 0 0 0 4px #f4ebff !important; // Primary/100
|
|
26
|
-
outline: none !important;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&:hover:not(:focus):not(:focus-within):not([disabled]) {
|
|
30
|
-
border-color: #b692f6 !important; // Primary/400
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&[disabled],
|
|
34
|
-
&.pisell-lowcode-input-disabled {
|
|
35
|
-
background-color: #f9fafb !important; // Gray/50
|
|
36
|
-
color: #98a2b3 !important; // Gray/400
|
|
37
|
-
border-color: #d0d5dd !important;
|
|
38
|
-
cursor: not-allowed !important;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// 内层 input(无边框,由 wrapper 统一描边)
|
|
43
|
-
.pisell-lowcode-input-affix-wrapper .pisell-lowcode-input {
|
|
44
|
-
&::placeholder {
|
|
45
|
-
color: #667085 !important; // Gray/500
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// 带前缀(邮箱图标)的 Input 容器
|
|
50
|
-
.pisell-lowcode-input-affix-wrapper {
|
|
51
|
-
|
|
52
|
-
.pisell-lowcode-input-prefix {
|
|
53
|
-
margin-right: 8px;
|
|
54
|
-
margin-left: 16px;
|
|
55
|
-
color: #667085; // Gray/500
|
|
56
|
-
font-size: 16px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.pisell-lowcode-input-suffix {
|
|
60
|
-
margin-left: 8px;
|
|
61
|
-
margin-right: 16px;
|
|
62
|
-
color: #667085;
|
|
63
|
-
font-size: 16px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.pisell-lowcode-input {
|
|
67
|
-
padding: 12px 0 !important;
|
|
68
|
-
border: none !important;
|
|
69
|
-
box-shadow: none !important;
|
|
70
|
-
|
|
71
|
-
&:focus {
|
|
72
|
-
box-shadow: none !important;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// 清空按钮
|
|
78
|
-
.pisell-lowcode-input-clear-icon {
|
|
79
|
-
color: #667085 !important;
|
|
80
|
-
font-size: 14px !important;
|
|
81
|
-
|
|
82
|
-
&:hover {
|
|
83
|
-
color: #344054 !important; // Gray/700
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// 错误状态
|
|
88
|
-
.pisell-lowcode-input-status-error,
|
|
89
|
-
.pisell-lowcode-input-affix-wrapper-status-error {
|
|
90
|
-
border-color: #fda29b !important; // Error/300
|
|
91
|
-
|
|
92
|
-
&:focus,
|
|
93
|
-
&:focus-within {
|
|
94
|
-
border-color: #f97066 !important; // Error/400
|
|
95
|
-
box-shadow: 0 0 0 4px #fee4e2 !important; // Error/100
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&:hover:not(:focus):not(:focus-within) {
|
|
99
|
-
border-color: #f97066 !important; // Error/400
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
10
|
}
|
|
103
11
|
|
|
104
12
|
// 错误提示(与设计体系一致)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { PisellEntityCardProps } from './types';
|
|
3
|
+
import './PisellEntityCard.less';
|
|
4
|
+
/**
|
|
5
|
+
* PisellEntityCard 实体卡片
|
|
6
|
+
* 基于 PisellBaseCard,使用结构化配置展示实体信息,支持密度、布局、左滑删除与插槽
|
|
7
|
+
*/
|
|
8
|
+
export declare function PisellEntityCard({ children, className, style, hoverStyle, activeStyle, disabledStyle, clickable, disabled, onClick, media, primaryText, subtitleText, secondaryTexts, tags, actions, showMedia, showPrimaryText, showSubtitle, showSecondaryText, showTags, showActions, density, layout, width, swipeToDelete, onDelete, tagPosition, contentGap, primaryLineClamp, secondaryLineClamp: secondaryLineClampProp, renderMedia, renderPrimary, renderSubtitle, renderSecondary, renderTags, renderActions, }: PisellEntityCardProps): JSX.Element;
|