@alfalab/core-components-date-time-input 2.0.0 → 2.0.2

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.
package/Component.js CHANGED
@@ -60,7 +60,7 @@ function __rest(s, e) {
60
60
  return t;
61
61
  }
62
62
 
63
- var styles = {"component":"date-time-input__component_ff8p7","calendarContainer":"date-time-input__calendarContainer_ff8p7","calendarResponsive":"date-time-input__calendarResponsive_ff8p7","block":"date-time-input__block_ff8p7"};
63
+ var styles = {"component":"date-time-input__component_ttt63","calendarContainer":"date-time-input__calendarContainer_ttt63","calendarResponsive":"date-time-input__calendarResponsive_ttt63","block":"date-time-input__block_ttt63"};
64
64
  require('./index.css')
65
65
 
66
66
  /* eslint-disable no-useless-escape, jsx-a11y/click-events-have-key-events */
package/esm/Component.js CHANGED
@@ -50,7 +50,7 @@ function __rest(s, e) {
50
50
  return t;
51
51
  }
52
52
 
53
- var styles = {"component":"date-time-input__component_ff8p7","calendarContainer":"date-time-input__calendarContainer_ff8p7","calendarResponsive":"date-time-input__calendarResponsive_ff8p7","block":"date-time-input__block_ff8p7"};
53
+ var styles = {"component":"date-time-input__component_ttt63","calendarContainer":"date-time-input__calendarContainer_ttt63","calendarResponsive":"date-time-input__calendarResponsive_ttt63","block":"date-time-input__block_ttt63"};
54
54
  require('./index.css')
55
55
 
56
56
  /* eslint-disable no-useless-escape, jsx-a11y/click-events-have-key-events */
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: tnwzk */
1
+ /* hash: sfrfe */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -39,26 +39,26 @@
39
39
  :root {
40
40
  --calendar-popover-border-radius: 0 0 var(--border-radius-s) var(--border-radius-s);
41
41
  }
42
- .date-time-input__component_ff8p7 {
42
+ .date-time-input__component_ttt63 {
43
43
  display: inline-block;
44
44
  outline: none;
45
45
  position: relative;
46
46
  }
47
- .date-time-input__calendarContainer_ff8p7 {
47
+ .date-time-input__calendarContainer_ttt63 {
48
48
  display: inline-block;
49
49
  box-sizing: border-box;
50
50
  border-radius: var(--calendar-popover-border-radius)
51
51
  }
52
52
  @media (max-width: 374px) {
53
- .date-time-input__calendarContainer_ff8p7 {
53
+ .date-time-input__calendarContainer_ttt63 {
54
54
  width: 100%;
55
55
  min-width: 288px
56
56
  }
57
57
  }
58
- .date-time-input__calendarResponsive_ff8p7 {
58
+ .date-time-input__calendarResponsive_ttt63 {
59
59
  width: var(--calendar-width);
60
60
  padding: 0 var(--gap-m);
61
61
  }
62
- .date-time-input__block_ff8p7 {
62
+ .date-time-input__block_ttt63 {
63
63
  width: 100%;
64
64
  }
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: tnwzk */
1
+ /* hash: sfrfe */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -39,26 +39,26 @@
39
39
  :root {
40
40
  --calendar-popover-border-radius: 0 0 var(--border-radius-s) var(--border-radius-s);
41
41
  }
42
- .date-time-input__component_ff8p7 {
42
+ .date-time-input__component_ttt63 {
43
43
  display: inline-block;
44
44
  outline: none;
45
45
  position: relative;
46
46
  }
47
- .date-time-input__calendarContainer_ff8p7 {
47
+ .date-time-input__calendarContainer_ttt63 {
48
48
  display: inline-block;
49
49
  box-sizing: border-box;
50
50
  border-radius: var(--calendar-popover-border-radius)
51
51
  }
52
52
  @media (max-width: 374px) {
53
- .date-time-input__calendarContainer_ff8p7 {
53
+ .date-time-input__calendarContainer_ttt63 {
54
54
  width: 100%;
55
55
  min-width: 288px
56
56
  }
57
57
  }
58
- .date-time-input__calendarResponsive_ff8p7 {
58
+ .date-time-input__calendarResponsive_ttt63 {
59
59
  width: var(--calendar-width);
60
60
  padding: 0 var(--gap-m);
61
61
  }
62
- .date-time-input__block_ff8p7 {
62
+ .date-time-input__block_ttt63 {
63
63
  width: 100%;
64
64
  }
@@ -11,7 +11,7 @@ import 'date-fns/isValid';
11
11
  import 'date-fns/parse';
12
12
  import { getDateWithoutTime, setTimeToDate, DATE_MASK, format, getFullDateTime, isCompleteDateInput, isValid, parseTimestampToDate } from './utils/format.js';
13
13
 
14
- var styles = {"component":"date-time-input__component_ff8p7","calendarContainer":"date-time-input__calendarContainer_ff8p7","calendarResponsive":"date-time-input__calendarResponsive_ff8p7","block":"date-time-input__block_ff8p7"};
14
+ var styles = {"component":"date-time-input__component_ttt63","calendarContainer":"date-time-input__calendarContainer_ttt63","calendarResponsive":"date-time-input__calendarResponsive_ttt63","block":"date-time-input__block_ttt63"};
15
15
  require('./index.css')
16
16
 
17
17
  /* eslint-disable no-useless-escape, jsx-a11y/click-events-have-key-events */
@@ -51,7 +51,7 @@ const DateTimeInput = React.forwardRef(({ className, inputClassName, popoverClas
51
51
  const target = (event.relatedTarget || document.activeElement);
52
52
  if (calendarRef.current && calendarRef.current.contains(target) === false) {
53
53
  setOpen(false);
54
- setValue(prevValue => setTimeToDate(prevValue));
54
+ setValue((prevValue) => setTimeToDate(prevValue));
55
55
  }
56
56
  }
57
57
  };
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: tnwzk */
1
+ /* hash: sfrfe */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -39,26 +39,26 @@
39
39
  :root {
40
40
  --calendar-popover-border-radius: 0 0 var(--border-radius-s) var(--border-radius-s);
41
41
  }
42
- .date-time-input__component_ff8p7 {
42
+ .date-time-input__component_ttt63 {
43
43
  display: inline-block;
44
44
  outline: none;
45
45
  position: relative;
46
46
  }
47
- .date-time-input__calendarContainer_ff8p7 {
47
+ .date-time-input__calendarContainer_ttt63 {
48
48
  display: inline-block;
49
49
  box-sizing: border-box;
50
50
  border-radius: var(--calendar-popover-border-radius)
51
51
  }
52
52
  @media (max-width: 374px) {
53
- .date-time-input__calendarContainer_ff8p7 {
53
+ .date-time-input__calendarContainer_ttt63 {
54
54
  width: 100%;
55
55
  min-width: 288px
56
56
  }
57
57
  }
58
- .date-time-input__calendarResponsive_ff8p7 {
58
+ .date-time-input__calendarResponsive_ttt63 {
59
59
  width: var(--calendar-width);
60
60
  padding: 0 var(--gap-m);
61
61
  }
62
- .date-time-input__block_ff8p7 {
62
+ .date-time-input__block_ttt63 {
63
63
  width: 100%;
64
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-date-time-input",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -15,10 +15,10 @@
15
15
  "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
16
16
  },
17
17
  "dependencies": {
18
- "@alfalab/core-components-calendar": "^6.1.9",
19
- "@alfalab/core-components-input": "^11.0.0",
20
- "@alfalab/core-components-icon-button": "^6.0.0",
21
- "@alfalab/core-components-popover": "^6.0.2",
18
+ "@alfalab/core-components-calendar": "^6.1.11",
19
+ "@alfalab/core-components-input": "^11.0.2",
20
+ "@alfalab/core-components-icon-button": "^6.0.1",
21
+ "@alfalab/core-components-popover": "^6.0.3",
22
22
  "classnames": "^2.3.1"
23
23
  }
24
24
  }
package/send-stats.js CHANGED
@@ -55,7 +55,7 @@ async function main() {
55
55
  };
56
56
 
57
57
  return new Promise((resolve, reject) => {
58
- const req = http.request(options, res => {
58
+ const req = http.request(options, (res) => {
59
59
  res.on('end', () => {
60
60
  resolve();
61
61
  });