iglooform 3.0.5 → 3.0.7

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 (190) hide show
  1. package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +2 -2
  2. package/es/alert-message/style/index.less +3 -3
  3. package/es/filter/index.js +3 -3
  4. package/es/input/expiry-date.js +5 -0
  5. package/es/input/input-date.js +5 -0
  6. package/es/input/style/otp/index.less +1 -1
  7. package/es/login-page/style/index.less +10 -10
  8. package/es/upload-photo/style/index.less +20 -20
  9. package/es/upload-preview/style/index.less +1 -1
  10. package/es/utils/form-utils.js +1 -0
  11. package/lib/alert-message/style/index.less +3 -3
  12. package/lib/filter/index.js +3 -3
  13. package/lib/input/expiry-date.js +5 -0
  14. package/lib/input/input-date.js +5 -0
  15. package/lib/input/style/otp/index.less +1 -1
  16. package/lib/login-page/style/index.less +10 -10
  17. package/lib/upload-photo/style/index.less +20 -20
  18. package/lib/upload-preview/style/index.less +1 -1
  19. package/lib/utils/form-utils.js +1 -0
  20. package/package.json +1 -1
  21. package/es/admin-amount/index.d.ts +0 -9
  22. package/es/admin-upload/float.d.ts +0 -16
  23. package/es/admin-upload/index.d.ts +0 -36
  24. package/es/admin-upload/modal.d.ts +0 -17
  25. package/es/alert-message/index.d.ts +0 -5
  26. package/es/button/index.d.ts +0 -11
  27. package/es/card-detail/card-group.d.ts +0 -12
  28. package/es/card-detail/card-item.d.ts +0 -9
  29. package/es/card-detail/card-page.d.ts +0 -12
  30. package/es/card-detail/card.d.ts +0 -10
  31. package/es/card-detail/utils.d.ts +0 -5
  32. package/es/checkbox/index.d.ts +0 -24
  33. package/es/claim-list/index.d.ts +0 -48
  34. package/es/confirmation/index.d.ts +0 -14
  35. package/es/date-picker/buddhist.d.ts +0 -6
  36. package/es/date-picker/index.d.ts +0 -13
  37. package/es/declaration/index.d.ts +0 -9
  38. package/es/detail-panel/index.d.ts +0 -18
  39. package/es/filter/checkBox.d.ts +0 -12
  40. package/es/filter/index.d.ts +0 -52
  41. package/es/filter/rangePicker.d.ts +0 -18
  42. package/es/form/addable-section/index.d.ts +0 -20
  43. package/es/form/element/index.d.ts +0 -12
  44. package/es/form/elements.d.ts +0 -8
  45. package/es/form/hstep/index.d.ts +0 -17
  46. package/es/form/hsteps/index.d.ts +0 -21
  47. package/es/form/index.d.ts +0 -4
  48. package/es/form/login/index.d.ts +0 -9
  49. package/es/form/page/index.d.ts +0 -10
  50. package/es/form/pages/index.d.ts +0 -10
  51. package/es/form/section/index.d.ts +0 -16
  52. package/es/form/step/index.d.ts +0 -17
  53. package/es/form/steps/index.d.ts +0 -10
  54. package/es/form-context.d.ts +0 -27
  55. package/es/form-step-context.d.ts +0 -6
  56. package/es/free-form/addable-section/index.d.ts +0 -19
  57. package/es/free-form/element/index.d.ts +0 -11
  58. package/es/free-form/index.d.ts +0 -11
  59. package/es/free-form/page/index.d.ts +0 -16
  60. package/es/free-form/pages/index.d.ts +0 -10
  61. package/es/free-form/section/index.d.ts +0 -13
  62. package/es/free-form/step/index.d.ts +0 -21
  63. package/es/free-form/steps/index.d.ts +0 -12
  64. package/es/home-menu/index.d.ts +0 -20
  65. package/es/hooks/ocr/index.d.ts +0 -3
  66. package/es/hooks/ocr/micro-blink.d.ts +0 -10
  67. package/es/index.d.ts +0 -47
  68. package/es/input/amount.d.ts +0 -14
  69. package/es/input/credit-card.d.ts +0 -13
  70. package/es/input/email.d.ts +0 -6
  71. package/es/input/expiry-date.d.ts +0 -16
  72. package/es/input/index.d.ts +0 -14
  73. package/es/input/input-date.d.ts +0 -8
  74. package/es/input/input-id.d.ts +0 -6
  75. package/es/input/input-number.d.ts +0 -6
  76. package/es/input/input.d.ts +0 -9
  77. package/es/input/otp.d.ts +0 -11
  78. package/es/input/password.d.ts +0 -6
  79. package/es/input/phone-number.d.ts +0 -14
  80. package/es/input/text-area.d.ts +0 -6
  81. package/es/layout/header.d.ts +0 -5
  82. package/es/layout/index.d.ts +0 -56
  83. package/es/media/index.d.ts +0 -19
  84. package/es/message/index.d.ts +0 -12
  85. package/es/mobile-insurer-detail/index.d.ts +0 -40
  86. package/es/mobile-insurer-list/index.d.ts +0 -17
  87. package/es/modal/index.d.ts +0 -30
  88. package/es/ocr/index.d.ts +0 -15
  89. package/es/ocr/micro-blink/index.d.ts +0 -8
  90. package/es/policy-list/policy-card.d.ts +0 -48
  91. package/es/radio/index.d.ts +0 -24
  92. package/es/search-box/index.d.ts +0 -19
  93. package/es/select/attached-select.d.ts +0 -17
  94. package/es/select/select.d.ts +0 -13
  95. package/es/select/time-select.d.ts +0 -7
  96. package/es/status-box/index.d.ts +0 -11
  97. package/es/table/index.d.ts +0 -42
  98. package/es/types.d.ts +0 -182
  99. package/es/typography/index.d.ts +0 -14
  100. package/es/upload/index.d.ts +0 -16
  101. package/es/upload-photo/index.d.ts +0 -28
  102. package/es/upload-preview/index.d.ts +0 -9
  103. package/es/utils/form-methods.d.ts +0 -3
  104. package/es/utils/form-utils.d.ts +0 -77
  105. package/es/utils/option-utils.d.ts +0 -29
  106. package/lib/admin-amount/index.d.ts +0 -9
  107. package/lib/admin-upload/float.d.ts +0 -16
  108. package/lib/admin-upload/index.d.ts +0 -36
  109. package/lib/admin-upload/modal.d.ts +0 -17
  110. package/lib/alert-message/index.d.ts +0 -5
  111. package/lib/button/index.d.ts +0 -11
  112. package/lib/card-detail/card-group.d.ts +0 -12
  113. package/lib/card-detail/card-item.d.ts +0 -9
  114. package/lib/card-detail/card-page.d.ts +0 -12
  115. package/lib/card-detail/card.d.ts +0 -10
  116. package/lib/card-detail/utils.d.ts +0 -5
  117. package/lib/checkbox/index.d.ts +0 -24
  118. package/lib/claim-list/index.d.ts +0 -48
  119. package/lib/confirmation/index.d.ts +0 -14
  120. package/lib/date-picker/buddhist.d.ts +0 -6
  121. package/lib/date-picker/index.d.ts +0 -13
  122. package/lib/declaration/index.d.ts +0 -9
  123. package/lib/detail-panel/index.d.ts +0 -18
  124. package/lib/filter/checkBox.d.ts +0 -12
  125. package/lib/filter/index.d.ts +0 -52
  126. package/lib/filter/rangePicker.d.ts +0 -18
  127. package/lib/form/addable-section/index.d.ts +0 -20
  128. package/lib/form/element/index.d.ts +0 -12
  129. package/lib/form/elements.d.ts +0 -8
  130. package/lib/form/hstep/index.d.ts +0 -17
  131. package/lib/form/hsteps/index.d.ts +0 -21
  132. package/lib/form/index.d.ts +0 -4
  133. package/lib/form/login/index.d.ts +0 -9
  134. package/lib/form/page/index.d.ts +0 -10
  135. package/lib/form/pages/index.d.ts +0 -10
  136. package/lib/form/section/index.d.ts +0 -16
  137. package/lib/form/step/index.d.ts +0 -17
  138. package/lib/form/steps/index.d.ts +0 -10
  139. package/lib/form-context.d.ts +0 -27
  140. package/lib/form-step-context.d.ts +0 -6
  141. package/lib/free-form/addable-section/index.d.ts +0 -19
  142. package/lib/free-form/element/index.d.ts +0 -11
  143. package/lib/free-form/index.d.ts +0 -11
  144. package/lib/free-form/page/index.d.ts +0 -16
  145. package/lib/free-form/pages/index.d.ts +0 -10
  146. package/lib/free-form/section/index.d.ts +0 -13
  147. package/lib/free-form/step/index.d.ts +0 -21
  148. package/lib/free-form/steps/index.d.ts +0 -12
  149. package/lib/home-menu/index.d.ts +0 -20
  150. package/lib/hooks/ocr/index.d.ts +0 -3
  151. package/lib/hooks/ocr/micro-blink.d.ts +0 -10
  152. package/lib/index.d.ts +0 -47
  153. package/lib/input/amount.d.ts +0 -14
  154. package/lib/input/credit-card.d.ts +0 -13
  155. package/lib/input/email.d.ts +0 -6
  156. package/lib/input/expiry-date.d.ts +0 -16
  157. package/lib/input/index.d.ts +0 -14
  158. package/lib/input/input-date.d.ts +0 -8
  159. package/lib/input/input-id.d.ts +0 -6
  160. package/lib/input/input-number.d.ts +0 -6
  161. package/lib/input/input.d.ts +0 -9
  162. package/lib/input/otp.d.ts +0 -11
  163. package/lib/input/password.d.ts +0 -6
  164. package/lib/input/phone-number.d.ts +0 -14
  165. package/lib/input/text-area.d.ts +0 -6
  166. package/lib/layout/header.d.ts +0 -5
  167. package/lib/layout/index.d.ts +0 -56
  168. package/lib/media/index.d.ts +0 -19
  169. package/lib/message/index.d.ts +0 -12
  170. package/lib/mobile-insurer-detail/index.d.ts +0 -40
  171. package/lib/mobile-insurer-list/index.d.ts +0 -17
  172. package/lib/modal/index.d.ts +0 -30
  173. package/lib/ocr/index.d.ts +0 -15
  174. package/lib/ocr/micro-blink/index.d.ts +0 -8
  175. package/lib/policy-list/policy-card.d.ts +0 -48
  176. package/lib/radio/index.d.ts +0 -24
  177. package/lib/search-box/index.d.ts +0 -19
  178. package/lib/select/attached-select.d.ts +0 -17
  179. package/lib/select/select.d.ts +0 -13
  180. package/lib/select/time-select.d.ts +0 -7
  181. package/lib/status-box/index.d.ts +0 -11
  182. package/lib/table/index.d.ts +0 -42
  183. package/lib/types.d.ts +0 -182
  184. package/lib/typography/index.d.ts +0 -14
  185. package/lib/upload/index.d.ts +0 -16
  186. package/lib/upload-photo/index.d.ts +0 -28
  187. package/lib/upload-preview/index.d.ts +0 -9
  188. package/lib/utils/form-methods.d.ts +0 -3
  189. package/lib/utils/form-utils.d.ts +0 -77
  190. package/lib/utils/option-utils.d.ts +0 -29
@@ -30,7 +30,7 @@ export default function DumiContextWrapper() {
30
30
 
31
31
  return (
32
32
  <SiteContext.Provider value={{
33
- pkg: {"name":"iglooform","version":"3.0.4","license":"MIT"},
33
+ pkg: {"name":"iglooform","version":"3.0.6","license":"MIT"},
34
34
  historyType: "browser",
35
35
  entryExports,
36
36
  demos,
@@ -39,7 +39,7 @@ export default function DumiContextWrapper() {
39
39
  loading,
40
40
  setLoading,
41
41
  hostname: undefined,
42
- themeConfig: {"footer":"Copyright © 2023 | Powered by <a href=\"https://d.umijs.org\" target=\"_blank\" rel=\"noreferrer\">dumi</a>","prefersColor":{"default":"light","switch":true},"nprogress":true,"lastUpdated":true,"mode":"site","title":"iglooform","logo":"/logo.png","name":"iglooform","nav":{"mode":"append","value":[{"title":"2.x","link":"https://iglooform.dev.axinan.com"}]}},
42
+ themeConfig: {"footer":"Copyright © 2024 | Powered by <a href=\"https://d.umijs.org\" target=\"_blank\" rel=\"noreferrer\">dumi</a>","prefersColor":{"default":"light","switch":true},"nprogress":true,"lastUpdated":true,"mode":"site","title":"iglooform","logo":"/logo.png","name":"iglooform","nav":{"mode":"append","value":[{"title":"2.x","link":"https://iglooform.dev.axinan.com"}]}},
43
43
  _2_level_nav_available: false,
44
44
  }}>
45
45
  {outlet}
@@ -5,9 +5,9 @@
5
5
  padding: 12px 16px;
6
6
  border-width: 0px;
7
7
 
8
- &-message {
8
+ & &-message {
9
9
  font-size: 14px;
10
- color: @text-color;
10
+ color: @text-color;
11
11
  margin-left: 8px;
12
12
  white-space: pre-wrap;
13
13
  word-break: keep-all;
@@ -18,7 +18,7 @@
18
18
  }
19
19
  }
20
20
 
21
- &-icon {
21
+ & &-icon {
22
22
  font-size: 24px;
23
23
  position: absolute;
24
24
  top: 10px;
@@ -964,9 +964,9 @@ var FilterComponent = function FilterComponent(props) {
964
964
  }),
965
965
  placement: 'bottomLeft',
966
966
  overlayClassName: "igloo-form-filter-drop-down-container",
967
- visible: dropVisible,
968
- onOpenChange: function onOpenChange(visible) {
969
- setDropVisible(visible);
967
+ open: dropVisible,
968
+ onOpenChange: function onOpenChange(visible, info) {
969
+ info.source !== 'menu' && setDropVisible(visible);
970
970
  if (visible) {
971
971
  typeof beforeOpenFilter === 'function' && beforeOpenFilter(_objectSpread({}, confirmed));
972
972
  }
@@ -234,6 +234,11 @@ function checkTime(value, check) {
234
234
  if (!value) {
235
235
  return Promise.resolve();
236
236
  }
237
+ if (value === 'error type') {
238
+ return Promise.reject(staticFormatMessage({
239
+ id: 'Please enter a valid date.'
240
+ }));
241
+ }
237
242
  var _ref = value || {},
238
243
  year = _ref.year,
239
244
  month = _ref.month;
@@ -239,6 +239,11 @@ function checkTime(value, format) {
239
239
  if (!value) {
240
240
  return Promise.resolve();
241
241
  }
242
+ if (value === 'error type') {
243
+ return Promise.reject(staticFormatMessage({
244
+ id: 'Please enter a valid date.'
245
+ }));
246
+ }
242
247
  return moment(value, format, true).isValid() ? Promise.resolve() : Promise.reject(staticFormatMessage({
243
248
  id: 'Please enter a valid date.'
244
249
  }));
@@ -17,7 +17,7 @@
17
17
  font-size: 12px;
18
18
  line-height: 16px;
19
19
 
20
- &-inner {
20
+ .igloo-otp-count-down-inner {
21
21
  color: @icon-color;
22
22
  font-weight: bold;
23
23
  font-size: 12px;
@@ -8,7 +8,7 @@
8
8
  background-position-x: 100%;
9
9
  background-size: contain;
10
10
 
11
- &-logo {
11
+ .igloo-login-page-logo {
12
12
  position: absolute;
13
13
  width: 108px;
14
14
  height: 60px;
@@ -18,27 +18,27 @@
18
18
  background-size: contain;
19
19
  }
20
20
 
21
- &-child-box {
21
+ .igloo-login-page-child-box {
22
22
  position: absolute;
23
23
  top: 200px;
24
24
  left: 166px;
25
25
  }
26
26
 
27
- &-text-box {
27
+ .igloo-login-page-text-box {
28
28
  position: absolute;
29
29
  right: 103px;
30
30
  bottom: 128px;
31
31
 
32
- &-text {
32
+ .igloo-login-page-text-box-text {
33
33
  font-family: Semplicita Pro;
34
34
  font-weight: bold;
35
35
  color: #fff;
36
36
  }
37
37
 
38
- &-buttons {
38
+ .igloo-login-page-text-box-buttons {
39
39
  margin-top: 40px;
40
40
 
41
- &-button {
41
+ .igloo-login-page-text-box-buttons-button {
42
42
  display: inline-block;
43
43
  cursor: pointer;
44
44
  width: 140px;
@@ -47,11 +47,11 @@
47
47
  background-repeat: no-repeat;
48
48
  }
49
49
 
50
- &-apple {
50
+ .igloo-login-page-text-box-buttons-apple {
51
51
  background-image: url(./apple.svg);
52
52
  }
53
53
 
54
- &-google {
54
+ .igloo-login-page-text-box-buttons-google {
55
55
  background-image: url(./google.svg);
56
56
  margin-left: 16px;
57
57
  }
@@ -64,14 +64,14 @@
64
64
  width: 100vw;
65
65
  height: 100vh;
66
66
 
67
- &-logo {
67
+ .igloo-login-page-mobile-logo {
68
68
  width: 108px;
69
69
  height: 60px;
70
70
  background: url(./logo.svg) no-repeat;
71
71
  background-size: contain;
72
72
  }
73
73
 
74
- &-child-box {
74
+ .igloo-login-page-mobile-child-box {
75
75
  margin-top: 40px;
76
76
  }
77
77
  }
@@ -1,5 +1,5 @@
1
1
  .igloo-upload-photo {
2
- &-sample {
2
+ .igloo-upload-photo-sample {
3
3
  display: flex;
4
4
  align-items: center;
5
5
  justify-content: space-between;
@@ -8,7 +8,7 @@
8
8
  margin-bottom: 16px;
9
9
  border-radius: 3px;
10
10
 
11
- &-photos {
11
+ .igloo-upload-photo-sample-photos {
12
12
  &-photo {
13
13
  width: 100%;
14
14
  }
@@ -39,28 +39,28 @@
39
39
  }
40
40
  }
41
41
 
42
- &-descriptions {
43
- color: @icon-color;
42
+ .igloo-upload-photo-sample-descriptions {
43
+ color: @icon-color;
44
44
  word-break: break-word;
45
45
  white-space: pre-wrap;
46
46
  font-style: italic;
47
47
  font-size: 14px;
48
48
  }
49
49
 
50
- &-descriptions-center {
50
+ .igloo-upload-photo-sample-descriptions-center {
51
51
  display: flex;
52
52
  align-items: center;
53
53
  }
54
54
  }
55
55
 
56
- &-content {
56
+ .igloo-upload-photo-content {
57
57
  margin-bottom: 0 !important;
58
58
 
59
59
  .ant-space-item {
60
60
  height: 98px;
61
61
  }
62
62
 
63
- &-container {
63
+ .igloo-upload-photo-content-container {
64
64
  position: relative;
65
65
  border: 1px solid #eeeeee;
66
66
  border-radius: 3px;
@@ -73,7 +73,7 @@
73
73
  }
74
74
  }
75
75
 
76
- &-mask {
76
+ .igloo-upload-photo-content-mask {
77
77
  display: flex;
78
78
  position: absolute;
79
79
  top: 0;
@@ -89,7 +89,7 @@
89
89
  z-index: 1;
90
90
  }
91
91
 
92
- &-preview {
92
+ .igloo-upload-photo-content-preview {
93
93
  display: flex;
94
94
  align-items: center;
95
95
  justify-content: center;
@@ -100,11 +100,11 @@
100
100
  overflow: hidden;
101
101
  }
102
102
 
103
- &-error {
103
+ .igloo-upload-photo-content-error {
104
104
  border: 1px solid #de3618;
105
105
  }
106
106
 
107
- &-button {
107
+ .igloo-upload-photo-content-button {
108
108
  display: flex;
109
109
  width: 98px;
110
110
  height: 98px;
@@ -119,38 +119,38 @@
119
119
  }
120
120
 
121
121
  @media screen and (max-width: 768px) {
122
- &-sample {
122
+ .igloo-upload-photo-sample {
123
123
  display: block;
124
124
  padding: 16px;
125
125
 
126
- &-photos {
126
+ .igloo-upload-photo-sample-photos {
127
127
  width: 100%;
128
128
  }
129
129
 
130
- &-descriptions {
130
+ .igloo-upload-photo-sample-descriptions {
131
131
  width: 100%;
132
- color: @icon-color;
132
+ color: @icon-color;
133
133
  word-break: break-word;
134
134
  white-space: pre-wrap;
135
135
  }
136
136
  }
137
137
 
138
- &-content {
138
+ .igloo-upload-photo-content {
139
139
  .ant-space-item {
140
140
  height: 86px;
141
141
  }
142
142
 
143
- &-preview {
143
+ .igloo-upload-photo-content-preview {
144
144
  width: 86px;
145
145
  height: 86px;
146
146
  }
147
147
 
148
- &-container {
148
+ .igloo-upload-photo-content-container {
149
149
  width: 86px;
150
150
  height: 86px;
151
151
  }
152
152
 
153
- &-button {
153
+ .igloo-upload-photo-content-button {
154
154
  display: flex;
155
155
  width: 86px;
156
156
  height: 86px;
@@ -164,7 +164,7 @@
164
164
  }
165
165
 
166
166
  .ant-form-item-has-error .dont-show-error-status {
167
- border-color: @border-color;
167
+ border-color: @border-color;
168
168
  }
169
169
 
170
170
  .igloo-upload-photo-preview-modal {
@@ -13,7 +13,7 @@
13
13
  .igloo-upload-preview-modal {
14
14
  position: relative;
15
15
 
16
- &-button {
16
+ & &-button {
17
17
  position: absolute;
18
18
  width: 24px;
19
19
  height: 44px;
@@ -268,6 +268,7 @@ export var calcFormItemProps = function calcFormItemProps(config, extraProps, fo
268
268
  if (type === 'InputDate') {
269
269
  rules.push({
270
270
  validator: function validator(_, date) {
271
+ if (!date) return Promise.resolve();
271
272
  var trimedDate = date.replaceAll(/\s/g, '');
272
273
  var format = elementProps.format ? elementProps.format.replaceAll(/\s/g, '') : 'DD/MM/YYYY';
273
274
  if (rangeStart && moment(trimedDate, format) < rangeStart) {
@@ -5,9 +5,9 @@
5
5
  padding: 12px 16px;
6
6
  border-width: 0px;
7
7
 
8
- &-message {
8
+ & &-message {
9
9
  font-size: 14px;
10
- color: @text-color;
10
+ color: @text-color;
11
11
  margin-left: 8px;
12
12
  white-space: pre-wrap;
13
13
  word-break: keep-all;
@@ -18,7 +18,7 @@
18
18
  }
19
19
  }
20
20
 
21
- &-icon {
21
+ & &-icon {
22
22
  font-size: 24px;
23
23
  position: absolute;
24
24
  top: 10px;
@@ -970,9 +970,9 @@ var FilterComponent = function FilterComponent(props) {
970
970
  }),
971
971
  placement: 'bottomLeft',
972
972
  overlayClassName: "igloo-form-filter-drop-down-container",
973
- visible: dropVisible,
974
- onOpenChange: function onOpenChange(visible) {
975
- setDropVisible(visible);
973
+ open: dropVisible,
974
+ onOpenChange: function onOpenChange(visible, info) {
975
+ info.source !== 'menu' && setDropVisible(visible);
976
976
  if (visible) {
977
977
  typeof beforeOpenFilter === 'function' && beforeOpenFilter(_objectSpread({}, confirmed));
978
978
  }
@@ -239,6 +239,11 @@ function checkTime(value, check) {
239
239
  if (!value) {
240
240
  return Promise.resolve();
241
241
  }
242
+ if (value === 'error type') {
243
+ return Promise.reject((0, _locale.staticFormatMessage)({
244
+ id: 'Please enter a valid date.'
245
+ }));
246
+ }
242
247
  var _ref = value || {},
243
248
  year = _ref.year,
244
249
  month = _ref.month;
@@ -244,6 +244,11 @@ function checkTime(value, format) {
244
244
  if (!value) {
245
245
  return Promise.resolve();
246
246
  }
247
+ if (value === 'error type') {
248
+ return Promise.reject((0, _locale.staticFormatMessage)({
249
+ id: 'Please enter a valid date.'
250
+ }));
251
+ }
247
252
  return (0, _dayjs.default)(value, format, true).isValid() ? Promise.resolve() : Promise.reject((0, _locale.staticFormatMessage)({
248
253
  id: 'Please enter a valid date.'
249
254
  }));
@@ -17,7 +17,7 @@
17
17
  font-size: 12px;
18
18
  line-height: 16px;
19
19
 
20
- &-inner {
20
+ .igloo-otp-count-down-inner {
21
21
  color: @icon-color;
22
22
  font-weight: bold;
23
23
  font-size: 12px;
@@ -8,7 +8,7 @@
8
8
  background-position-x: 100%;
9
9
  background-size: contain;
10
10
 
11
- &-logo {
11
+ .igloo-login-page-logo {
12
12
  position: absolute;
13
13
  width: 108px;
14
14
  height: 60px;
@@ -18,27 +18,27 @@
18
18
  background-size: contain;
19
19
  }
20
20
 
21
- &-child-box {
21
+ .igloo-login-page-child-box {
22
22
  position: absolute;
23
23
  top: 200px;
24
24
  left: 166px;
25
25
  }
26
26
 
27
- &-text-box {
27
+ .igloo-login-page-text-box {
28
28
  position: absolute;
29
29
  right: 103px;
30
30
  bottom: 128px;
31
31
 
32
- &-text {
32
+ .igloo-login-page-text-box-text {
33
33
  font-family: Semplicita Pro;
34
34
  font-weight: bold;
35
35
  color: #fff;
36
36
  }
37
37
 
38
- &-buttons {
38
+ .igloo-login-page-text-box-buttons {
39
39
  margin-top: 40px;
40
40
 
41
- &-button {
41
+ .igloo-login-page-text-box-buttons-button {
42
42
  display: inline-block;
43
43
  cursor: pointer;
44
44
  width: 140px;
@@ -47,11 +47,11 @@
47
47
  background-repeat: no-repeat;
48
48
  }
49
49
 
50
- &-apple {
50
+ .igloo-login-page-text-box-buttons-apple {
51
51
  background-image: url(./apple.svg);
52
52
  }
53
53
 
54
- &-google {
54
+ .igloo-login-page-text-box-buttons-google {
55
55
  background-image: url(./google.svg);
56
56
  margin-left: 16px;
57
57
  }
@@ -64,14 +64,14 @@
64
64
  width: 100vw;
65
65
  height: 100vh;
66
66
 
67
- &-logo {
67
+ .igloo-login-page-mobile-logo {
68
68
  width: 108px;
69
69
  height: 60px;
70
70
  background: url(./logo.svg) no-repeat;
71
71
  background-size: contain;
72
72
  }
73
73
 
74
- &-child-box {
74
+ .igloo-login-page-mobile-child-box {
75
75
  margin-top: 40px;
76
76
  }
77
77
  }
@@ -1,5 +1,5 @@
1
1
  .igloo-upload-photo {
2
- &-sample {
2
+ .igloo-upload-photo-sample {
3
3
  display: flex;
4
4
  align-items: center;
5
5
  justify-content: space-between;
@@ -8,7 +8,7 @@
8
8
  margin-bottom: 16px;
9
9
  border-radius: 3px;
10
10
 
11
- &-photos {
11
+ .igloo-upload-photo-sample-photos {
12
12
  &-photo {
13
13
  width: 100%;
14
14
  }
@@ -39,28 +39,28 @@
39
39
  }
40
40
  }
41
41
 
42
- &-descriptions {
43
- color: @icon-color;
42
+ .igloo-upload-photo-sample-descriptions {
43
+ color: @icon-color;
44
44
  word-break: break-word;
45
45
  white-space: pre-wrap;
46
46
  font-style: italic;
47
47
  font-size: 14px;
48
48
  }
49
49
 
50
- &-descriptions-center {
50
+ .igloo-upload-photo-sample-descriptions-center {
51
51
  display: flex;
52
52
  align-items: center;
53
53
  }
54
54
  }
55
55
 
56
- &-content {
56
+ .igloo-upload-photo-content {
57
57
  margin-bottom: 0 !important;
58
58
 
59
59
  .ant-space-item {
60
60
  height: 98px;
61
61
  }
62
62
 
63
- &-container {
63
+ .igloo-upload-photo-content-container {
64
64
  position: relative;
65
65
  border: 1px solid #eeeeee;
66
66
  border-radius: 3px;
@@ -73,7 +73,7 @@
73
73
  }
74
74
  }
75
75
 
76
- &-mask {
76
+ .igloo-upload-photo-content-mask {
77
77
  display: flex;
78
78
  position: absolute;
79
79
  top: 0;
@@ -89,7 +89,7 @@
89
89
  z-index: 1;
90
90
  }
91
91
 
92
- &-preview {
92
+ .igloo-upload-photo-content-preview {
93
93
  display: flex;
94
94
  align-items: center;
95
95
  justify-content: center;
@@ -100,11 +100,11 @@
100
100
  overflow: hidden;
101
101
  }
102
102
 
103
- &-error {
103
+ .igloo-upload-photo-content-error {
104
104
  border: 1px solid #de3618;
105
105
  }
106
106
 
107
- &-button {
107
+ .igloo-upload-photo-content-button {
108
108
  display: flex;
109
109
  width: 98px;
110
110
  height: 98px;
@@ -119,38 +119,38 @@
119
119
  }
120
120
 
121
121
  @media screen and (max-width: 768px) {
122
- &-sample {
122
+ .igloo-upload-photo-sample {
123
123
  display: block;
124
124
  padding: 16px;
125
125
 
126
- &-photos {
126
+ .igloo-upload-photo-sample-photos {
127
127
  width: 100%;
128
128
  }
129
129
 
130
- &-descriptions {
130
+ .igloo-upload-photo-sample-descriptions {
131
131
  width: 100%;
132
- color: @icon-color;
132
+ color: @icon-color;
133
133
  word-break: break-word;
134
134
  white-space: pre-wrap;
135
135
  }
136
136
  }
137
137
 
138
- &-content {
138
+ .igloo-upload-photo-content {
139
139
  .ant-space-item {
140
140
  height: 86px;
141
141
  }
142
142
 
143
- &-preview {
143
+ .igloo-upload-photo-content-preview {
144
144
  width: 86px;
145
145
  height: 86px;
146
146
  }
147
147
 
148
- &-container {
148
+ .igloo-upload-photo-content-container {
149
149
  width: 86px;
150
150
  height: 86px;
151
151
  }
152
152
 
153
- &-button {
153
+ .igloo-upload-photo-content-button {
154
154
  display: flex;
155
155
  width: 86px;
156
156
  height: 86px;
@@ -164,7 +164,7 @@
164
164
  }
165
165
 
166
166
  .ant-form-item-has-error .dont-show-error-status {
167
- border-color: @border-color;
167
+ border-color: @border-color;
168
168
  }
169
169
 
170
170
  .igloo-upload-photo-preview-modal {
@@ -13,7 +13,7 @@
13
13
  .igloo-upload-preview-modal {
14
14
  position: relative;
15
15
 
16
- &-button {
16
+ & &-button {
17
17
  position: absolute;
18
18
  width: 24px;
19
19
  height: 44px;
@@ -276,6 +276,7 @@ var calcFormItemProps = function calcFormItemProps(config, extraProps, form, par
276
276
  if (type === 'InputDate') {
277
277
  rules.push({
278
278
  validator: function validator(_, date) {
279
+ if (!date) return Promise.resolve();
279
280
  var trimedDate = date.replaceAll(/\s/g, '');
280
281
  var format = elementProps.format ? elementProps.format.replaceAll(/\s/g, '') : 'DD/MM/YYYY';
281
282
  if (rangeStart && (0, _dayjs.default)(trimedDate, format) < rangeStart) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iglooform",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "build-dev": "dumi build",
@@ -1,9 +0,0 @@
1
- import { FC } from 'react';
2
- import { IglooTypographyProps } from '../typography';
3
- import { StatisticProps } from 'antd';
4
- interface Props extends StatisticProps {
5
- amount: number;
6
- level?: IglooTypographyProps['level'];
7
- }
8
- declare const Amount: FC<Props>;
9
- export default Amount;
@@ -1,16 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- export interface FloatProps {
3
- title?: string;
4
- visible: boolean;
5
- uploadingNumber: number;
6
- processingNumber: number;
7
- doneNumber: number;
8
- formatTips?: (props: {
9
- uploading: number;
10
- processing: number;
11
- done: number;
12
- }) => string;
13
- onClose: (props: any) => any;
14
- }
15
- declare const Float: FC<PropsWithChildren<FloatProps>>;
16
- export default Float;