@jetbrains/ring-ui-built 6.0.35 → 6.0.36
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/components/_helpers/_rollupPluginBabelHelpers.js +1 -10
- package/components/_helpers/anchor.js +9 -6
- package/components/_helpers/caption.js +5 -4
- package/components/_helpers/card.js +65 -49
- package/components/_helpers/icon__svg.js +4 -3
- package/components/_helpers/input.js +45 -36
- package/components/_helpers/query-assist__suggestions.js +18 -14
- package/components/_helpers/select__filter.js +22 -17
- package/components/_helpers/services-link.js +14 -12
- package/components/_helpers/sidebar.js +20 -16
- package/components/_helpers/tab-link.js +21 -13
- package/components/_helpers/theme.js +18 -11
- package/components/_helpers/title.js +20 -16
- package/components/alert/alert.d.ts +2 -1
- package/components/alert/alert.js +20 -17
- package/components/alert/container.d.ts +2 -2
- package/components/alert/container.js +14 -11
- package/components/alert-service/alert-service.d.ts +2 -2
- package/components/alert-service/alert-service.js +14 -14
- package/components/analytics/analytics.js +1 -1
- package/components/analytics/analytics__custom-plugin.js +1 -1
- package/components/auth/auth.js +1 -0
- package/components/auth/auth__core.js +3 -2
- package/components/auth/background-flow.js +1 -1
- package/components/auth/down-notification.d.ts +1 -1
- package/components/auth/down-notification.js +21 -14
- package/components/auth/iframe-flow.js +7 -5
- package/components/auth/request-builder.js +1 -1
- package/components/auth/response-parser.js +1 -1
- package/components/auth/storage.js +3 -2
- package/components/auth/token-validator.js +1 -1
- package/components/auth/window-flow.js +1 -1
- package/components/auth-dialog/auth-dialog.d.ts +2 -2
- package/components/auth-dialog/auth-dialog.js +42 -32
- package/components/auth-dialog-service/auth-dialog-service.js +6 -7
- package/components/avatar/avatar.d.ts +2 -2
- package/components/avatar/avatar.js +29 -28
- package/components/avatar/fallback-avatar.d.ts +2 -2
- package/components/avatar/fallback-avatar.js +50 -37
- package/components/badge/badge.d.ts +2 -2
- package/components/badge/badge.js +7 -8
- package/components/breadcrumbs/breadcrumbs.d.ts +6 -0
- package/components/breadcrumbs/breadcrumbs.js +27 -0
- package/components/button/button.d.ts +2 -1
- package/components/button/button.js +26 -25
- package/components/button-group/button-group.d.ts +4 -2
- package/components/button-group/button-group.js +19 -10
- package/components/button-group/caption.d.ts +2 -2
- package/components/button-group/caption.js +1 -0
- package/components/button-set/button-set.d.ts +2 -2
- package/components/button-set/button-set.js +7 -8
- package/components/button-toolbar/button-toolbar.d.ts +2 -2
- package/components/button-toolbar/button-toolbar.js +4 -6
- package/components/caret/caret.js +1 -1
- package/components/checkbox/checkbox.d.ts +3 -2
- package/components/checkbox/checkbox.js +33 -28
- package/components/clipboard/clipboard.js +3 -2
- package/components/code/code.d.ts +3 -3
- package/components/code/code.js +14 -11
- package/components/collapse/collapse-content.d.ts +2 -1
- package/components/collapse/collapse-content.js +13 -10
- package/components/collapse/collapse-control.d.ts +1 -1
- package/components/collapse/collapse-control.js +10 -11
- package/components/collapse/collapse.d.ts +2 -1
- package/components/collapse/collapse.js +16 -16
- package/components/confirm/confirm.d.ts +2 -1
- package/components/confirm/confirm.js +29 -21
- package/components/confirm-service/confirm-service.js +6 -4
- package/components/content-layout/content-layout.d.ts +2 -2
- package/components/content-layout/content-layout.js +12 -12
- package/components/content-layout/sidebar.d.ts +2 -2
- package/components/content-layout/sidebar.js +1 -0
- package/components/contenteditable/contenteditable.d.ts +3 -3
- package/components/contenteditable/contenteditable.js +5 -7
- package/components/control-help/control-help.d.ts +4 -0
- package/components/control-help/control-help.js +16 -0
- package/components/control-label/control-label.d.ts +2 -1
- package/components/control-label/control-label.js +7 -4
- package/components/data-list/data-list.d.ts +11 -11
- package/components/data-list/data-list.js +44 -40
- package/components/data-list/data-list.mock.d.ts +2 -2
- package/components/data-list/data-list.mock.js +165 -73
- package/components/data-list/item.d.ts +3 -3
- package/components/data-list/item.js +49 -40
- package/components/data-list/selection.js +1 -1
- package/components/data-list/title.d.ts +3 -3
- package/components/data-list/title.js +2 -0
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +5 -3
- package/components/date-picker/date-picker.d.ts +2 -1
- package/components/date-picker/date-picker.js +43 -34
- package/components/date-picker/date-popup.d.ts +2 -1
- package/components/date-picker/date-popup.js +51 -45
- package/components/date-picker/day.d.ts +2 -2
- package/components/date-picker/day.js +11 -8
- package/components/date-picker/month-names.d.ts +2 -2
- package/components/date-picker/month-names.js +27 -25
- package/components/date-picker/month-slider.d.ts +2 -2
- package/components/date-picker/month-slider.js +15 -13
- package/components/date-picker/month.d.ts +2 -2
- package/components/date-picker/month.js +18 -15
- package/components/date-picker/months.d.ts +2 -2
- package/components/date-picker/months.js +18 -15
- package/components/date-picker/weekdays.d.ts +2 -2
- package/components/date-picker/weekdays.js +14 -13
- package/components/date-picker/years.d.ts +3 -3
- package/components/date-picker/years.js +19 -17
- package/components/dialog/dialog.d.ts +2 -1
- package/components/dialog/dialog.js +48 -45
- package/components/dropdown/anchor.d.ts +3 -3
- package/components/dropdown/anchor.js +1 -0
- package/components/dropdown/dropdown.d.ts +2 -1
- package/components/dropdown/dropdown.js +12 -12
- package/components/dropdown-menu/dropdown-menu.d.ts +3 -3
- package/components/dropdown-menu/dropdown-menu.js +41 -29
- package/components/editable-heading/editable-heading.d.ts +2 -1
- package/components/editable-heading/editable-heading.js +74 -58
- package/components/error-bubble/error-bubble.d.ts +2 -2
- package/components/error-bubble/error-bubble.js +20 -19
- package/components/error-message/error-message.d.ts +2 -2
- package/components/error-message/error-message.js +22 -20
- package/components/footer/footer.d.ts +2 -2
- package/components/footer/footer.js +31 -27
- package/components/form/form.js +1 -1
- package/components/global/create-stateful-context.d.ts +5 -5
- package/components/global/create-stateful-context.js +10 -7
- package/components/global/data-tests.js +1 -1
- package/components/global/dom.js +1 -1
- package/components/global/focus-sensor-hoc.js +4 -3
- package/components/global/fuzzy-highlight.js +1 -1
- package/components/global/get-event-key.d.ts +1 -1
- package/components/global/inject-styles.js +1 -1
- package/components/global/listeners.js +1 -1
- package/components/global/normalize-indent.js +1 -1
- package/components/global/react-dom-renderer.d.ts +2 -2
- package/components/global/react-dom-renderer.js +4 -3
- package/components/global/rerender-hoc.d.ts +2 -2
- package/components/global/rerender-hoc.js +5 -4
- package/components/global/theme.d.ts +3 -3
- package/components/global/theme.js +1 -0
- package/components/global/trivial-template-tag.js +1 -1
- package/components/grid/col.d.ts +2 -2
- package/components/grid/col.js +7 -5
- package/components/grid/grid.d.ts +2 -2
- package/components/grid/grid.js +7 -8
- package/components/grid/row.d.ts +2 -2
- package/components/grid/row.js +7 -5
- package/components/group/group.d.ts +2 -2
- package/components/group/group.js +7 -8
- package/components/header/header.d.ts +2 -2
- package/components/header/header.js +12 -14
- package/components/header/logo.d.ts +2 -2
- package/components/header/logo.js +7 -5
- package/components/header/profile.d.ts +4 -3
- package/components/header/profile.js +40 -29
- package/components/header/services-link.d.ts +2 -2
- package/components/header/services-link.js +1 -0
- package/components/header/services.d.ts +2 -2
- package/components/header/services.js +31 -31
- package/components/header/smart-profile.d.ts +2 -2
- package/components/header/smart-profile.js +5 -3
- package/components/header/smart-services.d.ts +2 -2
- package/components/header/smart-services.js +4 -3
- package/components/header/tray-icon.d.ts +2 -2
- package/components/header/tray-icon.js +4 -3
- package/components/header/tray.d.ts +2 -2
- package/components/header/tray.js +11 -8
- package/components/heading/heading.d.ts +6 -6
- package/components/heading/heading.js +8 -9
- package/components/http/http.js +1 -1
- package/components/http/http.mock.js +1 -1
- package/components/hub-source/hub-source.js +1 -1
- package/components/hub-source/hub-source__user.js +1 -1
- package/components/hub-source/hub-source__users-groups.js +1 -1
- package/components/i18n/i18n-context.d.ts +1 -1
- package/components/i18n/i18n-context.js +7 -4
- package/components/icon/icon.d.ts +2 -2
- package/components/icon/icon.js +12 -10
- package/components/icon/icon__svg.d.ts +3 -3
- package/components/icon/icon__svg.js +1 -0
- package/components/icon/index.js +1 -0
- package/components/input/input.d.ts +3 -2
- package/components/input/input.js +2 -0
- package/components/island/adaptive-island-hoc.d.ts +11 -11
- package/components/island/adaptive-island-hoc.js +10 -7
- package/components/island/content.d.ts +3 -3
- package/components/island/content.js +29 -23
- package/components/island/header.d.ts +2 -2
- package/components/island/header.js +18 -13
- package/components/island/island.d.ts +10 -10
- package/components/island/island.js +7 -8
- package/components/island-legacy/content-legacy.d.ts +2 -2
- package/components/island-legacy/content-legacy.js +7 -5
- package/components/island-legacy/header-legacy.d.ts +2 -2
- package/components/island-legacy/header-legacy.js +10 -7
- package/components/island-legacy/island-legacy.d.ts +2 -2
- package/components/island-legacy/island-legacy.js +7 -5
- package/components/link/clickableLink.d.ts +2 -1
- package/components/link/clickableLink.js +8 -6
- package/components/link/link.d.ts +15 -15
- package/components/link/link.js +12 -9
- package/components/list/consts.d.ts +2 -1
- package/components/list/list.d.ts +10 -10
- package/components/list/list.js +109 -95
- package/components/list/list__custom.d.ts +2 -1
- package/components/list/list__custom.js +7 -5
- package/components/list/list__hint.d.ts +2 -2
- package/components/list/list__hint.js +7 -9
- package/components/list/list__item.d.ts +2 -2
- package/components/list/list__item.js +73 -65
- package/components/list/list__link.d.ts +2 -2
- package/components/list/list__link.js +8 -10
- package/components/list/list__separator.d.ts +2 -2
- package/components/list/list__separator.js +7 -5
- package/components/list/list__title.d.ts +2 -2
- package/components/list/list__title.js +15 -11
- package/components/list/list__users-groups-source.js +3 -1
- package/components/loader/loader.d.ts +2 -2
- package/components/loader/loader.js +5 -10
- package/components/loader/loader__core.js +1 -1
- package/components/loader-inline/loader-inline.d.ts +2 -2
- package/components/loader-inline/loader-inline.js +10 -9
- package/components/loader-screen/loader-screen.d.ts +2 -2
- package/components/loader-screen/loader-screen.js +10 -11
- package/components/login-dialog/login-dialog.d.ts +2 -2
- package/components/login-dialog/login-dialog.js +21 -16
- package/components/login-dialog/service.js +6 -4
- package/components/markdown/markdown.d.ts +2 -2
- package/components/markdown/markdown.js +7 -8
- package/components/message/message.d.ts +2 -2
- package/components/message/message.js +50 -41
- package/components/old-browsers-message/white-list.js +1 -1
- package/components/pager/pager.d.ts +2 -1
- package/components/pager/pager.js +71 -53
- package/components/panel/panel.d.ts +2 -2
- package/components/panel/panel.js +7 -8
- package/components/permissions/permissions.js +1 -1
- package/components/permissions/permissions__cache.js +1 -1
- package/components/popup/popup.d.ts +2 -1
- package/components/popup/popup.js +46 -39
- package/components/popup/popup.target.d.ts +3 -3
- package/components/popup/popup.target.js +11 -8
- package/components/popup-menu/popup-menu.d.ts +2 -2
- package/components/popup-menu/popup-menu.js +13 -9
- package/components/progress-bar/progress-bar.d.ts +2 -2
- package/components/progress-bar/progress-bar.js +17 -18
- package/components/query-assist/query-assist.d.ts +3 -2
- package/components/query-assist/query-assist.js +122 -109
- package/components/query-assist/query-assist__suggestions.d.ts +2 -2
- package/components/query-assist/query-assist__suggestions.js +3 -1
- package/components/radio/radio.d.ts +3 -3
- package/components/radio/radio.js +8 -8
- package/components/radio/radio__item.d.ts +9 -6
- package/components/radio/radio__item.js +46 -37
- package/components/select/select.d.ts +5 -2
- package/components/select/select.js +201 -180
- package/components/select/select__filter.d.ts +2 -2
- package/components/select/select__filter.js +2 -0
- package/components/select/select__popup.d.ts +6 -4
- package/components/select/select__popup.js +101 -84
- package/components/shortcuts/core.d.ts +0 -1
- package/components/shortcuts/core.js +1 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +8 -8
- package/components/shortcuts/shortcuts-hoc.js +10 -8
- package/components/shortcuts/shortcuts.js +1 -1
- package/components/slider/slider.d.ts +2 -1
- package/components/slider/slider.js +78 -78
- package/components/slider/slider.utils.js +1 -1
- package/components/storage/storage.js +2 -1
- package/components/storage/storage__fallback.js +1 -1
- package/components/storage/storage__local.js +3 -2
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.d.ts +2 -1
- package/components/tab-trap/tab-trap.js +25 -20
- package/components/table/cell.d.ts +2 -2
- package/components/table/cell.js +7 -5
- package/components/table/disable-hover-hoc.d.ts +9 -9
- package/components/table/disable-hover-hoc.js +4 -3
- package/components/table/header-cell.d.ts +2 -2
- package/components/table/header-cell.js +17 -13
- package/components/table/header.d.ts +3 -3
- package/components/table/header.js +34 -26
- package/components/table/multitable.d.ts +2 -2
- package/components/table/multitable.js +12 -10
- package/components/table/row-with-focus-sensor.d.ts +3 -3
- package/components/table/row-with-focus-sensor.js +5 -3
- package/components/table/row.d.ts +2 -1
- package/components/table/row.js +50 -44
- package/components/table/selection-adapter.js +1 -1
- package/components/table/selection-shortcuts-hoc.js +4 -3
- package/components/table/selection.js +1 -1
- package/components/table/smart-table.d.ts +44 -44
- package/components/table/smart-table.js +5 -3
- package/components/table/table.d.ts +2 -1
- package/components/table/table.js +55 -45
- package/components/tabs/collapsible-more.d.ts +4 -4
- package/components/tabs/collapsible-more.js +37 -30
- package/components/tabs/collapsible-tab.d.ts +2 -1
- package/components/tabs/collapsible-tab.js +6 -6
- package/components/tabs/collapsible-tabs.d.ts +4 -4
- package/components/tabs/collapsible-tabs.js +51 -46
- package/components/tabs/dumb-tabs.d.ts +2 -1
- package/components/tabs/dumb-tabs.js +24 -18
- package/components/tabs/smart-tabs.d.ts +2 -2
- package/components/tabs/smart-tabs.js +8 -4
- package/components/tabs/tab-link.d.ts +3 -3
- package/components/tabs/tab-link.js +1 -0
- package/components/tabs/tab.d.ts +2 -2
- package/components/tabs/tab.js +7 -5
- package/components/tabs/tabs.js +2 -0
- package/components/tag/tag.d.ts +2 -1
- package/components/tag/tag.js +31 -28
- package/components/tags-input/tags-input.d.ts +3 -2
- package/components/tags-input/tags-input.js +52 -47
- package/components/tags-list/tags-list.d.ts +2 -1
- package/components/tags-list/tags-list.js +8 -5
- package/components/text/text.d.ts +2 -2
- package/components/text/text.js +7 -4
- package/components/toggle/toggle.d.ts +2 -2
- package/components/toggle/toggle.js +25 -20
- package/components/tooltip/tooltip.d.ts +2 -1
- package/components/tooltip/tooltip.js +26 -21
- package/components/user-agreement/service.js +20 -12
- package/components/user-agreement/user-agreement.d.ts +2 -2
- package/components/user-agreement/user-agreement.js +56 -39
- package/components/user-card/card.d.ts +2 -1
- package/components/user-card/card.js +1 -0
- package/components/user-card/smart-user-card-tooltip.d.ts +3 -3
- package/components/user-card/smart-user-card-tooltip.js +11 -7
- package/components/user-card/tooltip.d.ts +3 -3
- package/components/user-card/tooltip.js +15 -11
- package/components/user-card/user-card.js +1 -0
- package/package.json +5 -5
@@ -1,8 +1,8 @@
|
|
1
|
-
import { _ as _defineProperty,
|
1
|
+
import { _ as _defineProperty, i as _slicedToArray, k as _createForOfIteratorHelper, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.array.map.js';
|
4
4
|
import 'core-js/modules/es.object.values.js';
|
5
|
-
import
|
5
|
+
import { PureComponent } from 'react';
|
6
6
|
import PropTypes from 'prop-types';
|
7
7
|
import classNames from 'classnames';
|
8
8
|
import { format } from 'date-fns/format';
|
@@ -26,6 +26,7 @@ import DatePopup from './date-popup.js';
|
|
26
26
|
import { dateType } from './consts.js';
|
27
27
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
28
28
|
import formats from './formats.js';
|
29
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
29
30
|
import 'core-js/modules/es.array.iterator.js';
|
30
31
|
import 'core-js/modules/es.map.js';
|
31
32
|
import 'core-js/modules/es.object.to-string.js';
|
@@ -77,6 +78,7 @@ import '@jetbrains/icons/close-12px';
|
|
77
78
|
import '../global/prop-types.js';
|
78
79
|
import '../global/composeRefs.js';
|
79
80
|
import '../control-label/control-label.js';
|
81
|
+
import '../control-help/control-help.js';
|
80
82
|
import '../i18n/i18n.js';
|
81
83
|
import 'date-fns/isAfter';
|
82
84
|
import 'date-fns/isBefore';
|
@@ -123,16 +125,18 @@ var PopupComponent = function PopupComponent(_ref) {
|
|
123
125
|
datePopupProps = _ref.datePopupProps,
|
124
126
|
onComplete = _ref.onComplete,
|
125
127
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
126
|
-
return /*#__PURE__*/
|
128
|
+
return /*#__PURE__*/jsx(Popup, _objectSpread2(_objectSpread2({
|
127
129
|
hidden: hidden,
|
128
130
|
className: className,
|
129
131
|
ref: popupRef,
|
130
132
|
directions: [Popup.PopupProps.Directions.BOTTOM_RIGHT, Popup.PopupProps.Directions.BOTTOM_LEFT, Popup.PopupProps.Directions.TOP_LEFT, Popup.PopupProps.Directions.TOP_RIGHT]
|
131
|
-
}, restProps),
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
133
|
+
}, restProps), {}, {
|
134
|
+
children: /*#__PURE__*/jsx(DatePopup, _objectSpread2(_objectSpread2({
|
135
|
+
onClear: onClear
|
136
|
+
}, datePopupProps), {}, {
|
137
|
+
onComplete: onComplete
|
138
|
+
}))
|
139
|
+
}));
|
136
140
|
};
|
137
141
|
PopupComponent.propTypes = {
|
138
142
|
hidden: PropTypes.bool,
|
@@ -254,15 +258,16 @@ var DatePicker = /*#__PURE__*/function (_PureComponent) {
|
|
254
258
|
key: "render",
|
255
259
|
value: function render() {
|
256
260
|
var _this$props$disabled, _this$props$disabled2;
|
257
|
-
var anchorContent = /*#__PURE__*/
|
258
|
-
className: modules_0c7b7d96.anchorContent
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
261
|
+
var anchorContent = /*#__PURE__*/jsxs("div", {
|
262
|
+
className: modules_0c7b7d96.anchorContent,
|
263
|
+
children: [/*#__PURE__*/jsx(Icon, {
|
264
|
+
glyph: calendarIcon,
|
265
|
+
className: modules_0c7b7d96.calendarIcon
|
266
|
+
}), this.getAnchorText(), /*#__PURE__*/jsx(Icon, {
|
267
|
+
glyph: chevronDownIcon,
|
268
|
+
className: modules_0c7b7d96.chevronDownIcon
|
269
|
+
})]
|
270
|
+
});
|
266
271
|
var _this$props4 = this.props,
|
267
272
|
className = _this$props4.className,
|
268
273
|
popupClassName = _this$props4.popupClassName,
|
@@ -274,31 +279,35 @@ var DatePicker = /*#__PURE__*/function (_PureComponent) {
|
|
274
279
|
var classes = classNames(modules_0c7b7d96.datePicker, className, modules_0c7b7d96["size".concat(this.props.size)], {
|
275
280
|
[modules_0c7b7d96.inline]: inline
|
276
281
|
});
|
277
|
-
return /*#__PURE__*/
|
282
|
+
return /*#__PURE__*/jsx(Dropdown, _objectSpread2(_objectSpread2({
|
278
283
|
className: classes,
|
279
284
|
disabled: this.props.disabled,
|
280
|
-
anchor: inline ? /*#__PURE__*/
|
285
|
+
anchor: inline ? /*#__PURE__*/jsx(Link, {
|
281
286
|
"data-test-ring-dropdown-anchor": true,
|
282
287
|
className: modules_0c7b7d96.anchor,
|
283
288
|
disabled: (_this$props$disabled = this.props.disabled) !== null && _this$props$disabled !== void 0 ? _this$props$disabled : false,
|
284
|
-
pseudo: true
|
285
|
-
|
289
|
+
pseudo: true,
|
290
|
+
children: this.getAnchorText()
|
291
|
+
}) : /*#__PURE__*/jsx(Button, {
|
286
292
|
"data-test-ring-dropdown-anchor": true,
|
287
293
|
className: modules_0c7b7d96.anchor,
|
288
294
|
text: false,
|
289
|
-
disabled: (_this$props$disabled2 = this.props.disabled) !== null && _this$props$disabled2 !== void 0 ? _this$props$disabled2 : false
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
295
|
+
disabled: (_this$props$disabled2 = this.props.disabled) !== null && _this$props$disabled2 !== void 0 ? _this$props$disabled2 : false,
|
296
|
+
children: anchorContent
|
297
|
+
})
|
298
|
+
}, dropdownProps), {}, {
|
299
|
+
children: /*#__PURE__*/jsx(PopupComponent, {
|
300
|
+
className: popupClassName,
|
301
|
+
popupRef: this.popupRef,
|
302
|
+
onClear: clear ? this.clear : null,
|
303
|
+
datePopupProps: _objectSpread2(_objectSpread2({}, datePopupProps), {}, {
|
304
|
+
translations,
|
305
|
+
onChange: this.handleChange,
|
306
|
+
parseDateInput: this.parse,
|
307
|
+
time: this.formatTime()
|
308
|
+
}),
|
309
|
+
onComplete: this.closePopup
|
310
|
+
})
|
302
311
|
}));
|
303
312
|
}
|
304
313
|
}]);
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { Component } from 'react';
|
2
|
+
import * as React from 'react';
|
2
3
|
import PropTypes from 'prop-types';
|
3
4
|
import { DatePickerChange, DatePopupBaseProps, DateSpecificPopupProps, DatePopupState, RangeSpecificPopupProps, TimeSpecificPopupProps, Field } from './consts';
|
4
5
|
export type DatePopupProps = DatePopupBaseProps & (DateSpecificPopupProps | TimeSpecificPopupProps | RangeSpecificPopupProps);
|
@@ -1,8 +1,9 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass, d as _objectSpread2, c as _objectWithoutProperties, e as
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, d as _objectSpread2, c as _objectWithoutProperties, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.map.js';
|
3
3
|
import 'core-js/modules/es.array.reduce.js';
|
4
4
|
import 'core-js/modules/es.object.to-string.js';
|
5
|
-
import
|
5
|
+
import * as React from 'react';
|
6
|
+
import { createElement, Component } from 'react';
|
6
7
|
import PropTypes from 'prop-types';
|
7
8
|
import { isAfter } from 'date-fns/isAfter';
|
8
9
|
import { isBefore } from 'date-fns/isBefore';
|
@@ -16,6 +17,7 @@ import Years from './years.js';
|
|
16
17
|
import Weekdays from './weekdays.js';
|
17
18
|
import { dateType, parseTime } from './consts.js';
|
18
19
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
20
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
19
21
|
import 'core-js/modules/es.array.iterator.js';
|
20
22
|
import 'core-js/modules/es.map.js';
|
21
23
|
import 'core-js/modules/es.weak-map.js';
|
@@ -47,6 +49,7 @@ import 'core-js/modules/es.set.js';
|
|
47
49
|
import '../global/composeRefs.js';
|
48
50
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
49
51
|
import '../control-label/control-label.js';
|
52
|
+
import '../control-help/control-help.js';
|
50
53
|
import 'date-fns/addMonths';
|
51
54
|
import 'date-fns/getDay';
|
52
55
|
import 'date-fns/getDaysInMonth';
|
@@ -403,52 +406,55 @@ var DatePopup = /*#__PURE__*/function (_Component) {
|
|
403
406
|
onScrollChange: this.scrollTo
|
404
407
|
});
|
405
408
|
var clearable = Boolean(this.props.onClear);
|
406
|
-
return /*#__PURE__*/
|
409
|
+
return /*#__PURE__*/jsxs("div", {
|
407
410
|
className: modules_0c7b7d96.datePopup,
|
408
411
|
"data-test": "ring-date-popup",
|
409
|
-
ref: this.componentRef
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
412
|
+
ref: this.componentRef,
|
413
|
+
children: [/*#__PURE__*/jsxs("div", {
|
414
|
+
className: modules_0c7b7d96.filterWrapper,
|
415
|
+
children: [names.map(function (name) {
|
416
|
+
var onClear;
|
417
|
+
if (clearable && name !== 'from' && !_this2.isInTimeMode()) {
|
418
|
+
onClear = _this2.onClear.bind(_this2);
|
419
|
+
}
|
420
|
+
return /*#__PURE__*/createElement(DateInput, _objectSpread2(_objectSpread2(_objectSpread2({}, _this2.props), _this2.state), {}, {
|
421
|
+
divider: name === 'from' && (dates[name] != null || parsedTo != null),
|
422
|
+
name: name,
|
423
|
+
key: name,
|
424
|
+
date: dates[name],
|
425
|
+
active: _this2.state.active === name,
|
426
|
+
onActivate: _this2.handleActivate(name),
|
427
|
+
onInput: _this2.handleInput,
|
428
|
+
onConfirm: _this2.handleConfirm(name),
|
429
|
+
onClear: onClear,
|
430
|
+
locale: locale
|
431
|
+
}));
|
432
|
+
}), this.isInTimeMode() ? /*#__PURE__*/createElement(DateInput, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
433
|
+
text: this.state.text,
|
434
|
+
divider: !!parsedDate,
|
435
|
+
hoverDate: null,
|
436
|
+
name: 'time',
|
437
|
+
key: 'time',
|
438
|
+
date: null,
|
439
|
+
time: time,
|
440
|
+
active: this.state.active === 'time',
|
441
|
+
onActivate: this.handleActivate('time'),
|
442
|
+
onInput: this.handleInput,
|
443
|
+
onConfirm: this.handleConfirm('time'),
|
444
|
+
onClear: clearable && this.onClear || undefined,
|
445
|
+
locale: locale
|
446
|
+
})) : '']
|
447
|
+
}), /*#__PURE__*/jsx(Weekdays, {
|
427
448
|
locale: locale
|
428
|
-
})
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
active: this.state.active === 'time',
|
438
|
-
onActivate: this.handleActivate('time'),
|
439
|
-
onInput: this.handleInput,
|
440
|
-
onConfirm: this.handleConfirm('time'),
|
441
|
-
onClear: clearable && this.onClear || undefined,
|
442
|
-
locale: locale
|
443
|
-
})) : ''), /*#__PURE__*/React.createElement(Weekdays, {
|
444
|
-
locale: locale
|
445
|
-
}), /*#__PURE__*/React.createElement("div", {
|
446
|
-
className: modules_0c7b7d96.calendar
|
447
|
-
}, /*#__PURE__*/React.createElement(Months, _extends({}, calendarProps, {
|
448
|
-
onHover: this.hoverHandler,
|
449
|
-
onSelect: this.selectHandler,
|
450
|
-
locale: locale
|
451
|
-
})), /*#__PURE__*/React.createElement(Years, calendarProps)), this.props.renderAfterCalendar && this.props.renderAfterCalendar(this.state));
|
449
|
+
}), /*#__PURE__*/jsxs("div", {
|
450
|
+
className: modules_0c7b7d96.calendar,
|
451
|
+
children: [/*#__PURE__*/jsx(Months, _objectSpread2(_objectSpread2({}, calendarProps), {}, {
|
452
|
+
onHover: this.hoverHandler,
|
453
|
+
onSelect: this.selectHandler,
|
454
|
+
locale: locale
|
455
|
+
})), /*#__PURE__*/jsx(Years, _objectSpread2({}, calendarProps))]
|
456
|
+
}), this.props.renderAfterCalendar && this.props.renderAfterCalendar(this.state)]
|
457
|
+
});
|
452
458
|
}
|
453
459
|
}], [{
|
454
460
|
key: "sameDay",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { Component } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { MonthsProps } from './consts';
|
4
4
|
export interface DayProps extends MonthsProps {
|
@@ -27,5 +27,5 @@ export default class Day extends Component<DayProps> {
|
|
27
27
|
inRange: (range: [Date, Date] | null) => boolean | null;
|
28
28
|
isDisabled: (date: Date) => boolean;
|
29
29
|
parse(text: string | null | undefined): Date | null;
|
30
|
-
render():
|
30
|
+
render(): import("react").JSX.Element;
|
31
31
|
}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.array.includes.js';
|
4
4
|
import 'core-js/modules/es.object.to-string.js';
|
5
5
|
import 'core-js/modules/es.string.includes.js';
|
6
|
-
import
|
6
|
+
import { Component } from 'react';
|
7
7
|
import PropTypes from 'prop-types';
|
8
8
|
import classNames from 'classnames';
|
9
9
|
import { addDays } from 'date-fns/addDays';
|
@@ -17,6 +17,7 @@ import { isToday } from 'date-fns/isToday';
|
|
17
17
|
import { startOfDay } from 'date-fns/startOfDay';
|
18
18
|
import { dateType, getDayNumInWeek, weekdays } from './consts.js';
|
19
19
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
20
|
+
import { jsx } from 'react/jsx-runtime';
|
20
21
|
import 'core-js/modules/es.array.index-of.js';
|
21
22
|
import 'core-js/modules/es.array.slice.js';
|
22
23
|
import 'core-js/modules/es.object.values.js';
|
@@ -89,7 +90,7 @@ var Day = /*#__PURE__*/function (_Component) {
|
|
89
90
|
return (
|
90
91
|
/*#__PURE__*/
|
91
92
|
// TODO make keyboard navigation actually work
|
92
|
-
|
93
|
+
jsx("button", {
|
93
94
|
type: "button",
|
94
95
|
className: classNames(modules_0c7b7d96.day, modules_0c7b7d96["Day".concat(dayInWeek)], {
|
95
96
|
[modules_0c7b7d96.current]: ['date', 'from', 'to'].some(this.is),
|
@@ -110,12 +111,14 @@ var Day = /*#__PURE__*/function (_Component) {
|
|
110
111
|
onFocus: this.handleMouseOver,
|
111
112
|
onMouseOut: this.handleMouseOut,
|
112
113
|
onBlur: this.handleMouseOut,
|
113
|
-
disabled: disabled
|
114
|
-
|
115
|
-
|
116
|
-
|
114
|
+
disabled: disabled,
|
115
|
+
children: empty || /*#__PURE__*/jsx("span", {
|
116
|
+
className: classNames({
|
117
|
+
[modules_0c7b7d96.today]: isToday(day)
|
118
|
+
}),
|
119
|
+
children: format(day, 'd')
|
117
120
|
})
|
118
|
-
}
|
121
|
+
})
|
119
122
|
);
|
120
123
|
}
|
121
124
|
}]);
|
@@ -1,7 +1,7 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { MonthsProps } from './consts';
|
4
|
-
declare function MonthNames(props: MonthsProps):
|
4
|
+
declare function MonthNames(props: MonthsProps): import("react").JSX.Element;
|
5
5
|
declare namespace MonthNames {
|
6
6
|
var propTypes: {
|
7
7
|
scrollDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { _ as _defineProperty,
|
1
|
+
import { _ as _defineProperty, i as _slicedToArray, d as _objectSpread2, a as _inherits, b as _createClass, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.array.map.js';
|
4
|
-
import
|
4
|
+
import { PureComponent } from 'react';
|
5
5
|
import PropTypes from 'prop-types';
|
6
6
|
import classNames from 'classnames';
|
7
7
|
import { endOfMonth } from 'date-fns/endOfMonth';
|
@@ -14,6 +14,7 @@ import linearFunction from '../global/linear-function.js';
|
|
14
14
|
import MonthSlider from './month-slider.js';
|
15
15
|
import { dateType, YEAR, MIDDLE_DAY, yearScrollSpeed } from './consts.js';
|
16
16
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
17
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
17
18
|
import 'date-fns/addYears';
|
18
19
|
import 'date-fns/subYears';
|
19
20
|
import 'core-js/modules/es.array.index-of.js';
|
@@ -43,15 +44,16 @@ var MonthName = /*#__PURE__*/function (_PureComponent) {
|
|
43
44
|
var _this$props = this.props,
|
44
45
|
month = _this$props.month,
|
45
46
|
locale = _this$props.locale;
|
46
|
-
return /*#__PURE__*/
|
47
|
+
return /*#__PURE__*/jsx("button", {
|
47
48
|
type: "button",
|
48
49
|
className: classNames(modules_0c7b7d96.monthName, {
|
49
50
|
[modules_0c7b7d96.today]: isThisMonth(month)
|
50
51
|
}),
|
51
|
-
onClick: this.handleClick
|
52
|
-
|
53
|
-
|
54
|
-
|
52
|
+
onClick: this.handleClick,
|
53
|
+
children: format(month, 'LLL', {
|
54
|
+
locale
|
55
|
+
})
|
56
|
+
});
|
55
57
|
}
|
56
58
|
}]);
|
57
59
|
}(PureComponent);
|
@@ -82,24 +84,24 @@ function MonthNames(props) {
|
|
82
84
|
top = _props$currentRange$m2[0];
|
83
85
|
bottom = _props$currentRange$m2[1];
|
84
86
|
}
|
85
|
-
return /*#__PURE__*/
|
86
|
-
className: modules_0c7b7d96.monthNames
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
})
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
}
|
100
|
-
|
101
|
-
|
102
|
-
})
|
87
|
+
return /*#__PURE__*/jsxs("div", {
|
88
|
+
className: modules_0c7b7d96.monthNames,
|
89
|
+
children: [months.map(function (month) {
|
90
|
+
return /*#__PURE__*/jsx(MonthName, {
|
91
|
+
month: month,
|
92
|
+
onScrollChange: props.onScrollChange,
|
93
|
+
locale: locale
|
94
|
+
}, +month);
|
95
|
+
}), props.currentRange && /*#__PURE__*/jsx("div", {
|
96
|
+
className: modules_0c7b7d96.range,
|
97
|
+
style: {
|
98
|
+
top: top - 1,
|
99
|
+
height: bottom + 1 - (top - 1)
|
100
|
+
}
|
101
|
+
}), /*#__PURE__*/jsx(MonthSlider, _objectSpread2(_objectSpread2({}, props), {}, {
|
102
|
+
pxToDate: pxToDate
|
103
|
+
}))]
|
104
|
+
});
|
103
105
|
}
|
104
106
|
MonthNames.propTypes = {
|
105
107
|
scrollDate: dateType,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PureComponent } from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { LinearFunction } from '../global/linear-function';
|
4
4
|
import { MonthsProps } from './consts';
|
@@ -24,6 +24,6 @@ export default class MonthSlider extends PureComponent<MonthSliderProps> {
|
|
24
24
|
onMouseDown: () => void;
|
25
25
|
onMouseUp: () => void;
|
26
26
|
onMouseMove: (e: MouseEvent) => void;
|
27
|
-
render():
|
27
|
+
render(): import("react").JSX.Element;
|
28
28
|
}
|
29
29
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createClass,
|
1
|
+
import { _ as _defineProperty, a as _inherits, b as _createClass, e as _classCallCheck, f as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
3
|
import 'core-js/modules/es.array.map.js';
|
4
|
-
import
|
4
|
+
import { PureComponent } from 'react';
|
5
5
|
import PropTypes from 'prop-types';
|
6
6
|
import classNames from 'classnames';
|
7
7
|
import { addYears } from 'date-fns/addYears';
|
@@ -10,6 +10,7 @@ import { subYears } from 'date-fns/subYears';
|
|
10
10
|
import linearFunction from '../global/linear-function.js';
|
11
11
|
import units, { dateType, yearScrollSpeed } from './consts.js';
|
12
12
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
13
|
+
import { jsx } from 'react/jsx-runtime';
|
13
14
|
import 'core-js/modules/es.array.index-of.js';
|
14
15
|
import 'core-js/modules/es.array.slice.js';
|
15
16
|
import 'core-js/modules/es.object.values.js';
|
@@ -68,17 +69,18 @@ var MonthSlider = /*#__PURE__*/function (_PureComponent) {
|
|
68
69
|
var classes = classNames(modules_0c7b7d96.monthSlider, {
|
69
70
|
[modules_0c7b7d96.dragging]: this.state.dragging
|
70
71
|
});
|
71
|
-
return /*#__PURE__*/
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
72
|
+
return /*#__PURE__*/jsx("div", {
|
73
|
+
children: years.map(function (date) {
|
74
|
+
return /*#__PURE__*/jsx("button", {
|
75
|
+
type: "button",
|
76
|
+
className: classes,
|
77
|
+
style: {
|
78
|
+
top: Math.floor(_this2.props.pxToDate.x(Number(date)) - units.cellSize)
|
79
|
+
},
|
80
|
+
onMouseDown: _this2.onMouseDown
|
81
|
+
}, +date);
|
82
|
+
})
|
83
|
+
});
|
82
84
|
}
|
83
85
|
}]);
|
84
86
|
}(PureComponent);
|
@@ -1,10 +1,10 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { MonthsProps } from './consts';
|
4
4
|
export interface MonthProps extends MonthsProps {
|
5
5
|
month: Date;
|
6
6
|
}
|
7
|
-
declare function Month(props: MonthProps):
|
7
|
+
declare function Month(props: MonthProps): import("react").JSX.Element;
|
8
8
|
declare namespace Month {
|
9
9
|
var propTypes: {
|
10
10
|
month: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { d as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.map.js';
|
3
3
|
import 'core-js/modules/es.object.values.js';
|
4
|
-
import React from 'react';
|
5
4
|
import { addDays } from 'date-fns/addDays';
|
6
5
|
import { endOfMonth } from 'date-fns/endOfMonth';
|
7
6
|
import { format } from 'date-fns/format';
|
@@ -11,6 +10,8 @@ import PropTypes from 'prop-types';
|
|
11
10
|
import Day from './day.js';
|
12
11
|
import { dateType, shiftWeekArray, getWeekStartsOn, weekdays, FIFTH_DAY, WEEK } from './consts.js';
|
13
12
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
13
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
14
|
+
import { createElement } from 'react';
|
14
15
|
import 'core-js/modules/es.array.concat.js';
|
15
16
|
import 'core-js/modules/es.array.includes.js';
|
16
17
|
import 'core-js/modules/es.object.to-string.js';
|
@@ -41,19 +42,21 @@ function Month(props) {
|
|
41
42
|
days.push(day);
|
42
43
|
day = addDays(day, 1);
|
43
44
|
}
|
44
|
-
return /*#__PURE__*/
|
45
|
-
className: modules_0c7b7d96.month
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
45
|
+
return /*#__PURE__*/jsxs("div", {
|
46
|
+
className: modules_0c7b7d96.month,
|
47
|
+
children: [/*#__PURE__*/jsx("span", {
|
48
|
+
className: modules_0c7b7d96.monthTitle,
|
49
|
+
children: format(props.month, 'LLLL', {
|
50
|
+
locale
|
51
|
+
})
|
52
|
+
}), days.map(function (date) {
|
53
|
+
return /*#__PURE__*/createElement(Day, _objectSpread2(_objectSpread2({}, props), {}, {
|
54
|
+
day: date,
|
55
|
+
empty: date < start,
|
56
|
+
key: +date
|
57
|
+
}));
|
58
|
+
})]
|
59
|
+
});
|
57
60
|
}
|
58
61
|
Month.propTypes = {
|
59
62
|
month: dateType,
|
@@ -1,7 +1,7 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { MonthsProps } from './consts';
|
4
|
-
declare function Months(props: MonthsProps):
|
4
|
+
declare function Months(props: MonthsProps): import("react").JSX.Element;
|
5
5
|
declare namespace Months {
|
6
6
|
var propTypes: {
|
7
7
|
onScroll: PropTypes.Requireable<(...args: any[]) => any>;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { d as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.map.js';
|
3
|
-
import
|
3
|
+
import { useMemo, useRef, useEffect, createElement } from 'react';
|
4
4
|
import PropTypes from 'prop-types';
|
5
5
|
import { addMonths } from 'date-fns/addMonths';
|
6
6
|
import { getDay } from 'date-fns/getDay';
|
@@ -15,6 +15,7 @@ import Month from './month.js';
|
|
15
15
|
import MonthNames from './month-names.js';
|
16
16
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
17
17
|
import units, { dateType, DOUBLE, HALF, WEEK, weekdays } from './consts.js';
|
18
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
18
19
|
import 'core-js/modules/es.object.values.js';
|
19
20
|
import 'date-fns/addDays';
|
20
21
|
import 'date-fns/format';
|
@@ -113,20 +114,22 @@ function Months(props) {
|
|
113
114
|
}
|
114
115
|
};
|
115
116
|
}, [handleWheel]);
|
116
|
-
return /*#__PURE__*/
|
117
|
+
return /*#__PURE__*/jsxs("div", {
|
117
118
|
className: modules_0c7b7d96.months,
|
118
|
-
ref: componentRef
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
119
|
+
ref: componentRef,
|
120
|
+
children: [/*#__PURE__*/jsx("div", {
|
121
|
+
style: {
|
122
|
+
top: Math.floor(calHeight * HALF - monthHeight(months[0]) - monthHeight(months[1]) + offset)
|
123
|
+
},
|
124
|
+
className: modules_0c7b7d96.days,
|
125
|
+
children: months.map(function (date) {
|
126
|
+
return /*#__PURE__*/createElement(Month, _objectSpread2(_objectSpread2({}, props), {}, {
|
127
|
+
month: date,
|
128
|
+
key: +date
|
129
|
+
}));
|
130
|
+
})
|
131
|
+
}), /*#__PURE__*/jsx(MonthNames, _objectSpread2({}, props))]
|
132
|
+
});
|
130
133
|
}
|
131
134
|
Months.propTypes = {
|
132
135
|
onScroll: PropTypes.func,
|
@@ -1,10 +1,10 @@
|
|
1
|
-
|
1
|
+
/// <reference types="react" />
|
2
2
|
import type { Locale } from 'date-fns';
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
interface WeekdaysProps {
|
5
5
|
locale: Locale | undefined;
|
6
6
|
}
|
7
|
-
declare function Weekdays(props: WeekdaysProps):
|
7
|
+
declare function Weekdays(props: WeekdaysProps): import("react").JSX.Element;
|
8
8
|
declare namespace Weekdays {
|
9
9
|
var propTypes: {
|
10
10
|
locale: PropTypes.Requireable<object>;
|