@alfalab/core-components-calendar-input 8.2.13 → 8.2.15

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.
@@ -19,7 +19,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
19
19
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
20
20
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
21
21
 
22
- var styles = {"component":"calendar-input__component_1ljyt","block":"calendar-input__block_1ljyt","calendarContainer":"calendar-input__calendarContainer_1ljyt","calendarResponsive":"calendar-input__calendarResponsive_1ljyt","calendarIcon":"calendar-input__calendarIcon_1ljyt","nativeInput":"calendar-input__nativeInput_1ljyt"};
22
+ var styles = {"component":"calendar-input__component_1vje4","block":"calendar-input__block_1vje4","calendarContainer":"calendar-input__calendarContainer_1vje4","calendarResponsive":"calendar-input__calendarResponsive_1vje4","calendarIcon":"calendar-input__calendarIcon_1vje4","nativeInput":"calendar-input__nativeInput_1vje4"};
23
23
  require('./index.css')
24
24
 
25
25
  var CalendarInput = React.forwardRef(function (_a, ref) {
@@ -1,6 +1,7 @@
1
- /* hash: 15vvb */
1
+ /* hash: x4iqg */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
+ --color-light-border-secondary: #e7e9eb;
4
5
  --color-light-graphic-primary: #0b1f35; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
5
6
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
6
7
  } :root {
@@ -43,31 +44,32 @@
43
44
  } :root {
44
45
  --calendar-input-icon-color: var(--color-light-graphic-primary);
45
46
  --calendar-input-popover-border-radius: var(--border-radius-m);
46
- } .calendar-input__component_1ljyt {
47
+ } .calendar-input__component_1vje4 {
47
48
  display: inline-block;
48
49
  outline: none;
49
50
  position: relative;
50
- } .calendar-input__block_1ljyt {
51
+ } .calendar-input__block_1vje4 {
51
52
  width: 100%;
52
- } .calendar-input__calendarContainer_1ljyt {
53
+ } .calendar-input__calendarContainer_1vje4 {
53
54
  display: inline-block;
54
55
  box-sizing: border-box;
55
- border-radius: var(--calendar-input-popover-border-radius)
56
- } @media (max-width: 374px) { .calendar-input__calendarContainer_1ljyt {
56
+ border-radius: var(--calendar-input-popover-border-radius);
57
+ border: 1px solid var(--color-light-border-secondary)
58
+ } @media (max-width: 374px) { .calendar-input__calendarContainer_1vje4 {
57
59
  width: 100%;
58
60
  min-width: 288px
59
61
  }
60
- } .calendar-input__calendarResponsive_1ljyt {
62
+ } .calendar-input__calendarResponsive_1vje4 {
61
63
  width: var(--calendar-width);
62
64
  padding: 0 var(--gap-m);
63
- } .calendar-input__calendarIcon_1ljyt {
65
+ } .calendar-input__calendarIcon_1vje4 {
64
66
  width: 24px;
65
67
  height: 24px;
66
68
  display: block;
67
69
  color: var(--calendar-input-icon-color)
68
- } .calendar-input__calendarIcon_1ljyt:not(:only-child) {
70
+ } .calendar-input__calendarIcon_1vje4:not(:only-child) {
69
71
  margin-right: var(--gap-2xs);
70
- } .calendar-input__nativeInput_1ljyt {
72
+ } .calendar-input__nativeInput_1vje4 {
71
73
  opacity: 0;
72
74
  position: absolute;
73
75
  top: 0;
@@ -77,8 +79,8 @@
77
79
  -webkit-appearance: none;
78
80
  appearance: none;
79
81
  z-index: 1
80
- } .calendar-input__nativeInput_1ljyt::-webkit-calendar-picker-indicator {
82
+ } .calendar-input__nativeInput_1vje4::-webkit-calendar-picker-indicator {
81
83
  display: none;
82
- } .calendar-input__nativeInput_1ljyt::-webkit-inner-spin-button {
84
+ } .calendar-input__nativeInput_1vje4::-webkit-inner-spin-button {
83
85
  display: none;
84
86
  }
@@ -1,5 +1,6 @@
1
1
  :root {
2
2
  } /* deprecated */ :root {
3
+ --color-light-border-secondary: #e7e9eb;
3
4
  --color-light-graphic-primary: #0b1f35; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
5
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
5
6
  } :root {
@@ -51,7 +52,8 @@
51
52
  } .calendarContainer {
52
53
  display: inline-block;
53
54
  box-sizing: border-box;
54
- border-radius: var(--calendar-input-popover-border-radius)
55
+ border-radius: var(--calendar-input-popover-border-radius);
56
+ border: 1px solid var(--color-light-border-secondary)
55
57
  } @media (max-width: 374px) { .calendarContainer {
56
58
  width: 100%;
57
59
  min-width: 288px
@@ -11,7 +11,7 @@ import 'date-fns/format';
11
11
  import 'date-fns/isSameDay';
12
12
  import 'date-fns/parse';
13
13
 
14
- var styles = {"component":"calendar-input__component_1ljyt","block":"calendar-input__block_1ljyt","calendarContainer":"calendar-input__calendarContainer_1ljyt","calendarResponsive":"calendar-input__calendarResponsive_1ljyt","calendarIcon":"calendar-input__calendarIcon_1ljyt","nativeInput":"calendar-input__nativeInput_1ljyt"};
14
+ var styles = {"component":"calendar-input__component_1vje4","block":"calendar-input__block_1vje4","calendarContainer":"calendar-input__calendarContainer_1vje4","calendarResponsive":"calendar-input__calendarResponsive_1vje4","calendarIcon":"calendar-input__calendarIcon_1vje4","nativeInput":"calendar-input__nativeInput_1vje4"};
15
15
  require('./index.css')
16
16
 
17
17
  var CalendarInput = forwardRef(function (_a, ref) {
@@ -1,6 +1,7 @@
1
- /* hash: 15vvb */
1
+ /* hash: x4iqg */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
+ --color-light-border-secondary: #e7e9eb;
4
5
  --color-light-graphic-primary: #0b1f35; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
5
6
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
6
7
  } :root {
@@ -43,31 +44,32 @@
43
44
  } :root {
44
45
  --calendar-input-icon-color: var(--color-light-graphic-primary);
45
46
  --calendar-input-popover-border-radius: var(--border-radius-m);
46
- } .calendar-input__component_1ljyt {
47
+ } .calendar-input__component_1vje4 {
47
48
  display: inline-block;
48
49
  outline: none;
49
50
  position: relative;
50
- } .calendar-input__block_1ljyt {
51
+ } .calendar-input__block_1vje4 {
51
52
  width: 100%;
52
- } .calendar-input__calendarContainer_1ljyt {
53
+ } .calendar-input__calendarContainer_1vje4 {
53
54
  display: inline-block;
54
55
  box-sizing: border-box;
55
- border-radius: var(--calendar-input-popover-border-radius)
56
- } @media (max-width: 374px) { .calendar-input__calendarContainer_1ljyt {
56
+ border-radius: var(--calendar-input-popover-border-radius);
57
+ border: 1px solid var(--color-light-border-secondary)
58
+ } @media (max-width: 374px) { .calendar-input__calendarContainer_1vje4 {
57
59
  width: 100%;
58
60
  min-width: 288px
59
61
  }
60
- } .calendar-input__calendarResponsive_1ljyt {
62
+ } .calendar-input__calendarResponsive_1vje4 {
61
63
  width: var(--calendar-width);
62
64
  padding: 0 var(--gap-m);
63
- } .calendar-input__calendarIcon_1ljyt {
65
+ } .calendar-input__calendarIcon_1vje4 {
64
66
  width: 24px;
65
67
  height: 24px;
66
68
  display: block;
67
69
  color: var(--calendar-input-icon-color)
68
- } .calendar-input__calendarIcon_1ljyt:not(:only-child) {
70
+ } .calendar-input__calendarIcon_1vje4:not(:only-child) {
69
71
  margin-right: var(--gap-2xs);
70
- } .calendar-input__nativeInput_1ljyt {
72
+ } .calendar-input__nativeInput_1vje4 {
71
73
  opacity: 0;
72
74
  position: absolute;
73
75
  top: 0;
@@ -77,8 +79,8 @@
77
79
  -webkit-appearance: none;
78
80
  appearance: none;
79
81
  z-index: 1
80
- } .calendar-input__nativeInput_1ljyt::-webkit-calendar-picker-indicator {
82
+ } .calendar-input__nativeInput_1vje4::-webkit-calendar-picker-indicator {
81
83
  display: none;
82
- } .calendar-input__nativeInput_1ljyt::-webkit-inner-spin-button {
84
+ } .calendar-input__nativeInput_1vje4::-webkit-inner-spin-button {
83
85
  display: none;
84
86
  }
@@ -10,7 +10,7 @@ import 'date-fns/format';
10
10
  import 'date-fns/isSameDay';
11
11
  import 'date-fns/parse';
12
12
 
13
- const styles = {"component":"calendar-input__component_1ljyt","block":"calendar-input__block_1ljyt","calendarContainer":"calendar-input__calendarContainer_1ljyt","calendarResponsive":"calendar-input__calendarResponsive_1ljyt","calendarIcon":"calendar-input__calendarIcon_1ljyt","nativeInput":"calendar-input__nativeInput_1ljyt"};
13
+ const styles = {"component":"calendar-input__component_1vje4","block":"calendar-input__block_1vje4","calendarContainer":"calendar-input__calendarContainer_1vje4","calendarResponsive":"calendar-input__calendarResponsive_1vje4","calendarIcon":"calendar-input__calendarIcon_1vje4","nativeInput":"calendar-input__nativeInput_1vje4"};
14
14
  require('./index.css')
15
15
 
16
16
  const CalendarInput = forwardRef(({ block = false, className, inputClassName, popoverClassName, defaultOpen = false, defaultMonth, defaultValue = '', calendarPosition = 'popover', value, dataTestId, calendarProps = {}, minDate = calendarProps.minDate, maxDate = calendarProps.maxDate, offDays = calendarProps.offDays || [], events = calendarProps.events || [], preventFlip, mobileMode = 'popover', wrapperRef = null, disabled, onChange = () => null, onInputChange, onCalendarChange, onKeyDown, readOnly, Calendar: Calendar$1 = Calendar, popoverPosition = 'bottom-start', zIndexPopover, useAnchorWidth, rightAddons, error, view = 'desktop', ...restProps }, ref) => {
@@ -1,6 +1,7 @@
1
- /* hash: 15vvb */
1
+ /* hash: x4iqg */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
+ --color-light-border-secondary: #e7e9eb;
4
5
  --color-light-graphic-primary: #0b1f35; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
5
6
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
6
7
  } :root {
@@ -43,31 +44,32 @@
43
44
  } :root {
44
45
  --calendar-input-icon-color: var(--color-light-graphic-primary);
45
46
  --calendar-input-popover-border-radius: var(--border-radius-m);
46
- } .calendar-input__component_1ljyt {
47
+ } .calendar-input__component_1vje4 {
47
48
  display: inline-block;
48
49
  outline: none;
49
50
  position: relative;
50
- } .calendar-input__block_1ljyt {
51
+ } .calendar-input__block_1vje4 {
51
52
  width: 100%;
52
- } .calendar-input__calendarContainer_1ljyt {
53
+ } .calendar-input__calendarContainer_1vje4 {
53
54
  display: inline-block;
54
55
  box-sizing: border-box;
55
- border-radius: var(--calendar-input-popover-border-radius)
56
- } @media (max-width: 374px) { .calendar-input__calendarContainer_1ljyt {
56
+ border-radius: var(--calendar-input-popover-border-radius);
57
+ border: 1px solid var(--color-light-border-secondary)
58
+ } @media (max-width: 374px) { .calendar-input__calendarContainer_1vje4 {
57
59
  width: 100%;
58
60
  min-width: 288px
59
61
  }
60
- } .calendar-input__calendarResponsive_1ljyt {
62
+ } .calendar-input__calendarResponsive_1vje4 {
61
63
  width: var(--calendar-width);
62
64
  padding: 0 var(--gap-m);
63
- } .calendar-input__calendarIcon_1ljyt {
65
+ } .calendar-input__calendarIcon_1vje4 {
64
66
  width: 24px;
65
67
  height: 24px;
66
68
  display: block;
67
69
  color: var(--calendar-input-icon-color)
68
- } .calendar-input__calendarIcon_1ljyt:not(:only-child) {
70
+ } .calendar-input__calendarIcon_1vje4:not(:only-child) {
69
71
  margin-right: var(--gap-2xs);
70
- } .calendar-input__nativeInput_1ljyt {
72
+ } .calendar-input__nativeInput_1vje4 {
71
73
  opacity: 0;
72
74
  position: absolute;
73
75
  top: 0;
@@ -77,8 +79,8 @@
77
79
  -webkit-appearance: none;
78
80
  appearance: none;
79
81
  z-index: 1
80
- } .calendar-input__nativeInput_1ljyt::-webkit-calendar-picker-indicator {
82
+ } .calendar-input__nativeInput_1vje4::-webkit-calendar-picker-indicator {
81
83
  display: none;
82
- } .calendar-input__nativeInput_1ljyt::-webkit-inner-spin-button {
84
+ } .calendar-input__nativeInput_1vje4::-webkit-inner-spin-button {
83
85
  display: none;
84
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-calendar-input",
3
- "version": "8.2.13",
3
+ "version": "8.2.15",
4
4
  "description": "Calendar input component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -18,7 +18,7 @@
18
18
  "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
19
19
  },
20
20
  "dependencies": {
21
- "@alfalab/core-components-calendar": "^6.2.13",
21
+ "@alfalab/core-components-calendar": "^6.2.14",
22
22
  "@alfalab/core-components-date-input": "^4.1.8",
23
23
  "@alfalab/core-components-popover": "^6.0.7",
24
24
  "@alfalab/hooks": "^1.7.0",