@jetbrains/ring-ui 6.0.35 → 6.0.37
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/babel.config.js +4 -1
- package/components/alert/alert.css +0 -7
- package/components/alert/alert.d.ts +2 -1
- package/components/alert/alert.js +2 -1
- package/components/alert/container.css +4 -0
- package/components/alert/container.d.ts +2 -2
- package/components/alert/container.js +1 -1
- package/components/alert-service/alert-service.d.ts +2 -2
- package/components/alert-service/alert-service.js +0 -1
- package/components/auth/down-notification.d.ts +1 -1
- package/components/auth/down-notification.js +1 -1
- package/components/auth/iframe-flow.js +0 -1
- package/components/auth/request-builder.d.ts +0 -1
- package/components/auth/token-validator.d.ts +1 -1
- package/components/auth-dialog/auth-dialog.d.ts +2 -2
- package/components/auth-dialog/auth-dialog.js +1 -1
- package/components/auth-dialog-service/auth-dialog-service.d.ts +0 -1
- package/components/auth-dialog-service/auth-dialog-service.js +0 -1
- package/components/avatar/avatar.d.ts +2 -2
- package/components/avatar/avatar.js +1 -1
- package/components/avatar/fallback-avatar.d.ts +1 -2
- package/components/avatar/fallback-avatar.js +1 -1
- package/components/badge/badge.d.ts +2 -2
- package/components/badge/badge.js +1 -1
- package/components/breadcrumbs/breadcrumbs.css +7 -0
- package/components/breadcrumbs/breadcrumbs.d.ts +6 -0
- package/components/breadcrumbs/breadcrumbs.js +11 -0
- package/components/button/button.d.ts +2 -1
- package/components/button/button.js +2 -1
- package/components/button-group/button-group.css +12 -11
- package/components/button-group/button-group.d.ts +4 -2
- package/components/button-group/button-group.js +9 -3
- package/components/button-group/caption.d.ts +2 -2
- package/components/button-group/caption.js +1 -1
- package/components/button-set/button-set.d.ts +2 -2
- package/components/button-set/button-set.js +1 -1
- package/components/button-toolbar/button-toolbar.d.ts +2 -2
- package/components/button-toolbar/button-toolbar.js +1 -1
- package/components/checkbox/checkbox.css +16 -20
- package/components/checkbox/checkbox.d.ts +3 -2
- package/components/checkbox/checkbox.js +12 -6
- package/components/code/code.d.ts +3 -4
- package/components/code/code.js +1 -1
- package/components/collapse/collapse-content.d.ts +2 -1
- package/components/collapse/collapse-content.js +2 -1
- package/components/collapse/collapse-context.d.ts +0 -1
- package/components/collapse/collapse-control.d.ts +1 -1
- package/components/collapse/collapse-control.js +2 -1
- package/components/collapse/collapse.d.ts +2 -1
- package/components/collapse/collapse.js +2 -1
- package/components/confirm/confirm.d.ts +2 -1
- package/components/confirm/confirm.js +2 -1
- package/components/confirm-service/confirm-service.js +0 -1
- package/components/content-layout/content-layout.d.ts +2 -2
- package/components/content-layout/content-layout.js +2 -2
- package/components/content-layout/sidebar.d.ts +2 -2
- package/components/content-layout/sidebar.js +1 -1
- package/components/contenteditable/contenteditable.d.ts +3 -3
- package/components/contenteditable/contenteditable.js +1 -1
- package/components/control-help/control-help.css +8 -0
- package/components/control-help/control-help.d.ts +4 -0
- package/components/control-help/control-help.js +5 -0
- package/components/control-label/control-label.d.ts +2 -1
- package/components/control-label/control-label.js +1 -1
- package/components/data-list/data-list.d.ts +15 -15
- package/components/data-list/data-list.js +1 -1
- package/components/data-list/data-list.mock.d.ts +2 -2
- package/components/data-list/data-list.mock.js +0 -2
- package/components/data-list/item.d.ts +3 -3
- package/components/data-list/item.js +1 -1
- package/components/data-list/title.d.ts +3 -3
- package/components/data-list/title.js +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +1 -1
- package/components/date-picker/date-picker.d.ts +2 -1
- package/components/date-picker/date-picker.js +2 -1
- package/components/date-picker/date-popup.d.ts +2 -1
- package/components/date-picker/date-popup.js +2 -1
- package/components/date-picker/day.d.ts +3 -3
- package/components/date-picker/day.js +1 -1
- package/components/date-picker/month-names.d.ts +1 -2
- package/components/date-picker/month-names.js +1 -1
- package/components/date-picker/month-slider.d.ts +2 -2
- package/components/date-picker/month-slider.js +1 -1
- package/components/date-picker/month.d.ts +1 -2
- package/components/date-picker/month.js +0 -1
- package/components/date-picker/months.d.ts +1 -2
- package/components/date-picker/months.js +1 -1
- package/components/date-picker/weekdays.d.ts +1 -2
- package/components/date-picker/weekdays.js +0 -1
- package/components/date-picker/years.d.ts +3 -3
- package/components/date-picker/years.js +1 -1
- package/components/dialog/dialog.d.ts +2 -1
- package/components/dialog/dialog.js +2 -1
- package/components/dropdown/anchor.d.ts +2 -3
- package/components/dropdown/anchor.js +1 -1
- package/components/dropdown/dropdown.d.ts +2 -1
- package/components/dropdown/dropdown.js +2 -1
- package/components/dropdown-menu/dropdown-menu.d.ts +3 -3
- package/components/dropdown-menu/dropdown-menu.js +2 -2
- package/components/editable-heading/editable-heading.d.ts +2 -1
- package/components/editable-heading/editable-heading.js +2 -1
- package/components/error-bubble/error-bubble.d.ts +2 -2
- package/components/error-bubble/error-bubble.js +1 -1
- package/components/error-message/error-message.d.ts +2 -2
- package/components/error-message/error-message.js +1 -1
- package/components/footer/footer.css +1 -1
- package/components/footer/footer.d.ts +2 -2
- package/components/footer/footer.js +1 -1
- package/components/form/form.css +1 -1
- package/components/form/form.stories.js +0 -1
- package/components/global/controls-height.d.ts +0 -1
- package/components/global/create-stateful-context.d.ts +5 -5
- package/components/global/create-stateful-context.js +1 -1
- package/components/global/dom.d.ts +2 -2
- package/components/global/focus-sensor-hoc.js +1 -1
- package/components/global/get-event-key.d.ts +1 -1
- package/components/global/react-dom-renderer.d.ts +2 -2
- package/components/global/react-dom-renderer.js +1 -1
- package/components/global/rerender-hoc.d.ts +2 -2
- package/components/global/rerender-hoc.js +1 -1
- package/components/global/theme.d.ts +3 -3
- package/components/global/theme.js +1 -1
- package/components/global/typescript-utils.d.ts +1 -1
- package/components/grid/col.d.ts +2 -2
- package/components/grid/col.js +1 -1
- package/components/grid/grid.d.ts +2 -2
- package/components/grid/grid.js +1 -1
- package/components/grid/row.d.ts +2 -2
- package/components/grid/row.js +1 -1
- package/components/group/group.d.ts +2 -2
- package/components/group/group.js +1 -1
- package/components/header/header.d.ts +2 -2
- package/components/header/header.js +1 -1
- package/components/header/logo.d.ts +2 -2
- package/components/header/logo.js +1 -1
- package/components/header/profile.d.ts +4 -3
- package/components/header/profile.js +2 -1
- package/components/header/services-link.d.ts +2 -2
- package/components/header/services-link.js +1 -1
- package/components/header/services.d.ts +2 -2
- package/components/header/services.js +1 -1
- package/components/header/smart-profile.d.ts +2 -2
- package/components/header/smart-profile.js +1 -1
- package/components/header/smart-services.d.ts +2 -2
- package/components/header/smart-services.js +1 -1
- package/components/header/tray-icon.d.ts +2 -2
- package/components/header/tray-icon.js +1 -1
- package/components/header/tray.d.ts +2 -2
- package/components/header/tray.js +1 -1
- package/components/heading/heading.d.ts +6 -6
- package/components/heading/heading.js +1 -1
- package/components/i18n/i18n-context.d.ts +1 -1
- package/components/i18n/i18n-context.js +2 -1
- package/components/icon/icon.d.ts +2 -2
- package/components/icon/icon.js +1 -1
- package/components/icon/icon__svg.d.ts +3 -3
- package/components/icon/icon__svg.js +1 -1
- package/components/input/input.css +5 -1
- package/components/input/input.d.ts +3 -2
- package/components/input/input.js +8 -6
- package/components/input-size/input-size.stories.js +0 -1
- package/components/island/adaptive-island-hoc.d.ts +15 -15
- package/components/island/adaptive-island-hoc.js +1 -1
- package/components/island/content.d.ts +3 -3
- package/components/island/content.js +1 -1
- package/components/island/header.d.ts +2 -2
- package/components/island/header.js +1 -1
- package/components/island/island.css +1 -1
- package/components/island/island.d.ts +14 -14
- package/components/island/island.js +1 -1
- package/components/island-legacy/content-legacy.d.ts +2 -2
- package/components/island-legacy/content-legacy.js +1 -1
- package/components/island-legacy/header-legacy.d.ts +2 -2
- package/components/island-legacy/header-legacy.js +1 -1
- package/components/island-legacy/island-legacy.d.ts +2 -2
- package/components/island-legacy/island-legacy.js +1 -1
- package/components/link/clickableLink.d.ts +2 -1
- package/components/link/clickableLink.js +2 -1
- package/components/link/link.d.ts +23 -23
- package/components/link/link.js +1 -1
- package/components/list/consts.d.ts +2 -1
- package/components/list/list.d.ts +11 -11
- package/components/list/list.js +1 -1
- package/components/list/list__custom.d.ts +2 -1
- package/components/list/list__custom.js +2 -1
- package/components/list/list__hint.d.ts +2 -2
- package/components/list/list__hint.js +1 -1
- package/components/list/list__item.d.ts +2 -2
- package/components/list/list__item.js +2 -2
- package/components/list/list__link.d.ts +2 -2
- package/components/list/list__link.js +1 -1
- package/components/list/list__separator.d.ts +2 -2
- package/components/list/list__separator.js +1 -1
- package/components/list/list__title.d.ts +2 -2
- package/components/list/list__title.js +1 -1
- package/components/loader/loader.d.ts +2 -2
- package/components/loader/loader.js +1 -1
- package/components/loader-inline/loader-inline.d.ts +2 -2
- package/components/loader-inline/loader-inline.js +1 -1
- package/components/loader-screen/loader-screen.d.ts +2 -2
- package/components/loader-screen/loader-screen.js +1 -1
- package/components/login-dialog/login-dialog.d.ts +2 -2
- package/components/login-dialog/login-dialog.js +1 -1
- package/components/login-dialog/service.js +0 -1
- package/components/markdown/markdown.d.ts +2 -2
- package/components/markdown/markdown.js +1 -1
- package/components/message/message.d.ts +2 -2
- package/components/message/message.js +1 -1
- package/components/pager/pager.d.ts +2 -1
- package/components/pager/pager.js +2 -1
- package/components/panel/panel.d.ts +2 -2
- package/components/panel/panel.js +1 -1
- package/components/popup/popup.d.ts +4 -3
- package/components/popup/popup.js +2 -1
- package/components/popup/popup.target.d.ts +3 -3
- package/components/popup/popup.target.js +1 -1
- package/components/popup-menu/popup-menu.d.ts +2 -2
- package/components/popup-menu/popup-menu.js +0 -1
- package/components/progress-bar/progress-bar.d.ts +2 -2
- package/components/progress-bar/progress-bar.js +1 -1
- package/components/query-assist/query-assist.d.ts +3 -2
- package/components/query-assist/query-assist.js +4 -3
- package/components/query-assist/query-assist__suggestions.d.ts +1 -2
- package/components/query-assist/query-assist__suggestions.js +0 -1
- package/components/radio/radio.d.ts +3 -3
- package/components/radio/radio.js +1 -1
- package/components/radio/radio__item.d.ts +9 -6
- package/components/radio/radio__item.js +10 -6
- package/components/select/select-popup.css +1 -0
- package/components/select/select.css +1 -1
- package/components/select/select.d.ts +5 -2
- package/components/select/select.js +5 -3
- package/components/select/select__filter.d.ts +2 -2
- package/components/select/select__filter.js +1 -1
- package/components/select/select__popup.d.ts +4 -35
- package/components/select/select__popup.js +4 -3
- package/components/shortcuts/core.d.ts +0 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +12 -12
- package/components/shortcuts/shortcuts-hoc.js +2 -2
- package/components/slider/slider.d.ts +2 -1
- package/components/slider/slider.js +2 -1
- package/components/tab-trap/tab-trap.d.ts +2 -1
- package/components/tab-trap/tab-trap.js +2 -1
- package/components/table/cell.d.ts +2 -2
- package/components/table/cell.js +1 -1
- package/components/table/disable-hover-hoc.d.ts +13 -13
- package/components/table/disable-hover-hoc.js +1 -1
- package/components/table/header-cell.d.ts +2 -2
- package/components/table/header-cell.js +1 -1
- package/components/table/header.d.ts +3 -3
- package/components/table/header.js +1 -1
- package/components/table/multitable.d.ts +2 -2
- package/components/table/multitable.js +1 -1
- package/components/table/row-with-focus-sensor.d.ts +3 -3
- package/components/table/row-with-focus-sensor.js +1 -1
- package/components/table/row.d.ts +2 -1
- package/components/table/row.js +2 -1
- package/components/table/selection-shortcuts-hoc.js +1 -1
- package/components/table/smart-table.d.ts +44 -44
- package/components/table/smart-table.js +1 -1
- package/components/table/table.d.ts +6 -5
- package/components/table/table.js +2 -1
- package/components/table-legacy/table-legacy.css +1 -1
- package/components/tabs/collapsible-more.d.ts +4 -4
- package/components/tabs/collapsible-more.js +8 -8
- package/components/tabs/collapsible-tab.d.ts +2 -1
- package/components/tabs/collapsible-tab.js +1 -1
- package/components/tabs/collapsible-tabs.d.ts +4 -4
- package/components/tabs/collapsible-tabs.js +14 -14
- package/components/tabs/custom-item.d.ts +1 -1
- package/components/tabs/dumb-tabs.d.ts +2 -1
- package/components/tabs/dumb-tabs.js +2 -1
- package/components/tabs/smart-tabs.d.ts +2 -2
- package/components/tabs/smart-tabs.js +1 -1
- package/components/tabs/tab-link.d.ts +3 -3
- package/components/tabs/tab-link.js +1 -1
- package/components/tabs/tab.d.ts +2 -2
- package/components/tabs/tab.js +1 -1
- package/components/tag/tag.d.ts +2 -1
- package/components/tag/tag.js +2 -1
- package/components/tags-input/tags-input.d.ts +3 -2
- package/components/tags-input/tags-input.js +2 -1
- package/components/tags-list/tags-list.d.ts +2 -1
- package/components/tags-list/tags-list.js +2 -1
- package/components/text/text.d.ts +2 -2
- package/components/text/text.js +1 -1
- package/components/toggle/toggle.d.ts +2 -2
- package/components/toggle/toggle.js +1 -1
- package/components/tooltip/tooltip.d.ts +2 -1
- package/components/tooltip/tooltip.js +2 -1
- package/components/user-agreement/service.js +2 -3
- package/components/user-agreement/user-agreement.d.ts +2 -2
- package/components/user-agreement/user-agreement.js +1 -1
- package/components/user-card/card.d.ts +2 -1
- package/components/user-card/card.js +2 -1
- package/components/user-card/smart-user-card-tooltip.d.ts +3 -3
- package/components/user-card/smart-user-card-tooltip.js +1 -1
- package/components/user-card/tooltip.d.ts +3 -3
- package/components/user-card/tooltip.js +1 -1
- package/components/user-card/user-card.css +1 -1
- package/package.json +32 -31
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import checkmarkIcon from '@jetbrains/icons/checkmark-12px';
|
|
@@ -6,6 +6,7 @@ import minusIcon from '@jetbrains/icons/remove-12px';
|
|
|
6
6
|
import Icon from '../icon/icon';
|
|
7
7
|
import { refObject } from '../global/prop-types';
|
|
8
8
|
import composeRefs from '../global/composeRefs';
|
|
9
|
+
import ControlHelp from '../control-help/control-help';
|
|
9
10
|
import styles from './checkbox.css';
|
|
10
11
|
/**
|
|
11
12
|
* @name Checkbox
|
|
@@ -55,18 +56,23 @@ export default class Checkbox extends PureComponent {
|
|
|
55
56
|
this.input = el;
|
|
56
57
|
};
|
|
57
58
|
render() {
|
|
58
|
-
const { children, label, className, containerClassName, containerStyle, cellClassName, labelClassName, indeterminate, inputRef, ...restProps } = this.props;
|
|
59
|
+
const { children, label, className, containerClassName, containerStyle, cellClassName, labelClassName, indeterminate, inputRef, help, ...restProps } = this.props;
|
|
59
60
|
const classes = classNames(styles.input, className);
|
|
60
61
|
const containerClasses = classNames(styles.checkbox, containerClassName);
|
|
61
62
|
const cellClasses = classNames(styles.cell, cellClassName);
|
|
62
63
|
const labelClasses = classNames(styles.label, labelClassName);
|
|
63
64
|
return (<label className={containerClasses} style={containerStyle} data-test="ring-checkbox">
|
|
64
65
|
<input {...restProps} data-checked={restProps.checked} ref={composeRefs(this.inputRef, inputRef)} type="checkbox" className={classes}/>
|
|
65
|
-
<
|
|
66
|
-
<
|
|
67
|
-
|
|
66
|
+
<div className={styles.cellWrapper}>
|
|
67
|
+
<span className={cellClasses}>
|
|
68
|
+
<Icon glyph={checkmarkIcon} className={styles.check}/>
|
|
69
|
+
<Icon glyph={minusIcon} className={styles.minus}/>
|
|
70
|
+
</span>
|
|
71
|
+
</div>
|
|
72
|
+
<span className={labelClasses}>
|
|
73
|
+
{label || children}
|
|
74
|
+
{help && <ControlHelp>{help}</ControlHelp>}
|
|
68
75
|
</span>
|
|
69
|
-
<span className={labelClasses}>{label || children}</span>
|
|
70
76
|
</label>);
|
|
71
77
|
}
|
|
72
78
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import React, { PureComponent, Ref } from 'react';
|
|
1
|
+
import { PureComponent, Ref } from 'react';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
3
|
import highlight from 'highlight.js/lib/core';
|
|
5
4
|
declare function noop(): void;
|
|
@@ -37,8 +36,8 @@ export default class Code extends PureComponent<CodeProps> {
|
|
|
37
36
|
code?: HTMLElement | null;
|
|
38
37
|
highlight(): Promise<void>;
|
|
39
38
|
get codeRef(): HTMLElement | null | undefined;
|
|
40
|
-
get initCodeRef():
|
|
41
|
-
render():
|
|
39
|
+
get initCodeRef(): import("react").RefObject<HTMLElement> | ((ref: HTMLElement | null) => void);
|
|
40
|
+
render(): import("react").JSX.Element;
|
|
42
41
|
}
|
|
43
42
|
declare const code: (strings: TemplateStringsArray, ...interpolations: unknown[]) => void;
|
|
44
43
|
export { code, highlight };
|
package/components/code/code.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useState, useEffect, useRef, useContext, useMemo } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import classNames from 'classnames';
|
|
3
4
|
import dataTests from '../global/data-tests';
|
|
4
5
|
import { getRect } from '../global/dom';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useMemo, useContext, cloneElement } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import dataTests from '../global/data-tests';
|
|
3
4
|
import { CollapseContext } from './collapse-context';
|
|
4
5
|
import { COLLAPSE_CONTROL_TEST_ID } from './consts';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component, HTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export interface ContentLayoutProps extends HTMLAttributes<HTMLElement> {
|
|
4
4
|
responsive: boolean;
|
|
@@ -21,6 +21,6 @@ export default class ContentLayout extends Component<ContentLayoutProps> {
|
|
|
21
21
|
contentNode: null;
|
|
22
22
|
};
|
|
23
23
|
saveContentNode: (contentNode: HTMLElement | null) => void;
|
|
24
|
-
render():
|
|
24
|
+
render(): import("react").JSX.Element;
|
|
25
25
|
}
|
|
26
26
|
export { default as Sidebar } from './sidebar';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Children, cloneElement, Component } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import Sidebar from './sidebar';
|
|
@@ -28,7 +28,7 @@ export default class ContentLayout extends Component {
|
|
|
28
28
|
[styles.contentLayoutResponsive]: responsive
|
|
29
29
|
});
|
|
30
30
|
const contentClasses = classNames(styles.contentLayoutContent, contentClassName);
|
|
31
|
-
const childrenArray =
|
|
31
|
+
const childrenArray = Children.toArray(children);
|
|
32
32
|
const sidebarChild = childrenArray.filter((child) => child != null && typeof child === 'object' && 'type' in child && child.type === Sidebar)[0];
|
|
33
33
|
const sidebar = sidebarChild && cloneElement(sidebarChild, {
|
|
34
34
|
contentNode: this.state.contentNode
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component, HTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Waypoint } from 'react-waypoint';
|
|
4
4
|
export interface SidebarProps extends HTMLAttributes<HTMLElement> {
|
|
@@ -27,5 +27,5 @@ export default class Sidebar extends Component<SidebarProps> {
|
|
|
27
27
|
shouldUseFixation(): boolean;
|
|
28
28
|
shouldFixateBottom(): boolean;
|
|
29
29
|
sidebarRef: (node: HTMLElement | null) => void;
|
|
30
|
-
render():
|
|
30
|
+
render(): import("react").JSX.Element;
|
|
31
31
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component, HTMLAttributes, Ref } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
/**
|
|
4
4
|
* @name ContentEditable
|
|
@@ -28,12 +28,12 @@ declare class ContentEditableBase extends Component<ContentEditableBaseProps> {
|
|
|
28
28
|
};
|
|
29
29
|
shouldComponentUpdate(nextProps: ContentEditableBaseProps): boolean;
|
|
30
30
|
componentDidUpdate(prevProps: ContentEditableBaseProps): void;
|
|
31
|
-
render():
|
|
31
|
+
render(): import("react").JSX.Element;
|
|
32
32
|
}
|
|
33
33
|
type ContentEditableBaseAttrs = JSX.LibraryManagedAttributes<typeof ContentEditableBase, ContentEditableBaseProps>;
|
|
34
34
|
export type ContentEditableProps = Omit<ContentEditableBaseAttrs, '__html'>;
|
|
35
35
|
declare const ContentEditable: {
|
|
36
|
-
({ children, ...props }: ContentEditableProps):
|
|
36
|
+
({ children, ...props }: ContentEditableProps): import("react").JSX.Element;
|
|
37
37
|
propTypes: {
|
|
38
38
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
39
39
|
disabled: PropTypes.Requireable<boolean>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name Data List
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import { Component } from 'react';
|
|
5
5
|
import { FocusSensorOuterProps } from '../global/focus-sensor-hoc';
|
|
6
6
|
import { SelectionShortcutsAddProps, SelectionShortcutsOuterProps } from '../table/selection-shortcuts-hoc';
|
|
7
7
|
import { DisableHoverAddProps } from '../table/disable-hover-hoc';
|
|
@@ -20,7 +20,7 @@ export interface DataListBaseProps<T extends SelectionItem> {
|
|
|
20
20
|
type FocusableProps<T extends SelectionItem> = DataListBaseProps<T> & DisableHoverAddProps & FocusSensorOuterProps<HTMLDivElement> & SelectionShortcutsAddProps<T>;
|
|
21
21
|
export type DataListContainerProps<T extends SelectionItem> = DataListBaseProps<T> & FocusSensorOuterProps<HTMLDivElement> & SelectionShortcutsOuterProps<T>;
|
|
22
22
|
export default class DataListContainer<T extends SelectionItem> extends Component<DataListContainerProps<T>> {
|
|
23
|
-
static propTypes:
|
|
23
|
+
static propTypes: import("react").WeakValidationMap<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<SelectionItem, FocusableProps<SelectionItem>>> | undefined;
|
|
24
24
|
DataList: {
|
|
25
25
|
new (props: import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>): {
|
|
26
26
|
state: {
|
|
@@ -30,17 +30,17 @@ export default class DataListContainer<T extends SelectionItem> extends Componen
|
|
|
30
30
|
componentWillUnmount(): void;
|
|
31
31
|
onMouseMove: () => void;
|
|
32
32
|
onKeyDown: (e: KeyboardEvent) => void;
|
|
33
|
-
render():
|
|
33
|
+
render(): import("react").JSX.Element;
|
|
34
34
|
context: unknown;
|
|
35
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>) =>
|
|
35
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
36
36
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
37
37
|
readonly props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>;
|
|
38
38
|
refs: {
|
|
39
|
-
[key: string]:
|
|
39
|
+
[key: string]: import("react").ReactInstance;
|
|
40
40
|
};
|
|
41
41
|
shouldComponentUpdate?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
42
|
-
componentDidCatch?(error: Error, errorInfo:
|
|
43
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>): any;
|
|
42
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
43
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>): any | null;
|
|
44
44
|
componentDidUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
45
45
|
componentWillMount?(): void;
|
|
46
46
|
UNSAFE_componentWillMount?(): void;
|
|
@@ -57,17 +57,17 @@ export default class DataListContainer<T extends SelectionItem> extends Componen
|
|
|
57
57
|
componentWillUnmount(): void;
|
|
58
58
|
onMouseMove: () => void;
|
|
59
59
|
onKeyDown: (e: KeyboardEvent) => void;
|
|
60
|
-
render():
|
|
60
|
+
render(): import("react").JSX.Element;
|
|
61
61
|
context: unknown;
|
|
62
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>) =>
|
|
62
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>) => Pick<{}, K> | {} | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
63
63
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
64
64
|
readonly props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>;
|
|
65
65
|
refs: {
|
|
66
|
-
[key: string]:
|
|
66
|
+
[key: string]: import("react").ReactInstance;
|
|
67
67
|
};
|
|
68
68
|
shouldComponentUpdate?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
69
|
-
componentDidCatch?(error: Error, errorInfo:
|
|
70
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>): any;
|
|
69
|
+
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
70
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>): any | null;
|
|
71
71
|
componentDidUpdate?(prevProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
72
72
|
componentWillMount?(): void;
|
|
73
73
|
UNSAFE_componentWillMount?(): void;
|
|
@@ -76,10 +76,10 @@ export default class DataListContainer<T extends SelectionItem> extends Componen
|
|
|
76
76
|
componentWillUpdate?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
77
77
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
78
78
|
};
|
|
79
|
-
propTypes:
|
|
79
|
+
propTypes: import("react").WeakValidationMap<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>> | undefined;
|
|
80
80
|
defaultProps: Partial<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>> | undefined;
|
|
81
|
-
contextType?:
|
|
81
|
+
contextType?: import("react").Context<any> | undefined;
|
|
82
82
|
};
|
|
83
|
-
render():
|
|
83
|
+
render(): import("react").JSX.Element;
|
|
84
84
|
}
|
|
85
85
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name Data List
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import { PureComponent, Component } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import focusSensorHOC from '../global/focus-sensor-hoc';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { SelectionItem } from '../table/selection';
|
|
3
3
|
export interface Item extends SelectionItem {
|
|
4
4
|
title: ReactNode;
|
|
@@ -11,6 +11,6 @@ export declare const moreItems: {
|
|
|
11
11
|
id: number;
|
|
12
12
|
selectable: boolean;
|
|
13
13
|
collapsible: boolean;
|
|
14
|
-
title:
|
|
14
|
+
title: import("react").JSX.Element;
|
|
15
15
|
}[];
|
|
16
16
|
export default items;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PureComponent, ReactNode } from 'react';
|
|
2
2
|
import Selection, { SelectionItem } from '../table/selection';
|
|
3
3
|
export declare enum moreLessButtonStates {
|
|
4
4
|
UNUSED = 0,
|
|
@@ -45,6 +45,6 @@ export default class Item<T extends SelectionItem> extends PureComponent<ItemPro
|
|
|
45
45
|
onShowLess: () => void;
|
|
46
46
|
onFocus: () => void;
|
|
47
47
|
onSelect: (selected: boolean) => void;
|
|
48
|
-
renderItem: (model: T, parentShift: number) =>
|
|
49
|
-
render():
|
|
48
|
+
renderItem: (model: T, parentShift: number) => import("react").JSX.Element;
|
|
49
|
+
render(): import("react").JSX.Element;
|
|
50
50
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PureComponent, ReactNode, ComponentType } from 'react';
|
|
2
2
|
import { FocusSensorAddProps } from '../global/focus-sensor-hoc';
|
|
3
3
|
export interface TitleProps extends FocusSensorAddProps<HTMLDivElement> {
|
|
4
4
|
onSelect: (selected: boolean) => void;
|
|
@@ -20,7 +20,7 @@ declare class Title extends PureComponent<TitleProps> {
|
|
|
20
20
|
onCheckboxFocus: () => void;
|
|
21
21
|
onCheckboxChange: () => void;
|
|
22
22
|
toggleSelection(): void;
|
|
23
|
-
render():
|
|
23
|
+
render(): import("react").JSX.Element;
|
|
24
24
|
}
|
|
25
|
-
declare const _default:
|
|
25
|
+
declare const _default: ComponentType<import("../global/focus-sensor-hoc").FocusSensorProps<TitleProps, HTMLDivElement, typeof Title>>;
|
|
26
26
|
export default _default;
|
|
@@ -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,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 {
|
|
@@ -23,9 +23,9 @@ export default class Day extends Component<DayProps> {
|
|
|
23
23
|
handleMouseOver: () => void;
|
|
24
24
|
handleMouseOut: () => void;
|
|
25
25
|
isDay: (date: Date) => boolean;
|
|
26
|
-
is: (name:
|
|
26
|
+
is: (name: "date" | "from" | "to" | "activeDate") => boolean;
|
|
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,7 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import PropTypes from 'prop-types';
|
|
3
2
|
import { MonthsProps } from './consts';
|
|
4
|
-
declare function MonthNames(props: MonthsProps):
|
|
3
|
+
declare function MonthNames(props: MonthsProps): import("react").JSX.Element;
|
|
5
4
|
declare namespace MonthNames {
|
|
6
5
|
var propTypes: {
|
|
7
6
|
scrollDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
@@ -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,10 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import PropTypes from 'prop-types';
|
|
3
2
|
import { MonthsProps } from './consts';
|
|
4
3
|
export interface MonthProps extends MonthsProps {
|
|
5
4
|
month: Date;
|
|
6
5
|
}
|
|
7
|
-
declare function Month(props: MonthProps):
|
|
6
|
+
declare function Month(props: MonthProps): import("react").JSX.Element;
|
|
8
7
|
declare namespace Month {
|
|
9
8
|
var propTypes: {
|
|
10
9
|
month: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import PropTypes from 'prop-types';
|
|
3
2
|
import { MonthsProps } from './consts';
|
|
4
|
-
declare function Months(props: MonthsProps):
|
|
3
|
+
declare function Months(props: MonthsProps): import("react").JSX.Element;
|
|
5
4
|
declare namespace Months {
|
|
6
5
|
var propTypes: {
|
|
7
6
|
onScroll: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { Locale } from 'date-fns';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
3
|
interface WeekdaysProps {
|
|
5
4
|
locale: Locale | undefined;
|
|
6
5
|
}
|
|
7
|
-
declare function Weekdays(props: WeekdaysProps):
|
|
6
|
+
declare function Weekdays(props: WeekdaysProps): import("react").JSX.Element;
|
|
8
7
|
declare namespace Weekdays {
|
|
9
8
|
var propTypes: {
|
|
10
9
|
locale: PropTypes.Requireable<object>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { CalendarProps } from './consts';
|
|
4
4
|
interface YearsState {
|
|
@@ -18,8 +18,8 @@ export default class Years extends PureComponent<CalendarProps> {
|
|
|
18
18
|
componentWillUnmount(): void;
|
|
19
19
|
stoppedScrolling?: boolean;
|
|
20
20
|
setYear(date: number): void;
|
|
21
|
-
componentRef:
|
|
21
|
+
componentRef: import("react").RefObject<HTMLDivElement>;
|
|
22
22
|
handleWheel: (e: WheelEvent) => void;
|
|
23
|
-
render():
|
|
23
|
+
render(): import("react").JSX.Element;
|
|
24
24
|
}
|
|
25
25
|
export {};
|