@jetbrains/ring-ui-built 7.0.0-beta.3 → 7.0.0-beta.5
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/anchor.js +0 -5
- package/components/_helpers/caption.js +1 -5
- package/components/_helpers/card.js +0 -28
- package/components/_helpers/icon__svg.js +0 -6
- package/components/_helpers/input.js +0 -21
- package/components/_helpers/select__filter.js +0 -8
- package/components/_helpers/services-link.js +1 -11
- package/components/_helpers/sidebar.js +0 -9
- package/components/_helpers/tab-link.js +0 -6
- package/components/_helpers/theme.js +1 -1
- package/components/_helpers/title.js +0 -15
- package/components/alert/alert.d.ts +7 -24
- package/components/alert/alert.js +0 -24
- package/components/alert/container.d.ts +0 -5
- package/components/alert/container.js +1 -6
- package/components/alert-service/alert-service.js +0 -1
- package/components/auth/auth.js +0 -4
- package/components/auth/auth__core.d.ts +3 -3
- package/components/auth/auth__core.js +32 -24
- package/components/auth/down-notification.js +0 -9
- package/components/auth/iframe-flow.js +0 -1
- package/components/auth/storage.js +3 -7
- package/components/auth-dialog/auth-dialog.d.ts +0 -18
- package/components/auth-dialog/auth-dialog.js +7 -25
- package/components/auth-dialog-service/auth-dialog-service.js +4 -5
- package/components/avatar/avatar.d.ts +0 -13
- package/components/avatar/avatar.js +0 -13
- package/components/avatar/fallback-avatar.d.ts +1 -10
- package/components/avatar/fallback-avatar.js +0 -6
- package/components/badge/badge.d.ts +0 -10
- package/components/badge/badge.js +1 -11
- package/components/button/button.d.ts +0 -21
- package/components/button/button.js +0 -21
- package/components/button-group/button-group.d.ts +0 -5
- package/components/button-group/button-group.js +1 -6
- package/components/button-group/caption.d.ts +0 -4
- package/components/button-group/caption.js +0 -1
- package/components/button-set/button-set.d.ts +0 -6
- package/components/button-set/button-set.js +1 -7
- package/components/button-toolbar/button-toolbar.d.ts +0 -6
- package/components/button-toolbar/button-toolbar.js +1 -7
- package/components/checkbox/checkbox.d.ts +0 -19
- package/components/checkbox/checkbox.js +0 -18
- package/components/clipboard/clipboard.js +0 -1
- package/components/code/code.d.ts +0 -12
- package/components/code/code.js +0 -12
- package/components/confirm/confirm.d.ts +0 -14
- package/components/confirm/confirm.js +10 -24
- package/components/confirm-service/confirm-service.js +0 -1
- package/components/content-layout/content-layout.d.ts +0 -7
- package/components/content-layout/content-layout.js +0 -7
- package/components/content-layout/sidebar.d.ts +0 -9
- package/components/content-layout/sidebar.js +0 -1
- package/components/contenteditable/contenteditable.d.ts +1 -22
- package/components/contenteditable/contenteditable.js +1 -16
- package/components/control-label/control-label.js +0 -6
- package/components/data-list/data-list.d.ts +0 -2
- package/components/data-list/data-list.js +2 -23
- package/components/data-list/data-list.mock.js +0 -1
- package/components/data-list/item.js +0 -26
- package/components/data-list/title.d.ts +2 -2
- package/components/data-list/title.js +0 -2
- package/components/date-picker/consts.d.ts +0 -2
- package/components/date-picker/consts.js +1 -3
- package/components/date-picker/date-input.d.ts +0 -20
- package/components/date-picker/date-input.js +0 -23
- package/components/date-picker/date-picker.d.ts +0 -29
- package/components/date-picker/date-picker.js +3 -40
- package/components/date-picker/date-popup.d.ts +0 -22
- package/components/date-picker/date-popup.js +1 -24
- package/components/date-picker/day.d.ts +0 -14
- package/components/date-picker/day.js +1 -15
- package/components/date-picker/month-names.d.ts +1 -11
- package/components/date-picker/month-names.js +2 -14
- package/components/date-picker/month-slider.d.ts +0 -9
- package/components/date-picker/month-slider.js +1 -10
- package/components/date-picker/month.d.ts +1 -9
- package/components/date-picker/month.js +1 -6
- package/components/date-picker/months.d.ts +1 -9
- package/components/date-picker/months.js +1 -6
- package/components/date-picker/weekdays.d.ts +2 -8
- package/components/date-picker/weekdays.js +0 -4
- package/components/date-picker/years.d.ts +0 -6
- package/components/date-picker/years.js +1 -7
- package/components/dialog/dialog.d.ts +0 -20
- package/components/dialog/dialog.js +2 -24
- package/components/dropdown/anchor.d.ts +1 -8
- package/components/dropdown/anchor.js +0 -1
- package/components/dropdown/dropdown.d.ts +4 -22
- package/components/dropdown/dropdown.js +0 -22
- package/components/dropdown-menu/dropdown-menu.js +9 -33
- package/components/editable-heading/editable-heading.js +0 -2
- package/components/error-bubble/error-bubble.d.ts +0 -6
- package/components/error-bubble/error-bubble.js +1 -7
- package/components/error-message/error-message.d.ts +0 -10
- package/components/error-message/error-message.js +1 -11
- package/components/footer/footer.js +0 -15
- package/components/form/form.js +1 -1
- package/components/global/create-stateful-context.d.ts +0 -4
- package/components/global/create-stateful-context.js +0 -4
- package/components/global/focus-sensor-hoc.js +7 -27
- package/components/global/react-dom-renderer.d.ts +0 -5
- package/components/global/react-dom-renderer.js +0 -5
- package/components/global/theme.d.ts +1 -0
- package/components/global/theme.js +1 -2
- package/components/grid/col.d.ts +0 -14
- package/components/grid/col.js +1 -16
- package/components/grid/grid.d.ts +0 -5
- package/components/grid/grid.js +1 -6
- package/components/grid/row.d.ts +0 -18
- package/components/grid/row.js +1 -19
- package/components/group/group.d.ts +0 -5
- package/components/group/group.js +1 -6
- package/components/header/header-icon.d.ts +0 -22
- package/components/header/header-icon.js +1 -6
- package/components/header/header.d.ts +0 -6
- package/components/header/header.js +0 -10
- package/components/header/logo.d.ts +0 -4
- package/components/header/logo.js +0 -4
- package/components/header/profile.d.ts +1 -39
- package/components/header/profile.js +1 -40
- package/components/header/services-link.d.ts +0 -10
- package/components/header/services-link.js +0 -1
- package/components/header/services.d.ts +0 -14
- package/components/header/services.js +1 -13
- package/components/header/smart-profile.d.ts +0 -9
- package/components/header/smart-profile.js +16 -28
- package/components/header/smart-services.d.ts +0 -4
- package/components/header/smart-services.js +17 -51
- package/components/header/tray.d.ts +0 -5
- package/components/header/tray.js +1 -6
- package/components/heading/heading.js +0 -6
- package/components/icon/icon.d.ts +0 -11
- package/components/icon/icon.js +0 -11
- package/components/icon/icon__svg.d.ts +0 -8
- package/components/icon/icon__svg.js +0 -1
- package/components/icon/index.js +0 -1
- package/components/input/input-legacy.js +1 -1
- package/components/input/input.js +0 -2
- package/components/input-size/input-size.js +1 -1
- package/components/island/adaptive-island-hoc.d.ts +0 -1
- package/components/island/adaptive-island-hoc.js +3 -4
- package/components/island/content.d.ts +0 -10
- package/components/island/content.js +2 -12
- package/components/island/header.js +2 -10
- package/components/island/island.d.ts +0 -9
- package/components/island/island.js +1 -9
- package/components/island-legacy/content-legacy.d.ts +0 -5
- package/components/island-legacy/content-legacy.js +1 -6
- package/components/island-legacy/header-legacy.d.ts +0 -5
- package/components/island-legacy/header-legacy.js +1 -6
- package/components/island-legacy/island-legacy.d.ts +0 -5
- package/components/island-legacy/island-legacy.js +1 -6
- package/components/link/clickableLink.d.ts +0 -9
- package/components/link/clickableLink.js +0 -9
- package/components/link/link.d.ts +0 -25
- package/components/link/link.js +3 -16
- package/components/list/list.d.ts +0 -32
- package/components/list/list.js +1 -31
- package/components/list/list__custom.js +0 -17
- package/components/list/list__hint.d.ts +0 -4
- package/components/list/list__hint.js +0 -5
- package/components/list/list__item.js +0 -33
- package/components/list/list__link.js +2 -13
- package/components/list/list__separator.js +0 -6
- package/components/list/list__title.js +0 -7
- package/components/list/list__users-groups-source.js +0 -2
- package/components/loader/loader.d.ts +0 -10
- package/components/loader/loader.js +0 -10
- package/components/loader-inline/loader-inline.d.ts +0 -6
- package/components/loader-inline/loader-inline.js +1 -7
- package/components/loader-screen/loader-screen.d.ts +0 -6
- package/components/loader-screen/loader-screen.js +1 -7
- package/components/login-dialog/login-dialog.d.ts +0 -11
- package/components/login-dialog/login-dialog.js +12 -23
- package/components/login-dialog/service.js +3 -2
- package/components/markdown/markdown.js +0 -5
- package/components/message/message.js +0 -16
- package/components/pager/pager.js +1 -21
- package/components/panel/panel.d.ts +0 -5
- package/components/panel/panel.js +1 -6
- package/components/popup/popup.js +0 -41
- package/components/popup/popup.target.js +0 -5
- package/components/popup-menu/popup-menu.js +1 -12
- package/components/progress-bar/progress-bar.d.ts +19 -33
- package/components/progress-bar/progress-bar.js +0 -33
- package/components/query-assist/query-assist.d.ts +63 -93
- package/components/query-assist/query-assist.js +2 -96
- package/components/query-assist/query-assist__suggestions.js +0 -2
- package/components/radio/radio.d.ts +0 -8
- package/components/radio/radio.js +0 -8
- package/components/radio/radio__item.d.ts +0 -9
- package/components/radio/radio__item.js +0 -10
- package/components/select/select.js +3 -68
- package/components/select/select__filter.js +0 -2
- package/components/select/select__popup.js +1 -52
- package/components/shortcuts/core.js +1 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +0 -5
- package/components/shortcuts/shortcuts-hoc.js +2 -7
- package/components/shortcuts/shortcuts.d.ts +0 -8
- package/components/shortcuts/shortcuts.js +0 -8
- package/components/slider/slider.js +0 -1
- package/components/storage/storage.d.ts +2 -3
- package/components/storage/storage.js +2 -22
- package/components/storage/storage__local.js +0 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +0 -8
- package/components/table/cell.d.ts +0 -6
- package/components/table/cell.js +1 -7
- package/components/table/disable-hover-hoc.d.ts +0 -1
- package/components/table/disable-hover-hoc.js +1 -1
- package/components/table/header-cell.d.ts +0 -10
- package/components/table/header-cell.js +0 -10
- package/components/table/header.d.ts +0 -15
- package/components/table/header.js +0 -16
- package/components/table/multitable.d.ts +0 -4
- package/components/table/multitable.js +0 -4
- package/components/table/row-with-focus-sensor.d.ts +2 -2
- package/components/table/row-with-focus-sensor.js +0 -3
- package/components/table/row.js +0 -35
- package/components/table/selection-shortcuts-hoc.js +3 -22
- package/components/table/simple-table.d.ts +0 -44
- package/components/table/simple-table.js +1 -7
- package/components/table/smart-table.d.ts +0 -48
- package/components/table/smart-table.js +1 -10
- package/components/table/table.d.ts +0 -2
- package/components/table/table.js +3 -52
- package/components/tabs/collapsible-more.d.ts +1 -9
- package/components/tabs/collapsible-more.js +0 -24
- package/components/tabs/collapsible-tab.js +1 -9
- package/components/tabs/collapsible-tabs.d.ts +2 -29
- package/components/tabs/collapsible-tabs.js +0 -13
- package/components/tabs/custom-item.d.ts +1 -7
- package/components/tabs/custom-item.js +0 -5
- package/components/tabs/dumb-tabs.d.ts +0 -11
- package/components/tabs/dumb-tabs.js +0 -12
- package/components/tabs/smart-tabs.d.ts +0 -6
- package/components/tabs/smart-tabs.js +0 -7
- package/components/tabs/tab-link.d.ts +0 -8
- package/components/tabs/tab-link.js +0 -1
- package/components/tabs/tab.d.ts +0 -8
- package/components/tabs/tab.js +0 -9
- package/components/tabs/tabs.js +0 -2
- package/components/tag/tag.d.ts +0 -17
- package/components/tag/tag.js +0 -17
- package/components/tags-input/tags-input.d.ts +7 -33
- package/components/tags-input/tags-input.js +2 -35
- package/components/tags-list/tags-list.d.ts +0 -13
- package/components/tags-list/tags-list.js +0 -13
- package/components/text/text.d.ts +0 -7
- package/components/text/text.js +0 -7
- package/components/toggle/toggle.d.ts +0 -15
- package/components/toggle/toggle.js +0 -15
- package/components/tooltip/tooltip.d.ts +0 -9
- package/components/tooltip/tooltip.js +0 -9
- package/components/user-agreement/service.d.ts +2 -1
- package/components/user-agreement/service.js +2 -6
- package/components/user-agreement/user-agreement.d.ts +0 -18
- package/components/user-agreement/user-agreement.js +11 -29
- package/components/user-card/card.d.ts +0 -35
- package/components/user-card/card.js +0 -1
- package/components/user-card/smart-user-card-tooltip.d.ts +0 -5
- package/components/user-card/smart-user-card-tooltip.js +0 -5
- package/components/user-card/tooltip.d.ts +0 -9
- package/components/user-card/tooltip.js +0 -9
- package/components/user-card/user-card.js +0 -1
- package/package.json +1 -3
- package/components/global/prop-types.d.ts +0 -4
- package/components/global/prop-types.js +0 -7
- package/components/storage/storage__fallback.d.ts +0 -79
- package/components/storage/storage__fallback.js +0 -180
@@ -1,31 +1,9 @@
|
|
1
1
|
import { Component } from 'react';
|
2
2
|
import * as React from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import { DatePickerChange, DatePopupBaseProps, DateSpecificPopupProps, DatePopupState, RangeSpecificPopupProps, TimeSpecificPopupProps, Field } from './consts';
|
5
4
|
export type DatePopupProps = DatePopupBaseProps & (DateSpecificPopupProps | TimeSpecificPopupProps | RangeSpecificPopupProps);
|
6
5
|
export default class DatePopup extends Component<DatePopupProps, DatePopupState> {
|
7
6
|
static sameDay(next: Date | number | null, prev: Date | number | null): boolean;
|
8
|
-
static propTypes: {
|
9
|
-
className: PropTypes.Requireable<string>;
|
10
|
-
date: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
11
|
-
range: PropTypes.Requireable<boolean>;
|
12
|
-
withTime: PropTypes.Requireable<boolean>;
|
13
|
-
time: PropTypes.Requireable<string>;
|
14
|
-
from: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
15
|
-
to: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
16
|
-
renderAfterCalendar: PropTypes.Requireable<(...args: any[]) => any>;
|
17
|
-
displayFormat: PropTypes.Requireable<(...args: any[]) => any>;
|
18
|
-
parseDateInput: PropTypes.Requireable<(...args: any[]) => any>;
|
19
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
20
|
-
onComplete: PropTypes.Requireable<(...args: any[]) => any>;
|
21
|
-
onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
22
|
-
minDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
23
|
-
maxDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
24
|
-
fromPlaceholder: PropTypes.Requireable<string>;
|
25
|
-
toPlaceholder: PropTypes.Requireable<string>;
|
26
|
-
timePlaceholder: PropTypes.Requireable<string>;
|
27
|
-
locale: PropTypes.Requireable<object>;
|
28
|
-
};
|
29
7
|
static defaultProps: {
|
30
8
|
onChange(): void;
|
31
9
|
};
|
@@ -2,7 +2,6 @@ import { _ as _defineProperty, b as _objectSpread2, a as _objectWithoutPropertie
|
|
2
2
|
import 'core-js/modules/es.array.reduce.js';
|
3
3
|
import * as React from 'react';
|
4
4
|
import { Component, createElement } from 'react';
|
5
|
-
import PropTypes from 'prop-types';
|
6
5
|
import { isAfter } from 'date-fns/isAfter';
|
7
6
|
import { isBefore } from 'date-fns/isBefore';
|
8
7
|
import { isSameDay } from 'date-fns/isSameDay';
|
@@ -13,7 +12,7 @@ import DateInput from './date-input.js';
|
|
13
12
|
import Months from './months.js';
|
14
13
|
import Years from './years.js';
|
15
14
|
import Weekdays from './weekdays.js';
|
16
|
-
import {
|
15
|
+
import { parseTime } from './consts.js';
|
17
16
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
18
17
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
19
18
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
@@ -22,7 +21,6 @@ import 'core-js/modules/es.string.replace.js';
|
|
22
21
|
import 'classnames';
|
23
22
|
import '../_helpers/input.js';
|
24
23
|
import '@jetbrains/icons/close-12px';
|
25
|
-
import '../global/prop-types.js';
|
26
24
|
import '../button/button.js';
|
27
25
|
import '@jetbrains/icons/chevron-down';
|
28
26
|
import '../icon/icon.js';
|
@@ -420,27 +418,6 @@ class DatePopup extends Component {
|
|
420
418
|
});
|
421
419
|
}
|
422
420
|
}
|
423
|
-
_defineProperty(DatePopup, "propTypes", {
|
424
|
-
className: PropTypes.string,
|
425
|
-
date: dateType,
|
426
|
-
range: PropTypes.bool,
|
427
|
-
withTime: PropTypes.bool,
|
428
|
-
time: PropTypes.string,
|
429
|
-
from: dateType,
|
430
|
-
to: dateType,
|
431
|
-
renderAfterCalendar: PropTypes.func,
|
432
|
-
displayFormat: PropTypes.func,
|
433
|
-
parseDateInput: PropTypes.func,
|
434
|
-
onChange: PropTypes.func,
|
435
|
-
onComplete: PropTypes.func,
|
436
|
-
onClear: PropTypes.func,
|
437
|
-
minDate: dateType,
|
438
|
-
maxDate: dateType,
|
439
|
-
fromPlaceholder: PropTypes.string,
|
440
|
-
toPlaceholder: PropTypes.string,
|
441
|
-
timePlaceholder: PropTypes.string,
|
442
|
-
locale: PropTypes.object
|
443
|
-
});
|
444
421
|
_defineProperty(DatePopup, "defaultProps", {
|
445
422
|
onChange() {}
|
446
423
|
});
|
@@ -1,24 +1,10 @@
|
|
1
1
|
import { Component } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { MonthsProps } from './consts';
|
4
3
|
export interface DayProps extends MonthsProps {
|
5
4
|
day: Date;
|
6
5
|
empty: boolean;
|
7
6
|
}
|
8
7
|
export default class Day extends Component<DayProps> {
|
9
|
-
static propTypes: {
|
10
|
-
day: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
11
|
-
from: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
12
|
-
currentRange: PropTypes.Requireable<(NonNullable<string | number | Date | null | undefined> | null | undefined)[]>;
|
13
|
-
activeRange: PropTypes.Requireable<(NonNullable<string | number | Date | null | undefined> | null | undefined)[]>;
|
14
|
-
empty: PropTypes.Requireable<boolean>;
|
15
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
16
|
-
parseDateInput: PropTypes.Requireable<(...args: any[]) => any>;
|
17
|
-
onHover: PropTypes.Requireable<(...args: any[]) => any>;
|
18
|
-
locale: PropTypes.Requireable<object>;
|
19
|
-
minDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
20
|
-
maxDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
21
|
-
};
|
22
8
|
handleClick: () => void;
|
23
9
|
handleMouseOver: () => void;
|
24
10
|
handleMouseOut: () => void;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { Component } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import { addDays } from 'date-fns/addDays';
|
7
6
|
import { format } from 'date-fns/format';
|
@@ -12,7 +11,7 @@ import { isBefore } from 'date-fns/isBefore';
|
|
12
11
|
import { isSameDay } from 'date-fns/isSameDay';
|
13
12
|
import { isToday } from 'date-fns/isToday';
|
14
13
|
import { startOfDay } from 'date-fns/startOfDay';
|
15
|
-
import {
|
14
|
+
import { getDayNumInWeek, weekdays } from './consts.js';
|
16
15
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
17
16
|
import { jsx } from 'react/jsx-runtime';
|
18
17
|
import 'core-js/modules/es.regexp.exec.js';
|
@@ -100,18 +99,5 @@ class Day extends Component {
|
|
100
99
|
);
|
101
100
|
}
|
102
101
|
}
|
103
|
-
_defineProperty(Day, "propTypes", {
|
104
|
-
day: dateType,
|
105
|
-
from: dateType,
|
106
|
-
currentRange: PropTypes.arrayOf(dateType),
|
107
|
-
activeRange: PropTypes.arrayOf(dateType),
|
108
|
-
empty: PropTypes.bool,
|
109
|
-
onSelect: PropTypes.func,
|
110
|
-
parseDateInput: PropTypes.func,
|
111
|
-
onHover: PropTypes.func,
|
112
|
-
locale: PropTypes.object,
|
113
|
-
minDate: dateType,
|
114
|
-
maxDate: dateType
|
115
|
-
});
|
116
102
|
|
117
103
|
export { Day as default };
|
@@ -1,12 +1,2 @@
|
|
1
|
-
import PropTypes from 'prop-types';
|
2
1
|
import { MonthsProps } from './consts';
|
3
|
-
|
4
|
-
declare namespace MonthNames {
|
5
|
-
var propTypes: {
|
6
|
-
scrollDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
7
|
-
onScrollChange: PropTypes.Requireable<(...args: any[]) => any>;
|
8
|
-
currentRange: PropTypes.Requireable<(NonNullable<string | number | Date | null | undefined> | null | undefined)[]>;
|
9
|
-
locale: PropTypes.Requireable<object>;
|
10
|
-
};
|
11
|
-
}
|
12
|
-
export default MonthNames;
|
2
|
+
export default function MonthNames(props: MonthsProps): import("react").JSX.Element;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { b as _objectSpread2, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { PureComponent } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import { endOfMonth } from 'date-fns/endOfMonth';
|
7
6
|
import { format } from 'date-fns/format';
|
@@ -11,7 +10,7 @@ import { startOfDay } from 'date-fns/startOfDay';
|
|
11
10
|
import { startOfYear } from 'date-fns/startOfYear';
|
12
11
|
import linearFunction from '../global/linear-function.js';
|
13
12
|
import MonthSlider from './month-slider.js';
|
14
|
-
import {
|
13
|
+
import { YEAR, MIDDLE_DAY, yearScrollSpeed } from './consts.js';
|
15
14
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
16
15
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
17
16
|
import 'date-fns/addYears';
|
@@ -44,11 +43,6 @@ class MonthName extends PureComponent {
|
|
44
43
|
});
|
45
44
|
}
|
46
45
|
}
|
47
|
-
_defineProperty(MonthName, "propTypes", {
|
48
|
-
month: dateType,
|
49
|
-
onScrollChange: PropTypes.func,
|
50
|
-
locale: PropTypes.object
|
51
|
-
});
|
52
46
|
function MonthNames(props) {
|
53
47
|
const {
|
54
48
|
scrollDate,
|
@@ -85,11 +79,5 @@ function MonthNames(props) {
|
|
85
79
|
}))]
|
86
80
|
});
|
87
81
|
}
|
88
|
-
MonthNames.propTypes = {
|
89
|
-
scrollDate: dateType,
|
90
|
-
onScrollChange: PropTypes.func,
|
91
|
-
currentRange: PropTypes.arrayOf(dateType),
|
92
|
-
locale: PropTypes.object
|
93
|
-
};
|
94
82
|
|
95
83
|
export { MonthNames as default };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PureComponent } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { LinearFunction } from '../global/linear-function';
|
4
3
|
import { MonthsProps } from './consts';
|
5
4
|
export interface MonthSliderProps extends MonthsProps {
|
@@ -9,14 +8,6 @@ interface MonthSliderState {
|
|
9
8
|
dragging: boolean;
|
10
9
|
}
|
11
10
|
export default class MonthSlider extends PureComponent<MonthSliderProps> {
|
12
|
-
static propTypes: {
|
13
|
-
scrollDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
14
|
-
onScroll: PropTypes.Requireable<(...args: any[]) => any>;
|
15
|
-
pxToDate: PropTypes.Requireable<PropTypes.InferProps<{
|
16
|
-
x: PropTypes.Requireable<(...args: any[]) => any>;
|
17
|
-
y: PropTypes.Requireable<(...args: any[]) => any>;
|
18
|
-
}>>;
|
19
|
-
};
|
20
11
|
state: {
|
21
12
|
dragging: boolean;
|
22
13
|
};
|
@@ -1,13 +1,12 @@
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { PureComponent } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import { addYears } from 'date-fns/addYears';
|
7
6
|
import { startOfDay } from 'date-fns/startOfDay';
|
8
7
|
import { subYears } from 'date-fns/subYears';
|
9
8
|
import linearFunction from '../global/linear-function.js';
|
10
|
-
import units, {
|
9
|
+
import units, { yearScrollSpeed } from './consts.js';
|
11
10
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
12
11
|
import { jsx } from 'react/jsx-runtime';
|
13
12
|
import 'core-js/modules/es.regexp.exec.js';
|
@@ -65,13 +64,5 @@ class MonthSlider extends PureComponent {
|
|
65
64
|
});
|
66
65
|
}
|
67
66
|
}
|
68
|
-
_defineProperty(MonthSlider, "propTypes", {
|
69
|
-
scrollDate: dateType,
|
70
|
-
onScroll: PropTypes.func,
|
71
|
-
pxToDate: PropTypes.shape({
|
72
|
-
x: PropTypes.func,
|
73
|
-
y: PropTypes.func
|
74
|
-
})
|
75
|
-
});
|
76
67
|
|
77
68
|
export { MonthSlider as default };
|
@@ -1,13 +1,5 @@
|
|
1
|
-
import PropTypes from 'prop-types';
|
2
1
|
import { MonthsProps } from './consts';
|
3
2
|
export interface MonthProps extends MonthsProps {
|
4
3
|
month: Date;
|
5
4
|
}
|
6
|
-
|
7
|
-
declare namespace Month {
|
8
|
-
var propTypes: {
|
9
|
-
month: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
10
|
-
locale: PropTypes.Requireable<object>;
|
11
|
-
};
|
12
|
-
}
|
13
|
-
export default Month;
|
5
|
+
export default function Month(props: MonthProps): import("react").JSX.Element;
|
@@ -4,9 +4,8 @@ import { endOfMonth } from 'date-fns/endOfMonth';
|
|
4
4
|
import { format } from 'date-fns/format';
|
5
5
|
import { getDay } from 'date-fns/getDay';
|
6
6
|
import { setDay } from 'date-fns/setDay';
|
7
|
-
import PropTypes from 'prop-types';
|
8
7
|
import Day from './day.js';
|
9
|
-
import {
|
8
|
+
import { shiftWeekArray, getWeekStartsOn, weekdays, FIFTH_DAY, WEEK } from './consts.js';
|
10
9
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
11
10
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
12
11
|
import { createElement } from 'react';
|
@@ -51,9 +50,5 @@ function Month(props) {
|
|
51
50
|
})))]
|
52
51
|
});
|
53
52
|
}
|
54
|
-
Month.propTypes = {
|
55
|
-
month: dateType,
|
56
|
-
locale: PropTypes.object
|
57
|
-
};
|
58
53
|
|
59
54
|
export { Month as default };
|
@@ -1,10 +1,2 @@
|
|
1
|
-
import PropTypes from 'prop-types';
|
2
1
|
import { MonthsProps } from './consts';
|
3
|
-
|
4
|
-
declare namespace Months {
|
5
|
-
var propTypes: {
|
6
|
-
onScroll: PropTypes.Requireable<(...args: any[]) => any>;
|
7
|
-
scrollDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
8
|
-
};
|
9
|
-
}
|
10
|
-
export default Months;
|
2
|
+
export default function Months(props: MonthsProps): import("react").JSX.Element;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { useMemo, useRef, useEffect, createElement } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import { addMonths } from 'date-fns/addMonths';
|
5
4
|
import { getDay } from 'date-fns/getDay';
|
6
5
|
import { getDaysInMonth } from 'date-fns/getDaysInMonth';
|
@@ -13,7 +12,7 @@ import useEventCallback from '../global/use-event-callback.js';
|
|
13
12
|
import Month from './month.js';
|
14
13
|
import MonthNames from './month-names.js';
|
15
14
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
16
|
-
import units, {
|
15
|
+
import units, { DOUBLE, HALF, WEEK, weekdays } from './consts.js';
|
17
16
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
18
17
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
19
18
|
import 'date-fns/addDays';
|
@@ -126,9 +125,5 @@ function Months(props) {
|
|
126
125
|
}), /*#__PURE__*/jsx(MonthNames, _objectSpread2({}, props))]
|
127
126
|
});
|
128
127
|
}
|
129
|
-
Months.propTypes = {
|
130
|
-
onScroll: PropTypes.func,
|
131
|
-
scrollDate: dateType
|
132
|
-
};
|
133
128
|
|
134
129
|
export { Months as default };
|
@@ -1,12 +1,6 @@
|
|
1
1
|
import type { Locale } from 'date-fns';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
interface WeekdaysProps {
|
4
3
|
locale: Locale | undefined;
|
5
4
|
}
|
6
|
-
|
7
|
-
|
8
|
-
var propTypes: {
|
9
|
-
locale: PropTypes.Requireable<object>;
|
10
|
-
};
|
11
|
-
}
|
12
|
-
export default Weekdays;
|
5
|
+
export default function Weekdays(props: WeekdaysProps): import("react").JSX.Element;
|
6
|
+
export {};
|
@@ -3,7 +3,6 @@ import { getDay } from 'date-fns/getDay';
|
|
3
3
|
import { format } from 'date-fns/format';
|
4
4
|
import { setDay } from 'date-fns/setDay';
|
5
5
|
import { startOfDay } from 'date-fns/startOfDay';
|
6
|
-
import PropTypes from 'prop-types';
|
7
6
|
import { shiftWeekArray, getWeekStartsOn, weekdays } from './consts.js';
|
8
7
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
9
8
|
import { jsx } from 'react/jsx-runtime';
|
@@ -27,8 +26,5 @@ function Weekdays(props) {
|
|
27
26
|
}, +day))
|
28
27
|
});
|
29
28
|
}
|
30
|
-
Weekdays.propTypes = {
|
31
|
-
locale: PropTypes.object
|
32
|
-
};
|
33
29
|
|
34
30
|
export { Weekdays as default };
|
@@ -1,15 +1,9 @@
|
|
1
1
|
import { PureComponent } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { CalendarProps } from './consts';
|
4
3
|
interface YearsState {
|
5
4
|
scrollDate: Date | null;
|
6
5
|
}
|
7
6
|
export default class Years extends PureComponent<CalendarProps> {
|
8
|
-
static propTypes: {
|
9
|
-
scrollDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
10
|
-
onScroll: PropTypes.Requireable<(...args: any[]) => any>;
|
11
|
-
onScrollChange: PropTypes.Requireable<(...args: any[]) => any>;
|
12
|
-
};
|
13
7
|
state: {
|
14
8
|
scrollDate: null;
|
15
9
|
};
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { PureComponent, createRef } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import { addYears } from 'date-fns/addYears';
|
7
6
|
import { getYear } from 'date-fns/getYear';
|
@@ -13,7 +12,7 @@ import { startOfYear } from 'date-fns/startOfYear';
|
|
13
12
|
import { subYears } from 'date-fns/subYears';
|
14
13
|
import linearFunction from '../global/linear-function.js';
|
15
14
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
16
|
-
import units, {
|
15
|
+
import units, { DOUBLE, HALF, yearDuration } from './consts.js';
|
17
16
|
import { jsx } from 'react/jsx-runtime';
|
18
17
|
import 'core-js/modules/es.regexp.exec.js';
|
19
18
|
import 'date-fns/add';
|
@@ -107,10 +106,5 @@ class Years extends PureComponent {
|
|
107
106
|
});
|
108
107
|
}
|
109
108
|
}
|
110
|
-
_defineProperty(Years, "propTypes", {
|
111
|
-
scrollDate: dateType,
|
112
|
-
onScroll: PropTypes.func,
|
113
|
-
onScrollChange: PropTypes.func
|
114
|
-
});
|
115
109
|
|
116
110
|
export { Years as default };
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { PureComponent } from 'react';
|
2
2
|
import * as React from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import TabTrap, { TabTrapProps } from '../tab-trap/tab-trap';
|
5
4
|
import type { ShortcutsScopeOptions } from '../shortcuts/core';
|
6
5
|
export interface DialogProps extends Partial<TabTrapProps> {
|
@@ -23,25 +22,6 @@ export interface DialogProps extends Partial<TabTrapProps> {
|
|
23
22
|
modal?: boolean;
|
24
23
|
}
|
25
24
|
export default class Dialog extends PureComponent<DialogProps> {
|
26
|
-
static propTypes: {
|
27
|
-
label: PropTypes.Requireable<string>;
|
28
|
-
className: PropTypes.Requireable<string>;
|
29
|
-
contentClassName: PropTypes.Requireable<string>;
|
30
|
-
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
31
|
-
show: PropTypes.Validator<boolean>;
|
32
|
-
showCloseButton: PropTypes.Requireable<boolean>;
|
33
|
-
closeButtonInside: PropTypes.Requireable<boolean>;
|
34
|
-
closeButtonTitle: PropTypes.Requireable<string>;
|
35
|
-
onOverlayClick: PropTypes.Requireable<(...args: any[]) => any>;
|
36
|
-
onEscPress: PropTypes.Requireable<(...args: any[]) => any>;
|
37
|
-
onCloseClick: PropTypes.Requireable<(...args: any[]) => any>;
|
38
|
-
shortcutOptions: PropTypes.Requireable<object>;
|
39
|
-
onCloseAttempt: PropTypes.Requireable<(...args: any[]) => any>;
|
40
|
-
trapFocus: PropTypes.Requireable<boolean>;
|
41
|
-
portalTarget: PropTypes.Requireable<HTMLElement>;
|
42
|
-
autoFocusFirst: PropTypes.Requireable<boolean>;
|
43
|
-
'data-test': PropTypes.Requireable<string>;
|
44
|
-
};
|
45
25
|
static defaultProps: Partial<DialogProps>;
|
46
26
|
state: {
|
47
27
|
shortcutsScope: string;
|
@@ -2,7 +2,6 @@ import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread
|
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { PureComponent, createRef } from 'react';
|
4
4
|
import { createPortal } from 'react-dom';
|
5
|
-
import PropTypes from 'prop-types';
|
6
5
|
import classNames from 'classnames';
|
7
6
|
import closeIcon from '@jetbrains/icons/close';
|
8
7
|
import { AdaptiveIsland } from '../island/island.js';
|
@@ -160,7 +159,8 @@ class Dialog extends PureComponent {
|
|
160
159
|
// click handler is duplicated in close button
|
161
160
|
role: "presentation",
|
162
161
|
className: modules_5e9b8c03.clickableOverlay,
|
163
|
-
onClick: this.handleClick
|
162
|
+
onClick: this.handleClick,
|
163
|
+
"data-test": "ring-dialog-overlay"
|
164
164
|
}), /*#__PURE__*/jsx("div", {
|
165
165
|
className: modules_5e9b8c03.innerContainer,
|
166
166
|
children: /*#__PURE__*/jsxs(AdaptiveIsland, {
|
@@ -213,28 +213,6 @@ class Dialog extends PureComponent {
|
|
213
213
|
}), portalTarget instanceof HTMLElement ? portalTarget : document.body);
|
214
214
|
}
|
215
215
|
}
|
216
|
-
_defineProperty(Dialog, "propTypes", {
|
217
|
-
label: PropTypes.string,
|
218
|
-
className: PropTypes.string,
|
219
|
-
contentClassName: PropTypes.string,
|
220
|
-
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
|
221
|
-
show: PropTypes.bool.isRequired,
|
222
|
-
showCloseButton: PropTypes.bool,
|
223
|
-
closeButtonInside: PropTypes.bool,
|
224
|
-
closeButtonTitle: PropTypes.string,
|
225
|
-
onOverlayClick: PropTypes.func,
|
226
|
-
onEscPress: PropTypes.func,
|
227
|
-
onCloseClick: PropTypes.func,
|
228
|
-
shortcutOptions: PropTypes.object,
|
229
|
-
// onCloseAttempt is a common callback for ESC pressing and overlay clicking.
|
230
|
-
// Use it if you don't need different behaviors for this cases.
|
231
|
-
onCloseAttempt: PropTypes.func,
|
232
|
-
// focusTrap may break popups inside dialog, so use it carefully
|
233
|
-
trapFocus: PropTypes.bool,
|
234
|
-
portalTarget: PropTypes.instanceOf(HTMLElement),
|
235
|
-
autoFocusFirst: PropTypes.bool,
|
236
|
-
'data-test': PropTypes.string
|
237
|
-
});
|
238
216
|
_defineProperty(Dialog, "defaultProps", {
|
239
217
|
label: 'Dialog',
|
240
218
|
onOverlayClick: noop,
|
@@ -1,10 +1,3 @@
|
|
1
|
-
import PropTypes from 'prop-types';
|
2
1
|
import { ButtonAttrs } from '../button/button';
|
3
|
-
declare const _default: import("react").MemoExoticComponent<{
|
4
|
-
({ children, className, ...restProps }: ButtonAttrs): import("react").JSX.Element;
|
5
|
-
propTypes: {
|
6
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
7
|
-
className: PropTypes.Requireable<string>;
|
8
|
-
};
|
9
|
-
}>;
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ children, className, ...restProps }: ButtonAttrs) => import("react").JSX.Element>;
|
10
3
|
export default _default;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { Component, HTMLAttributes, ReactNode, ReactElement } from 'react';
|
2
2
|
import * as React from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import { PopupAttrs } from '../popup/popup';
|
5
4
|
import Anchor from './anchor';
|
6
5
|
export interface AnchorProps {
|
@@ -15,6 +14,10 @@ export interface DropdownChildProps {
|
|
15
14
|
dontCloseOnAnchorClick: boolean;
|
16
15
|
}
|
17
16
|
export interface DropdownProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
17
|
+
/**
|
18
|
+
* Can be string, React element, or a function accepting an object with {active, pinned} properties and returning a React element
|
19
|
+
* React element should render some interactive HTML element like `button` or `a`
|
20
|
+
*/
|
18
21
|
anchor: ReactElement | readonly ReactElement[] | string | ((props: AnchorProps) => ReactNode);
|
19
22
|
children: ReactElement<PopupAttrs> | ((props: Omit<PopupAttrs, 'children'>) => ReactNode);
|
20
23
|
initShown: boolean;
|
@@ -36,27 +39,6 @@ interface DropdownState {
|
|
36
39
|
* @name Dropdown
|
37
40
|
*/
|
38
41
|
export default class Dropdown extends Component<DropdownProps, DropdownState> {
|
39
|
-
static propTypes: {
|
40
|
-
/**
|
41
|
-
* Can be string, React element, or a function accepting an object with {active, pinned} properties and returning a React element
|
42
|
-
* React element should render some interactive HTML element like `button` or `a`
|
43
|
-
*/
|
44
|
-
anchor: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>>;
|
45
|
-
children: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactElementLike | ((...args: any[]) => any) | null | undefined>>>;
|
46
|
-
initShown: PropTypes.Requireable<boolean>;
|
47
|
-
className: PropTypes.Requireable<string>;
|
48
|
-
activeClassName: PropTypes.Requireable<string>;
|
49
|
-
clickMode: PropTypes.Requireable<boolean>;
|
50
|
-
hoverMode: PropTypes.Requireable<boolean>;
|
51
|
-
hoverShowTimeOut: PropTypes.Requireable<number>;
|
52
|
-
hoverHideTimeOut: PropTypes.Requireable<number>;
|
53
|
-
disabled: PropTypes.Requireable<boolean>;
|
54
|
-
onShow: PropTypes.Requireable<(...args: any[]) => any>;
|
55
|
-
onHide: PropTypes.Requireable<(...args: any[]) => any>;
|
56
|
-
onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
57
|
-
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
58
|
-
'data-test': PropTypes.Requireable<string>;
|
59
|
-
};
|
60
42
|
static defaultProps: {
|
61
43
|
initShown: boolean;
|
62
44
|
clickMode: boolean;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
3
3
|
import { Component, cloneElement } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import classNames from 'classnames';
|
6
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
7
6
|
import { isArray } from '../global/typescript-utils.js';
|
@@ -189,27 +188,6 @@ class Dropdown extends Component {
|
|
189
188
|
}));
|
190
189
|
}
|
191
190
|
}
|
192
|
-
_defineProperty(Dropdown, "propTypes", {
|
193
|
-
/**
|
194
|
-
* Can be string, React element, or a function accepting an object with {active, pinned} properties and returning a React element
|
195
|
-
* React element should render some interactive HTML element like `button` or `a`
|
196
|
-
*/
|
197
|
-
anchor: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
|
198
|
-
children: PropTypes.oneOfType([PropTypes.element, PropTypes.func]).isRequired,
|
199
|
-
initShown: PropTypes.bool,
|
200
|
-
className: PropTypes.string,
|
201
|
-
activeClassName: PropTypes.string,
|
202
|
-
clickMode: PropTypes.bool,
|
203
|
-
hoverMode: PropTypes.bool,
|
204
|
-
hoverShowTimeOut: PropTypes.number,
|
205
|
-
hoverHideTimeOut: PropTypes.number,
|
206
|
-
disabled: PropTypes.bool,
|
207
|
-
onShow: PropTypes.func,
|
208
|
-
onHide: PropTypes.func,
|
209
|
-
onMouseEnter: PropTypes.func,
|
210
|
-
onMouseLeave: PropTypes.func,
|
211
|
-
'data-test': PropTypes.string
|
212
|
-
});
|
213
191
|
_defineProperty(Dropdown, "defaultProps", {
|
214
192
|
initShown: false,
|
215
193
|
clickMode: true,
|