@alfalab/core-components-calendar-input 4.2.0 → 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 +8 -0
- package/dist/Component.d.ts +1 -1
- package/dist/Component.js +1 -1
- package/dist/esm/Component.js +1 -1
- package/dist/esm/index.css +9 -9
- package/dist/index.css +9 -9
- package/dist/modern/Component.js +1 -1
- package/dist/modern/index.css +9 -9
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
|
|
6
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)
|
|
7
15
|
|
|
8
16
|
|
package/dist/Component.d.ts
CHANGED
|
@@ -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, "
|
|
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-
|
|
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) {
|
package/dist/esm/Component.js
CHANGED
|
@@ -44,7 +44,7 @@ function __rest(s, e) {
|
|
|
44
44
|
return t;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
var styles = {"component":"calendar-
|
|
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) {
|
package/dist/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: lbqut */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
}
|
|
@@ -40,22 +40,22 @@
|
|
|
40
40
|
:root {
|
|
41
41
|
--calendar-input-calendar-icon: url('https://alfabank.st/icons/glyph_calendar_m_primary.svg');
|
|
42
42
|
}
|
|
43
|
-
.calendar-
|
|
43
|
+
.calendar-input__component_lbqut {
|
|
44
44
|
display: inline-block;
|
|
45
45
|
outline: none;
|
|
46
46
|
position: relative;
|
|
47
47
|
}
|
|
48
|
-
.calendar-
|
|
48
|
+
.calendar-input__block_lbqut {
|
|
49
49
|
width: 100%;
|
|
50
50
|
}
|
|
51
|
-
.calendar-
|
|
51
|
+
.calendar-input__calendarContainer_lbqut {
|
|
52
52
|
display: inline-block;
|
|
53
53
|
box-sizing: border-box;
|
|
54
54
|
box-shadow: var(--shadow-s);
|
|
55
55
|
border: 1px solid var(--color-light-border-primary);
|
|
56
56
|
border-radius: var(--border-radius-m);
|
|
57
57
|
}
|
|
58
|
-
.calendar-
|
|
58
|
+
.calendar-input__calendarIcon_lbqut {
|
|
59
59
|
width: 24px;
|
|
60
60
|
height: 24px;
|
|
61
61
|
display: block;
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
background-size: cover;
|
|
64
64
|
background-position: center
|
|
65
65
|
}
|
|
66
|
-
.calendar-
|
|
66
|
+
.calendar-input__calendarIcon_lbqut:not(:only-child) {
|
|
67
67
|
margin-right: var(--gap-2xs);
|
|
68
68
|
}
|
|
69
|
-
.calendar-
|
|
69
|
+
.calendar-input__nativeInput_lbqut {
|
|
70
70
|
opacity: 0;
|
|
71
71
|
position: absolute;
|
|
72
72
|
top: 0;
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
appearance: none;
|
|
78
78
|
z-index: 1
|
|
79
79
|
}
|
|
80
|
-
.calendar-
|
|
80
|
+
.calendar-input__nativeInput_lbqut::-webkit-calendar-picker-indicator {
|
|
81
81
|
display: none;
|
|
82
82
|
}
|
|
83
|
-
.calendar-
|
|
83
|
+
.calendar-input__nativeInput_lbqut::-webkit-inner-spin-button {
|
|
84
84
|
display: none;
|
|
85
85
|
}
|
package/dist/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: lbqut */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
}
|
|
@@ -40,22 +40,22 @@
|
|
|
40
40
|
:root {
|
|
41
41
|
--calendar-input-calendar-icon: url('https://alfabank.st/icons/glyph_calendar_m_primary.svg');
|
|
42
42
|
}
|
|
43
|
-
.calendar-
|
|
43
|
+
.calendar-input__component_lbqut {
|
|
44
44
|
display: inline-block;
|
|
45
45
|
outline: none;
|
|
46
46
|
position: relative;
|
|
47
47
|
}
|
|
48
|
-
.calendar-
|
|
48
|
+
.calendar-input__block_lbqut {
|
|
49
49
|
width: 100%;
|
|
50
50
|
}
|
|
51
|
-
.calendar-
|
|
51
|
+
.calendar-input__calendarContainer_lbqut {
|
|
52
52
|
display: inline-block;
|
|
53
53
|
box-sizing: border-box;
|
|
54
54
|
box-shadow: var(--shadow-s);
|
|
55
55
|
border: 1px solid var(--color-light-border-primary);
|
|
56
56
|
border-radius: var(--border-radius-m);
|
|
57
57
|
}
|
|
58
|
-
.calendar-
|
|
58
|
+
.calendar-input__calendarIcon_lbqut {
|
|
59
59
|
width: 24px;
|
|
60
60
|
height: 24px;
|
|
61
61
|
display: block;
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
background-size: cover;
|
|
64
64
|
background-position: center
|
|
65
65
|
}
|
|
66
|
-
.calendar-
|
|
66
|
+
.calendar-input__calendarIcon_lbqut:not(:only-child) {
|
|
67
67
|
margin-right: var(--gap-2xs);
|
|
68
68
|
}
|
|
69
|
-
.calendar-
|
|
69
|
+
.calendar-input__nativeInput_lbqut {
|
|
70
70
|
opacity: 0;
|
|
71
71
|
position: absolute;
|
|
72
72
|
top: 0;
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
appearance: none;
|
|
78
78
|
z-index: 1
|
|
79
79
|
}
|
|
80
|
-
.calendar-
|
|
80
|
+
.calendar-input__nativeInput_lbqut::-webkit-calendar-picker-indicator {
|
|
81
81
|
display: none;
|
|
82
82
|
}
|
|
83
|
-
.calendar-
|
|
83
|
+
.calendar-input__nativeInput_lbqut::-webkit-inner-spin-button {
|
|
84
84
|
display: none;
|
|
85
85
|
}
|
package/dist/modern/Component.js
CHANGED
|
@@ -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-
|
|
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) => {
|
package/dist/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: lbqut */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-border-primary: #dbdee1;
|
|
4
4
|
}
|
|
@@ -40,22 +40,22 @@
|
|
|
40
40
|
:root {
|
|
41
41
|
--calendar-input-calendar-icon: url('https://alfabank.st/icons/glyph_calendar_m_primary.svg');
|
|
42
42
|
}
|
|
43
|
-
.calendar-
|
|
43
|
+
.calendar-input__component_lbqut {
|
|
44
44
|
display: inline-block;
|
|
45
45
|
outline: none;
|
|
46
46
|
position: relative;
|
|
47
47
|
}
|
|
48
|
-
.calendar-
|
|
48
|
+
.calendar-input__block_lbqut {
|
|
49
49
|
width: 100%;
|
|
50
50
|
}
|
|
51
|
-
.calendar-
|
|
51
|
+
.calendar-input__calendarContainer_lbqut {
|
|
52
52
|
display: inline-block;
|
|
53
53
|
box-sizing: border-box;
|
|
54
54
|
box-shadow: var(--shadow-s);
|
|
55
55
|
border: 1px solid var(--color-light-border-primary);
|
|
56
56
|
border-radius: var(--border-radius-m);
|
|
57
57
|
}
|
|
58
|
-
.calendar-
|
|
58
|
+
.calendar-input__calendarIcon_lbqut {
|
|
59
59
|
width: 24px;
|
|
60
60
|
height: 24px;
|
|
61
61
|
display: block;
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
background-size: cover;
|
|
64
64
|
background-position: center
|
|
65
65
|
}
|
|
66
|
-
.calendar-
|
|
66
|
+
.calendar-input__calendarIcon_lbqut:not(:only-child) {
|
|
67
67
|
margin-right: var(--gap-2xs);
|
|
68
68
|
}
|
|
69
|
-
.calendar-
|
|
69
|
+
.calendar-input__nativeInput_lbqut {
|
|
70
70
|
opacity: 0;
|
|
71
71
|
position: absolute;
|
|
72
72
|
top: 0;
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
appearance: none;
|
|
78
78
|
z-index: 1
|
|
79
79
|
}
|
|
80
|
-
.calendar-
|
|
80
|
+
.calendar-input__nativeInput_lbqut::-webkit-calendar-picker-indicator {
|
|
81
81
|
display: none;
|
|
82
82
|
}
|
|
83
|
-
.calendar-
|
|
83
|
+
.calendar-input__nativeInput_lbqut::-webkit-inner-spin-button {
|
|
84
84
|
display: none;
|
|
85
85
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-calendar-input",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "Calendar input component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alfalab/core-components-calendar": "^3.1.3",
|
|
23
|
-
"@alfalab/core-components-date-input": "^1.2.
|
|
23
|
+
"@alfalab/core-components-date-input": "^1.2.1",
|
|
24
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": "
|
|
29
|
+
"gitHead": "f021bbf41e94cc719de8a916715dbcf923901d68"
|
|
30
30
|
}
|