@jetbrains/ring-ui-built 7.0.62 → 7.0.64
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/card.js +4 -3
- package/components/_helpers/{dialog__body-scroll-preventer.js → dialog-body-scroll-preventer.js} +4 -4
- package/components/_helpers/input.js +8 -8
- package/components/_helpers/{select__filter.js → select-filter.js} +1 -1
- package/components/_helpers/services-link.js +3 -3
- package/components/_helpers/theme.js +2 -2
- package/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +9 -8
- package/components/alert/container.d.ts +1 -1
- package/components/alert/container.js +2 -2
- package/components/alert-service/alert-service.d.ts +2 -2
- package/components/alert-service/alert-service.js +4 -4
- package/components/analytics/{analytics__custom-plugin.d.ts → analytics-custom-plugin.d.ts} +1 -1
- package/components/analytics/{analytics__custom-plugin.js → analytics-custom-plugin.js} +2 -2
- package/components/auth/{auth__core.d.ts → auth-core.d.ts} +9 -8
- package/components/auth/{auth__core.js → auth-core.js} +18 -22
- package/components/auth/auth.d.ts +2 -2
- package/components/auth/auth.js +8 -8
- package/components/auth/background-flow.d.ts +2 -2
- package/components/auth/background-flow.js +1 -3
- package/components/auth/down-notification.js +6 -6
- package/components/auth/iframe-flow.d.ts +3 -3
- package/components/auth/iframe-flow.js +9 -11
- package/components/auth/request-builder.d.ts +2 -1
- package/components/auth/request-builder.js +1 -2
- package/components/auth/storage.d.ts +3 -3
- package/components/auth/storage.js +9 -11
- package/components/auth/token-validator.d.ts +2 -1
- package/components/auth/token-validator.js +12 -3
- package/components/auth/window-flow.d.ts +3 -3
- package/components/auth/window-flow.js +5 -7
- package/components/auth-dialog/auth-dialog.js +9 -9
- package/components/auth-dialog-service/auth-dialog-service.d.ts +1 -1
- package/components/auth-dialog-service/auth-dialog-service.js +5 -5
- package/components/avatar/avatar-info.d.ts +1 -1
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.figma.js +1 -2
- package/components/avatar/avatar.js +16 -17
- package/components/avatar/fallback-avatar.js +17 -18
- package/components/avatar-stack/avatar-stack.d.ts +3 -3
- package/components/avatar-stack/avatar-stack.figma.js +1 -2
- package/components/avatar-stack/avatar-stack.js +12 -12
- package/components/banner/banner.js +4 -4
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.figma.js +1 -2
- package/components/button/{button__classes.d.ts → button.classes.d.ts} +1 -1
- package/components/button/button.classes.js +2 -0
- package/components/button/button.d.ts +4 -4
- package/components/button/button.figma.js +1 -2
- package/components/button/button.js +9 -9
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +1 -1
- package/components/button-group/caption.d.ts +1 -1
- package/components/button-set/button-set.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/caret/caret.js +24 -17
- package/components/checkbox/checkbox-group.figma.js +1 -2
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.figma.js +1 -2
- package/components/checkbox/checkbox.js +8 -8
- package/components/clipboard/clipboard.js +8 -8
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +3 -3
- package/components/collapse/collapse-content.d.ts +3 -3
- package/components/collapse/collapse-control.d.ts +2 -2
- package/components/collapse/collapse.d.ts +3 -3
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +8 -8
- package/components/confirm-service/confirm-service.d.ts +3 -3
- package/components/confirm-service/confirm-service.js +5 -5
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +2 -2
- package/components/content-layout/sidebar.d.ts +1 -1
- package/components/contenteditable/contenteditable.d.ts +1 -1
- package/components/contenteditable/contenteditable.js +2 -1
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-label/control-label.d.ts +1 -1
- package/components/data-list/data-list.d.ts +5 -5
- package/components/data-list/data-list.js +8 -8
- package/components/data-list/data-list.mock.d.ts +2 -2
- package/components/data-list/data-list.mock.js +24 -24
- package/components/data-list/item.d.ts +3 -3
- package/components/data-list/item.js +9 -9
- package/components/data-list/selection.d.ts +1 -1
- package/components/data-list/selection.js +8 -1
- package/components/data-list/title.d.ts +2 -2
- package/components/data-list/title.js +3 -3
- package/components/date-picker/consts.d.ts +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +7 -7
- package/components/date-picker/date-picker.d.ts +5 -5
- package/components/date-picker/date-picker.js +27 -22
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +9 -8
- package/components/date-picker/day.d.ts +2 -2
- package/components/date-picker/day.js +4 -4
- package/components/date-picker/formats.js +1 -0
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +1 -1
- package/components/date-picker/month-slider.d.ts +2 -2
- package/components/date-picker/month-slider.js +1 -1
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +2 -2
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +2 -2
- package/components/dialog/{dialog__body-scroll-preventer.js → dialog-body-scroll-preventer.js} +1 -1
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +15 -15
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/anchor.js +4 -4
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/dropdown/dropdown.js +6 -6
- package/components/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/components/dropdown-menu/dropdown-menu.js +11 -11
- package/components/editable-heading/editable-heading.d.ts +1 -1
- package/components/editable-heading/editable-heading.js +8 -7
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.figma.js +1 -2
- package/components/error-bubble/error-bubble.js +2 -2
- package/components/error-message/error-message.d.ts +2 -2
- package/components/error-message/error-message.js +3 -3
- package/components/footer/footer.d.ts +1 -1
- package/components/footer/footer.js +2 -2
- package/components/global/compose-refs.d.ts +2 -0
- package/components/global/compose-refs.js +19 -0
- package/components/global/composeRefs.d.ts +6 -2
- package/components/global/composeRefs.js +6 -16
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/dom.d.ts +1 -1
- package/components/global/dom.js +2 -3
- package/components/global/focus-sensor-hoc.d.ts +1 -1
- package/components/global/focus-sensor-hoc.js +2 -2
- package/components/global/fuzzy-highlight.d.ts +2 -2
- package/components/global/get-event-key.d.ts +1 -1
- package/components/global/memoize.js +1 -1
- package/components/global/rerender-hoc.d.ts +1 -1
- package/components/global/rerender-hoc.js +2 -2
- package/components/global/theme.d.ts +1 -1
- package/components/global/url.js +3 -3
- package/components/global/use-event-callback.js +1 -1
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +1 -1
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +1 -1
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +1 -1
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +1 -1
- package/components/header/header-icon.d.ts +2 -2
- package/components/header/header-icon.js +4 -4
- package/components/header/header.d.ts +1 -1
- package/components/header/header.js +17 -17
- package/components/header/links.d.ts +1 -1
- package/components/header/logo.d.ts +1 -1
- package/components/header/logo.js +2 -2
- package/components/header/profile.d.ts +5 -5
- package/components/header/profile.js +14 -14
- package/components/header/services-link.d.ts +1 -1
- package/components/header/services-link.js +1 -1
- package/components/header/services.d.ts +2 -2
- package/components/header/services.js +7 -7
- package/components/header/smart-profile.d.ts +3 -3
- package/components/header/smart-profile.js +25 -25
- package/components/header/smart-services.d.ts +3 -3
- package/components/header/smart-services.js +4 -4
- package/components/header/tray.d.ts +1 -1
- package/components/heading/heading.d.ts +1 -1
- package/components/http/http.mock.d.ts +1 -1
- package/components/hub-source/{hub-source__user.d.ts → hub-source-user.d.ts} +3 -2
- package/components/hub-source/{hub-source__users-groups.d.ts → hub-source-users-groups.d.ts} +3 -2
- package/components/hub-source/hub-source.d.ts +2 -2
- package/components/icon/{icon__svg.d.ts → icon-svg.d.ts} +1 -1
- package/components/icon/{icon__svg.js → icon-svg.js} +1 -1
- package/components/icon/icon.d.ts +2 -2
- package/components/icon/icon.js +3 -3
- package/components/icon/index.js +2 -2
- package/components/input/input.d.ts +3 -3
- package/components/input/input.figma.js +1 -2
- package/components/input/input.js +5 -5
- package/components/island/adaptive-island-hoc.d.ts +1 -1
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +2 -2
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +4 -4
- package/components/island/island.d.ts +1 -1
- package/components/link/clickable-link.d.ts +12 -0
- package/components/link/clickable-link.js +51 -0
- package/components/link/clickableLink.d.ts +11 -12
- package/components/link/clickableLink.js +5 -50
- package/components/link/link.d.ts +2 -2
- package/components/link/link.js +3 -3
- package/components/list/consts.d.ts +4 -5
- package/components/list/{list__custom.d.ts → list-custom.d.ts} +1 -1
- package/components/list/{list__custom.js → list-custom.js} +1 -1
- package/components/list/{list__hint.d.ts → list-hint.d.ts} +1 -1
- package/components/list/{list__hint.js → list-hint.js} +1 -1
- package/components/list/{list__item.d.ts → list-item.d.ts} +2 -2
- package/components/list/{list__item.js → list-item.js} +10 -9
- package/components/list/{list__separator.d.ts → list-separator.d.ts} +1 -1
- package/components/list/{list__separator.js → list-separator.js} +1 -1
- package/components/list/{list__title.d.ts → list-title.d.ts} +1 -1
- package/components/list/{list__title.js → list-title.js} +3 -3
- package/components/list/{list__users-groups-source.d.ts → list-users-groups-source.d.ts} +3 -2
- package/components/list/{list__users-groups-source.js → list-users-groups-source.js} +11 -11
- package/components/list/{list__classes.d.ts → list.classes.d.ts} +1 -1
- package/components/list/list.d.ts +7 -7
- package/components/list/list.js +36 -35
- package/components/loader/{loader__core.js → loader-core.js} +3 -2
- package/components/loader/loader.d.ts +2 -2
- package/components/loader/loader.js +1 -1
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/loader-screen/loader-screen.js +1 -1
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +9 -9
- package/components/login-dialog/service.d.ts +1 -1
- package/components/login-dialog/service.js +6 -6
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +1 -1
- package/components/message/message.d.ts +4 -4
- package/components/message/message.js +7 -7
- package/components/old-browsers-message/old-browsers-message.js +1 -1
- package/components/pager/pager.d.ts +2 -2
- package/components/pager/pager.js +28 -27
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +1 -1
- package/components/permissions/{permissions__cache.js → permissions-cache.js} +4 -4
- package/components/permissions/permissions.d.ts +2 -2
- package/components/permissions/permissions.js +2 -3
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +4 -4
- package/components/popup/popup.target.d.ts +1 -1
- package/components/popup/position-css.js +2 -4
- package/components/popup/position.js +10 -9
- package/components/popup-menu/popup-menu.d.ts +4 -4
- package/components/popup-menu/popup-menu.js +10 -10
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +1 -1
- package/components/query-assist/{query-assist__suggestions.d.ts → query-assist-suggestions.d.ts} +1 -1
- package/components/query-assist/{query-assist__suggestions.js → query-assist-suggestions.js} +11 -11
- package/components/query-assist/query-assist.d.ts +4 -4
- package/components/query-assist/query-assist.js +30 -30
- package/components/radio/{radio__item.d.ts → radio-item.d.ts} +1 -1
- package/components/radio/{radio__item.js → radio-item.js} +3 -3
- package/components/radio/radio.d.ts +2 -2
- package/components/radio/radio.js +1 -1
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +1 -1
- package/components/select/{select__filter.d.ts → select-filter.d.ts} +2 -2
- package/components/select/{select__filter.js → select-filter.js} +12 -12
- package/components/select/{select__popup.d.ts → select-popup.d.ts} +8 -8
- package/components/select/{select__popup.js → select-popup.js} +21 -19
- package/components/select/select.d.ts +6 -6
- package/components/select/select.js +44 -42
- package/components/shortcuts/core.js +4 -4
- package/components/shortcuts/shortcuts-hoc.d.ts +2 -2
- package/components/shortcuts/shortcuts.d.ts +1 -1
- package/components/slider/slider.d.ts +5 -5
- package/components/slider/slider.js +7 -6
- package/components/slider/slider.utils.d.ts +1 -1
- package/components/slider/slider.utils.js +2 -3
- package/components/storage/{storage__local.d.ts → storage-local.d.ts} +1 -1
- package/components/storage/{storage__local.js → storage-local.js} +11 -11
- package/components/storage/storage.d.ts +1 -1
- package/components/storage/storage.js +5 -5
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.d.ts +1 -1
- package/components/tab-trap/tab-trap.js +1 -1
- package/components/table/cell.d.ts +1 -1
- package/components/table/disable-hover-hoc.d.ts +1 -1
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +3 -3
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +7 -7
- package/components/table/multitable.d.ts +3 -3
- package/components/table/multitable.js +1 -1
- package/components/table/row-with-focus-sensor.d.ts +3 -3
- package/components/table/row-with-focus-sensor.js +5 -5
- package/components/table/row.d.ts +4 -4
- package/components/table/row.js +5 -5
- package/components/table/selection-adapter.d.ts +2 -1
- package/components/table/selection-shortcuts-hoc.d.ts +4 -3
- package/components/table/selection-shortcuts-hoc.js +1 -2
- package/components/table/selection.js +5 -6
- package/components/table/simple-table.d.ts +2 -2
- package/components/table/simple-table.js +6 -6
- package/components/table/smart-table.d.ts +2 -2
- package/components/table/smart-table.js +6 -6
- package/components/table/table.d.ts +7 -7
- package/components/table/table.js +11 -11
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +12 -12
- package/components/tabs/collapsible-tab.d.ts +2 -2
- package/components/tabs/collapsible-tab.js +2 -2
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +18 -18
- package/components/tabs/custom-item.d.ts +2 -2
- package/components/tabs/dumb-tabs.d.ts +3 -3
- package/components/tabs/dumb-tabs.js +14 -14
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/smart-tabs.js +11 -11
- package/components/tabs/tab-link.d.ts +2 -2
- package/components/tabs/tab-link.js +1 -1
- package/components/tabs/tab.d.ts +2 -2
- package/components/tabs/tabs.js +11 -11
- package/components/tag/tag.d.ts +5 -3
- package/components/tag/tag.js +14 -12
- package/components/tags-input/tags-input.d.ts +8 -8
- package/components/tags-input/tags-input.js +26 -20
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +5 -5
- package/components/text/text.d.ts +1 -1
- package/components/toggle/toggle.d.ts +1 -1
- package/components/toggle/toggle.js +2 -2
- package/components/tooltip/tooltip.d.ts +2 -2
- package/components/tooltip/tooltip.js +1 -1
- package/components/upload/upload.d.ts +3 -3
- package/components/upload/upload.js +7 -7
- package/components/user-agreement/service.d.ts +2 -2
- package/components/user-agreement/service.js +10 -11
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +10 -10
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +4 -4
- package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
- package/components/user-card/smart-user-card-tooltip.js +4 -4
- package/components/user-card/tooltip.d.ts +3 -3
- package/components/user-card/tooltip.js +4 -4
- package/components/user-card/user-card.js +4 -4
- package/package.json +1 -1
- package/components/button/button__classes.js +0 -2
- /package/components/_helpers/{button__classes.js → button.classes.js} +0 -0
- /package/components/_helpers/{icon__svg.js → icon-svg.js} +0 -0
- /package/components/_helpers/{query-assist__suggestions.js → query-assist-suggestions.js} +0 -0
- /package/components/dialog/{dialog__body-scroll-preventer.d.ts → dialog-body-scroll-preventer.d.ts} +0 -0
- /package/components/global/{variables.d.ts → variables.interface.d.ts} +0 -0
- /package/components/global/{variables.js → variables.interface.js} +0 -0
- /package/components/hub-source/{hub-source__user.js → hub-source-user.js} +0 -0
- /package/components/hub-source/{hub-source__users-groups.js → hub-source-users-groups.js} +0 -0
- /package/components/icon/{icon__constants.d.ts → icon.constants.d.ts} +0 -0
- /package/components/icon/{icon__constants.js → icon.constants.js} +0 -0
- /package/components/list/{list__classes.js → list.classes.js} +0 -0
- /package/components/loader/{loader__core.d.ts → loader-core.d.ts} +0 -0
- /package/components/old-browsers-message/{old-browsers-message__stop.d.ts → old-browsers-message-stop.d.ts} +0 -0
- /package/components/old-browsers-message/{old-browsers-message__stop.js → old-browsers-message-stop.js} +0 -0
- /package/components/permissions/{permissions__cache.d.ts → permissions-cache.d.ts} +0 -0
|
@@ -2,16 +2,12 @@ import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread
|
|
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { PureComponent } from 'react';
|
|
5
|
-
import '../auth/auth.js';
|
|
6
5
|
import alertService from '../alert-service/alert-service.js';
|
|
7
6
|
import Profile from './profile.js';
|
|
8
|
-
import
|
|
9
|
-
import '../auth/
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
12
|
-
import 'core-js/modules/es.string.replace.js';
|
|
13
|
-
import '../global/url.js';
|
|
14
|
-
import '../auth/down-notification.js';
|
|
7
|
+
import '../auth/auth.js';
|
|
8
|
+
import { USER_CHANGED_EVENT, LOGOUT_POSTPONED_EVENT, USER_CHANGE_POSTPONED_EVENT } from '../auth/auth-core.js';
|
|
9
|
+
import 'react-dom/client';
|
|
10
|
+
import '../global/get-uid.js';
|
|
15
11
|
import '../alert/alert.js';
|
|
16
12
|
import 'classnames';
|
|
17
13
|
import '@jetbrains/icons/exception';
|
|
@@ -20,8 +16,10 @@ import '@jetbrains/icons/warning';
|
|
|
20
16
|
import '@jetbrains/icons/close';
|
|
21
17
|
import '../icon/icon.js';
|
|
22
18
|
import 'util-deprecate';
|
|
23
|
-
import '../icon/
|
|
24
|
-
import '../_helpers/
|
|
19
|
+
import '../icon/icon.constants.js';
|
|
20
|
+
import '../_helpers/icon-svg.js';
|
|
21
|
+
import 'core-js/modules/es.regexp.exec.js';
|
|
22
|
+
import 'core-js/modules/es.string.replace.js';
|
|
25
23
|
import '../global/memoize.js';
|
|
26
24
|
import '../loader-inline/loader-inline.js';
|
|
27
25
|
import '../global/data-tests.js';
|
|
@@ -29,15 +27,14 @@ import '../global/dom.js';
|
|
|
29
27
|
import '../button/button.js';
|
|
30
28
|
import '@jetbrains/icons/chevron-down';
|
|
31
29
|
import '@jetbrains/icons/chevron-12px-down';
|
|
32
|
-
import '../link/
|
|
30
|
+
import '../link/clickable-link.js';
|
|
33
31
|
import '../global/controls-height.js';
|
|
34
32
|
import '../global/configuration.js';
|
|
35
|
-
import '../_helpers/
|
|
33
|
+
import '../_helpers/button.classes.js';
|
|
36
34
|
import '../_helpers/theme.js';
|
|
37
35
|
import 'react-dom';
|
|
38
36
|
import '../popup/popup.target.js';
|
|
39
37
|
import '../popup/popup.js';
|
|
40
|
-
import '../global/get-uid.js';
|
|
41
38
|
import '../global/schedule-raf.js';
|
|
42
39
|
import '../shortcuts/shortcuts.js';
|
|
43
40
|
import '../shortcuts/core.js';
|
|
@@ -50,11 +47,8 @@ import 'core-js/modules/es.array.sort.js';
|
|
|
50
47
|
import '../popup/popup.consts.js';
|
|
51
48
|
import '../popup/position-css.js';
|
|
52
49
|
import '../alert/container.js';
|
|
53
|
-
import '../link/link.js';
|
|
54
|
-
import '../_helpers/link.js';
|
|
55
|
-
import '../group/group.js';
|
|
56
|
-
import 'react-dom/client';
|
|
57
50
|
import '../avatar/avatar.js';
|
|
51
|
+
import '../global/url.js';
|
|
58
52
|
import '../_helpers/avatar-info.js';
|
|
59
53
|
import '../avatar/avatar-size.js';
|
|
60
54
|
import '../avatar/fallback-avatar.js';
|
|
@@ -68,20 +62,22 @@ import 'react-virtualized/dist/es/WindowScroller';
|
|
|
68
62
|
import 'react-virtualized/dist/es/CellMeasurer';
|
|
69
63
|
import 'memoize-one';
|
|
70
64
|
import '../global/create-stateful-context.js';
|
|
71
|
-
import '../list/
|
|
65
|
+
import '../list/list-item.js';
|
|
72
66
|
import '../checkbox/checkbox.js';
|
|
73
67
|
import '@jetbrains/icons/checkmark-12px';
|
|
74
68
|
import '@jetbrains/icons/remove-12px';
|
|
75
|
-
import '../global/
|
|
69
|
+
import '../global/compose-refs.js';
|
|
76
70
|
import '../control-help/control-help.js';
|
|
71
|
+
import '../link/link.js';
|
|
72
|
+
import '../_helpers/link.js';
|
|
77
73
|
import '../_helpers/list.js';
|
|
78
74
|
import '../list/consts.js';
|
|
79
|
-
import '../list/
|
|
80
|
-
import '../list/
|
|
75
|
+
import '../list/list.classes.js';
|
|
76
|
+
import '../list/list-custom.js';
|
|
81
77
|
import '../global/get-event-key.js';
|
|
82
|
-
import '../list/
|
|
83
|
-
import '../list/
|
|
84
|
-
import '../list/
|
|
78
|
+
import '../list/list-title.js';
|
|
79
|
+
import '../list/list-separator.js';
|
|
80
|
+
import '../list/list-hint.js';
|
|
85
81
|
import '../dropdown/dropdown.js';
|
|
86
82
|
import '../global/typescript-utils.js';
|
|
87
83
|
import '../_helpers/anchor.js';
|
|
@@ -89,6 +85,10 @@ import '../popup-menu/popup-menu.js';
|
|
|
89
85
|
import '../i18n/i18n-context.js';
|
|
90
86
|
import '../i18n/i18n.js';
|
|
91
87
|
import '../_helpers/header.js';
|
|
88
|
+
import '../auth/window-flow.js';
|
|
89
|
+
import '../auth/response-parser.js';
|
|
90
|
+
import '../auth/down-notification.js';
|
|
91
|
+
import '../group/group.js';
|
|
92
92
|
import 'core-js/modules/web.url.js';
|
|
93
93
|
import 'core-js/modules/web.url.to-json.js';
|
|
94
94
|
import 'core-js/modules/web.url-search-params.js';
|
|
@@ -96,7 +96,7 @@ import '../global/listeners.js';
|
|
|
96
96
|
import '../http/http.js';
|
|
97
97
|
import '../global/promise-with-timeout.js';
|
|
98
98
|
import '../auth/storage.js';
|
|
99
|
-
import '../storage/
|
|
99
|
+
import '../storage/storage-local.js';
|
|
100
100
|
import '../auth/request-builder.js';
|
|
101
101
|
import 'simply-uuid';
|
|
102
102
|
import '../auth/background-flow.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Component, HTMLAttributes } from 'react';
|
|
2
|
-
import Auth from '../auth/auth';
|
|
1
|
+
import { Component, type HTMLAttributes } from 'react';
|
|
3
2
|
import HTTP from '../http/http';
|
|
4
|
-
import { Service } from './services-link';
|
|
3
|
+
import { type Service } from './services-link';
|
|
4
|
+
import type Auth from '../auth/auth';
|
|
5
5
|
export interface SmartServicesProps extends HTMLAttributes<HTMLElement> {
|
|
6
6
|
auth: Auth;
|
|
7
7
|
}
|
|
@@ -19,13 +19,13 @@ import '@jetbrains/icons/chevron-down';
|
|
|
19
19
|
import '@jetbrains/icons/chevron-12px-down';
|
|
20
20
|
import 'util-deprecate';
|
|
21
21
|
import '../icon/icon.js';
|
|
22
|
-
import '../icon/
|
|
23
|
-
import '../_helpers/
|
|
22
|
+
import '../icon/icon.constants.js';
|
|
23
|
+
import '../_helpers/icon-svg.js';
|
|
24
24
|
import '../global/memoize.js';
|
|
25
|
-
import '../link/
|
|
25
|
+
import '../link/clickable-link.js';
|
|
26
26
|
import '../global/controls-height.js';
|
|
27
27
|
import '../global/configuration.js';
|
|
28
|
-
import '../_helpers/
|
|
28
|
+
import '../_helpers/button.classes.js';
|
|
29
29
|
import '../popup/popup.js';
|
|
30
30
|
import 'react-dom';
|
|
31
31
|
import '../global/get-uid.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { type UserCardUser } from '../user-card/card';
|
|
2
|
+
import type { AuthUser } from '../auth/auth';
|
|
3
|
+
import type Auth from '../auth/auth';
|
|
3
4
|
export declare function convertUserForCard(hubUser: AuthUser, serverUri?: string): UserCardUser;
|
|
4
5
|
export declare function createHubUserCardSource(auth: Auth, userId: string | number, fields?: string): () => Promise<UserCardUser>;
|
package/components/hub-source/{hub-source__users-groups.d.ts → hub-source-users-groups.d.ts}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import HubSource, { type Item } from './hub-source';
|
|
2
|
+
import type Auth from '../auth/auth';
|
|
3
|
+
import type { AuthUser } from '../auth/auth';
|
|
3
4
|
export interface HubSourceUsersGroupsOptions {
|
|
4
5
|
searchMax: number;
|
|
5
6
|
searchSideThreshold: number;
|
|
@@ -5,5 +5,5 @@ import 'react/jsx-runtime';
|
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../global/memoize.js';
|
|
8
|
-
export { I as default } from '../_helpers/
|
|
8
|
+
export { I as default } from '../_helpers/icon-svg.js';
|
|
9
9
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name Icon
|
|
3
3
|
*/
|
|
4
|
-
import { PureComponent, ComponentType, SVGAttributes, HTMLAttributes } from 'react';
|
|
5
|
-
import { Color, Size } from './
|
|
4
|
+
import { PureComponent, type ComponentType, type SVGAttributes, type HTMLAttributes } from 'react';
|
|
5
|
+
import { Color, Size } from './icon.constants';
|
|
6
6
|
export type IconType = ComponentType<SVGAttributes<SVGSVGElement>>;
|
|
7
7
|
export interface IconProps extends HTMLAttributes<HTMLElement> {
|
|
8
8
|
color: Color;
|
package/components/icon/icon.js
CHANGED
|
@@ -3,8 +3,8 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { PureComponent } from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import deprecate from 'util-deprecate';
|
|
6
|
-
import { Color, Size } from './
|
|
7
|
-
import { s as styles, I as IconSVG } from '../_helpers/
|
|
6
|
+
import { Color, Size } from './icon.constants.js';
|
|
7
|
+
import { s as styles, I as IconSVG } from '../_helpers/icon-svg.js';
|
|
8
8
|
import 'core-js/modules/es.regexp.exec.js';
|
|
9
9
|
import 'core-js/modules/es.string.replace.js';
|
|
10
10
|
import '../global/memoize.js';
|
|
@@ -62,7 +62,7 @@ class Icon extends PureComponent {
|
|
|
62
62
|
[styles.loading]: loading
|
|
63
63
|
}, className);
|
|
64
64
|
return jsx("span", _objectSpread2(_objectSpread2({
|
|
65
|
-
"data-test":
|
|
65
|
+
"data-test": 'ring-icon'
|
|
66
66
|
}, restProps), {}, {
|
|
67
67
|
className: classes,
|
|
68
68
|
children: typeof Glyph === 'string' ? jsx(IconSVG, {
|
package/components/icon/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { default } from './icon.js';
|
|
2
|
-
export { Color, Size } from './
|
|
2
|
+
export { Color, Size } from './icon.constants.js';
|
|
3
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import 'util-deprecate';
|
|
8
|
-
import '../_helpers/
|
|
8
|
+
import '../_helpers/icon-svg.js';
|
|
9
9
|
import 'core-js/modules/es.regexp.exec.js';
|
|
10
10
|
import 'core-js/modules/es.string.replace.js';
|
|
11
11
|
import '../global/memoize.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PureComponent, Ref, ComponentType, InputHTMLAttributes, TextareaHTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import { PureComponent, type Ref, type ComponentType, type InputHTMLAttributes, type TextareaHTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { ControlsHeight, ControlsHeightContext } from '../global/controls-height';
|
|
4
|
-
import { LabelType } from '../control-label/control-label';
|
|
3
|
+
import { type ControlsHeight, ControlsHeightContext } from '../global/controls-height';
|
|
4
|
+
import { type LabelType } from '../control-label/control-label';
|
|
5
5
|
declare function noop(): void;
|
|
6
6
|
/**
|
|
7
7
|
* @name Input
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { c as _taggedTemplateLiteral } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import figma from '@figma/code-connect';
|
|
2
3
|
|
|
3
4
|
var _templateObject;
|
|
4
|
-
// url=https://www.figma.com/design/HY6d4uE1xxaQXCMG9fe6Y2/RingUI-(Internal)?node-id=7538-7763
|
|
5
|
-
const figma = require('figma');
|
|
6
5
|
const instance = figma.selectedInstance;
|
|
7
6
|
const size = instance.getString('Size');
|
|
8
7
|
const state = instance.getString('State');
|
|
@@ -8,7 +8,7 @@ import '../button/button.js';
|
|
|
8
8
|
import '../global/get-uid.js';
|
|
9
9
|
import '../icon/icon.js';
|
|
10
10
|
import '../i18n/i18n-context.js';
|
|
11
|
-
import '../global/
|
|
11
|
+
import '../global/compose-refs.js';
|
|
12
12
|
import '../global/controls-height.js';
|
|
13
13
|
import '../control-label/control-label.js';
|
|
14
14
|
import '../control-help/control-help.js';
|
|
@@ -16,10 +16,10 @@ export { I as Input, S as Size, I as default } from '../_helpers/input.js';
|
|
|
16
16
|
import '@jetbrains/icons/chevron-down';
|
|
17
17
|
import '@jetbrains/icons/chevron-12px-down';
|
|
18
18
|
import 'util-deprecate';
|
|
19
|
-
import '../link/
|
|
20
|
-
import '../_helpers/
|
|
21
|
-
import '../icon/
|
|
22
|
-
import '../_helpers/
|
|
19
|
+
import '../link/clickable-link.js';
|
|
20
|
+
import '../_helpers/button.classes.js';
|
|
21
|
+
import '../icon/icon.constants.js';
|
|
22
|
+
import '../_helpers/icon-svg.js';
|
|
23
23
|
import 'core-js/modules/es.regexp.exec.js';
|
|
24
24
|
import 'core-js/modules/es.string.replace.js';
|
|
25
25
|
import '../global/memoize.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentClass, ComponentType } from 'react';
|
|
1
|
+
import { type ComponentClass, type ComponentType } from 'react';
|
|
2
2
|
export declare const PhaseContext: import("react").Context<number | null>;
|
|
3
3
|
type ScrollHandler = (element: Element) => void;
|
|
4
4
|
export declare const ScrollHandlerContext: import("react").Context<ScrollHandler | null>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, HTMLAttributes } from 'react';
|
|
1
|
+
import { Component, type HTMLAttributes } from 'react';
|
|
2
2
|
import createResizeDetector from 'element-resize-detector';
|
|
3
3
|
export interface IslandContentProps extends Omit<HTMLAttributes<HTMLElement>, 'onScroll'> {
|
|
4
4
|
fade?: boolean | null | undefined;
|
|
@@ -96,7 +96,7 @@ class Content extends Component {
|
|
|
96
96
|
});
|
|
97
97
|
const scrollableWrapperClasses = classNames(styles.scrollableWrapper, scrollableWrapperClassName);
|
|
98
98
|
return jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
99
|
-
"data-test":
|
|
99
|
+
"data-test": 'ring-island-content',
|
|
100
100
|
className: classes,
|
|
101
101
|
children: jsxs("div", {
|
|
102
102
|
tabIndex: tabIndex,
|
|
@@ -119,7 +119,7 @@ _defineProperty(Content, "defaultProps", {
|
|
|
119
119
|
});
|
|
120
120
|
const ContentWrapper = /*#__PURE__*/forwardRef((props, ref) => jsx(ScrollHandlerContext.Consumer, {
|
|
121
121
|
children: onScroll => {
|
|
122
|
-
const addProps = onScroll
|
|
122
|
+
const addProps = onScroll ? {
|
|
123
123
|
onScroll,
|
|
124
124
|
bottomBorder: true
|
|
125
125
|
} : {};
|
|
@@ -58,9 +58,9 @@ class Header extends Component {
|
|
|
58
58
|
} = _this$props,
|
|
59
59
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
60
60
|
const classes = classNames(styles.header, className, {
|
|
61
|
-
[styles.withBottomBorder]: border || phase
|
|
61
|
+
[styles.withBottomBorder]: border || phase && phase >= BORDER_APPEAR_PHASE
|
|
62
62
|
});
|
|
63
|
-
const headerStyle = phase
|
|
63
|
+
const headerStyle = phase !== null && phase !== undefined ? {
|
|
64
64
|
lineHeight: "".concat(this.style('LINE_HEIGHT'), "px"),
|
|
65
65
|
// need to append px because number is a valid line-height value
|
|
66
66
|
paddingTop: this.style('PADDING_TOP'),
|
|
@@ -68,7 +68,7 @@ class Header extends Component {
|
|
|
68
68
|
} : undefined;
|
|
69
69
|
const titleStyle = this.getTitleStyle(phase);
|
|
70
70
|
return jsxs("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
71
|
-
"data-test":
|
|
71
|
+
"data-test": 'ring-island-header',
|
|
72
72
|
className: classes,
|
|
73
73
|
style: headerStyle,
|
|
74
74
|
children: [wrapWithTitle && jsx("h2", {
|
|
@@ -84,7 +84,7 @@ _defineProperty(Header, "defaultProps", {
|
|
|
84
84
|
});
|
|
85
85
|
const HeaderWrapper = props => jsx(PhaseContext.Consumer, {
|
|
86
86
|
children: phase => {
|
|
87
|
-
const addProps = phase
|
|
87
|
+
const addProps = phase !== null && phase !== undefined ? {
|
|
88
88
|
phase
|
|
89
89
|
} : {};
|
|
90
90
|
return jsx(Header, _objectSpread2(_objectSpread2({}, props), addProps));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PureComponent, type AnchorHTMLAttributes } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface ClickableLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
|
+
onConditionalClick?: ((isPlainLeft: boolean, e: React.MouseEvent<HTMLAnchorElement>) => void) | null | undefined;
|
|
5
|
+
onPlainLeftClick?: ((e: React.MouseEvent<HTMLAnchorElement>) => void) | null | undefined;
|
|
6
|
+
activeClassName?: string | null | undefined;
|
|
7
|
+
disabled?: boolean | undefined;
|
|
8
|
+
}
|
|
9
|
+
export default class ClickableLink extends PureComponent<ClickableLinkProps> {
|
|
10
|
+
onClick: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
11
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
import { PureComponent } from 'react';
|
|
5
|
+
|
|
6
|
+
const _excluded = ["onConditionalClick", "onPlainLeftClick", "activeClassName", "href", "children"];
|
|
7
|
+
const LEFT_BUTTON = 0;
|
|
8
|
+
// Cmd/Ctrl/Shift/Alt + Click should trigger default browser behaviour. Same applies to non-left clicks
|
|
9
|
+
const isPlainLeftClick = e => e.button === LEFT_BUTTON && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey;
|
|
10
|
+
class ClickableLink extends PureComponent {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
_defineProperty(this, "onClick", e => {
|
|
14
|
+
const {
|
|
15
|
+
onClick,
|
|
16
|
+
onConditionalClick,
|
|
17
|
+
onPlainLeftClick
|
|
18
|
+
} = this.props;
|
|
19
|
+
const isPlainLeft = isPlainLeftClick(e);
|
|
20
|
+
if (onClick) {
|
|
21
|
+
onClick(e);
|
|
22
|
+
}
|
|
23
|
+
if (onConditionalClick) {
|
|
24
|
+
onConditionalClick(isPlainLeft, e);
|
|
25
|
+
}
|
|
26
|
+
if (onPlainLeftClick && isPlainLeft) {
|
|
27
|
+
e.preventDefault();
|
|
28
|
+
onPlainLeftClick(e);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
const _this$props = this.props,
|
|
34
|
+
{
|
|
35
|
+
onConditionalClick,
|
|
36
|
+
onPlainLeftClick,
|
|
37
|
+
activeClassName,
|
|
38
|
+
href,
|
|
39
|
+
children
|
|
40
|
+
} = _this$props,
|
|
41
|
+
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
42
|
+
return jsx("a", _objectSpread2(_objectSpread2({
|
|
43
|
+
href: href
|
|
44
|
+
}, restProps), {}, {
|
|
45
|
+
onClick: this.onClick,
|
|
46
|
+
children: children
|
|
47
|
+
}));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { ClickableLink as default };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
1
|
+
import { type ClickableLinkProps as _ClickableLinkProps } from './clickable-link';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Use ClickableLinkProps from './clickable-link' instead
|
|
4
|
+
*/
|
|
5
|
+
type ClickableLinkProps = _ClickableLinkProps;
|
|
6
|
+
export { type ClickableLinkProps };
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use ClickableLink from './clickable-link' instead
|
|
9
|
+
*/
|
|
10
|
+
declare const _default: "./clickable-link";
|
|
11
|
+
export default _default;
|
|
@@ -1,51 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Use ClickableLink from './clickable-link' instead
|
|
3
|
+
*/
|
|
4
|
+
var clickableLink = './clickable-link';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
const LEFT_BUTTON = 0;
|
|
8
|
-
// Cmd/Ctrl/Shift/Alt + Click should trigger default browser behaviour. Same applies to non-left clicks
|
|
9
|
-
const isPlainLeftClick = e => e.button === LEFT_BUTTON && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey;
|
|
10
|
-
class ClickableLink extends PureComponent {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments);
|
|
13
|
-
_defineProperty(this, "onClick", e => {
|
|
14
|
-
const {
|
|
15
|
-
onClick,
|
|
16
|
-
onConditionalClick,
|
|
17
|
-
onPlainLeftClick
|
|
18
|
-
} = this.props;
|
|
19
|
-
const isPlainLeft = isPlainLeftClick(e);
|
|
20
|
-
if (onClick) {
|
|
21
|
-
onClick(e);
|
|
22
|
-
}
|
|
23
|
-
if (onConditionalClick) {
|
|
24
|
-
onConditionalClick(isPlainLeft, e);
|
|
25
|
-
}
|
|
26
|
-
if (onPlainLeftClick && isPlainLeft) {
|
|
27
|
-
e.preventDefault();
|
|
28
|
-
onPlainLeftClick(e);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
const _this$props = this.props,
|
|
34
|
-
{
|
|
35
|
-
onConditionalClick,
|
|
36
|
-
onPlainLeftClick,
|
|
37
|
-
activeClassName,
|
|
38
|
-
href,
|
|
39
|
-
children
|
|
40
|
-
} = _this$props,
|
|
41
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
42
|
-
return jsx("a", _objectSpread2(_objectSpread2({
|
|
43
|
-
href: href
|
|
44
|
-
}, restProps), {}, {
|
|
45
|
-
onClick: this.onClick,
|
|
46
|
-
children: children
|
|
47
|
-
}));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export { ClickableLink as default };
|
|
6
|
+
export { clickableLink as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode, ComponentType, ComponentClass } from 'react';
|
|
2
|
-
import { ClickableLinkProps } from './
|
|
1
|
+
import { type ReactNode, type ComponentType, type ComponentClass } from 'react';
|
|
2
|
+
import { type ClickableLinkProps } from './clickable-link';
|
|
3
3
|
/**
|
|
4
4
|
* @name Link
|
|
5
5
|
*/
|
package/components/link/link.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { PureComponent } from 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
6
|
-
import ClickableLink from './
|
|
6
|
+
import ClickableLink from './clickable-link.js';
|
|
7
7
|
import { l as linkStyles } from '../_helpers/link.js';
|
|
8
8
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
9
|
|
|
@@ -26,7 +26,7 @@ function linkHOC(ComposedComponent) {
|
|
|
26
26
|
onClick
|
|
27
27
|
} = _this$props,
|
|
28
28
|
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
29
|
-
const useButton = pseudo || !isCustom && href
|
|
29
|
+
const useButton = pseudo || !isCustom && (href === null || href === undefined);
|
|
30
30
|
const classes = classNames(linkStyles.link, className, {
|
|
31
31
|
[linkStyles.active]: active,
|
|
32
32
|
[linkStyles.inherit]: inherit,
|
|
@@ -41,7 +41,7 @@ function linkHOC(ComposedComponent) {
|
|
|
41
41
|
}
|
|
42
42
|
if (useButton) {
|
|
43
43
|
return jsx("button", _objectSpread2(_objectSpread2({
|
|
44
|
-
type:
|
|
44
|
+
type: 'button'
|
|
45
45
|
}, props), {}, {
|
|
46
46
|
className: classes,
|
|
47
47
|
onClick: onClick || onPlainLeftClick,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ComponentType, ReactNode, ReactElement, SyntheticEvent } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ClickableLinkProps } from '../link/clickableLink';
|
|
1
|
+
import { type ComponentType, type ReactNode, type ReactElement, type SyntheticEvent } from 'react';
|
|
2
|
+
import { type LinkProps } from '../link/link';
|
|
3
|
+
import { type IconType, type Size } from '../icon';
|
|
4
|
+
import { type ClickableLinkProps } from '../link/clickable-link';
|
|
6
5
|
/**
|
|
7
6
|
* @enum {number}
|
|
8
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { ListDataItemProps } from './consts';
|
|
3
|
+
import { type ListDataItemProps } from './consts';
|
|
4
4
|
export default class ListCustom<T> extends PureComponent<ListDataItemProps<T>> {
|
|
5
5
|
handleKeyPress: (event: React.KeyboardEvent) => void;
|
|
6
6
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
4
4
|
import { PureComponent } from 'react';
|
|
5
5
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
6
6
|
import getEventKey from '../global/get-event-key.js';
|
|
7
|
-
import { getListClasses } from './
|
|
7
|
+
import { getListClasses } from './list.classes.js';
|
|
8
8
|
import 'classnames';
|
|
9
9
|
import './consts.js';
|
|
10
10
|
import '../_helpers/list.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PureComponent, SyntheticEvent } from 'react';
|
|
2
|
-
import { ListDataItemProps } from './consts';
|
|
1
|
+
import { PureComponent, type SyntheticEvent } from 'react';
|
|
2
|
+
import { type ListDataItemProps } from './consts';
|
|
3
3
|
export default class ListItem<T> extends PureComponent<ListDataItemProps<T>> {
|
|
4
4
|
id: string;
|
|
5
5
|
stopBubbling: (e: SyntheticEvent) => void;
|