@jetbrains/ring-ui-built 7.0.0-beta.3 → 7.0.0-beta.4
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 -1
- package/components/auth/auth__core.d.ts +3 -3
- package/components/auth/auth__core.js +28 -20
- package/components/auth/down-notification.js +0 -9
- package/components/auth/iframe-flow.js +0 -1
- package/components/auth/storage.js +0 -1
- 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/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 -7
- 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 +19 -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.js +0 -2
- 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 +0 -20
- 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 +0 -94
- 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 +0 -65
- 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.js +0 -1
- 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 +1 -34
- 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.js +0 -1
- 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 -2
- package/components/global/prop-types.d.ts +0 -4
- package/components/global/prop-types.js +0 -7
@@ -10,7 +10,6 @@ import { S as Size, m as modules_88cfaf40 } from '../_helpers/input.js';
|
|
10
10
|
import getUID from '../global/get-uid.js';
|
11
11
|
import Shortcuts from '../shortcuts/shortcuts.js';
|
12
12
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
13
|
-
import 'prop-types';
|
14
13
|
import 'util-deprecate';
|
15
14
|
import '../_helpers/heading.js';
|
16
15
|
import '@jetbrains/icons/chevron-down';
|
@@ -24,7 +23,6 @@ import '../link/clickableLink.js';
|
|
24
23
|
import '../global/controls-height.js';
|
25
24
|
import '../_helpers/button__classes.js';
|
26
25
|
import '@jetbrains/icons/close-12px';
|
27
|
-
import '../global/prop-types.js';
|
28
26
|
import '../i18n/i18n-context.js';
|
29
27
|
import '../i18n/i18n.js';
|
30
28
|
import '../global/composeRefs.js';
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PureComponent, ReactElement } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
export type ErrorBubbleProps<P> = Partial<P> & {
|
4
3
|
className?: string | null | undefined;
|
5
4
|
children: ReactElement<P> | ReactElement<P>[];
|
@@ -9,10 +8,5 @@ export type ErrorBubbleProps<P> = Partial<P> & {
|
|
9
8
|
* @name Error Bubble
|
10
9
|
*/
|
11
10
|
export default class ErrorBubble<P> extends PureComponent<ErrorBubbleProps<P>> {
|
12
|
-
static propTypes: {
|
13
|
-
error: PropTypes.Requireable<string>;
|
14
|
-
className: PropTypes.Requireable<string>;
|
15
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
16
|
-
};
|
17
11
|
render(): import("react").JSX.Element;
|
18
12
|
}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { PureComponent, Children, cloneElement } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import classNames from 'classnames';
|
5
4
|
import Popup from '../popup/popup.js';
|
6
5
|
import { Directions } from '../popup/popup.consts.js';
|
@@ -53,10 +52,5 @@ class ErrorBubble extends PureComponent {
|
|
53
52
|
});
|
54
53
|
}
|
55
54
|
}
|
56
|
-
_defineProperty(ErrorBubble, "propTypes", {
|
57
|
-
error: PropTypes.string,
|
58
|
-
className: PropTypes.string,
|
59
|
-
children: PropTypes.node
|
60
|
-
});
|
61
55
|
|
62
56
|
export { ErrorBubble as default };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { Component, ReactNode } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { IconType } from '../icon/icon';
|
4
3
|
export interface ErrorMessageProps {
|
5
4
|
children?: ReactNode;
|
@@ -14,14 +13,5 @@ export interface ErrorMessageProps {
|
|
14
13
|
* @name Error Message
|
15
14
|
*/
|
16
15
|
export default class ErrorMessage extends Component<ErrorMessageProps> {
|
17
|
-
static propTypes: {
|
18
|
-
icon: PropTypes.Requireable<NonNullable<PropTypes.ReactComponentLike | null | undefined>>;
|
19
|
-
code: PropTypes.Requireable<string>;
|
20
|
-
message: PropTypes.Requireable<string>;
|
21
|
-
description: PropTypes.Requireable<string>;
|
22
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
23
|
-
className: PropTypes.Requireable<string>;
|
24
|
-
'data-test': PropTypes.Requireable<string>;
|
25
|
-
};
|
26
16
|
render(): import("react").JSX.Element;
|
27
17
|
}
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
1
|
import 'core-js/modules/es.symbol.description.js';
|
3
2
|
import { Component } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
3
|
import classNames from 'classnames';
|
6
4
|
import Icon from '../icon/icon.js';
|
7
5
|
import { Size } from '../icon/icon__constants.js';
|
8
6
|
import joinDataTestAttributes from '../global/data-tests.js';
|
9
7
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
8
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
10
9
|
import 'util-deprecate';
|
11
10
|
import '../_helpers/icon__svg.js';
|
12
11
|
import 'core-js/modules/es.regexp.exec.js';
|
@@ -51,14 +50,5 @@ class ErrorMessage extends Component {
|
|
51
50
|
});
|
52
51
|
}
|
53
52
|
}
|
54
|
-
_defineProperty(ErrorMessage, "propTypes", {
|
55
|
-
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]),
|
56
|
-
code: PropTypes.string,
|
57
|
-
message: PropTypes.string,
|
58
|
-
description: PropTypes.string,
|
59
|
-
children: PropTypes.node,
|
60
|
-
className: PropTypes.string,
|
61
|
-
'data-test': PropTypes.string
|
62
|
-
});
|
63
53
|
|
64
54
|
export { ErrorMessage as default };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { memo, isValidElement } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import classNames from 'classnames';
|
4
3
|
import Link from '../link/link.js';
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
@@ -30,10 +29,6 @@ const FooterColumn = /*#__PURE__*/memo(function FooterColumn(_ref) {
|
|
30
29
|
})
|
31
30
|
});
|
32
31
|
});
|
33
|
-
FooterColumn.propTypes = {
|
34
|
-
position: PropTypes.oneOf(['left', 'center', 'right']).isRequired,
|
35
|
-
children: PropTypes.node
|
36
|
-
};
|
37
32
|
/**
|
38
33
|
* Return copyright string
|
39
34
|
* @param year {int}
|
@@ -77,9 +72,6 @@ const FooterLine = /*#__PURE__*/memo(function FooterLine(props) {
|
|
77
72
|
children: items.map(renderItem)
|
78
73
|
});
|
79
74
|
});
|
80
|
-
FooterLine.propTypes = {
|
81
|
-
item: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string])
|
82
|
-
};
|
83
75
|
const Footer = /*#__PURE__*/memo(function Footer(_ref2) {
|
84
76
|
let {
|
85
77
|
floating,
|
@@ -110,12 +102,5 @@ const Footer = /*#__PURE__*/memo(function Footer(_ref2) {
|
|
110
102
|
children: [content(left, 'left'), content(center, 'center'), content(right, 'right')]
|
111
103
|
});
|
112
104
|
});
|
113
|
-
Footer.propTypes = {
|
114
|
-
className: PropTypes.string,
|
115
|
-
floating: PropTypes.bool,
|
116
|
-
left: PropTypes.array,
|
117
|
-
center: PropTypes.array,
|
118
|
-
right: PropTypes.array
|
119
|
-
};
|
120
105
|
|
121
106
|
export { copyright, Footer as default };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
type Update<T> = (value: T) => void;
|
4
3
|
export interface ProviderProps {
|
5
4
|
children: ReactNode;
|
@@ -13,9 +12,6 @@ export default function createStatefulContext<T>(initialValue: T, name?: string)
|
|
13
12
|
UpdateContext: import("react").Context<Update<T>>;
|
14
13
|
Provider: {
|
15
14
|
({ children }: ProviderProps): import("react").JSX.Element;
|
16
|
-
propTypes: {
|
17
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
18
|
-
};
|
19
15
|
displayName: string;
|
20
16
|
};
|
21
17
|
useUpdate: (value: T, skipUpdate?: boolean) => void;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
2
2
|
import { memo, createContext, useState, useContext, useEffect } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
5
4
|
|
6
5
|
function createStatefulContext(initialValue) {
|
@@ -20,9 +19,6 @@ function createStatefulContext(initialValue) {
|
|
20
19
|
})
|
21
20
|
});
|
22
21
|
}
|
23
|
-
Provider.propTypes = {
|
24
|
-
children: PropTypes.node
|
25
|
-
};
|
26
22
|
Provider.displayName = "".concat(name, "Provider");
|
27
23
|
function useUpdate(value, skipUpdate) {
|
28
24
|
const update = useContext(UpdateContext);
|
@@ -1,24 +1,11 @@
|
|
1
|
-
import { b as _objectSpread2,
|
1
|
+
import { b as _objectSpread2, _ as _defineProperty, a as _objectWithoutProperties } 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
|
-
import { refObject } from './prop-types.js';
|
6
4
|
import { createComposedRef } from './composeRefs.js';
|
7
5
|
import { jsx } from 'react/jsx-runtime';
|
8
6
|
import 'memoize-one';
|
9
7
|
|
10
|
-
const _excluded = ["
|
11
|
-
_excluded2 = ["autofocus", "focused", "onFocus", "onBlur", "innerRef", "scrollOnTableFocus"];
|
12
|
-
function extractPropTypes(_ref) {
|
13
|
-
let {
|
14
|
-
propTypes
|
15
|
-
} = _ref;
|
16
|
-
if (propTypes == null) {
|
17
|
-
return propTypes;
|
18
|
-
}
|
19
|
-
const restPropTypes = _objectWithoutProperties(propTypes, _excluded);
|
20
|
-
return restPropTypes;
|
21
|
-
}
|
8
|
+
const _excluded = ["autofocus", "focused", "onFocus", "onBlur", "innerRef", "scrollOnTableFocus"];
|
22
9
|
function focusSensorHOC(ComposedComponent) {
|
23
10
|
class FocusSensor extends Component {
|
24
11
|
constructor() {
|
@@ -34,11 +21,11 @@ function focusSensorHOC(ComposedComponent) {
|
|
34
21
|
}
|
35
22
|
});
|
36
23
|
_defineProperty(this, "composedRef", createComposedRef());
|
37
|
-
_defineProperty(this, "onFocusCapture",
|
24
|
+
_defineProperty(this, "onFocusCapture", _ref => {
|
38
25
|
var _this$node;
|
39
26
|
let {
|
40
27
|
target
|
41
|
-
} =
|
28
|
+
} = _ref;
|
42
29
|
if (this._skipNextCapture) {
|
43
30
|
this._skipNextCapture = false;
|
44
31
|
return;
|
@@ -52,10 +39,10 @@ function focusSensorHOC(ComposedComponent) {
|
|
52
39
|
(_this$props$onFocus = (_this$props = this.props).onFocus) === null || _this$props$onFocus === void 0 || _this$props$onFocus.call(_this$props);
|
53
40
|
}
|
54
41
|
});
|
55
|
-
_defineProperty(this, "onBlurCapture",
|
42
|
+
_defineProperty(this, "onBlurCapture", _ref2 => {
|
56
43
|
let {
|
57
44
|
target
|
58
|
-
} =
|
45
|
+
} = _ref2;
|
59
46
|
const {
|
60
47
|
state: {
|
61
48
|
focused
|
@@ -131,7 +118,7 @@ function focusSensorHOC(ComposedComponent) {
|
|
131
118
|
innerRef,
|
132
119
|
scrollOnTableFocus
|
133
120
|
} = _this$props3,
|
134
|
-
rest = _objectWithoutProperties(_this$props3,
|
121
|
+
rest = _objectWithoutProperties(_this$props3, _excluded);
|
135
122
|
return /*#__PURE__*/jsx(ComposedComponent, _objectSpread2(_objectSpread2({}, rest), {}, {
|
136
123
|
innerRef: this.composedRef(innerRef, this.onRefUpdate),
|
137
124
|
focused: this.state.focused,
|
@@ -140,13 +127,6 @@ function focusSensorHOC(ComposedComponent) {
|
|
140
127
|
}));
|
141
128
|
}
|
142
129
|
}
|
143
|
-
FocusSensor.propTypes = _objectSpread2(_objectSpread2({}, extractPropTypes(ComposedComponent)), {}, {
|
144
|
-
focused: PropTypes.bool,
|
145
|
-
autofocus: PropTypes.bool,
|
146
|
-
onFocus: PropTypes.func,
|
147
|
-
onBlur: PropTypes.func,
|
148
|
-
innerRef: PropTypes.oneOfType([PropTypes.func, refObject(PropTypes.instanceOf(HTMLElement))])
|
149
|
-
});
|
150
130
|
FocusSensor.defaultProps = _objectSpread2(_objectSpread2({}, ComposedComponent.defaultProps), {}, {
|
151
131
|
focused: false,
|
152
132
|
autofocus: false,
|
@@ -1,14 +1,9 @@
|
|
1
1
|
import { Component } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
export interface RendererProps {
|
4
3
|
className?: string | undefined;
|
5
4
|
nodes: readonly Node[] | NodeList;
|
6
5
|
}
|
7
6
|
export default class Renderer extends Component<RendererProps> {
|
8
|
-
static propTypes: {
|
9
|
-
className: PropTypes.Requireable<string>;
|
10
|
-
nodes: PropTypes.Requireable<object>;
|
11
|
-
};
|
12
7
|
componentDidMount(): void;
|
13
8
|
node?: HTMLElement | null;
|
14
9
|
nodeRef: (node: HTMLElement | null) => 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 { jsx } from 'react/jsx-runtime';
|
6
5
|
|
7
6
|
class Renderer extends Component {
|
@@ -34,9 +33,5 @@ class Renderer extends Component {
|
|
34
33
|
});
|
35
34
|
}
|
36
35
|
}
|
37
|
-
_defineProperty(Renderer, "propTypes", {
|
38
|
-
className: PropTypes.string,
|
39
|
-
nodes: PropTypes.oneOfType([PropTypes.array, PropTypes.object])
|
40
|
-
});
|
41
36
|
|
42
37
|
export { Renderer as default };
|
@@ -7,6 +7,7 @@ declare enum Theme {
|
|
7
7
|
export declare const ThemeContext: import("react").Context<{
|
8
8
|
theme: Theme.LIGHT | Theme.DARK;
|
9
9
|
}>;
|
10
|
+
export declare const GLOBAL_DARK_CLASS_NAME = "ring-ui-theme-dark";
|
10
11
|
export declare function useTheme(): Theme.LIGHT | Theme.DARK;
|
11
12
|
export declare function useThemeClasses(theme: Theme): string;
|
12
13
|
export interface WithThemeClassesProps {
|
@@ -5,10 +5,9 @@ import 'classnames';
|
|
5
5
|
import 'react-dom';
|
6
6
|
import '../popup/popup.target.js';
|
7
7
|
import '../popup/popup.js';
|
8
|
-
export { b as ThemeContext, a as ThemeProvider, W as WithThemeClasses, d as applyTheme, T as default, u as useTheme, c as useThemeClasses } from '../_helpers/theme.js';
|
8
|
+
export { G as GLOBAL_DARK_CLASS_NAME, b as ThemeContext, a as ThemeProvider, W as WithThemeClasses, d as applyTheme, T as default, u as useTheme, c as useThemeClasses } from '../_helpers/theme.js';
|
9
9
|
import './get-uid.js';
|
10
10
|
import 'react/jsx-runtime';
|
11
|
-
import 'prop-types';
|
12
11
|
import 'core-js/modules/es.regexp.exec.js';
|
13
12
|
import 'core-js/modules/es.string.replace.js';
|
14
13
|
import './schedule-raf.js';
|
package/components/grid/col.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import { Component, ReactNode } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
export interface ColProps {
|
4
3
|
children?: ReactNode;
|
5
4
|
xs?: boolean | number | null | undefined;
|
@@ -14,18 +13,5 @@ export interface ColProps {
|
|
14
13
|
className?: string | null | undefined;
|
15
14
|
}
|
16
15
|
export default class Col extends Component<ColProps> {
|
17
|
-
static propTypes: {
|
18
|
-
xs: PropTypes.Requireable<NonNullable<number | boolean | null | undefined>>;
|
19
|
-
sm: PropTypes.Requireable<NonNullable<number | boolean | null | undefined>>;
|
20
|
-
md: PropTypes.Requireable<NonNullable<number | boolean | null | undefined>>;
|
21
|
-
lg: PropTypes.Requireable<NonNullable<number | boolean | null | undefined>>;
|
22
|
-
xsOffset: PropTypes.Requireable<number>;
|
23
|
-
smOffset: PropTypes.Requireable<number>;
|
24
|
-
mdOffset: PropTypes.Requireable<number>;
|
25
|
-
lgOffset: PropTypes.Requireable<number>;
|
26
|
-
reverse: PropTypes.Requireable<boolean>;
|
27
|
-
className: PropTypes.Requireable<string>;
|
28
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
29
|
-
};
|
30
16
|
render(): import("react").JSX.Element;
|
31
17
|
}
|
package/components/grid/col.js
CHANGED
@@ -1,14 +1,12 @@
|
|
1
|
-
import {
|
1
|
+
import { a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.reverse.js';
|
3
3
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
4
4
|
import { Component } from 'react';
|
5
|
-
import PropTypes from 'prop-types';
|
6
5
|
import classNames from 'classnames';
|
7
6
|
import { m as modules_855170c0 } from '../_helpers/grid.js';
|
8
7
|
import { jsx } from 'react/jsx-runtime';
|
9
8
|
|
10
9
|
const _excluded = ["children", "className", "reverse"];
|
11
|
-
const ModifierType = PropTypes.oneOfType([PropTypes.number, PropTypes.bool]);
|
12
10
|
const classMap = {
|
13
11
|
xs: 'col-xs',
|
14
12
|
sm: 'col-sm',
|
@@ -51,18 +49,5 @@ class Col extends Component {
|
|
51
49
|
});
|
52
50
|
}
|
53
51
|
}
|
54
|
-
_defineProperty(Col, "propTypes", {
|
55
|
-
xs: ModifierType,
|
56
|
-
sm: ModifierType,
|
57
|
-
md: ModifierType,
|
58
|
-
lg: ModifierType,
|
59
|
-
xsOffset: PropTypes.number,
|
60
|
-
smOffset: PropTypes.number,
|
61
|
-
mdOffset: PropTypes.number,
|
62
|
-
lgOffset: PropTypes.number,
|
63
|
-
reverse: PropTypes.bool,
|
64
|
-
className: PropTypes.string,
|
65
|
-
children: PropTypes.node
|
66
|
-
});
|
67
52
|
|
68
53
|
export { Col as default };
|
@@ -1,13 +1,8 @@
|
|
1
1
|
import { Component, HTMLAttributes } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
/**
|
4
3
|
* @name Grid
|
5
4
|
*/
|
6
5
|
export declare class Grid extends Component<HTMLAttributes<HTMLDivElement>> {
|
7
|
-
static propTypes: {
|
8
|
-
className: PropTypes.Requireable<string>;
|
9
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
10
|
-
};
|
11
6
|
render(): import("react").JSX.Element;
|
12
7
|
}
|
13
8
|
export { default as Row } from './row';
|
package/components/grid/grid.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { Component } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import classNames from 'classnames';
|
5
4
|
import { m as modules_855170c0 } from '../_helpers/grid.js';
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
@@ -26,9 +25,5 @@ class Grid extends Component {
|
|
26
25
|
}));
|
27
26
|
}
|
28
27
|
}
|
29
|
-
_defineProperty(Grid, "propTypes", {
|
30
|
-
className: PropTypes.string,
|
31
|
-
children: PropTypes.node
|
32
|
-
});
|
33
28
|
|
34
29
|
export { Grid };
|
package/components/grid/row.d.ts
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
import { Component, ReactNode } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
|
-
declare const ModifierType: PropTypes.Requireable<string>;
|
4
2
|
type ModifierType = 'xs' | 'sm' | 'md' | 'lg';
|
5
3
|
export interface RowProps {
|
6
4
|
children?: ReactNode;
|
@@ -19,22 +17,6 @@ export interface RowProps {
|
|
19
17
|
className?: string | null | undefined;
|
20
18
|
}
|
21
19
|
export default class Row extends Component<RowProps> {
|
22
|
-
static propTypes: {
|
23
|
-
reverse: PropTypes.Requireable<boolean>;
|
24
|
-
start: PropTypes.Requireable<string>;
|
25
|
-
center: PropTypes.Requireable<string>;
|
26
|
-
end: PropTypes.Requireable<string>;
|
27
|
-
top: PropTypes.Requireable<string>;
|
28
|
-
middle: PropTypes.Requireable<string>;
|
29
|
-
baseline: PropTypes.Requireable<string>;
|
30
|
-
bottom: PropTypes.Requireable<string>;
|
31
|
-
around: PropTypes.Requireable<string>;
|
32
|
-
between: PropTypes.Requireable<string>;
|
33
|
-
first: PropTypes.Requireable<string>;
|
34
|
-
last: PropTypes.Requireable<string>;
|
35
|
-
className: PropTypes.Requireable<string>;
|
36
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
37
|
-
};
|
38
20
|
render(): import("react").JSX.Element;
|
39
21
|
}
|
40
22
|
export {};
|
package/components/grid/row.js
CHANGED
@@ -1,14 +1,12 @@
|
|
1
|
-
import {
|
1
|
+
import { a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.reduce.js';
|
3
3
|
import 'core-js/modules/es.array.reverse.js';
|
4
4
|
import { Component } from 'react';
|
5
|
-
import PropTypes from 'prop-types';
|
6
5
|
import classNames from 'classnames';
|
7
6
|
import { m as modules_855170c0 } from '../_helpers/grid.js';
|
8
7
|
import { jsx } from 'react/jsx-runtime';
|
9
8
|
|
10
9
|
const _excluded = ["children", "className", "reverse"];
|
11
|
-
const ModifierType = PropTypes.oneOf(['xs', 'sm', 'md', 'lg']);
|
12
10
|
const modifierKeys = ['start', 'center', 'end',
|
13
11
|
// text-align, justify-content
|
14
12
|
'around', 'between',
|
@@ -48,21 +46,5 @@ class Row extends Component {
|
|
48
46
|
});
|
49
47
|
}
|
50
48
|
}
|
51
|
-
_defineProperty(Row, "propTypes", {
|
52
|
-
reverse: PropTypes.bool,
|
53
|
-
start: ModifierType,
|
54
|
-
center: ModifierType,
|
55
|
-
end: ModifierType,
|
56
|
-
top: ModifierType,
|
57
|
-
middle: ModifierType,
|
58
|
-
baseline: ModifierType,
|
59
|
-
bottom: ModifierType,
|
60
|
-
around: ModifierType,
|
61
|
-
between: ModifierType,
|
62
|
-
first: ModifierType,
|
63
|
-
last: ModifierType,
|
64
|
-
className: PropTypes.string,
|
65
|
-
children: PropTypes.node
|
66
|
-
});
|
67
49
|
|
68
50
|
export { Row as default };
|
@@ -1,12 +1,7 @@
|
|
1
1
|
import { Component, HTMLAttributes } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
/**
|
4
3
|
* @name Group
|
5
4
|
*/
|
6
5
|
export default class Group extends Component<HTMLAttributes<HTMLSpanElement>> {
|
7
|
-
static propTypes: {
|
8
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
9
|
-
className: PropTypes.Requireable<string>;
|
10
|
-
};
|
11
6
|
render(): import("react").JSX.Element;
|
12
7
|
}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { Component } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import classNames from 'classnames';
|
5
4
|
import { jsx } from 'react/jsx-runtime';
|
6
5
|
|
@@ -22,9 +21,5 @@ class Group extends Component {
|
|
22
21
|
}));
|
23
22
|
}
|
24
23
|
}
|
25
|
-
_defineProperty(Group, "propTypes", {
|
26
|
-
children: PropTypes.node,
|
27
|
-
className: PropTypes.string
|
28
|
-
});
|
29
24
|
|
30
25
|
export { Group as default };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { Component } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { ButtonAttrs } from '../button/button';
|
4
3
|
import { IconType } from '../icon/icon';
|
5
4
|
export interface HeaderIconSpecificProps {
|
@@ -7,26 +6,5 @@ export interface HeaderIconSpecificProps {
|
|
7
6
|
rotatable?: boolean | null | undefined;
|
8
7
|
}
|
9
8
|
export default class HeaderIcon extends Component<ButtonAttrs & HeaderIconSpecificProps> {
|
10
|
-
static propTypes: {
|
11
|
-
icon: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactComponentLike | null | undefined>>>;
|
12
|
-
rotatable: PropTypes.Requireable<boolean>;
|
13
|
-
active: PropTypes.Requireable<boolean>;
|
14
|
-
danger: PropTypes.Requireable<boolean>;
|
15
|
-
delayed: PropTypes.Requireable<boolean>;
|
16
|
-
loader: PropTypes.Requireable<boolean>;
|
17
|
-
primary: PropTypes.Requireable<boolean>;
|
18
|
-
short: PropTypes.Requireable<boolean>;
|
19
|
-
text: PropTypes.Requireable<boolean>;
|
20
|
-
inline: PropTypes.Requireable<boolean>;
|
21
|
-
dropdown: PropTypes.Requireable<boolean>;
|
22
|
-
href: PropTypes.Requireable<string>;
|
23
|
-
target: PropTypes.Requireable<string>;
|
24
|
-
iconSize: PropTypes.Requireable<number>;
|
25
|
-
iconClassName: PropTypes.Requireable<string>;
|
26
|
-
iconSuppressSizeWarning: PropTypes.Requireable<boolean>;
|
27
|
-
className: PropTypes.Requireable<string>;
|
28
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
29
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
30
|
-
};
|
31
9
|
render(): import("react").JSX.Element;
|
32
10
|
}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { Component } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import classNames from 'classnames';
|
5
4
|
import { Button } from '../button/button.js';
|
6
5
|
import { m as modules_47759f5e } from '../_helpers/header.js';
|
@@ -36,9 +35,5 @@ class HeaderIcon extends Component {
|
|
36
35
|
}));
|
37
36
|
}
|
38
37
|
}
|
39
|
-
_defineProperty(HeaderIcon, "propTypes", _objectSpread2(_objectSpread2({}, Button.propTypes), {}, {
|
40
|
-
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]).isRequired,
|
41
|
-
rotatable: PropTypes.bool
|
42
|
-
}));
|
43
38
|
|
44
39
|
export { HeaderIcon as default };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { Component, HTMLAttributes } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import Theme from '../global/theme';
|
4
3
|
interface HeaderProps extends HTMLAttributes<HTMLElement> {
|
5
4
|
spaced: boolean;
|
@@ -13,11 +12,6 @@ interface HeaderProps extends HTMLAttributes<HTMLElement> {
|
|
13
12
|
* Displays a configurable page header. See available presentation options in the knobs panel.
|
14
13
|
*/
|
15
14
|
declare class Header extends Component<HeaderProps> {
|
16
|
-
static propTypes: {
|
17
|
-
className: PropTypes.Requireable<string>;
|
18
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
19
|
-
spaced: PropTypes.Requireable<boolean>;
|
20
|
-
};
|
21
15
|
static defaultProps: {
|
22
16
|
spaced: boolean;
|
23
17
|
theme: Theme;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { Component } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import classNames from 'classnames';
|
5
4
|
import { T as Theme, a as ThemeProvider } from '../_helpers/theme.js';
|
6
5
|
import { m as modules_47759f5e } from '../_helpers/header.js';
|
@@ -62,7 +61,6 @@ import '../list/list__item.js';
|
|
62
61
|
import '../checkbox/checkbox.js';
|
63
62
|
import '@jetbrains/icons/checkmark-12px';
|
64
63
|
import '@jetbrains/icons/remove-12px';
|
65
|
-
import '../global/prop-types.js';
|
66
64
|
import '../global/composeRefs.js';
|
67
65
|
import '../control-help/control-help.js';
|
68
66
|
import '../list/list__custom.js';
|
@@ -141,11 +139,6 @@ class Header extends Component {
|
|
141
139
|
return header;
|
142
140
|
}
|
143
141
|
}
|
144
|
-
_defineProperty(Header, "propTypes", {
|
145
|
-
className: PropTypes.string,
|
146
|
-
children: PropTypes.node,
|
147
|
-
spaced: PropTypes.bool
|
148
|
-
});
|
149
142
|
_defineProperty(Header, "defaultProps", {
|
150
143
|
spaced: true,
|
151
144
|
theme: Theme.DARK,
|
@@ -1,10 +1,6 @@
|
|
1
1
|
import { PureComponent } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { IconAttrs, Size } from '../icon/icon';
|
4
3
|
export default class Logo extends PureComponent<IconAttrs> {
|
5
|
-
static propTypes: {
|
6
|
-
className: PropTypes.Requireable<string>;
|
7
|
-
};
|
8
4
|
static defaultProps: {
|
9
5
|
size: Size;
|
10
6
|
suppressSizeWarning: boolean;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { PureComponent } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import classNames from 'classnames';
|
5
4
|
import Icon from '../icon/icon.js';
|
6
5
|
import { m as modules_47759f5e } from '../_helpers/header.js';
|
@@ -28,9 +27,6 @@ class Logo extends PureComponent {
|
|
28
27
|
});
|
29
28
|
}
|
30
29
|
}
|
31
|
-
_defineProperty(Logo, "propTypes", {
|
32
|
-
className: PropTypes.string
|
33
|
-
});
|
34
30
|
_defineProperty(Logo, "defaultProps", {
|
35
31
|
size: Size.Size48,
|
36
32
|
suppressSizeWarning: true
|