@jetbrains/ring-ui 6.0.2-beta.0 → 6.0.2
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/README.md +10 -6
- package/components/alert/alert.css +12 -13
- package/components/alert/container.css +4 -6
- package/components/alert-service/alert-service.d.ts +4 -2
- package/components/alert-service/alert-service.js +3 -2
- package/components/alert-service/{alert-service.examples.css → alert-service.stories.css} +0 -3
- package/components/analytics/analytics.d.ts +0 -20
- package/components/analytics/analytics.js +0 -64
- package/components/analytics/analytics__custom-plugin.d.ts +0 -1
- package/components/analytics/analytics__custom-plugin.js +0 -3
- package/components/auth/down-notification.css +2 -4
- package/components/auth/request-builder.d.ts +1 -0
- package/components/auth-dialog/auth-dialog.css +9 -11
- package/components/auth-dialog-service/auth-dialog-service.d.ts +1 -0
- package/components/auth-dialog-service/auth-dialog-service.js +4 -3
- package/components/badge/badge.css +1 -3
- package/components/button/button.css +10 -12
- package/components/button-group/button-group.css +17 -2
- package/components/button-set/button-set.css +1 -2
- package/components/button-toolbar/button-toolbar.css +1 -2
- package/components/checkbox/checkbox.css +3 -4
- package/components/code/code.css +3 -5
- package/components/code/code.d.ts +1 -0
- package/components/confirm/confirm.css +1 -3
- package/components/confirm-service/confirm-service.d.ts +1 -1
- package/components/confirm-service/confirm-service.js +5 -4
- package/components/content-layout/content-layout.css +7 -7
- package/components/data-list/data-list.css +4 -5
- package/components/date-picker/consts.d.ts +0 -1
- package/components/date-picker/date-input.d.ts +0 -1
- package/components/date-picker/date-input.js +2 -3
- package/components/date-picker/date-picker.css +40 -41
- package/components/date-picker/date-picker.js +2 -2
- package/components/date-picker/date-popup.d.ts +0 -1
- package/components/date-picker/date-popup.js +3 -4
- package/components/dialog/dialog.css +16 -13
- package/components/dropdown-menu/dropdown-menu.d.ts +11 -1
- package/components/editable-heading/editable-heading.css +35 -8
- package/components/editable-heading/editable-heading.d.ts +2 -1
- package/components/editable-heading/editable-heading.js +45 -6
- package/components/error-bubble/error-bubble-legacy.css +6 -8
- package/components/error-bubble/error-bubble.css +6 -8
- package/components/footer/footer.css +6 -8
- package/components/form/form.css +31 -33
- package/components/form/form.stories.js +138 -0
- package/components/global/global.css +1 -7
- package/components/global/react-render-adapter.d.ts +1 -29
- package/components/global/react-render-adapter.js +3 -24
- package/components/global/rerender-hoc.d.ts +4 -35
- package/components/global/rerender-hoc.js +10 -24
- package/components/global/variables.css +1 -2
- package/components/global/variables.d.ts +0 -1
- package/components/global/variables_dark.css +71 -67
- package/components/grid/grid.css +6 -6
- package/components/grid/row.js +3 -3
- package/components/group/group.css +1 -3
- package/components/header/header.css +12 -14
- package/components/header/profile.js +1 -1
- package/components/header/services-link.js +3 -5
- package/components/header/services.css +12 -14
- package/components/header/smart-services.d.ts +2 -1
- package/components/heading/heading.css +24 -6
- package/components/http/http.d.ts +6 -6
- package/components/http/http.js +0 -12
- package/components/hub-source/hub-source.d.ts +8 -6
- package/components/icon/icon.css +2 -4
- package/components/input/input-legacy.css +2 -4
- package/components/input/input.css +8 -10
- package/components/input-size/input-size.css +4 -6
- package/components/input-size/input-size.stories.js +73 -0
- package/components/island/header.js +1 -1
- package/components/island/island.css +6 -7
- package/components/island-legacy/island-legacy.css +6 -8
- package/components/line/line.css +1 -3
- package/components/link/link.css +15 -39
- package/components/link/link.d.ts +6 -16
- package/components/link/link.js +6 -35
- package/components/list/consts.d.ts +13 -12
- package/components/list/consts.js +11 -15
- package/components/list/list.css +17 -20
- package/components/list/list.d.ts +15 -4
- package/components/list/list.js +9 -7
- package/components/list/list__item.js +3 -2
- package/components/loader/loader.css +1 -3
- package/components/loader/loader__core.js +6 -6
- package/components/loader-inline/loader-inline.css +5 -6
- package/components/login-dialog/login-dialog.css +1 -3
- package/components/login-dialog/service.js +5 -4
- package/components/markdown/markdown.css +53 -3
- package/components/markdown/markdown.d.ts +4 -7
- package/components/markdown/markdown.js +8 -27
- package/components/message/message.css +5 -8
- package/components/old-browsers-message/old-browsers-message.css +2 -4
- package/components/pager/pager.css +2 -4
- package/components/pager/pager.js +2 -8
- package/components/panel/panel.css +3 -5
- package/components/popup/popup.js +3 -3
- package/components/popup/position.js +4 -1
- package/components/popup-menu/popup-menu.d.ts +22 -2
- package/components/progress-bar/progress-bar.css +9 -4
- package/components/progress-bar/progress-bar.d.ts +6 -0
- package/components/progress-bar/progress-bar.js +9 -3
- package/components/query-assist/query-assist.css +3 -4
- package/components/query-assist/query-assist.d.ts +3 -28
- package/components/query-assist/query-assist.js +12 -5
- package/components/radio/radio.css +7 -10
- package/components/select/select-popup.css +23 -11
- package/components/select/select.css +13 -14
- package/components/select/select.d.ts +2 -28
- package/components/select/select.js +28 -28
- package/components/select/select__popup.js +5 -2
- package/components/sidebar/sidebar.css +13 -15
- package/components/table/table.css +15 -17
- package/components/table/table.js +1 -1
- package/components/table-legacy/table-legacy.css +22 -24
- package/components/table-legacy/table-legacy__toolbar.css +2 -4
- package/components/tabs/collapsible-more.js +1 -1
- package/components/tabs/collapsible-tab.js +1 -1
- package/components/tabs/collapsible-tabs.js +2 -2
- package/components/tabs/dumb-tabs.js +1 -1
- package/components/tabs/tab-link.js +7 -7
- package/components/tabs/tabs.css +3 -4
- package/components/tag/tag.css +12 -13
- package/components/tags-input/tags-input.css +1 -2
- package/components/tags-input/tags-input.d.ts +3 -28
- package/components/tags-input/tags-input.js +4 -1
- package/components/toggle/toggle.css +28 -23
- package/components/tooltip/tooltip.css +3 -5
- package/components/user-agreement/service.d.ts +3 -1
- package/components/user-agreement/service.js +8 -7
- package/components/user-agreement/user-agreement.css +2 -2
- package/components/user-agreement/user-agreement.d.ts +2 -3
- package/components/user-agreement/user-agreement.js +2 -4
- package/components/user-card/card.d.ts +2 -3
- package/components/user-card/card.js +8 -8
- package/components/user-card/user-card.css +3 -5
- package/package.json +82 -90
- package/typings.d.ts +0 -54
- package/webpack.config.js +1 -24
- package/components/analytics/analytics__fus-plugin.d.ts +0 -52
- package/components/analytics/analytics__fus-plugin.js +0 -22
- package/components/analytics/analytics__ga-plugin.d.ts +0 -27
- package/components/analytics/analytics__ga-plugin.js +0 -89
- package/components/analytics/analytics__plugin-utils.d.ts +0 -31
- package/components/analytics/analytics__plugin-utils.js +0 -92
- package/components/auth/landing-entry.d.ts +0 -3
- package/components/auth/landing-entry.js +0 -2
- package/components/auth/landing.d.ts +0 -2
- package/components/auth/landing.html +0 -12
- package/components/auth/landing.js +0 -26
- package/components/form/form.examples.js +0 -118
- package/components/input-size/input-size.examples.js +0 -72
- package/components/link/link__legacy.css +0 -29
- package/components/loader/__mocks__/loader__core.js +0 -5
- package/components/markdown/code.d.ts +0 -7
- package/components/markdown/code.js +0 -17
- package/components/markdown/heading.d.ts +0 -11
- package/components/markdown/heading.js +0 -9
- package/components/markdown/link.d.ts +0 -12
- package/components/markdown/link.js +0 -10
- package/components/old-browsers-message/__mocks__/old-browsers-message.js +0 -1
- package/dist/_helpers/_rollupPluginBabelHelpers.js +0 -657
- package/dist/_helpers/anchor.js +0 -31
- package/dist/_helpers/badge.js +0 -3
- package/dist/_helpers/button__classes.js +0 -24
- package/dist/_helpers/caption.js +0 -31
- package/dist/_helpers/card.js +0 -132
- package/dist/_helpers/date-picker.js +0 -3
- package/dist/_helpers/dialog__body-scroll-preventer.js +0 -55
- package/dist/_helpers/grid.js +0 -3
- package/dist/_helpers/header.js +0 -3
- package/dist/_helpers/icon__svg.js +0 -73
- package/dist/_helpers/input.js +0 -229
- package/dist/_helpers/island.js +0 -3
- package/dist/_helpers/list.js +0 -3
- package/dist/_helpers/query-assist__suggestions.js +0 -102
- package/dist/_helpers/select__filter.js +0 -94
- package/dist/_helpers/services-link.js +0 -50
- package/dist/_helpers/sidebar.js +0 -117
- package/dist/_helpers/tab-link.js +0 -36
- package/dist/_helpers/table.js +0 -3
- package/dist/_helpers/theme.js +0 -93
- package/dist/_helpers/title.js +0 -100
- package/dist/alert/alert.d.ts +0 -113
- package/dist/alert/alert.js +0 -281
- package/dist/alert/container.d.ts +0 -15
- package/dist/alert/container.js +0 -52
- package/dist/alert-service/alert-service.d.ts +0 -34
- package/dist/alert-service/alert-service.js +0 -221
- package/dist/analytics/analytics.d.ts +0 -38
- package/dist/analytics/analytics.js +0 -108
- package/dist/analytics/analytics__custom-plugin.d.ts +0 -29
- package/dist/analytics/analytics__custom-plugin.js +0 -95
- package/dist/analytics/analytics__fus-plugin.d.ts +0 -52
- package/dist/analytics/analytics__fus-plugin.js +0 -38
- package/dist/analytics/analytics__ga-plugin.d.ts +0 -27
- package/dist/analytics/analytics__ga-plugin.js +0 -118
- package/dist/analytics/analytics__plugin-utils.d.ts +0 -31
- package/dist/analytics/analytics__plugin-utils.js +0 -101
- package/dist/auth/auth.d.ts +0 -3
- package/dist/auth/auth.js +0 -135
- package/dist/auth/auth__core.d.ts +0 -236
- package/dist/auth/auth__core.js +0 -1656
- package/dist/auth/background-flow.d.ts +0 -31
- package/dist/auth/background-flow.js +0 -148
- package/dist/auth/down-notification.d.ts +0 -15
- package/dist/auth/down-notification.js +0 -158
- package/dist/auth/iframe-flow.d.ts +0 -20
- package/dist/auth/iframe-flow.js +0 -197
- package/dist/auth/landing-entry.d.ts +0 -3
- package/dist/auth/landing-entry.js +0 -5
- package/dist/auth/landing.d.ts +0 -2
- package/dist/auth/landing.js +0 -157
- package/dist/auth/request-builder.d.ts +0 -47
- package/dist/auth/request-builder.js +0 -103
- package/dist/auth/response-parser.d.ts +0 -70
- package/dist/auth/response-parser.js +0 -139
- package/dist/auth/storage.d.ts +0 -112
- package/dist/auth/storage.js +0 -427
- package/dist/auth/token-validator.d.ts +0 -93
- package/dist/auth/token-validator.js +0 -269
- package/dist/auth/window-flow.d.ts +0 -26
- package/dist/auth/window-flow.js +0 -155
- package/dist/auth-dialog/auth-dialog.d.ts +0 -60
- package/dist/auth-dialog/auth-dialog.js +0 -222
- package/dist/auth-dialog-service/auth-dialog-service.d.ts +0 -5
- package/dist/auth-dialog-service/auth-dialog-service.js +0 -92
- package/dist/avatar/avatar-example-datauri.d.ts +0 -1
- package/dist/avatar/avatar-example-datauri.js +0 -4
- package/dist/avatar/avatar.d.ts +0 -52
- package/dist/avatar/avatar.js +0 -184
- package/dist/avatar/fallback-avatar.d.ts +0 -17
- package/dist/avatar/fallback-avatar.js +0 -154
- package/dist/badge/badge.d.ts +0 -24
- package/dist/badge/badge.js +0 -55
- package/dist/button/button.d.ts +0 -67
- package/dist/button/button.js +0 -132
- package/dist/button/button__classes.d.ts +0 -2
- package/dist/button/button__classes.js +0 -3
- package/dist/button-group/button-group.d.ts +0 -18
- package/dist/button-group/button-group.js +0 -48
- package/dist/button-group/caption.d.ts +0 -8
- package/dist/button-group/caption.js +0 -5
- package/dist/button-set/button-set.d.ts +0 -16
- package/dist/button-set/button-set.js +0 -47
- package/dist/button-toolbar/button-toolbar.d.ts +0 -16
- package/dist/button-toolbar/button-toolbar.js +0 -46
- package/dist/caret/caret.d.ts +0 -66
- package/dist/caret/caret.js +0 -261
- package/dist/checkbox/checkbox.d.ts +0 -45
- package/dist/checkbox/checkbox.js +0 -131
- package/dist/clipboard/clipboard-fallback.d.ts +0 -2
- package/dist/clipboard/clipboard-fallback.js +0 -42
- package/dist/clipboard/clipboard.d.ts +0 -5
- package/dist/clipboard/clipboard.js +0 -185
- package/dist/code/code.d.ts +0 -43
- package/dist/code/code.js +0 -191
- package/dist/confirm/confirm.d.ts +0 -48
- package/dist/confirm/confirm.js +0 -155
- package/dist/confirm-service/confirm-service.d.ts +0 -21
- package/dist/confirm-service/confirm-service.js +0 -142
- package/dist/content-layout/content-layout.d.ts +0 -26
- package/dist/content-layout/content-layout.js +0 -77
- package/dist/content-layout/sidebar.d.ts +0 -31
- package/dist/content-layout/sidebar.js +0 -7
- package/dist/contenteditable/contenteditable.d.ts +0 -47
- package/dist/contenteditable/contenteditable.js +0 -84
- package/dist/control-label/control-label.d.ts +0 -11
- package/dist/control-label/control-label.js +0 -32
- package/dist/data-list/data-list.d.ts +0 -85
- package/dist/data-list/data-list.js +0 -249
- package/dist/data-list/data-list.mock.d.ts +0 -16
- package/dist/data-list/data-list.mock.js +0 -197
- package/dist/data-list/item.d.ts +0 -50
- package/dist/data-list/item.js +0 -236
- package/dist/data-list/selection.d.ts +0 -16
- package/dist/data-list/selection.js +0 -149
- package/dist/data-list/title.d.ts +0 -26
- package/dist/data-list/title.js +0 -29
- package/dist/date-picker/consts.d.ts +0 -99
- package/dist/date-picker/consts.js +0 -46
- package/dist/date-picker/date-input.d.ts +0 -48
- package/dist/date-picker/date-input.js +0 -180
- package/dist/date-picker/date-picker.d.ts +0 -77
- package/dist/date-picker/date-picker.js +0 -406
- package/dist/date-picker/date-popup.d.ts +0 -56
- package/dist/date-picker/date-popup.js +0 -488
- package/dist/date-picker/day.d.ts +0 -30
- package/dist/date-picker/day.js +0 -119
- package/dist/date-picker/formats.d.ts +0 -2
- package/dist/date-picker/formats.js +0 -3
- package/dist/date-picker/month-names.d.ts +0 -13
- package/dist/date-picker/month-names.js +0 -109
- package/dist/date-picker/month-slider.d.ts +0 -29
- package/dist/date-picker/month-slider.js +0 -92
- package/dist/date-picker/month.d.ts +0 -14
- package/dist/date-picker/month.js +0 -58
- package/dist/date-picker/months.d.ts +0 -11
- package/dist/date-picker/months.js +0 -134
- package/dist/date-picker/weekdays.d.ts +0 -13
- package/dist/date-picker/weekdays.js +0 -38
- package/dist/date-picker/years.d.ts +0 -25
- package/dist/date-picker/years.js +0 -133
- package/dist/dialog/dialog.d.ts +0 -64
- package/dist/dialog/dialog.js +0 -238
- package/dist/dialog/dialog__body-scroll-preventer.d.ts +0 -9
- package/dist/dialog/dialog__body-scroll-preventer.js +0 -7
- package/dist/dropdown/anchor.d.ts +0 -11
- package/dist/dropdown/anchor.js +0 -25
- package/dist/dropdown/dropdown.d.ts +0 -87
- package/dist/dropdown/dropdown.js +0 -246
- package/dist/dropdown-menu/dropdown-menu.d.ts +0 -26
- package/dist/dropdown-menu/dropdown-menu.js +0 -202
- package/dist/editable-heading/editable-heading.d.ts +0 -31
- package/dist/editable-heading/editable-heading.js +0 -203
- package/dist/error-bubble/error-bubble.d.ts +0 -18
- package/dist/error-bubble/error-bubble.js +0 -90
- package/dist/error-message/error-message.d.ts +0 -27
- package/dist/error-message/error-message.js +0 -79
- package/dist/footer/footer.d.ts +0 -28
- package/dist/footer/footer.js +0 -118
- package/dist/global/compose.d.ts +0 -7
- package/dist/global/compose.js +0 -17
- package/dist/global/composeRefs.d.ts +0 -3
- package/dist/global/composeRefs.js +0 -19
- package/dist/global/controls-height.d.ts +0 -9
- package/dist/global/controls-height.js +0 -19
- package/dist/global/create-stateful-context.d.ts +0 -27
- package/dist/global/create-stateful-context.js +0 -49
- package/dist/global/data-tests.d.ts +0 -3
- package/dist/global/data-tests.js +0 -30
- package/dist/global/dom.d.ts +0 -37
- package/dist/global/dom.js +0 -153
- package/dist/global/focus-sensor-hoc.d.ts +0 -19
- package/dist/global/focus-sensor-hoc.js +0 -165
- package/dist/global/fuzzy-highlight.d.ts +0 -11
- package/dist/global/fuzzy-highlight.js +0 -90
- package/dist/global/get-event-key.d.ts +0 -2
- package/dist/global/get-event-key.js +0 -101
- package/dist/global/get-uid.d.ts +0 -1
- package/dist/global/get-uid.js +0 -22
- package/dist/global/inject-styles.d.ts +0 -3
- package/dist/global/inject-styles.js +0 -22
- package/dist/global/linear-function.d.ts +0 -6
- package/dist/global/linear-function.js +0 -15
- package/dist/global/listeners.d.ts +0 -8
- package/dist/global/listeners.js +0 -59
- package/dist/global/memoize.d.ts +0 -1
- package/dist/global/memoize.js +0 -24
- package/dist/global/normalize-indent.d.ts +0 -1
- package/dist/global/normalize-indent.js +0 -61
- package/dist/global/promise-with-timeout.d.ts +0 -5
- package/dist/global/promise-with-timeout.js +0 -19
- package/dist/global/prop-types.d.ts +0 -4
- package/dist/global/prop-types.js +0 -9
- package/dist/global/react-dom-renderer.d.ts +0 -16
- package/dist/global/react-dom-renderer.js +0 -55
- package/dist/global/react-render-adapter.d.ts +0 -29
- package/dist/global/react-render-adapter.js +0 -36
- package/dist/global/rerender-hoc.d.ts +0 -41
- package/dist/global/rerender-hoc.js +0 -58
- package/dist/global/schedule-raf.d.ts +0 -1
- package/dist/global/schedule-raf.js +0 -28
- package/dist/global/sniffer.d.ts +0 -3
- package/dist/global/sniffer.js +0 -6
- package/dist/global/theme.d.ts +0 -21
- package/dist/global/theme.js +0 -44
- package/dist/global/trivial-template-tag.d.ts +0 -1
- package/dist/global/trivial-template-tag.js +0 -21
- package/dist/global/typescript-utils.d.ts +0 -2
- package/dist/global/typescript-utils.js +0 -8
- package/dist/global/url.d.ts +0 -57
- package/dist/global/url.js +0 -142
- package/dist/global/use-event-callback.d.ts +0 -1
- package/dist/global/use-event-callback.js +0 -17
- package/dist/global/variables.d.ts +0 -90
- package/dist/global/variables.js +0 -1
- package/dist/grid/col.d.ts +0 -31
- package/dist/grid/col.js +0 -81
- package/dist/grid/grid.d.ts +0 -14
- package/dist/grid/grid.js +0 -49
- package/dist/grid/row.d.ts +0 -40
- package/dist/grid/row.js +0 -68
- package/dist/group/group.d.ts +0 -12
- package/dist/group/group.js +0 -39
- package/dist/header/header.d.ts +0 -34
- package/dist/header/header.js +0 -191
- package/dist/header/logo.d.ts +0 -14
- package/dist/header/logo.js +0 -52
- package/dist/header/profile.d.ts +0 -75
- package/dist/header/profile.js +0 -258
- package/dist/header/services-link.d.ts +0 -25
- package/dist/header/services-link.js +0 -18
- package/dist/header/services.d.ts +0 -33
- package/dist/header/services.js +0 -173
- package/dist/header/smart-profile.d.ts +0 -36
- package/dist/header/smart-profile.js +0 -307
- package/dist/header/smart-services.d.ts +0 -25
- package/dist/header/smart-services.js +0 -194
- package/dist/header/tray-icon.d.ts +0 -32
- package/dist/header/tray-icon.js +0 -56
- package/dist/header/tray.d.ts +0 -9
- package/dist/header/tray.js +0 -41
- package/dist/heading/heading.d.ts +0 -25
- package/dist/heading/heading.js +0 -68
- package/dist/http/http.d.ts +0 -61
- package/dist/http/http.js +0 -399
- package/dist/http/http.mock.d.ts +0 -20
- package/dist/http/http.mock.js +0 -115
- package/dist/hub-source/hub-source.d.ts +0 -42
- package/dist/hub-source/hub-source.js +0 -217
- package/dist/hub-source/hub-source__user.d.ts +0 -4
- package/dist/hub-source/hub-source__user.js +0 -61
- package/dist/hub-source/hub-source__users-groups.d.ts +0 -24
- package/dist/hub-source/hub-source__users-groups.js +0 -87
- package/dist/i18n/i18n-context.d.ts +0 -13
- package/dist/i18n/i18n-context.js +0 -28
- package/dist/i18n/i18n.d.ts +0 -59
- package/dist/i18n/i18n.js +0 -140
- package/dist/icon/icon.d.ts +0 -43
- package/dist/icon/icon.js +0 -108
- package/dist/icon/icon__constants.d.ts +0 -30
- package/dist/icon/icon__constants.js +0 -34
- package/dist/icon/icon__svg.d.ts +0 -15
- package/dist/icon/icon__svg.js +0 -15
- package/dist/icon/index.d.ts +0 -2
- package/dist/icon/index.js +0 -18
- package/dist/input/input.d.ts +0 -77
- package/dist/input/input.js +0 -36
- package/dist/island/adaptive-island-hoc.d.ts +0 -61
- package/dist/island/adaptive-island-hoc.js +0 -53
- package/dist/island/content.d.ts +0 -43
- package/dist/island/content.js +0 -147
- package/dist/island/header.d.ts +0 -8
- package/dist/island/header.js +0 -97
- package/dist/island/island.d.ts +0 -78
- package/dist/island/island.js +0 -58
- package/dist/island-legacy/content-legacy.d.ts +0 -10
- package/dist/island-legacy/content-legacy.js +0 -34
- package/dist/island-legacy/header-legacy.d.ts +0 -10
- package/dist/island-legacy/header-legacy.js +0 -36
- package/dist/island-legacy/island-legacy.d.ts +0 -12
- package/dist/island-legacy/island-legacy.js +0 -36
- package/dist/link/clickableLink.d.ts +0 -20
- package/dist/link/clickableLink.js +0 -69
- package/dist/link/link.d.ts +0 -148
- package/dist/link/link.js +0 -122
- package/dist/list/consts.d.ts +0 -76
- package/dist/list/consts.js +0 -31
- package/dist/list/list.d.ts +0 -194
- package/dist/list/list.js +0 -801
- package/dist/list/list__custom.d.ts +0 -6
- package/dist/list/list__custom.js +0 -89
- package/dist/list/list__hint.d.ts +0 -15
- package/dist/list/list__hint.js +0 -33
- package/dist/list/list__item.d.ts +0 -8
- package/dist/list/list__item.js +0 -230
- package/dist/list/list__link.d.ts +0 -9
- package/dist/list/list__link.js +0 -78
- package/dist/list/list__separator.d.ts +0 -5
- package/dist/list/list__separator.js +0 -37
- package/dist/list/list__title.d.ts +0 -5
- package/dist/list/list__title.js +0 -46
- package/dist/list/list__users-groups-source.d.ts +0 -27
- package/dist/list/list__users-groups-source.js +0 -197
- package/dist/loader/loader.d.ts +0 -28
- package/dist/loader/loader.js +0 -95
- package/dist/loader/loader__core.d.ts +0 -75
- package/dist/loader/loader__core.js +0 -317
- package/dist/loader-inline/loader-inline.d.ts +0 -18
- package/dist/loader-inline/loader-inline.js +0 -50
- package/dist/loader-screen/loader-screen.d.ts +0 -17
- package/dist/loader-screen/loader-screen.js +0 -64
- package/dist/login-dialog/login-dialog.d.ts +0 -47
- package/dist/login-dialog/login-dialog.js +0 -218
- package/dist/login-dialog/service.d.ts +0 -2
- package/dist/login-dialog/service.js +0 -99
- package/dist/markdown/code.d.ts +0 -7
- package/dist/markdown/code.js +0 -54
- package/dist/markdown/heading.d.ts +0 -11
- package/dist/markdown/heading.js +0 -20
- package/dist/markdown/link.d.ts +0 -12
- package/dist/markdown/link.js +0 -34
- package/dist/markdown/markdown.d.ts +0 -15
- package/dist/markdown/markdown.js +0 -101
- package/dist/message/message.d.ts +0 -55
- package/dist/message/message.js +0 -255
- package/dist/old-browsers-message/old-browsers-message.d.ts +0 -2
- package/dist/old-browsers-message/old-browsers-message.js +0 -93
- package/dist/old-browsers-message/old-browsers-message__stop.d.ts +0 -1
- package/dist/old-browsers-message/old-browsers-message__stop.js +0 -12
- package/dist/old-browsers-message/white-list.d.ts +0 -2
- package/dist/old-browsers-message/white-list.js +0 -36
- package/dist/pager/pager.d.ts +0 -78
- package/dist/pager/pager.js +0 -394
- package/dist/panel/panel.d.ts +0 -12
- package/dist/panel/panel.js +0 -39
- package/dist/permissions/permissions.d.ts +0 -111
- package/dist/permissions/permissions.js +0 -221
- package/dist/permissions/permissions__cache.d.ts +0 -93
- package/dist/permissions/permissions__cache.js +0 -257
- package/dist/popup/popup.consts.d.ts +0 -37
- package/dist/popup/popup.consts.js +0 -44
- package/dist/popup/popup.d.ts +0 -147
- package/dist/popup/popup.js +0 -420
- package/dist/popup/popup.target.d.ts +0 -7
- package/dist/popup/popup.target.js +0 -24
- package/dist/popup/position.d.ts +0 -30
- package/dist/popup/position.js +0 -260
- package/dist/popup-menu/popup-menu.d.ts +0 -60
- package/dist/popup-menu/popup-menu.js +0 -144
- package/dist/progress-bar/progress-bar.d.ts +0 -58
- package/dist/progress-bar/progress-bar.js +0 -111
- package/dist/query-assist/query-assist.d.ts +0 -331
- package/dist/query-assist/query-assist.js +0 -1080
- package/dist/query-assist/query-assist__suggestions.d.ts +0 -29
- package/dist/query-assist/query-assist__suggestions.js +0 -77
- package/dist/radio/radio.d.ts +0 -18
- package/dist/radio/radio.js +0 -48
- package/dist/radio/radio__item.d.ts +0 -28
- package/dist/radio/radio__item.js +0 -88
- package/dist/select/select.d.ts +0 -302
- package/dist/select/select.js +0 -1281
- package/dist/select/select__filter.d.ts +0 -19
- package/dist/select/select__filter.js +0 -87
- package/dist/select/select__popup.d.ts +0 -166
- package/dist/select/select__popup.js +0 -625
- package/dist/shortcuts/core.d.ts +0 -74
- package/dist/shortcuts/core.js +0 -249
- package/dist/shortcuts/shortcut-title.d.ts +0 -1
- package/dist/shortcuts/shortcut-title.js +0 -56
- package/dist/shortcuts/shortcuts-hoc.d.ts +0 -65
- package/dist/shortcuts/shortcuts-hoc.js +0 -61
- package/dist/shortcuts/shortcuts.d.ts +0 -28
- package/dist/shortcuts/shortcuts.js +0 -92
- package/dist/storage/storage.d.ts +0 -18
- package/dist/storage/storage.js +0 -94
- package/dist/storage/storage__fallback.d.ts +0 -79
- package/dist/storage/storage__fallback.js +0 -254
- package/dist/storage/storage__local.d.ts +0 -38
- package/dist/storage/storage__local.js +0 -219
- package/dist/style.css +0 -1
- package/dist/tab-trap/tab-trap.d.ts +0 -43
- package/dist/tab-trap/tab-trap.js +0 -182
- package/dist/table/cell.d.ts +0 -13
- package/dist/table/cell.js +0 -37
- package/dist/table/disable-hover-hoc.d.ts +0 -64
- package/dist/table/disable-hover-hoc.js +0 -62
- package/dist/table/header-cell.d.ts +0 -43
- package/dist/table/header-cell.js +0 -105
- package/dist/table/header.d.ts +0 -56
- package/dist/table/header.js +0 -150
- package/dist/table/multitable.d.ts +0 -25
- package/dist/table/multitable.js +0 -140
- package/dist/table/row-with-focus-sensor.d.ts +0 -18
- package/dist/table/row-with-focus-sensor.js +0 -119
- package/dist/table/row.d.ts +0 -59
- package/dist/table/row.js +0 -294
- package/dist/table/selection-adapter.d.ts +0 -5
- package/dist/table/selection-adapter.js +0 -14
- package/dist/table/selection-shortcuts-hoc.d.ts +0 -17
- package/dist/table/selection-shortcuts-hoc.js +0 -206
- package/dist/table/selection.d.ts +0 -47
- package/dist/table/selection.js +0 -258
- package/dist/table/smart-table.d.ts +0 -64
- package/dist/table/smart-table.js +0 -151
- package/dist/table/table.d.ts +0 -159
- package/dist/table/table.js +0 -457
- package/dist/tabs/collapsible-more.d.ts +0 -29
- package/dist/tabs/collapsible-more.js +0 -226
- package/dist/tabs/collapsible-tab.d.ts +0 -16
- package/dist/tabs/collapsible-tab.js +0 -89
- package/dist/tabs/collapsible-tabs.d.ts +0 -43
- package/dist/tabs/collapsible-tabs.js +0 -355
- package/dist/tabs/custom-item.d.ts +0 -9
- package/dist/tabs/custom-item.js +0 -11
- package/dist/tabs/dumb-tabs.d.ts +0 -35
- package/dist/tabs/dumb-tabs.js +0 -191
- package/dist/tabs/smart-tabs.d.ts +0 -20
- package/dist/tabs/smart-tabs.js +0 -144
- package/dist/tabs/tab-link.d.ts +0 -18
- package/dist/tabs/tab-link.js +0 -18
- package/dist/tabs/tab.d.ts +0 -27
- package/dist/tabs/tab.js +0 -41
- package/dist/tabs/tabs.d.ts +0 -7
- package/dist/tabs/tabs.js +0 -102
- package/dist/tag/tag.d.ts +0 -64
- package/dist/tag/tag.js +0 -208
- package/dist/tags-input/tags-input.d.ts +0 -163
- package/dist/tags-input/tags-input.js +0 -532
- package/dist/tags-list/tags-list.d.ts +0 -46
- package/dist/tags-list/tags-list.js +0 -103
- package/dist/text/text.d.ts +0 -23
- package/dist/text/text.js +0 -54
- package/dist/toggle/toggle.d.ts +0 -39
- package/dist/toggle/toggle.js +0 -86
- package/dist/tooltip/tooltip.d.ts +0 -65
- package/dist/tooltip/tooltip.js +0 -229
- package/dist/user-agreement/service.d.ts +0 -67
- package/dist/user-agreement/service.js +0 -501
- package/dist/user-agreement/toolbox.eula.d.ts +0 -2
- package/dist/user-agreement/toolbox.eula.js +0 -3
- package/dist/user-agreement/user-agreement.d.ts +0 -61
- package/dist/user-agreement/user-agreement.js +0 -191
- package/dist/user-card/card.d.ts +0 -71
- package/dist/user-card/card.js +0 -82
- package/dist/user-card/smart-user-card-tooltip.d.ts +0 -20
- package/dist/user-card/smart-user-card-tooltip.js +0 -174
- package/dist/user-card/tooltip.d.ts +0 -36
- package/dist/user-card/tooltip.js +0 -146
- package/dist/user-card/user-card.d.ts +0 -11
- package/dist/user-card/user-card.js +0 -87
- /package/components/list/{list.examples.css → list.stories.css} +0 -0
- /package/components/table/{table.examples.json → table.stories.json} +0 -0
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, h as _asyncToGenerator, d as _createClass, i as _regeneratorRuntime } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.array.concat.js';
|
|
3
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
4
|
-
import 'core-js/modules/es.string.replace.js';
|
|
5
|
-
import React, { Component } from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
|
-
import classNames from 'classnames';
|
|
8
|
-
import '../island/island.js';
|
|
9
|
-
import Dialog from '../dialog/dialog.js';
|
|
10
|
-
import { Button } from '../button/button.js';
|
|
11
|
-
import { H2 } from '../heading/heading.js';
|
|
12
|
-
import ContentWrapper from '../island/content.js';
|
|
13
|
-
import '../global/data-tests.js';
|
|
14
|
-
import 'core-js/modules/es.array.reduce.js';
|
|
15
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
16
|
-
import 'core-js/modules/es.object.entries.js';
|
|
17
|
-
import '../island/adaptive-island-hoc.js';
|
|
18
|
-
import '../global/linear-function.js';
|
|
19
|
-
import '../_helpers/island.js';
|
|
20
|
-
import '../island/header.js';
|
|
21
|
-
import 'element-resize-detector';
|
|
22
|
-
import '../global/schedule-raf.js';
|
|
23
|
-
import 'react-dom';
|
|
24
|
-
import '@jetbrains/icons/close';
|
|
25
|
-
import '../global/get-uid.js';
|
|
26
|
-
import 'core-js/modules/es.regexp.to-string.js';
|
|
27
|
-
import '../shortcuts/shortcuts.js';
|
|
28
|
-
import 'core-js/modules/es.array.map.js';
|
|
29
|
-
import '../shortcuts/core.js';
|
|
30
|
-
import 'core-js/modules/es.array.includes.js';
|
|
31
|
-
import 'core-js/modules/es.string.includes.js';
|
|
32
|
-
import 'core-js/modules/es.object.assign.js';
|
|
33
|
-
import 'core-js/modules/es.array.slice.js';
|
|
34
|
-
import 'core-js/modules/es.array.splice.js';
|
|
35
|
-
import 'core-js/modules/es.string.match.js';
|
|
36
|
-
import 'core-js/modules/es.array.find-index.js';
|
|
37
|
-
import 'combokeys';
|
|
38
|
-
import '../global/sniffer.js';
|
|
39
|
-
import 'sniffr';
|
|
40
|
-
import '../tab-trap/tab-trap.js';
|
|
41
|
-
import 'core-js/modules/es.array.filter.js';
|
|
42
|
-
import '../global/dom.js';
|
|
43
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
44
|
-
import 'core-js/modules/es.string.split.js';
|
|
45
|
-
import 'core-js/modules/es.object.keys.js';
|
|
46
|
-
import 'core-js/modules/es.array.iterator.js';
|
|
47
|
-
import 'core-js/modules/es.set.js';
|
|
48
|
-
import 'core-js/modules/es.string.iterator.js';
|
|
49
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
50
|
-
import '../popup/popup.target.js';
|
|
51
|
-
import '../_helpers/dialog__body-scroll-preventer.js';
|
|
52
|
-
import 'scrollbar-width';
|
|
53
|
-
import '@jetbrains/icons/chevron-10px';
|
|
54
|
-
import '../icon/icon.js';
|
|
55
|
-
import 'util-deprecate';
|
|
56
|
-
import '../icon/icon__constants.js';
|
|
57
|
-
import '../_helpers/icon__svg.js';
|
|
58
|
-
import 'core-js/modules/es.string.starts-with.js';
|
|
59
|
-
import '../global/memoize.js';
|
|
60
|
-
import 'core-js/modules/es.map.js';
|
|
61
|
-
import 'core-js/modules/es.weak-map.js';
|
|
62
|
-
import '../link/clickableLink.js';
|
|
63
|
-
import '../global/controls-height.js';
|
|
64
|
-
import '../_helpers/button__classes.js';
|
|
65
|
-
|
|
66
|
-
var modules_ae521deb = {"unit":"i__const_unit_0","light":"light_rui_2ac4","dialog":"dialog_rui_159b","content":"content_rui_159b font_rui_8bff","button":"button_rui_159b","firstButton":"firstButton_rui_159b button_rui_159b","title":"title_rui_159b","logo":"logo_rui_159b","error":"error_rui_159b"};
|
|
67
|
-
|
|
68
|
-
var AuthDialog = /*#__PURE__*/function (_Component) {
|
|
69
|
-
_inherits(AuthDialog, _Component);
|
|
70
|
-
var _super = _createSuper(AuthDialog);
|
|
71
|
-
function AuthDialog() {
|
|
72
|
-
var _this;
|
|
73
|
-
_classCallCheck(this, AuthDialog);
|
|
74
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
75
|
-
args[_key] = arguments[_key];
|
|
76
|
-
}
|
|
77
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
78
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
79
|
-
retrying: false
|
|
80
|
-
});
|
|
81
|
-
_defineProperty(_assertThisInitialized(_this), "onEscPress", function () {
|
|
82
|
-
if (_this.props.cancelOnEsc) {
|
|
83
|
-
_this.props.onCancel();
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
_defineProperty(_assertThisInitialized(_this), "onRetryPress", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
87
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
88
|
-
while (1) switch (_context.prev = _context.next) {
|
|
89
|
-
case 0:
|
|
90
|
-
if (!(!_this.props.onTryAgain || _this.state.retrying)) {
|
|
91
|
-
_context.next = 2;
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
return _context.abrupt("return");
|
|
95
|
-
case 2:
|
|
96
|
-
_this.setState({
|
|
97
|
-
retrying: true
|
|
98
|
-
});
|
|
99
|
-
_context.prev = 3;
|
|
100
|
-
_context.next = 6;
|
|
101
|
-
return _this.props.onTryAgain();
|
|
102
|
-
case 6:
|
|
103
|
-
_context.next = 10;
|
|
104
|
-
break;
|
|
105
|
-
case 8:
|
|
106
|
-
_context.prev = 8;
|
|
107
|
-
_context.t0 = _context["catch"](3);
|
|
108
|
-
case 10:
|
|
109
|
-
_context.prev = 10;
|
|
110
|
-
_this.setState({
|
|
111
|
-
retrying: false
|
|
112
|
-
});
|
|
113
|
-
return _context.finish(10);
|
|
114
|
-
case 13:
|
|
115
|
-
case "end":
|
|
116
|
-
return _context.stop();
|
|
117
|
-
}
|
|
118
|
-
}, _callee, null, [[3, 8, 10, 13]]);
|
|
119
|
-
})));
|
|
120
|
-
return _this;
|
|
121
|
-
}
|
|
122
|
-
_createClass(AuthDialog, [{
|
|
123
|
-
key: "componentDidMount",
|
|
124
|
-
value: function componentDidMount() {
|
|
125
|
-
window.addEventListener('online', this.onRetryPress);
|
|
126
|
-
}
|
|
127
|
-
}, {
|
|
128
|
-
key: "componentWillUnmount",
|
|
129
|
-
value: function componentWillUnmount() {
|
|
130
|
-
window.removeEventListener('online', this.onRetryPress);
|
|
131
|
-
}
|
|
132
|
-
}, {
|
|
133
|
-
key: "render",
|
|
134
|
-
value: function render() {
|
|
135
|
-
var _this2 = this;
|
|
136
|
-
var _this$props = this.props,
|
|
137
|
-
show = _this$props.show,
|
|
138
|
-
className = _this$props.className,
|
|
139
|
-
errorMessage = _this$props.errorMessage,
|
|
140
|
-
serviceImage = _this$props.serviceImage,
|
|
141
|
-
serviceName = _this$props.serviceName,
|
|
142
|
-
loginCaption = _this$props.loginCaption,
|
|
143
|
-
loginToCaption = _this$props.loginToCaption,
|
|
144
|
-
confirmLabel = _this$props.confirmLabel,
|
|
145
|
-
cancelLabel = _this$props.cancelLabel,
|
|
146
|
-
tryAgainLabel = _this$props.tryAgainLabel,
|
|
147
|
-
onConfirm = _this$props.onConfirm,
|
|
148
|
-
onCancel = _this$props.onCancel,
|
|
149
|
-
onTryAgain = _this$props.onTryAgain;
|
|
150
|
-
var retrying = this.state.retrying;
|
|
151
|
-
var defaultTitle = serviceName ? loginToCaption : loginCaption;
|
|
152
|
-
var title = (this.props.title || defaultTitle).replace('%serviceName%', serviceName !== null && serviceName !== void 0 ? serviceName : '').replace('{{serviceName}}', serviceName !== null && serviceName !== void 0 ? serviceName : '');
|
|
153
|
-
return /*#__PURE__*/React.createElement(Dialog, {
|
|
154
|
-
label: title,
|
|
155
|
-
"data-test": "ring-auth-dialog",
|
|
156
|
-
className: className,
|
|
157
|
-
contentClassName: classNames(className, modules_ae521deb.dialog),
|
|
158
|
-
onEscPress: this.onEscPress,
|
|
159
|
-
show: show,
|
|
160
|
-
trapFocus: true
|
|
161
|
-
}, /*#__PURE__*/React.createElement(ContentWrapper, null, /*#__PURE__*/React.createElement("div", {
|
|
162
|
-
className: modules_ae521deb.content
|
|
163
|
-
}, serviceImage && /*#__PURE__*/React.createElement("img", {
|
|
164
|
-
alt: "".concat(serviceName, " logo"),
|
|
165
|
-
className: modules_ae521deb.logo,
|
|
166
|
-
src: serviceImage
|
|
167
|
-
}), /*#__PURE__*/React.createElement(H2, {
|
|
168
|
-
className: modules_ae521deb.title
|
|
169
|
-
}, title), errorMessage && /*#__PURE__*/React.createElement("div", {
|
|
170
|
-
className: modules_ae521deb.error
|
|
171
|
-
}, errorMessage), /*#__PURE__*/React.createElement(Button, {
|
|
172
|
-
primary: true,
|
|
173
|
-
className: modules_ae521deb.firstButton,
|
|
174
|
-
"data-test": "auth-dialog-confirm-button",
|
|
175
|
-
onClick: onConfirm
|
|
176
|
-
}, confirmLabel), onTryAgain && /*#__PURE__*/React.createElement(Button, {
|
|
177
|
-
className: modules_ae521deb.button,
|
|
178
|
-
"data-test": "auth-dialog-retry-button",
|
|
179
|
-
onClick: function onClick() {
|
|
180
|
-
return _this2.onRetryPress();
|
|
181
|
-
},
|
|
182
|
-
loader: retrying,
|
|
183
|
-
disabled: retrying
|
|
184
|
-
}, tryAgainLabel), /*#__PURE__*/React.createElement(Button, {
|
|
185
|
-
className: modules_ae521deb.button,
|
|
186
|
-
"data-test": "auth-dialog-cancel-button",
|
|
187
|
-
onClick: onCancel
|
|
188
|
-
}, cancelLabel))));
|
|
189
|
-
}
|
|
190
|
-
}]);
|
|
191
|
-
return AuthDialog;
|
|
192
|
-
}(Component);
|
|
193
|
-
_defineProperty(AuthDialog, "propTypes", {
|
|
194
|
-
className: PropTypes.string,
|
|
195
|
-
title: PropTypes.string,
|
|
196
|
-
errorMessage: PropTypes.string,
|
|
197
|
-
serviceImage: PropTypes.string,
|
|
198
|
-
serviceName: PropTypes.string,
|
|
199
|
-
loginCaption: PropTypes.string,
|
|
200
|
-
loginToCaption: PropTypes.string,
|
|
201
|
-
show: PropTypes.bool,
|
|
202
|
-
cancelOnEsc: PropTypes.bool,
|
|
203
|
-
confirmLabel: PropTypes.string,
|
|
204
|
-
cancelLabel: PropTypes.string,
|
|
205
|
-
tryAgainLabel: PropTypes.string,
|
|
206
|
-
onConfirm: PropTypes.func,
|
|
207
|
-
onCancel: PropTypes.func,
|
|
208
|
-
onTryAgain: PropTypes.func
|
|
209
|
-
});
|
|
210
|
-
_defineProperty(AuthDialog, "defaultProps", {
|
|
211
|
-
loginCaption: 'Log in',
|
|
212
|
-
loginToCaption: 'Log in to %serviceName%',
|
|
213
|
-
tryAgainLabel: 'Try again',
|
|
214
|
-
show: false,
|
|
215
|
-
cancelOnEsc: true,
|
|
216
|
-
confirmLabel: 'Log in',
|
|
217
|
-
cancelLabel: 'Remain a guest',
|
|
218
|
-
onConfirm: function onConfirm() {},
|
|
219
|
-
onCancel: function onCancel() {}
|
|
220
|
-
});
|
|
221
|
-
|
|
222
|
-
export { AuthDialog as default };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import AuthDialog, { AuthDialogProps } from '../auth-dialog/auth-dialog';
|
|
3
|
-
type AuthDialogAttributes = JSX.LibraryManagedAttributes<typeof AuthDialog, AuthDialogProps>;
|
|
4
|
-
export default function showAuthDialog(props?: AuthDialogAttributes): () => void;
|
|
5
|
-
export {};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { g as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
|
4
|
-
import { render } from '../global/react-render-adapter.js';
|
|
5
|
-
import AuthDialog from '../auth-dialog/auth-dialog.js';
|
|
6
|
-
import 'core-js/modules/es.array.iterator.js';
|
|
7
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
8
|
-
import 'core-js/modules/es.string.iterator.js';
|
|
9
|
-
import 'core-js/modules/es.weak-map.js';
|
|
10
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
11
|
-
import 'react-dom';
|
|
12
|
-
import 'core-js/modules/es.array.concat.js';
|
|
13
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
14
|
-
import 'core-js/modules/es.string.replace.js';
|
|
15
|
-
import 'prop-types';
|
|
16
|
-
import 'classnames';
|
|
17
|
-
import '../island/island.js';
|
|
18
|
-
import '../global/data-tests.js';
|
|
19
|
-
import 'core-js/modules/es.array.reduce.js';
|
|
20
|
-
import 'core-js/modules/es.object.entries.js';
|
|
21
|
-
import '../island/adaptive-island-hoc.js';
|
|
22
|
-
import '../global/linear-function.js';
|
|
23
|
-
import '../_helpers/island.js';
|
|
24
|
-
import '../island/header.js';
|
|
25
|
-
import '../island/content.js';
|
|
26
|
-
import 'element-resize-detector';
|
|
27
|
-
import '../global/schedule-raf.js';
|
|
28
|
-
import '../dialog/dialog.js';
|
|
29
|
-
import '@jetbrains/icons/close';
|
|
30
|
-
import '../global/get-uid.js';
|
|
31
|
-
import 'core-js/modules/es.regexp.to-string.js';
|
|
32
|
-
import '../shortcuts/shortcuts.js';
|
|
33
|
-
import 'core-js/modules/es.array.map.js';
|
|
34
|
-
import '../shortcuts/core.js';
|
|
35
|
-
import 'core-js/modules/es.array.includes.js';
|
|
36
|
-
import 'core-js/modules/es.string.includes.js';
|
|
37
|
-
import 'core-js/modules/es.object.assign.js';
|
|
38
|
-
import 'core-js/modules/es.array.slice.js';
|
|
39
|
-
import 'core-js/modules/es.array.splice.js';
|
|
40
|
-
import 'core-js/modules/es.string.match.js';
|
|
41
|
-
import 'core-js/modules/es.array.find-index.js';
|
|
42
|
-
import 'combokeys';
|
|
43
|
-
import '../global/sniffer.js';
|
|
44
|
-
import 'sniffr';
|
|
45
|
-
import '../tab-trap/tab-trap.js';
|
|
46
|
-
import 'core-js/modules/es.array.filter.js';
|
|
47
|
-
import '../global/dom.js';
|
|
48
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
49
|
-
import 'core-js/modules/es.string.split.js';
|
|
50
|
-
import 'core-js/modules/es.object.keys.js';
|
|
51
|
-
import 'core-js/modules/es.set.js';
|
|
52
|
-
import '../button/button.js';
|
|
53
|
-
import '@jetbrains/icons/chevron-10px';
|
|
54
|
-
import '../icon/icon.js';
|
|
55
|
-
import 'util-deprecate';
|
|
56
|
-
import '../icon/icon__constants.js';
|
|
57
|
-
import '../_helpers/icon__svg.js';
|
|
58
|
-
import 'core-js/modules/es.string.starts-with.js';
|
|
59
|
-
import '../global/memoize.js';
|
|
60
|
-
import 'core-js/modules/es.map.js';
|
|
61
|
-
import '../link/clickableLink.js';
|
|
62
|
-
import '../_helpers/button__classes.js';
|
|
63
|
-
import '../popup/popup.target.js';
|
|
64
|
-
import '../_helpers/dialog__body-scroll-preventer.js';
|
|
65
|
-
import 'scrollbar-width';
|
|
66
|
-
import '../heading/heading.js';
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @name Auth Dialog Service
|
|
70
|
-
*/
|
|
71
|
-
var containerElement = document.createElement('div');
|
|
72
|
-
/**
|
|
73
|
-
* Renders AuthDialog into virtual node to skip maintaining container
|
|
74
|
-
*/
|
|
75
|
-
function renderAuthDialog(props) {
|
|
76
|
-
render( /*#__PURE__*/React.createElement(ControlsHeightContext.Provider, {
|
|
77
|
-
value: getGlobalControlsHeight()
|
|
78
|
-
}, /*#__PURE__*/React.createElement(AuthDialog, props)), containerElement);
|
|
79
|
-
}
|
|
80
|
-
function showAuthDialog() {
|
|
81
|
-
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
82
|
-
renderAuthDialog(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
83
|
-
show: true
|
|
84
|
-
}));
|
|
85
|
-
return function () {
|
|
86
|
-
renderAuthDialog({
|
|
87
|
-
show: false
|
|
88
|
-
});
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export { showAuthDialog as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const avatarDataUri: string;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
// Taken from https://hub.jetbrains.com/api/rest/avatar/default?username=Jet%20Brains&dpr=2&size=56
|
|
2
|
-
var avatarDataUri = "data:image/svg+xml,".concat(encodeURIComponent("\n<svg viewBox=\"0 0 40 40\" xmlns=\"http://www.w3.org/2000/svg\">\n <defs>\n <linearGradient id=\"gradient\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop stop-color=\"#D50F6B\" offset=\"0\"/>\n <stop stop-color=\"#E73AE8\" offset=\"1\"/>\n </linearGradient>\n </defs>\n <g>\n <rect fill=\"url(#gradient)\"\n x=\"0\" y=\"0\" width=\"40\" height=\"40\"\n rx=\"3\" ry=\"3\"/>\n <text x=\"5\" y=\"19\"\n font-family=\"Arial, Helvetica, sans-serif\"\n font-size=\"15px\"\n letter-spacing=\"1\"\n fill=\"#FFFFFF\">\n <tspan>JB</tspan>\n <tspan x=\"6\" y=\"28\">_</tspan>\n </text>\n </g>\n</svg>\n"));
|
|
3
|
-
|
|
4
|
-
export { avatarDataUri };
|
package/dist/avatar/avatar.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import React, { PureComponent, ImgHTMLAttributes } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
/**
|
|
4
|
-
* @name Avatar
|
|
5
|
-
*/
|
|
6
|
-
export declare enum Size {
|
|
7
|
-
Size18 = 18,
|
|
8
|
-
Size20 = 20,
|
|
9
|
-
Size24 = 24,
|
|
10
|
-
Size28 = 28,
|
|
11
|
-
Size32 = 32,
|
|
12
|
-
Size40 = 40,
|
|
13
|
-
Size48 = 48,
|
|
14
|
-
Size56 = 56
|
|
15
|
-
}
|
|
16
|
-
export interface AvatarProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
17
|
-
dpr: number;
|
|
18
|
-
size: Size | number;
|
|
19
|
-
subavatarSize: number;
|
|
20
|
-
url?: string | null | undefined;
|
|
21
|
-
round?: boolean | null | undefined;
|
|
22
|
-
subavatar?: string | null | undefined;
|
|
23
|
-
username?: string | null | undefined;
|
|
24
|
-
skipParams?: boolean | null | undefined;
|
|
25
|
-
}
|
|
26
|
-
export default class Avatar extends PureComponent<AvatarProps> {
|
|
27
|
-
static propTypes: {
|
|
28
|
-
dpr: PropTypes.Requireable<number>;
|
|
29
|
-
className: PropTypes.Requireable<string>;
|
|
30
|
-
size: PropTypes.Requireable<number>;
|
|
31
|
-
style: PropTypes.Requireable<object>;
|
|
32
|
-
url: PropTypes.Requireable<string>;
|
|
33
|
-
round: PropTypes.Requireable<boolean>;
|
|
34
|
-
subavatar: PropTypes.Requireable<string>;
|
|
35
|
-
subavatarSize: PropTypes.Requireable<number>;
|
|
36
|
-
username: PropTypes.Requireable<string>;
|
|
37
|
-
skipParams: PropTypes.Requireable<boolean>;
|
|
38
|
-
};
|
|
39
|
-
static defaultProps: {
|
|
40
|
-
dpr: number;
|
|
41
|
-
size: Size;
|
|
42
|
-
subavatarSize: number;
|
|
43
|
-
style: {};
|
|
44
|
-
};
|
|
45
|
-
state: {
|
|
46
|
-
errorUrl: string;
|
|
47
|
-
};
|
|
48
|
-
handleError: () => void;
|
|
49
|
-
handleSuccess: () => void;
|
|
50
|
-
render(): React.JSX.Element;
|
|
51
|
-
}
|
|
52
|
-
export type AvatarAttrs = JSX.LibraryManagedAttributes<typeof Avatar, AvatarProps>;
|
package/dist/avatar/avatar.js
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, d as _createClass, e as _objectWithoutProperties, g as _objectSpread2, f as _extends, j as _slicedToArray } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.array.concat.js';
|
|
3
|
-
import React, { PureComponent } from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import classNames from 'classnames';
|
|
6
|
-
import { isDataURI, parseQueryString, encodeURL } from '../global/url.js';
|
|
7
|
-
import { getPixelRatio } from '../global/dom.js';
|
|
8
|
-
import FallbackAvatar from './fallback-avatar.js';
|
|
9
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
10
|
-
import 'core-js/modules/es.string.match.js';
|
|
11
|
-
import 'core-js/modules/es.array.index-of.js';
|
|
12
|
-
import 'core-js/modules/es.string.replace.js';
|
|
13
|
-
import 'core-js/modules/es.object.assign.js';
|
|
14
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
15
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
16
|
-
import 'core-js/modules/es.array.filter.js';
|
|
17
|
-
import 'core-js/modules/es.string.split.js';
|
|
18
|
-
import 'core-js/modules/es.object.entries.js';
|
|
19
|
-
import 'core-js/modules/es.object.keys.js';
|
|
20
|
-
import 'core-js/modules/es.array.iterator.js';
|
|
21
|
-
import 'core-js/modules/es.set.js';
|
|
22
|
-
import 'core-js/modules/es.string.iterator.js';
|
|
23
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
24
|
-
import 'core-js/modules/es.array.map.js';
|
|
25
|
-
import 'core-js/modules/es.number.constructor.js';
|
|
26
|
-
import 'core-js/modules/es.array.from.js';
|
|
27
|
-
import 'core-js/modules/es.array.slice.js';
|
|
28
|
-
import '../global/get-uid.js';
|
|
29
|
-
import 'core-js/modules/es.regexp.to-string.js';
|
|
30
|
-
|
|
31
|
-
var modules_61ca8c75 = {"light":"light_rui_2ac4","avatar":"avatar_rui_a03e","subavatar":"subavatar_rui_a03e","empty":"empty_rui_a03e"};
|
|
32
|
-
|
|
33
|
-
var _excluded = ["size", "url", "dpr", "style", "round", "subavatar", "subavatarSize", "username", "skipParams"];
|
|
34
|
-
/**
|
|
35
|
-
* @name Avatar
|
|
36
|
-
*/
|
|
37
|
-
var Size;
|
|
38
|
-
(function (Size) {
|
|
39
|
-
Size[Size["Size18"] = 18] = "Size18";
|
|
40
|
-
Size[Size["Size20"] = 20] = "Size20";
|
|
41
|
-
Size[Size["Size24"] = 24] = "Size24";
|
|
42
|
-
Size[Size["Size28"] = 28] = "Size28";
|
|
43
|
-
Size[Size["Size32"] = 32] = "Size32";
|
|
44
|
-
Size[Size["Size40"] = 40] = "Size40";
|
|
45
|
-
Size[Size["Size48"] = 48] = "Size48";
|
|
46
|
-
Size[Size["Size56"] = 56] = "Size56";
|
|
47
|
-
})(Size || (Size = {}));
|
|
48
|
-
var Avatar = /*#__PURE__*/function (_PureComponent) {
|
|
49
|
-
_inherits(Avatar, _PureComponent);
|
|
50
|
-
var _super = _createSuper(Avatar);
|
|
51
|
-
function Avatar() {
|
|
52
|
-
var _this;
|
|
53
|
-
_classCallCheck(this, Avatar);
|
|
54
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
55
|
-
args[_key] = arguments[_key];
|
|
56
|
-
}
|
|
57
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
58
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
59
|
-
errorUrl: ''
|
|
60
|
-
});
|
|
61
|
-
_defineProperty(_assertThisInitialized(_this), "handleError", function () {
|
|
62
|
-
_this.setState({
|
|
63
|
-
errorUrl: _this.props.url
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
_defineProperty(_assertThisInitialized(_this), "handleSuccess", function () {
|
|
67
|
-
_this.setState({
|
|
68
|
-
errorUrl: ''
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
return _this;
|
|
72
|
-
}
|
|
73
|
-
_createClass(Avatar, [{
|
|
74
|
-
key: "render",
|
|
75
|
-
value: function render() {
|
|
76
|
-
var _this$props = this.props,
|
|
77
|
-
size = _this$props.size,
|
|
78
|
-
url = _this$props.url,
|
|
79
|
-
dpr = _this$props.dpr,
|
|
80
|
-
style = _this$props.style,
|
|
81
|
-
round = _this$props.round,
|
|
82
|
-
subavatar = _this$props.subavatar,
|
|
83
|
-
subavatarSize = _this$props.subavatarSize,
|
|
84
|
-
username = _this$props.username,
|
|
85
|
-
skipParams = _this$props.skipParams,
|
|
86
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
87
|
-
var sizeString = "".concat(size, "px");
|
|
88
|
-
var subavatarSizeString = "".concat(subavatarSize, "px");
|
|
89
|
-
var borderRadius = size <= Size.Size18 ? 'var(--ring-border-radius-small)' : 'var(--ring-border-radius)';
|
|
90
|
-
var styleObj = _objectSpread2({
|
|
91
|
-
borderRadius: round ? '50%' : borderRadius,
|
|
92
|
-
height: sizeString,
|
|
93
|
-
width: sizeString
|
|
94
|
-
}, style);
|
|
95
|
-
var styleObjGroup = _objectSpread2({
|
|
96
|
-
borderRadius: '2px',
|
|
97
|
-
height: subavatarSizeString,
|
|
98
|
-
width: subavatarSizeString
|
|
99
|
-
}, style);
|
|
100
|
-
if (!url || this.state.errorUrl === url) {
|
|
101
|
-
return /*#__PURE__*/React.createElement("span", _extends({}, restProps, {
|
|
102
|
-
"data-test": "avatar",
|
|
103
|
-
className: classNames(modules_61ca8c75.avatar, this.props.className, _defineProperty({}, modules_61ca8c75.empty, username == null)),
|
|
104
|
-
style: styleObj
|
|
105
|
-
}), username != null && /*#__PURE__*/React.createElement(FallbackAvatar, {
|
|
106
|
-
size: size,
|
|
107
|
-
round: round,
|
|
108
|
-
username: username
|
|
109
|
-
}));
|
|
110
|
-
}
|
|
111
|
-
var src = url;
|
|
112
|
-
if (!skipParams && !isDataURI(url)) {
|
|
113
|
-
var _url$split = url.split('?'),
|
|
114
|
-
_url$split2 = _slicedToArray(_url$split, 2),
|
|
115
|
-
urlStart = _url$split2[0],
|
|
116
|
-
query = _url$split2[1];
|
|
117
|
-
var queryParams = _objectSpread2(_objectSpread2({}, parseQueryString(query)), {}, {
|
|
118
|
-
dpr: dpr,
|
|
119
|
-
size: size
|
|
120
|
-
});
|
|
121
|
-
src = encodeURL(urlStart, queryParams);
|
|
122
|
-
}
|
|
123
|
-
var subavatarSrc = null;
|
|
124
|
-
if (subavatar && !isDataURI(subavatar)) {
|
|
125
|
-
var _subavatar$split = subavatar.split('?'),
|
|
126
|
-
_subavatar$split2 = _slicedToArray(_subavatar$split, 2),
|
|
127
|
-
_urlStart = _subavatar$split2[0],
|
|
128
|
-
_query = _subavatar$split2[1];
|
|
129
|
-
var _queryParams = _objectSpread2(_objectSpread2({}, parseQueryString(_query)), {}, {
|
|
130
|
-
dpr: dpr,
|
|
131
|
-
subavatarSizeString: subavatarSizeString
|
|
132
|
-
});
|
|
133
|
-
subavatarSrc = skipParams ? subavatar : encodeURL(_urlStart, _queryParams);
|
|
134
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("img", _extends({}, restProps, {
|
|
135
|
-
onError: this.handleError,
|
|
136
|
-
onLoad: this.handleSuccess,
|
|
137
|
-
className: classNames(modules_61ca8c75.avatar, this.props.className),
|
|
138
|
-
style: styleObj,
|
|
139
|
-
src: src,
|
|
140
|
-
alt: "User avatar"
|
|
141
|
-
})), /*#__PURE__*/React.createElement("img", _extends({}, restProps, {
|
|
142
|
-
"data-test": "avatar",
|
|
143
|
-
onError: this.handleError,
|
|
144
|
-
onLoad: this.handleSuccess,
|
|
145
|
-
className: classNames(modules_61ca8c75.subavatar),
|
|
146
|
-
style: styleObjGroup,
|
|
147
|
-
src: subavatarSrc,
|
|
148
|
-
alt: "Subavatar"
|
|
149
|
-
})));
|
|
150
|
-
} else {
|
|
151
|
-
return /*#__PURE__*/React.createElement("img", _extends({}, restProps, {
|
|
152
|
-
"data-test": "avatar",
|
|
153
|
-
onError: this.handleError,
|
|
154
|
-
onLoad: this.handleSuccess,
|
|
155
|
-
className: classNames(modules_61ca8c75.avatar, this.props.className),
|
|
156
|
-
style: styleObj,
|
|
157
|
-
src: src,
|
|
158
|
-
alt: "User avatar"
|
|
159
|
-
}));
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}]);
|
|
163
|
-
return Avatar;
|
|
164
|
-
}(PureComponent);
|
|
165
|
-
_defineProperty(Avatar, "propTypes", {
|
|
166
|
-
dpr: PropTypes.number,
|
|
167
|
-
className: PropTypes.string,
|
|
168
|
-
size: PropTypes.number,
|
|
169
|
-
style: PropTypes.object,
|
|
170
|
-
url: PropTypes.string,
|
|
171
|
-
round: PropTypes.bool,
|
|
172
|
-
subavatar: PropTypes.string,
|
|
173
|
-
subavatarSize: PropTypes.number,
|
|
174
|
-
username: PropTypes.string,
|
|
175
|
-
skipParams: PropTypes.bool
|
|
176
|
-
});
|
|
177
|
-
_defineProperty(Avatar, "defaultProps", {
|
|
178
|
-
dpr: getPixelRatio(),
|
|
179
|
-
size: Size.Size20,
|
|
180
|
-
subavatarSize: Size.Size20 / 2,
|
|
181
|
-
style: {}
|
|
182
|
-
});
|
|
183
|
-
|
|
184
|
-
export { Size, Avatar as default };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { Size } from './avatar';
|
|
4
|
-
export interface FallbackAvatarProps {
|
|
5
|
-
username: string;
|
|
6
|
-
size: Size;
|
|
7
|
-
round: boolean | null | undefined;
|
|
8
|
-
}
|
|
9
|
-
declare function FallbackAvatar({ username, size, round }: FallbackAvatarProps): React.JSX.Element;
|
|
10
|
-
declare namespace FallbackAvatar {
|
|
11
|
-
var propTypes: {
|
|
12
|
-
username: PropTypes.Validator<string>;
|
|
13
|
-
size: PropTypes.Validator<number>;
|
|
14
|
-
round: PropTypes.Requireable<boolean>;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export default FallbackAvatar;
|