@alfalab/core-components 23.12.0-beta.5 → 23.12.0-beta.6
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/calendar/Component.js +3 -1
- package/calendar/components/days-table/Component.js +1 -1
- package/calendar/components/days-table/index.css +2 -3
- package/calendar/components/days-table/index.js +1 -1
- package/calendar/components/header/index.css +2 -3
- package/calendar/components/months-table/Component.js +1 -1
- package/calendar/components/months-table/index.css +2 -3
- package/calendar/components/months-table/index.js +1 -1
- package/calendar/components/period-slider/Component.js +6 -4
- package/calendar/components/period-slider/index.css +3 -10
- package/calendar/components/period-slider/index.js +3 -1
- package/calendar/components/select-button/Component.js +1 -1
- package/calendar/components/select-button/index.css +2 -3
- package/calendar/components/select-button/index.js +1 -1
- package/calendar/components/years-table/Component.js +1 -1
- package/calendar/components/years-table/index.css +2 -3
- package/calendar/components/years-table/index.js +1 -1
- package/calendar/cssm/Component.js +2 -0
- package/calendar/cssm/components/days-table/index.module.css +2 -3
- package/calendar/cssm/components/header/index.module.css +2 -3
- package/calendar/cssm/components/months-table/index.module.css +2 -3
- package/calendar/cssm/components/period-slider/Component.js +5 -3
- package/calendar/cssm/components/period-slider/index.js +2 -0
- package/calendar/cssm/components/period-slider/index.module.css +3 -10
- package/calendar/cssm/components/select-button/index.module.css +2 -3
- package/calendar/cssm/components/years-table/index.module.css +2 -3
- package/calendar/cssm/index.js +2 -0
- package/calendar/cssm/index.module.css +2 -3
- package/calendar/cssm/vars.css +2 -3
- package/calendar/esm/Component.js +3 -1
- package/calendar/esm/components/days-table/Component.js +1 -1
- package/calendar/esm/components/days-table/index.css +2 -3
- package/calendar/esm/components/days-table/index.js +1 -1
- package/calendar/esm/components/header/index.css +2 -3
- package/calendar/esm/components/months-table/Component.js +1 -1
- package/calendar/esm/components/months-table/index.css +2 -3
- package/calendar/esm/components/months-table/index.js +1 -1
- package/calendar/esm/components/period-slider/Component.js +6 -4
- package/calendar/esm/components/period-slider/index.css +3 -10
- package/calendar/esm/components/period-slider/index.js +3 -1
- package/calendar/esm/components/select-button/Component.js +1 -1
- package/calendar/esm/components/select-button/index.css +2 -3
- package/calendar/esm/components/select-button/index.js +1 -1
- package/calendar/esm/components/years-table/Component.js +1 -1
- package/calendar/esm/components/years-table/index.css +2 -3
- package/calendar/esm/components/years-table/index.js +1 -1
- package/calendar/esm/index.css +2 -3
- package/calendar/esm/index.js +3 -1
- package/calendar/esm/tslib.es6-4766e71c.d.ts +32 -0
- package/calendar/esm/tslib.es6-4766e71c.js +40 -0
- package/calendar/index.css +2 -3
- package/calendar/index.js +3 -1
- package/calendar/modern/Component.js +2 -0
- package/calendar/modern/components/days-table/index.css +2 -3
- package/calendar/modern/components/header/index.css +2 -3
- package/calendar/modern/components/months-table/index.css +2 -3
- package/calendar/modern/components/period-slider/Component.js +5 -3
- package/calendar/modern/components/period-slider/index.css +3 -10
- package/calendar/modern/components/period-slider/index.js +2 -0
- package/calendar/modern/components/select-button/index.css +2 -3
- package/calendar/modern/components/years-table/index.css +2 -3
- package/calendar/modern/index.css +2 -3
- package/calendar/modern/index.js +2 -0
- package/calendar/tslib.es6-2d027ca7.d.ts +32 -0
- package/calendar/tslib.es6-2d027ca7.js +40 -0
- package/calendar-range/utils.js +3 -1
- package/package.json +1 -1
package/calendar/Component.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-2d027ca7.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var dateFns = require('date-fns');
|
|
@@ -13,6 +13,8 @@ var components_daysTable_Component = require('./components/days-table/Component.
|
|
|
13
13
|
require('./components/select-button/Component.js');
|
|
14
14
|
var components_monthsTable_Component = require('./components/months-table/Component.js');
|
|
15
15
|
var components_yearsTable_Component = require('./components/years-table/Component.js');
|
|
16
|
+
require('../icon-button');
|
|
17
|
+
require('@alfalab/icons-glyph/ChevronBackMIcon');
|
|
16
18
|
require('./components/period-slider/utils.js');
|
|
17
19
|
var components_periodSlider_Component = require('./components/period-slider/Component.js');
|
|
18
20
|
require('react-merge-refs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-2d027ca7.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var dateFns = require('date-fns');
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-2d027ca7.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
require('classnames');
|
|
6
6
|
var dateFns = require('date-fns');
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
require('../../tslib.es6-
|
|
3
|
+
require('../../tslib.es6-2d027ca7.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var dateFns = require('date-fns');
|
|
7
|
-
|
|
7
|
+
require('../../../button');
|
|
8
8
|
var utils = require('../../utils.js');
|
|
9
9
|
var components_selectButton_Component = require('../select-button/Component.js');
|
|
10
|
+
var coreComponentsIconButton = require('../../../icon-button');
|
|
11
|
+
var ChevronBackMIcon = require('@alfalab/icons-glyph/ChevronBackMIcon');
|
|
10
12
|
var components_periodSlider_utils = require('./utils.js');
|
|
11
13
|
|
|
12
14
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -81,9 +83,9 @@ var PeriodSlider = function (_a) {
|
|
|
81
83
|
return (React__default['default'].createElement("div", { className: cn__default['default'](styles.component, className, (_b = {},
|
|
82
84
|
_b[styles.full] = view === 'full',
|
|
83
85
|
_b)), "aria-live": 'polite', "data-test-id": dataTestId },
|
|
84
|
-
showPrevButton && (React__default['default'].createElement(
|
|
86
|
+
showPrevButton && (React__default['default'].createElement(coreComponentsIconButton.IconButton, { size: "xs", className: styles.arrow, icon: ChevronBackMIcon.ChevronBackMIcon, onClick: handlePrevArrowClick, disabled: prevArrowDisabled || !valueFrom, "aria-label": '\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u043F\u0435\u0440\u0438\u043E\u0434' })),
|
|
85
87
|
renderHeader(),
|
|
86
|
-
showNextButton && (React__default['default'].createElement(
|
|
88
|
+
showNextButton && (React__default['default'].createElement(coreComponentsIconButton.IconButton, { size: "xs", className: styles.arrow, icon: ChevronBackMIcon.ChevronBackMIcon, onClick: handleNextArrowClick, disabled: nextArrowDisabled || !valueFrom, "aria-label": '\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u043F\u0435\u0440\u0438\u043E\u0434' }))));
|
|
87
89
|
};
|
|
88
90
|
|
|
89
91
|
exports.PeriodSlider = PeriodSlider;
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -620,14 +619,8 @@
|
|
|
620
619
|
}
|
|
621
620
|
.calendar__arrow_s40ku {
|
|
622
621
|
position: absolute;
|
|
623
|
-
|
|
624
|
-
height: 24px;
|
|
625
|
-
top: 8px;
|
|
626
|
-
background: var(--calendar-arrow-background)
|
|
622
|
+
top: 4px
|
|
627
623
|
}
|
|
628
|
-
.calendar__arrow_s40ku:disabled {
|
|
629
|
-
opacity: 0.3;
|
|
630
|
-
}
|
|
631
624
|
.calendar__arrow_s40ku:first-child {
|
|
632
625
|
left: 0;
|
|
633
626
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
require('../../tslib.es6-
|
|
3
|
+
require('../../tslib.es6-2d027ca7.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('classnames');
|
|
6
6
|
require('date-fns');
|
|
7
7
|
require('../../../button');
|
|
8
8
|
require('../../utils.js');
|
|
9
9
|
require('../select-button/Component.js');
|
|
10
|
+
require('../../../icon-button');
|
|
11
|
+
require('@alfalab/icons-glyph/ChevronBackMIcon');
|
|
10
12
|
var components_periodSlider_utils = require('./utils.js');
|
|
11
13
|
var components_periodSlider_Component = require('./Component.js');
|
|
12
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-2d027ca7.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var coreComponentsButton = require('../../../button');
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-2d027ca7.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
require('classnames');
|
|
6
6
|
var dateFns = require('date-fns');
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -18,6 +18,8 @@ require('./components/months-table/index.module.css');
|
|
|
18
18
|
var components_monthsTable_Component = require('./components/months-table/Component.js');
|
|
19
19
|
require('./components/years-table/index.module.css');
|
|
20
20
|
var components_yearsTable_Component = require('./components/years-table/Component.js');
|
|
21
|
+
require('../../icon-button/cssm');
|
|
22
|
+
require('@alfalab/icons-glyph/ChevronBackMIcon');
|
|
21
23
|
require('./components/period-slider/utils.js');
|
|
22
24
|
require('./components/period-slider/index.module.css');
|
|
23
25
|
var components_periodSlider_Component = require('./components/period-slider/Component.js');
|
|
@@ -522,10 +522,9 @@
|
|
|
522
522
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
523
523
|
|
|
524
524
|
/* Шапка */
|
|
525
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
526
525
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
527
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
528
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
526
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
527
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
529
528
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
530
529
|
--calendar-month-only-header-font-size: 16px;
|
|
531
530
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -522,10 +522,9 @@
|
|
|
522
522
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
523
523
|
|
|
524
524
|
/* Шапка */
|
|
525
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
526
525
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
527
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
528
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
526
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
527
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
529
528
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
530
529
|
--calendar-month-only-header-font-size: 16px;
|
|
531
530
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -522,10 +522,9 @@
|
|
|
522
522
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
523
523
|
|
|
524
524
|
/* Шапка */
|
|
525
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
526
525
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
527
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
528
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
526
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
527
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
529
528
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
530
529
|
--calendar-month-only-header-font-size: 16px;
|
|
531
530
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -4,10 +4,12 @@ require('../../tslib.es6-ce870b46.js');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var dateFns = require('date-fns');
|
|
7
|
-
|
|
7
|
+
require('../../../../button/cssm');
|
|
8
8
|
var utils = require('../../utils.js');
|
|
9
9
|
require('../select-button/index.module.css');
|
|
10
10
|
var components_selectButton_Component = require('../select-button/Component.js');
|
|
11
|
+
var coreComponentsIconButton = require('../../../../icon-button/cssm');
|
|
12
|
+
var ChevronBackMIcon = require('@alfalab/icons-glyph/ChevronBackMIcon');
|
|
11
13
|
var components_periodSlider_utils = require('./utils.js');
|
|
12
14
|
var styles = require('./index.module.css');
|
|
13
15
|
|
|
@@ -81,9 +83,9 @@ var PeriodSlider = function (_a) {
|
|
|
81
83
|
return (React__default['default'].createElement("div", { className: cn__default['default'](styles__default['default'].component, className, (_b = {},
|
|
82
84
|
_b[styles__default['default'].full] = view === 'full',
|
|
83
85
|
_b)), "aria-live": 'polite', "data-test-id": dataTestId },
|
|
84
|
-
showPrevButton && (React__default['default'].createElement(
|
|
86
|
+
showPrevButton && (React__default['default'].createElement(coreComponentsIconButton.IconButton, { size: "xs", className: styles__default['default'].arrow, icon: ChevronBackMIcon.ChevronBackMIcon, onClick: handlePrevArrowClick, disabled: prevArrowDisabled || !valueFrom, "aria-label": '\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u043F\u0435\u0440\u0438\u043E\u0434' })),
|
|
85
87
|
renderHeader(),
|
|
86
|
-
showNextButton && (React__default['default'].createElement(
|
|
88
|
+
showNextButton && (React__default['default'].createElement(coreComponentsIconButton.IconButton, { size: "xs", className: styles__default['default'].arrow, icon: ChevronBackMIcon.ChevronBackMIcon, onClick: handleNextArrowClick, disabled: nextArrowDisabled || !valueFrom, "aria-label": '\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u043F\u0435\u0440\u0438\u043E\u0434' }))));
|
|
87
89
|
};
|
|
88
90
|
|
|
89
91
|
exports.PeriodSlider = PeriodSlider;
|
|
@@ -8,6 +8,8 @@ require('../../../../button/cssm');
|
|
|
8
8
|
require('../../utils.js');
|
|
9
9
|
require('../select-button/index.module.css');
|
|
10
10
|
require('../select-button/Component.js');
|
|
11
|
+
require('../../../../icon-button/cssm');
|
|
12
|
+
require('@alfalab/icons-glyph/ChevronBackMIcon');
|
|
11
13
|
var components_periodSlider_utils = require('./utils.js');
|
|
12
14
|
require('./index.module.css');
|
|
13
15
|
var components_periodSlider_Component = require('./Component.js');
|
|
@@ -522,10 +522,9 @@
|
|
|
522
522
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
523
523
|
|
|
524
524
|
/* Шапка */
|
|
525
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
526
525
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
527
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
528
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
526
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
527
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
529
528
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
530
529
|
--calendar-month-only-header-font-size: 16px;
|
|
531
530
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -619,14 +618,8 @@
|
|
|
619
618
|
}
|
|
620
619
|
.arrow {
|
|
621
620
|
position: absolute;
|
|
622
|
-
|
|
623
|
-
height: 24px;
|
|
624
|
-
top: 8px;
|
|
625
|
-
background: var(--calendar-arrow-background)
|
|
621
|
+
top: 4px
|
|
626
622
|
}
|
|
627
|
-
.arrow:disabled {
|
|
628
|
-
opacity: 0.3;
|
|
629
|
-
}
|
|
630
623
|
.arrow:first-child {
|
|
631
624
|
left: 0;
|
|
632
625
|
}
|
|
@@ -522,10 +522,9 @@
|
|
|
522
522
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
523
523
|
|
|
524
524
|
/* Шапка */
|
|
525
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
526
525
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
527
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
528
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
526
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
527
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
529
528
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
530
529
|
--calendar-month-only-header-font-size: 16px;
|
|
531
530
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -522,10 +522,9 @@
|
|
|
522
522
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
523
523
|
|
|
524
524
|
/* Шапка */
|
|
525
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
526
525
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
527
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
528
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
526
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
527
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
529
528
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
530
529
|
--calendar-month-only-header-font-size: 16px;
|
|
531
530
|
--calendar-month-only-header-font-weight: 400;
|
package/calendar/cssm/index.js
CHANGED
|
@@ -18,6 +18,8 @@ require('./components/months-table/index.module.css');
|
|
|
18
18
|
require('./components/months-table/Component.js');
|
|
19
19
|
require('./components/years-table/index.module.css');
|
|
20
20
|
require('./components/years-table/Component.js');
|
|
21
|
+
require('../../icon-button/cssm');
|
|
22
|
+
require('@alfalab/icons-glyph/ChevronBackMIcon');
|
|
21
23
|
var components_periodSlider_utils = require('./components/period-slider/utils.js');
|
|
22
24
|
require('./components/period-slider/index.module.css');
|
|
23
25
|
var components_periodSlider_Component = require('./components/period-slider/Component.js');
|
|
@@ -522,10 +522,9 @@
|
|
|
522
522
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
523
523
|
|
|
524
524
|
/* Шапка */
|
|
525
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
526
525
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
527
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
528
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
526
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
527
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
529
528
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
530
529
|
--calendar-month-only-header-font-size: 16px;
|
|
531
530
|
--calendar-month-only-header-font-weight: 400;
|
package/calendar/cssm/vars.css
CHANGED
|
@@ -8,10 +8,9 @@
|
|
|
8
8
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
9
9
|
|
|
10
10
|
/* Шапка */
|
|
11
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
12
11
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
13
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
14
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
12
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
13
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
15
14
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
16
15
|
--calendar-month-only-header-font-size: 16px;
|
|
17
16
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __assign } from './tslib.es6-
|
|
1
|
+
import { _ as __assign } from './tslib.es6-4766e71c.js';
|
|
2
2
|
import React, { forwardRef, useState, useMemo, useCallback } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { startOfMonth, startOfDay, endOfDay } from 'date-fns';
|
|
@@ -11,6 +11,8 @@ import { DaysTable } from './components/days-table/Component.js';
|
|
|
11
11
|
import './components/select-button/Component.js';
|
|
12
12
|
import { MonthsTable } from './components/months-table/Component.js';
|
|
13
13
|
import { YearsTable } from './components/years-table/Component.js';
|
|
14
|
+
import '../../icon-button/esm';
|
|
15
|
+
import '@alfalab/icons-glyph/ChevronBackMIcon';
|
|
14
16
|
import './components/period-slider/utils.js';
|
|
15
17
|
import { PeriodSlider } from './components/period-slider/Component.js';
|
|
16
18
|
import 'react-merge-refs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __assign } from '../../tslib.es6-4766e71c.js';
|
|
2
2
|
import React, { useRef, useCallback } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { startOfMonth, isToday, isEqual, isSameDay, isWithinInterval, isLastDayOfMonth } from 'date-fns';
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-4766e71c.js';
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { startOfWeek, endOfWeek } from 'date-fns';
|
|
5
|
-
import
|
|
5
|
+
import '../../../../button/esm';
|
|
6
6
|
import { monthName } from '../../utils.js';
|
|
7
7
|
import { SelectButton } from '../select-button/Component.js';
|
|
8
|
+
import { IconButton } from '../../../../icon-button/esm';
|
|
9
|
+
import { ChevronBackMIcon } from '@alfalab/icons-glyph/ChevronBackMIcon';
|
|
8
10
|
import { shiftValues, formatPeriod } from './utils.js';
|
|
9
11
|
|
|
10
12
|
var styles = {"component":"calendar__component_s40ku","month":"calendar__month_s40ku","year":"calendar__year_s40ku","buttonContent":"calendar__buttonContent_s40ku","period":"calendar__period_s40ku","empty":"calendar__empty_s40ku","upDownIcon":"calendar__upDownIcon_s40ku","arrow":"calendar__arrow_s40ku","full":"calendar__full_s40ku"};
|
|
@@ -74,9 +76,9 @@ var PeriodSlider = function (_a) {
|
|
|
74
76
|
return (React.createElement("div", { className: cn(styles.component, className, (_b = {},
|
|
75
77
|
_b[styles.full] = view === 'full',
|
|
76
78
|
_b)), "aria-live": 'polite', "data-test-id": dataTestId },
|
|
77
|
-
showPrevButton && (React.createElement(
|
|
79
|
+
showPrevButton && (React.createElement(IconButton, { size: "xs", className: styles.arrow, icon: ChevronBackMIcon, onClick: handlePrevArrowClick, disabled: prevArrowDisabled || !valueFrom, "aria-label": '\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u043F\u0435\u0440\u0438\u043E\u0434' })),
|
|
78
80
|
renderHeader(),
|
|
79
|
-
showNextButton && (React.createElement(
|
|
81
|
+
showNextButton && (React.createElement(IconButton, { size: "xs", className: styles.arrow, icon: ChevronBackMIcon, onClick: handleNextArrowClick, disabled: nextArrowDisabled || !valueFrom, "aria-label": '\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u043F\u0435\u0440\u0438\u043E\u0434' }))));
|
|
80
82
|
};
|
|
81
83
|
|
|
82
84
|
export { PeriodSlider };
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -620,14 +619,8 @@
|
|
|
620
619
|
}
|
|
621
620
|
.calendar__arrow_s40ku {
|
|
622
621
|
position: absolute;
|
|
623
|
-
|
|
624
|
-
height: 24px;
|
|
625
|
-
top: 8px;
|
|
626
|
-
background: var(--calendar-arrow-background)
|
|
622
|
+
top: 4px
|
|
627
623
|
}
|
|
628
|
-
.calendar__arrow_s40ku:disabled {
|
|
629
|
-
opacity: 0.3;
|
|
630
|
-
}
|
|
631
624
|
.calendar__arrow_s40ku:first-child {
|
|
632
625
|
left: 0;
|
|
633
626
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-4766e71c.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import 'date-fns';
|
|
5
5
|
import '../../../../button/esm';
|
|
6
6
|
import '../../utils.js';
|
|
7
7
|
import '../select-button/Component.js';
|
|
8
|
+
import '../../../../icon-button/esm';
|
|
9
|
+
import '@alfalab/icons-glyph/ChevronBackMIcon';
|
|
8
10
|
export { shiftValues } from './utils.js';
|
|
9
11
|
export { PeriodSlider } from './Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __rest, _ as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __rest, _ as __assign } from '../../tslib.es6-4766e71c.js';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { Button } from '../../../../button/esm';
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
package/calendar/esm/index.css
CHANGED
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
package/calendar/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-4766e71c.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import 'date-fns';
|
|
@@ -11,6 +11,8 @@ import './components/days-table/Component.js';
|
|
|
11
11
|
import './components/select-button/Component.js';
|
|
12
12
|
import './components/months-table/Component.js';
|
|
13
13
|
import './components/years-table/Component.js';
|
|
14
|
+
import '../../icon-button/esm';
|
|
15
|
+
import '@alfalab/icons-glyph/ChevronBackMIcon';
|
|
14
16
|
export { shiftValues } from './components/period-slider/utils.js';
|
|
15
17
|
export { PeriodSlider } from './components/period-slider/Component.js';
|
|
16
18
|
import 'react-merge-refs';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare function __extends(d: any, b: any): void;
|
|
2
|
+
declare function __rest(s: any, e: any): {};
|
|
3
|
+
declare function __decorate(decorators: any, target: any, key: any, desc: any, ...args: any[]): any;
|
|
4
|
+
declare function __param(paramIndex: any, decorator: any): (target: any, key: any) => void;
|
|
5
|
+
declare function __metadata(metadataKey: any, metadataValue: any): any;
|
|
6
|
+
declare function __awaiter(thisArg: any, _arguments: any, P: any, generator: any): any;
|
|
7
|
+
declare function __generator(thisArg: any, body: any): {
|
|
8
|
+
next: (v: any) => any;
|
|
9
|
+
throw: (v: any) => any;
|
|
10
|
+
return: (v: any) => any;
|
|
11
|
+
};
|
|
12
|
+
declare function __exportStar(m: any, o: any): void;
|
|
13
|
+
declare function __values(o: any): any;
|
|
14
|
+
declare function __read(o: any, n: any): any;
|
|
15
|
+
declare function __spread(...args: any[]): any[];
|
|
16
|
+
declare function __spreadArrays(...args: any[]): any[];
|
|
17
|
+
declare function __await(v: any): any;
|
|
18
|
+
declare class __await {
|
|
19
|
+
constructor(v: any);
|
|
20
|
+
v: any;
|
|
21
|
+
}
|
|
22
|
+
declare function __asyncGenerator(thisArg: any, _arguments: any, generator: any): {};
|
|
23
|
+
declare function __asyncDelegator(o: any): {};
|
|
24
|
+
declare function __asyncValues(o: any): any;
|
|
25
|
+
declare function __makeTemplateObject(cooked: any, raw: any): any;
|
|
26
|
+
declare function __importStar(mod: any): any;
|
|
27
|
+
declare function __importDefault(mod: any): any;
|
|
28
|
+
declare function __classPrivateFieldGet(receiver: any, privateMap: any): any;
|
|
29
|
+
declare function __classPrivateFieldSet(receiver: any, privateMap: any, value: any): any;
|
|
30
|
+
declare function __assign(...args: any[]): any;
|
|
31
|
+
declare function __createBinding(o: any, m: any, k: any, k2: any): void;
|
|
32
|
+
export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
var __assign = function () {
|
|
16
|
+
__assign = Object.assign || function __assign(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s)
|
|
20
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
+
t[p] = s[p];
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
};
|
|
25
|
+
return __assign.apply(this, arguments);
|
|
26
|
+
};
|
|
27
|
+
function __rest(s, e) {
|
|
28
|
+
var t = {};
|
|
29
|
+
for (var p in s)
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
+
t[p] = s[p];
|
|
32
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { __assign as _, __rest as a };
|
package/calendar/index.css
CHANGED
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
package/calendar/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
require('./tslib.es6-
|
|
3
|
+
require('./tslib.es6-2d027ca7.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('classnames');
|
|
6
6
|
require('date-fns');
|
|
@@ -13,6 +13,8 @@ require('./components/days-table/Component.js');
|
|
|
13
13
|
require('./components/select-button/Component.js');
|
|
14
14
|
require('./components/months-table/Component.js');
|
|
15
15
|
require('./components/years-table/Component.js');
|
|
16
|
+
require('../icon-button');
|
|
17
|
+
require('@alfalab/icons-glyph/ChevronBackMIcon');
|
|
16
18
|
var components_periodSlider_utils = require('./components/period-slider/utils.js');
|
|
17
19
|
var components_periodSlider_Component = require('./components/period-slider/Component.js');
|
|
18
20
|
require('react-merge-refs');
|
|
@@ -3,6 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { startOfMonth, startOfDay, endOfDay } from 'date-fns';
|
|
4
4
|
import { useDidUpdateEffect } from '@alfalab/hooks';
|
|
5
5
|
import 'react-transition-group';
|
|
6
|
+
import '@alfalab/icons-glyph/ChevronBackMIcon';
|
|
6
7
|
import 'react-merge-refs';
|
|
7
8
|
import { Header } from './components/header/Component.js';
|
|
8
9
|
import '../../button/modern';
|
|
@@ -11,6 +12,7 @@ import { DaysTable } from './components/days-table/Component.js';
|
|
|
11
12
|
import './components/select-button/Component.js';
|
|
12
13
|
import { MonthsTable } from './components/months-table/Component.js';
|
|
13
14
|
import { YearsTable } from './components/years-table/Component.js';
|
|
15
|
+
import '../../icon-button/modern';
|
|
14
16
|
import './components/period-slider/utils.js';
|
|
15
17
|
import { PeriodSlider } from './components/period-slider/Component.js';
|
|
16
18
|
import { useCalendar } from './useCalendar.js';
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { startOfWeek, endOfWeek } from 'date-fns';
|
|
4
|
-
import {
|
|
4
|
+
import { ChevronBackMIcon } from '@alfalab/icons-glyph/ChevronBackMIcon';
|
|
5
|
+
import '../../../../button/modern';
|
|
5
6
|
import { monthName } from '../../utils.js';
|
|
6
7
|
import { SelectButton } from '../select-button/Component.js';
|
|
8
|
+
import { IconButton } from '../../../../icon-button/modern';
|
|
7
9
|
import { formatPeriod, shiftValues } from './utils.js';
|
|
8
10
|
|
|
9
11
|
var styles = {"component":"calendar__component_s40ku","month":"calendar__month_s40ku","year":"calendar__year_s40ku","buttonContent":"calendar__buttonContent_s40ku","period":"calendar__period_s40ku","empty":"calendar__empty_s40ku","upDownIcon":"calendar__upDownIcon_s40ku","arrow":"calendar__arrow_s40ku","full":"calendar__full_s40ku"};
|
|
@@ -70,9 +72,9 @@ const PeriodSlider = ({ value, view = 'month-only', periodType = 'month', classN
|
|
|
70
72
|
return (React.createElement("div", { className: cn(styles.component, className, {
|
|
71
73
|
[styles.full]: view === 'full',
|
|
72
74
|
}), "aria-live": 'polite', "data-test-id": dataTestId },
|
|
73
|
-
showPrevButton && (React.createElement(
|
|
75
|
+
showPrevButton && (React.createElement(IconButton, { size: "xs", className: styles.arrow, icon: ChevronBackMIcon, onClick: handlePrevArrowClick, disabled: prevArrowDisabled || !valueFrom, "aria-label": '\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u043F\u0435\u0440\u0438\u043E\u0434' })),
|
|
74
76
|
renderHeader(),
|
|
75
|
-
showNextButton && (React.createElement(
|
|
77
|
+
showNextButton && (React.createElement(IconButton, { size: "xs", className: styles.arrow, icon: ChevronBackMIcon, onClick: handleNextArrowClick, disabled: nextArrowDisabled || !valueFrom, "aria-label": '\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u043F\u0435\u0440\u0438\u043E\u0434' }))));
|
|
76
78
|
};
|
|
77
79
|
|
|
78
80
|
export { PeriodSlider };
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -620,14 +619,8 @@
|
|
|
620
619
|
}
|
|
621
620
|
.calendar__arrow_s40ku {
|
|
622
621
|
position: absolute;
|
|
623
|
-
|
|
624
|
-
height: 24px;
|
|
625
|
-
top: 8px;
|
|
626
|
-
background: var(--calendar-arrow-background)
|
|
622
|
+
top: 4px
|
|
627
623
|
}
|
|
628
|
-
.calendar__arrow_s40ku:disabled {
|
|
629
|
-
opacity: 0.3;
|
|
630
|
-
}
|
|
631
624
|
.calendar__arrow_s40ku:first-child {
|
|
632
625
|
left: 0;
|
|
633
626
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import 'date-fns';
|
|
4
|
+
import '@alfalab/icons-glyph/ChevronBackMIcon';
|
|
4
5
|
import '../../../../button/modern';
|
|
5
6
|
import '../../utils.js';
|
|
6
7
|
import '../select-button/Component.js';
|
|
8
|
+
import '../../../../icon-button/modern';
|
|
7
9
|
export { shiftValues } from './utils.js';
|
|
8
10
|
export { PeriodSlider } from './Component.js';
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
|
@@ -523,10 +523,9 @@
|
|
|
523
523
|
--calendar-selector-button-outline-border-color: var(--color-light-border-key);
|
|
524
524
|
|
|
525
525
|
/* Шапка */
|
|
526
|
-
--calendar-arrow-background: url('https://alfabank.gcdn.co/icons/icon_arrow-left_m_black.svg');
|
|
527
526
|
--calendar-select-icon-background: url('https://alfabank.gcdn.co/icons/icon_arrow-select_m_black.svg');
|
|
528
|
-
--calendar-header-paddings: var(--gap-m) var(--gap-
|
|
529
|
-
--calendar-month-only-header-paddings: var(--gap-m)
|
|
527
|
+
--calendar-header-paddings: var(--gap-m) var(--gap-s) var(--gap-s);
|
|
528
|
+
--calendar-month-only-header-paddings: var(--gap-m) 28px var(--gap-s);
|
|
530
529
|
--calendar-month-only-header-font-family: var(--font-family-system);
|
|
531
530
|
--calendar-month-only-header-font-size: 16px;
|
|
532
531
|
--calendar-month-only-header-font-weight: 400;
|
package/calendar/modern/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import 'classnames';
|
|
|
3
3
|
import 'date-fns';
|
|
4
4
|
import '@alfalab/hooks';
|
|
5
5
|
import 'react-transition-group';
|
|
6
|
+
import '@alfalab/icons-glyph/ChevronBackMIcon';
|
|
6
7
|
import 'react-merge-refs';
|
|
7
8
|
import './components/header/Component.js';
|
|
8
9
|
import '../../button/modern';
|
|
@@ -11,6 +12,7 @@ import './components/days-table/Component.js';
|
|
|
11
12
|
import './components/select-button/Component.js';
|
|
12
13
|
import './components/months-table/Component.js';
|
|
13
14
|
import './components/years-table/Component.js';
|
|
15
|
+
import '../../icon-button/modern';
|
|
14
16
|
export { shiftValues } from './components/period-slider/utils.js';
|
|
15
17
|
export { PeriodSlider } from './components/period-slider/Component.js';
|
|
16
18
|
export { useCalendar } from './useCalendar.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare function __extends(d: any, b: any): void;
|
|
2
|
+
declare function __rest(s: any, e: any): {};
|
|
3
|
+
declare function __decorate(decorators: any, target: any, key: any, desc: any, ...args: any[]): any;
|
|
4
|
+
declare function __param(paramIndex: any, decorator: any): (target: any, key: any) => void;
|
|
5
|
+
declare function __metadata(metadataKey: any, metadataValue: any): any;
|
|
6
|
+
declare function __awaiter(thisArg: any, _arguments: any, P: any, generator: any): any;
|
|
7
|
+
declare function __generator(thisArg: any, body: any): {
|
|
8
|
+
next: (v: any) => any;
|
|
9
|
+
throw: (v: any) => any;
|
|
10
|
+
return: (v: any) => any;
|
|
11
|
+
};
|
|
12
|
+
declare function __exportStar(m: any, o: any): void;
|
|
13
|
+
declare function __values(o: any): any;
|
|
14
|
+
declare function __read(o: any, n: any): any;
|
|
15
|
+
declare function __spread(...args: any[]): any[];
|
|
16
|
+
declare function __spreadArrays(...args: any[]): any[];
|
|
17
|
+
declare function __await(v: any): any;
|
|
18
|
+
declare class __await {
|
|
19
|
+
constructor(v: any);
|
|
20
|
+
v: any;
|
|
21
|
+
}
|
|
22
|
+
declare function __asyncGenerator(thisArg: any, _arguments: any, generator: any): {};
|
|
23
|
+
declare function __asyncDelegator(o: any): {};
|
|
24
|
+
declare function __asyncValues(o: any): any;
|
|
25
|
+
declare function __makeTemplateObject(cooked: any, raw: any): any;
|
|
26
|
+
declare function __importStar(mod: any): any;
|
|
27
|
+
declare function __importDefault(mod: any): any;
|
|
28
|
+
declare function __classPrivateFieldGet(receiver: any, privateMap: any): any;
|
|
29
|
+
declare function __classPrivateFieldSet(receiver: any, privateMap: any, value: any): any;
|
|
30
|
+
declare function __assign(...args: any[]): any;
|
|
31
|
+
declare function __createBinding(o: any, m: any, k: any, k2: any): void;
|
|
32
|
+
export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
exports.__assign = function () {
|
|
16
|
+
exports.__assign = Object.assign || function __assign(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s)
|
|
20
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
+
t[p] = s[p];
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
};
|
|
25
|
+
return exports.__assign.apply(this, arguments);
|
|
26
|
+
};
|
|
27
|
+
function __rest(s, e) {
|
|
28
|
+
var t = {};
|
|
29
|
+
for (var p in s)
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
+
t[p] = s[p];
|
|
32
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
exports.__rest = __rest;
|
package/calendar-range/utils.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
var isDayButton = function (node) {
|
|
3
|
+
var isDayButton = function (node) {
|
|
4
|
+
return node && node.tagName === 'BUTTON' && node.dataset.date;
|
|
5
|
+
};
|
|
4
6
|
|
|
5
7
|
exports.isDayButton = isDayButton;
|