@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,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';
|
@@ -101,10 +99,7 @@ import '../global/listeners.js';
|
|
101
99
|
import '../http/http.js';
|
102
100
|
import '../global/promise-with-timeout.js';
|
103
101
|
import '../auth/storage.js';
|
104
|
-
import '../storage/storage.js';
|
105
102
|
import '../storage/storage__local.js';
|
106
|
-
import '../storage/storage__fallback.js';
|
107
|
-
import 'deep-equal';
|
108
103
|
import '../auth/request-builder.js';
|
109
104
|
import 'simply-uuid';
|
110
105
|
import '../auth/background-flow.js';
|
@@ -141,11 +136,6 @@ class Header extends Component {
|
|
141
136
|
return header;
|
142
137
|
}
|
143
138
|
}
|
144
|
-
_defineProperty(Header, "propTypes", {
|
145
|
-
className: PropTypes.string,
|
146
|
-
children: PropTypes.node,
|
147
|
-
spaced: PropTypes.bool
|
148
|
-
});
|
149
139
|
_defineProperty(Header, "defaultProps", {
|
150
140
|
spaced: true,
|
151
141
|
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
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { ComponentType, HTMLAttributes, PureComponent, ReactNode } from 'react';
|
2
2
|
import * as React from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import { Size } from '../avatar/avatar';
|
5
4
|
import { PopupMenuAttrs } from '../popup-menu/popup-menu';
|
6
5
|
import { ListDataItem } from '../list/consts';
|
@@ -41,43 +40,6 @@ export interface ProfileProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onSe
|
|
41
40
|
onHide?: (() => void);
|
42
41
|
}
|
43
42
|
export default class Profile extends PureComponent<ProfileProps> {
|
44
|
-
static propTypes: {
|
45
|
-
className: PropTypes.Requireable<string>;
|
46
|
-
activeClassName: PropTypes.Requireable<string>;
|
47
|
-
closeOnSelect: PropTypes.Requireable<boolean>;
|
48
|
-
hasUpdates: PropTypes.Requireable<boolean>;
|
49
|
-
loading: PropTypes.Requireable<boolean>;
|
50
|
-
onLogin: PropTypes.Requireable<(...args: any[]) => any>;
|
51
|
-
onLogout: PropTypes.Requireable<(...args: any[]) => any>;
|
52
|
-
onSwitchUser: PropTypes.Requireable<(...args: any[]) => any>;
|
53
|
-
profileUrl: PropTypes.Requireable<string>;
|
54
|
-
renderPopupItems: PropTypes.Requireable<(...args: any[]) => any>;
|
55
|
-
LinkComponent: PropTypes.Requireable<NonNullable<string | ((...args: any[]) => any) | Component<unknown, unknown, unknown> | null | undefined>>;
|
56
|
-
translations: PropTypes.Requireable<PropTypes.InferProps<{
|
57
|
-
profile: PropTypes.Requireable<string>;
|
58
|
-
login: PropTypes.Requireable<string>;
|
59
|
-
logout: PropTypes.Requireable<string>;
|
60
|
-
applyChangedUser: PropTypes.Requireable<string>;
|
61
|
-
switchUser: PropTypes.Requireable<string>;
|
62
|
-
}>>;
|
63
|
-
user: PropTypes.Requireable<PropTypes.InferProps<{
|
64
|
-
guest: PropTypes.Requireable<boolean>;
|
65
|
-
profile: PropTypes.Requireable<object>;
|
66
|
-
name: PropTypes.Requireable<string>;
|
67
|
-
}>>;
|
68
|
-
size: PropTypes.Requireable<number>;
|
69
|
-
round: PropTypes.Requireable<boolean>;
|
70
|
-
showName: PropTypes.Requireable<boolean>;
|
71
|
-
showLogIn: PropTypes.Requireable<boolean>;
|
72
|
-
showLogOut: PropTypes.Requireable<boolean>;
|
73
|
-
showSwitchUser: PropTypes.Requireable<boolean>;
|
74
|
-
showApplyChangedUser: PropTypes.Requireable<boolean>;
|
75
|
-
onRevertPostponement: PropTypes.Requireable<(...args: any[]) => any>;
|
76
|
-
renderGuest: PropTypes.Requireable<(...args: any[]) => any>;
|
77
|
-
menuProps: PropTypes.Requireable<object>;
|
78
|
-
onShow: PropTypes.Requireable<(...args: any[]) => any>;
|
79
|
-
onHide: PropTypes.Requireable<(...args: any[]) => any>;
|
80
|
-
};
|
81
43
|
static defaultProps: ProfileProps;
|
82
44
|
static contextType: React.Context<import("../i18n/i18n-context").I18nContextProps>;
|
83
45
|
context: React.ContextType<typeof Profile.contextType>;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
-
import {
|
3
|
-
import PropTypes from 'prop-types';
|
2
|
+
import { PureComponent } from 'react';
|
4
3
|
import classNames from 'classnames';
|
5
4
|
import Avatar, { Size } from '../avatar/avatar.js';
|
6
5
|
import { Button } from '../button/button.js';
|
@@ -50,7 +49,6 @@ import '../list/list__item.js';
|
|
50
49
|
import '../checkbox/checkbox.js';
|
51
50
|
import '@jetbrains/icons/checkmark-12px';
|
52
51
|
import '@jetbrains/icons/remove-12px';
|
53
|
-
import '../global/prop-types.js';
|
54
52
|
import '../global/composeRefs.js';
|
55
53
|
import '../control-help/control-help.js';
|
56
54
|
import '../list/list__custom.js';
|
@@ -183,43 +181,6 @@ class Profile extends PureComponent {
|
|
183
181
|
}));
|
184
182
|
}
|
185
183
|
}
|
186
|
-
_defineProperty(Profile, "propTypes", {
|
187
|
-
className: PropTypes.string,
|
188
|
-
activeClassName: PropTypes.string,
|
189
|
-
closeOnSelect: PropTypes.bool,
|
190
|
-
hasUpdates: PropTypes.bool,
|
191
|
-
loading: PropTypes.bool,
|
192
|
-
onLogin: PropTypes.func,
|
193
|
-
onLogout: PropTypes.func,
|
194
|
-
onSwitchUser: PropTypes.func,
|
195
|
-
profileUrl: PropTypes.string,
|
196
|
-
renderPopupItems: PropTypes.func,
|
197
|
-
LinkComponent: PropTypes.oneOfType([PropTypes.instanceOf(Component), PropTypes.func, PropTypes.string]),
|
198
|
-
translations: PropTypes.shape({
|
199
|
-
profile: PropTypes.string,
|
200
|
-
login: PropTypes.string,
|
201
|
-
logout: PropTypes.string,
|
202
|
-
applyChangedUser: PropTypes.string,
|
203
|
-
switchUser: PropTypes.string
|
204
|
-
}),
|
205
|
-
user: PropTypes.shape({
|
206
|
-
guest: PropTypes.bool,
|
207
|
-
profile: PropTypes.object,
|
208
|
-
name: PropTypes.string
|
209
|
-
}),
|
210
|
-
size: PropTypes.number,
|
211
|
-
round: PropTypes.bool,
|
212
|
-
showName: PropTypes.bool,
|
213
|
-
showLogIn: PropTypes.bool,
|
214
|
-
showLogOut: PropTypes.bool,
|
215
|
-
showSwitchUser: PropTypes.bool,
|
216
|
-
showApplyChangedUser: PropTypes.bool,
|
217
|
-
onRevertPostponement: PropTypes.func,
|
218
|
-
renderGuest: PropTypes.func,
|
219
|
-
menuProps: PropTypes.object,
|
220
|
-
onShow: PropTypes.func,
|
221
|
-
onHide: PropTypes.func
|
222
|
-
});
|
223
184
|
_defineProperty(Profile, "defaultProps", {
|
224
185
|
closeOnSelect: true,
|
225
186
|
renderPopupItems: items => items,
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PureComponent } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { LinkProps } from '../link/link';
|
4
3
|
export interface Service {
|
5
4
|
id: string;
|
@@ -12,14 +11,5 @@ export interface ServicesLinkProps extends Partial<LinkProps> {
|
|
12
11
|
service: Service;
|
13
12
|
}
|
14
13
|
export default class ServicesLink extends PureComponent<ServicesLinkProps> {
|
15
|
-
static propTypes: {
|
16
|
-
isActive: PropTypes.Requireable<boolean>;
|
17
|
-
service: PropTypes.Requireable<PropTypes.InferProps<{
|
18
|
-
applicationName: PropTypes.Requireable<string>;
|
19
|
-
iconUrl: PropTypes.Requireable<string>;
|
20
|
-
homeUrl: PropTypes.Requireable<string>;
|
21
|
-
name: PropTypes.Requireable<string>;
|
22
|
-
}>>;
|
23
|
-
};
|
24
14
|
render(): import("react").JSX.Element;
|
25
15
|
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { HTMLAttributes, PureComponent } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import Theme from '../global/theme';
|
4
3
|
import ServicesLink, { Service } from './services-link';
|
5
4
|
export interface ServicesProps extends HTMLAttributes<HTMLElement> {
|
@@ -11,19 +10,6 @@ export interface ServicesProps extends HTMLAttributes<HTMLElement> {
|
|
11
10
|
}
|
12
11
|
export default class Services extends PureComponent<ServicesProps> {
|
13
12
|
static sort: (a: Service, b: Service) => number;
|
14
|
-
static propTypes: {
|
15
|
-
className: PropTypes.Requireable<string>;
|
16
|
-
clientId: PropTypes.Requireable<string>;
|
17
|
-
initShown: PropTypes.Requireable<boolean>;
|
18
|
-
loading: PropTypes.Requireable<boolean>;
|
19
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
20
|
-
services: PropTypes.Requireable<(PropTypes.InferProps<{
|
21
|
-
applicationName: PropTypes.Requireable<string>;
|
22
|
-
iconUrl: PropTypes.Requireable<string>;
|
23
|
-
homeUrl: PropTypes.Requireable<string>;
|
24
|
-
name: PropTypes.Requireable<string>;
|
25
|
-
}> | null | undefined)[]>;
|
26
|
-
};
|
27
13
|
static defaultProps: {
|
28
14
|
theme: Theme;
|
29
15
|
};
|
@@ -2,14 +2,13 @@ import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread
|
|
2
2
|
import 'core-js/modules/es.array.sort.js';
|
3
3
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
4
4
|
import { PureComponent } from 'react';
|
5
|
-
import PropTypes from 'prop-types';
|
6
5
|
import servicesIcon from '@jetbrains/icons/services-20px';
|
7
6
|
import classNames from 'classnames';
|
8
7
|
import Dropdown from '../dropdown/dropdown.js';
|
9
8
|
import Popup from '../popup/popup.js';
|
10
9
|
import { T as Theme, m as modules_59717246 } from '../_helpers/theme.js';
|
11
10
|
import HeaderIcon from './header-icon.js';
|
12
|
-
import {
|
11
|
+
import { m as modules_74a7bf8b, S as ServicesLink } from '../_helpers/services-link.js';
|
13
12
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
14
13
|
import '../global/data-tests.js';
|
15
14
|
import 'core-js/modules/es.array.reduce.js';
|
@@ -58,9 +57,6 @@ const makeAnchor = loading => {
|
|
58
57
|
"aria-label": "Services"
|
59
58
|
});
|
60
59
|
};
|
61
|
-
Anchor.propTypes = {
|
62
|
-
active: PropTypes.bool
|
63
|
-
};
|
64
60
|
return Anchor;
|
65
61
|
};
|
66
62
|
class Services extends PureComponent {
|
@@ -124,14 +120,6 @@ _defineProperty(Services, "sort", (a, b) => {
|
|
124
120
|
const bApplicationName = b.applicationName || '';
|
125
121
|
return aApplicationName.localeCompare(bApplicationName) || a.name.localeCompare(b.name);
|
126
122
|
});
|
127
|
-
_defineProperty(Services, "propTypes", {
|
128
|
-
className: PropTypes.string,
|
129
|
-
clientId: PropTypes.string,
|
130
|
-
initShown: PropTypes.bool,
|
131
|
-
loading: PropTypes.bool,
|
132
|
-
onClick: PropTypes.func,
|
133
|
-
services: PropTypes.arrayOf(ServicesLink.propTypes.service)
|
134
|
-
});
|
135
123
|
_defineProperty(Services, "defaultProps", {
|
136
124
|
theme: Theme.DARK
|
137
125
|
});
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PureComponent } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import Auth, { AuthUser } from '../auth/auth';
|
4
3
|
import { Size } from '../avatar/avatar';
|
5
4
|
import { ProfileAttrs } from './profile';
|
@@ -14,14 +13,6 @@ interface SmartProfileState {
|
|
14
13
|
loading?: boolean;
|
15
14
|
}
|
16
15
|
export default class SmartProfile extends PureComponent<SmartProfileProps, SmartProfileState> {
|
17
|
-
static propTypes: {
|
18
|
-
auth: PropTypes.Validator<Auth>;
|
19
|
-
className: PropTypes.Requireable<string>;
|
20
|
-
translations: PropTypes.Requireable<object>;
|
21
|
-
profileUrl: PropTypes.Requireable<string>;
|
22
|
-
size: PropTypes.Requireable<number>;
|
23
|
-
round: PropTypes.Requireable<boolean>;
|
24
|
-
};
|
25
16
|
state: SmartProfileState;
|
26
17
|
componentDidMount(): void;
|
27
18
|
static Size: typeof Size;
|
@@ -1,12 +1,11 @@
|
|
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 { PureComponent } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
4
|
import '../auth/auth.js';
|
6
5
|
import alertService from '../alert-service/alert-service.js';
|
7
6
|
import Profile from './profile.js';
|
8
7
|
import { jsx } from 'react/jsx-runtime';
|
9
|
-
import
|
8
|
+
import { USER_CHANGED_EVENT, LOGOUT_POSTPONED_EVENT, USER_CHANGE_POSTPONED_EVENT } from '../auth/auth__core.js';
|
10
9
|
import '../auth/window-flow.js';
|
11
10
|
import '../auth/response-parser.js';
|
12
11
|
import 'core-js/modules/es.regexp.exec.js';
|
@@ -54,22 +53,6 @@ import '../link/link.js';
|
|
54
53
|
import '../_helpers/link.js';
|
55
54
|
import '../group/group.js';
|
56
55
|
import 'react-dom/client';
|
57
|
-
import 'core-js/modules/web.url.js';
|
58
|
-
import 'core-js/modules/web.url.to-json.js';
|
59
|
-
import 'core-js/modules/web.url-search-params.js';
|
60
|
-
import '../global/listeners.js';
|
61
|
-
import '../http/http.js';
|
62
|
-
import '../global/promise-with-timeout.js';
|
63
|
-
import '../i18n/i18n.js';
|
64
|
-
import '../auth/storage.js';
|
65
|
-
import '../storage/storage.js';
|
66
|
-
import '../storage/storage__local.js';
|
67
|
-
import '../storage/storage__fallback.js';
|
68
|
-
import 'deep-equal';
|
69
|
-
import '../auth/request-builder.js';
|
70
|
-
import 'simply-uuid';
|
71
|
-
import '../auth/background-flow.js';
|
72
|
-
import '../auth/token-validator.js';
|
73
56
|
import '../avatar/avatar.js';
|
74
57
|
import '../avatar/fallback-avatar.js';
|
75
58
|
import '../dropdown-menu/dropdown-menu.js';
|
@@ -87,7 +70,6 @@ import '../list/list__item.js';
|
|
87
70
|
import '../checkbox/checkbox.js';
|
88
71
|
import '@jetbrains/icons/checkmark-12px';
|
89
72
|
import '@jetbrains/icons/remove-12px';
|
90
|
-
import '../global/prop-types.js';
|
91
73
|
import '../global/composeRefs.js';
|
92
74
|
import '../control-help/control-help.js';
|
93
75
|
import '../list/list__custom.js';
|
@@ -102,7 +84,20 @@ import '../_helpers/anchor.js';
|
|
102
84
|
import '@jetbrains/icons/chevron-10px';
|
103
85
|
import '../popup-menu/popup-menu.js';
|
104
86
|
import '../i18n/i18n-context.js';
|
87
|
+
import '../i18n/i18n.js';
|
105
88
|
import '../_helpers/header.js';
|
89
|
+
import 'core-js/modules/web.url.js';
|
90
|
+
import 'core-js/modules/web.url.to-json.js';
|
91
|
+
import 'core-js/modules/web.url-search-params.js';
|
92
|
+
import '../global/listeners.js';
|
93
|
+
import '../http/http.js';
|
94
|
+
import '../global/promise-with-timeout.js';
|
95
|
+
import '../auth/storage.js';
|
96
|
+
import '../storage/storage__local.js';
|
97
|
+
import '../auth/request-builder.js';
|
98
|
+
import 'simply-uuid';
|
99
|
+
import '../auth/background-flow.js';
|
100
|
+
import '../auth/token-validator.js';
|
106
101
|
|
107
102
|
const _excluded = ["auth", "profileUrl"];
|
108
103
|
const CERTIFICATE_MISMATCH_HEADER = 'x-client-certificate-token-mismatch';
|
@@ -122,7 +117,8 @@ class SmartProfile extends PureComponent {
|
|
122
117
|
try {
|
123
118
|
await this.props.auth.login();
|
124
119
|
} catch (err) {
|
125
|
-
//
|
120
|
+
// eslint-disable-next-line no-console
|
121
|
+
console.debug('Profile login errored', err);
|
126
122
|
} finally {
|
127
123
|
this.setState({
|
128
124
|
loading: false
|
@@ -215,14 +211,6 @@ class SmartProfile extends PureComponent {
|
|
215
211
|
}, props));
|
216
212
|
}
|
217
213
|
}
|
218
|
-
_defineProperty(SmartProfile, "propTypes", {
|
219
|
-
auth: PropTypes.instanceOf(Auth).isRequired,
|
220
|
-
className: PropTypes.string,
|
221
|
-
translations: PropTypes.object,
|
222
|
-
profileUrl: PropTypes.string,
|
223
|
-
size: Profile.propTypes.size,
|
224
|
-
round: Profile.propTypes.round
|
225
|
-
});
|
226
214
|
_defineProperty(SmartProfile, "Size", Profile.Size);
|
227
215
|
|
228
216
|
export { SmartProfile as default };
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { Component, HTMLAttributes } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import Auth from '../auth/auth';
|
4
3
|
import HTTP from '../http/http';
|
5
4
|
import { Service } from './services-link';
|
@@ -7,9 +6,6 @@ export interface SmartServicesProps extends HTMLAttributes<HTMLElement> {
|
|
7
6
|
auth: Auth;
|
8
7
|
}
|
9
8
|
export default class SmartServices extends Component<SmartServicesProps> {
|
10
|
-
static propTypes: {
|
11
|
-
auth: PropTypes.Validator<Auth>;
|
12
|
-
};
|
13
9
|
state: {
|
14
10
|
visible: boolean;
|
15
11
|
loading: boolean;
|
@@ -1,47 +1,37 @@
|
|
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 } from 'react';
|
4
|
-
import PropTypes from 'prop-types';
|
5
|
-
import '../auth/auth.js';
|
6
4
|
import HTTP from '../http/http.js';
|
7
5
|
import Services from './services.js';
|
8
6
|
import { jsx } from 'react/jsx-runtime';
|
9
|
-
import Auth from '../auth/auth__core.js';
|
10
|
-
import '../auth/window-flow.js';
|
11
|
-
import '../auth/response-parser.js';
|
12
|
-
import 'core-js/modules/es.regexp.exec.js';
|
13
|
-
import 'core-js/modules/es.string.replace.js';
|
14
7
|
import 'es6-error';
|
15
8
|
import '../global/url.js';
|
16
|
-
import '
|
17
|
-
import '
|
18
|
-
import '
|
19
|
-
import '
|
20
|
-
import '../alert/alert.js';
|
9
|
+
import 'core-js/modules/es.regexp.exec.js';
|
10
|
+
import 'core-js/modules/es.string.replace.js';
|
11
|
+
import 'core-js/modules/es.array.sort.js';
|
12
|
+
import '@jetbrains/icons/services-20px';
|
21
13
|
import 'classnames';
|
22
|
-
import '
|
23
|
-
import '
|
24
|
-
import '
|
25
|
-
import '
|
14
|
+
import '../dropdown/dropdown.js';
|
15
|
+
import '../global/data-tests.js';
|
16
|
+
import 'core-js/modules/es.array.reduce.js';
|
17
|
+
import '../global/typescript-utils.js';
|
18
|
+
import '../_helpers/anchor.js';
|
19
|
+
import '@jetbrains/icons/chevron-10px';
|
26
20
|
import '../icon/icon.js';
|
27
21
|
import 'util-deprecate';
|
28
22
|
import '../icon/icon__constants.js';
|
29
23
|
import '../_helpers/icon__svg.js';
|
30
24
|
import '../global/memoize.js';
|
31
|
-
import '../loader-inline/loader-inline.js';
|
32
|
-
import '../global/data-tests.js';
|
33
|
-
import 'core-js/modules/es.array.reduce.js';
|
34
|
-
import '../global/dom.js';
|
35
25
|
import '../button/button.js';
|
36
26
|
import '@jetbrains/icons/chevron-down';
|
37
27
|
import '../link/clickableLink.js';
|
38
28
|
import '../global/controls-height.js';
|
39
29
|
import '../_helpers/button__classes.js';
|
40
|
-
import '../_helpers/theme.js';
|
41
|
-
import 'react-dom';
|
42
|
-
import '../popup/popup.target.js';
|
43
30
|
import '../popup/popup.js';
|
31
|
+
import 'react-dom';
|
32
|
+
import '../global/get-uid.js';
|
44
33
|
import '../global/schedule-raf.js';
|
34
|
+
import '../global/dom.js';
|
45
35
|
import '../shortcuts/shortcuts.js';
|
46
36
|
import '../shortcuts/core.js';
|
47
37
|
import 'combokeys';
|
@@ -49,35 +39,14 @@ import '../global/sniffer.js';
|
|
49
39
|
import 'sniffr';
|
50
40
|
import '../tab-trap/tab-trap.js';
|
51
41
|
import '../popup/position.js';
|
52
|
-
import 'core-js/modules/es.array.sort.js';
|
53
42
|
import '../popup/popup.consts.js';
|
54
|
-
import '../
|
55
|
-
import '../
|
56
|
-
import '../_helpers/link.js';
|
57
|
-
import '../group/group.js';
|
58
|
-
import '@jetbrains/icons/services-20px';
|
59
|
-
import '../dropdown/dropdown.js';
|
60
|
-
import '../global/typescript-utils.js';
|
61
|
-
import '../_helpers/anchor.js';
|
62
|
-
import '@jetbrains/icons/chevron-10px';
|
43
|
+
import '../popup/popup.target.js';
|
44
|
+
import '../_helpers/theme.js';
|
63
45
|
import './header-icon.js';
|
64
46
|
import '../_helpers/header.js';
|
65
47
|
import '../_helpers/services-link.js';
|
66
|
-
import '
|
67
|
-
import '
|
68
|
-
import 'core-js/modules/web.url-search-params.js';
|
69
|
-
import '../global/listeners.js';
|
70
|
-
import '../global/promise-with-timeout.js';
|
71
|
-
import '../i18n/i18n.js';
|
72
|
-
import '../auth/storage.js';
|
73
|
-
import '../storage/storage.js';
|
74
|
-
import '../storage/storage__local.js';
|
75
|
-
import '../storage/storage__fallback.js';
|
76
|
-
import 'deep-equal';
|
77
|
-
import '../auth/request-builder.js';
|
78
|
-
import 'simply-uuid';
|
79
|
-
import '../auth/background-flow.js';
|
80
|
-
import '../auth/token-validator.js';
|
48
|
+
import '../link/link.js';
|
49
|
+
import '../_helpers/link.js';
|
81
50
|
|
82
51
|
const _excluded = ["auth"];
|
83
52
|
function noop() {}
|
@@ -149,9 +118,6 @@ class SmartServices extends Component {
|
|
149
118
|
}));
|
150
119
|
}
|
151
120
|
}
|
152
|
-
_defineProperty(SmartServices, "propTypes", {
|
153
|
-
auth: PropTypes.instanceOf(Auth).isRequired
|
154
|
-
});
|
155
121
|
_defineProperty(SmartServices, "allFields", 'id,name,applicationName,homeUrl,iconUrl');
|
156
122
|
_defineProperty(SmartServices, "countFields", 'key');
|
157
123
|
|
@@ -1,9 +1,4 @@
|
|
1
1
|
import { Component, HTMLAttributes } from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
export default class Tray extends Component<HTMLAttributes<HTMLElement>> {
|
4
|
-
static propTypes: {
|
5
|
-
className: PropTypes.Requireable<string>;
|
6
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
7
|
-
};
|
8
3
|
render(): import("react").JSX.Element;
|
9
4
|
}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { Component, Children } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import classNames from 'classnames';
|
5
4
|
import { m as modules_47759f5e } from '../_helpers/header.js';
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
@@ -25,9 +24,5 @@ class Tray extends Component {
|
|
25
24
|
}));
|
26
25
|
}
|
27
26
|
}
|
28
|
-
_defineProperty(Tray, "propTypes", {
|
29
|
-
className: PropTypes.string,
|
30
|
-
children: PropTypes.node
|
31
|
-
});
|
32
27
|
|
33
28
|
export { Tray as default };
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { b as _objectSpread2, a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import { memo } from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import classNames from 'classnames';
|
5
4
|
import deprecate from 'util-deprecate';
|
6
5
|
import { m as modules_901b77ec } from '../_helpers/heading.js';
|
@@ -31,11 +30,6 @@ const HeadingMemo = /*#__PURE__*/memo(function Heading(_ref) {
|
|
31
30
|
}));
|
32
31
|
});
|
33
32
|
const Heading = HeadingMemo;
|
34
|
-
Heading.propTypes = {
|
35
|
-
children: PropTypes.node,
|
36
|
-
className: PropTypes.string,
|
37
|
-
level: PropTypes.oneOf([Levels.H1, Levels.H2, Levels.H3, Levels.H4])
|
38
|
-
};
|
39
33
|
Heading.Levels = Levels;
|
40
34
|
const H1 = /*#__PURE__*/memo(function H1(props) {
|
41
35
|
return /*#__PURE__*/jsx(Heading, _objectSpread2(_objectSpread2({}, props), {}, {
|