@alfalab/core-components-calendar-input 4.1.6 → 4.2.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.2.1](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-calendar-input@4.2.0...@alfalab/core-components-calendar-input@4.2.1) (2021-10-11)
7
+
8
+ **Note:** Version bump only for package @alfalab/core-components-calendar-input
9
+
10
+
11
+
12
+
13
+
14
+ # [4.2.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-calendar-input@4.1.8...@alfalab/core-components-calendar-input@4.2.0) (2021-09-14)
15
+
16
+
17
+ ### Features
18
+
19
+ * change error type to ReactNode ([#825](https://github.com/alfa-laboratory/core-components/issues/825)) ([c6d95c1](https://github.com/alfa-laboratory/core-components/commit/c6d95c1c6239f2b2a3bf2c1639554d8500e794f3))
20
+
21
+
22
+
23
+
24
+
25
+ ## [4.1.8](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-calendar-input@4.1.7...@alfalab/core-components-calendar-input@4.1.8) (2021-09-06)
26
+
27
+ **Note:** Version bump only for package @alfalab/core-components-calendar-input
28
+
29
+
30
+
31
+
32
+
33
+ ## [4.1.7](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-calendar-input@4.1.6...@alfalab/core-components-calendar-input@4.1.7) (2021-08-27)
34
+
35
+ **Note:** Version bump only for package @alfalab/core-components-calendar-input
36
+
37
+
38
+
39
+
40
+
6
41
  ## [4.1.6](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-calendar-input@4.1.5...@alfalab/core-components-calendar-input@4.1.6) (2021-08-23)
7
42
 
8
43
  **Note:** Version bump only for package @alfalab/core-components-calendar-input
@@ -85,7 +85,7 @@ type CalendarInputProps = Omit<DateInputProps, 'onChange' | 'mobileMode'> & {
85
85
  */
86
86
  popoverPosition?: PopoverProps['position'];
87
87
  };
88
- declare const CalendarInput: React.ForwardRefExoticComponent<Pick<DateInputProps, "children" | "value" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "dir" | "className" | "dataTestId" | "name" | "hidden" | "color" | "size" | "block" | "clear" | "multiple" | "disabled" | "leftAddons" | "rightAddons" | "colors" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "step" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "fieldClassName" | "labelClassName" | "addonsClassName" | "error" | "hint" | "bottomAddons" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "readOnly" | "required" | "src" | "width" | "success" | "inputClassName" | "focusedClassName" | "filledClassName" | "onClear" | "wrapperRef" | "keepCharPositions" | "minYear" | "maxYear"> & {
88
+ declare const CalendarInput: React.ForwardRefExoticComponent<Pick<DateInputProps, "dir" | "form" | "label" | "slot" | "style" | "title" | "type" | "value" | "children" | "pattern" | "className" | "dataTestId" | "name" | "hidden" | "color" | "size" | "block" | "clear" | "multiple" | "disabled" | "leftAddons" | "rightAddons" | "colors" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "step" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "fieldClassName" | "labelClassName" | "addonsClassName" | "error" | "hint" | "bottomAddons" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "readOnly" | "required" | "src" | "width" | "success" | "inputClassName" | "focusedClassName" | "filledClassName" | "onClear" | "wrapperRef" | "keepCharPositions" | "minYear" | "maxYear"> & {
89
89
  /**
90
90
  * Дополнительный класс
91
91
  */
package/dist/Component.js CHANGED
@@ -54,7 +54,7 @@ function __rest(s, e) {
54
54
  return t;
55
55
  }
56
56
 
57
- var styles = {"component":"calendar-input__component_1mgtq","block":"calendar-input__block_1mgtq","calendarContainer":"calendar-input__calendarContainer_1mgtq","calendarIcon":"calendar-input__calendarIcon_1mgtq","nativeInput":"calendar-input__nativeInput_1mgtq"};
57
+ var styles = {"component":"calendar-input__component_lbqut","block":"calendar-input__block_lbqut","calendarContainer":"calendar-input__calendarContainer_lbqut","calendarIcon":"calendar-input__calendarIcon_lbqut","nativeInput":"calendar-input__nativeInput_lbqut"};
58
58
  require('./index.css')
59
59
 
60
60
  var CalendarInput = React.forwardRef(function (_a, ref) {
@@ -1,8 +1,5 @@
1
1
  :root {
2
2
  --color-light-border-primary: #dbdee1;
3
-
4
- /* TODO: цвета добавлены руками. Обновить токены */
5
- --color-light-text-secondary-inverted-transparent: rgba(255, 255, 255, 0.7);
6
3
  }
7
4
  :root {
8
5
  --shadow-s: 0 0 8px rgba(11, 31, 53, 0.04), 0 4px 8px rgba(11, 31, 53, 0.08);
@@ -1,8 +1,3 @@
1
- :root {
2
-
3
- /* TODO: цвета добавлены руками. Обновить токены */
4
- --color-light-text-secondary-inverted-transparent: rgba(255, 255, 255, 0.7);
5
- }
6
1
  :root {
7
2
 
8
3
  /* Hard */
@@ -44,7 +44,7 @@ function __rest(s, e) {
44
44
  return t;
45
45
  }
46
46
 
47
- var styles = {"component":"calendar-input__component_1mgtq","block":"calendar-input__block_1mgtq","calendarContainer":"calendar-input__calendarContainer_1mgtq","calendarIcon":"calendar-input__calendarIcon_1mgtq","nativeInput":"calendar-input__nativeInput_1mgtq"};
47
+ var styles = {"component":"calendar-input__component_lbqut","block":"calendar-input__block_lbqut","calendarContainer":"calendar-input__calendarContainer_lbqut","calendarIcon":"calendar-input__calendarIcon_lbqut","nativeInput":"calendar-input__nativeInput_lbqut"};
48
48
  require('./index.css')
49
49
 
50
50
  var CalendarInput = forwardRef(function (_a, ref) {
@@ -1,9 +1,6 @@
1
- /* hash: 1mgtq */
1
+ /* hash: lbqut */
2
2
  :root {
3
3
  --color-light-border-primary: #dbdee1;
4
-
5
- /* TODO: цвета добавлены руками. Обновить токены */
6
- --color-light-text-secondary-inverted-transparent: rgba(255, 255, 255, 0.7);
7
4
  }
8
5
  :root {
9
6
  --shadow-s: 0 0 8px rgba(11, 31, 53, 0.04), 0 4px 8px rgba(11, 31, 53, 0.08);
@@ -43,22 +40,22 @@
43
40
  :root {
44
41
  --calendar-input-calendar-icon: url('https://alfabank.st/icons/glyph_calendar_m_primary.svg');
45
42
  }
46
- .calendar-input__component_1mgtq {
43
+ .calendar-input__component_lbqut {
47
44
  display: inline-block;
48
45
  outline: none;
49
46
  position: relative;
50
47
  }
51
- .calendar-input__block_1mgtq {
48
+ .calendar-input__block_lbqut {
52
49
  width: 100%;
53
50
  }
54
- .calendar-input__calendarContainer_1mgtq {
51
+ .calendar-input__calendarContainer_lbqut {
55
52
  display: inline-block;
56
53
  box-sizing: border-box;
57
54
  box-shadow: var(--shadow-s);
58
55
  border: 1px solid var(--color-light-border-primary);
59
56
  border-radius: var(--border-radius-m);
60
57
  }
61
- .calendar-input__calendarIcon_1mgtq {
58
+ .calendar-input__calendarIcon_lbqut {
62
59
  width: 24px;
63
60
  height: 24px;
64
61
  display: block;
@@ -66,10 +63,10 @@
66
63
  background-size: cover;
67
64
  background-position: center
68
65
  }
69
- .calendar-input__calendarIcon_1mgtq:not(:only-child) {
66
+ .calendar-input__calendarIcon_lbqut:not(:only-child) {
70
67
  margin-right: var(--gap-2xs);
71
68
  }
72
- .calendar-input__nativeInput_1mgtq {
69
+ .calendar-input__nativeInput_lbqut {
73
70
  opacity: 0;
74
71
  position: absolute;
75
72
  top: 0;
@@ -80,9 +77,9 @@
80
77
  appearance: none;
81
78
  z-index: 1
82
79
  }
83
- .calendar-input__nativeInput_1mgtq::-webkit-calendar-picker-indicator {
80
+ .calendar-input__nativeInput_lbqut::-webkit-calendar-picker-indicator {
84
81
  display: none;
85
82
  }
86
- .calendar-input__nativeInput_1mgtq::-webkit-inner-spin-button {
83
+ .calendar-input__nativeInput_lbqut::-webkit-inner-spin-button {
87
84
  display: none;
88
85
  }
package/dist/index.css CHANGED
@@ -1,9 +1,6 @@
1
- /* hash: 1mgtq */
1
+ /* hash: lbqut */
2
2
  :root {
3
3
  --color-light-border-primary: #dbdee1;
4
-
5
- /* TODO: цвета добавлены руками. Обновить токены */
6
- --color-light-text-secondary-inverted-transparent: rgba(255, 255, 255, 0.7);
7
4
  }
8
5
  :root {
9
6
  --shadow-s: 0 0 8px rgba(11, 31, 53, 0.04), 0 4px 8px rgba(11, 31, 53, 0.08);
@@ -43,22 +40,22 @@
43
40
  :root {
44
41
  --calendar-input-calendar-icon: url('https://alfabank.st/icons/glyph_calendar_m_primary.svg');
45
42
  }
46
- .calendar-input__component_1mgtq {
43
+ .calendar-input__component_lbqut {
47
44
  display: inline-block;
48
45
  outline: none;
49
46
  position: relative;
50
47
  }
51
- .calendar-input__block_1mgtq {
48
+ .calendar-input__block_lbqut {
52
49
  width: 100%;
53
50
  }
54
- .calendar-input__calendarContainer_1mgtq {
51
+ .calendar-input__calendarContainer_lbqut {
55
52
  display: inline-block;
56
53
  box-sizing: border-box;
57
54
  box-shadow: var(--shadow-s);
58
55
  border: 1px solid var(--color-light-border-primary);
59
56
  border-radius: var(--border-radius-m);
60
57
  }
61
- .calendar-input__calendarIcon_1mgtq {
58
+ .calendar-input__calendarIcon_lbqut {
62
59
  width: 24px;
63
60
  height: 24px;
64
61
  display: block;
@@ -66,10 +63,10 @@
66
63
  background-size: cover;
67
64
  background-position: center
68
65
  }
69
- .calendar-input__calendarIcon_1mgtq:not(:only-child) {
66
+ .calendar-input__calendarIcon_lbqut:not(:only-child) {
70
67
  margin-right: var(--gap-2xs);
71
68
  }
72
- .calendar-input__nativeInput_1mgtq {
69
+ .calendar-input__nativeInput_lbqut {
73
70
  opacity: 0;
74
71
  position: absolute;
75
72
  top: 0;
@@ -80,9 +77,9 @@
80
77
  appearance: none;
81
78
  z-index: 1
82
79
  }
83
- .calendar-input__nativeInput_1mgtq::-webkit-calendar-picker-indicator {
80
+ .calendar-input__nativeInput_lbqut::-webkit-calendar-picker-indicator {
84
81
  display: none;
85
82
  }
86
- .calendar-input__nativeInput_1mgtq::-webkit-inner-spin-button {
83
+ .calendar-input__nativeInput_lbqut::-webkit-inner-spin-button {
87
84
  display: none;
88
85
  }
@@ -5,7 +5,7 @@ import { Popover } from '@alfalab/core-components-popover/dist/modern';
5
5
  import { parseDateString, isCompleteDateInput, formatDate, DateInput, SUPPORTS_INPUT_TYPE_DATE } from '@alfalab/core-components-date-input/dist/modern';
6
6
  import { Calendar, dateInLimits } from '@alfalab/core-components-calendar/dist/modern';
7
7
 
8
- var styles = {"component":"calendar-input__component_1mgtq","block":"calendar-input__block_1mgtq","calendarContainer":"calendar-input__calendarContainer_1mgtq","calendarIcon":"calendar-input__calendarIcon_1mgtq","nativeInput":"calendar-input__nativeInput_1mgtq"};
8
+ var styles = {"component":"calendar-input__component_lbqut","block":"calendar-input__block_lbqut","calendarContainer":"calendar-input__calendarContainer_lbqut","calendarIcon":"calendar-input__calendarIcon_lbqut","nativeInput":"calendar-input__nativeInput_lbqut"};
9
9
  require('./index.css')
10
10
 
11
11
  const CalendarInput = forwardRef(({ block = false, className, inputClassName, defaultOpen = false, defaultMonth, defaultValue = '', calendarPosition = 'popover', value, dataTestId, calendarProps = {}, minDate = calendarProps.minDate, maxDate = calendarProps.maxDate, offDays = calendarProps.offDays || [], preventFlip, mobileMode = 'popover', wrapperRef = null, disabled, onChange, onInputChange, onCalendarChange, readOnly, Calendar: Calendar$1 = Calendar, popoverPosition = 'bottom-start', ...restProps }, ref) => {
@@ -1,9 +1,6 @@
1
- /* hash: 1mgtq */
1
+ /* hash: lbqut */
2
2
  :root {
3
3
  --color-light-border-primary: #dbdee1;
4
-
5
- /* TODO: цвета добавлены руками. Обновить токены */
6
- --color-light-text-secondary-inverted-transparent: rgba(255, 255, 255, 0.7);
7
4
  }
8
5
  :root {
9
6
  --shadow-s: 0 0 8px rgba(11, 31, 53, 0.04), 0 4px 8px rgba(11, 31, 53, 0.08);
@@ -43,22 +40,22 @@
43
40
  :root {
44
41
  --calendar-input-calendar-icon: url('https://alfabank.st/icons/glyph_calendar_m_primary.svg');
45
42
  }
46
- .calendar-input__component_1mgtq {
43
+ .calendar-input__component_lbqut {
47
44
  display: inline-block;
48
45
  outline: none;
49
46
  position: relative;
50
47
  }
51
- .calendar-input__block_1mgtq {
48
+ .calendar-input__block_lbqut {
52
49
  width: 100%;
53
50
  }
54
- .calendar-input__calendarContainer_1mgtq {
51
+ .calendar-input__calendarContainer_lbqut {
55
52
  display: inline-block;
56
53
  box-sizing: border-box;
57
54
  box-shadow: var(--shadow-s);
58
55
  border: 1px solid var(--color-light-border-primary);
59
56
  border-radius: var(--border-radius-m);
60
57
  }
61
- .calendar-input__calendarIcon_1mgtq {
58
+ .calendar-input__calendarIcon_lbqut {
62
59
  width: 24px;
63
60
  height: 24px;
64
61
  display: block;
@@ -66,10 +63,10 @@
66
63
  background-size: cover;
67
64
  background-position: center
68
65
  }
69
- .calendar-input__calendarIcon_1mgtq:not(:only-child) {
66
+ .calendar-input__calendarIcon_lbqut:not(:only-child) {
70
67
  margin-right: var(--gap-2xs);
71
68
  }
72
- .calendar-input__nativeInput_1mgtq {
69
+ .calendar-input__nativeInput_lbqut {
73
70
  opacity: 0;
74
71
  position: absolute;
75
72
  top: 0;
@@ -80,9 +77,9 @@
80
77
  appearance: none;
81
78
  z-index: 1
82
79
  }
83
- .calendar-input__nativeInput_1mgtq::-webkit-calendar-picker-indicator {
80
+ .calendar-input__nativeInput_lbqut::-webkit-calendar-picker-indicator {
84
81
  display: none;
85
82
  }
86
- .calendar-input__nativeInput_1mgtq::-webkit-inner-spin-button {
83
+ .calendar-input__nativeInput_lbqut::-webkit-inner-spin-button {
87
84
  display: none;
88
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-calendar-input",
3
- "version": "4.1.6",
3
+ "version": "4.2.1",
4
4
  "description": "Calendar input component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -19,12 +19,12 @@
19
19
  "react-dom": "^16.9.0 || ^17.0.1"
20
20
  },
21
21
  "dependencies": {
22
- "@alfalab/core-components-calendar": "^3.1.1",
23
- "@alfalab/core-components-date-input": "^1.1.5",
24
- "@alfalab/core-components-popover": "^5.3.0",
22
+ "@alfalab/core-components-calendar": "^3.1.3",
23
+ "@alfalab/core-components-date-input": "^1.2.1",
24
+ "@alfalab/core-components-popover": "^5.5.0",
25
25
  "classnames": "^2.2.6",
26
26
  "date-fns": "^2.16.1",
27
27
  "react-merge-refs": "^1.1.0"
28
28
  },
29
- "gitHead": "436fdc0ca2dc2513a551b5b104fc1c3932fb9788"
29
+ "gitHead": "f021bbf41e94cc719de8a916715dbcf923901d68"
30
30
  }