@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.
Files changed (202) 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 +9 -9
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +20 -20
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +23 -23
  11. package/es/components/PisellCards/index.d.ts +3 -0
  12. package/es/components/PisellCards/index.js +3 -1
  13. package/es/components/PisellContactBrief/PisellContactBrief.d.ts +13 -0
  14. package/es/components/PisellContactBrief/PisellContactBrief.js +223 -0
  15. package/es/components/PisellContactBrief/PisellContactBrief.less +192 -0
  16. package/es/components/PisellContactBrief/PisellContactBrief.stories.d.ts +31 -0
  17. package/es/components/PisellContactBrief/PisellContactBrief.stories.js +196 -0
  18. package/es/components/PisellContactBrief/components/ContactFormModal.d.ts +23 -0
  19. package/es/components/PisellContactBrief/components/ContactFormModal.js +177 -0
  20. package/es/components/PisellContactBrief/components/index.d.ts +5 -0
  21. package/es/components/PisellContactBrief/components/index.js +4 -0
  22. package/es/components/PisellContactBrief/index.d.ts +6 -0
  23. package/es/components/PisellContactBrief/index.js +5 -0
  24. package/es/components/PisellContactBrief/locales.d.ts +55 -0
  25. package/es/components/PisellContactBrief/locales.js +54 -0
  26. package/es/components/PisellContactBrief/types.d.ts +82 -0
  27. package/es/components/PisellContactBrief/types.js +1 -0
  28. package/es/components/dataSourceComponents/fields/Tabs/Tabs.less +8 -0
  29. package/es/components/pisellActionPanel/PisellActionPanel.d.ts +13 -0
  30. package/es/components/pisellActionPanel/PisellActionPanel.js +98 -0
  31. package/es/components/pisellActionPanel/PisellActionPanel.less +69 -0
  32. package/es/components/pisellActionPanel/PisellActionPanel.stories.d.ts +19 -0
  33. package/es/components/pisellActionPanel/PisellActionPanel.stories.js +208 -0
  34. package/es/components/pisellActionPanel/index.d.ts +6 -0
  35. package/es/components/pisellActionPanel/index.js +5 -0
  36. package/es/components/pisellActionPanel/types.d.ts +83 -0
  37. package/es/components/pisellActionPanel/types.js +1 -0
  38. package/es/components/pisellBaseCard/PisellBaseCard.d.ts +8 -0
  39. package/es/components/pisellBaseCard/PisellBaseCard.js +96 -0
  40. package/es/components/pisellBaseCard/PisellBaseCard.less +25 -0
  41. package/es/components/pisellBaseCard/PisellBaseCard.stories.d.ts +19 -0
  42. package/es/components/pisellBaseCard/PisellBaseCard.stories.js +99 -0
  43. package/es/components/pisellBaseCard/index.d.ts +5 -0
  44. package/es/components/pisellBaseCard/index.js +4 -0
  45. package/es/components/pisellBaseCard/types.d.ts +45 -0
  46. package/es/components/pisellBaseCard/types.js +1 -0
  47. package/es/components/pisellCurrency/PisellCurrency.js +18 -12
  48. package/es/components/pisellCurrency/PisellCurrency.less +0 -123
  49. package/es/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +15 -0
  50. package/es/components/pisellCustomerBrief/PisellCustomerBrief.js +145 -0
  51. package/es/components/pisellCustomerBrief/PisellCustomerBrief.less +8 -0
  52. package/es/components/pisellCustomerBrief/PisellCustomerBrief.stories.d.ts +23 -0
  53. package/es/components/pisellCustomerBrief/PisellCustomerBrief.stories.js +193 -0
  54. package/es/components/pisellCustomerBrief/index.d.ts +6 -0
  55. package/es/components/pisellCustomerBrief/index.js +5 -0
  56. package/es/components/pisellCustomerBrief/types.d.ts +82 -0
  57. package/es/components/pisellCustomerBrief/types.js +1 -0
  58. package/es/components/pisellEmail/PisellEmail.js +48 -42
  59. package/es/components/pisellEmail/PisellEmail.less +0 -92
  60. package/es/components/pisellEntityCard/PisellEntityCard.d.ts +8 -0
  61. package/es/components/pisellEntityCard/PisellEntityCard.js +474 -0
  62. package/es/components/pisellEntityCard/PisellEntityCard.less +362 -0
  63. package/es/components/pisellEntityCard/PisellEntityCard.stories.d.ts +47 -0
  64. package/es/components/pisellEntityCard/PisellEntityCard.stories.js +450 -0
  65. package/es/components/pisellEntityCard/index.d.ts +5 -0
  66. package/es/components/pisellEntityCard/index.js +4 -0
  67. package/es/components/pisellEntityCard/types.d.ts +144 -0
  68. package/es/components/pisellEntityCard/types.js +1 -0
  69. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +32 -4
  70. package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +4 -2
  71. package/es/components/pisellFloorMapLayout/components/ViewControls.d.ts +4 -0
  72. package/es/components/pisellFloorMapLayout/components/ViewControls.js +12 -2
  73. package/es/components/pisellFloorMapLayout/types.d.ts +2 -0
  74. package/es/components/pisellLongText/PisellLongText.js +18 -12
  75. package/es/components/pisellLongText/PisellLongText.less +0 -67
  76. package/es/components/pisellLookup/PisellLookup.js +8 -1
  77. package/es/components/pisellMultipleSelect/PisellMultipleSelect.js +14 -6
  78. package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +18 -139
  79. package/es/components/pisellMultipleSelect/components/EditView.js +1 -0
  80. package/es/components/pisellNumber/PisellNumber.js +18 -12
  81. package/es/components/pisellNumber/PisellNumber.less +0 -103
  82. package/es/components/pisellPhone/PisellPhone.js +18 -12
  83. package/es/components/pisellPhone/PisellPhone.less +0 -119
  84. package/es/components/pisellPhone/components/EditView.js +44 -33
  85. package/es/components/pisellPhone/constants/countryCodes.d.ts +1 -0
  86. package/es/components/pisellPhone/constants/countryCodes.js +26 -25
  87. package/es/components/pisellPhone/types.d.ts +2 -2
  88. package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +4 -4
  89. package/es/components/pisellPhone/utils/countryCodeHelper.js +5 -5
  90. package/es/components/pisellRating/PisellRating.js +7 -3
  91. package/es/components/pisellSingleLineText/PisellSingleLineText.js +27 -20
  92. package/es/components/pisellSingleLineText/PisellSingleLineText.less +58 -201
  93. package/es/components/pisellSingleSelect/PisellSingleSelect.js +14 -5
  94. package/es/components/pisellSingleSelect/PisellSingleSelect.less +5 -106
  95. package/es/components/pisellUrl/PisellUrl.js +48 -42
  96. package/es/components/pisellWalletPassCard/index.js +2 -1
  97. package/es/index.d.ts +15 -4
  98. package/es/index.js +8 -4
  99. package/es/theme/pisell-components.d.ts +14 -0
  100. package/es/theme/pisell-components.js +74 -0
  101. package/lib/components/PisellCards/index.d.ts +3 -0
  102. package/lib/components/PisellCards/index.js +3 -1
  103. package/lib/components/PisellContactBrief/PisellContactBrief.d.ts +13 -0
  104. package/lib/components/PisellContactBrief/PisellContactBrief.js +231 -0
  105. package/lib/components/PisellContactBrief/PisellContactBrief.less +192 -0
  106. package/lib/components/PisellContactBrief/PisellContactBrief.stories.d.ts +31 -0
  107. package/lib/components/PisellContactBrief/PisellContactBrief.stories.js +188 -0
  108. package/lib/components/PisellContactBrief/components/ContactFormModal.d.ts +23 -0
  109. package/lib/components/PisellContactBrief/components/ContactFormModal.js +154 -0
  110. package/lib/components/PisellContactBrief/components/index.d.ts +5 -0
  111. package/lib/components/PisellContactBrief/components/index.js +29 -0
  112. package/lib/components/PisellContactBrief/index.d.ts +6 -0
  113. package/lib/components/PisellContactBrief/index.js +29 -0
  114. package/lib/components/PisellContactBrief/locales.d.ts +55 -0
  115. package/lib/components/PisellContactBrief/locales.js +74 -0
  116. package/lib/components/PisellContactBrief/types.d.ts +82 -0
  117. package/lib/components/PisellContactBrief/types.js +17 -0
  118. package/lib/components/dataSourceComponents/fields/Tabs/Tabs.less +8 -0
  119. package/lib/components/pisellActionPanel/PisellActionPanel.d.ts +13 -0
  120. package/lib/components/pisellActionPanel/PisellActionPanel.js +124 -0
  121. package/lib/components/pisellActionPanel/PisellActionPanel.less +69 -0
  122. package/lib/components/pisellActionPanel/PisellActionPanel.stories.d.ts +19 -0
  123. package/lib/components/pisellActionPanel/PisellActionPanel.stories.js +186 -0
  124. package/lib/components/pisellActionPanel/index.d.ts +6 -0
  125. package/lib/components/pisellActionPanel/index.js +29 -0
  126. package/lib/components/pisellActionPanel/types.d.ts +83 -0
  127. package/lib/components/pisellActionPanel/types.js +17 -0
  128. package/lib/components/pisellBaseCard/PisellBaseCard.d.ts +8 -0
  129. package/lib/components/pisellBaseCard/PisellBaseCard.js +124 -0
  130. package/lib/components/pisellBaseCard/PisellBaseCard.less +25 -0
  131. package/lib/components/pisellBaseCard/PisellBaseCard.stories.d.ts +19 -0
  132. package/lib/components/pisellBaseCard/PisellBaseCard.stories.js +107 -0
  133. package/lib/components/pisellBaseCard/index.d.ts +5 -0
  134. package/lib/components/pisellBaseCard/index.js +29 -0
  135. package/lib/components/pisellBaseCard/types.d.ts +45 -0
  136. package/lib/components/pisellBaseCard/types.js +17 -0
  137. package/lib/components/pisellCurrency/PisellCurrency.js +16 -10
  138. package/lib/components/pisellCurrency/PisellCurrency.less +0 -123
  139. package/lib/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +15 -0
  140. package/lib/components/pisellCustomerBrief/PisellCustomerBrief.js +143 -0
  141. package/lib/components/pisellCustomerBrief/PisellCustomerBrief.less +8 -0
  142. package/lib/components/pisellCustomerBrief/PisellCustomerBrief.stories.d.ts +23 -0
  143. package/lib/components/pisellCustomerBrief/PisellCustomerBrief.stories.js +171 -0
  144. package/lib/components/pisellCustomerBrief/index.d.ts +6 -0
  145. package/lib/components/pisellCustomerBrief/index.js +29 -0
  146. package/lib/components/pisellCustomerBrief/types.d.ts +82 -0
  147. package/lib/components/pisellCustomerBrief/types.js +17 -0
  148. package/lib/components/pisellEmail/PisellEmail.js +16 -10
  149. package/lib/components/pisellEmail/PisellEmail.less +0 -92
  150. package/lib/components/pisellEntityCard/PisellEntityCard.d.ts +8 -0
  151. package/lib/components/pisellEntityCard/PisellEntityCard.js +426 -0
  152. package/lib/components/pisellEntityCard/PisellEntityCard.less +362 -0
  153. package/lib/components/pisellEntityCard/PisellEntityCard.stories.d.ts +47 -0
  154. package/lib/components/pisellEntityCard/PisellEntityCard.stories.js +349 -0
  155. package/lib/components/pisellEntityCard/index.d.ts +5 -0
  156. package/lib/components/pisellEntityCard/index.js +29 -0
  157. package/lib/components/pisellEntityCard/types.d.ts +144 -0
  158. package/lib/components/pisellEntityCard/types.js +17 -0
  159. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +22 -3
  160. package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +2 -2
  161. package/lib/components/pisellFloorMapLayout/components/ViewControls.d.ts +4 -0
  162. package/lib/components/pisellFloorMapLayout/components/ViewControls.js +11 -1
  163. package/lib/components/pisellFloorMapLayout/types.d.ts +2 -0
  164. package/lib/components/pisellLongText/PisellLongText.js +16 -10
  165. package/lib/components/pisellLongText/PisellLongText.less +0 -67
  166. package/lib/components/pisellLookup/PisellLookup.js +5 -1
  167. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.js +62 -53
  168. package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +18 -139
  169. package/lib/components/pisellMultipleSelect/components/EditView.js +42 -30
  170. package/lib/components/pisellNumber/PisellNumber.js +16 -10
  171. package/lib/components/pisellNumber/PisellNumber.less +0 -103
  172. package/lib/components/pisellPhone/PisellPhone.js +16 -10
  173. package/lib/components/pisellPhone/PisellPhone.less +0 -119
  174. package/lib/components/pisellPhone/components/EditView.js +40 -24
  175. package/lib/components/pisellPhone/constants/countryCodes.d.ts +1 -0
  176. package/lib/components/pisellPhone/constants/countryCodes.js +24 -24
  177. package/lib/components/pisellPhone/types.d.ts +2 -2
  178. package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +4 -4
  179. package/lib/components/pisellPhone/utils/countryCodeHelper.js +1 -1
  180. package/lib/components/pisellRating/PisellRating.js +4 -2
  181. package/lib/components/pisellSingleLineText/PisellSingleLineText.js +16 -10
  182. package/lib/components/pisellSingleLineText/PisellSingleLineText.less +58 -201
  183. package/lib/components/pisellSingleSelect/PisellSingleSelect.js +34 -35
  184. package/lib/components/pisellSingleSelect/PisellSingleSelect.less +5 -106
  185. package/lib/components/pisellUrl/PisellUrl.js +16 -10
  186. package/lib/components/pisellWalletPassCard/index.js +1 -1
  187. package/lib/index.d.ts +15 -4
  188. package/lib/index.js +18 -3
  189. package/lib/theme/pisell-components.d.ts +14 -0
  190. package/lib/theme/pisell-components.js +89 -0
  191. package/lowcode/pisell-action-panel/meta.ts +146 -0
  192. package/lowcode/pisell-action-panel/snippets.ts +42 -0
  193. package/lowcode/pisell-base-card/meta.ts +98 -0
  194. package/lowcode/pisell-base-card/snippets.ts +13 -0
  195. package/lowcode/pisell-contact-brief/meta.ts +178 -0
  196. package/lowcode/pisell-contact-brief/snippets.ts +40 -0
  197. package/lowcode/pisell-customer-brief/meta.ts +262 -0
  198. package/lowcode/pisell-customer-brief/snippets.ts +46 -0
  199. package/lowcode/pisell-entity-card/meta.ts +296 -0
  200. package/lowcode/pisell-entity-card/snippets.ts +41 -0
  201. package/lowcode/pisell-floor-map-layout/meta.ts +37 -1
  202. package/package.json +4 -4
@@ -1,201 +1,58 @@
1
- /**
2
- * PisellSingleLineText 组件样式
3
- * 不依赖全局 antd token,使用内置样式
4
- */
5
-
6
- .pisell-single-line-text {
7
- &-edit {
8
- position: relative;
9
- width: 100%;
10
-
11
- // Input 组件内置样式,覆盖 antd token 配置
12
- .ant-input,
13
- .ant-input-affix-wrapper {
14
- // 基础样式(基于 Figma 设计规范)
15
- font-size: 16px !important;
16
- line-height: 24px !important;
17
-
18
- // 边框和圆角
19
- border-radius: 8px !important;
20
- border: 1px solid #D0D5DD !important; // Gray/300
21
-
22
- // 内边距(Figma: 16px 12px)
23
- padding: 12px 16px !important;
24
- height: 48px !important; // 12px + 24px + 12px = 48px
25
-
26
- // 颜色
27
- color: #101828 !important; // Gray/900 - 输入文本
28
- background-color: #FFFFFF !important; // 背景色
29
-
30
- &::placeholder {
31
- color: #667085 !important; // Gray/500 - 占位符
32
- }
33
-
34
- // 聚焦态
35
- &:focus,
36
- &:focus-within {
37
- border-color: #D6BBFB !important; // Primary/300
38
- box-shadow: 0 0 0 4px #F4EBFF !important; // Primary/100
39
- outline: none !important;
40
- }
41
-
42
- // Hover 态
43
- &:hover:not(:focus):not(:focus-within):not([disabled]) {
44
- border-color: #B692F6 !important; // Primary/400
45
- }
46
-
47
- // 禁用态
48
- &[disabled],
49
- &.ant-input-disabled {
50
- background-color: #F9FAFB !important; // Gray/50
51
- color: #98A2B3 !important; // Gray/400
52
- border-color: #D0D5DD !important;
53
- cursor: not-allowed !important;
54
- }
55
- }
56
-
57
- // 前后缀容器样式
58
- .ant-input-affix-wrapper {
59
- padding: 0 !important;
60
-
61
- .ant-input-prefix {
62
- margin-right: 8px;
63
- margin-left: 16px;
64
- color: #667085; // Gray/500
65
- font-size: 16px;
66
- }
67
-
68
- .ant-input-suffix {
69
- margin-left: 8px;
70
- margin-right: 16px;
71
- color: #667085; // Gray/500
72
- font-size: 16px;
73
- }
74
-
75
- .ant-input {
76
- padding: 12px 0 !important;
77
- border: none !important;
78
- box-shadow: none !important;
79
-
80
- &:focus {
81
- box-shadow: none !important;
82
- }
83
- }
84
- }
85
-
86
- // 前后置标签样式
87
- .ant-input-group-wrapper {
88
- .ant-input-group-addon {
89
- background-color: #FFFFFF !important;
90
- border: 1px solid #D0D5DD !important;
91
- color: #344054 !important; // Gray/700
92
- font-size: 16px !important;
93
- padding: 12px 16px !important;
94
-
95
- &:first-child {
96
- border-right: none !important;
97
- border-radius: 8px 0 0 8px !important;
98
- }
99
-
100
- &:last-child {
101
- border-left: none !important;
102
- border-radius: 0 8px 8px 0 !important;
103
- }
104
- }
105
-
106
- .ant-input-wrapper {
107
- .ant-input,
108
- .ant-input-affix-wrapper {
109
- border-radius: 0 !important;
110
-
111
- &:first-child {
112
- border-radius: 8px 0 0 8px !important;
113
- }
114
-
115
- &:last-child {
116
- border-radius: 0 8px 8px 0 !important;
117
- }
118
- }
119
- }
120
- }
121
-
122
- // 清空按钮样式
123
- .ant-input-clear-icon {
124
- color: #667085 !important; // Gray/500
125
- font-size: 14px !important;
126
-
127
- &:hover {
128
- color: #344054 !important; // Gray/700
129
- }
130
- }
131
-
132
- // 字数统计样式
133
- .ant-input-show-count-suffix {
134
- color: #667085 !important; // Gray/500
135
- font-size: 14px !important;
136
- }
137
-
138
- // 错误状态样式
139
- .ant-input-status-error,
140
- .ant-input-affix-wrapper-status-error {
141
- border-color: #FDA29B !important; // Error/300
142
-
143
- &:focus,
144
- &:focus-within {
145
- border-color: #F97066 !important; // Error/400
146
- box-shadow: 0 0 0 4px #FEE4E2 !important; // Error/100
147
- }
148
-
149
- &:hover:not(:focus):not(:focus-within) {
150
- border-color: #F97066 !important; // Error/400
151
- }
152
- }
153
- }
154
-
155
- &-error {
156
- margin-top: 4px;
157
- font-size: 12px;
158
- color: #D92D20; // Error/600
159
- line-height: 1.5;
160
- animation: fadeIn 0.3s ease-in-out;
161
- }
162
-
163
- &-read {
164
- display: inline-block;
165
- line-height: 1.5;
166
- }
167
-
168
- &-link {
169
- transition: color 0.2s ease-in-out;
170
-
171
- &:hover {
172
- color: #6D48C4 !important; // 项目统一 hover 色
173
- }
174
-
175
- &:active {
176
- color: #5F3DA8 !important; // 项目统一 active 色
177
- }
178
-
179
- &:focus {
180
- outline: 2px solid rgba(127, 86, 218, 0.2);
181
- outline-offset: 2px;
182
- }
183
- }
184
-
185
- &-disabled {
186
- opacity: 0.4;
187
- cursor: not-allowed;
188
- }
189
- }
190
-
191
- // 错误提示淡入动画
192
- @keyframes fadeIn {
193
- from {
194
- opacity: 0;
195
- transform: translateY(-4px);
196
- }
197
- to {
198
- opacity: 1;
199
- transform: translateY(0);
200
- }
201
- }
1
+ /**
2
+ * PisellSingleLineText 组件样式
3
+ * 不依赖全局 antd token,使用内置样式
4
+ */
5
+
6
+ .pisell-single-line-text {
7
+ &-edit {
8
+ position: relative;
9
+ width: 100%;
10
+ }
11
+
12
+ &-error {
13
+ margin-top: 4px;
14
+ font-size: 12px;
15
+ color: #D92D20; // Error/600
16
+ line-height: 1.5;
17
+ animation: fadeIn 0.3s ease-in-out;
18
+ }
19
+
20
+ &-read {
21
+ display: inline-block;
22
+ line-height: 1.5;
23
+ }
24
+
25
+ &-link {
26
+ transition: color 0.2s ease-in-out;
27
+
28
+ &:hover {
29
+ color: #6D48C4 !important; // 项目统一 hover 色
30
+ }
31
+
32
+ &:active {
33
+ color: #5F3DA8 !important; // 项目统一 active 色
34
+ }
35
+
36
+ &:focus {
37
+ outline: 2px solid rgba(127, 86, 218, 0.2);
38
+ outline-offset: 2px;
39
+ }
40
+ }
41
+
42
+ &-disabled {
43
+ opacity: 0.4;
44
+ cursor: not-allowed;
45
+ }
46
+ }
47
+
48
+ // 错误提示淡入动画
49
+ @keyframes fadeIn {
50
+ from {
51
+ opacity: 0;
52
+ transform: translateY(-4px);
53
+ }
54
+ to {
55
+ opacity: 1;
56
+ transform: translateY(0);
57
+ }
58
+ }
@@ -10,6 +10,8 @@ import EditView from "./components/EditView";
10
10
  import DisabledView from "./components/DisabledView";
11
11
  import ReadOnlyView from "./components/ReadOnlyView";
12
12
  import "./PisellSingleSelect.less";
13
+ import { getPisellComponentsThemeConfig } from "../../theme/pisell-components";
14
+ import { ConfigProvider } from 'antd';
13
15
  var PisellSingleSelect = /*#__PURE__*/forwardRef(function (props, ref) {
14
16
  var value = props.value,
15
17
  defaultValue = props.defaultValue,
@@ -51,20 +53,27 @@ var PisellSingleSelect = /*#__PURE__*/forwardRef(function (props, ref) {
51
53
  }
52
54
  };
53
55
  });
56
+ var theme = getPisellComponentsThemeConfig();
54
57
 
55
58
  // 根据不同状态渲染不同视图
56
59
  if (disabled) {
57
- return /*#__PURE__*/React.createElement(DisabledView, _extends({}, props, {
60
+ return /*#__PURE__*/React.createElement(ConfigProvider, {
61
+ theme: theme
62
+ }, /*#__PURE__*/React.createElement(DisabledView, _extends({}, props, {
58
63
  ref: selectRef
59
- }));
64
+ })));
60
65
  }
61
66
  if (readOnly) {
62
- return /*#__PURE__*/React.createElement(ReadOnlyView, props);
67
+ return /*#__PURE__*/React.createElement(ConfigProvider, {
68
+ theme: theme
69
+ }, /*#__PURE__*/React.createElement(ReadOnlyView, props));
63
70
  }
64
- return /*#__PURE__*/React.createElement(EditView, _extends({}, props, {
71
+ return /*#__PURE__*/React.createElement(ConfigProvider, {
72
+ theme: theme
73
+ }, /*#__PURE__*/React.createElement(EditView, _extends({}, props, {
65
74
  state: state,
66
75
  ref: selectRef
67
- }));
76
+ })));
68
77
  });
69
78
  PisellSingleSelect.displayName = 'PisellSingleSelect';
70
79
  export default PisellSingleSelect;
@@ -4,9 +4,13 @@
4
4
  */
5
5
 
6
6
  .pisell-single-select {
7
- height: 48px !important;
8
7
  width: 100%;
9
8
 
9
+ &.pisell-lowcode-select-focused .pisell-lowcode-select-selector {
10
+ border-color: #d6bbfb !important;
11
+ box-shadow: 0 0 0 4px #F4EBFF, 0 1px 2px rgba(16, 24, 40, 0.05) !important;
12
+ }
13
+
10
14
  .pisell-lowcode-select-clear {
11
15
  color: #667085;
12
16
  display: inline-flex;
@@ -22,67 +26,11 @@
22
26
  }
23
27
  }
24
28
 
25
- // Select 触发器(Figma 设计规范,与 Input 体系一致)
26
- .pisell-lowcode-select:not(.pisell-lowcode-select-disabled):not(.pisell-lowcode-select-customize-input) {
27
- .pisell-lowcode-select-selector {
28
- font-size: 16px !important;
29
- line-height: 24px !important;
30
- border-radius: 8px !important;
31
- border: 1px solid #d0d5dd !important; // Gray/300
32
- padding: 12px 16px !important;
33
- min-height: 48px !important;
34
- color: #101828 !important; // Gray/900
35
- background-color: #ffffff !important;
36
- }
37
-
38
- &.pisell-lowcode-select-open .pisell-lowcode-select-selector {
39
- border-color: #d6bbfb !important; // Primary/300
40
- box-shadow: 0 0 0 4px #f4ebff !important; // Primary/100
41
- }
42
-
43
- &:not(.pisell-lowcode-select-open):not(.pisell-lowcode-select-disabled)
44
- .pisell-lowcode-select-selector:hover {
45
- border-color: #b692f6 !important; // Primary/400
46
- }
47
-
48
- &.pisell-lowcode-select-disabled .pisell-lowcode-select-selector {
49
- background-color: #f9fafb !important; // Gray/50
50
- color: #98a2b3 !important; // Gray/400
51
- border-color: #d0d5dd !important;
52
- cursor: not-allowed !important;
53
- }
54
-
55
- .pisell-lowcode-select-selection-placeholder {
56
- color: #667085 !important; // Gray/500
57
- }
58
-
59
- .pisell-lowcode-select-arrow {
60
- color: #667085;
61
- }
62
-
63
- .pisell-lowcode-select-clear {
64
- color: #667085;
65
-
66
- &:hover {
67
- color: #344054;
68
- }
69
- }
70
- }
71
-
72
29
  &-wrapper {
73
30
  display: flex;
74
31
  flex-direction: column;
75
32
  gap: 8px;
76
33
  position: relative;
77
-
78
- // 下拉选项高度 48px(通过 getPopupContainer 挂到 wrapper 内)
79
- .pisell-single-select-dropdown .pisell-lowcode-select-item {
80
- min-height: 48px !important;
81
- height: 48px !important;
82
- line-height: 48px !important;
83
- padding: 0 16px !important;
84
- font-size: 16px !important;
85
- }
86
34
  }
87
35
 
88
36
  &-label {
@@ -113,49 +61,6 @@
113
61
  animation: pisell-single-select-fadeIn 0.3s ease-in-out;
114
62
  }
115
63
 
116
- &-option-content {
117
- display: flex;
118
- align-items: center;
119
- justify-content: space-between;
120
- width: 100%;
121
- }
122
-
123
- &-option-check {
124
- color: #7f56d9; // Primary/600
125
- font-size: 16px;
126
- margin-left: 8px;
127
- }
128
- }
129
-
130
- // 下拉框内的搜索框样式(Figma 设计)
131
- :global {
132
- .pisell-select-search-wrapper {
133
- padding: 6px;
134
- border-bottom: 1px solid #EAECF0;
135
- }
136
-
137
- .pisell-select-search-input {
138
- padding: 9px 10px !important;
139
- font-size: 14px;
140
-
141
- .pisell-lowcode-input {
142
- font-size: 14px !important;
143
- color: #344054 !important;
144
-
145
- &::placeholder {
146
- color: #98A2B3 !important;
147
- font-size: 12px !important;
148
- }
149
- }
150
-
151
- &:hover,
152
- &:focus-within {
153
- background-color: transparent !important;
154
- }
155
- }
156
- }
157
-
158
- .pisell-single-select {
159
64
  // 错误状态(Figma 设计体系 Error 色)
160
65
  &-error {
161
66
  .pisell-lowcode-select .pisell-lowcode-select-selector {
@@ -165,12 +70,6 @@
165
70
  border-color: #f97066 !important; // Error/400
166
71
  }
167
72
  }
168
-
169
- .pisell-lowcode-select.pisell-lowcode-select-focused .pisell-lowcode-select-selector,
170
- .pisell-lowcode-select.pisell-lowcode-select-open .pisell-lowcode-select-selector {
171
- border-color: #f97066 !important; // Error/400
172
- box-shadow: 0 0 0 4px #fee4e2 !important; // Error/100
173
- }
174
73
  }
175
74
 
176
75
  // 只读状态:仅展示 Tag,无 Select 无外框,Tag 使用与 disabled 一致的样式
@@ -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 "./PisellUrl.less";
7
9
 
8
- /**
9
- * PisellUrl URL 链接组件
10
- *
11
- * URL 链接输入/展示组件,支持只读、编辑、禁用三种状态。
12
- * 基于 Ant Design Input 组件开发,提供 URL 格式校验、协议自动补全、
13
- * 链接跳转和协议/路径显示控制功能。
14
- *
15
- * @param props 组件 Props
16
- *
17
- * @example
18
- * // 编辑态(URL 输入)
19
- * <PisellUrl
20
- * placeholder="请输入网址"
21
- * required
22
- * />
23
- *
24
- * @example
25
- * // 只读态(可跳转)
26
- * <PisellUrl
27
- * mode="read"
28
- * value="https://www.example.com"
29
- * enableLinkClick
30
- * />
31
- *
32
- * @example
33
- * // 协议自动补全
34
- * <PisellUrl
35
- * autoCompleteProtocol
36
- * defaultProtocol="https://"
37
- * />
10
+ /**
11
+ * PisellUrl URL 链接组件
12
+ *
13
+ * URL 链接输入/展示组件,支持只读、编辑、禁用三种状态。
14
+ * 基于 Ant Design Input 组件开发,提供 URL 格式校验、协议自动补全、
15
+ * 链接跳转和协议/路径显示控制功能。
16
+ *
17
+ * @param props 组件 Props
18
+ *
19
+ * @example
20
+ * // 编辑态(URL 输入)
21
+ * <PisellUrl
22
+ * placeholder="请输入网址"
23
+ * required
24
+ * />
25
+ *
26
+ * @example
27
+ * // 只读态(可跳转)
28
+ * <PisellUrl
29
+ * mode="read"
30
+ * value="https://www.example.com"
31
+ * enableLinkClick
32
+ * />
33
+ *
34
+ * @example
35
+ * // 协议自动补全
36
+ * <PisellUrl
37
+ * autoCompleteProtocol
38
+ * defaultProtocol="https://"
39
+ * />
38
40
  */
39
41
  export var PisellUrl = function PisellUrl(props) {
40
42
  var _props$mode = props.mode,
@@ -44,18 +46,22 @@ export var PisellUrl = function PisellUrl(props) {
44
46
 
45
47
  // 计算显示状态
46
48
  var displayState = getDisplayState(mode, disabled);
47
-
48
- // 根据状态渲染对应子组件
49
- switch (displayState) {
50
- case 'read':
51
- return /*#__PURE__*/React.createElement(ReadOnlyView, props);
52
- case 'edit':
53
- return /*#__PURE__*/React.createElement(EditView, props);
54
- case 'disabled':
55
- return /*#__PURE__*/React.createElement(DisabledView, props);
56
- default:
57
- return null;
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 避免不必要的重渲染
@@ -764,7 +764,8 @@ var PisellWalletPassCard = function PisellWalletPassCard(props) {
764
764
  value: qrCode,
765
765
  size: 60
766
766
  }))), checkedDom, disabled && disabledReason && showDisabledReason && /*#__PURE__*/React.createElement("div", {
767
- className: "pisell-card-warn-message"
767
+ className: "pisell-card-warn-message",
768
+ ref: warnMessageRef
768
769
  }, /*#__PURE__*/React.createElement(Iconfont, {
769
770
  className: "pisell-card-icon",
770
771
  type: "pisell2-alert-circle"
package/es/index.d.ts CHANGED
@@ -33,10 +33,6 @@ export { default as Cascader } from './components/cascader';
33
33
  export { default as Checkbox } from './components/checkbox';
34
34
  export { default as Collapse } from './components/collapse';
35
35
  export { default as ConfigProvider } from './components/config-provider';
36
- export { default as DataSourceSubForm } from './components/dataSourceComponents/dataSourceSubForm';
37
- export type { DataSourceSubFormProps } from './components/dataSourceComponents/dataSourceSubForm/types';
38
- export { default as FormItemRecordListWrapper } from './components/dataSourceComponents/fields/RecordListWrapper';
39
- export { default as FormItemTabs } from './components/dataSourceComponents/fields/Tabs';
40
36
  export { default as DatePicker } from './components/date-picker';
41
37
  export { default as Drawer } from './components/drawer';
42
38
  export { default as Dropdown } from './components/dropdown';
@@ -89,6 +85,16 @@ export type { PisellWalletPassCardProps } from './components/pisellWalletPassCar
89
85
  export { default as PisellGoodPassCard } from './components/pisellGoodPassCard';
90
86
  export { default as PisellAppCard } from './components/pisellAppCard';
91
87
  export type { PisellAppCardProps } from './components/pisellAppCard/types';
88
+ export { PisellBaseCard } from './components/pisellBaseCard';
89
+ export type { PisellBaseCardProps } from './components/pisellBaseCard';
90
+ export { PisellEntityCard } from './components/pisellEntityCard';
91
+ export type { PisellEntityCardProps, EntityCardDensity, EntityCardLayout, EntityCardWidth, EntityCardMediaType, EntityCardMediaConfig, EntityCardSecondaryItem, EntityCardTagItem, EntityCardActionItem, EntityCardTagPosition, } from './components/pisellEntityCard';
92
+ export { PisellContactBrief } from './components/PisellContactBrief';
93
+ export type { PisellContactBriefProps, PisellContactBriefCreateButtonProps, PisellContactBriefComponent, ContactFormValues, ContactBriefExtraField, } from './components/PisellContactBrief';
94
+ export { PisellCustomerBrief } from './components/pisellCustomerBrief';
95
+ export type { PisellCustomerBriefProps, CustomerBriefExtendedField, } from './components/pisellCustomerBrief';
96
+ export { PisellActionPanel } from './components/pisellActionPanel';
97
+ export type { PisellActionPanelProps, PisellActionPanelGroup, PisellActionPanelItem, ActionPanelLayout, ActionPanelAlign, ActionPanelOverflowStrategy, ActionPanelItemPriority, } from './components/pisellActionPanel';
92
98
  export { default as PisellMetricCard } from './components/pisellMetricCard';
93
99
  export { default as PisellDateTimeDisplay } from './components/pisellDateTimeDisplay';
94
100
  export type { PisellDateTimeDisplayProps } from './components/pisellDateTimeDisplay';
@@ -115,6 +121,7 @@ export { default as Div } from './components/div';
115
121
  export { default as PisellBasicGrid } from './components/PisellBasicGrid';
116
122
  export { default as PisellScrollView } from './components/PisellScrollView';
117
123
  export { PisellFloorMapLayout } from './components/pisellFloorMapLayout';
124
+ export type { FloorMapItemBase, FloorMapItemUnit, FloorMapLayerConfig, FloorMapZoomConfig, FloorMapPanConfig, FloorMapControlsConfig, FloorMapItemShape, FloorMapBackgroundType, FloorMapPanBoundary, FloorMapLayoutMode, FloorMapGridLayoutConfig, } from './components/pisellFloorMapLayout';
118
125
  export { default as PisellViewGrid } from './components/pisellViewGrid';
119
126
  export { default as Table } from './components/table';
120
127
  export { default as PisellGridView } from './components/pisellGridPro/GridView';
@@ -172,6 +179,10 @@ export { default as FormItemTranslation } from './components/dataSourceComponent
172
179
  export { default as FormItemUpload } from './components/dataSourceComponents/fields/Upload';
173
180
  export { default as FormItemIconSelect } from './components/dataSourceComponents/fields/IconSelect';
174
181
  export { default as BaseTranslation } from './components/dataSourceComponents/fields/Translation/BaseTranslation';
182
+ export { default as DataSourceSubForm } from './components/dataSourceComponents/dataSourceSubForm';
183
+ export type { DataSourceSubFormProps } from './components/dataSourceComponents/dataSourceSubForm/types';
184
+ export { default as FormItemRecordListWrapper } from './components/dataSourceComponents/fields/RecordListWrapper';
185
+ export { default as FormItemTabs } from './components/dataSourceComponents/fields/Tabs';
175
186
  export { default as PisellMenu } from './components/pisellMenu';
176
187
  export type { PisellMenuProps } from './components/pisellMenu/types';
177
188
  export { default as PisellNavigationMenu } from './components/pisellNavigationMenu';
package/es/index.js CHANGED
@@ -41,9 +41,6 @@ export { default as Cascader } from "./components/cascader";
41
41
  export { default as Checkbox } from "./components/checkbox";
42
42
  export { default as Collapse } from "./components/collapse";
43
43
  export { default as ConfigProvider } from "./components/config-provider";
44
- export { default as DataSourceSubForm } from "./components/dataSourceComponents/dataSourceSubForm";
45
- export { default as FormItemRecordListWrapper } from "./components/dataSourceComponents/fields/RecordListWrapper";
46
- export { default as FormItemTabs } from "./components/dataSourceComponents/fields/Tabs";
47
44
  export { default as DatePicker } from "./components/date-picker";
48
45
  export { default as Drawer } from "./components/drawer";
49
46
  export { default as Dropdown } from "./components/dropdown";
@@ -97,6 +94,11 @@ export { default as WalletCard } from "./components/walletCard";
97
94
  export { default as PisellWalletPassCard } from "./components/pisellWalletPassCard";
98
95
  export { default as PisellGoodPassCard } from "./components/pisellGoodPassCard";
99
96
  export { default as PisellAppCard } from "./components/pisellAppCard";
97
+ export { PisellBaseCard } from "./components/pisellBaseCard";
98
+ export { PisellEntityCard } from "./components/pisellEntityCard";
99
+ export { PisellContactBrief } from "./components/PisellContactBrief";
100
+ export { PisellCustomerBrief } from "./components/pisellCustomerBrief";
101
+ export { PisellActionPanel } from "./components/pisellActionPanel";
100
102
  // ==================== 数据展示组件 (Data Display) ====================
101
103
  // 用于展示各类数据指标、统计信息
102
104
  export { default as PisellMetricCard } from "./components/pisellMetricCard";
@@ -128,7 +130,6 @@ export { default as PisellBasicGrid } from "./components/PisellBasicGrid";
128
130
  // 类型已在 PisellLayouts 命名空间中导出
129
131
  export { default as PisellScrollView } from "./components/PisellScrollView";
130
132
  export { PisellFloorMapLayout } from "./components/pisellFloorMapLayout";
131
- // 类型已在 PisellLayouts 命名空间中导出
132
133
  export { default as PisellViewGrid } from "./components/pisellViewGrid";
133
134
 
134
135
  // ==================== 表格组件 (Table) ====================
@@ -185,6 +186,9 @@ export { default as FormItemTranslation } from "./components/dataSourceComponent
185
186
  export { default as FormItemUpload } from "./components/dataSourceComponents/fields/Upload";
186
187
  export { default as FormItemIconSelect } from "./components/dataSourceComponents/fields/IconSelect";
187
188
  export { default as BaseTranslation } from "./components/dataSourceComponents/fields/Translation/BaseTranslation";
189
+ export { default as DataSourceSubForm } from "./components/dataSourceComponents/dataSourceSubForm";
190
+ export { default as FormItemRecordListWrapper } from "./components/dataSourceComponents/fields/RecordListWrapper";
191
+ export { default as FormItemTabs } from "./components/dataSourceComponents/fields/Tabs";
188
192
 
189
193
  // ==================== 导航组件 (Navigation) ====================
190
194
  // 导航、菜单、标签页等组件
@@ -0,0 +1,14 @@
1
+ import { ThemeConfig } from 'antd';
2
+ /**
3
+ * Pisell 项目统一的 Ant Design Token 配置
4
+ * 基于 Figma 设计规范
5
+ *
6
+ * 使用场景:
7
+ * - 低代码平台(page/index.tsx)
8
+ * - Storybook 预览
9
+ * - 其他需要主题配置的场景
10
+ */
11
+ /**
12
+ * 获取完整的主题配置
13
+ */
14
+ export declare function getPisellComponentsThemeConfig(): ThemeConfig;