@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experium/findy-form",
3
- "version": "1.2.58",
3
+ "version": "1.2.59",
4
4
  "main": "./lib/index.js",
5
5
  "homepage": "https://experium.github.io/findy-form",
6
6
  "repository": "https://github.com/experium/findy-form",
@@ -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 id={name} className={`jobot-forms__formDateSelect ${styles.formDateSelect}`} ref={this.selectContainer}>
148
- { showDay &&
149
- <Masked
150
- id={`${name}-day`}
151
- className={styles.formInput}
152
- value={day}
153
- onChange={this.onChangeDay}
154
- onBlur={this.onBlurDay}
155
- mask={DAY_MASK}
156
- placeholderChar={'\u2000'}
157
- placeholder={t('placeholders.datePicker.day')}
158
- keepCharPositions={false}
159
- disabled={disabled}
160
- guide />
161
- }
162
- { showMonth &&
163
- <Select
164
- id={`${name}-month`}
165
- disabled={disabled}
166
- value={month || undefined}
167
- onChange={this.onChangeMonth}
168
- options={options}
169
- placeholder={t('placeholders.datePicker.month')}
170
- prefixCls='jobot-forms-rc-select'
171
- className='jobot-forms-month-select'
172
- getPopupContainer={() => this.selectContainer.current}
173
- />
174
- }
175
- { showYear &&
176
- <Masked
177
- id={`${name}-year`}
178
- disabled={disabled}
179
- className={styles.formInput}
180
- value={year}
181
- onChange={this.onChangeYear}
182
- onBlur={this.onBlurYear}
183
- mask={YEAR_MASK}
184
- placeholderChar={'\u2000'}
185
- placeholder={t('placeholders.datePicker.year')}
186
- keepCharPositions={false}
187
- guide />
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
  }