@jetbrains/ring-ui-built 7.0.115 → 8.0.0-beta.3
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 +1 -1
- package/components/_helpers/icon-svg.js +1 -1
- 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.js +1 -1
- package/components/alert-service/alert-service.js +1 -1
- package/components/auth/auth-core.js +1 -1
- package/components/auth/auth.js +1 -1
- package/components/auth/down-notification.js +1 -1
- package/components/auth/iframe-flow.js +1 -1
- package/components/auth/storage.js +1 -1
- package/components/auth-dialog/auth-dialog.js +1 -1
- package/components/auth-dialog-service/auth-dialog-service.js +2 -2
- package/components/avatar/avatar-info.js +1 -1
- package/components/avatar/avatar.js +1 -1
- package/components/avatar/fallback-avatar.js +1 -1
- package/components/avatar-stack/avatar-stack.js +1 -1
- package/components/banner/banner.js +1 -1
- package/components/button/button.js +1 -1
- package/components/button-group/button-group.js +1 -1
- package/components/checkbox/checkbox.js +1 -1
- package/components/clipboard/clipboard.js +1 -1
- package/components/collapse/collapse-content.js +5 -5
- package/components/collapse/collapse-control.js +5 -5
- package/components/collapse/collapse.js +4 -4
- package/components/confirm/confirm.js +1 -1
- package/components/confirm-service/confirm-service.js +2 -2
- package/components/contenteditable/contenteditable.js +1 -1
- 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 +3 -3
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +1 -1
- package/components/data-list/item.d.ts +1 -1
- package/components/data-list/item.js +1 -1
- package/components/data-list/selection.d.ts +1 -1
- package/components/data-list/selection.js +2 -2
- package/components/data-list/title.js +1 -1
- package/components/date-picker/date-input.js +1 -1
- package/components/date-picker/date-picker.js +2 -3
- package/components/date-picker/date-popup.js +2 -3
- 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 -35
- package/components/date-picker/use-intersection-observer.js +1 -1
- package/components/date-picker/use-scroll-behavior.js +45 -44
- package/components/date-picker/weekdays.js +1 -1
- package/components/date-picker/years.js +61 -54
- package/components/dialog/dialog.d.ts +2 -2
- package/components/dialog/dialog.js +3 -3
- package/components/dropdown/anchor.js +1 -1
- package/components/dropdown/dropdown.js +1 -1
- package/components/dropdown-menu/dropdown-menu.d.ts +4 -4
- package/components/dropdown-menu/dropdown-menu.js +62 -57
- package/components/editable-heading/editable-heading.d.ts +1 -2
- package/components/editable-heading/editable-heading.js +13 -12
- package/components/error-bubble/error-bubble.js +1 -1
- package/components/error-message/error-message.js +1 -1
- package/components/expand/collapsible-group.d.ts +5 -1
- package/components/expand/collapsible-group.js +15 -14
- package/components/footer/footer.js +1 -1
- package/components/global/create-stateful-context.js +11 -11
- package/components/global/intersection-observer-context.d.ts +26 -0
- package/components/global/intersection-observer-context.js +140 -0
- package/components/global/rerender-hoc.d.ts +4 -2
- package/components/global/rerender-hoc.js +10 -24
- package/components/{table/selection.d.ts → global/table-selection.d.ts} +15 -15
- package/components/{table/selection.js → global/table-selection.js} +4 -4
- package/components/global/theme.d.ts +4 -3
- package/components/global/theme.js +1 -1
- package/components/header/header-icon.js +1 -1
- package/components/header/header.js +1 -1
- package/components/header/links.js +1 -1
- package/components/header/logo.js +1 -1
- package/components/header/profile.js +1 -1
- package/components/header/services.js +1 -1
- package/components/header/smart-profile.js +1 -1
- package/components/header/smart-services.js +1 -1
- package/components/heading/heading.js +1 -1
- package/components/i18n/i18n-context.js +4 -4
- package/components/icon/icon-svg.js +1 -1
- package/components/icon/icon.js +1 -1
- package/components/icon/index.js +1 -1
- package/components/input/input.js +1 -1
- 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 +1 -1
- package/components/island/island.js +1 -1
- package/components/{table → legacy-table}/cell.js +1 -1
- package/components/{table → legacy-table}/header-cell.js +4 -4
- package/components/{table → legacy-table}/header.js +2 -2
- package/components/{table → legacy-table}/multitable.d.ts +1 -1
- package/components/{table → legacy-table}/row-with-focus-sensor.js +2 -2
- package/components/{table → legacy-table}/row.js +4 -4
- 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 +4 -4
- package/components/{table → legacy-table}/smart-table.d.ts +5 -5
- package/components/{table → legacy-table}/smart-table.js +5 -5
- package/components/legacy-table/table.d.ts +109 -0
- package/components/legacy-table/table.js +369 -0
- package/components/list/list-item.js +1 -1
- package/components/list/list-users-groups-source.js +1 -1
- package/components/list/list.js +1 -1
- package/components/login-dialog/login-dialog.js +1 -1
- package/components/login-dialog/service.js +2 -2
- package/components/message/message.js +1 -1
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.js +1 -1
- 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 -1
- 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 +32 -18
- 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 +1 -1
- package/components/select/select-filter.js +1 -1
- package/components/select/select-popup.js +1 -1
- package/components/select/select.d.ts +3 -1
- package/components/select/select.js +1 -1
- package/components/slider/slider.js +100 -96
- package/components/storage/storage-local.js +1 -1
- package/components/storage/storage.js +1 -1
- 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 +36 -0
- package/components/table/default-item-renderer.js +182 -0
- package/components/table/table-component.d.ts +80 -0
- package/components/table/table-component.js +290 -0
- package/components/table/table-const.d.ts +8 -0
- package/components/table/table-const.js +11 -0
- package/components/table/table-primitives.d.ts +28 -0
- package/components/table/table-primitives.js +323 -0
- package/components/table/table-row-focus.d.ts +4 -0
- package/components/table/table-row-focus.js +41 -0
- package/components/table/table-virtualize.d.ts +32 -0
- package/components/table/table-virtualize.js +329 -0
- package/components/table/table.d.ts +206 -104
- package/components/table/table.js +19 -362
- 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 +1 -1
- package/components/tags-list/tags-list.js +1 -1
- package/components/toggle/toggle.js +1 -1
- package/components/tooltip/tooltip.js +2 -2
- package/components/upload/upload.d.ts +4 -3
- package/components/upload/upload.js +7 -29
- package/components/user-agreement/service.js +2 -2
- package/components/user-agreement/user-agreement.js +1 -1
- package/components/user-card/card.js +1 -1
- package/components/user-card/smart-user-card-tooltip.js +1 -1
- package/components/user-card/tooltip.js +1 -1
- package/components/user-card/user-card.js +1 -1
- package/package.json +6 -6
- package/components/global/use-event-callback.d.ts +0 -1
- package/components/global/use-event-callback.js +0 -44
- 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}/row.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
|
@@ -17,7 +17,7 @@ import '../global/url.js';
|
|
|
17
17
|
import '../global/dom.js';
|
|
18
18
|
import '../global/memoize.js';
|
|
19
19
|
import '../avatar/fallback-avatar.js';
|
|
20
|
-
import 'react
|
|
20
|
+
import 'react/compiler-runtime';
|
|
21
21
|
import '../_helpers/avatar-info.js';
|
|
22
22
|
import '@jetbrains/icons/checkmark-12px';
|
|
23
23
|
import '@jetbrains/icons/remove-12px';
|
|
@@ -22,7 +22,7 @@ import 'combokeys';
|
|
|
22
22
|
import '../global/sniffer.js';
|
|
23
23
|
import 'sniffr';
|
|
24
24
|
import '../global/create-stateful-context.js';
|
|
25
|
-
import 'react
|
|
25
|
+
import 'react/compiler-runtime';
|
|
26
26
|
import 'react/jsx-runtime';
|
|
27
27
|
import './list-item.js';
|
|
28
28
|
import '../avatar/avatar.js';
|
package/components/list/list.js
CHANGED
|
@@ -26,7 +26,7 @@ import '../shortcuts/core.js';
|
|
|
26
26
|
import 'combokeys';
|
|
27
27
|
import '../global/sniffer.js';
|
|
28
28
|
import 'sniffr';
|
|
29
|
-
import 'react
|
|
29
|
+
import 'react/compiler-runtime';
|
|
30
30
|
import '../avatar/avatar.js';
|
|
31
31
|
import '../global/url.js';
|
|
32
32
|
import '../avatar/fallback-avatar.js';
|
|
@@ -3,7 +3,7 @@ import Dialog from '../dialog/dialog.js';
|
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
import '../_helpers/island.js';
|
|
6
|
-
import 'react
|
|
6
|
+
import 'react/compiler-runtime';
|
|
7
7
|
import ContentWrapper from '../island/content.js';
|
|
8
8
|
import LoaderScreen from '../loader-screen/loader-screen.js';
|
|
9
9
|
import { HUB_AUTH_PAGE_OPENED } from '../auth/background-flow.js';
|
|
@@ -15,7 +15,7 @@ import '../island/adaptive-island-hoc.js';
|
|
|
15
15
|
import '../global/linear-function.js';
|
|
16
16
|
import '../_helpers/island.js';
|
|
17
17
|
import '../island/header.js';
|
|
18
|
-
import 'react
|
|
18
|
+
import 'react/compiler-runtime';
|
|
19
19
|
import '../island/content.js';
|
|
20
20
|
import 'element-resize-detector';
|
|
21
21
|
import '../global/schedule-raf.js';
|
|
@@ -58,7 +58,7 @@ const reactRoot = createRoot(containerElement);
|
|
|
58
58
|
* Renders LoginDialog into virtual node to skip maintaining container
|
|
59
59
|
*/
|
|
60
60
|
function renderLoginDialog(props) {
|
|
61
|
-
reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext
|
|
61
|
+
reactRoot.render(/*#__PURE__*/jsx(ControlsHeightContext, {
|
|
62
62
|
value: getGlobalControlsHeight(),
|
|
63
63
|
children: /*#__PURE__*/jsx(LoginDialog, {
|
|
64
64
|
...props
|
|
@@ -20,7 +20,7 @@ import '../global/sniffer.js';
|
|
|
20
20
|
import 'sniffr';
|
|
21
21
|
import '../global/data-tests.js';
|
|
22
22
|
import '../tab-trap/tab-trap.js';
|
|
23
|
-
import 'react
|
|
23
|
+
import 'react/compiler-runtime';
|
|
24
24
|
import '../global/configuration.js';
|
|
25
25
|
import '../popup/position.js';
|
|
26
26
|
import '../popup/popup.target.js';
|
|
@@ -6,11 +6,11 @@ const MAJOR_VERSION_INDEX = 0;
|
|
|
6
6
|
/**
|
|
7
7
|
* SUPPORTED_BROWSERS are defined by Babel plugin, see babel config
|
|
8
8
|
*/
|
|
9
|
-
if (!["and_chr 148", "and_ff 150", "and_qq 14.9", "and_uc 15.5", "android 148", "chrome 148", "chrome 147", "chrome 146", "chrome 145", "chrome 144", "chrome 143", "chrome 142", "chrome 141", "chrome 140", "chrome 139", "chrome 138", "chrome 137", "chrome 136", "chrome 135", "chrome 134", "chrome 133", "chrome 132", "chrome 131", "chrome 130", "chrome 129", "chrome 128", "chrome 127", "chrome 126", "chrome 125", "chrome 124", "chrome 123", "chrome 122", "chrome 121", "chrome 120", "chrome 112", "chrome 109", "edge 148", "edge 147", "edge 146", "edge 145", "edge 144", "edge 143", "edge 142", "edge 141", "edge 140", "edge 139", "edge 138", "edge 137", "edge 136", "edge 135", "edge 134", "edge 133", "edge 132", "edge 131", "edge 130", "edge 129", "edge 128", "edge 127", "edge 126", "edge 125", "edge 124", "edge 123", "edge 122", "edge 121", "edge 120", "firefox 150", "firefox 149", "firefox 148", "firefox 147", "firefox 146", "firefox 145", "firefox 144", "firefox 143", "firefox 142", "firefox 141", "firefox 140", "firefox 139", "firefox 138", "firefox 137", "firefox 136", "firefox 135", "firefox 134", "firefox 133", "firefox 132", "firefox 131", "firefox 130", "firefox 129", "firefox 128", "firefox 127", "firefox 126", "firefox 125", "firefox 124", "firefox 123", "firefox 122", "firefox 121", "firefox 120", "ios_saf 26.4", "ios_saf 26.3", "ios_saf 26.2", "ios_saf 26.1", "ios_saf 26.0", "ios_saf 18.5-18.7", "ios_saf 18.4", "ios_saf 18.3", "ios_saf 18.2", "ios_saf 18.1", "ios_saf 18.0", "ios_saf 17.6-17.7", "ios_saf 17.5", "ios_saf 17.4", "ios_saf 17.3", "ios_saf 17.2", "
|
|
9
|
+
if (!["and_chr 148", "and_ff 150", "and_qq 14.9", "and_uc 15.5", "android 148", "chrome 148", "chrome 147", "chrome 146", "chrome 145", "chrome 144", "chrome 143", "chrome 142", "chrome 141", "chrome 140", "chrome 139", "chrome 138", "chrome 137", "chrome 136", "chrome 135", "chrome 134", "chrome 133", "chrome 132", "chrome 131", "chrome 130", "chrome 129", "chrome 128", "chrome 127", "chrome 126", "chrome 125", "chrome 124", "chrome 123", "chrome 122", "chrome 121", "chrome 120", "chrome 112", "chrome 109", "edge 148", "edge 147", "edge 146", "edge 145", "edge 144", "edge 143", "edge 142", "edge 141", "edge 140", "edge 139", "edge 138", "edge 137", "edge 136", "edge 135", "edge 134", "edge 133", "edge 132", "edge 131", "edge 130", "edge 129", "edge 128", "edge 127", "edge 126", "edge 125", "edge 124", "edge 123", "edge 122", "edge 121", "edge 120", "firefox 150", "firefox 149", "firefox 148", "firefox 147", "firefox 146", "firefox 145", "firefox 144", "firefox 143", "firefox 142", "firefox 141", "firefox 140", "firefox 139", "firefox 138", "firefox 137", "firefox 136", "firefox 135", "firefox 134", "firefox 133", "firefox 132", "firefox 131", "firefox 130", "firefox 129", "firefox 128", "firefox 127", "firefox 126", "firefox 125", "firefox 124", "firefox 123", "firefox 122", "firefox 121", "firefox 120", "ios_saf 26.4", "ios_saf 26.3", "ios_saf 26.2", "ios_saf 26.1", "ios_saf 26.0", "ios_saf 18.5-18.7", "ios_saf 18.4", "ios_saf 18.3", "ios_saf 18.2", "ios_saf 18.1", "ios_saf 18.0", "ios_saf 17.6-17.7", "ios_saf 17.5", "ios_saf 17.4", "ios_saf 17.3", "ios_saf 17.2", "kaios 3.0-3.1", "kaios 2.5", "op_mini all", "op_mob 80", "opera 131", "opera 127", "safari 26.4", "safari 26.3", "safari 26.2", "safari 26.1", "safari 26.0", "safari 18.5-18.7", "safari 18.4", "safari 18.3", "safari 18.2", "safari 18.1", "safari 18.0", "safari 17.6", "safari 17.5", "safari 17.4", "safari 17.3", "safari 17.2", "samsung 29", "samsung 28"]) {
|
|
10
10
|
// eslint-disable-next-line no-console
|
|
11
11
|
console.warn('Ring UI: no SUPPORTED_BROWSERS passed. Please check babel config.');
|
|
12
12
|
}
|
|
13
|
-
const SUPPORTED = ["and_chr 148", "and_ff 150", "and_qq 14.9", "and_uc 15.5", "android 148", "chrome 148", "chrome 147", "chrome 146", "chrome 145", "chrome 144", "chrome 143", "chrome 142", "chrome 141", "chrome 140", "chrome 139", "chrome 138", "chrome 137", "chrome 136", "chrome 135", "chrome 134", "chrome 133", "chrome 132", "chrome 131", "chrome 130", "chrome 129", "chrome 128", "chrome 127", "chrome 126", "chrome 125", "chrome 124", "chrome 123", "chrome 122", "chrome 121", "chrome 120", "chrome 112", "chrome 109", "edge 148", "edge 147", "edge 146", "edge 145", "edge 144", "edge 143", "edge 142", "edge 141", "edge 140", "edge 139", "edge 138", "edge 137", "edge 136", "edge 135", "edge 134", "edge 133", "edge 132", "edge 131", "edge 130", "edge 129", "edge 128", "edge 127", "edge 126", "edge 125", "edge 124", "edge 123", "edge 122", "edge 121", "edge 120", "firefox 150", "firefox 149", "firefox 148", "firefox 147", "firefox 146", "firefox 145", "firefox 144", "firefox 143", "firefox 142", "firefox 141", "firefox 140", "firefox 139", "firefox 138", "firefox 137", "firefox 136", "firefox 135", "firefox 134", "firefox 133", "firefox 132", "firefox 131", "firefox 130", "firefox 129", "firefox 128", "firefox 127", "firefox 126", "firefox 125", "firefox 124", "firefox 123", "firefox 122", "firefox 121", "firefox 120", "ios_saf 26.4", "ios_saf 26.3", "ios_saf 26.2", "ios_saf 26.1", "ios_saf 26.0", "ios_saf 18.5-18.7", "ios_saf 18.4", "ios_saf 18.3", "ios_saf 18.2", "ios_saf 18.1", "ios_saf 18.0", "ios_saf 17.6-17.7", "ios_saf 17.5", "ios_saf 17.4", "ios_saf 17.3", "ios_saf 17.2", "
|
|
13
|
+
const SUPPORTED = ["and_chr 148", "and_ff 150", "and_qq 14.9", "and_uc 15.5", "android 148", "chrome 148", "chrome 147", "chrome 146", "chrome 145", "chrome 144", "chrome 143", "chrome 142", "chrome 141", "chrome 140", "chrome 139", "chrome 138", "chrome 137", "chrome 136", "chrome 135", "chrome 134", "chrome 133", "chrome 132", "chrome 131", "chrome 130", "chrome 129", "chrome 128", "chrome 127", "chrome 126", "chrome 125", "chrome 124", "chrome 123", "chrome 122", "chrome 121", "chrome 120", "chrome 112", "chrome 109", "edge 148", "edge 147", "edge 146", "edge 145", "edge 144", "edge 143", "edge 142", "edge 141", "edge 140", "edge 139", "edge 138", "edge 137", "edge 136", "edge 135", "edge 134", "edge 133", "edge 132", "edge 131", "edge 130", "edge 129", "edge 128", "edge 127", "edge 126", "edge 125", "edge 124", "edge 123", "edge 122", "edge 121", "edge 120", "firefox 150", "firefox 149", "firefox 148", "firefox 147", "firefox 146", "firefox 145", "firefox 144", "firefox 143", "firefox 142", "firefox 141", "firefox 140", "firefox 139", "firefox 138", "firefox 137", "firefox 136", "firefox 135", "firefox 134", "firefox 133", "firefox 132", "firefox 131", "firefox 130", "firefox 129", "firefox 128", "firefox 127", "firefox 126", "firefox 125", "firefox 124", "firefox 123", "firefox 122", "firefox 121", "firefox 120", "ios_saf 26.4", "ios_saf 26.3", "ios_saf 26.2", "ios_saf 26.1", "ios_saf 26.0", "ios_saf 18.5-18.7", "ios_saf 18.4", "ios_saf 18.3", "ios_saf 18.2", "ios_saf 18.1", "ios_saf 18.0", "ios_saf 17.6-17.7", "ios_saf 17.5", "ios_saf 17.4", "ios_saf 17.3", "ios_saf 17.2", "kaios 3.0-3.1", "kaios 2.5", "op_mini all", "op_mob 80", "opera 131", "opera 127", "safari 26.4", "safari 26.3", "safari 26.2", "safari 26.1", "safari 26.0", "safari 18.5-18.7", "safari 18.4", "safari 18.3", "safari 18.2", "safari 18.1", "safari 18.0", "safari 17.6", "safari 17.5", "safari 17.4", "safari 17.3", "safari 17.2", "samsung 29", "samsung 28"] || [];
|
|
14
14
|
const WHITE_LISTED_BROWSERS = ['chrome', 'firefox', 'safari', 'edge'];
|
|
15
15
|
const WHITE_LIST = SUPPORTED.reduce((acc, item) => {
|
|
16
16
|
var _item$match;
|
|
@@ -20,7 +20,7 @@ import '../global/configuration.js';
|
|
|
20
20
|
import '../_helpers/button.classes.js';
|
|
21
21
|
import '../icon/icon.constants.js';
|
|
22
22
|
import '../_helpers/icon-svg.js';
|
|
23
|
-
import 'react
|
|
23
|
+
import 'react/compiler-runtime';
|
|
24
24
|
import '../global/data-tests.js';
|
|
25
25
|
import '../control-label/control-label.js';
|
|
26
26
|
import '../control-help/control-help.js';
|
|
@@ -19,7 +19,7 @@ import 'core-js/modules/es.array.includes.js';
|
|
|
19
19
|
import 'combokeys';
|
|
20
20
|
import '../global/sniffer.js';
|
|
21
21
|
import 'sniffr';
|
|
22
|
-
import 'react
|
|
22
|
+
import 'react/compiler-runtime';
|
|
23
23
|
|
|
24
24
|
var styles = {"popup":"ring-popup-popup ring-global-font","cssAnchoredPopup":"ring-popup-cssAnchoredPopup","largeBorderRadius":"ring-popup-largeBorderRadius","hidden":"ring-popup-hidden","showing":"ring-popup-showing","attached":"ring-popup-attached"};
|
|
25
25
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
1
|
+
import { type HTMLAttributes, type Ref, type ReactNode } from 'react';
|
|
2
2
|
interface ComplexConfig {
|
|
3
3
|
target: string | Element | undefined;
|
|
4
4
|
cssPositioning?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare const PopupTargetContext: import("react").Context<string | Element | ComplexConfig | undefined>;
|
|
7
7
|
export interface PopupTargetProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
8
|
+
ref?: Ref<HTMLDivElement>;
|
|
8
9
|
id: string;
|
|
9
10
|
children: ReactNode | ((target: ReactNode) => ReactNode);
|
|
10
11
|
}
|
|
11
12
|
export declare function normalizePopupTarget(value: string | Element | undefined | ComplexConfig): string | Element | undefined;
|
|
12
|
-
export declare
|
|
13
|
+
export declare function PopupTarget({ ref, id, children, ...restProps }: PopupTargetProps): import("react").JSX.Element;
|
|
13
14
|
export {};
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { c } from 'react
|
|
2
|
-
import { createContext
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
|
+
import { createContext } from 'react';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
const PopupTargetContext = /*#__PURE__*/createContext(undefined);
|
|
6
6
|
function normalizePopupTarget(value) {
|
|
7
7
|
return typeof value === 'string' || value instanceof Element ? value : value?.target;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
const $ = c(
|
|
11
|
-
if ($[0] !== "
|
|
12
|
-
for (let $i = 0; $i <
|
|
9
|
+
function PopupTarget(t0) {
|
|
10
|
+
const $ = c(17);
|
|
11
|
+
if ($[0] !== "7699156479625bee795d2e20de6b2a333ee08e426b86af6e54a6a359d82ff1bc") {
|
|
12
|
+
for (let $i = 0; $i < 17; $i += 1) {
|
|
13
13
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
14
14
|
}
|
|
15
|
-
$[0] = "
|
|
15
|
+
$[0] = "7699156479625bee795d2e20de6b2a333ee08e426b86af6e54a6a359d82ff1bc";
|
|
16
16
|
}
|
|
17
17
|
let children;
|
|
18
18
|
let id;
|
|
19
|
+
let ref;
|
|
19
20
|
let restProps;
|
|
20
21
|
if ($[1] !== t0) {
|
|
21
22
|
({
|
|
23
|
+
ref,
|
|
22
24
|
id,
|
|
23
25
|
children,
|
|
24
26
|
...restProps
|
|
@@ -26,52 +28,54 @@ const PopupTarget = /*#__PURE__*/forwardRef(function PopupTarget(t0, ref) {
|
|
|
26
28
|
$[1] = t0;
|
|
27
29
|
$[2] = children;
|
|
28
30
|
$[3] = id;
|
|
29
|
-
$[4] =
|
|
31
|
+
$[4] = ref;
|
|
32
|
+
$[5] = restProps;
|
|
30
33
|
} else {
|
|
31
34
|
children = $[2];
|
|
32
35
|
id = $[3];
|
|
33
|
-
|
|
36
|
+
ref = $[4];
|
|
37
|
+
restProps = $[5];
|
|
34
38
|
}
|
|
35
39
|
const t1 = typeof children !== "function" && children;
|
|
36
40
|
let t2;
|
|
37
|
-
if ($[
|
|
41
|
+
if ($[6] !== id || $[7] !== ref || $[8] !== restProps || $[9] !== t1) {
|
|
38
42
|
t2 = /*#__PURE__*/jsx("div", {
|
|
39
43
|
...restProps,
|
|
40
44
|
"data-portaltarget": id,
|
|
41
45
|
ref: ref,
|
|
42
46
|
children: t1
|
|
43
47
|
});
|
|
44
|
-
$[
|
|
45
|
-
$[
|
|
46
|
-
$[
|
|
47
|
-
$[
|
|
48
|
-
$[
|
|
48
|
+
$[6] = id;
|
|
49
|
+
$[7] = ref;
|
|
50
|
+
$[8] = restProps;
|
|
51
|
+
$[9] = t1;
|
|
52
|
+
$[10] = t2;
|
|
49
53
|
} else {
|
|
50
|
-
t2 = $[
|
|
54
|
+
t2 = $[10];
|
|
51
55
|
}
|
|
52
56
|
const target = t2;
|
|
53
57
|
let t3;
|
|
54
|
-
if ($[
|
|
58
|
+
if ($[11] !== children || $[12] !== target) {
|
|
55
59
|
t3 = typeof children === "function" ? children(target) : target;
|
|
56
|
-
$[
|
|
57
|
-
$[
|
|
58
|
-
$[
|
|
60
|
+
$[11] = children;
|
|
61
|
+
$[12] = target;
|
|
62
|
+
$[13] = t3;
|
|
59
63
|
} else {
|
|
60
|
-
t3 = $[
|
|
64
|
+
t3 = $[13];
|
|
61
65
|
}
|
|
62
66
|
let t4;
|
|
63
|
-
if ($[
|
|
64
|
-
t4 = /*#__PURE__*/jsx(PopupTargetContext
|
|
67
|
+
if ($[14] !== id || $[15] !== t3) {
|
|
68
|
+
t4 = /*#__PURE__*/jsx(PopupTargetContext, {
|
|
65
69
|
value: id,
|
|
66
70
|
children: t3
|
|
67
71
|
});
|
|
68
|
-
$[
|
|
69
|
-
$[
|
|
70
|
-
$[
|
|
72
|
+
$[14] = id;
|
|
73
|
+
$[15] = t3;
|
|
74
|
+
$[16] = t4;
|
|
71
75
|
} else {
|
|
72
|
-
t4 = $[
|
|
76
|
+
t4 = $[16];
|
|
73
77
|
}
|
|
74
78
|
return t4;
|
|
75
|
-
}
|
|
79
|
+
}
|
|
76
80
|
|
|
77
81
|
export { PopupTarget, PopupTargetContext, normalizePopupTarget };
|
|
@@ -15,7 +15,7 @@ import '../global/sniffer.js';
|
|
|
15
15
|
import 'sniffr';
|
|
16
16
|
import '../global/data-tests.js';
|
|
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';
|
|
@@ -21,7 +21,7 @@ import 'combokeys';
|
|
|
21
21
|
import '../global/sniffer.js';
|
|
22
22
|
import 'sniffr';
|
|
23
23
|
import '../global/create-stateful-context.js';
|
|
24
|
-
import 'react
|
|
24
|
+
import 'react/compiler-runtime';
|
|
25
25
|
import '../list/list-item.js';
|
|
26
26
|
import '../avatar/avatar.js';
|
|
27
27
|
import '../global/url.js';
|
|
@@ -285,5 +285,7 @@ export default class QueryAssist extends Component<QueryAssistProps> {
|
|
|
285
285
|
render(): React.JSX.Element;
|
|
286
286
|
}
|
|
287
287
|
export type QueryAssistAttrs = React.JSX.LibraryManagedAttributes<typeof QueryAssist, QueryAssistProps>;
|
|
288
|
-
export declare const RerenderableQueryAssist:
|
|
288
|
+
export declare const RerenderableQueryAssist: ({ ref, ...props }: QueryAssistProps & {
|
|
289
|
+
ref?: React.Ref<QueryAssist> | undefined;
|
|
290
|
+
}) => React.JSX.Element;
|
|
289
291
|
export {};
|
|
@@ -22,7 +22,7 @@ import { I18nContext } from '../i18n/i18n-context.js';
|
|
|
22
22
|
import { Q as QueryAssistSuggestions, s as styles } from '../_helpers/query-assist-suggestions.js';
|
|
23
23
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
24
24
|
import { ControlsHeight } from '../global/configuration.js';
|
|
25
|
-
import 'react
|
|
25
|
+
import 'react/compiler-runtime';
|
|
26
26
|
import 'react-dom/server';
|
|
27
27
|
import '../popup/popup.js';
|
|
28
28
|
import 'react-dom';
|
|
@@ -841,7 +841,7 @@ class QueryAssist extends Component {
|
|
|
841
841
|
[styles.hugePlaceholder]: huge,
|
|
842
842
|
[styles.withoutGlass]: !glass || !renderLoader && huge
|
|
843
843
|
});
|
|
844
|
-
return /*#__PURE__*/jsx(ControlsHeightContext
|
|
844
|
+
return /*#__PURE__*/jsx(ControlsHeightContext, {
|
|
845
845
|
value: ControlsHeight.M,
|
|
846
846
|
children: /*#__PURE__*/jsx(I18nContext.Consumer, {
|
|
847
847
|
children: ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, type InputHTMLAttributes, type ReactNode } from 'react';
|
|
1
|
+
import { Component, type Ref, type InputHTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
3
3
|
value?: string | undefined;
|
|
4
4
|
onChange?: ((value: string) => void) | null | undefined;
|
|
@@ -17,7 +17,7 @@ export declare class RadioItemInner extends Component<RadioItemInnerProps> {
|
|
|
17
17
|
render(): import("react").JSX.Element;
|
|
18
18
|
}
|
|
19
19
|
export interface RadioItemProps extends RadioItemInnerProps {
|
|
20
|
+
ref?: Ref<RadioItemInner>;
|
|
20
21
|
value: string;
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
-
export default RadioItem;
|
|
23
|
+
export default function RadioItem({ ref, ...props }: RadioItemProps): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c } from 'react
|
|
2
|
-
import {
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
|
+
import { createContext, Component } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import getUID from '../global/get-uid.js';
|
|
5
5
|
import ControlHelp from '../control-help/control-help.js';
|
|
@@ -50,23 +50,37 @@ class RadioItemInner extends Component {
|
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
const $ = c(
|
|
55
|
-
if ($[0] !== "
|
|
56
|
-
for (let $i = 0; $i <
|
|
53
|
+
function RadioItem(t0) {
|
|
54
|
+
const $ = c(7);
|
|
55
|
+
if ($[0] !== "76a59b10a53963fdea791fd3fd6af13dc3cda49b18cdc493b183559c143d5694") {
|
|
56
|
+
for (let $i = 0; $i < 7; $i += 1) {
|
|
57
57
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
58
58
|
}
|
|
59
|
-
$[0] = "
|
|
59
|
+
$[0] = "76a59b10a53963fdea791fd3fd6af13dc3cda49b18cdc493b183559c143d5694";
|
|
60
60
|
}
|
|
61
|
-
let
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
let props;
|
|
62
|
+
let ref;
|
|
63
|
+
if ($[1] !== t0) {
|
|
64
|
+
({
|
|
65
|
+
ref,
|
|
66
|
+
...props
|
|
67
|
+
} = t0);
|
|
68
|
+
$[1] = t0;
|
|
69
|
+
$[2] = props;
|
|
70
|
+
$[3] = ref;
|
|
71
|
+
} else {
|
|
72
|
+
props = $[2];
|
|
73
|
+
ref = $[3];
|
|
74
|
+
}
|
|
75
|
+
let t1;
|
|
76
|
+
if ($[4] !== props || $[5] !== ref) {
|
|
77
|
+
t1 = /*#__PURE__*/jsx(RadioContext.Consumer, {
|
|
78
|
+
children: t2 => {
|
|
65
79
|
const {
|
|
66
80
|
value,
|
|
67
81
|
onChange,
|
|
68
82
|
...restContext
|
|
69
|
-
} =
|
|
83
|
+
} = t2;
|
|
70
84
|
return /*#__PURE__*/jsx(RadioItemInner, {
|
|
71
85
|
ref: ref,
|
|
72
86
|
...restContext,
|
|
@@ -76,13 +90,13 @@ const RadioItem = /*#__PURE__*/forwardRef(function RadioItem(props, ref) {
|
|
|
76
90
|
});
|
|
77
91
|
}
|
|
78
92
|
});
|
|
79
|
-
$[
|
|
80
|
-
$[
|
|
81
|
-
$[
|
|
93
|
+
$[4] = props;
|
|
94
|
+
$[5] = ref;
|
|
95
|
+
$[6] = t1;
|
|
82
96
|
} else {
|
|
83
|
-
|
|
97
|
+
t1 = $[6];
|
|
84
98
|
}
|
|
85
|
-
return
|
|
86
|
-
}
|
|
99
|
+
return t1;
|
|
100
|
+
}
|
|
87
101
|
|
|
88
102
|
export { RadioContext, RadioItemInner, RadioItem as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
import { type RadioProps } from './radio-item';
|
|
2
|
+
import RadioItem, { type RadioProps } from './radio-item';
|
|
3
3
|
/**
|
|
4
4
|
* @name Radio
|
|
5
5
|
*/
|
|
6
6
|
export default class Radio extends Component<RadioProps> {
|
|
7
|
-
static Item:
|
|
7
|
+
static Item: typeof RadioItem;
|
|
8
8
|
uid: string;
|
|
9
9
|
render(): import("react").JSX.Element;
|
|
10
10
|
}
|
|
@@ -2,7 +2,7 @@ import { Component } from 'react';
|
|
|
2
2
|
import getUID from '../global/get-uid.js';
|
|
3
3
|
import RadioItem, { RadioContext } from './radio-item.js';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
import 'react
|
|
5
|
+
import 'react/compiler-runtime';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../control-help/control-help.js';
|
|
8
8
|
import '../global/data-tests.js';
|
|
@@ -11,7 +11,7 @@ class Radio extends Component {
|
|
|
11
11
|
static Item = RadioItem;
|
|
12
12
|
uid = getUID('ring-radio-');
|
|
13
13
|
render() {
|
|
14
|
-
return /*#__PURE__*/jsx(RadioContext
|
|
14
|
+
return /*#__PURE__*/jsx(RadioContext, {
|
|
15
15
|
value: {
|
|
16
16
|
name: this.uid,
|
|
17
17
|
...this.props
|
|
@@ -14,7 +14,7 @@ import 'util-deprecate';
|
|
|
14
14
|
import '../icon/icon.js';
|
|
15
15
|
import '../icon/icon.constants.js';
|
|
16
16
|
import '../_helpers/icon-svg.js';
|
|
17
|
-
import 'react
|
|
17
|
+
import 'react/compiler-runtime';
|
|
18
18
|
import '../global/memoize.js';
|
|
19
19
|
import '../link/clickable-link.js';
|
|
20
20
|
import '../global/controls-height.js';
|
|
@@ -26,7 +26,7 @@ import { ControlsHeight } from '../global/configuration.js';
|
|
|
26
26
|
import 'util-deprecate';
|
|
27
27
|
import '../icon/icon.constants.js';
|
|
28
28
|
import '../_helpers/icon-svg.js';
|
|
29
|
-
import 'react
|
|
29
|
+
import 'react/compiler-runtime';
|
|
30
30
|
import 'react-dom';
|
|
31
31
|
import '../global/schedule-raf.js';
|
|
32
32
|
import '../global/data-tests.js';
|
|
@@ -282,5 +282,7 @@ export default class Select<T = unknown> extends Component<SelectProps<T>, Selec
|
|
|
282
282
|
export type SingleSelectAttrs<T = unknown> = React.JSX.LibraryManagedAttributes<typeof Select, SingleSelectProps<T>>;
|
|
283
283
|
export type MultipleSelectAttrs<T = unknown> = React.JSX.LibraryManagedAttributes<typeof Select, MultipleSelectProps<T>>;
|
|
284
284
|
export type SelectAttrs<T = unknown> = React.JSX.LibraryManagedAttributes<typeof Select, SelectProps<T>>;
|
|
285
|
-
export declare const RerenderableSelect:
|
|
285
|
+
export declare const RerenderableSelect: ({ ref, ...props }: Omit<any, "ref"> & {
|
|
286
|
+
ref?: Ref<any> | undefined;
|
|
287
|
+
}) => React.JSX.Element;
|
|
286
288
|
export {};
|
|
@@ -24,7 +24,7 @@ import SelectPopup from './select-popup.js';
|
|
|
24
24
|
import ChevronButton from './chevron-button.js';
|
|
25
25
|
import { ControlsHeight } from '../global/configuration.js';
|
|
26
26
|
import { Size as Size$1 } from '../avatar/avatar-size.js';
|
|
27
|
-
import 'react
|
|
27
|
+
import 'react/compiler-runtime';
|
|
28
28
|
import 'core-js/modules/es.array.includes.js';
|
|
29
29
|
import 'util-deprecate';
|
|
30
30
|
import '../global/url.js';
|