intelicoreact 0.0.53 → 0.0.64

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 (51) hide show
  1. package/dist/Atomic/FormElements/DateTime/DateTime.stories.js +1 -1
  2. package/dist/Atomic/FormElements/Input/Input.js +5 -5
  3. package/dist/Atomic/FormElements/InputCalendar/InputCalendar.js +4 -4
  4. package/dist/Atomic/FormElements/InputDateRange/InputDateRange.js +265 -0
  5. package/dist/Atomic/FormElements/InputDateRange/InputDateRange.scss +569 -0
  6. package/dist/Atomic/FormElements/InputDateRange/InputDateRange.stories.js +243 -0
  7. package/dist/Atomic/FormElements/InputDateRange/components/Datepicker.js +486 -0
  8. package/dist/Atomic/FormElements/InputDateRange/components/OpenedPart.js +154 -0
  9. package/dist/Atomic/FormElements/InputDateRange/components/SelectItem.js +46 -0
  10. package/dist/Atomic/FormElements/InputDateRange/dependencies.js +249 -0
  11. package/dist/Atomic/FormElements/Modal/Modal.stories.js +64 -18
  12. package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.js +162 -0
  13. package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.scss +101 -0
  14. package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.stories.js +81 -0
  15. package/dist/Atomic/UI/Arrow/Arrow.js +80 -0
  16. package/dist/Atomic/UI/Arrow/Arrow.scss +19 -0
  17. package/dist/Atomic/UI/Arrow/Arrow.stories.js +46 -0
  18. package/dist/Atomic/UI/Button/Button.js +4 -2
  19. package/dist/Atomic/UI/Button/Button.scss +26 -0
  20. package/dist/Atomic/UI/Button/Button.stories.js +2 -2
  21. package/dist/Atomic/{FormElements → UI}/Calendar/Calendar.js +0 -0
  22. package/dist/Atomic/UI/Calendar/Calendar.scss +544 -0
  23. package/dist/Atomic/{FormElements → UI}/Calendar/Calendar.stories.js +5 -1
  24. package/dist/Functions/utils.js +10 -2
  25. package/package.json +7 -5
  26. package/src/Atomic/FormElements/DateTime/DateTime.stories.js +1 -1
  27. package/src/Atomic/FormElements/Input/Input.js +5 -5
  28. package/src/Atomic/FormElements/InputCalendar/InputCalendar.js +6 -6
  29. package/src/Atomic/FormElements/InputDateRange/InputDateRange.js +247 -0
  30. package/src/Atomic/FormElements/InputDateRange/InputDateRange.scss +569 -0
  31. package/src/Atomic/FormElements/InputDateRange/InputDateRange.stories.js +148 -0
  32. package/src/Atomic/FormElements/InputDateRange/components/Datepicker.js +406 -0
  33. package/src/Atomic/FormElements/InputDateRange/components/OpenedPart.js +112 -0
  34. package/src/Atomic/FormElements/InputDateRange/components/SelectItem.js +24 -0
  35. package/src/Atomic/FormElements/InputDateRange/dependencies.js +161 -0
  36. package/src/Atomic/FormElements/Modal/Modal.stories.js +60 -15
  37. package/src/Atomic/FormElements/RangeCalendar/RangeCalendar.js +143 -0
  38. package/src/Atomic/FormElements/RangeCalendar/RangeCalendar.scss +101 -0
  39. package/src/Atomic/FormElements/RangeCalendar/RangeCalendar.stories.js +54 -0
  40. package/src/Atomic/UI/Arrow/Arrow.js +41 -0
  41. package/src/Atomic/UI/Arrow/Arrow.scss +19 -0
  42. package/src/Atomic/UI/Arrow/Arrow.stories.js +32 -0
  43. package/src/Atomic/UI/Button/Button.js +3 -3
  44. package/src/Atomic/UI/Button/Button.scss +26 -0
  45. package/src/Atomic/UI/Button/Button.stories.js +4 -3
  46. package/src/Atomic/{FormElements → UI}/Calendar/Calendar.js +0 -0
  47. package/src/Atomic/UI/Calendar/Calendar.scss +544 -0
  48. package/src/Atomic/{FormElements → UI}/Calendar/Calendar.stories.js +5 -1
  49. package/src/Functions/utils.js +6 -0
  50. package/dist/Atomic/FormElements/Calendar/Calendar.scss +0 -543
  51. package/src/Atomic/FormElements/Calendar/Calendar.scss +0 -543
@@ -0,0 +1,544 @@
1
+ // .form-select-options {
2
+ // position: absolute;
3
+ // font-weight: 400;
4
+ // left: 0;
5
+ // margin-top: 3px;
6
+ // background-color: #fff;
7
+ // box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
8
+ // max-height: 335px;
9
+ // overflow-y: auto;
10
+ // border: 1px solid #e2e5ec;
11
+ // z-index: 7;
12
+
13
+ // &--wide {
14
+ // min-width: 100%;
15
+ // overflow-x: hidden;
16
+ // }
17
+
18
+ // &--short {
19
+ // max-height: 195px;
20
+ // }
21
+
22
+ // &--hoverable {
23
+ // border: none;
24
+ // }
25
+
26
+ // &--options-top {
27
+ // bottom: 100%;
28
+ // box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.15);
29
+ // }
30
+
31
+ // &__item {
32
+ // cursor: pointer;
33
+ // padding: 0 20px 0 30px;
34
+ // user-select: none;
35
+ // white-space: nowrap;
36
+
37
+ // &--active {
38
+ // //background: #f2f2f8 url(/media/images/check.svg) no-repeat center left 9px / 16px;
39
+ // }
40
+
41
+ // &--disabled {
42
+ // pointer-events: none;
43
+ // opacity: 0.3;
44
+ // }
45
+
46
+ // &:hover {
47
+ // background-color: #f2f2f8;
48
+ // }
49
+ // }
50
+
51
+ // &__group-name {
52
+ // cursor: default;
53
+ // padding: 0 20px 0 15px;
54
+ // margin-top: 4px;
55
+ // user-select: none;
56
+ // white-space: nowrap;
57
+ // color: #9aa0b9;
58
+ // font-size: 10px;
59
+ // font-weight: normal;
60
+ // text-transform: uppercase;
61
+ // }
62
+ // }
63
+
64
+ // .date-range-input {
65
+ // background-color: #ffff;
66
+ // min-width: 275px;
67
+ // flex-shrink: 0;
68
+ // display: flex;
69
+
70
+ // .select-form {
71
+ // flex-grow: 1;
72
+ // max-width: calc(100% - 72px);
73
+ // overflow: hidden;
74
+ // text-overflow: ellipsis;
75
+ // }
76
+
77
+ // button svg {
78
+ // margin: 0;
79
+ // }
80
+
81
+ // &>button:not(:last-child) {
82
+ // border-top-right-radius: 0;
83
+ // border-bottom-right-radius: 0;
84
+ // border-right: none;
85
+ // }
86
+
87
+ // & > button:not(:first-child),
88
+ // & > button:nth-child(n + 3) {
89
+ // border-top-left-radius: 0;
90
+ // border-bottom-left-radius: 0;
91
+ // border-right: none;
92
+ // }
93
+
94
+ // & button:not(:first-child),
95
+ // & button:not(:first-child) button {
96
+ // border-top-left-radius: 0;
97
+ // border-bottom-left-radius: 0;
98
+ // }
99
+
100
+ // &--compact {
101
+ // min-width: 130px;
102
+
103
+ // .form-select-options {
104
+ // width: 100%;
105
+ // }
106
+ // }
107
+
108
+ // &--focused {
109
+ // border: 1px solid #6b81dd;
110
+ // box-shadow: 0 0 3px 0 rgb(0 123 255 / 50%);
111
+ // }
112
+ // }
113
+
114
+ // .form-label {
115
+ // //display: block;
116
+ // font-weight: 500;
117
+ // line-height: 24px;
118
+ // font-size: 12px;
119
+ // position: relative;
120
+
121
+ // &--error {
122
+ // color: #f06d8d;
123
+ // font-size: 10px;
124
+ // font-weight: normal;
125
+ // line-height: 20px;
126
+ // position: absolute;
127
+ // white-space: nowrap;
128
+ // }
129
+
130
+ // &--short {
131
+ // height: 68px;
132
+ // }
133
+ // }
134
+
135
+ // .form-label-title {
136
+ // &--left {
137
+ // margin-right: 10px;
138
+ // white-space: nowrap;
139
+ // }
140
+ // }
141
+
142
+ // .form-label-title-text-right {
143
+ // font-weight: normal;
144
+ // font-size: 11px;
145
+ // color: #9aa0b9;
146
+ // }
147
+
148
+ // .form-input {
149
+ // display: block;
150
+ // box-sizing: border-box;
151
+ // width: 100%;
152
+ // min-height: 28px;
153
+ // padding: 5px 8px;
154
+ // border: 1px solid #e2e5ec;
155
+ // font-family: Roboto, sans-serif;
156
+ // font-size: 13px;
157
+ // font-weight: 400;
158
+ // resize: none;
159
+
160
+ // &--btn-right {
161
+ // & input {
162
+ // padding-right: 75px;
163
+ // }
164
+ // }
165
+
166
+ // &--tall {
167
+ // height: 160px;
168
+ // }
169
+
170
+ // &--small {
171
+ // width: 100px;
172
+ // height: 20px;
173
+ // }
174
+
175
+ // &--error {
176
+ // border: 1px solid #f06d8d;
177
+ // }
178
+
179
+ // &--lock {
180
+ // padding-right: 25px;
181
+ // //background: #fff url(/media/images/lock.svg) no-repeat center right 4px / 16px;
182
+ // }
183
+
184
+ // &--login {
185
+ // padding-right: 25px;
186
+ // //background: #fff url(/media/images/user.svg) no-repeat center right 4px / 16px;
187
+ // }
188
+
189
+ // &--email {
190
+ // padding-right: 25px;
191
+ // //background: #fff url(/media/images/mail.svg) no-repeat center right 4px / 16px;
192
+ // }
193
+
194
+ // &--password {
195
+ // padding-right: 25px;
196
+ // //background: #fff url(/media/images/key.svg) no-repeat center right 4px / 16px;
197
+ // }
198
+
199
+ // &--promo {
200
+ // padding-right: 25px;
201
+ // //background: #fff url(/media/images/gift.svg) no-repeat center right 4px / 16px;
202
+ // }
203
+
204
+ // &--edit {
205
+ // padding-right: 25px;
206
+ // //background: #fff url(/media/images/edit.svg) no-repeat center right 4px / 16px;
207
+ // }
208
+
209
+ // &:disabled {
210
+ // background-color: #f7f8fa;
211
+ // border: 1px solid #bac2c9;
212
+ // pointer-events: none;
213
+ // }
214
+
215
+ // &:focus {
216
+ // border: 1px solid #6b81dd;
217
+ // }
218
+
219
+ // &::placeholder {
220
+ // color: #bac2c9;
221
+ // }
222
+ // }
223
+
224
+ // select.form-input {
225
+ // -webkit-appearance: none;
226
+ // -moz-appearance: none;
227
+ // appearance: none;
228
+ // padding-right: 25px;
229
+ // //background: #fff url(/media/images/chevron-down.svg) no-repeat center right 4px / 16px;
230
+ // }
231
+
232
+ // .select-form {
233
+ // position: relative;
234
+ // }
235
+
236
+ // .form-select {
237
+ // &__clear-btn {
238
+ // position: absolute;
239
+ // width: 22px;
240
+ // height: 26px;
241
+ // right: 1px;
242
+ // top: 1px;
243
+ // margin-right: 2px;
244
+ // cursor: pointer;
245
+ // display: flex;
246
+ // align-items: center;
247
+ // justify-content: center;
248
+ // border-left: 1px solid #e2e5ecff;
249
+
250
+ // & svg {
251
+ // width: 16px;
252
+ // height: 16px;
253
+ // color: #9aa0b9ff;
254
+ // }
255
+
256
+ // &:hover {
257
+ // & svg {
258
+ // color: #6b81ddff;
259
+ // }
260
+ // }
261
+ // }
262
+
263
+ // &__input {
264
+ // //background: #fff url(/media/images/chevron-down.svg) no-repeat center right 4px / 16px;
265
+ // padding-right: 25px;
266
+ // line-height: initial;
267
+ // cursor: default;
268
+ // min-width: 60px;
269
+ // min-height: 28px;
270
+ // user-select: none;
271
+ // border-radius: 3px;
272
+ // white-space: nowrap;
273
+ // display: block;
274
+ // overflow: hidden;
275
+ // text-overflow: ellipsis;
276
+ // text-align: left;
277
+
278
+ // &--fixed {
279
+ // min-height: 76px;
280
+ // }
281
+
282
+ // &--opened {
283
+ // //background: #fff url(/media/images/chevron-up.svg) no-repeat center right 4px / 16px;
284
+ // padding-right: 25px;
285
+ // }
286
+
287
+ // &--focused {
288
+ // border: 1px solid #6b81dd;
289
+ // box-shadow: 0 0 3px 0 rgb(0 123 255 / 50%);
290
+ // }
291
+
292
+ // &--disabled {
293
+ // color: #9aa0b9;
294
+ // //background: #f7f8fa url(/media/images/chevron-down-disabled.svg) no-repeat center right 4px / 16px;
295
+ // border: 1px solid #bac2c9;
296
+ // padding-right: 25px;
297
+ // pointer-events: none;
298
+ // }
299
+
300
+ // &--placeholder {
301
+ // color: #9aa0b9;
302
+ // }
303
+
304
+ // &--searchable {
305
+ // padding: 0;
306
+ // }
307
+
308
+ // &--cleanable {
309
+ // background-position: center right 26px;
310
+ // padding-right: 45px;
311
+ // }
312
+ // }
313
+
314
+ // &__input-text {
315
+ // &--searchable {
316
+ // width: 100%;
317
+ // height: 24px;
318
+ // padding-left: 8px;
319
+ // font-family: Roboto, sans-serif;
320
+ // font-size: 13px;
321
+ // font-weight: 400;
322
+ // border: none;
323
+ // outline: none;
324
+ // box-shadow: none;
325
+
326
+ // &:focus {
327
+ // border: none;
328
+ // outline: none;
329
+ // box-shadow: none;
330
+ // }
331
+ // }
332
+ // }
333
+ // }
334
+
335
+ // .form-select-inner {
336
+ // position: absolute;
337
+ // left: 130px;
338
+ // font-weight: 400;
339
+ // margin-top: 3px;
340
+ // background-color: #fff;
341
+ // box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
342
+ // z-index: 6;
343
+ // }
344
+
345
+ // .date-picker {
346
+ // width: 444px;
347
+ // border: 1px solid #e2e5ec;
348
+
349
+ // &__header,
350
+ // &__footer {
351
+ // background: #f7fafc;
352
+ // padding: 10px 15px;
353
+ // display: flex;
354
+
355
+ // &--gray {
356
+ // color: #c4c4c4;
357
+ // display: flex;
358
+ // align-items: center;
359
+ // padding: 0 5px;
360
+ // }
361
+ // }
362
+
363
+ // &__previous-period {
364
+ // background: #f7fafc;
365
+ // font-size: 10px;
366
+ // line-height: 1.3;
367
+ // padding: 0 15px;
368
+ // min-height: 25px;
369
+ // color: #9aa0b9;
370
+ // }
371
+
372
+ // &__previous-period-interval {
373
+ // font-weight: 500;
374
+ // color: #000000;
375
+ // }
376
+
377
+ // &__calendars {
378
+ // display: flex;
379
+ // justify-content: space-between;
380
+ // padding: 10px 15px;
381
+ // }
382
+ // }
383
+
384
+ // .calendar-header {
385
+ // display: flex;
386
+ // height: 24px;
387
+ // margin: 0 6px;
388
+
389
+ // &__title {
390
+ // line-height: 20px;
391
+ // font-weight: 500;
392
+ // text-align: center;
393
+ // flex-grow: 1;
394
+ // color: #000000;
395
+ // display: flex;
396
+ // align-items: center;
397
+ // justify-content: center;
398
+ // }
399
+
400
+ // &__next,
401
+ // &__prev {
402
+ // width: 16px;
403
+ // color: #9aa0b9ff;
404
+ // display: flex;
405
+ // align-items: center;
406
+ // justify-content: center;
407
+
408
+ // & > div {
409
+ // display: flex;
410
+ // align-items: center;
411
+ // justify-content: center;
412
+ // cursor: pointer;
413
+ // height: 100%;
414
+
415
+ // &:hover {
416
+ // background: #e2e6f8;
417
+ // }
418
+ // }
419
+ // }
420
+ // }
421
+
422
+ // .date-picker-text-input {
423
+ // &--active input {
424
+ // border: 1px solid #6b81dd;
425
+ // box-shadow: 0 0 3px 0 rgb(0 123 255 / 50%);
426
+ // }
427
+ // }
428
+
429
+ .calendar {
430
+ background: #ffffff;
431
+ border: 1px solid #e2e5ec;
432
+ box-shadow: 0 5px 20px rgb(0 0 0 / 15%);
433
+ margin-top: 4px;
434
+ padding: 5px 0;
435
+
436
+ min-height: 195px;
437
+ width: 260px;
438
+ display: flex;
439
+ flex-direction: column;
440
+ user-select: none;
441
+
442
+ &__week {
443
+ display: flex;
444
+ }
445
+
446
+ &__day {
447
+ font-size: 13px;
448
+ line-height: 20px;
449
+ margin: 1px 0;
450
+ flex-grow: 1;
451
+ flex-basis: 0;
452
+ text-align: center;
453
+ padding: 1px 6px;
454
+ user-select: none;
455
+
456
+ &--clickable {
457
+ cursor: pointer;
458
+
459
+ &:hover {
460
+ background: #e2e6f8;
461
+ }
462
+ }
463
+
464
+ &--disabled {
465
+ cursor: default;
466
+ color: #9aa0b9;
467
+ pointer-events: none;
468
+
469
+ &:hover {
470
+ background: inherit;
471
+ }
472
+ }
473
+
474
+ &--range-end,
475
+ &--selected {
476
+ background: #6b81dd;
477
+ color: white;
478
+ border-radius: 4px;
479
+
480
+ &:hover {
481
+ background: #6b81dd;
482
+ }
483
+ }
484
+
485
+ &--range-inside {
486
+ background: #e2e6f8;
487
+ }
488
+
489
+ &--prev-range-end {
490
+ background: #e2e5ec;
491
+ border-radius: 4px;
492
+ }
493
+
494
+ &--prev-range-inside {
495
+ background: #f7f8fa;
496
+ }
497
+
498
+ &--title {
499
+ font-size: 10px;
500
+ color: #9aa0b9;
501
+ font-weight: normal;
502
+
503
+ &:hover {
504
+ background: inherit;
505
+ }
506
+ }
507
+ }
508
+
509
+ &-container {
510
+ width: 200px;
511
+ }
512
+
513
+ &-dropdown {
514
+ appearance: none;
515
+ background-color: white;
516
+ cursor: pointer;
517
+ color: gray;
518
+
519
+ width: 100%;
520
+ height: 28px;
521
+
522
+ display: flex;
523
+ cursor: pointer;
524
+ padding-left: 9px;
525
+ font-weight: 400;
526
+ overflow: hidden;
527
+ align-items: center;
528
+
529
+ border: 1px solid #e2e5ec;
530
+ box-sizing: border-box;
531
+ border-radius: 3px;
532
+ user-select: none;
533
+ }
534
+ &-placeholder {
535
+ width: 100%;
536
+ background: none;
537
+ border: none;
538
+ padding: 0 15px 0 0;
539
+ height: 16px;
540
+ text-overflow: ellipsis;
541
+ font-weight: 400;
542
+ font-size: 13px;
543
+ }
544
+ }
@@ -19,7 +19,11 @@ var _default = {
19
19
  exports.default = _default;
20
20
 
21
21
  var Template = function Template(args) {
22
- return /*#__PURE__*/_react.default.createElement(_Calendar.default, args);
22
+ return /*#__PURE__*/_react.default.createElement("div", {
23
+ style: {
24
+ width: '320px'
25
+ }
26
+ }, /*#__PURE__*/_react.default.createElement(_Calendar.default, args));
23
27
  };
24
28
 
25
29
  var CalendarTemplate = Template.bind({});
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.logout = exports.useOutsideToggle = exports.handleObjectChange = void 0;
6
+ exports.getStyles = exports.logout = exports.useOutsideToggle = exports.handleObjectChange = void 0;
7
7
 
8
8
  var _react = require("react");
9
9
 
@@ -55,4 +55,12 @@ var logout = function logout() {
55
55
  window.location.reload();
56
56
  };
57
57
 
58
- exports.logout = logout;
58
+ exports.logout = logout;
59
+
60
+ var getStyles = function getStyles(el, prop) {
61
+ if (!el) return null;
62
+ if (!prop) return window.getComputedStyle(el);
63
+ return window.getComputedStyle(el).getPropertyValue(prop);
64
+ };
65
+
66
+ exports.getStyles = getStyles;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.0.53",
4
- "description": "Fix Calendar",
3
+ "version": "0.0.64",
4
+ "description": "Range selector fixes",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -10,15 +10,17 @@
10
10
  "author": "Andrey Isakov",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
+ "moment": "^2.29.1",
14
+ "moment-timezone": "^0.5.34",
15
+ "react": "^17.0.2",
13
16
  "react-feather": "^2.0.9",
14
- "react-input-mask": "^2.0.4",
15
- "moment": "^2.29.1"
17
+ "react-input-mask": "^2.0.4"
16
18
  },
17
19
  "devDependencies": {
18
20
  "@babel/cli": "^7.15.7",
19
21
  "@babel/core": "^7.15.5",
20
- "@babel/preset-env": "^7.15.6",
21
22
  "@babel/polyfill": "^7.12.1",
23
+ "@babel/preset-env": "^7.15.6",
22
24
  "classnames": "^2.3.1"
23
25
  }
24
26
  }
@@ -4,7 +4,7 @@ import DateTime from './DateTime';
4
4
  global.lng = 'en';
5
5
 
6
6
  export default {
7
- title: 'DateTime',
7
+ title: 'Form Elements/DateTime',
8
8
  component: DateTime
9
9
  };
10
10
 
@@ -45,16 +45,16 @@ const Input = ({
45
45
  setEditing(!isEditing);
46
46
  onChange('');
47
47
  },
48
- focus: () => {
48
+ focus: e => {
49
49
  setIsFocused(true);
50
- if (onFocus) onFocus();
50
+ if (onFocus) onFocus(e);
51
51
  },
52
- blur: () => {
52
+ blur: e => {
53
53
  setIsFocused(false);
54
54
  setEditing(false);
55
- if (onBlur) onBlur();
55
+ if (onBlur) onBlur(e);
56
56
  },
57
- keyUp: e => (onKeyUp ? onKeyUp(e.keyCode) : null)
57
+ keyUp: e => (onKeyUp ? onKeyUp(e.keyCode, event) : null)
58
58
  };
59
59
 
60
60
  useEffect(() => {
@@ -1,8 +1,8 @@
1
1
  import React, { useState, useRef } from 'react';
2
- import { useClickOutside } from '../../../Functions/useClickOutside';
3
- import Calendar from '../Calendar/Calendar';
4
- import InputMask from 'react-input-mask';
5
2
  import moment from 'moment';
3
+ import InputMask from 'react-input-mask';
4
+ import Calendar from '../../UI/Calendar/Calendar';
5
+ import { useClickOutside } from '../../../Functions/useClickOutside';
6
6
 
7
7
  const InputCalendar = ({ data, params }) => {
8
8
  const [date, setDate] = useState(data);
@@ -12,7 +12,7 @@ const InputCalendar = ({ data, params }) => {
12
12
 
13
13
  useClickOutside(calendarRef, () => setIsOpened(false));
14
14
 
15
- const changeInputValue = (value) => {
15
+ const changeInputValue = value => {
16
16
  if (!value.includes('_') && value) {
17
17
  setDate(moment(value).format('L'));
18
18
  setInputValue(moment(value).format('L'));
@@ -21,7 +21,7 @@ const InputCalendar = ({ data, params }) => {
21
21
  }
22
22
  };
23
23
 
24
- const changeCalendarDay = (value) => {
24
+ const changeCalendarDay = value => {
25
25
  setDate(value);
26
26
  setInputValue(value);
27
27
  };
@@ -31,7 +31,7 @@ const InputCalendar = ({ data, params }) => {
31
31
  <InputMask
32
32
  mask="99/99/9999"
33
33
  value={inputValue}
34
- onChange={(e) => changeInputValue(e.target.value)}
34
+ onChange={e => changeInputValue(e.target.value)}
35
35
  className="calendar-dropdown"
36
36
  onFocus={() => setIsOpened(!isOpened)}
37
37
  />