@alfalab/core-components-calendar-input 10.4.9 → 10.4.11

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.
@@ -142,6 +142,9 @@ declare const CalendarInput: React.ForwardRefExoticComponent<Omit<DateInputProps
142
142
  hasHeader?: boolean | undefined;
143
143
  onApply?: (() => void) | undefined;
144
144
  clickableMonth?: boolean | undefined;
145
+ cancelButtonContent?: string | undefined;
146
+ selectButtonContent?: string | undefined;
147
+ resetButtonContent?: string | undefined;
145
148
  } & {
146
149
  onMonthTitleClick?: ((event: React.MouseEvent<HTMLSpanElement, globalThis.MouseEvent>) => void) | undefined;
147
150
  yearsAmount?: number | undefined;
@@ -18,7 +18,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
18
18
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
19
19
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
20
20
 
21
- var styles = {"component":"calendar-input__component_1to1e","block":"calendar-input__block_1to1e","calendarContainer":"calendar-input__calendarContainer_1to1e","calendarResponsive":"calendar-input__calendarResponsive_1to1e","calendarIcon":"calendar-input__calendarIcon_1to1e","nativeInput":"calendar-input__nativeInput_1to1e"};
21
+ var styles = {"component":"calendar-input__component_18ybb","block":"calendar-input__block_18ybb","calendarContainer":"calendar-input__calendarContainer_18ybb","calendarResponsive":"calendar-input__calendarResponsive_18ybb","calendarIcon":"calendar-input__calendarIcon_18ybb","nativeInput":"calendar-input__nativeInput_18ybb"};
22
22
  require('./index.css')
23
23
 
24
24
  var CalendarInput = React.forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: 8lvv1 */
1
+ /* hash: 1gc17 */
2
2
  :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 */ /* 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 */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-300: #e7e8eb;
@@ -50,31 +50,31 @@
50
50
  } :root {
51
51
  --calendar-input-icon-color: var(--color-light-neutral-translucent-700);
52
52
  --calendar-input-popover-border-radius: var(--border-radius-8);
53
- } .calendar-input__component_1to1e {
53
+ } .calendar-input__component_18ybb {
54
54
  display: inline-block;
55
55
  outline: none;
56
56
  position: relative;
57
- } .calendar-input__block_1to1e {
57
+ } .calendar-input__block_18ybb {
58
58
  width: 100%;
59
- } .calendar-input__calendarContainer_1to1e {
59
+ } .calendar-input__calendarContainer_18ybb {
60
60
  display: inline-block;
61
61
  box-sizing: border-box;
62
62
  border-radius: var(--calendar-input-popover-border-radius);
63
63
  border: 1px solid var(--color-light-neutral-300)
64
- } @media (max-width: 374px) { .calendar-input__calendarContainer_1to1e {
64
+ } @media (max-width: 374px) { .calendar-input__calendarContainer_18ybb {
65
65
  width: 100%;
66
66
  min-width: 288px
67
67
  }
68
- } .calendar-input__calendarResponsive_1to1e {
68
+ } .calendar-input__calendarResponsive_18ybb {
69
69
  width: var(--calendar-width);
70
- } .calendar-input__calendarIcon_1to1e {
70
+ } .calendar-input__calendarIcon_18ybb {
71
71
  width: 24px;
72
72
  height: 24px;
73
73
  display: block;
74
74
  color: var(--calendar-input-icon-color)
75
- } .calendar-input__calendarIcon_1to1e:not(:only-child) {
75
+ } .calendar-input__calendarIcon_18ybb:not(:only-child) {
76
76
  margin-right: var(--gap-4);
77
- } .calendar-input__nativeInput_1to1e {
77
+ } .calendar-input__nativeInput_18ybb {
78
78
  opacity: 0;
79
79
  position: absolute;
80
80
  top: var(--gap-0);
@@ -83,8 +83,8 @@
83
83
  height: 100%;
84
84
  appearance: none;
85
85
  z-index: 1
86
- } .calendar-input__nativeInput_1to1e::-webkit-calendar-picker-indicator {
86
+ } .calendar-input__nativeInput_18ybb::-webkit-calendar-picker-indicator {
87
87
  display: none;
88
- } .calendar-input__nativeInput_1to1e::-webkit-inner-spin-button {
88
+ } .calendar-input__nativeInput_18ybb::-webkit-inner-spin-button {
89
89
  display: none;
90
90
  }
@@ -142,6 +142,9 @@ declare const CalendarInput: React.ForwardRefExoticComponent<Omit<DateInputProps
142
142
  hasHeader?: boolean | undefined;
143
143
  onApply?: (() => void) | undefined;
144
144
  clickableMonth?: boolean | undefined;
145
+ cancelButtonContent?: string | undefined;
146
+ selectButtonContent?: string | undefined;
147
+ resetButtonContent?: string | undefined;
145
148
  } & {
146
149
  onMonthTitleClick?: ((event: React.MouseEvent<HTMLSpanElement, globalThis.MouseEvent>) => void) | undefined;
147
150
  yearsAmount?: number | undefined;
@@ -142,6 +142,9 @@ declare const CalendarInput: React.ForwardRefExoticComponent<Omit<DateInputProps
142
142
  hasHeader?: boolean | undefined;
143
143
  onApply?: (() => void) | undefined;
144
144
  clickableMonth?: boolean | undefined;
145
+ cancelButtonContent?: string | undefined;
146
+ selectButtonContent?: string | undefined;
147
+ resetButtonContent?: string | undefined;
145
148
  } & {
146
149
  onMonthTitleClick?: ((event: React.MouseEvent<HTMLSpanElement, globalThis.MouseEvent>) => void) | undefined;
147
150
  yearsAmount?: number | undefined;
@@ -8,7 +8,7 @@ import { Popover } from '@alfalab/core-components-popover/esm';
8
8
  import { CalendarMIcon } from '@alfalab/icons-glyph/CalendarMIcon';
9
9
  import { SUPPORTS_INPUT_TYPE_DATE } from '../../utils.js';
10
10
 
11
- var styles = {"component":"calendar-input__component_1to1e","block":"calendar-input__block_1to1e","calendarContainer":"calendar-input__calendarContainer_1to1e","calendarResponsive":"calendar-input__calendarResponsive_1to1e","calendarIcon":"calendar-input__calendarIcon_1to1e","nativeInput":"calendar-input__nativeInput_1to1e"};
11
+ var styles = {"component":"calendar-input__component_18ybb","block":"calendar-input__block_18ybb","calendarContainer":"calendar-input__calendarContainer_18ybb","calendarResponsive":"calendar-input__calendarResponsive_18ybb","calendarIcon":"calendar-input__calendarIcon_18ybb","nativeInput":"calendar-input__nativeInput_18ybb"};
12
12
  require('./index.css')
13
13
 
14
14
  var CalendarInput = forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: 8lvv1 */
1
+ /* hash: 1gc17 */
2
2
  :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 */ /* 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 */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-300: #e7e8eb;
@@ -50,31 +50,31 @@
50
50
  } :root {
51
51
  --calendar-input-icon-color: var(--color-light-neutral-translucent-700);
52
52
  --calendar-input-popover-border-radius: var(--border-radius-8);
53
- } .calendar-input__component_1to1e {
53
+ } .calendar-input__component_18ybb {
54
54
  display: inline-block;
55
55
  outline: none;
56
56
  position: relative;
57
- } .calendar-input__block_1to1e {
57
+ } .calendar-input__block_18ybb {
58
58
  width: 100%;
59
- } .calendar-input__calendarContainer_1to1e {
59
+ } .calendar-input__calendarContainer_18ybb {
60
60
  display: inline-block;
61
61
  box-sizing: border-box;
62
62
  border-radius: var(--calendar-input-popover-border-radius);
63
63
  border: 1px solid var(--color-light-neutral-300)
64
- } @media (max-width: 374px) { .calendar-input__calendarContainer_1to1e {
64
+ } @media (max-width: 374px) { .calendar-input__calendarContainer_18ybb {
65
65
  width: 100%;
66
66
  min-width: 288px
67
67
  }
68
- } .calendar-input__calendarResponsive_1to1e {
68
+ } .calendar-input__calendarResponsive_18ybb {
69
69
  width: var(--calendar-width);
70
- } .calendar-input__calendarIcon_1to1e {
70
+ } .calendar-input__calendarIcon_18ybb {
71
71
  width: 24px;
72
72
  height: 24px;
73
73
  display: block;
74
74
  color: var(--calendar-input-icon-color)
75
- } .calendar-input__calendarIcon_1to1e:not(:only-child) {
75
+ } .calendar-input__calendarIcon_18ybb:not(:only-child) {
76
76
  margin-right: var(--gap-4);
77
- } .calendar-input__nativeInput_1to1e {
77
+ } .calendar-input__nativeInput_18ybb {
78
78
  opacity: 0;
79
79
  position: absolute;
80
80
  top: var(--gap-0);
@@ -83,8 +83,8 @@
83
83
  height: 100%;
84
84
  appearance: none;
85
85
  z-index: 1
86
- } .calendar-input__nativeInput_1to1e::-webkit-calendar-picker-indicator {
86
+ } .calendar-input__nativeInput_18ybb::-webkit-calendar-picker-indicator {
87
87
  display: none;
88
- } .calendar-input__nativeInput_1to1e::-webkit-inner-spin-button {
88
+ } .calendar-input__nativeInput_18ybb::-webkit-inner-spin-button {
89
89
  display: none;
90
90
  }
@@ -142,6 +142,9 @@ declare const CalendarInput: React.ForwardRefExoticComponent<Omit<DateInputProps
142
142
  hasHeader?: boolean | undefined;
143
143
  onApply?: (() => void) | undefined;
144
144
  clickableMonth?: boolean | undefined;
145
+ cancelButtonContent?: string | undefined;
146
+ selectButtonContent?: string | undefined;
147
+ resetButtonContent?: string | undefined;
145
148
  } & {
146
149
  onMonthTitleClick?: ((event: React.MouseEvent<HTMLSpanElement, globalThis.MouseEvent>) => void) | undefined;
147
150
  yearsAmount?: number | undefined;
@@ -7,7 +7,7 @@ import { Popover } from '@alfalab/core-components-popover/modern';
7
7
  import { CalendarMIcon } from '@alfalab/icons-glyph/CalendarMIcon';
8
8
  import { SUPPORTS_INPUT_TYPE_DATE } from '../../utils.js';
9
9
 
10
- const styles = {"component":"calendar-input__component_1to1e","block":"calendar-input__block_1to1e","calendarContainer":"calendar-input__calendarContainer_1to1e","calendarResponsive":"calendar-input__calendarResponsive_1to1e","calendarIcon":"calendar-input__calendarIcon_1to1e","nativeInput":"calendar-input__nativeInput_1to1e"};
10
+ const styles = {"component":"calendar-input__component_18ybb","block":"calendar-input__block_18ybb","calendarContainer":"calendar-input__calendarContainer_18ybb","calendarResponsive":"calendar-input__calendarResponsive_18ybb","calendarIcon":"calendar-input__calendarIcon_18ybb","nativeInput":"calendar-input__nativeInput_18ybb"};
11
11
  require('./index.css')
12
12
 
13
13
  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, onCalendarOpen, onCalendarClose, onKeyDown, readOnly, disableUserInput = false, Calendar, popoverPosition = 'bottom-start', zIndexPopover, useAnchorWidth, rightAddons, error, view = 'desktop', ...restProps }, ref) => {
@@ -1,4 +1,4 @@
1
- /* hash: 8lvv1 */
1
+ /* hash: 1gc17 */
2
2
  :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 */ /* 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 */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-300: #e7e8eb;
@@ -50,31 +50,31 @@
50
50
  } :root {
51
51
  --calendar-input-icon-color: var(--color-light-neutral-translucent-700);
52
52
  --calendar-input-popover-border-radius: var(--border-radius-8);
53
- } .calendar-input__component_1to1e {
53
+ } .calendar-input__component_18ybb {
54
54
  display: inline-block;
55
55
  outline: none;
56
56
  position: relative;
57
- } .calendar-input__block_1to1e {
57
+ } .calendar-input__block_18ybb {
58
58
  width: 100%;
59
- } .calendar-input__calendarContainer_1to1e {
59
+ } .calendar-input__calendarContainer_18ybb {
60
60
  display: inline-block;
61
61
  box-sizing: border-box;
62
62
  border-radius: var(--calendar-input-popover-border-radius);
63
63
  border: 1px solid var(--color-light-neutral-300)
64
- } @media (max-width: 374px) { .calendar-input__calendarContainer_1to1e {
64
+ } @media (max-width: 374px) { .calendar-input__calendarContainer_18ybb {
65
65
  width: 100%;
66
66
  min-width: 288px
67
67
  }
68
- } .calendar-input__calendarResponsive_1to1e {
68
+ } .calendar-input__calendarResponsive_18ybb {
69
69
  width: var(--calendar-width);
70
- } .calendar-input__calendarIcon_1to1e {
70
+ } .calendar-input__calendarIcon_18ybb {
71
71
  width: 24px;
72
72
  height: 24px;
73
73
  display: block;
74
74
  color: var(--calendar-input-icon-color)
75
- } .calendar-input__calendarIcon_1to1e:not(:only-child) {
75
+ } .calendar-input__calendarIcon_18ybb:not(:only-child) {
76
76
  margin-right: var(--gap-4);
77
- } .calendar-input__nativeInput_1to1e {
77
+ } .calendar-input__nativeInput_18ybb {
78
78
  opacity: 0;
79
79
  position: absolute;
80
80
  top: var(--gap-0);
@@ -83,8 +83,8 @@
83
83
  height: 100%;
84
84
  appearance: none;
85
85
  z-index: 1
86
- } .calendar-input__nativeInput_1to1e::-webkit-calendar-picker-indicator {
86
+ } .calendar-input__nativeInput_18ybb::-webkit-calendar-picker-indicator {
87
87
  display: none;
88
- } .calendar-input__nativeInput_1to1e::-webkit-inner-spin-button {
88
+ } .calendar-input__nativeInput_18ybb::-webkit-inner-spin-button {
89
89
  display: none;
90
90
  }
@@ -142,6 +142,9 @@ declare const CalendarInput: React.ForwardRefExoticComponent<Omit<DateInputProps
142
142
  hasHeader?: boolean | undefined;
143
143
  onApply?: (() => void) | undefined;
144
144
  clickableMonth?: boolean | undefined;
145
+ cancelButtonContent?: string | undefined;
146
+ selectButtonContent?: string | undefined;
147
+ resetButtonContent?: string | undefined;
145
148
  } & {
146
149
  onMonthTitleClick?: ((event: React.MouseEvent<HTMLSpanElement, globalThis.MouseEvent>) => void) | undefined;
147
150
  yearsAmount?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-calendar-input",
3
- "version": "10.4.9",
3
+ "version": "10.4.11",
4
4
  "description": "Calendar input component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,18 +10,19 @@
10
10
  "access": "public",
11
11
  "directory": "dist"
12
12
  },
13
+ "sideEffects": false,
13
14
  "peerDependencies": {
14
15
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0",
15
16
  "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
16
17
  },
17
18
  "dependencies": {
18
- "@alfalab/core-components-calendar": "^7.16.0",
19
- "@alfalab/core-components-date-input": "^4.4.8",
19
+ "@alfalab/core-components-calendar": "^7.17.1",
20
+ "@alfalab/core-components-date-input": "^4.4.10",
20
21
  "@alfalab/core-components-mq": "^4.4.0",
21
- "@alfalab/core-components-popover": "^6.3.3",
22
+ "@alfalab/core-components-popover": "^6.3.4",
22
23
  "@alfalab/hooks": "^1.13.0",
23
24
  "@alfalab/icons-glyph": "^2.139.0",
24
- "classnames": "^2.3.1",
25
+ "classnames": "^2.5.1",
25
26
  "date-fns": "^2.16.1",
26
27
  "react-merge-refs": "^1.1.0",
27
28
  "tslib": "^2.4.0",