@jetbrains/ring-ui 5.0.0-beta.2 → 5.0.0-beta.22
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/CHANGELOG.md +61 -0
- package/babel.config.js +1 -12
- package/components/alert/alert.css +5 -15
- package/components/alert/alert.d.ts +3 -0
- package/components/alert/{alert.jsx → alert.js} +8 -7
- package/components/alert/container.css +0 -2
- package/components/alert/{container.jsx → container.js} +0 -0
- package/components/alert-service/alert-service.examples.css +5 -3
- package/components/alert-service/{alert-service.jsx → alert-service.js} +1 -1
- package/components/analytics/analytics__ga-plugin.d.ts +1 -1
- package/components/analytics/analytics__ga-plugin.js +11 -3
- package/components/auth/auth__core.d.ts +3 -1
- package/components/auth/auth__core.js +47 -16
- package/components/auth/down-notification.css +1 -1
- package/components/auth/{down-notification.jsx → down-notification.js} +0 -0
- package/components/auth/{iframe-flow.jsx → iframe-flow.js} +0 -0
- package/components/auth-dialog/auth-dialog.d.ts +11 -0
- package/components/auth-dialog/{auth-dialog.jsx → auth-dialog.js} +33 -2
- package/components/auth-dialog-service/{auth-dialog-service.jsx → auth-dialog-service.js} +1 -1
- package/components/autofocus-ng/autofocus-ng.js +1 -1
- package/components/autofocus-ng/autofocus-ng.test.js +1 -1
- package/components/avatar/{avatar-example-datauri.jsx → avatar-example-datauri.js} +0 -0
- package/components/avatar/avatar.d.ts +1 -0
- package/components/avatar/{avatar.jsx → avatar.js} +0 -0
- package/components/avatar/{fallback-avatar.jsx → fallback-avatar.js} +2 -2
- package/components/badge/{badge.jsx → badge.js} +0 -0
- package/components/button/button.css +95 -206
- package/components/button/button.d.ts +8 -8
- package/components/button/{button.jsx → button.js} +6 -8
- package/components/button/button__classes.d.ts +1 -1
- package/components/button/button__classes.js +4 -7
- package/components/button-group/button-group.css +138 -19
- package/components/button-group/button-group.d.ts +4 -1
- package/components/button-group/{button-group.jsx → button-group.js} +3 -3
- package/components/button-group/{caption.jsx → caption.js} +0 -0
- package/components/button-group-ng/button-group-ng.css +1 -0
- package/components/button-group-ng/button-group-ng.examples.js +1 -1
- package/components/button-ng/button-ng.examples.js +6 -7
- package/components/button-ng/button-ng.js +6 -25
- package/components/button-set/button-set.css +1 -0
- package/components/button-set/{button-set.jsx → button-set.js} +0 -0
- package/components/button-toolbar/button-toolbar.css +2 -0
- package/components/button-toolbar/{button-toolbar.jsx → button-toolbar.js} +0 -0
- package/components/checkbox/checkbox.css +16 -13
- package/components/checkbox/{checkbox.jsx → checkbox.js} +1 -1
- package/components/checkbox-ng/checkbox-ng.js +1 -1
- package/components/code/{code.jsx → code.js} +0 -0
- package/components/confirm/{confirm.jsx → confirm.js} +0 -0
- package/components/confirm-service/{confirm-service.jsx → confirm-service.js} +1 -1
- package/components/content-layout/{content-layout.jsx → content-layout.js} +0 -0
- package/components/content-layout/{sidebar.jsx → sidebar.js} +0 -0
- package/components/contenteditable/{contenteditable.jsx → contenteditable.js} +0 -0
- package/components/data-list/data-list.d.ts +4 -8
- package/components/data-list/{data-list.jsx → data-list.js} +0 -0
- package/components/data-list/{data-list.mock.jsx → data-list.mock.js} +0 -0
- package/components/data-list/{item.jsx → item.js} +0 -0
- package/components/data-list/{title.jsx → title.js} +0 -0
- package/components/date-picker/{date-input.jsx → date-input.js} +2 -1
- package/components/date-picker/date-picker.css +3 -1
- package/components/date-picker/{date-picker.jsx → date-picker.js} +0 -0
- package/components/date-picker/{date-popup.jsx → date-popup.js} +0 -1
- package/components/date-picker/{day.jsx → day.js} +0 -0
- package/components/date-picker/{month-names.jsx → month-names.js} +0 -0
- package/components/date-picker/{month-slider.jsx → month-slider.js} +0 -0
- package/components/date-picker/{month.jsx → month.js} +0 -0
- package/components/date-picker/{months.jsx → months.js} +0 -0
- package/components/date-picker/{weekdays.jsx → weekdays.js} +0 -0
- package/components/date-picker/{years.jsx → years.js} +0 -0
- package/components/dialog/dialog.css +10 -3
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/{dialog.jsx → dialog.js} +0 -0
- package/components/dialog-ng/dialog-ng__template.js +1 -0
- package/components/dropdown/{anchor.jsx → anchor.js} +0 -0
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/dropdown/{dropdown.jsx → dropdown.js} +0 -0
- package/components/dropdown-menu/{dropdown-menu.jsx → dropdown-menu.js} +0 -0
- package/components/error-bubble/error-bubble-legacy.css +1 -1
- package/components/error-bubble/error-bubble.css +1 -1
- package/components/error-bubble/{error-bubble.jsx → error-bubble.js} +0 -0
- package/components/error-message/{error-message.jsx → error-message.js} +0 -0
- package/components/footer/{footer.jsx → footer.js} +0 -0
- package/components/global/angular-component-factory.js +1 -1
- package/components/global/controls-height.d.ts +7 -0
- package/components/global/controls-height.js +8 -0
- package/components/global/{create-stateful-context.jsx → create-stateful-context.js} +0 -0
- package/components/global/{focus-sensor-hoc.jsx → focus-sensor-hoc.js} +0 -0
- package/components/global/promise-with-timeout.d.ts +2 -1
- package/components/global/promise-with-timeout.js +5 -2
- package/components/global/{react-dom-renderer.jsx → react-dom-renderer.js} +0 -0
- package/components/global/react-render-adapter.d.ts +29 -0
- package/components/global/react-render-adapter.js +36 -0
- package/components/global/rerender-hoc.d.ts +5 -9
- package/components/global/rerender-hoc.js +4 -2
- package/components/global/theme.d.ts +7 -20
- package/components/global/theme.js +40 -0
- package/components/global/variables.css +30 -26
- package/components/global/variables.d.ts +10 -9
- package/components/global/variables_dark.css +67 -0
- package/components/grid/{col.jsx → col.js} +0 -0
- package/components/grid/{grid.jsx → grid.js} +0 -0
- package/components/grid/{row.jsx → row.js} +0 -0
- package/components/group/{group.jsx → group.js} +0 -0
- package/components/header/header.css +19 -10
- package/components/header/header.d.ts +7 -69
- package/components/header/{header.jsx → header.js} +10 -9
- package/components/header/{logo.jsx → logo.js} +0 -0
- package/components/header/profile.d.ts +3 -3
- package/components/header/{profile.jsx → profile.js} +0 -0
- package/components/header/{services-link.jsx → services-link.js} +0 -0
- package/components/header/services.css +3 -3
- package/components/header/services.d.ts +5 -0
- package/components/header/{services.jsx → services.js} +8 -2
- package/components/header/{smart-profile.jsx → smart-profile.js} +0 -0
- package/components/header/{smart-services.jsx → smart-services.js} +0 -0
- package/components/header/tray-icon.d.ts +18 -575
- package/components/header/{tray-icon.jsx → tray-icon.js} +0 -0
- package/components/header/{tray.jsx → tray.js} +0 -0
- package/components/heading/heading.css +4 -1
- package/components/heading/{heading.jsx → heading.js} +0 -0
- package/components/icon/icon.css +1 -1
- package/components/icon/{icon.jsx → icon.js} +0 -0
- package/components/icon/{icon__svg.jsx → icon__svg.js} +0 -0
- package/components/input/input.css +86 -149
- package/components/input/input.d.ts +15 -17
- package/components/input/{input.jsx → input.js} +29 -33
- package/components/input-ng/input-ng.examples.js +1 -1
- package/components/input-ng/input-ng.js +45 -49
- package/components/island/adaptive-island-hoc.d.ts +6 -10
- package/components/island/{adaptive-island-hoc.jsx → adaptive-island-hoc.js} +2 -2
- package/components/island/content.d.ts +33 -2
- package/components/island/{content.jsx → content.js} +7 -11
- package/components/island/{header.jsx → header.js} +7 -4
- package/components/island/island.css +8 -5
- package/components/island/island.d.ts +6 -10
- package/components/island/{island.jsx → island.js} +0 -0
- package/components/island-legacy/{content-legacy.jsx → content-legacy.js} +0 -0
- package/components/island-legacy/{header-legacy.jsx → header-legacy.js} +0 -0
- package/components/island-legacy/island-legacy.css +1 -1
- package/components/island-legacy/{island-legacy.jsx → island-legacy.js} +0 -0
- package/components/link/clickableLink.d.ts +1 -1
- package/components/link/{clickableLink.jsx → clickableLink.js} +0 -0
- package/components/link/link.css +0 -2
- package/components/link/link.d.ts +14 -22
- package/components/link/{link.jsx → link.js} +0 -0
- package/components/list/consts.d.ts +3 -1
- package/components/list/list.css +1 -0
- package/components/list/list.d.ts +3 -1
- package/components/list/{list.jsx → list.js} +12 -13
- package/components/list/{list__custom.jsx → list__custom.js} +0 -0
- package/components/list/{list__hint.jsx → list__hint.js} +0 -0
- package/components/list/{list__item.jsx → list__item.js} +0 -0
- package/components/list/{list__link.jsx → list__link.js} +2 -2
- package/components/list/{list__separator.jsx → list__separator.js} +0 -0
- package/components/list/{list__title.jsx → list__title.js} +0 -0
- package/components/loader/{loader.jsx → loader.js} +0 -0
- package/components/loader-inline/loader-inline.css +14 -0
- package/components/loader-inline/loader-inline.d.ts +4 -41
- package/components/loader-inline/{loader-inline.jsx → loader-inline.js} +3 -11
- package/components/loader-inline-ng/loader-inline-ng.js +1 -17
- package/components/loader-inline-ng/loader-inline-ng.test.js +0 -11
- package/components/loader-screen/{loader-screen.jsx → loader-screen.js} +0 -0
- package/components/login-dialog/{login-dialog.jsx → login-dialog.js} +0 -0
- package/components/login-dialog/{service.jsx → service.js} +1 -1
- package/components/markdown/code.d.ts +6 -13
- package/components/markdown/{code.jsx → code.js} +2 -2
- package/components/markdown/heading.d.ts +5 -9
- package/components/markdown/{heading.jsx → heading.js} +2 -2
- package/components/markdown/link.d.ts +4 -8
- package/components/markdown/{link.jsx → link.js} +1 -1
- package/components/markdown/markdown.d.ts +2 -3
- package/components/markdown/{markdown.jsx → markdown.js} +14 -11
- package/components/message/message.css +18 -28
- package/components/message/message.d.ts +3 -0
- package/components/message/{message.jsx → message.js} +42 -22
- package/components/pager/{pager.jsx → pager.js} +2 -8
- package/components/panel/{panel.jsx → panel.js} +0 -0
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.d.ts +7 -1
- package/components/popup/{popup.jsx → popup.js} +4 -2
- package/components/popup/popup.target.d.ts +2 -1
- package/components/popup/{popup.target.jsx → popup.target.js} +0 -0
- package/components/popup/position.d.ts +1 -1
- package/components/popup/position.js +2 -2
- package/components/popup-menu/popup-menu.d.ts +1 -0
- package/components/popup-menu/{popup-menu.jsx → popup-menu.js} +0 -0
- package/components/progress-bar/progress-bar.css +8 -12
- package/components/progress-bar/progress-bar.d.ts +0 -4
- package/components/progress-bar/{progress-bar.jsx → progress-bar.js} +1 -6
- package/components/progress-bar-ng/progress-bar-ng.examples.js +3 -2
- package/components/query-assist/query-assist.css +48 -64
- package/components/query-assist/query-assist.d.ts +5 -14
- package/components/query-assist/{query-assist.jsx → query-assist.js} +6 -12
- package/components/query-assist/{query-assist__suggestions.jsx → query-assist__suggestions.js} +0 -0
- package/components/radio/radio.css +10 -4
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/{radio.jsx → radio.js} +0 -0
- package/components/radio/{radio__item.jsx → radio__item.js} +0 -0
- package/components/select/select-popup.css +5 -1
- package/components/select/select.css +23 -38
- package/components/select/select.d.ts +16 -20
- package/components/select/{select.jsx → select.js} +37 -47
- package/components/select/{select__filter.jsx → select__filter.js} +2 -1
- package/components/select/select__popup.d.ts +1 -1
- package/components/select/{select__popup.jsx → select__popup.js} +1 -2
- package/components/select-ng/select-ng.examples.js +1 -0
- package/components/select-ng/select-ng.js +19 -6
- package/components/select-ng/select-ng.test.js +1 -1
- package/components/select-ng/select-ng__lazy.js +13 -9
- package/components/select-ng/select-ng__lazy.test.js +3 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +4 -8
- package/components/shortcuts/{shortcuts-hoc.jsx → shortcuts-hoc.js} +0 -0
- package/components/shortcuts/shortcuts.d.ts +1 -1
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.css +1 -1
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.examples.js +1 -1
- package/components/tab-trap/tab-trap.d.ts +1 -1
- package/components/tab-trap/{tab-trap.jsx → tab-trap.js} +0 -0
- package/components/table/{cell.jsx → cell.js} +0 -0
- package/components/table/disable-hover-hoc.d.ts +4 -8
- package/components/table/{disable-hover-hoc.jsx → disable-hover-hoc.js} +0 -0
- package/components/table/{header-cell.jsx → header-cell.js} +0 -0
- package/components/table/header.d.ts +8 -1
- package/components/table/{header.jsx → header.js} +0 -0
- package/components/table/{multitable.jsx → multitable.js} +0 -0
- package/components/table/row-with-focus-sensor.d.ts +4 -4
- package/components/table/{row-with-focus-sensor.jsx → row-with-focus-sensor.js} +4 -4
- package/components/table/row.d.ts +1 -0
- package/components/table/{row.jsx → row.js} +0 -0
- package/components/table/{selection-shortcuts-hoc.jsx → selection-shortcuts-hoc.js} +0 -0
- package/components/table/smart-table.d.ts +1 -0
- package/components/table/{smart-table.jsx → smart-table.js} +7 -3
- package/components/table/table.d.ts +4 -8
- package/components/table/{table.jsx → table.js} +0 -0
- package/components/tabs/{collapsible-more.jsx → collapsible-more.js} +2 -2
- package/components/tabs/{collapsible-tab.jsx → collapsible-tab.js} +2 -2
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/{collapsible-tabs.jsx → collapsible-tabs.js} +1 -1
- package/components/tabs/custom-item.d.ts +1 -1
- package/components/tabs/{custom-item.jsx → custom-item.js} +0 -0
- package/components/tabs/dumb-tabs.d.ts +6 -109
- package/components/tabs/{dumb-tabs.jsx → dumb-tabs.js} +5 -9
- package/components/tabs/smart-tabs.d.ts +4 -4
- package/components/tabs/{smart-tabs.jsx → smart-tabs.js} +9 -3
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/{tab-link.jsx → tab-link.js} +0 -0
- package/components/tabs/tab.d.ts +3 -1
- package/components/tabs/{tab.jsx → tab.js} +0 -0
- package/components/tabs/tabs.css +17 -28
- package/components/tabs-ng/tabs-ng.examples.js +11 -3
- package/components/tabs-ng/tabs-ng.js +1 -4
- package/components/tabs-ng/tabs-ng__template.js +1 -1
- package/components/tag/tag.css +31 -8
- package/components/tag/tag.d.ts +1 -0
- package/components/tag/{tag.jsx → tag.js} +2 -2
- package/components/tags-input/tags-input.css +10 -4
- package/components/tags-input/tags-input.d.ts +4 -8
- package/components/tags-input/{tags-input.jsx → tags-input.js} +0 -0
- package/components/tags-list/tags-list.d.ts +1 -1
- package/components/tags-list/{tags-list.jsx → tags-list.js} +0 -0
- package/components/text/{text.jsx → text.js} +0 -0
- package/components/toggle/toggle.css +61 -35
- package/components/toggle/toggle.d.ts +9 -89
- package/components/toggle/{toggle.jsx → toggle.js} +7 -7
- package/components/tooltip/tooltip.css +7 -0
- package/components/tooltip/tooltip.d.ts +1 -0
- package/components/tooltip/{tooltip.jsx → tooltip.js} +3 -2
- package/components/tooltip-ng/tooltip-ng.js +13 -10
- package/components/user-agreement/service.d.ts +14 -62
- package/components/user-agreement/{service.jsx → service.js} +1 -1
- package/components/user-agreement/{user-agreement.jsx → user-agreement.js} +1 -1
- package/components/user-card/{card.jsx → card.js} +0 -0
- package/components/user-card/{smart-user-card-tooltip.jsx → smart-user-card-tooltip.js} +0 -0
- package/components/user-card/{tooltip.jsx → tooltip.js} +0 -0
- package/dist/_helpers/anchor.js +3 -3
- package/dist/_helpers/badge.js +1 -1
- package/dist/_helpers/button-group.js +1 -1
- package/dist/_helpers/button-set.js +1 -1
- package/dist/_helpers/button-toolbar.js +1 -1
- package/dist/_helpers/button__classes.js +5 -8
- package/dist/_helpers/card.js +1 -1
- package/dist/_helpers/checkbox.js +1 -1
- package/dist/_helpers/date-picker.js +1 -1
- package/dist/_helpers/dialog__body-scroll-preventer.js +3 -2
- package/dist/_helpers/error-message.js +1 -1
- package/dist/_helpers/footer.js +1 -1
- package/dist/_helpers/grid.js +1 -1
- package/dist/_helpers/group.js +1 -1
- package/dist/_helpers/header.js +1 -1
- package/dist/_helpers/icon.js +1 -1
- package/dist/_helpers/input.js +1 -1
- package/dist/_helpers/island.js +1 -1
- package/dist/_helpers/link.js +1 -1
- package/dist/_helpers/list.js +1 -1
- package/dist/_helpers/loader-inline.js +3 -0
- package/dist/_helpers/loader-screen.js +1 -1
- package/dist/_helpers/panel.js +1 -1
- package/dist/_helpers/query-assist__suggestions.js +1 -1
- package/dist/_helpers/radio.js +1 -1
- package/dist/_helpers/select__filter.js +6 -3
- package/dist/_helpers/services-link.js +2 -2
- package/dist/_helpers/sidebar.js +3 -2
- package/dist/_helpers/table.js +1 -1
- package/dist/_helpers/tabs.js +1 -1
- package/dist/_helpers/theme.js +55 -0
- package/dist/_helpers/title.js +2 -1
- package/dist/alert/alert.d.ts +3 -0
- package/dist/alert/alert.js +35 -21
- package/dist/alert/container.js +1 -1
- package/dist/alert-service/alert-service.js +23 -8
- package/dist/analytics/analytics.js +4 -3
- package/dist/analytics/analytics__custom-plugin.js +2 -1
- package/dist/analytics/analytics__fus-plugin.js +1 -0
- package/dist/analytics/analytics__ga-plugin.d.ts +1 -1
- package/dist/analytics/analytics__ga-plugin.js +15 -7
- package/dist/analytics/analytics__plugin-utils.js +4 -3
- package/dist/analytics-ng/analytics-ng.js +3 -2
- package/dist/auth/auth.js +22 -9
- package/dist/auth/auth__core.d.ts +3 -1
- package/dist/auth/auth__core.js +87 -38
- package/dist/auth/background-flow.js +2 -1
- package/dist/auth/down-notification.js +21 -8
- package/dist/auth/iframe-flow.js +4 -1
- package/dist/auth/landing.js +26 -13
- package/dist/auth/request-builder.js +1 -0
- package/dist/auth/response-parser.js +1 -0
- package/dist/auth/storage.js +22 -7
- package/dist/auth/token-validator.js +2 -0
- package/dist/auth/window-flow.js +2 -1
- package/dist/auth-dialog/auth-dialog.d.ts +11 -0
- package/dist/auth-dialog/auth-dialog.js +55 -8
- package/dist/auth-dialog-service/auth-dialog-service.js +5 -2
- package/dist/auth-ng/auth-ng.js +23 -10
- package/dist/autofocus-ng/autofocus-ng.js +2 -1
- package/dist/avatar/avatar-example-datauri.js +1 -23
- package/dist/avatar/avatar.d.ts +1 -0
- package/dist/avatar/avatar.js +5 -3
- package/dist/avatar/fallback-avatar.js +6 -5
- package/dist/avatar-editor-ng/avatar-editor-ng.js +22 -7
- package/dist/avatar-editor-ng/avatar-editor-ng__template.js +1 -28
- package/dist/avatar-ng/avatar-ng.js +3 -0
- package/dist/badge/badge.js +1 -0
- package/dist/badge-ng/badge-ng.js +2 -0
- package/dist/breadcrumb-ng/breadcrumb-ng.js +4 -28
- package/dist/button/button.d.ts +8 -8
- package/dist/button/button.js +8 -8
- package/dist/button/button__classes.d.ts +1 -1
- package/dist/button/button__classes.js +0 -3
- package/dist/button-group/button-group.d.ts +4 -1
- package/dist/button-group/button-group.js +5 -3
- package/dist/button-group-ng/button-group-ng.js +2 -1
- package/dist/button-ng/button-ng.js +9 -40
- package/dist/button-set-ng/button-set-ng.js +1 -1
- package/dist/button-toolbar-ng/button-toolbar-ng.js +1 -0
- package/dist/caret/caret.js +2 -0
- package/dist/checkbox/checkbox.js +3 -1
- package/dist/checkbox-ng/checkbox-ng.js +4 -21
- package/dist/code/code.js +4 -3
- package/dist/confirm/confirm.js +7 -5
- package/dist/confirm-ng/confirm-ng.js +4 -1
- package/dist/confirm-service/confirm-service.js +5 -2
- package/dist/content-layout/content-layout.js +1 -0
- package/dist/content-layout/sidebar.js +1 -0
- package/dist/data-list/data-list.d.ts +4 -8
- package/dist/data-list/data-list.js +5 -8
- package/dist/data-list/data-list.mock.js +1 -0
- package/dist/data-list/item.js +11 -14
- package/dist/data-list/selection.js +1 -0
- package/dist/data-list/title.js +3 -1
- package/dist/data-list-ng/data-list-ng.js +6 -8
- package/dist/date-picker/consts.js +1 -1
- package/dist/date-picker/date-input.js +8 -5
- package/dist/date-picker/date-picker.js +11 -9
- package/dist/date-picker/date-popup.js +5 -4
- package/dist/date-picker/day.js +1 -0
- package/dist/date-picker/month-names.js +1 -0
- package/dist/date-picker/month-slider.js +1 -0
- package/dist/date-picker/month.js +1 -0
- package/dist/date-picker/months.js +1 -0
- package/dist/date-picker/years.js +1 -0
- package/dist/dialog/dialog.d.ts +1 -1
- package/dist/dialog/dialog.js +5 -3
- package/dist/dialog/dialog__body-scroll-preventer.js +1 -0
- package/dist/dialog-ng/dialog-ng.js +9 -6
- package/dist/dialog-ng/dialog-ng__template.js +1 -69
- package/dist/docked-panel-ng/docked-panel-ng.js +2 -1
- package/dist/dropdown/anchor.js +3 -1
- package/dist/dropdown/dropdown.d.ts +2 -2
- package/dist/dropdown/dropdown.js +3 -1
- package/dist/dropdown-menu/dropdown-menu.js +5 -3
- package/dist/error-bubble/error-bubble.js +3 -1
- package/dist/error-message/error-message.js +3 -1
- package/dist/error-message-ng/error-message-ng.js +3 -21
- package/dist/footer/footer.js +1 -0
- package/dist/footer-ng/footer-ng.js +3 -14
- package/dist/form-ng/form-ng.js +2 -4
- package/dist/global/angular-component-factory.js +8 -6
- package/dist/global/controls-height.d.ts +7 -0
- package/dist/global/controls-height.js +13 -0
- package/dist/global/create-stateful-context.js +3 -2
- package/dist/global/data-tests.js +2 -0
- package/dist/global/dom.js +1 -0
- package/dist/global/focus-sensor-hoc.js +1 -0
- package/dist/global/fuzzy-highlight.js +1 -1
- package/dist/global/inject-styles.js +5 -7
- package/dist/global/listeners.js +1 -0
- package/dist/global/memoize.js +2 -0
- package/dist/global/normalize-indent.js +2 -0
- package/dist/global/promise-with-timeout.d.ts +2 -1
- package/dist/global/promise-with-timeout.js +6 -2
- package/dist/global/react-dom-renderer.js +1 -0
- package/dist/global/react-render-adapter.d.ts +29 -0
- package/dist/global/react-render-adapter.js +41 -0
- package/dist/global/rerender-hoc.d.ts +5 -9
- package/dist/global/rerender-hoc.js +7 -3
- package/dist/global/theme.d.ts +7 -20
- package/dist/global/theme.js +22 -62
- package/dist/global/trivial-template-tag.js +2 -0
- package/dist/global/url.js +3 -1
- package/dist/global/variables.d.ts +10 -9
- package/dist/grid/col.js +2 -1
- package/dist/grid/grid.js +1 -0
- package/dist/grid/row.js +1 -1
- package/dist/group-ng/group-ng.js +1 -1
- package/dist/header/header.d.ts +7 -69
- package/dist/header/header.js +31 -31
- package/dist/header/logo.js +2 -0
- package/dist/header/profile.d.ts +3 -3
- package/dist/header/profile.js +6 -4
- package/dist/header/services-link.js +1 -0
- package/dist/header/services.d.ts +5 -0
- package/dist/header/services.js +13 -3
- package/dist/header/smart-profile.js +27 -27
- package/dist/header/smart-services.js +23 -24
- package/dist/header/tray-icon.d.ts +18 -575
- package/dist/header/tray-icon.js +6 -4
- package/dist/heading/heading.js +3 -3
- package/dist/http/http.js +4 -2
- package/dist/http/http.mock.js +2 -0
- package/dist/hub-source/hub-source.js +1 -1
- package/dist/hub-source/hub-source__user.js +4 -2
- package/dist/hub-source/hub-source__users-groups.js +3 -2
- package/dist/icon/icon.js +3 -3
- package/dist/icon/icon__svg.js +2 -0
- package/dist/icon/index.js +2 -0
- package/dist/icon-ng/icon-ng.js +7 -5
- package/dist/input/input.d.ts +15 -17
- package/dist/input/input.js +35 -42
- package/dist/input-ng/input-ng.js +8 -64
- package/dist/island/adaptive-island-hoc.d.ts +6 -10
- package/dist/island/adaptive-island-hoc.js +8 -5
- package/dist/island/content.d.ts +33 -2
- package/dist/island/content.js +10 -13
- package/dist/island/header.js +10 -6
- package/dist/island/island.d.ts +6 -10
- package/dist/island/island.js +1 -0
- package/dist/island-ng/island-content-ng.js +2 -16
- package/dist/island-ng/island-header-ng.js +2 -8
- package/dist/island-ng/island-ng-class-fixer.js +2 -0
- package/dist/island-ng/island-ng.js +2 -8
- package/dist/link/clickableLink.d.ts +1 -1
- package/dist/link/clickableLink.js +1 -0
- package/dist/link/link.d.ts +14 -22
- package/dist/link/link.js +4 -3
- package/dist/link-ng/link-ng.js +1 -4
- package/dist/list/consts.d.ts +3 -1
- package/dist/list/list.d.ts +3 -1
- package/dist/list/list.js +30 -23
- package/dist/list/list__custom.js +1 -0
- package/dist/list/list__item.js +6 -4
- package/dist/list/list__link.js +3 -1
- package/dist/list/list__users-groups-source.js +4 -2
- package/dist/loader/loader.js +1 -0
- package/dist/loader/loader__core.js +5 -4
- package/dist/loader-inline/loader-inline.d.ts +4 -41
- package/dist/loader-inline/loader-inline.js +4 -21
- package/dist/loader-inline-ng/loader-inline-ng.js +2 -30
- package/dist/loader-ng/loader-ng.js +1 -0
- package/dist/loader-screen/loader-screen.js +1 -0
- package/dist/loader-screen-ng/loader-screen-ng.js +2 -6
- package/dist/login-dialog/login-dialog.js +4 -2
- package/dist/login-dialog/service.js +5 -2
- package/dist/markdown/code.d.ts +6 -13
- package/dist/markdown/code.js +4 -3
- package/dist/markdown/heading.d.ts +5 -9
- package/dist/markdown/heading.js +2 -2
- package/dist/markdown/link.d.ts +4 -8
- package/dist/markdown/link.js +2 -1
- package/dist/markdown/markdown.d.ts +2 -3
- package/dist/markdown/markdown.js +17 -16
- package/dist/message/message.d.ts +3 -0
- package/dist/message/message.js +56 -42
- package/dist/old-browsers-message/old-browsers-message.js +2 -1
- package/dist/old-browsers-message/old-browsers-message__stop.js +1 -0
- package/dist/old-browsers-message/white-list.js +1 -0
- package/dist/pager/pager.js +14 -15
- package/dist/pager-ng/pager-ng.js +8 -9
- package/dist/panel-ng/panel-ng.js +1 -0
- package/dist/permissions/permissions.js +1 -1
- package/dist/permissions-ng/permissions-ng.js +23 -10
- package/dist/place-under-ng/place-under-ng.js +3 -2
- package/dist/popup/popup.d.ts +7 -1
- package/dist/popup/popup.js +11 -5
- package/dist/popup/popup.target.d.ts +2 -1
- package/dist/popup/position.d.ts +1 -1
- package/dist/popup/position.js +3 -2
- package/dist/popup-menu/popup-menu.d.ts +1 -0
- package/dist/popup-menu/popup-menu.js +3 -1
- package/dist/progress-bar/progress-bar.d.ts +0 -4
- package/dist/progress-bar/progress-bar.js +3 -8
- package/dist/progress-bar-ng/progress-bar-ng.js +2 -1
- package/dist/promised-click-ng/promised-click-ng.js +4 -2
- package/dist/proxy-attrs/proxy-attrs.js +5 -3
- package/dist/query-assist/query-assist.d.ts +5 -14
- package/dist/query-assist/query-assist.js +19 -31
- package/dist/query-assist/query-assist__suggestions.js +3 -1
- package/dist/query-assist-ng/query-assist-ng.js +9 -10
- package/dist/radio/radio.d.ts +1 -1
- package/dist/radio/radio.js +1 -0
- package/dist/radio/radio__item.js +1 -0
- package/dist/radio-ng/radio-ng.js +2 -18
- package/dist/save-field-ng/save-field-ng.js +5 -10
- package/dist/save-field-ng/save-field-ng__template.js +1 -32
- package/dist/select/select.d.ts +16 -20
- package/dist/select/select.js +65 -77
- package/dist/select/select__filter.js +5 -3
- package/dist/select/select__popup.d.ts +1 -1
- package/dist/select/select__popup.js +12 -16
- package/dist/select-ng/select-ng.js +28 -17
- package/dist/select-ng/select-ng__lazy.js +24 -20
- package/dist/select-ng/select-ng__options.js +2 -2
- package/dist/shortcuts/shortcuts-hoc.d.ts +4 -8
- package/dist/shortcuts/shortcuts-hoc.js +4 -3
- package/dist/shortcuts/shortcuts.d.ts +1 -1
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +5 -2
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +1 -48
- package/dist/shortcuts-ng/shortcuts-ng.js +4 -3
- package/dist/sidebar-ng/sidebar-ng.js +4 -2
- package/dist/sidebar-ng/sidebar-ng__button-template.js +1 -18
- package/dist/sidebar-ng/sidebar-ng__template.js +1 -10
- package/dist/storage/storage.js +22 -7
- package/dist/storage/storage__fallback.js +4 -3
- package/dist/storage/storage__local.js +22 -7
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.d.ts +1 -1
- package/dist/tab-trap/tab-trap.js +2 -1
- package/dist/table/cell.js +1 -0
- package/dist/table/disable-hover-hoc.d.ts +4 -8
- package/dist/table/disable-hover-hoc.js +4 -3
- package/dist/table/header-cell.js +2 -0
- package/dist/table/header.d.ts +8 -1
- package/dist/table/header.js +3 -1
- package/dist/table/multitable.js +1 -0
- package/dist/table/row-with-focus-sensor.d.ts +4 -4
- package/dist/table/row-with-focus-sensor.js +16 -6
- package/dist/table/row.d.ts +1 -0
- package/dist/table/row.js +9 -7
- package/dist/table/selection-adapter.js +2 -0
- package/dist/table/selection-shortcuts-hoc.js +1 -0
- package/dist/table/selection.js +1 -0
- package/dist/table/smart-table.d.ts +1 -0
- package/dist/table/smart-table.js +14 -8
- package/dist/table/table.d.ts +4 -8
- package/dist/table/table.js +4 -2
- package/dist/table-legacy-ng/table-legacy-ng.js +16 -54
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +9 -16
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +2 -1
- package/dist/table-ng/smart-table-ng.js +5 -2
- package/dist/table-ng/table-ng.js +5 -2
- package/dist/tabs/collapsible-more.js +5 -3
- package/dist/tabs/collapsible-tab.js +4 -2
- package/dist/tabs/collapsible-tabs.d.ts +2 -2
- package/dist/tabs/collapsible-tabs.js +4 -2
- package/dist/tabs/custom-item.d.ts +1 -1
- package/dist/tabs/dumb-tabs.d.ts +6 -109
- package/dist/tabs/dumb-tabs.js +9 -13
- package/dist/tabs/smart-tabs.d.ts +4 -4
- package/dist/tabs/smart-tabs.js +13 -9
- package/dist/tabs/tab-link.d.ts +1 -1
- package/dist/tabs/tab-link.js +1 -0
- package/dist/tabs/tab.d.ts +3 -1
- package/dist/tabs/tab.js +1 -0
- package/dist/tabs/tabs.js +4 -2
- package/dist/tabs-ng/tabs-ng.js +2 -6
- package/dist/tabs-ng/tabs-ng__template.js +1 -38
- package/dist/tag/tag.d.ts +1 -0
- package/dist/tag/tag.js +8 -6
- package/dist/tags-input/tags-input.d.ts +4 -8
- package/dist/tags-input/tags-input.js +10 -11
- package/dist/tags-input-ng/tags-input-ng.js +9 -10
- package/dist/tags-list/tags-list.d.ts +1 -1
- package/dist/tags-list/tags-list.js +4 -2
- package/dist/template-ng/template-ng.js +1 -0
- package/dist/text/text.js +1 -1
- package/dist/theme-ng/theme-ng.js +1 -0
- package/dist/toggle/toggle.d.ts +9 -89
- package/dist/toggle/toggle.js +8 -8
- package/dist/toggle-ng/toggle-ng.js +4 -3
- package/dist/tooltip/tooltip.d.ts +1 -0
- package/dist/tooltip/tooltip.js +8 -3
- package/dist/tooltip-ng/tooltip-ng.js +12 -6
- package/dist/user-agreement/service.d.ts +14 -62
- package/dist/user-agreement/service.js +23 -21
- package/dist/user-agreement/toolbox.eula.js +1 -160
- package/dist/user-agreement/user-agreement.js +10 -10
- package/dist/user-card/card.js +2 -0
- package/dist/user-card/smart-user-card-tooltip.js +8 -11
- package/dist/user-card/tooltip.js +3 -1
- package/dist/user-card/user-card.js +4 -7
- package/dist/user-card-ng/user-card-ng.js +7 -9
- package/package.json +78 -69
- package/webpack.config.js +0 -11
- package/components/global/conic-gradient.d.ts +0 -796
- package/components/global/conic-gradient.js +0 -21
- package/components/global/radial-gradient-mask.d.ts +0 -9
- package/components/global/radial-gradient-mask.js +0 -39
- package/components/global/supports-css.d.ts +0 -2
- package/components/global/supports-css.js +0 -14
- package/components/global/theme.jsx +0 -39
- package/components/global/variables_dark.d.ts +0 -3
- package/components/global/variables_dark.js +0 -53
- package/components/loader-inline/inject-styles.d.ts +0 -2
- package/components/loader-inline/inject-styles.js +0 -17
- package/dist/_helpers/inject-styles.js +0 -22
- package/dist/global/conic-gradient.d.ts +0 -796
- package/dist/global/conic-gradient.js +0 -35
- package/dist/global/radial-gradient-mask.d.ts +0 -9
- package/dist/global/radial-gradient-mask.js +0 -49
- package/dist/global/supports-css.d.ts +0 -2
- package/dist/global/supports-css.js +0 -20
- package/dist/global/variables_dark.d.ts +0 -3
- package/dist/global/variables_dark.js +0 -57
- package/dist/loader-inline/inject-styles.d.ts +0 -2
- package/dist/loader-inline/inject-styles.js +0 -11
|
@@ -3,7 +3,9 @@ import Pager from '../pager-ng/pager-ng.js';
|
|
|
3
3
|
import MessageBundle from '../message-bundle-ng/message-bundle-ng.js';
|
|
4
4
|
import '../global/angular-component-factory.js';
|
|
5
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
6
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
6
7
|
import 'react';
|
|
8
|
+
import '../global/react-render-adapter.js';
|
|
7
9
|
import 'react-dom';
|
|
8
10
|
import '../global/ring-angular-component.js';
|
|
9
11
|
import '../global/react-dom-renderer.js';
|
|
@@ -20,9 +22,10 @@ import 'util-deprecate';
|
|
|
20
22
|
import '../icon/icon__constants.js';
|
|
21
23
|
import '../_helpers/icon.js';
|
|
22
24
|
import '../icon/icon__svg.js';
|
|
25
|
+
import 'core-js/modules/es.string.replace.js';
|
|
23
26
|
import '../global/memoize.js';
|
|
24
|
-
import '../global/theme.js';
|
|
25
27
|
import '../link/clickableLink.js';
|
|
28
|
+
import '../global/controls-height.js';
|
|
26
29
|
import '../_helpers/button__classes.js';
|
|
27
30
|
import '../button-group/button-group.js';
|
|
28
31
|
import '../button-group/caption.js';
|
|
@@ -30,7 +33,8 @@ import '../_helpers/button-group.js';
|
|
|
30
33
|
import '../button-toolbar/button-toolbar.js';
|
|
31
34
|
import '../_helpers/button-toolbar.js';
|
|
32
35
|
import '../select/select.js';
|
|
33
|
-
import '@jetbrains/icons/
|
|
36
|
+
import '@jetbrains/icons/chevron-down';
|
|
37
|
+
import '@jetbrains/icons/close-12px';
|
|
34
38
|
import 'deep-equal';
|
|
35
39
|
import '../dropdown/dropdown.js';
|
|
36
40
|
import '../global/data-tests.js';
|
|
@@ -65,7 +69,7 @@ import '../_helpers/link.js';
|
|
|
65
69
|
import '../_helpers/list.js';
|
|
66
70
|
import '../list/list__item.js';
|
|
67
71
|
import '../checkbox/checkbox.js';
|
|
68
|
-
import '@jetbrains/icons/checkmark';
|
|
72
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
69
73
|
import '@jetbrains/icons/remove-10px';
|
|
70
74
|
import '../_helpers/checkbox.js';
|
|
71
75
|
import '../list/list__custom.js';
|
|
@@ -83,12 +87,7 @@ import '../global/fuzzy-highlight.js';
|
|
|
83
87
|
import '../select/select__popup.js';
|
|
84
88
|
import '@jetbrains/icons/search';
|
|
85
89
|
import '../loader-inline/loader-inline.js';
|
|
86
|
-
import '../_helpers/
|
|
87
|
-
import '../global/conic-gradient.js';
|
|
88
|
-
import 'conic-gradient';
|
|
89
|
-
import '../global/supports-css.js';
|
|
90
|
-
import '../global/inject-styles.js';
|
|
91
|
-
import '../global/radial-gradient-mask.js';
|
|
90
|
+
import '../_helpers/loader-inline.js';
|
|
92
91
|
import '../shortcuts/shortcuts-hoc.js';
|
|
93
92
|
import '../tags-list/tags-list.js';
|
|
94
93
|
import '../tag/tag.js';
|
|
@@ -100,13 +99,7 @@ const angularModule = angular.module('Ring.table-legacy.pager', [MessageBundle,
|
|
|
100
99
|
angularModule.directive('rgLegacyTablePager', function rgLegacyTablePagerDirective() {
|
|
101
100
|
return {
|
|
102
101
|
restrict: 'E',
|
|
103
|
-
template:
|
|
104
|
-
total="pagerCtrl.total"
|
|
105
|
-
current-page="pagerCtrl.getPage()"
|
|
106
|
-
page-size="pagerCtrl.top"
|
|
107
|
-
on-page-change="pagerCtrl.onPageChange"
|
|
108
|
-
disable-page-size-selector="true"
|
|
109
|
-
></rg-pager>`,
|
|
102
|
+
template: "<rg-pager\n total=\"pagerCtrl.total\"\n current-page=\"pagerCtrl.getPage()\"\n page-size=\"pagerCtrl.top\"\n on-page-change=\"pagerCtrl.onPageChange\"\n disable-page-size-selector=\"true\"\n></rg-pager>",
|
|
110
103
|
scope: {},
|
|
111
104
|
bindToController: {
|
|
112
105
|
skip: '=',
|
|
@@ -2,6 +2,7 @@ import angular from 'angular';
|
|
|
2
2
|
import { getDocumentScrollTop } from '../global/dom.js';
|
|
3
3
|
import scheduleRAF from '../global/schedule-raf.js';
|
|
4
4
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
6
|
|
|
6
7
|
const angularModule = angular.module('Ring.table-legacy.toolbar', []);
|
|
7
8
|
angularModule.directive('rgLegacyTableToolbar', function rgLegacyTableToolbarDirective() {
|
|
@@ -29,7 +30,7 @@ angularModule.directive('rgLegacyTableToolbar', function rgLegacyTableToolbarDir
|
|
|
29
30
|
|
|
30
31
|
if (scrolledTop > toolbarTop && !savedToolbarTop) {
|
|
31
32
|
//save height to style to prevent collapsing after fixing controls
|
|
32
|
-
element.style.height =
|
|
33
|
+
element.style.height = "".concat(element.offsetHeight, "px");
|
|
33
34
|
savedToolbarTop = toolbarTop;
|
|
34
35
|
controlsContainer.classList.add('ring-table__toolbar-controls_fixed');
|
|
35
36
|
} else if (scrolledTop <= toolbarTop && savedToolbarTop >= 0) {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import angularComponentFactory from '../global/angular-component-factory.js';
|
|
2
2
|
import SmartTable from '../table/smart-table.js';
|
|
3
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
4
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
5
|
import 'angular';
|
|
5
6
|
import 'react';
|
|
7
|
+
import '../global/react-render-adapter.js';
|
|
6
8
|
import 'react-dom';
|
|
7
9
|
import '../global/ring-angular-component.js';
|
|
8
10
|
import '../global/react-dom-renderer.js';
|
|
@@ -27,13 +29,14 @@ import '../table/selection.js';
|
|
|
27
29
|
import '../table/header.js';
|
|
28
30
|
import 'react-waypoint';
|
|
29
31
|
import '../checkbox/checkbox.js';
|
|
30
|
-
import '@jetbrains/icons/checkmark';
|
|
32
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
31
33
|
import '@jetbrains/icons/remove-10px';
|
|
32
34
|
import '../icon/icon.js';
|
|
33
35
|
import 'util-deprecate';
|
|
34
36
|
import '../icon/icon__constants.js';
|
|
35
37
|
import '../_helpers/icon.js';
|
|
36
38
|
import '../icon/icon__svg.js';
|
|
39
|
+
import 'core-js/modules/es.string.replace.js';
|
|
37
40
|
import '../global/memoize.js';
|
|
38
41
|
import '../_helpers/checkbox.js';
|
|
39
42
|
import '../_helpers/table.js';
|
|
@@ -49,8 +52,8 @@ import '@jetbrains/icons/chevron-down';
|
|
|
49
52
|
import '@jetbrains/icons/drag';
|
|
50
53
|
import '../button/button.js';
|
|
51
54
|
import 'focus-visible';
|
|
52
|
-
import '../global/theme.js';
|
|
53
55
|
import '../link/clickableLink.js';
|
|
56
|
+
import '../global/controls-height.js';
|
|
54
57
|
import '../_helpers/button__classes.js';
|
|
55
58
|
import '../tooltip/tooltip.js';
|
|
56
59
|
import '../popup/popup.js';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import angularComponentFactory from '../global/angular-component-factory.js';
|
|
2
2
|
import TableContainer from '../table/table.js';
|
|
3
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
4
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
5
|
import 'angular';
|
|
5
6
|
import 'react';
|
|
7
|
+
import '../global/react-render-adapter.js';
|
|
6
8
|
import 'react-dom';
|
|
7
9
|
import '../global/ring-angular-component.js';
|
|
8
10
|
import '../global/react-dom-renderer.js';
|
|
@@ -26,13 +28,14 @@ import '../table/selection.js';
|
|
|
26
28
|
import '../table/header.js';
|
|
27
29
|
import 'react-waypoint';
|
|
28
30
|
import '../checkbox/checkbox.js';
|
|
29
|
-
import '@jetbrains/icons/checkmark';
|
|
31
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
30
32
|
import '@jetbrains/icons/remove-10px';
|
|
31
33
|
import '../icon/icon.js';
|
|
32
34
|
import 'util-deprecate';
|
|
33
35
|
import '../icon/icon__constants.js';
|
|
34
36
|
import '../_helpers/icon.js';
|
|
35
37
|
import '../icon/icon__svg.js';
|
|
38
|
+
import 'core-js/modules/es.string.replace.js';
|
|
36
39
|
import '../global/memoize.js';
|
|
37
40
|
import '../_helpers/checkbox.js';
|
|
38
41
|
import '../_helpers/table.js';
|
|
@@ -48,8 +51,8 @@ import '@jetbrains/icons/chevron-down';
|
|
|
48
51
|
import '@jetbrains/icons/drag';
|
|
49
52
|
import '../button/button.js';
|
|
50
53
|
import 'focus-visible';
|
|
51
|
-
import '../global/theme.js';
|
|
52
54
|
import '../link/clickableLink.js';
|
|
55
|
+
import '../global/controls-height.js';
|
|
53
56
|
import '../_helpers/button__classes.js';
|
|
54
57
|
import '../tooltip/tooltip.js';
|
|
55
58
|
import '../popup/popup.js';
|
|
@@ -11,7 +11,9 @@ import Icon from '../icon/icon.js';
|
|
|
11
11
|
import { m as modules_02138f4a } from '../_helpers/tabs.js';
|
|
12
12
|
import getTabTitles from './collapsible-tab.js';
|
|
13
13
|
import { CustomItem } from './custom-item.js';
|
|
14
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
14
15
|
import '../popup/popup.js';
|
|
16
|
+
import 'core-js/modules/es.string.replace.js';
|
|
15
17
|
import 'react-dom';
|
|
16
18
|
import '../global/get-uid.js';
|
|
17
19
|
import '../global/schedule-raf.js';
|
|
@@ -44,7 +46,7 @@ import '../avatar/avatar.js';
|
|
|
44
46
|
import '../global/url.js';
|
|
45
47
|
import '../avatar/fallback-avatar.js';
|
|
46
48
|
import '../checkbox/checkbox.js';
|
|
47
|
-
import '@jetbrains/icons/checkmark';
|
|
49
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
48
50
|
import '@jetbrains/icons/remove-10px';
|
|
49
51
|
import '../_helpers/checkbox.js';
|
|
50
52
|
import '../icon/icon__constants.js';
|
|
@@ -59,7 +61,7 @@ import '../list/consts.js';
|
|
|
59
61
|
import '../global/typescript-utils.js';
|
|
60
62
|
import '../_helpers/anchor.js';
|
|
61
63
|
import '../button/button.js';
|
|
62
|
-
import '../global/
|
|
64
|
+
import '../global/controls-height.js';
|
|
63
65
|
import '../_helpers/button__classes.js';
|
|
64
66
|
import './tab-link.js';
|
|
65
67
|
|
|
@@ -102,7 +104,7 @@ const MoreButton = /*#__PURE__*/React.memo(_ref2 => {
|
|
|
102
104
|
return;
|
|
103
105
|
}
|
|
104
106
|
|
|
105
|
-
const cb = onSelect(listItem.key);
|
|
107
|
+
const cb = onSelect(String(listItem.key));
|
|
106
108
|
cb();
|
|
107
109
|
}, [onSelect]);
|
|
108
110
|
const hasActiveChild = React.useMemo(() => items.some(item => item.props.alwaysHidden && item.props.id === selected), [items, selected]);
|
|
@@ -8,6 +8,7 @@ import { CustomItem } from './custom-item.js';
|
|
|
8
8
|
import '../link/link.js';
|
|
9
9
|
import 'focus-visible';
|
|
10
10
|
import '../global/memoize.js';
|
|
11
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
11
12
|
import '../global/data-tests.js';
|
|
12
13
|
import '../link/clickableLink.js';
|
|
13
14
|
import '../_helpers/link.js';
|
|
@@ -29,6 +30,7 @@ const TabTitle = /*#__PURE__*/React.memo(function TabTitle(_ref) {
|
|
|
29
30
|
|
|
30
31
|
const {
|
|
31
32
|
title,
|
|
33
|
+
titleProps,
|
|
32
34
|
disabled,
|
|
33
35
|
href,
|
|
34
36
|
className,
|
|
@@ -43,7 +45,7 @@ const TabTitle = /*#__PURE__*/React.memo(function TabTitle(_ref) {
|
|
|
43
45
|
[collapsedClassName !== null && collapsedClassName !== void 0 ? collapsedClassName : '']: collapsed,
|
|
44
46
|
[collapsedActiveClassName !== null && collapsedActiveClassName !== void 0 ? collapsedActiveClassName : '']: collapsed && selected
|
|
45
47
|
});
|
|
46
|
-
return /*#__PURE__*/React.createElement(TabLink, {
|
|
48
|
+
return /*#__PURE__*/React.createElement(TabLink, _extends({
|
|
47
49
|
title: title,
|
|
48
50
|
isSelected: selected,
|
|
49
51
|
active: true,
|
|
@@ -54,7 +56,7 @@ const TabTitle = /*#__PURE__*/React.memo(function TabTitle(_ref) {
|
|
|
54
56
|
onPlainLeftClick: handleSelect,
|
|
55
57
|
tabIndex: tabIndex,
|
|
56
58
|
collapsed: collapsed
|
|
57
|
-
});
|
|
59
|
+
}, titleProps));
|
|
58
60
|
});
|
|
59
61
|
TabTitle.propTypes = {
|
|
60
62
|
child: PropTypes.element,
|
|
@@ -15,7 +15,7 @@ export interface CollapsibleTabsProps {
|
|
|
15
15
|
export declare const CollapsibleTabs: {
|
|
16
16
|
({ children, selected, onSelect, moreClassName, moreActiveClassName, morePopupClassName, morePopupBeforeEnd, morePopupItemClassName, initialVisibleItems }: CollapsibleTabsProps): JSX.Element;
|
|
17
17
|
propTypes: {
|
|
18
|
-
children: PropTypes.Validator<string | number | boolean |
|
|
18
|
+
children: PropTypes.Validator<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
19
19
|
selected: PropTypes.Requireable<string>;
|
|
20
20
|
onSelect: PropTypes.Validator<(...args: any[]) => any>;
|
|
21
21
|
moreClassName: PropTypes.Requireable<string>;
|
|
@@ -29,7 +29,7 @@ export declare const CollapsibleTabs: {
|
|
|
29
29
|
declare const _default: React.MemoExoticComponent<{
|
|
30
30
|
({ children, selected, onSelect, moreClassName, moreActiveClassName, morePopupClassName, morePopupBeforeEnd, morePopupItemClassName, initialVisibleItems }: CollapsibleTabsProps): JSX.Element;
|
|
31
31
|
propTypes: {
|
|
32
|
-
children: PropTypes.Validator<string | number | boolean |
|
|
32
|
+
children: PropTypes.Validator<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
33
33
|
selected: PropTypes.Requireable<string>;
|
|
34
34
|
onSelect: PropTypes.Validator<(...args: any[]) => any>;
|
|
35
35
|
moreClassName: PropTypes.Requireable<string>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
|
+
import 'core-js/modules/es.string.replace.js';
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import PropTypes from 'prop-types';
|
|
3
5
|
import classNames from 'classnames';
|
|
@@ -43,7 +45,7 @@ import '../avatar/avatar.js';
|
|
|
43
45
|
import '../global/url.js';
|
|
44
46
|
import '../avatar/fallback-avatar.js';
|
|
45
47
|
import '../checkbox/checkbox.js';
|
|
46
|
-
import '@jetbrains/icons/checkmark';
|
|
48
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
47
49
|
import '@jetbrains/icons/remove-10px';
|
|
48
50
|
import '../icon/icon.js';
|
|
49
51
|
import '../icon/icon__constants.js';
|
|
@@ -60,7 +62,7 @@ import '../dropdown/dropdown.js';
|
|
|
60
62
|
import '../global/typescript-utils.js';
|
|
61
63
|
import '../_helpers/anchor.js';
|
|
62
64
|
import '../button/button.js';
|
|
63
|
-
import '../global/
|
|
65
|
+
import '../global/controls-height.js';
|
|
64
66
|
import '../_helpers/button__classes.js';
|
|
65
67
|
import './custom-item.js';
|
|
66
68
|
import './tab-link.js';
|
|
@@ -4,6 +4,6 @@ import { TabProps } from './tab';
|
|
|
4
4
|
export declare const CustomItem: {
|
|
5
5
|
({ children }: TabProps): ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
6
6
|
propTypes: {
|
|
7
|
-
children: PropTypes.Validator<string | number | boolean |
|
|
7
|
+
children: PropTypes.Validator<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
8
8
|
};
|
|
9
9
|
};
|
package/dist/tabs/dumb-tabs.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PureComponent, ReactElement } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import Theme, { ThemeProps } from '../global/theme';
|
|
4
3
|
import { CollapsibleTabsProps } from './collapsible-tabs';
|
|
5
4
|
import { CustomItem } from './custom-item';
|
|
6
5
|
import { TabProps } from './tab';
|
|
7
6
|
export { CustomItem };
|
|
8
|
-
declare type Children = readonly Children[] | ReactElement<TabProps> | null | boolean;
|
|
9
|
-
export interface TabsProps extends
|
|
7
|
+
export declare type Children = readonly (Children | null | boolean)[] | ReactElement<TabProps> | null | boolean;
|
|
8
|
+
export interface TabsProps extends Omit<CollapsibleTabsProps, 'onSelect' | 'children'> {
|
|
10
9
|
children: Children;
|
|
11
10
|
onSelect: (key: string) => void;
|
|
12
11
|
className?: string | null | undefined;
|
|
@@ -15,11 +14,10 @@ export interface TabsProps extends ThemeProps, Omit<CollapsibleTabsProps, 'onSel
|
|
|
15
14
|
}
|
|
16
15
|
declare class Tabs extends PureComponent<TabsProps> {
|
|
17
16
|
static propTypes: {
|
|
18
|
-
theme: PropTypes.Requireable<string>;
|
|
19
17
|
selected: PropTypes.Requireable<string>;
|
|
20
18
|
className: PropTypes.Requireable<string>;
|
|
21
19
|
href: PropTypes.Requireable<string>;
|
|
22
|
-
children: PropTypes.Validator<string | number | boolean |
|
|
20
|
+
children: PropTypes.Validator<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
23
21
|
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
22
|
'data-test': PropTypes.Requireable<string>;
|
|
25
23
|
autoCollapse: PropTypes.Requireable<boolean>;
|
|
@@ -27,110 +25,9 @@ declare class Tabs extends PureComponent<TabsProps> {
|
|
|
27
25
|
static defaultProps: {
|
|
28
26
|
onSelect(): void;
|
|
29
27
|
};
|
|
30
|
-
static Theme: typeof Theme;
|
|
31
28
|
handleSelect: (arg: string) => () => void;
|
|
32
29
|
getTabTitle: (child: ReactElement<TabProps>, i: number) => JSX.Element;
|
|
33
30
|
render(): JSX.Element;
|
|
34
31
|
}
|
|
35
|
-
declare
|
|
36
|
-
|
|
37
|
-
selected: PropTypes.Requireable<string>;
|
|
38
|
-
className: PropTypes.Requireable<string>;
|
|
39
|
-
href: PropTypes.Requireable<string>;
|
|
40
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
41
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
42
|
-
'data-test': PropTypes.Requireable<string>;
|
|
43
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
44
|
-
}>, "href"> & Pick<TabsProps, "moreClassName" | "moreActiveClassName" | "morePopupClassName" | "morePopupItemClassName" | "morePopupBeforeEnd" | "initialVisibleItems">, "className" | "href" | "children" | "theme" | "data-test" | "selected" | "moreClassName" | "moreActiveClassName" | "morePopupClassName" | "morePopupItemClassName" | "morePopupBeforeEnd" | "initialVisibleItems" | "autoCollapse"> & Partial<Pick<Pick<TabsProps, keyof TabsProps> & Pick<PropTypes.InferProps<{
|
|
45
|
-
theme: PropTypes.Requireable<string>;
|
|
46
|
-
selected: PropTypes.Requireable<string>;
|
|
47
|
-
className: PropTypes.Requireable<string>;
|
|
48
|
-
href: PropTypes.Requireable<string>;
|
|
49
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
50
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
51
|
-
'data-test': PropTypes.Requireable<string>;
|
|
52
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
53
|
-
}>, "href"> & Pick<TabsProps, "moreClassName" | "moreActiveClassName" | "morePopupClassName" | "morePopupItemClassName" | "morePopupBeforeEnd" | "initialVisibleItems">, "onSelect">> & Partial<Pick<{
|
|
54
|
-
onSelect(): void;
|
|
55
|
-
}, never>>) | (Pick<Pick<TabsProps, keyof TabsProps> & Pick<PropTypes.InferProps<React.WeakValidationMap<TabsProps> & {
|
|
56
|
-
theme: PropTypes.Requireable<string>;
|
|
57
|
-
selected: PropTypes.Requireable<string>;
|
|
58
|
-
className: PropTypes.Requireable<string>;
|
|
59
|
-
href: PropTypes.Requireable<string>;
|
|
60
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
61
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
62
|
-
'data-test': PropTypes.Requireable<string>;
|
|
63
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
64
|
-
}>, "href"> & Pick<TabsProps, never>, "href"> & Partial<Pick<Pick<TabsProps, keyof TabsProps> & Pick<PropTypes.InferProps<React.WeakValidationMap<TabsProps> & {
|
|
65
|
-
theme: PropTypes.Requireable<string>;
|
|
66
|
-
selected: PropTypes.Requireable<string>;
|
|
67
|
-
className: PropTypes.Requireable<string>;
|
|
68
|
-
href: PropTypes.Requireable<string>;
|
|
69
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
70
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
71
|
-
'data-test': PropTypes.Requireable<string>;
|
|
72
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
73
|
-
}>, "href"> & Pick<TabsProps, never>, keyof TabsProps>> & Partial<Pick<Partial<TabsProps> & {
|
|
74
|
-
onSelect(): void;
|
|
75
|
-
}, never>>), "theme"> & import("../global/theme").ThemeOuterProps & React.RefAttributes<Tabs>> & {
|
|
76
|
-
readonly type: React.ForwardRefExoticComponent<Omit<(Pick<Pick<TabsProps, keyof TabsProps> & Pick<PropTypes.InferProps<{
|
|
77
|
-
theme: PropTypes.Requireable<string>;
|
|
78
|
-
selected: PropTypes.Requireable<string>;
|
|
79
|
-
className: PropTypes.Requireable<string>;
|
|
80
|
-
href: PropTypes.Requireable<string>;
|
|
81
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
82
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
83
|
-
'data-test': PropTypes.Requireable<string>;
|
|
84
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
85
|
-
}>, "href"> & Pick<TabsProps, "moreClassName" | "moreActiveClassName" | "morePopupClassName" | "morePopupItemClassName" | "morePopupBeforeEnd" | "initialVisibleItems">, "className" | "href" | "children" | "theme" | "data-test" | "selected" | "moreClassName" | "moreActiveClassName" | "morePopupClassName" | "morePopupItemClassName" | "morePopupBeforeEnd" | "initialVisibleItems" | "autoCollapse"> & Partial<Pick<Pick<TabsProps, keyof TabsProps> & Pick<PropTypes.InferProps<{
|
|
86
|
-
theme: PropTypes.Requireable<string>;
|
|
87
|
-
selected: PropTypes.Requireable<string>;
|
|
88
|
-
className: PropTypes.Requireable<string>;
|
|
89
|
-
href: PropTypes.Requireable<string>;
|
|
90
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
91
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
92
|
-
'data-test': PropTypes.Requireable<string>;
|
|
93
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
94
|
-
}>, "href"> & Pick<TabsProps, "moreClassName" | "moreActiveClassName" | "morePopupClassName" | "morePopupItemClassName" | "morePopupBeforeEnd" | "initialVisibleItems">, "onSelect">> & Partial<Pick<{
|
|
95
|
-
onSelect(): void;
|
|
96
|
-
}, never>>) | (Pick<Pick<TabsProps, keyof TabsProps> & Pick<PropTypes.InferProps<React.WeakValidationMap<TabsProps> & {
|
|
97
|
-
theme: PropTypes.Requireable<string>;
|
|
98
|
-
selected: PropTypes.Requireable<string>;
|
|
99
|
-
className: PropTypes.Requireable<string>;
|
|
100
|
-
href: PropTypes.Requireable<string>;
|
|
101
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
102
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
103
|
-
'data-test': PropTypes.Requireable<string>;
|
|
104
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
105
|
-
}>, "href"> & Pick<TabsProps, never>, "href"> & Partial<Pick<Pick<TabsProps, keyof TabsProps> & Pick<PropTypes.InferProps<React.WeakValidationMap<TabsProps> & {
|
|
106
|
-
theme: PropTypes.Requireable<string>;
|
|
107
|
-
selected: PropTypes.Requireable<string>;
|
|
108
|
-
className: PropTypes.Requireable<string>;
|
|
109
|
-
href: PropTypes.Requireable<string>;
|
|
110
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
111
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
112
|
-
'data-test': PropTypes.Requireable<string>;
|
|
113
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
114
|
-
}>, "href"> & Pick<TabsProps, never>, keyof TabsProps>> & Partial<Pick<Partial<TabsProps> & {
|
|
115
|
-
onSelect(): void;
|
|
116
|
-
}, never>>), "theme"> & import("../global/theme").ThemeOuterProps & React.RefAttributes<Tabs>>;
|
|
117
|
-
} & {
|
|
118
|
-
prototype: Tabs;
|
|
119
|
-
propTypes: {
|
|
120
|
-
theme: PropTypes.Requireable<string>;
|
|
121
|
-
selected: PropTypes.Requireable<string>;
|
|
122
|
-
className: PropTypes.Requireable<string>;
|
|
123
|
-
href: PropTypes.Requireable<string>;
|
|
124
|
-
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
125
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
126
|
-
'data-test': PropTypes.Requireable<string>;
|
|
127
|
-
autoCollapse: PropTypes.Requireable<boolean>;
|
|
128
|
-
};
|
|
129
|
-
defaultProps: {
|
|
130
|
-
onSelect(): void;
|
|
131
|
-
};
|
|
132
|
-
Theme: typeof Theme;
|
|
133
|
-
contextType?: React.Context<any> | undefined;
|
|
134
|
-
};
|
|
135
|
-
export declare type TabsAttrs = ComponentPropsWithRef<typeof ThemedTabs>;
|
|
136
|
-
export default ThemedTabs;
|
|
32
|
+
export declare type TabsAttrs = JSX.LibraryManagedAttributes<typeof Tabs, TabsProps>;
|
|
33
|
+
export default Tabs;
|
package/dist/tabs/dumb-tabs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
2
3
|
import React, { PureComponent } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import classNames from 'classnames';
|
|
5
6
|
import memoize from '../global/memoize.js';
|
|
6
|
-
import Theme, { withTheme } from '../global/theme.js';
|
|
7
7
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
8
8
|
import { m as modules_02138f4a } from '../_helpers/tabs.js';
|
|
9
9
|
import TabLink from './tab-link.js';
|
|
@@ -14,6 +14,7 @@ import '../link/link.js';
|
|
|
14
14
|
import 'focus-visible';
|
|
15
15
|
import '../link/clickableLink.js';
|
|
16
16
|
import '../_helpers/link.js';
|
|
17
|
+
import 'core-js/modules/es.string.replace.js';
|
|
17
18
|
import 'fastdom';
|
|
18
19
|
import './collapsible-more.js';
|
|
19
20
|
import '@jetbrains/icons/chevron-10px';
|
|
@@ -47,7 +48,7 @@ import '../avatar/avatar.js';
|
|
|
47
48
|
import '../global/url.js';
|
|
48
49
|
import '../avatar/fallback-avatar.js';
|
|
49
50
|
import '../checkbox/checkbox.js';
|
|
50
|
-
import '@jetbrains/icons/checkmark';
|
|
51
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
51
52
|
import '@jetbrains/icons/remove-10px';
|
|
52
53
|
import '../icon/icon.js';
|
|
53
54
|
import '../icon/icon__constants.js';
|
|
@@ -64,6 +65,7 @@ import '../dropdown/dropdown.js';
|
|
|
64
65
|
import '../global/typescript-utils.js';
|
|
65
66
|
import '../_helpers/anchor.js';
|
|
66
67
|
import '../button/button.js';
|
|
68
|
+
import '../global/controls-height.js';
|
|
67
69
|
import '../_helpers/button__classes.js';
|
|
68
70
|
import './collapsible-tab.js';
|
|
69
71
|
|
|
@@ -83,6 +85,7 @@ class Tabs extends PureComponent {
|
|
|
83
85
|
} = this.props;
|
|
84
86
|
const {
|
|
85
87
|
title,
|
|
88
|
+
titleProps,
|
|
86
89
|
id,
|
|
87
90
|
disabled,
|
|
88
91
|
href,
|
|
@@ -94,17 +97,16 @@ class Tabs extends PureComponent {
|
|
|
94
97
|
const titleClasses = classNames(modules_02138f4a.title, className, isSelected && activeClassName, {
|
|
95
98
|
[modules_02138f4a.selected]: isSelected
|
|
96
99
|
});
|
|
97
|
-
return /*#__PURE__*/React.createElement(TabLink, {
|
|
100
|
+
return /*#__PURE__*/React.createElement(TabLink, _extends({
|
|
98
101
|
title: title,
|
|
99
102
|
isSelected: isSelected,
|
|
100
|
-
active: true,
|
|
101
103
|
key: key,
|
|
102
104
|
href: href,
|
|
103
105
|
innerClassName: titleClasses,
|
|
104
106
|
className: titleClasses,
|
|
105
107
|
disabled: disabled,
|
|
106
108
|
onPlainLeftClick: this.handleSelect(key)
|
|
107
|
-
});
|
|
109
|
+
}, titleProps));
|
|
108
110
|
});
|
|
109
111
|
}
|
|
110
112
|
|
|
@@ -113,12 +115,11 @@ class Tabs extends PureComponent {
|
|
|
113
115
|
className,
|
|
114
116
|
children,
|
|
115
117
|
selected,
|
|
116
|
-
theme,
|
|
117
118
|
autoCollapse,
|
|
118
119
|
'data-test': dataTest,
|
|
119
120
|
...restProps
|
|
120
121
|
} = this.props;
|
|
121
|
-
const classes = classNames(modules_02138f4a.tabs, className
|
|
122
|
+
const classes = classNames(modules_02138f4a.tabs, className);
|
|
122
123
|
const childrenArray = React.Children.toArray(children).filter(Boolean);
|
|
123
124
|
return /*#__PURE__*/React.createElement("div", {
|
|
124
125
|
className: classes,
|
|
@@ -141,7 +142,6 @@ class Tabs extends PureComponent {
|
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
_defineProperty(Tabs, "propTypes", {
|
|
144
|
-
theme: PropTypes.string,
|
|
145
145
|
selected: PropTypes.string,
|
|
146
146
|
className: PropTypes.string,
|
|
147
147
|
href: PropTypes.string,
|
|
@@ -156,8 +156,4 @@ _defineProperty(Tabs, "defaultProps", {
|
|
|
156
156
|
|
|
157
157
|
});
|
|
158
158
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
const ThemedTabs = withTheme()(Tabs);
|
|
162
|
-
|
|
163
|
-
export { ThemedTabs as default };
|
|
159
|
+
export { Tabs as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { PureComponent
|
|
1
|
+
import { PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { TabsAttrs } from './dumb-tabs';
|
|
4
|
-
import { TabProps } from './tab';
|
|
3
|
+
import { TabsAttrs, Children } from './dumb-tabs';
|
|
5
4
|
export interface SmartTabsProps extends TabsAttrs {
|
|
6
|
-
children:
|
|
5
|
+
children: Children;
|
|
7
6
|
initSelected?: string | null | undefined;
|
|
8
7
|
}
|
|
9
8
|
export default class SmartTabs extends PureComponent<SmartTabsProps> {
|
|
@@ -12,6 +11,7 @@ export default class SmartTabs extends PureComponent<SmartTabsProps> {
|
|
|
12
11
|
initSelected: PropTypes.Requireable<string>;
|
|
13
12
|
'data-test': PropTypes.Requireable<string>;
|
|
14
13
|
};
|
|
14
|
+
constructor(props: SmartTabsProps);
|
|
15
15
|
state: {
|
|
16
16
|
selected: string;
|
|
17
17
|
};
|
package/dist/tabs/smart-tabs.js
CHANGED
|
@@ -2,10 +2,10 @@ import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBa
|
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
5
|
-
import
|
|
5
|
+
import Tabs from './dumb-tabs.js';
|
|
6
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
6
7
|
import 'classnames';
|
|
7
8
|
import '../global/memoize.js';
|
|
8
|
-
import '../global/theme.js';
|
|
9
9
|
import '../_helpers/tabs.js';
|
|
10
10
|
import './tab-link.js';
|
|
11
11
|
import '../link/link.js';
|
|
@@ -13,6 +13,7 @@ import 'focus-visible';
|
|
|
13
13
|
import '../link/clickableLink.js';
|
|
14
14
|
import '../_helpers/link.js';
|
|
15
15
|
import './collapsible-tabs.js';
|
|
16
|
+
import 'core-js/modules/es.string.replace.js';
|
|
16
17
|
import 'fastdom';
|
|
17
18
|
import './collapsible-more.js';
|
|
18
19
|
import '@jetbrains/icons/chevron-10px';
|
|
@@ -46,7 +47,7 @@ import '../avatar/avatar.js';
|
|
|
46
47
|
import '../global/url.js';
|
|
47
48
|
import '../avatar/fallback-avatar.js';
|
|
48
49
|
import '../checkbox/checkbox.js';
|
|
49
|
-
import '@jetbrains/icons/checkmark';
|
|
50
|
+
import '@jetbrains/icons/checkmark-14px';
|
|
50
51
|
import '@jetbrains/icons/remove-10px';
|
|
51
52
|
import '../icon/icon.js';
|
|
52
53
|
import '../icon/icon__constants.js';
|
|
@@ -63,21 +64,24 @@ import '../dropdown/dropdown.js';
|
|
|
63
64
|
import '../global/typescript-utils.js';
|
|
64
65
|
import '../_helpers/anchor.js';
|
|
65
66
|
import '../button/button.js';
|
|
67
|
+
import '../global/controls-height.js';
|
|
66
68
|
import '../_helpers/button__classes.js';
|
|
67
69
|
import './collapsible-tab.js';
|
|
68
70
|
import './custom-item.js';
|
|
69
71
|
|
|
70
72
|
class SmartTabs extends PureComponent {
|
|
71
|
-
constructor() {
|
|
72
|
-
super(
|
|
73
|
+
constructor(props) {
|
|
74
|
+
super(props);
|
|
73
75
|
|
|
74
|
-
_defineProperty(this, "state",
|
|
75
|
-
selected: this.props.initSelected || this.props.children[0].props.id || '0'
|
|
76
|
-
});
|
|
76
|
+
_defineProperty(this, "state", void 0);
|
|
77
77
|
|
|
78
78
|
_defineProperty(this, "handleSelect", selected => this.setState({
|
|
79
79
|
selected
|
|
80
80
|
}));
|
|
81
|
+
|
|
82
|
+
this.state = {
|
|
83
|
+
selected: this.props.initSelected || Array.isArray(this.props.children) && this.props.children[0].props.id || '0'
|
|
84
|
+
};
|
|
81
85
|
}
|
|
82
86
|
|
|
83
87
|
render() {
|
|
@@ -87,7 +91,7 @@ class SmartTabs extends PureComponent {
|
|
|
87
91
|
'data-test': dataTest,
|
|
88
92
|
...restProps
|
|
89
93
|
} = this.props;
|
|
90
|
-
return /*#__PURE__*/React.createElement(
|
|
94
|
+
return /*#__PURE__*/React.createElement(Tabs, _extends({
|
|
91
95
|
"data-test": joinDataTestAttributes('ring-smart-tabs', dataTest),
|
|
92
96
|
selected: this.state.selected,
|
|
93
97
|
onSelect: this.handleSelect
|
package/dist/tabs/tab-link.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare namespace TabLink {
|
|
|
11
11
|
var propTypes: {
|
|
12
12
|
isSelected: PropTypes.Requireable<boolean>;
|
|
13
13
|
collapsed: PropTypes.Requireable<boolean>;
|
|
14
|
-
title: PropTypes.Requireable<string | number | boolean |
|
|
14
|
+
title: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray | ((...args: any[]) => any)>;
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
declare const _default: React.MemoExoticComponent<typeof TabLink>;
|
package/dist/tabs/tab-link.js
CHANGED
|
@@ -6,6 +6,7 @@ import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
6
6
|
import 'focus-visible';
|
|
7
7
|
import 'classnames';
|
|
8
8
|
import '../global/memoize.js';
|
|
9
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
10
|
import '../global/data-tests.js';
|
|
10
11
|
import '../link/clickableLink.js';
|
|
11
12
|
import '../_helpers/link.js';
|
package/dist/tabs/tab.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { PureComponent, ReactNode } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
import { TabLinkProps } from './tab-link';
|
|
3
4
|
export interface TabProps {
|
|
4
5
|
title?: ReactNode | ((isSelected: boolean, collapsed: boolean | undefined) => ReactNode);
|
|
6
|
+
titleProps?: Partial<TabLinkProps>;
|
|
5
7
|
id?: string | null | undefined;
|
|
6
8
|
className?: string | null | undefined;
|
|
7
9
|
children?: ReactNode;
|
|
@@ -15,7 +17,7 @@ export interface TabProps {
|
|
|
15
17
|
}
|
|
16
18
|
export default class Tab extends PureComponent<TabProps> {
|
|
17
19
|
static propTypes: {
|
|
18
|
-
title: PropTypes.Validator<string | number | boolean |
|
|
20
|
+
title: PropTypes.Validator<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray | ((...args: any[]) => any)>;
|
|
19
21
|
id: PropTypes.Requireable<string>;
|
|
20
22
|
className: PropTypes.Requireable<string>;
|
|
21
23
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|