@experium/findy-form 1.2.58 → 1.2.59
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.
|
@@ -238,9 +238,10 @@ var DateSelect = /*#__PURE__*/function (_Component) {
|
|
|
238
238
|
returnObjects: true
|
|
239
239
|
});
|
|
240
240
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
241
|
-
id: name,
|
|
242
|
-
className: "jobot-forms__formDateSelect ".concat(styles.formDateSelect),
|
|
243
241
|
ref: this.selectContainer
|
|
242
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
243
|
+
id: name,
|
|
244
|
+
className: "jobot-forms__formDateSelect ".concat(styles.formDateSelect)
|
|
244
245
|
}, showDay && /*#__PURE__*/_react["default"].createElement(_reactTextMask["default"], {
|
|
245
246
|
id: "".concat(name, "-day"),
|
|
246
247
|
className: styles.formInput,
|
|
@@ -277,7 +278,7 @@ var DateSelect = /*#__PURE__*/function (_Component) {
|
|
|
277
278
|
placeholder: t('placeholders.datePicker.year'),
|
|
278
279
|
keepCharPositions: false,
|
|
279
280
|
guide: true
|
|
280
|
-
}));
|
|
281
|
+
})));
|
|
281
282
|
}
|
|
282
283
|
}]);
|
|
283
284
|
return DateSelect;
|
package/package.json
CHANGED
|
@@ -144,48 +144,50 @@ class DateSelect extends Component {
|
|
|
144
144
|
const { day, month, year } = this.state;
|
|
145
145
|
const options = t('MONTHS', { returnObjects: true });
|
|
146
146
|
|
|
147
|
-
return <div
|
|
148
|
-
{
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
147
|
+
return <div ref={this.selectContainer}>
|
|
148
|
+
<div id={name} className={`jobot-forms__formDateSelect ${styles.formDateSelect}`}>
|
|
149
|
+
{ showDay &&
|
|
150
|
+
<Masked
|
|
151
|
+
id={`${name}-day`}
|
|
152
|
+
className={styles.formInput}
|
|
153
|
+
value={day}
|
|
154
|
+
onChange={this.onChangeDay}
|
|
155
|
+
onBlur={this.onBlurDay}
|
|
156
|
+
mask={DAY_MASK}
|
|
157
|
+
placeholderChar={'\u2000'}
|
|
158
|
+
placeholder={t('placeholders.datePicker.day')}
|
|
159
|
+
keepCharPositions={false}
|
|
160
|
+
disabled={disabled}
|
|
161
|
+
guide />
|
|
162
|
+
}
|
|
163
|
+
{ showMonth &&
|
|
164
|
+
<Select
|
|
165
|
+
id={`${name}-month`}
|
|
166
|
+
disabled={disabled}
|
|
167
|
+
value={month || undefined}
|
|
168
|
+
onChange={this.onChangeMonth}
|
|
169
|
+
options={options}
|
|
170
|
+
placeholder={t('placeholders.datePicker.month')}
|
|
171
|
+
prefixCls='jobot-forms-rc-select'
|
|
172
|
+
className='jobot-forms-month-select'
|
|
173
|
+
getPopupContainer={() => this.selectContainer.current}
|
|
174
|
+
/>
|
|
175
|
+
}
|
|
176
|
+
{ showYear &&
|
|
177
|
+
<Masked
|
|
178
|
+
id={`${name}-year`}
|
|
179
|
+
disabled={disabled}
|
|
180
|
+
className={styles.formInput}
|
|
181
|
+
value={year}
|
|
182
|
+
onChange={this.onChangeYear}
|
|
183
|
+
onBlur={this.onBlurYear}
|
|
184
|
+
mask={YEAR_MASK}
|
|
185
|
+
placeholderChar={'\u2000'}
|
|
186
|
+
placeholder={t('placeholders.datePicker.year')}
|
|
187
|
+
keepCharPositions={false}
|
|
188
|
+
guide />
|
|
189
|
+
}
|
|
190
|
+
</div>
|
|
189
191
|
</div>;
|
|
190
192
|
}
|
|
191
193
|
}
|