@jetbrains/ring-ui-built 7.0.125 → 8.0.0-beta.11
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 +1 -1
- package/components/_helpers/avatar-info.js +3 -5
- package/components/_helpers/caption.js +1 -1
- package/components/_helpers/dialog.js +3 -0
- package/components/_helpers/icon-svg.js +37 -52
- package/components/_helpers/legacy-table.js +3 -0
- package/components/_helpers/tab-link.js +1 -1
- package/components/_helpers/table.js +2 -2
- package/components/_helpers/theme.js +49 -37
- package/components/alert/alert-actions.js +1 -1
- package/components/alert/alert-heading.js +1 -1
- package/components/alert/alert.js +2 -2
- package/components/alert-service/alert-service.js +2 -2
- package/components/auth/auth-core.js +2 -2
- package/components/auth/auth.js +2 -2
- package/components/auth/down-notification.js +2 -2
- package/components/auth/iframe-flow.js +15 -10
- package/components/auth/storage.js +2 -2
- package/components/auth-dialog/auth-dialog.js +11 -6
- package/components/auth-dialog-service/auth-dialog-service.js +19 -11
- package/components/avatar/avatar-info.js +1 -1
- package/components/avatar/avatar-size.d.ts +0 -4
- package/components/avatar/avatar-size.js +0 -4
- package/components/avatar/avatar.js +1 -8
- package/components/avatar/fallback-avatar.js +3 -48
- package/components/avatar-stack/avatar-stack.js +5 -5
- package/components/banner/banner.js +5 -6
- package/components/button/button.d.ts +0 -4
- package/components/button/button.js +4 -10
- package/components/button-group/button-group.js +1 -1
- package/components/button-toolbar/button-toolbar.js +1 -1
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +1 -2
- package/components/clipboard/clipboard.js +2 -2
- package/components/code/code.js +1 -2
- package/components/collapse/collapse-content.js +35 -43
- package/components/collapse/collapse-context.d.ts +1 -0
- package/components/collapse/collapse-context.js +1 -0
- package/components/collapse/collapse-control.js +5 -5
- package/components/collapse/collapse.js +34 -25
- package/components/collapsible-group/collapsible-group.d.ts +5 -1
- package/components/collapsible-group/collapsible-group.js +80 -98
- package/components/components/util-stories.js +63 -1
- package/components/confirm/confirm.js +30 -21
- package/components/confirm-service/confirm-service.js +21 -13
- package/components/contenteditable/contenteditable.js +4 -5
- package/components/control-help/control-help.js +1 -1
- package/components/control-label/control-label.js +1 -1
- package/components/data-list/data-list.d.ts +4 -4
- package/components/data-list/data-list.js +5 -5
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +2 -2
- package/components/data-list/item.d.ts +1 -1
- package/components/data-list/item.js +3 -3
- package/components/data-list/selection.d.ts +1 -1
- package/components/data-list/selection.js +2 -2
- package/components/data-list/title.js +1 -2
- package/components/date-picker/date-input.js +2 -2
- package/components/date-picker/date-picker.js +2 -3
- package/components/date-picker/date-popup.js +4 -5
- package/components/date-picker/month-names.js +1 -1
- package/components/date-picker/month-slider.js +1 -1
- package/components/date-picker/month.d.ts +0 -2
- package/components/date-picker/month.js +17 -18
- package/components/date-picker/months.js +43 -36
- package/components/date-picker/use-scroll-behavior.js +45 -45
- package/components/date-picker/weekdays.js +1 -1
- package/components/date-picker/years.js +61 -55
- package/components/dialog/dialog-body-scroll-preventer.js +49 -2
- package/components/dialog/dialog-controls.d.ts +13 -0
- package/components/dialog/dialog-controls.js +113 -0
- package/components/dialog/dialog-geometry.d.ts +31 -0
- package/components/dialog/dialog-geometry.js +63 -0
- package/components/dialog/dialog.d.ts +15 -7
- package/components/dialog/dialog.js +185 -37
- package/components/dropdown/anchor.js +3 -3
- package/components/dropdown/dropdown.js +3 -3
- package/components/dropdown-menu/dropdown-menu.d.ts +4 -4
- package/components/dropdown-menu/dropdown-menu.js +63 -58
- package/components/editable-heading/editable-heading.d.ts +1 -2
- package/components/editable-heading/editable-heading.js +14 -13
- package/components/error-bubble/error-bubble.js +1 -1
- package/components/error-message/error-message.js +1 -2
- package/components/footer/footer.js +1 -1
- package/components/global/compose-refs.d.ts +2 -1
- package/components/global/compose-refs.js +44 -8
- package/components/global/configuration.d.ts +0 -5
- package/components/global/configuration.js +2 -10
- package/components/global/controls-height.js +1 -1
- package/components/global/create-stateful-context.js +11 -11
- package/components/global/focus-sensor-hoc.js +1 -0
- package/components/global/focus-with-temporary-tabindex.d.ts +11 -0
- package/components/global/focus-with-temporary-tabindex.js +23 -0
- package/components/global/get-viewport-size.d.ts +5 -0
- package/components/global/get-viewport-size.js +6 -0
- package/components/global/intersection-observer-context.d.ts +46 -0
- package/components/global/intersection-observer-context.js +138 -0
- package/components/global/is-within-interactive-element.d.ts +6 -0
- package/components/global/is-within-interactive-element.js +11 -0
- package/components/global/is-within-navigable-element.d.ts +6 -0
- package/components/global/is-within-navigable-element.js +11 -0
- package/components/global/parse-css-duration.d.ts +5 -0
- package/components/global/parse-css-duration.js +14 -0
- package/components/global/rerender-hoc.d.ts +4 -2
- package/components/global/rerender-hoc.js +11 -24
- package/components/global/schedule-with-cleanup.d.ts +12 -0
- package/components/global/schedule-with-cleanup.js +36 -0
- package/components/{table/selection.d.ts → global/table-selection.d.ts} +15 -15
- package/components/{table/selection.js → global/table-selection.js} +5 -5
- package/components/global/theme.d.ts +4 -3
- package/components/global/theme.js +1 -1
- package/components/global/variables.interface.d.ts +0 -4
- package/components/header/header-icon.js +3 -3
- package/components/header/header.js +3 -3
- package/components/header/links.js +1 -1
- package/components/header/logo.js +1 -2
- package/components/header/profile.js +5 -5
- package/components/header/services.js +3 -3
- package/components/header/smart-profile.js +3 -3
- package/components/header/smart-services.js +3 -3
- package/components/heading/heading.js +1 -1
- package/components/http/http.js +6 -23
- package/components/i18n/i18n-context.js +4 -4
- package/components/icon/icon-svg.js +1 -2
- package/components/icon/icon.d.ts +0 -1
- package/components/icon/icon.js +2 -6
- package/components/icon/index.js +1 -2
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +3 -3
- package/components/internal/reorder-animation-context.js +159 -0
- package/components/internal/reorder-handle.js +750 -0
- package/components/internal/reorder-layout-context.js +141 -0
- package/components/internal/table-header.js +685 -0
- package/components/internal/virtualization.js +368 -0
- package/components/island/adaptive-island-hoc.js +3 -3
- package/components/island/content.d.ts +7 -2
- package/components/island/content.js +27 -18
- package/components/island/header.js +4 -3
- package/components/island/island.js +1 -1
- package/components/{table → legacy-table}/cell.js +1 -1
- package/components/{table → legacy-table}/header-cell.js +2 -3
- package/components/{table → legacy-table}/header.js +2 -3
- package/components/{table → legacy-table}/multitable.d.ts +1 -1
- package/components/{table → legacy-table}/row-with-focus-sensor.js +3 -3
- package/components/{table → legacy-table}/row.d.ts +1 -1
- package/components/{table → legacy-table}/row.js +5 -5
- package/components/legacy-table/selection-adapter.d.ts +6 -0
- package/components/{table → legacy-table}/selection-shortcuts-hoc.d.ts +5 -5
- package/components/{table → legacy-table}/simple-table.d.ts +2 -2
- package/components/{table → legacy-table}/simple-table.js +5 -5
- package/components/{table → legacy-table}/smart-table.d.ts +5 -5
- package/components/{table → legacy-table}/smart-table.js +6 -6
- package/components/legacy-table/table.d.ts +109 -0
- package/components/legacy-table/table.js +369 -0
- package/components/list/consts.d.ts +0 -1
- package/components/list/consts.js +0 -1
- package/components/list/list-item.js +3 -5
- package/components/list/list-users-groups-source.js +1 -2
- package/components/list/list.d.ts +0 -4
- package/components/list/list.js +1 -2
- package/components/login-dialog/login-dialog.js +17 -12
- package/components/login-dialog/service.js +19 -11
- package/components/message/message.js +1 -1
- package/components/pager/pager.js +3 -3
- package/components/popup/popup.js +1 -1
- package/components/popup/popup.target.d.ts +3 -2
- package/components/popup/popup.target.js +32 -28
- package/components/popup-menu/popup-menu.js +1 -1
- package/components/query-assist/query-assist-suggestions.js +1 -2
- package/components/query-assist/query-assist.d.ts +3 -1
- package/components/query-assist/query-assist.js +2 -2
- package/components/radio/radio-item.d.ts +3 -3
- package/components/radio/radio-item.js +33 -19
- package/components/radio/radio.d.ts +2 -2
- package/components/radio/radio.js +2 -2
- package/components/scrollable-section/scrollable-section.js +1 -1
- package/components/select/chevron-button.js +3 -3
- package/components/select/select-filter.js +3 -3
- package/components/select/select-popup.d.ts +3 -2
- package/components/select/select-popup.js +9 -4
- package/components/select/select.d.ts +6 -2
- package/components/select/select.js +5 -4
- package/components/selection-toolbar/selection-toolbar.d.ts +11 -0
- package/components/selection-toolbar/selection-toolbar.js +200 -0
- package/components/slider/slider.js +100 -97
- package/components/storage/storage-local.js +2 -2
- package/components/storage/storage.js +2 -2
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.d.ts +3 -3
- package/components/tab-trap/tab-trap.js +83 -80
- package/components/table/default-item-renderer.d.ts +55 -0
- package/components/table/default-item-renderer.js +240 -0
- package/components/table/internal/reorder-animation-context.d.ts +21 -0
- package/components/table/internal/reorder-handle.d.ts +9 -0
- package/components/table/internal/reorder-layout-context.d.ts +16 -0
- package/components/table/internal/table-header.d.ts +1 -0
- package/components/table/internal/virtualization.d.ts +41 -0
- package/components/table/item-virtualization.d.ts +37 -0
- package/components/table/item-virtualization.js +73 -0
- package/components/table/reorder-animation.d.ts +37 -0
- package/components/table/reorder-animation.js +18 -0
- package/components/table/reorder-item-layout.d.ts +32 -0
- package/components/table/reorder-item-layout.js +57 -0
- package/components/table/table-const.d.ts +10 -0
- package/components/table/table-const.js +13 -0
- package/components/table/table-primitives.d.ts +64 -0
- package/components/table/table-primitives.js +180 -0
- package/components/table/table-props.d.ts +304 -0
- package/components/table/table-props.js +1 -0
- package/components/table/table.d.ts +231 -107
- package/components/table/table.js +351 -346
- package/components/tabs/collapsible-more.js +1 -1
- package/components/tabs/collapsible-tab.js +1 -1
- package/components/tabs/collapsible-tabs.js +1 -1
- package/components/tabs/dumb-tabs.js +1 -1
- package/components/tabs/smart-tabs.js +1 -1
- package/components/tabs/tab-link.js +1 -1
- package/components/tabs/tabs.js +1 -1
- package/components/tag/tag.js +1 -1
- package/components/tags-input/tags-input.d.ts +3 -1
- package/components/tags-input/tags-input.js +4 -4
- package/components/tags-list/tags-list.js +2 -2
- package/components/toggle/toggle.js +1 -1
- package/components/tooltip/tooltip.d.ts +2 -1
- package/components/tooltip/tooltip.js +5 -3
- package/components/upload/upload.d.ts +4 -3
- package/components/upload/upload.js +7 -30
- package/components/user-agreement/service.js +12 -4
- package/components/user-agreement/user-agreement.js +24 -20
- package/components/user-card/card.js +4 -4
- package/components/user-card/smart-user-card-tooltip.js +3 -3
- package/components/user-card/tooltip.js +3 -3
- package/components/user-card/user-card.js +5 -5
- package/components/util-stories.d.ts +26 -0
- package/package.json +11 -12
- package/components/__mocks__/old-browsers-message.js +0 -3
- package/components/_helpers/dialog-body-scroll-preventer.js +0 -50
- package/components/_helpers/grid.js +0 -3
- package/components/_helpers/sidebar.js +0 -110
- package/components/content-layout/content-layout.d.ts +0 -20
- package/components/content-layout/content-layout.js +0 -50
- package/components/content-layout/sidebar.d.ts +0 -26
- package/components/content-layout/sidebar.js +0 -5
- package/components/date-picker/use-intersection-observer.d.ts +0 -6
- package/components/date-picker/use-intersection-observer.js +0 -93
- package/components/expand/collapsible-group.d.ts +0 -8
- package/components/expand/collapsible-group.js +0 -52
- package/components/global/composeRefs.d.ts +0 -6
- package/components/global/composeRefs.js +0 -9
- package/components/global/use-event-callback.d.ts +0 -4
- package/components/global/use-event-callback.js +0 -49
- package/components/grid/col.d.ts +0 -16
- package/components/grid/col.js +0 -63
- package/components/grid/grid.d.ts +0 -13
- package/components/grid/grid.js +0 -27
- package/components/grid/row.d.ts +0 -21
- package/components/grid/row.js +0 -72
- package/components/old-browsers-message/old-browsers-message-stop.d.ts +0 -1
- package/components/old-browsers-message/old-browsers-message-stop.js +0 -5
- package/components/old-browsers-message/old-browsers-message.d.ts +0 -5
- package/components/old-browsers-message/old-browsers-message.js +0 -89
- package/components/old-browsers-message/white-list.d.ts +0 -2
- package/components/old-browsers-message/white-list.js +0 -30
- package/components/table/selection-adapter.d.ts +0 -6
- /package/components/{table → legacy-table}/cell.d.ts +0 -0
- /package/components/{table → legacy-table}/disable-hover-hoc.d.ts +0 -0
- /package/components/{table → legacy-table}/disable-hover-hoc.js +0 -0
- /package/components/{table → legacy-table}/header-cell.d.ts +0 -0
- /package/components/{table → legacy-table}/header.d.ts +0 -0
- /package/components/{table → legacy-table}/multitable.js +0 -0
- /package/components/{table → legacy-table}/row-with-focus-sensor.d.ts +0 -0
- /package/components/{table → legacy-table}/selection-adapter.js +0 -0
- /package/components/{table → legacy-table}/selection-shortcuts-hoc.js +0 -0
|
@@ -8,7 +8,7 @@ import CollapsibleTabs from './collapsible-tabs.js';
|
|
|
8
8
|
import { CustomItem } from './custom-item.js';
|
|
9
9
|
import { getTabId } from './tabs.utils.js';
|
|
10
10
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
|
-
import 'react
|
|
11
|
+
import 'react/compiler-runtime';
|
|
12
12
|
import '../link/link.js';
|
|
13
13
|
import '../link/clickable-link.js';
|
|
14
14
|
import '../_helpers/link.js';
|
|
@@ -5,7 +5,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '../global/memoize.js';
|
|
7
7
|
import '../_helpers/tab-link.js';
|
|
8
|
-
import 'react
|
|
8
|
+
import 'react/compiler-runtime';
|
|
9
9
|
import '../link/link.js';
|
|
10
10
|
import '../link/clickable-link.js';
|
|
11
11
|
import '../_helpers/link.js';
|
package/components/tabs/tabs.js
CHANGED
|
@@ -7,7 +7,7 @@ import 'classnames';
|
|
|
7
7
|
import '../global/memoize.js';
|
|
8
8
|
import '../global/data-tests.js';
|
|
9
9
|
import '../_helpers/tab-link.js';
|
|
10
|
-
import 'react
|
|
10
|
+
import 'react/compiler-runtime';
|
|
11
11
|
import '../link/link.js';
|
|
12
12
|
import '../link/clickable-link.js';
|
|
13
13
|
import 'react/jsx-runtime';
|
package/components/tag/tag.js
CHANGED
|
@@ -10,7 +10,7 @@ import { ControlsHeight } from '../global/configuration.js';
|
|
|
10
10
|
import 'util-deprecate';
|
|
11
11
|
import '../icon/icon.constants.js';
|
|
12
12
|
import '../_helpers/icon-svg.js';
|
|
13
|
-
import 'react
|
|
13
|
+
import 'react/compiler-runtime';
|
|
14
14
|
import '../global/memoize.js';
|
|
15
15
|
import '@jetbrains/icons/chevron-down';
|
|
16
16
|
import '@jetbrains/icons/chevron-12px-down';
|
|
@@ -110,6 +110,8 @@ export default class TagsInput extends PureComponent<TagsInputProps, TagsInputSt
|
|
|
110
110
|
selectRef: (el: Select | null) => void;
|
|
111
111
|
render(): React.JSX.Element;
|
|
112
112
|
}
|
|
113
|
-
export declare const RerenderableTagsInput:
|
|
113
|
+
export declare const RerenderableTagsInput: ({ ref, ...props }: TagsInputProps & {
|
|
114
|
+
ref?: React.Ref<TagsInput> | undefined;
|
|
115
|
+
}) => React.JSX.Element;
|
|
114
116
|
export type TagsInputAttrs = React.JSX.LibraryManagedAttributes<typeof TagsInput, TagsInputProps>;
|
|
115
117
|
export {};
|
|
@@ -17,19 +17,18 @@ import 'dequal';
|
|
|
17
17
|
import '../global/data-tests.js';
|
|
18
18
|
import '../global/typescript-utils.js';
|
|
19
19
|
import '../_helpers/anchor.js';
|
|
20
|
-
import 'react
|
|
20
|
+
import 'react/compiler-runtime';
|
|
21
21
|
import '../button/button.js';
|
|
22
22
|
import '@jetbrains/icons/chevron-down';
|
|
23
23
|
import '@jetbrains/icons/chevron-12px-down';
|
|
24
|
-
import 'util-deprecate';
|
|
25
24
|
import '../icon/icon.js';
|
|
25
|
+
import 'util-deprecate';
|
|
26
26
|
import '../icon/icon.constants.js';
|
|
27
27
|
import '../_helpers/icon-svg.js';
|
|
28
|
-
import '../global/configuration.js';
|
|
29
28
|
import '../link/clickable-link.js';
|
|
30
29
|
import '../_helpers/button.classes.js';
|
|
30
|
+
import '../global/configuration.js';
|
|
31
31
|
import '../avatar/avatar.js';
|
|
32
|
-
import 'core-js/modules/es.array.includes.js';
|
|
33
32
|
import '../global/url.js';
|
|
34
33
|
import '../global/dom.js';
|
|
35
34
|
import '../avatar/fallback-avatar.js';
|
|
@@ -40,6 +39,7 @@ import 'react-dom';
|
|
|
40
39
|
import '../global/schedule-raf.js';
|
|
41
40
|
import '../shortcuts/shortcuts.js';
|
|
42
41
|
import '../shortcuts/core.js';
|
|
42
|
+
import 'core-js/modules/es.array.includes.js';
|
|
43
43
|
import 'combokeys';
|
|
44
44
|
import '../global/sniffer.js';
|
|
45
45
|
import 'sniffr';
|
|
@@ -7,14 +7,14 @@ import '../icon/icon.js';
|
|
|
7
7
|
import 'util-deprecate';
|
|
8
8
|
import '../icon/icon.constants.js';
|
|
9
9
|
import '../_helpers/icon-svg.js';
|
|
10
|
-
import 'react
|
|
11
|
-
import '../global/configuration.js';
|
|
10
|
+
import 'react/compiler-runtime';
|
|
12
11
|
import '../global/memoize.js';
|
|
13
12
|
import '../button/button.js';
|
|
14
13
|
import '@jetbrains/icons/chevron-down';
|
|
15
14
|
import '@jetbrains/icons/chevron-12px-down';
|
|
16
15
|
import '../link/clickable-link.js';
|
|
17
16
|
import '../global/controls-height.js';
|
|
17
|
+
import '../global/configuration.js';
|
|
18
18
|
import '../_helpers/button.classes.js';
|
|
19
19
|
import '../global/data-tests.js';
|
|
20
20
|
|
|
@@ -3,7 +3,7 @@ import classNames from 'classnames';
|
|
|
3
3
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
4
4
|
import ControlHelp from '../control-help/control-help.js';
|
|
5
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
|
-
import 'react
|
|
6
|
+
import 'react/compiler-runtime';
|
|
7
7
|
|
|
8
8
|
var styles = {"toggle":"ring-toggle-toggle","switch":"ring-toggle-switch","disabled":"ring-toggle-disabled","label":"ring-toggle-label","help":"ring-toggle-help","leftLabel":"ring-toggle-leftLabel","switchWrapper":"ring-toggle-switchWrapper","input":"ring-toggle-input","size16":"ring-toggle-size16","size14":"ring-toggle-size14","size20":"ring-toggle-size20"};
|
|
9
9
|
|
|
@@ -8,7 +8,8 @@ interface Context {
|
|
|
8
8
|
onNestedTooltipHide: () => void;
|
|
9
9
|
}
|
|
10
10
|
declare const TooltipContext: React.Context<Context | undefined>;
|
|
11
|
-
export interface TooltipProps extends Omit<AllHTMLAttributes<
|
|
11
|
+
export interface TooltipProps extends Omit<AllHTMLAttributes<HTMLElement>, 'title'> {
|
|
12
|
+
TagName?: 'span' | 'div' | null | undefined;
|
|
12
13
|
delay?: number | null | undefined;
|
|
13
14
|
selfOverflowOnly?: boolean | null | undefined;
|
|
14
15
|
popupProps?: Partial<PopupAttrs> | null | undefined;
|
|
@@ -15,7 +15,7 @@ import 'combokeys';
|
|
|
15
15
|
import '../global/sniffer.js';
|
|
16
16
|
import 'sniffr';
|
|
17
17
|
import '../tab-trap/tab-trap.js';
|
|
18
|
-
import 'react
|
|
18
|
+
import 'react/compiler-runtime';
|
|
19
19
|
import '../global/configuration.js';
|
|
20
20
|
import '../popup/position.js';
|
|
21
21
|
import '../popup/popup.consts.js';
|
|
@@ -161,6 +161,7 @@ class Tooltip extends Component {
|
|
|
161
161
|
render() {
|
|
162
162
|
const {
|
|
163
163
|
children,
|
|
164
|
+
TagName,
|
|
164
165
|
'data-test': dataTest,
|
|
165
166
|
title,
|
|
166
167
|
delay,
|
|
@@ -182,6 +183,7 @@ class Tooltip extends Component {
|
|
|
182
183
|
onNestedTooltipShow,
|
|
183
184
|
onNestedTooltipHide
|
|
184
185
|
} = this;
|
|
186
|
+
const WrapperElement = TagName || 'span';
|
|
185
187
|
const popup = /*#__PURE__*/jsx(Popup, {
|
|
186
188
|
trapFocus: false,
|
|
187
189
|
anchorElement: this.containerNode,
|
|
@@ -200,12 +202,12 @@ class Tooltip extends Component {
|
|
|
200
202
|
}, popupProps?.className),
|
|
201
203
|
children: title
|
|
202
204
|
});
|
|
203
|
-
return /*#__PURE__*/jsx(TooltipContext
|
|
205
|
+
return /*#__PURE__*/jsx(TooltipContext, {
|
|
204
206
|
value: {
|
|
205
207
|
onNestedTooltipShow,
|
|
206
208
|
onNestedTooltipHide
|
|
207
209
|
},
|
|
208
|
-
children: /*#__PURE__*/jsxs(
|
|
210
|
+
children: /*#__PURE__*/jsxs(WrapperElement, {
|
|
209
211
|
...ariaProps,
|
|
210
212
|
...restProps,
|
|
211
213
|
ref: this.containerRef,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import { type ReactNode, type Ref } from 'react';
|
|
2
2
|
export type UploadVariant = 'empty' | 'error' | 'success';
|
|
3
3
|
interface Props {
|
|
4
4
|
className?: string;
|
|
@@ -10,10 +10,11 @@ interface Props {
|
|
|
10
10
|
accept?: HTMLInputElement['accept'];
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
variant?: UploadVariant;
|
|
13
|
+
ref?: Ref<UploadHandle>;
|
|
13
14
|
children?: ReactNode;
|
|
14
15
|
}
|
|
15
16
|
export interface UploadHandle {
|
|
16
17
|
openFilePicker: () => void;
|
|
17
18
|
}
|
|
18
|
-
export
|
|
19
|
-
export
|
|
19
|
+
export default function UploadInner({ children, className, onFilesSelected, onFilesRejected, validate, variant, multiple, renderIcon, accept, disabled, ref, }: Props): import("react").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c } from 'react
|
|
2
|
-
import {
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
|
+
import { useRef, useState, useImperativeHandle } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import attachmentIcon from '@jetbrains/icons/attachment';
|
|
5
5
|
import Icon from '../icon/icon.js';
|
|
@@ -7,7 +7,6 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
7
7
|
import 'util-deprecate';
|
|
8
8
|
import '../icon/icon.constants.js';
|
|
9
9
|
import '../_helpers/icon-svg.js';
|
|
10
|
-
import '../global/configuration.js';
|
|
11
10
|
import '../global/memoize.js';
|
|
12
11
|
|
|
13
12
|
var styles = {"upload":"ring-upload-upload","success":"ring-upload-success","error":"ring-upload-error","dragOver":"ring-upload-dragOver","disabled":"ring-upload-disabled","invisibleFileInput":"ring-upload-invisibleFileInput","attachmentIcon":"ring-upload-attachmentIcon"};
|
|
@@ -18,11 +17,11 @@ const defaultRenderIcon = () => /*#__PURE__*/jsx(Icon, {
|
|
|
18
17
|
});
|
|
19
18
|
function UploadInner(t0) {
|
|
20
19
|
const $ = c(29);
|
|
21
|
-
if ($[0] !== "
|
|
20
|
+
if ($[0] !== "d58de564c5913f5a17e892bfa80bc62db12ed2c472d455b1315750c6d5bfd08f") {
|
|
22
21
|
for (let $i = 0; $i < 29; $i += 1) {
|
|
23
22
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
24
23
|
}
|
|
25
|
-
$[0] = "
|
|
24
|
+
$[0] = "d58de564c5913f5a17e892bfa80bc62db12ed2c472d455b1315750c6d5bfd08f";
|
|
26
25
|
}
|
|
27
26
|
const {
|
|
28
27
|
children,
|
|
@@ -35,7 +34,7 @@ function UploadInner(t0) {
|
|
|
35
34
|
renderIcon: t3,
|
|
36
35
|
accept,
|
|
37
36
|
disabled,
|
|
38
|
-
|
|
37
|
+
ref
|
|
39
38
|
} = t0;
|
|
40
39
|
const validate = t1 === undefined ? _temp : t1;
|
|
41
40
|
const variant = t2 === undefined ? "empty" : t2;
|
|
@@ -55,7 +54,7 @@ function UploadInner(t0) {
|
|
|
55
54
|
t4 = $[1];
|
|
56
55
|
t5 = $[2];
|
|
57
56
|
}
|
|
58
|
-
useImperativeHandle(
|
|
57
|
+
useImperativeHandle(ref, t4, t5);
|
|
59
58
|
let t6;
|
|
60
59
|
if ($[3] !== onFilesRejected || $[4] !== onFilesSelected || $[5] !== validate) {
|
|
61
60
|
t6 = files => {
|
|
@@ -183,27 +182,5 @@ function _temp2(e) {
|
|
|
183
182
|
function _temp() {
|
|
184
183
|
return true;
|
|
185
184
|
}
|
|
186
|
-
const Upload = /*#__PURE__*/forwardRef(function Upload(props, ref) {
|
|
187
|
-
const $ = c(4);
|
|
188
|
-
if ($[0] !== "7d5a4ecc65f01d46fa3e08e16dbed39a1cd6f740a025c62cc404b96900b00084") {
|
|
189
|
-
for (let $i = 0; $i < 4; $i += 1) {
|
|
190
|
-
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
191
|
-
}
|
|
192
|
-
$[0] = "7d5a4ecc65f01d46fa3e08e16dbed39a1cd6f740a025c62cc404b96900b00084";
|
|
193
|
-
}
|
|
194
|
-
let t0;
|
|
195
|
-
if ($[1] !== props || $[2] !== ref) {
|
|
196
|
-
t0 = /*#__PURE__*/jsx(UploadInner, {
|
|
197
|
-
...props,
|
|
198
|
-
forwardedRef: ref
|
|
199
|
-
});
|
|
200
|
-
$[1] = props;
|
|
201
|
-
$[2] = ref;
|
|
202
|
-
$[3] = t0;
|
|
203
|
-
} else {
|
|
204
|
-
t0 = $[3];
|
|
205
|
-
}
|
|
206
|
-
return t0;
|
|
207
|
-
});
|
|
208
185
|
|
|
209
|
-
export {
|
|
186
|
+
export { UploadInner as default };
|
|
@@ -19,8 +19,7 @@ import '../icon/icon.js';
|
|
|
19
19
|
import 'util-deprecate';
|
|
20
20
|
import '../icon/icon.constants.js';
|
|
21
21
|
import '../_helpers/icon-svg.js';
|
|
22
|
-
import 'react
|
|
23
|
-
import '../global/configuration.js';
|
|
22
|
+
import 'react/compiler-runtime';
|
|
24
23
|
import '../global/memoize.js';
|
|
25
24
|
import '../loader-inline/loader-inline.js';
|
|
26
25
|
import '../global/data-tests.js';
|
|
@@ -30,6 +29,7 @@ import '@jetbrains/icons/chevron-down';
|
|
|
30
29
|
import '@jetbrains/icons/chevron-12px-down';
|
|
31
30
|
import '../link/clickable-link.js';
|
|
32
31
|
import '../_helpers/button.classes.js';
|
|
32
|
+
import '../global/configuration.js';
|
|
33
33
|
import '../_helpers/theme.js';
|
|
34
34
|
import '../alert/alert-heading.js';
|
|
35
35
|
import '../heading/heading.js';
|
|
@@ -60,8 +60,13 @@ import '../popup/popup.js';
|
|
|
60
60
|
import '../popup/position.js';
|
|
61
61
|
import '../popup/popup.consts.js';
|
|
62
62
|
import '../popup/position-css.js';
|
|
63
|
-
import '../
|
|
63
|
+
import '../global/get-viewport-size.js';
|
|
64
|
+
import '../dialog/dialog-body-scroll-preventer.js';
|
|
64
65
|
import 'scrollbar-width';
|
|
66
|
+
import '../_helpers/dialog.js';
|
|
67
|
+
import '../dialog/dialog-controls.js';
|
|
68
|
+
import '@jetbrains/icons/resize-corner-12px';
|
|
69
|
+
import '../dialog/dialog-geometry.js';
|
|
65
70
|
import '../panel/panel.js';
|
|
66
71
|
import '../i18n/i18n-context.js';
|
|
67
72
|
import '../i18n/i18n.js';
|
|
@@ -283,7 +288,10 @@ class UserAgreementService {
|
|
|
283
288
|
preview,
|
|
284
289
|
...restOptions
|
|
285
290
|
};
|
|
286
|
-
this.
|
|
291
|
+
if (!this.container.isConnected) {
|
|
292
|
+
document.body.appendChild(this.container);
|
|
293
|
+
}
|
|
294
|
+
this.reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext, {
|
|
287
295
|
value: getGlobalControlsHeight(),
|
|
288
296
|
children: /*#__PURE__*/jsx(UserAgreement, {
|
|
289
297
|
...props
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
2
|
import Dialog from '../dialog/dialog.js';
|
|
3
|
+
import 'classnames';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
import '../_helpers/island.js';
|
|
6
6
|
import HeaderWrapper from '../island/header.js';
|
|
@@ -9,12 +9,11 @@ import Panel from '../panel/panel.js';
|
|
|
9
9
|
import { Button } from '../button/button.js';
|
|
10
10
|
import { I18nContext } from '../i18n/i18n-context.js';
|
|
11
11
|
import 'react-dom';
|
|
12
|
-
import '@jetbrains/icons/close';
|
|
13
12
|
import '../island/island.js';
|
|
14
13
|
import '../global/data-tests.js';
|
|
15
14
|
import '../island/adaptive-island-hoc.js';
|
|
16
15
|
import '../global/linear-function.js';
|
|
17
|
-
import 'react
|
|
16
|
+
import 'react/compiler-runtime';
|
|
18
17
|
import 'element-resize-detector';
|
|
19
18
|
import '../global/schedule-raf.js';
|
|
20
19
|
import '../global/get-uid.js';
|
|
@@ -33,21 +32,27 @@ import '../popup/position.js';
|
|
|
33
32
|
import '../popup/popup.consts.js';
|
|
34
33
|
import '../popup/position-css.js';
|
|
35
34
|
import '../_helpers/theme.js';
|
|
36
|
-
import '../
|
|
35
|
+
import '../global/get-viewport-size.js';
|
|
36
|
+
import '../dialog/dialog-body-scroll-preventer.js';
|
|
37
37
|
import 'scrollbar-width';
|
|
38
|
-
import '
|
|
39
|
-
import '
|
|
40
|
-
import '
|
|
38
|
+
import '../_helpers/dialog.js';
|
|
39
|
+
import '../dialog/dialog-controls.js';
|
|
40
|
+
import '@jetbrains/icons/close';
|
|
41
|
+
import '@jetbrains/icons/resize-corner-12px';
|
|
41
42
|
import '../icon/icon.js';
|
|
43
|
+
import 'util-deprecate';
|
|
42
44
|
import '../icon/icon.constants.js';
|
|
43
45
|
import '../_helpers/icon-svg.js';
|
|
44
46
|
import '../global/memoize.js';
|
|
47
|
+
import '@jetbrains/icons/chevron-down';
|
|
48
|
+
import '@jetbrains/icons/chevron-12px-down';
|
|
45
49
|
import '../link/clickable-link.js';
|
|
46
50
|
import '../global/controls-height.js';
|
|
47
51
|
import '../_helpers/button.classes.js';
|
|
52
|
+
import '../dialog/dialog-geometry.js';
|
|
48
53
|
import '../i18n/i18n.js';
|
|
49
54
|
|
|
50
|
-
var style = {"extra-small-screen-media":"(max-width: 639px)","
|
|
55
|
+
var style = {"extra-small-screen-media":"(max-width: 639px)","dialogContent":"ring-user-agreement-dialogContent","suggestion":"ring-user-agreement-suggestion"};
|
|
51
56
|
|
|
52
57
|
function noop() {}
|
|
53
58
|
/**
|
|
@@ -85,11 +90,11 @@ class UserAgreement extends PureComponent {
|
|
|
85
90
|
children: ({
|
|
86
91
|
translate
|
|
87
92
|
}) => {
|
|
88
|
-
var _translations$userAgr, _translations$userAgr2, _translations$scrollT, _translations$
|
|
93
|
+
var _translations$userAgr, _translations$userAgr2, _translations$scrollT, _translations$scrollT2, _translations$decline, _translations$remindL, _translations$accept, _translations$close;
|
|
89
94
|
return /*#__PURE__*/jsxs(Dialog, {
|
|
90
95
|
label: (_translations$userAgr = translations?.userAgreement) !== null && _translations$userAgr !== void 0 ? _translations$userAgr : translate('userAgreement'),
|
|
91
96
|
show: show,
|
|
92
|
-
className:
|
|
97
|
+
className: className !== null && className !== void 0 ? className : undefined,
|
|
93
98
|
contentClassName: style.dialogContent,
|
|
94
99
|
trapFocus: true,
|
|
95
100
|
autoFocusFirst: false,
|
|
@@ -105,25 +110,24 @@ class UserAgreement extends PureComponent {
|
|
|
105
110
|
children: [onRemindLater && !scrolledDown && /*#__PURE__*/jsx("div", {
|
|
106
111
|
className: style.suggestion,
|
|
107
112
|
children: (_translations$scrollT = translations?.scrollToAccept) !== null && _translations$scrollT !== void 0 ? _translations$scrollT : translate('scrollToAccept')
|
|
108
|
-
}), /*#__PURE__*/jsx(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
onClick: onAccept,
|
|
112
|
-
"data-test": "accept",
|
|
113
|
-
children: (_translations$accept = translations?.accept) !== null && _translations$accept !== void 0 ? _translations$accept : translate('accept')
|
|
113
|
+
}), !onRemindLater && !scrolledDown && /*#__PURE__*/jsx("span", {
|
|
114
|
+
className: style.suggestion,
|
|
115
|
+
children: (_translations$scrollT2 = translations?.scrollToAccept) !== null && _translations$scrollT2 !== void 0 ? _translations$scrollT2 : translate('scrollToAccept')
|
|
114
116
|
}), /*#__PURE__*/jsx(Button, {
|
|
115
117
|
onClick: onDecline,
|
|
116
118
|
autoFocus: true,
|
|
117
119
|
"data-test": "decline",
|
|
118
120
|
children: (_translations$decline = translations?.decline) !== null && _translations$decline !== void 0 ? _translations$decline : translate('decline')
|
|
119
|
-
}), !onRemindLater && !scrolledDown && /*#__PURE__*/jsx("span", {
|
|
120
|
-
className: style.suggestion,
|
|
121
|
-
children: (_translations$scrollT2 = translations?.scrollToAccept) !== null && _translations$scrollT2 !== void 0 ? _translations$scrollT2 : translate('scrollToAccept')
|
|
122
121
|
}), onRemindLater && /*#__PURE__*/jsx(Button, {
|
|
123
|
-
className: style.remindLaterButton,
|
|
124
122
|
onClick: onRemindLater,
|
|
125
123
|
"data-test": "later",
|
|
126
124
|
children: (_translations$remindL = translations?.remindLater) !== null && _translations$remindL !== void 0 ? _translations$remindL : translate('remindLater')
|
|
125
|
+
}), /*#__PURE__*/jsx(Button, {
|
|
126
|
+
primary: true,
|
|
127
|
+
disabled: !scrolledDown,
|
|
128
|
+
onClick: onAccept,
|
|
129
|
+
"data-test": "accept",
|
|
130
|
+
children: (_translations$accept = translations?.accept) !== null && _translations$accept !== void 0 ? _translations$accept : translate('accept')
|
|
127
131
|
})]
|
|
128
132
|
}), preview && /*#__PURE__*/jsx(Panel, {
|
|
129
133
|
children: /*#__PURE__*/jsx(Button, {
|
|
@@ -12,13 +12,10 @@ export { U as default } from '../_helpers/card.js';
|
|
|
12
12
|
import 'react/jsx-runtime';
|
|
13
13
|
import '../avatar/avatar-size.js';
|
|
14
14
|
import '../icon/icon.constants.js';
|
|
15
|
-
import 'core-js/modules/es.array.includes.js';
|
|
16
|
-
import 'util-deprecate';
|
|
17
15
|
import '../global/url.js';
|
|
18
16
|
import '../global/dom.js';
|
|
19
|
-
import '../global/memoize.js';
|
|
20
17
|
import '../avatar/fallback-avatar.js';
|
|
21
|
-
import 'react
|
|
18
|
+
import 'react/compiler-runtime';
|
|
22
19
|
import '../global/get-uid.js';
|
|
23
20
|
import '../_helpers/avatar-info.js';
|
|
24
21
|
import '../global/data-tests.js';
|
|
@@ -37,9 +34,11 @@ import '../button/button.js';
|
|
|
37
34
|
import '@jetbrains/icons/chevron-down';
|
|
38
35
|
import '@jetbrains/icons/chevron-12px-down';
|
|
39
36
|
import '../global/controls-height.js';
|
|
37
|
+
import 'util-deprecate';
|
|
40
38
|
import '../global/configuration.js';
|
|
41
39
|
import '../_helpers/button.classes.js';
|
|
42
40
|
import '../_helpers/icon-svg.js';
|
|
41
|
+
import '../global/memoize.js';
|
|
43
42
|
import '../_helpers/theme.js';
|
|
44
43
|
import '../alert/alert-heading.js';
|
|
45
44
|
import '../heading/heading.js';
|
|
@@ -55,6 +54,7 @@ import '../popup/popup.js';
|
|
|
55
54
|
import '../global/schedule-raf.js';
|
|
56
55
|
import '../shortcuts/shortcuts.js';
|
|
57
56
|
import '../shortcuts/core.js';
|
|
57
|
+
import 'core-js/modules/es.array.includes.js';
|
|
58
58
|
import 'combokeys';
|
|
59
59
|
import '../global/sniffer.js';
|
|
60
60
|
import 'sniffr';
|
|
@@ -8,18 +8,18 @@ import '../global/data-tests.js';
|
|
|
8
8
|
import '../dropdown/dropdown.js';
|
|
9
9
|
import '../global/typescript-utils.js';
|
|
10
10
|
import '../_helpers/anchor.js';
|
|
11
|
-
import 'react
|
|
11
|
+
import 'react/compiler-runtime';
|
|
12
12
|
import '../button/button.js';
|
|
13
13
|
import '@jetbrains/icons/chevron-down';
|
|
14
14
|
import '@jetbrains/icons/chevron-12px-down';
|
|
15
|
-
import 'util-deprecate';
|
|
16
15
|
import '../icon/icon.js';
|
|
16
|
+
import 'util-deprecate';
|
|
17
17
|
import '../icon/icon.constants.js';
|
|
18
18
|
import '../_helpers/icon-svg.js';
|
|
19
|
-
import '../global/configuration.js';
|
|
20
19
|
import '../global/memoize.js';
|
|
21
20
|
import '../link/clickable-link.js';
|
|
22
21
|
import '../global/controls-height.js';
|
|
22
|
+
import '../global/configuration.js';
|
|
23
23
|
import '../_helpers/button.classes.js';
|
|
24
24
|
import '../popup/popup.js';
|
|
25
25
|
import 'react-dom';
|
|
@@ -7,18 +7,18 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
7
7
|
import '../global/data-tests.js';
|
|
8
8
|
import '../global/typescript-utils.js';
|
|
9
9
|
import '../_helpers/anchor.js';
|
|
10
|
-
import 'react
|
|
10
|
+
import 'react/compiler-runtime';
|
|
11
11
|
import '../button/button.js';
|
|
12
12
|
import '@jetbrains/icons/chevron-down';
|
|
13
13
|
import '@jetbrains/icons/chevron-12px-down';
|
|
14
|
-
import 'util-deprecate';
|
|
15
14
|
import '../icon/icon.js';
|
|
15
|
+
import 'util-deprecate';
|
|
16
16
|
import '../icon/icon.constants.js';
|
|
17
17
|
import '../_helpers/icon-svg.js';
|
|
18
|
-
import '../global/configuration.js';
|
|
19
18
|
import '../global/memoize.js';
|
|
20
19
|
import '../link/clickable-link.js';
|
|
21
20
|
import '../global/controls-height.js';
|
|
21
|
+
import '../global/configuration.js';
|
|
22
22
|
import '../_helpers/button.classes.js';
|
|
23
23
|
import 'react-dom';
|
|
24
24
|
import '../global/get-uid.js';
|
|
@@ -5,13 +5,10 @@ import 'react';
|
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@jetbrains/icons/copy';
|
|
7
7
|
import '../avatar/avatar.js';
|
|
8
|
-
import 'core-js/modules/es.array.includes.js';
|
|
9
|
-
import 'util-deprecate';
|
|
10
8
|
import '../global/url.js';
|
|
11
9
|
import '../global/dom.js';
|
|
12
|
-
import '../global/memoize.js';
|
|
13
10
|
import '../avatar/fallback-avatar.js';
|
|
14
|
-
import 'react
|
|
11
|
+
import 'react/compiler-runtime';
|
|
15
12
|
import '../global/get-uid.js';
|
|
16
13
|
import '../avatar/avatar-size.js';
|
|
17
14
|
import 'react/jsx-runtime';
|
|
@@ -30,14 +27,16 @@ import '@jetbrains/icons/warning';
|
|
|
30
27
|
import '@jetbrains/icons/info-filled';
|
|
31
28
|
import '@jetbrains/icons/close';
|
|
32
29
|
import '../icon/icon.js';
|
|
30
|
+
import 'util-deprecate';
|
|
33
31
|
import '../icon/icon.constants.js';
|
|
34
32
|
import '../_helpers/icon-svg.js';
|
|
35
|
-
import '../global/
|
|
33
|
+
import '../global/memoize.js';
|
|
36
34
|
import '../loader-inline/loader-inline.js';
|
|
37
35
|
import '../button/button.js';
|
|
38
36
|
import '@jetbrains/icons/chevron-down';
|
|
39
37
|
import '@jetbrains/icons/chevron-12px-down';
|
|
40
38
|
import '../global/controls-height.js';
|
|
39
|
+
import '../global/configuration.js';
|
|
41
40
|
import '../_helpers/button.classes.js';
|
|
42
41
|
import '../_helpers/theme.js';
|
|
43
42
|
import '../alert/alert-heading.js';
|
|
@@ -57,6 +56,7 @@ import '../popup/popup.js';
|
|
|
57
56
|
import '../global/schedule-raf.js';
|
|
58
57
|
import '../shortcuts/shortcuts.js';
|
|
59
58
|
import '../shortcuts/core.js';
|
|
59
|
+
import 'core-js/modules/es.array.includes.js';
|
|
60
60
|
import 'combokeys';
|
|
61
61
|
import '../global/sniffer.js';
|
|
62
62
|
import 'sniffr';
|
|
@@ -1 +1,27 @@
|
|
|
1
1
|
export declare const hideAddonsPanelParam = "hideAddonsPanel";
|
|
2
|
+
export declare function createRandom(seed: bigint): {
|
|
3
|
+
/**
|
|
4
|
+
* Fractional in [0, 1)
|
|
5
|
+
*/
|
|
6
|
+
(): number;
|
|
7
|
+
/**
|
|
8
|
+
* Integer in [0, to)
|
|
9
|
+
*/
|
|
10
|
+
(to: number): number;
|
|
11
|
+
/**
|
|
12
|
+
* Integer in [from, to)
|
|
13
|
+
*/
|
|
14
|
+
(from: number, to: number): number;
|
|
15
|
+
/**
|
|
16
|
+
* Date in [from, to)
|
|
17
|
+
*/
|
|
18
|
+
(from: Date, to: Date): Date;
|
|
19
|
+
/**
|
|
20
|
+
* Up to random n items (in random order) from the array
|
|
21
|
+
*/
|
|
22
|
+
<T>(array: readonly T[], n: number): T[];
|
|
23
|
+
/**
|
|
24
|
+
* Random item from the array
|
|
25
|
+
*/
|
|
26
|
+
<T>(array: readonly T[]): T;
|
|
27
|
+
};
|