iglooform 2.4.7 → 2.4.11

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 (262) hide show
  1. package/es/admin-upload/float.js +25 -35
  2. package/es/admin-upload/index.d.ts +2 -0
  3. package/es/admin-upload/index.js +43 -36
  4. package/es/admin-upload/job-list.js +85 -115
  5. package/es/admin-upload/modal.js +19 -26
  6. package/es/alert-message/index.js +11 -9
  7. package/es/amount/index.js +10 -5
  8. package/es/back-top/index.js +14 -10
  9. package/es/button/index.js +23 -28
  10. package/es/button/style/index.less +23 -19
  11. package/es/card-detail/card-group.js +16 -22
  12. package/es/card-detail/card-item.js +16 -21
  13. package/es/card-detail/card-page.js +11 -15
  14. package/es/card-detail/card.js +24 -24
  15. package/es/card-detail/style/index.less +13 -0
  16. package/es/card-detail/utils.js +6 -7
  17. package/es/checkbox/index.js +23 -22
  18. package/es/claim-list/index.js +53 -70
  19. package/es/confirmation/index.js +7 -9
  20. package/es/date-picker/buddhist.js +3 -3
  21. package/es/date-picker/index.js +10 -4
  22. package/es/declaration/index.js +16 -13
  23. package/es/detail-panel/index.js +67 -83
  24. package/es/documents/index.js +6 -8
  25. package/es/example/index.js +9 -11
  26. package/es/filter/checkBox.js +33 -45
  27. package/es/filter/customize.js +3 -4
  28. package/es/filter/index.d.ts +1 -0
  29. package/es/filter/index.js +88 -112
  30. package/es/filter/radioBox.js +23 -31
  31. package/es/filter/rangePicker.js +43 -59
  32. package/es/form/addable-section/index.d.ts +19 -0
  33. package/es/form/addable-section/index.js +211 -0
  34. package/es/form/addable-section/style/index.d.ts +1 -0
  35. package/es/form/addable-section/style/index.js +1 -0
  36. package/es/form/addable-section/style/index.less +22 -0
  37. package/es/form/divider/index.js +7 -1
  38. package/es/form/element/index.js +58 -47
  39. package/es/form/element/style/index.less +9 -0
  40. package/es/form/index.js +16 -17
  41. package/es/form/login/index.js +15 -20
  42. package/es/form/page/index.js +18 -24
  43. package/es/form/page/style/index.less +1 -1
  44. package/es/form/pages/index.js +23 -32
  45. package/es/form/pages/style/index.less +3 -1
  46. package/es/form/render/index.js +1 -1
  47. package/es/form/section/index.js +14 -17
  48. package/es/form/step/index.js +31 -42
  49. package/es/form/steps/index.js +8 -11
  50. package/es/{form/context.d.ts → form-context.d.ts} +1 -0
  51. package/es/{form/context.js → form-context.js} +0 -0
  52. package/es/free-form/addable-section/index.d.ts +18 -0
  53. package/es/free-form/addable-section/index.js +286 -0
  54. package/es/free-form/addable-section/style/index.d.ts +1 -0
  55. package/es/free-form/addable-section/style/index.js +1 -0
  56. package/es/free-form/addable-section/style/index.less +22 -0
  57. package/es/free-form/element/index.js +43 -41
  58. package/es/free-form/element/style/index.less +12 -2
  59. package/es/free-form/index.d.ts +5 -1
  60. package/es/free-form/index.js +17 -17
  61. package/es/free-form/page/index.js +36 -46
  62. package/es/free-form/page/style/index.less +3 -1
  63. package/es/free-form/pages/index.js +8 -10
  64. package/es/free-form/section/index.js +20 -22
  65. package/es/free-form/section/style/index.less +4 -0
  66. package/es/free-form/step/index.js +37 -47
  67. package/es/free-form/steps/index.js +8 -10
  68. package/es/global-message/index.js +1 -1
  69. package/es/home-menu/index.js +52 -71
  70. package/es/index.d.ts +1 -0
  71. package/es/index.js +2 -1
  72. package/es/input/amount.js +10 -5
  73. package/es/input/credit-card.js +7 -1
  74. package/es/input/email.js +8 -1
  75. package/es/input/expiry-date.js +14 -18
  76. package/es/input/input-date.js +12 -16
  77. package/es/input/input-number.js +9 -2
  78. package/es/input/input.js +9 -2
  79. package/es/input/otp.js +17 -15
  80. package/es/input/password.js +12 -6
  81. package/es/input/phone-number.js +6 -8
  82. package/es/input/style/index.less +9 -1
  83. package/es/input/text-area.js +14 -10
  84. package/es/layout/defaultFooter.js +60 -82
  85. package/es/layout/defaultHeader.js +11 -15
  86. package/es/layout/footer.js +108 -148
  87. package/es/layout/header.js +51 -60
  88. package/es/layout/index.js +16 -12
  89. package/es/locale/en-US/messages.json +2 -0
  90. package/es/locale/id-ID/messages.json +2 -0
  91. package/es/locale/locale-provider.js +8 -10
  92. package/es/locale/th-TH/messages.json +2 -0
  93. package/es/locale/vi-VN/messages.json +2 -0
  94. package/es/locale/zh-CN/messages.json +2 -0
  95. package/es/login-page/index.js +30 -42
  96. package/es/media/index.js +20 -27
  97. package/es/media/media.js +9 -12
  98. package/es/media/preview.js +8 -10
  99. package/es/mobile-insurer-detail/index.js +74 -91
  100. package/es/mobile-insurer-list/index.js +34 -38
  101. package/es/modal/index.d.ts +4 -3
  102. package/es/modal/index.js +25 -27
  103. package/es/modal/style/index.less +24 -5
  104. package/es/platform/platform-card/index.js +9 -12
  105. package/es/platform/switch-platform/index.js +24 -32
  106. package/es/policy-list/index.js +11 -14
  107. package/es/policy-list/policy-card.js +119 -153
  108. package/es/radio/index.js +33 -35
  109. package/es/select/attached-select.js +31 -34
  110. package/es/select/select.js +12 -8
  111. package/es/select/style/index.less +1 -1
  112. package/es/select/time-select.js +12 -16
  113. package/es/status-box/index.js +8 -10
  114. package/es/table/index.js +72 -96
  115. package/es/tabs/index.js +7 -1
  116. package/es/types.d.ts +4 -2
  117. package/es/typography/index.js +6 -8
  118. package/es/upload/index.d.ts +2 -1
  119. package/es/upload/index.js +169 -143
  120. package/es/upload-photo/index.d.ts +2 -1
  121. package/es/upload-photo/index.js +170 -142
  122. package/es/upload-photo/media.js +3 -4
  123. package/es/upload-preview/index.js +9 -12
  124. package/es/upload-preview/media.js +12 -16
  125. package/es/upload-preview/style/index.less +2 -2
  126. package/es/utils/form-utils.js +49 -36
  127. package/lib/admin-upload/float.js +25 -35
  128. package/lib/admin-upload/index.d.ts +2 -0
  129. package/lib/admin-upload/index.js +43 -36
  130. package/lib/admin-upload/job-list.js +85 -115
  131. package/lib/admin-upload/modal.js +19 -26
  132. package/lib/alert-message/index.js +11 -9
  133. package/lib/amount/index.js +10 -5
  134. package/lib/back-top/index.js +14 -10
  135. package/lib/button/index.js +24 -29
  136. package/lib/button/style/index.less +23 -19
  137. package/lib/card-detail/card-group.js +16 -22
  138. package/lib/card-detail/card-item.js +16 -21
  139. package/lib/card-detail/card-page.js +11 -15
  140. package/lib/card-detail/card.js +24 -24
  141. package/lib/card-detail/index.js +6 -6
  142. package/lib/card-detail/style/index.less +13 -0
  143. package/lib/card-detail/utils.js +7 -8
  144. package/lib/checkbox/index.js +24 -23
  145. package/lib/claim-list/index.js +53 -70
  146. package/lib/confirmation/index.js +7 -9
  147. package/lib/date-picker/buddhist.js +3 -3
  148. package/lib/date-picker/index.js +11 -5
  149. package/lib/declaration/index.js +16 -13
  150. package/lib/detail-panel/index.js +67 -83
  151. package/lib/documents/index.js +6 -8
  152. package/lib/example/index.js +10 -12
  153. package/lib/filter/checkBox.js +33 -45
  154. package/lib/filter/customize.js +3 -4
  155. package/lib/filter/index.d.ts +1 -0
  156. package/lib/filter/index.js +88 -112
  157. package/lib/filter/radioBox.js +23 -31
  158. package/lib/filter/rangePicker.js +43 -59
  159. package/lib/form/addable-section/index.d.ts +19 -0
  160. package/lib/form/addable-section/index.js +232 -0
  161. package/lib/form/addable-section/style/index.d.ts +1 -0
  162. package/lib/form/addable-section/style/index.js +3 -0
  163. package/lib/form/addable-section/style/index.less +22 -0
  164. package/lib/form/divider/index.js +7 -1
  165. package/lib/form/element/index.js +60 -48
  166. package/lib/form/element/style/index.less +9 -0
  167. package/lib/form/elements.js +1 -1
  168. package/lib/form/index.js +16 -17
  169. package/lib/form/login/index.js +16 -21
  170. package/lib/form/page/index.js +19 -25
  171. package/lib/form/page/style/index.less +1 -1
  172. package/lib/form/pages/index.js +24 -33
  173. package/lib/form/pages/style/index.less +3 -1
  174. package/lib/form/render/index.js +2 -2
  175. package/lib/form/section/index.js +15 -18
  176. package/lib/form/step/index.js +32 -43
  177. package/lib/form/steps/index.js +9 -12
  178. package/lib/{form/context.d.ts → form-context.d.ts} +1 -0
  179. package/lib/{form/context.js → form-context.js} +0 -0
  180. package/lib/free-form/addable-section/index.d.ts +18 -0
  181. package/lib/free-form/addable-section/index.js +306 -0
  182. package/lib/free-form/addable-section/style/index.d.ts +1 -0
  183. package/lib/free-form/addable-section/style/index.js +3 -0
  184. package/lib/free-form/addable-section/style/index.less +22 -0
  185. package/lib/free-form/element/index.js +44 -42
  186. package/lib/free-form/element/style/index.less +12 -2
  187. package/lib/free-form/index.d.ts +5 -1
  188. package/lib/free-form/index.js +17 -17
  189. package/lib/free-form/page/index.js +37 -47
  190. package/lib/free-form/page/style/index.less +3 -1
  191. package/lib/free-form/pages/index.js +8 -10
  192. package/lib/free-form/section/index.js +21 -23
  193. package/lib/free-form/section/style/index.less +4 -0
  194. package/lib/free-form/step/index.js +38 -48
  195. package/lib/free-form/steps/index.js +9 -11
  196. package/lib/global-message/index.js +1 -1
  197. package/lib/home-menu/index.js +52 -71
  198. package/lib/index.d.ts +1 -0
  199. package/lib/index.js +141 -132
  200. package/lib/input/amount.js +10 -5
  201. package/lib/input/credit-card.js +7 -1
  202. package/lib/input/email.js +7 -1
  203. package/lib/input/expiry-date.js +14 -18
  204. package/lib/input/index.js +18 -18
  205. package/lib/input/input-date.js +12 -16
  206. package/lib/input/input-number.js +8 -2
  207. package/lib/input/input.js +8 -2
  208. package/lib/input/otp.js +17 -15
  209. package/lib/input/password.js +11 -6
  210. package/lib/input/phone-number.js +6 -8
  211. package/lib/input/style/index.less +9 -1
  212. package/lib/input/text-area.js +14 -10
  213. package/lib/layout/defaultFooter.js +60 -82
  214. package/lib/layout/defaultHeader.js +11 -15
  215. package/lib/layout/footer.js +108 -148
  216. package/lib/layout/header.js +51 -60
  217. package/lib/layout/index.js +15 -12
  218. package/lib/locale/en-US/messages.json +2 -0
  219. package/lib/locale/format-message.js +1 -1
  220. package/lib/locale/id-ID/messages.json +2 -0
  221. package/lib/locale/index.js +4 -4
  222. package/lib/locale/locale-provider.js +9 -11
  223. package/lib/locale/th-TH/messages.json +2 -0
  224. package/lib/locale/vi-VN/messages.json +2 -0
  225. package/lib/locale/zh-CN/messages.json +2 -0
  226. package/lib/login-page/index.js +30 -42
  227. package/lib/media/index.js +20 -27
  228. package/lib/media/media.js +9 -12
  229. package/lib/media/preview.js +8 -10
  230. package/lib/mobile-insurer-detail/index.js +74 -91
  231. package/lib/mobile-insurer-list/index.js +34 -38
  232. package/lib/modal/index.d.ts +4 -3
  233. package/lib/modal/index.js +25 -27
  234. package/lib/modal/style/index.less +24 -5
  235. package/lib/platform/platform-card/index.js +9 -12
  236. package/lib/platform/switch-platform/index.js +24 -32
  237. package/lib/policy-list/index.js +11 -14
  238. package/lib/policy-list/policy-card.js +119 -153
  239. package/lib/radio/index.js +33 -35
  240. package/lib/select/attached-select.js +32 -35
  241. package/lib/select/select.js +13 -9
  242. package/lib/select/style/index.less +1 -1
  243. package/lib/select/time-select.js +12 -16
  244. package/lib/status-box/index.js +8 -10
  245. package/lib/table/index.js +72 -96
  246. package/lib/tabs/index.js +8 -2
  247. package/lib/types.d.ts +4 -2
  248. package/lib/typography/index.js +6 -8
  249. package/lib/upload/index.d.ts +2 -1
  250. package/lib/upload/index.js +170 -143
  251. package/lib/upload-photo/index.d.ts +2 -1
  252. package/lib/upload-photo/index.js +171 -142
  253. package/lib/upload-photo/media.js +3 -4
  254. package/lib/upload-preview/index.js +9 -12
  255. package/lib/upload-preview/media.js +12 -16
  256. package/lib/upload-preview/style/index.less +2 -2
  257. package/lib/utils/form-utils.js +49 -37
  258. package/package.json +1 -1
  259. package/es/free-form/context.d.ts +0 -19
  260. package/es/free-form/context.js +0 -7
  261. package/lib/free-form/context.d.ts +0 -19
  262. package/lib/free-form/context.js +0 -19
@@ -5,9 +5,9 @@ var _excluded = ["className", "children", "onClick", "icon", "disabled"],
5
5
  _excluded3 = ["className", "children"],
6
6
  _excluded4 = ["className", "children"];
7
7
 
8
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
8
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9
9
 
10
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
10
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11
11
 
12
12
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
13
 
@@ -102,20 +102,18 @@ var IglooButton = function IglooButton(props) {
102
102
  };
103
103
  }();
104
104
 
105
- return _jsx(_Button, Object.assign({
105
+ return _jsx(_Button, _objectSpread(_objectSpread({
106
106
  className: "".concat(className, " igloo-button"),
107
107
  onClick: handleClick
108
- }, omit(rest, formMethods), {
108
+ }, omit(rest, formMethods)), {}, {
109
109
  icon: loading ? _jsx(LoadingOutlined, {
110
110
  spinning: true
111
111
  }, void 0) : icon,
112
- disabled: loading || disabled
113
- }, {
114
- children: children && _jsx(Typography, Object.assign({
115
- level: "h4"
116
- }, {
112
+ disabled: loading || disabled,
113
+ children: children && _jsx(Typography, {
114
+ level: "h4",
117
115
  children: children
118
- }), void 0)
116
+ }, void 0)
119
117
  }), void 0);
120
118
  };
121
119
 
@@ -134,15 +132,14 @@ export var GreenButton = function GreenButton(_ref2) {
134
132
  children = _ref2.children,
135
133
  rest = _objectWithoutProperties(_ref2, _excluded2);
136
134
 
137
- return _jsx(_Button, Object.assign({
135
+ return _jsx(_Button, _objectSpread(_objectSpread({
138
136
  className: "".concat(className, " green "),
139
137
  type: "primary"
140
- }, rest, {
141
- children: _jsx(Typography, Object.assign({
142
- level: "h4"
143
- }, {
138
+ }, rest), {}, {
139
+ children: _jsx(Typography, {
140
+ level: "h4",
144
141
  children: children
145
- }), void 0)
142
+ }, void 0)
146
143
  }), void 0);
147
144
  };
148
145
  export var YellowButton = function YellowButton(_ref3) {
@@ -151,15 +148,14 @@ export var YellowButton = function YellowButton(_ref3) {
151
148
  children = _ref3.children,
152
149
  rest = _objectWithoutProperties(_ref3, _excluded3);
153
150
 
154
- return _jsx(_Button, Object.assign({
151
+ return _jsx(_Button, _objectSpread(_objectSpread({
155
152
  className: "".concat(className, " yellow "),
156
153
  type: "primary"
157
- }, rest, {
158
- children: _jsx(Typography, Object.assign({
159
- level: "h4"
160
- }, {
154
+ }, rest), {}, {
155
+ children: _jsx(Typography, {
156
+ level: "h4",
161
157
  children: children
162
- }), void 0)
158
+ }, void 0)
163
159
  }), void 0);
164
160
  };
165
161
  export var RedButton = function RedButton(_ref4) {
@@ -168,14 +164,13 @@ export var RedButton = function RedButton(_ref4) {
168
164
  children = _ref4.children,
169
165
  rest = _objectWithoutProperties(_ref4, _excluded4);
170
166
 
171
- return _jsx(_Button, Object.assign({
167
+ return _jsx(_Button, _objectSpread(_objectSpread({
172
168
  className: "".concat(className, " red "),
173
169
  type: "primary"
174
- }, rest, {
175
- children: _jsx(Typography, Object.assign({
176
- level: "h4"
177
- }, {
170
+ }, rest), {}, {
171
+ children: _jsx(Typography, {
172
+ level: "h4",
178
173
  children: children
179
- }), void 0)
174
+ }, void 0)
180
175
  }), void 0);
181
176
  };
@@ -7,16 +7,27 @@
7
7
  padding: 0 16px;
8
8
  text-shadow: none;
9
9
  box-shadow: none;
10
+ background-color: transparent;
11
+
10
12
  &[disabled] {
11
13
  opacity: 0.3;
12
- border: none;
14
+ color: @primary-color;
15
+ border: 1px solid @primary-color;
16
+ background-color: transparent;
17
+
18
+ &:hover {
19
+ color: @primary-color;
20
+ border-color: @primary-color;
21
+ background-color: transparent;
22
+ }
23
+ &:active,
24
+ &:focus {
25
+ color: @primary-color;
26
+ border-color: @primary-color;
27
+ background-color: transparent;
28
+ }
13
29
  }
14
- }
15
30
 
16
- .ant-btn-default {
17
- background-color: transparent;
18
- color: @primary-color;
19
- border: 1px solid @primary-color;
20
31
  &:hover {
21
32
  color: @btn-hover-color;
22
33
  border-color: @btn-hover-color;
@@ -28,18 +39,6 @@
28
39
  border-color: @btn-focus-color;
29
40
  background-color: transparent;
30
41
  }
31
- &[disabled] {
32
- color: @primary-color;
33
- background-color: transparent;
34
- border: 1px solid @primary-color;
35
-
36
- &:focus,
37
- &:hover {
38
- color: @primary-color;
39
- background-color: transparent;
40
- border: 1px solid @primary-color;
41
- }
42
- }
43
42
  }
44
43
 
45
44
  .ant-btn-primary {
@@ -49,11 +48,13 @@
49
48
  &:hover {
50
49
  border-color: @btn-hover-color;
51
50
  background-color: @btn-hover-bg;
51
+ color: white;
52
52
  }
53
53
  &:active,
54
54
  &:focus {
55
55
  border-color: @btn-focus-color;
56
56
  background-color: @btn-focus-bg;
57
+ color: white;
57
58
  }
58
59
  &[disabled] {
59
60
  color: white;
@@ -71,6 +72,7 @@
71
72
  padding: 0;
72
73
  height: unset;
73
74
  color: @primary-color;
75
+ border: none;
74
76
 
75
77
  &:hover {
76
78
  color: @hover-color;
@@ -81,6 +83,7 @@
81
83
  }
82
84
 
83
85
  &[disabled] {
86
+ border: none;
84
87
  color: @primary-color;
85
88
  &:hover {
86
89
  color: @primary-color;
@@ -92,6 +95,7 @@
92
95
  padding: 0;
93
96
  height: unset;
94
97
  color: @black;
98
+ border: none;
95
99
 
96
100
  &:hover {
97
101
  color: @primary-color;
@@ -103,8 +107,8 @@
103
107
  }
104
108
 
105
109
  &[disabled] {
110
+ border: none;
106
111
  color: @black;
107
-
108
112
  &:hover {
109
113
  color: @black;
110
114
  background-color: transparent;
@@ -16,42 +16,36 @@ var IglooCardGroup = function IglooCardGroup(props) {
16
16
  var className = props.className,
17
17
  style = props.style;
18
18
 
19
- var subTitle = _jsxs(_Space, Object.assign({
19
+ var subTitle = _jsxs(_Space, {
20
20
  size: 8,
21
21
  style: {
22
22
  marginBottom: 16
23
- }
24
- }, {
25
- children: [_jsx(Typography, Object.assign({
26
- level: "h4"
27
- }, {
23
+ },
24
+ children: [_jsx(Typography, {
25
+ level: "h4",
28
26
  children: subHeading
29
- }), void 0), subStatus]
30
- }), void 0);
27
+ }, void 0), subStatus]
28
+ }, void 0);
31
29
 
32
- return subHeading || subStatus ? _jsxs(_Row, Object.assign({
30
+ return subHeading || subStatus ? _jsxs(_Row, {
33
31
  style: style,
34
- className: classnames('igloo-form-card-container-group-with-header', className)
35
- }, {
36
- children: [_jsx(_Col, Object.assign({
37
- span: 24
38
- }, {
32
+ className: classnames('igloo-form-card-container-group-with-header', className),
33
+ children: [_jsx(_Col, {
34
+ span: 24,
39
35
  children: (subHeading || subStatus) && subTitle
40
- }), void 0), _jsx(_Row, Object.assign({
36
+ }, void 0), _jsx(_Row, {
41
37
  gutter: [32, 16],
42
38
  style: {
43
39
  width: '100%'
44
- }
45
- }, {
40
+ },
46
41
  children: children
47
- }), void 0)]
48
- }), void 0) : _jsx(_Row, Object.assign({
42
+ }, void 0)]
43
+ }, void 0) : _jsx(_Row, {
49
44
  gutter: [32, 16],
50
45
  style: style,
51
- className: classnames('igloo-form-card-container-group', className)
52
- }, {
46
+ className: classnames('igloo-form-card-container-group', className),
53
47
  children: children
54
- }), void 0);
48
+ }, void 0);
55
49
  };
56
50
 
57
51
  IglooCardGroup.displayName = 'IglooCardGroup';
@@ -1,7 +1,7 @@
1
1
  import "antd/es/col/style";
2
2
  import _Col from "antd/es/col";
3
3
 
4
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
5
5
 
6
6
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
7
  import classnames from 'classnames';
@@ -22,18 +22,16 @@ var IglooCardItem = function IglooCardItem(props) {
22
22
  return null;
23
23
 
24
24
  case 'string':
25
- return _jsx(Typography, Object.assign({
26
- level: "body1"
27
- }, {
25
+ return _jsx(Typography, {
26
+ level: "body1",
28
27
  children: children
29
- }), void 0);
28
+ }, void 0);
30
29
 
31
30
  case 'number':
32
- return _jsx(Typography, Object.assign({
33
- level: "body1"
34
- }, {
31
+ return _jsx(Typography, {
32
+ level: "body1",
35
33
  children: children
36
- }), void 0);
34
+ }, void 0);
37
35
 
38
36
  case 'object':
39
37
  return children;
@@ -43,20 +41,17 @@ var IglooCardItem = function IglooCardItem(props) {
43
41
  }
44
42
  }
45
43
 
46
- return _jsxs(_Col, Object.assign({
44
+ return _jsxs(_Col, {
47
45
  span: span || 4,
48
- className: classnames('igloofrom-card-detail-item', className)
49
- }, {
50
- children: [_jsx("div", Object.assign({
51
- className: "card-item-title"
52
- }, {
53
- children: _jsx(Typography, Object.assign({
54
- level: "body1"
55
- }, {
46
+ className: classnames('igloofrom-card-detail-item', className),
47
+ children: [_jsx("div", {
48
+ className: "card-item-title",
49
+ children: _jsx(Typography, {
50
+ level: "body1",
56
51
  children: title
57
- }), void 0)
58
- }), void 0), renderContent(children)]
59
- }), void 0);
52
+ }, void 0)
53
+ }, void 0), renderContent(children)]
54
+ }, void 0);
60
55
  };
61
56
 
62
57
  IglooCardItem.displayName = 'IglooCardItem';
@@ -23,30 +23,26 @@ var IglooCardPage = function IglooCardPage(props) {
23
23
  }, index);
24
24
  });
25
25
 
26
- var titleContent = _jsxs(_Space, Object.assign({
27
- size: 8
28
- }, {
26
+ var titleContent = _jsxs(_Space, {
27
+ size: 8,
29
28
  children: [_jsx("span", {
30
29
  children: pageTitleIcon
31
- }, void 0), _jsx(Typography, Object.assign({
32
- level: "h3a"
33
- }, {
30
+ }, void 0), _jsx(Typography, {
31
+ level: "h3a",
34
32
  children: title
35
- }), void 0), pageStatusIcon]
36
- }), void 0);
33
+ }, void 0), pageStatusIcon]
34
+ }, void 0);
37
35
 
38
- return _jsx(_Card, Object.assign({
36
+ return _jsx(_Card, {
39
37
  style: style,
40
38
  className: classnames('igloo-card-page', className),
41
39
  title: titleContent,
42
- extra: _jsx(_Space, Object.assign({
43
- size: 18
44
- }, {
40
+ extra: _jsx(_Space, {
41
+ size: 18,
45
42
  children: extraButtonsWithKey
46
- }), void 0)
47
- }, {
43
+ }, void 0),
48
44
  children: DealWithCardItem(children, true)
49
- }), void 0);
45
+ }, void 0);
50
46
  };
51
47
 
52
48
  export default IglooCardPage;
@@ -4,6 +4,12 @@ import "antd/es/space/style";
4
4
  import _Space from "antd/es/space";
5
5
  var _excluded = ["title", "contentTitle", "contentStatus", "className"];
6
6
 
7
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8
+
9
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10
+
11
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
+
7
13
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
8
14
 
9
15
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -23,38 +29,32 @@ var IglooCard = function IglooCard(props) {
23
29
  className = props.className,
24
30
  rest = _objectWithoutProperties(props, _excluded);
25
31
 
26
- var cardTitle = _jsx(_Space, Object.assign({
27
- size: 8
28
- }, {
29
- children: _jsx(Typography, Object.assign({
30
- level: "h3b"
31
- }, {
32
+ var cardTitle = _jsx(_Space, {
33
+ size: 8,
34
+ children: _jsx(Typography, {
35
+ level: "h3b",
32
36
  children: title
33
- }), void 0)
34
- }), void 0);
37
+ }, void 0)
38
+ }, void 0);
35
39
 
36
- var contentTitleDom = _jsxs(_Space, Object.assign({
37
- size: 8
38
- }, {
39
- children: [_jsx(Typography, Object.assign({
40
- level: "h4"
41
- }, {
40
+ var contentTitleDom = _jsxs(_Space, {
41
+ size: 8,
42
+ children: [_jsx(Typography, {
43
+ level: "h4",
42
44
  children: contentTitle
43
- }), void 0), contentStatus]
44
- }), void 0);
45
+ }, void 0), contentStatus]
46
+ }, void 0);
45
47
 
46
- return _jsx(_Card, Object.assign({
48
+ return _jsx(_Card, _objectSpread(_objectSpread({
47
49
  type: "inner",
48
50
  title: cardTitle
49
- }, rest, {
50
- className: classnames('igloo-form-card-container', className)
51
- }, {
51
+ }, rest), {}, {
52
+ className: classnames('igloo-form-card-container', className),
52
53
  children: _jsxs("div", {
53
- children: [contentTitle && _jsx("div", Object.assign({
54
- className: "igloo-form-card-container-title"
55
- }, {
54
+ children: [contentTitle && _jsx("div", {
55
+ className: "igloo-form-card-container-title",
56
56
  children: contentTitleDom
57
- }), void 0), DealWithCardItem(children, false)]
57
+ }, void 0), DealWithCardItem(children, false)]
58
58
  }, void 0)
59
59
  }), void 0);
60
60
  };
@@ -54,7 +54,11 @@
54
54
 
55
55
  .igloo-card-detail-customize-content-wraper {
56
56
  margin: 0px 24px;
57
+ }
57
58
 
59
+ .igloo-card-detail-top-group-no-head,
60
+ .igloo-card-detail-top-group-with-head,
61
+ .igloo-card-detail-customize-content-wraper {
58
62
  .igloofrom-card-detail-item {
59
63
  color: #212121;
60
64
 
@@ -113,6 +117,15 @@
113
117
  }
114
118
 
115
119
  .igloo-form-card-container-group {
120
+ .igloofrom-card-detail-item {
121
+ color: #212121;
122
+
123
+ .card-item-title {
124
+ color: #666666;
125
+ margin-bottom: 4px;
126
+ }
127
+ }
128
+
116
129
  & + .igloo-form-card-container-group {
117
130
  padding-top: 16px;
118
131
  position: relative;
@@ -1,10 +1,10 @@
1
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
1
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
2
 
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
7
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
7
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
8
8
 
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  import React from 'react';
@@ -55,13 +55,12 @@ export function wrapCardItem() {
55
55
  if (Array.isArray(item)) {
56
56
  if (!item.length) return null;
57
57
  var padding = hasCustomizeWrap ? "24px 24px 32px 24px" : "".concat(index ? 24 : 0, "px 0px 24px 0px");
58
- return item[0].type.displayName === 'IglooCardItem' ? _jsx(CardGroup, Object.assign({
58
+ return item[0].type.displayName === 'IglooCardItem' ? _jsx(CardGroup, {
59
59
  style: {
60
60
  padding: padding
61
- }
62
- }, {
61
+ },
63
62
  children: item
64
- }), index) : item;
63
+ }, index) : item;
65
64
  } // 对齐样式
66
65
 
67
66
 
@@ -11,6 +11,12 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
11
11
 
12
12
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
13
13
 
14
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
+
16
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
17
+
18
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
+
14
20
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
21
  import Typography from '../typography';
16
22
  import formMethods from '../utils/form-methods';
@@ -19,7 +25,7 @@ import classnames from 'classnames';
19
25
  import './style/index.less';
20
26
 
21
27
  var IglooCheckbox = function IglooCheckbox(props) {
22
- return _jsx(_Checkbox, Object.assign({}, omit(props, formMethods)), void 0);
28
+ return _jsx(_Checkbox, _objectSpread({}, omit(props, formMethods)), void 0);
23
29
  };
24
30
 
25
31
  IglooCheckbox.formItemPropsHandler = function (config) {
@@ -39,39 +45,34 @@ export var CheckboxGroup = function CheckboxGroup(_ref) {
39
45
  value = _ref.value,
40
46
  rest = _objectWithoutProperties(_ref, _excluded);
41
47
 
42
- return _jsx(_Checkbox.Group, Object.assign({}, omit(rest, formMethods), {
48
+ return _jsx(_Checkbox.Group, _objectSpread(_objectSpread({}, omit(rest, formMethods)), {}, {
43
49
  className: classnames('igloo-checkbox-group', className),
44
- value: value
45
- }, {
46
- children: _jsx(_Row, Object.assign({
47
- gutter: [8, 8]
48
- }, {
50
+ value: value,
51
+ children: _jsx(_Row, {
52
+ gutter: [8, 8],
49
53
  children: options.map(function (_ref2) {
50
54
  var label = _ref2.label,
51
55
  key = _ref2.value,
52
56
  extraInfo = _ref2.extraInfo,
53
57
  rest = _objectWithoutProperties(_ref2, _excluded2);
54
58
 
55
- return _jsxs(_Col, Object.assign({
59
+ return _jsxs(_Col, {
56
60
  span: 24,
57
- className: 'igloo-checkbox-group-normal'
58
- }, {
59
- children: [_jsx(_Checkbox, Object.assign({
61
+ className: 'igloo-checkbox-group-normal',
62
+ children: [_jsx(_Checkbox, _objectSpread(_objectSpread({
60
63
  value: key
61
- }, rest, {
62
- children: _jsx(Typography, Object.assign({
63
- level: "body1"
64
- }, {
64
+ }, rest), {}, {
65
+ children: _jsx(Typography, {
66
+ level: "body1",
65
67
  children: label
66
- }), void 0)
67
- }), void 0), _jsx("div", Object.assign({
68
- className: "igloo-checkbox-extra"
69
- }, {
68
+ }, void 0)
69
+ }), void 0), _jsx("div", {
70
+ className: "igloo-checkbox-extra",
70
71
  children: extraInfo && (extraInfo.shownTrigger === 'all' || extraInfo.shownTrigger === 'checked' && value === key || extraInfo.shownTrigger === 'unchecked' && value !== key) && extraInfo.content
71
- }), void 0)]
72
- }), key);
72
+ }, void 0)]
73
+ }, key);
73
74
  })
74
- }), void 0)
75
+ }, void 0)
75
76
  }), void 0);
76
77
  };
77
78