@jetbrains/ring-ui 6.0.4-beta.0 → 6.0.4
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.stories.css +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 +10 -12
- package/components/badge/badge.css +1 -3
- package/components/button/button.css +13 -14
- package/components/button-group/button-group.css +6 -5
- 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/collapse/collapse-content.d.ts +11 -0
- package/components/collapse/collapse-content.js +72 -0
- package/components/collapse/collapse-context.d.ts +10 -0
- package/components/collapse/collapse-context.js +10 -0
- package/components/collapse/collapse-control.d.ts +11 -0
- package/components/collapse/collapse-control.js +22 -0
- package/components/collapse/collapse.css +40 -0
- package/components/collapse/collapse.d.ts +12 -0
- package/components/collapse/collapse.js +26 -0
- package/components/collapse/collapse.stories.css +25 -0
- package/components/collapse/consts.d.ts +4 -0
- package/components/collapse/consts.js +4 -0
- package/components/collapse/utils.d.ts +1 -0
- package/components/collapse/utils.js +1 -0
- package/components/confirm/confirm.css +1 -3
- package/components/content-layout/content-layout.css +7 -7
- package/components/data-list/data-list.css +4 -5
- package/components/date-picker/consts.js +1 -1
- package/components/date-picker/date-picker.css +40 -41
- package/components/date-picker/date-picker.js +7 -7
- package/components/date-picker/date-popup.js +4 -4
- package/components/date-picker/day.js +9 -9
- package/components/date-picker/month-names.js +6 -6
- package/components/date-picker/month-slider.js +3 -3
- package/components/date-picker/month.js +5 -5
- package/components/date-picker/months.js +6 -6
- package/components/date-picker/weekdays.js +4 -4
- package/components/date-picker/years.js +8 -8
- package/components/dialog/dialog.css +12 -13
- package/components/editable-heading/editable-heading.css +25 -20
- package/components/editable-heading/editable-heading.d.ts +1 -1
- package/components/editable-heading/editable-heading.js +42 -27
- 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/global/global.css +1 -7
- package/components/global/variables_dark.css +2 -2
- 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.css +12 -14
- 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/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 +1 -1
- package/components/link/link.d.ts +2 -2
- package/components/link/link.js +1 -1
- package/components/list/list.css +17 -20
- package/components/list/list.d.ts +0 -1
- package/components/list/list.js +5 -6
- 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/markdown/markdown.css +2 -3
- 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/panel/panel.css +3 -5
- package/components/popup/popup.js +3 -3
- 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.js +1 -1
- package/components/radio/radio.css +7 -10
- package/components/select/select-popup.css +13 -11
- package/components/select/select.css +13 -14
- package/components/select/select.js +21 -21
- package/components/sidebar/sidebar.css +13 -15
- package/components/table/table.css +15 -17
- package/components/table-legacy/table-legacy.css +22 -24
- package/components/table-legacy/table-legacy__toolbar.css +2 -4
- 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/toggle/toggle.css +21 -22
- package/components/tooltip/tooltip.css +3 -5
- package/components/user-agreement/user-agreement.css +2 -2
- package/components/user-card/user-card.css +3 -5
- package/package.json +74 -77
- package/typings.d.ts +0 -54
- package/webpack.config.js +1 -24
- 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/dist/_helpers/_rollupPluginBabelHelpers.js +0 -648
- package/dist/_helpers/anchor.js +0 -31
- package/dist/_helpers/badge.js +0 -3
- package/dist/_helpers/button__classes.js +0 -34
- 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 -54
- package/dist/_helpers/grid.js +0 -3
- package/dist/_helpers/header.js +0 -3
- package/dist/_helpers/heading.js +0 -3
- package/dist/_helpers/icon__svg.js +0 -75
- package/dist/_helpers/input.js +0 -235
- package/dist/_helpers/island.js +0 -3
- package/dist/_helpers/link.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 -48
- package/dist/_helpers/sidebar.js +0 -123
- package/dist/_helpers/tab-link.js +0 -34
- package/dist/_helpers/table.js +0 -3
- package/dist/_helpers/theme.js +0 -95
- package/dist/_helpers/title.js +0 -103
- package/dist/alert/alert.d.ts +0 -113
- package/dist/alert/alert.js +0 -292
- package/dist/alert/container.d.ts +0 -15
- package/dist/alert/container.js +0 -52
- package/dist/alert-service/alert-service.d.ts +0 -36
- package/dist/alert-service/alert-service.js +0 -218
- package/dist/analytics/analytics.d.ts +0 -18
- package/dist/analytics/analytics.js +0 -31
- package/dist/analytics/analytics__custom-plugin.d.ts +0 -28
- package/dist/analytics/analytics__custom-plugin.js +0 -90
- package/dist/auth/auth.d.ts +0 -3
- package/dist/auth/auth.js +0 -130
- package/dist/auth/auth__core.d.ts +0 -236
- package/dist/auth/auth__core.js +0 -1650
- package/dist/auth/background-flow.d.ts +0 -31
- package/dist/auth/background-flow.js +0 -146
- package/dist/auth/down-notification.d.ts +0 -15
- package/dist/auth/down-notification.js +0 -155
- package/dist/auth/iframe-flow.d.ts +0 -20
- package/dist/auth/iframe-flow.js +0 -192
- 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 -152
- package/dist/auth/request-builder.d.ts +0 -47
- package/dist/auth/request-builder.js +0 -101
- package/dist/auth/response-parser.d.ts +0 -70
- package/dist/auth/response-parser.js +0 -137
- package/dist/auth/storage.d.ts +0 -112
- package/dist/auth/storage.js +0 -422
- package/dist/auth/token-validator.d.ts +0 -93
- package/dist/auth/token-validator.js +0 -267
- package/dist/auth/window-flow.d.ts +0 -26
- package/dist/auth/window-flow.js +0 -153
- package/dist/auth-dialog/auth-dialog.d.ts +0 -60
- package/dist/auth-dialog/auth-dialog.js +0 -219
- package/dist/auth-dialog-service/auth-dialog-service.d.ts +0 -6
- package/dist/auth-dialog-service/auth-dialog-service.js +0 -90
- 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 -180
- package/dist/avatar/fallback-avatar.d.ts +0 -17
- package/dist/avatar/fallback-avatar.js +0 -150
- package/dist/badge/badge.d.ts +0 -24
- package/dist/badge/badge.js +0 -59
- package/dist/button/button.d.ts +0 -67
- package/dist/button/button.js +0 -131
- package/dist/button/button__classes.d.ts +0 -2
- package/dist/button/button__classes.js +0 -2
- 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 -258
- package/dist/checkbox/checkbox.d.ts +0 -45
- package/dist/checkbox/checkbox.js +0 -130
- 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 -183
- package/dist/code/code.d.ts +0 -43
- package/dist/code/code.js +0 -192
- package/dist/confirm/confirm.d.ts +0 -48
- package/dist/confirm/confirm.js +0 -151
- package/dist/confirm-service/confirm-service.d.ts +0 -21
- package/dist/confirm-service/confirm-service.js +0 -139
- package/dist/content-layout/content-layout.d.ts +0 -26
- package/dist/content-layout/content-layout.js +0 -79
- 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 -36
- package/dist/data-list/data-list.d.ts +0 -85
- package/dist/data-list/data-list.js +0 -246
- package/dist/data-list/data-list.mock.d.ts +0 -16
- package/dist/data-list/data-list.mock.js +0 -192
- package/dist/data-list/item.d.ts +0 -50
- package/dist/data-list/item.js +0 -234
- package/dist/data-list/selection.d.ts +0 -16
- package/dist/data-list/selection.js +0 -146
- package/dist/data-list/title.d.ts +0 -26
- package/dist/data-list/title.js +0 -28
- package/dist/date-picker/consts.d.ts +0 -98
- package/dist/date-picker/consts.js +0 -46
- package/dist/date-picker/date-input.d.ts +0 -47
- package/dist/date-picker/date-input.js +0 -177
- package/dist/date-picker/date-picker.d.ts +0 -77
- package/dist/date-picker/date-picker.js +0 -402
- package/dist/date-picker/date-popup.d.ts +0 -55
- 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 -133
- 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 -110
- package/dist/date-picker/month-slider.d.ts +0 -29
- package/dist/date-picker/month-slider.js +0 -93
- 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 -133
- package/dist/date-picker/weekdays.d.ts +0 -13
- package/dist/date-picker/weekdays.js +0 -39
- package/dist/date-picker/years.d.ts +0 -25
- package/dist/date-picker/years.js +0 -134
- 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 -6
- package/dist/dropdown/anchor.d.ts +0 -11
- package/dist/dropdown/anchor.js +0 -24
- package/dist/dropdown/dropdown.d.ts +0 -87
- package/dist/dropdown/dropdown.js +0 -247
- package/dist/dropdown-menu/dropdown-menu.d.ts +0 -36
- package/dist/dropdown-menu/dropdown-menu.js +0 -194
- package/dist/editable-heading/editable-heading.d.ts +0 -32
- package/dist/editable-heading/editable-heading.js +0 -245
- package/dist/error-bubble/error-bubble.d.ts +0 -18
- package/dist/error-bubble/error-bubble.js +0 -86
- package/dist/error-message/error-message.d.ts +0 -27
- package/dist/error-message/error-message.js +0 -78
- 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 -150
- 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 -58
- package/dist/global/memoize.d.ts +0 -1
- package/dist/global/memoize.js +0 -23
- 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 -53
- package/dist/global/react-render-adapter.d.ts +0 -1
- package/dist/global/react-render-adapter.js +0 -6
- package/dist/global/rerender-hoc.d.ts +0 -10
- package/dist/global/rerender-hoc.js +0 -46
- 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 -40
- 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 -141
- 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 -89
- 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 -47
- package/dist/grid/row.d.ts +0 -40
- package/dist/grid/row.js +0 -70
- 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 -184
- package/dist/header/logo.d.ts +0 -14
- package/dist/header/logo.js +0 -51
- package/dist/header/profile.d.ts +0 -75
- package/dist/header/profile.js +0 -252
- package/dist/header/services-link.d.ts +0 -25
- package/dist/header/services-link.js +0 -13
- package/dist/header/services.d.ts +0 -33
- package/dist/header/services.js +0 -172
- package/dist/header/smart-profile.d.ts +0 -36
- package/dist/header/smart-profile.js +0 -298
- package/dist/header/smart-services.d.ts +0 -26
- package/dist/header/smart-services.js +0 -189
- package/dist/header/tray-icon.d.ts +0 -32
- package/dist/header/tray-icon.js +0 -57
- 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 -69
- package/dist/http/http.d.ts +0 -61
- package/dist/http/http.js +0 -385
- package/dist/http/http.mock.d.ts +0 -20
- package/dist/http/http.mock.js +0 -112
- package/dist/hub-source/hub-source.d.ts +0 -44
- package/dist/hub-source/hub-source.js +0 -215
- package/dist/hub-source/hub-source__user.d.ts +0 -4
- package/dist/hub-source/hub-source__user.js +0 -59
- package/dist/hub-source/hub-source__users-groups.d.ts +0 -24
- package/dist/hub-source/hub-source__users-groups.js +0 -84
- package/dist/i18n/i18n-context.d.ts +0 -13
- package/dist/i18n/i18n-context.js +0 -27
- package/dist/i18n/i18n.d.ts +0 -59
- package/dist/i18n/i18n.js +0 -139
- package/dist/icon/icon.d.ts +0 -43
- package/dist/icon/icon.js +0 -109
- 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 -14
- package/dist/icon/index.d.ts +0 -2
- package/dist/icon/index.js +0 -17
- package/dist/input/input.d.ts +0 -77
- package/dist/input/input.js +0 -35
- 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 -151
- package/dist/island/header.d.ts +0 -8
- package/dist/island/header.js +0 -99
- package/dist/island/island.d.ts +0 -78
- package/dist/island/island.js +0 -60
- 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 -138
- package/dist/link/link.js +0 -86
- package/dist/list/consts.d.ts +0 -77
- package/dist/list/consts.js +0 -27
- package/dist/list/list.d.ts +0 -206
- package/dist/list/list.js +0 -795
- package/dist/list/list__custom.d.ts +0 -6
- package/dist/list/list__custom.js +0 -92
- 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 -234
- package/dist/list/list__link.d.ts +0 -9
- package/dist/list/list__link.js +0 -76
- package/dist/list/list__separator.d.ts +0 -5
- package/dist/list/list__separator.js +0 -39
- package/dist/list/list__title.d.ts +0 -5
- package/dist/list/list__title.js +0 -48
- package/dist/list/list__users-groups-source.d.ts +0 -27
- package/dist/list/list__users-groups-source.js +0 -190
- package/dist/loader/loader.d.ts +0 -28
- package/dist/loader/loader.js +0 -91
- package/dist/loader/loader__core.d.ts +0 -75
- package/dist/loader/loader__core.js +0 -313
- 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 -62
- package/dist/login-dialog/login-dialog.d.ts +0 -47
- package/dist/login-dialog/login-dialog.js +0 -212
- package/dist/login-dialog/service.d.ts +0 -2
- package/dist/login-dialog/service.js +0 -94
- package/dist/markdown/markdown.d.ts +0 -12
- package/dist/markdown/markdown.js +0 -43
- package/dist/message/message.d.ts +0 -55
- package/dist/message/message.js +0 -265
- package/dist/old-browsers-message/old-browsers-message.d.ts +0 -2
- package/dist/old-browsers-message/old-browsers-message.js +0 -92
- package/dist/old-browsers-message/old-browsers-message__stop.d.ts +0 -1
- package/dist/old-browsers-message/old-browsers-message__stop.js +0 -11
- package/dist/old-browsers-message/white-list.d.ts +0 -2
- package/dist/old-browsers-message/white-list.js +0 -37
- package/dist/pager/pager.d.ts +0 -78
- package/dist/pager/pager.js +0 -385
- 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 -220
- 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 -419
- 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 -270
- package/dist/popup-menu/popup-menu.d.ts +0 -80
- package/dist/popup-menu/popup-menu.js +0 -136
- package/dist/progress-bar/progress-bar.d.ts +0 -58
- package/dist/progress-bar/progress-bar.js +0 -113
- package/dist/query-assist/query-assist.d.ts +0 -306
- package/dist/query-assist/query-assist.js +0 -1092
- package/dist/query-assist/query-assist__suggestions.d.ts +0 -29
- package/dist/query-assist/query-assist__suggestions.js +0 -70
- 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 -276
- package/dist/select/select.js +0 -1285
- package/dist/select/select__filter.d.ts +0 -19
- package/dist/select/select__filter.js +0 -80
- package/dist/select/select__popup.d.ts +0 -166
- package/dist/select/select__popup.js +0 -626
- package/dist/shortcuts/core.d.ts +0 -74
- package/dist/shortcuts/core.js +0 -247
- 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 -59
- package/dist/shortcuts/shortcuts.d.ts +0 -28
- package/dist/shortcuts/shortcuts.js +0 -90
- package/dist/storage/storage.d.ts +0 -18
- package/dist/storage/storage.js +0 -89
- package/dist/storage/storage__fallback.d.ts +0 -79
- package/dist/storage/storage__fallback.js +0 -251
- package/dist/storage/storage__local.d.ts +0 -38
- package/dist/storage/storage__local.js +0 -215
- package/dist/style.css +0 -1
- package/dist/tab-trap/tab-trap.d.ts +0 -43
- package/dist/tab-trap/tab-trap.js +0 -179
- 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 -109
- package/dist/table/header.d.ts +0 -56
- package/dist/table/header.js +0 -151
- package/dist/table/multitable.d.ts +0 -25
- package/dist/table/multitable.js +0 -139
- package/dist/table/row-with-focus-sensor.d.ts +0 -18
- package/dist/table/row-with-focus-sensor.js +0 -115
- package/dist/table/row.d.ts +0 -59
- package/dist/table/row.js +0 -297
- 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 -204
- package/dist/table/selection.d.ts +0 -47
- package/dist/table/selection.js +0 -256
- package/dist/table/smart-table.d.ts +0 -64
- package/dist/table/smart-table.js +0 -145
- package/dist/table/table.d.ts +0 -159
- package/dist/table/table.js +0 -459
- package/dist/tabs/collapsible-more.d.ts +0 -29
- package/dist/tabs/collapsible-more.js +0 -217
- package/dist/tabs/collapsible-tab.d.ts +0 -16
- package/dist/tabs/collapsible-tab.js +0 -88
- package/dist/tabs/collapsible-tabs.d.ts +0 -43
- package/dist/tabs/collapsible-tabs.js +0 -349
- 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 -184
- package/dist/tabs/smart-tabs.d.ts +0 -20
- package/dist/tabs/smart-tabs.js +0 -136
- package/dist/tabs/tab-link.d.ts +0 -18
- package/dist/tabs/tab-link.js +0 -13
- 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 -94
- package/dist/tag/tag.d.ts +0 -64
- package/dist/tag/tag.js +0 -213
- package/dist/tags-input/tags-input.d.ts +0 -138
- package/dist/tags-input/tags-input.js +0 -529
- package/dist/tags-list/tags-list.d.ts +0 -46
- package/dist/tags-list/tags-list.js +0 -102
- package/dist/text/text.d.ts +0 -23
- package/dist/text/text.js +0 -57
- 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 -227
- package/dist/user-agreement/service.d.ts +0 -69
- package/dist/user-agreement/service.js +0 -484
- 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 -60
- package/dist/user-agreement/user-agreement.js +0 -170
- package/dist/user-card/card.d.ts +0 -70
- package/dist/user-card/card.js +0 -76
- package/dist/user-card/smart-user-card-tooltip.d.ts +0 -20
- package/dist/user-card/smart-user-card-tooltip.js +0 -168
- package/dist/user-card/tooltip.d.ts +0 -36
- package/dist/user-card/tooltip.js +0 -140
- package/dist/user-card/user-card.d.ts +0 -11
- package/dist/user-card/user-card.js +0 -81
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { j as _slicedToArray, l as _toConsumableArray } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.array.map.js';
|
|
3
|
-
import 'core-js/modules/es.array.filter.js';
|
|
4
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
5
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
6
|
-
import 'core-js/modules/es.string.split.js';
|
|
7
|
-
import 'core-js/modules/es.array.slice.js';
|
|
8
|
-
import 'core-js/modules/es.array.concat.js';
|
|
9
|
-
import React, { useMemo } from 'react';
|
|
10
|
-
import PropTypes from 'prop-types';
|
|
11
|
-
import getUID from '../global/get-uid.js';
|
|
12
|
-
import 'core-js/modules/es.regexp.to-string.js';
|
|
13
|
-
|
|
14
|
-
var colorPairs = [['#60A800', '#D5CA00'], ['#21D370', '#03E9E1'], ['#3BA1FF', '#36E97D'], ['#00C243', '#00FFFF'], ['#4BE098', '#627FFF'], ['#168BFA', '#26F7C7'], ['#9D4CFF', '#39D3C3'], ['#0A81F6', '#0ACFF6'], ['#765AF8', '#5A91F8'], ['#9E54FF', '#0ACFF6'], ['#B345F1', '#669DFF'], ['#765AF8', '#C059EE'], ['#9039D0', '#C239D0'], ['#9F2AFF', '#FD56FD'], ['#AB3AF2', '#E40568'], ['#9F2AFF', '#E9A80B'], ['#D50F6B', '#E73AE8'], ['#ED5502', '#E73AE8'], ['#ED358C', '#DBED18'], ['#ED358C', '#F9902E'], ['#FF7500', '#FFCA00']];
|
|
15
|
-
var Sizes = {
|
|
16
|
-
18: {
|
|
17
|
-
radius: 2,
|
|
18
|
-
text: {
|
|
19
|
-
x: 9,
|
|
20
|
-
y: 13
|
|
21
|
-
},
|
|
22
|
-
fontSize: '11px',
|
|
23
|
-
textAnchor: 'middle'
|
|
24
|
-
},
|
|
25
|
-
24: {
|
|
26
|
-
radius: 3,
|
|
27
|
-
text: {
|
|
28
|
-
x: 2,
|
|
29
|
-
y: 13
|
|
30
|
-
},
|
|
31
|
-
fontSize: '11px',
|
|
32
|
-
underscore: {
|
|
33
|
-
x: 3,
|
|
34
|
-
y: 17
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
32: {
|
|
38
|
-
radius: 3,
|
|
39
|
-
text: {
|
|
40
|
-
x: 3,
|
|
41
|
-
y: 17
|
|
42
|
-
},
|
|
43
|
-
fontSize: '13px',
|
|
44
|
-
letterSpacing: 1,
|
|
45
|
-
underscore: {
|
|
46
|
-
x: 4,
|
|
47
|
-
y: 22
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
40: {
|
|
51
|
-
radius: 3,
|
|
52
|
-
text: {
|
|
53
|
-
x: 5,
|
|
54
|
-
y: 19
|
|
55
|
-
},
|
|
56
|
-
fontSize: '15px',
|
|
57
|
-
letterSpacing: 1,
|
|
58
|
-
underscore: {
|
|
59
|
-
x: 6,
|
|
60
|
-
y: 28
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
var sizeKeys = Object.keys(Sizes).map(Number);
|
|
65
|
-
function extractLetters(name) {
|
|
66
|
-
var names = name.split(/[\s._]+/).filter(Boolean).map(function (word) {
|
|
67
|
-
return Array.from(word);
|
|
68
|
-
});
|
|
69
|
-
if (names.length >= 2) {
|
|
70
|
-
return names[0][0].toUpperCase() + names[1][0].toUpperCase();
|
|
71
|
-
} else if (names.length === 1) {
|
|
72
|
-
if (names[0].length >= 2) {
|
|
73
|
-
return names[0].slice(0, 2).join('').toUpperCase();
|
|
74
|
-
} else {
|
|
75
|
-
return "".concat(names[0][0].toUpperCase(), "X");
|
|
76
|
-
}
|
|
77
|
-
} else {
|
|
78
|
-
return 'XX';
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
// https://gist.github.com/hyamamoto/fd435505d29ebfa3d9716fd2be8d42f0#gistcomment-2775538
|
|
82
|
-
var BASE = 32;
|
|
83
|
-
function hashCode(s) {
|
|
84
|
-
var h = 0;
|
|
85
|
-
for (var i = 0; i < s.length; i++) {
|
|
86
|
-
h = Math.imul(BASE - 1, h) + s.charCodeAt(i) | 0;
|
|
87
|
-
}
|
|
88
|
-
return h;
|
|
89
|
-
}
|
|
90
|
-
function FallbackAvatar(_ref) {
|
|
91
|
-
var username = _ref.username,
|
|
92
|
-
size = _ref.size,
|
|
93
|
-
round = _ref.round;
|
|
94
|
-
var hash = Math.abs(hashCode(username.toLowerCase()));
|
|
95
|
-
var _colorPairs = _slicedToArray(colorPairs[hash % colorPairs.length], 2),
|
|
96
|
-
fromColor = _colorPairs[0],
|
|
97
|
-
toColor = _colorPairs[1];
|
|
98
|
-
var possibleSizeKeys = sizeKeys.filter(function (key) {
|
|
99
|
-
return key >= size;
|
|
100
|
-
});
|
|
101
|
-
var sizeKey = possibleSizeKeys.length > 0 ? Math.min.apply(Math, _toConsumableArray(possibleSizeKeys)) : Math.max.apply(Math, _toConsumableArray(sizeKeys));
|
|
102
|
-
var sizes = Sizes[sizeKey];
|
|
103
|
-
var radius = round ? '50%' : sizes.radius;
|
|
104
|
-
var gradientId = useMemo(function () {
|
|
105
|
-
return getUID('gradient-');
|
|
106
|
-
}, []);
|
|
107
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
108
|
-
viewBox: "0 0 ".concat(sizeKey, " ").concat(sizeKey),
|
|
109
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
110
|
-
}, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
|
111
|
-
id: gradientId,
|
|
112
|
-
x1: "0",
|
|
113
|
-
y1: "0",
|
|
114
|
-
x2: "0",
|
|
115
|
-
y2: "1"
|
|
116
|
-
}, /*#__PURE__*/React.createElement("stop", {
|
|
117
|
-
stopColor: fromColor,
|
|
118
|
-
offset: "0"
|
|
119
|
-
}), /*#__PURE__*/React.createElement("stop", {
|
|
120
|
-
stopColor: toColor,
|
|
121
|
-
offset: "1"
|
|
122
|
-
}))), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("rect", {
|
|
123
|
-
fill: "url(#".concat(gradientId, ")"),
|
|
124
|
-
x: "0",
|
|
125
|
-
y: "0",
|
|
126
|
-
width: sizeKey,
|
|
127
|
-
height: sizeKey,
|
|
128
|
-
rx: radius,
|
|
129
|
-
ry: radius
|
|
130
|
-
}), /*#__PURE__*/React.createElement("text", {
|
|
131
|
-
x: sizes.text.x,
|
|
132
|
-
y: sizes.text.y,
|
|
133
|
-
fontFamily: "Arial, Helvetica, sans-serif",
|
|
134
|
-
fontSize: sizes.fontSize,
|
|
135
|
-
letterSpacing: sizes.letterSpacing,
|
|
136
|
-
fill: "#FFFFFF",
|
|
137
|
-
textAnchor: sizes.textAnchor,
|
|
138
|
-
cursor: "default"
|
|
139
|
-
}, /*#__PURE__*/React.createElement("tspan", null, extractLetters(username)), sizes.underscore && /*#__PURE__*/React.createElement("tspan", {
|
|
140
|
-
x: sizes.underscore.x,
|
|
141
|
-
y: sizes.underscore.y
|
|
142
|
-
}, '_')), /*#__PURE__*/React.createElement("title", null, username)));
|
|
143
|
-
}
|
|
144
|
-
FallbackAvatar.propTypes = {
|
|
145
|
-
username: PropTypes.string.isRequired,
|
|
146
|
-
size: PropTypes.number.isRequired,
|
|
147
|
-
round: PropTypes.bool
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
export { FallbackAvatar as default };
|
package/dist/badge/badge.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React, { PureComponent, HTMLAttributes } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
export interface BadgeProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
-
gray?: boolean | null | undefined;
|
|
5
|
-
valid?: boolean | null | undefined;
|
|
6
|
-
invalid?: boolean | null | undefined;
|
|
7
|
-
disabled?: boolean | null | undefined;
|
|
8
|
-
'data-test'?: string | null | undefined;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @name Badge
|
|
12
|
-
*/
|
|
13
|
-
export default class Badge extends PureComponent<BadgeProps> {
|
|
14
|
-
static propTypes: {
|
|
15
|
-
gray: PropTypes.Requireable<boolean>;
|
|
16
|
-
valid: PropTypes.Requireable<boolean>;
|
|
17
|
-
invalid: PropTypes.Requireable<boolean>;
|
|
18
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
19
|
-
className: PropTypes.Requireable<string>;
|
|
20
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
21
|
-
'data-test': PropTypes.Requireable<string>;
|
|
22
|
-
};
|
|
23
|
-
render(): React.JSX.Element;
|
|
24
|
-
}
|
package/dist/badge/badge.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _createClass, e as _objectWithoutProperties, f as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import React, { PureComponent } from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import classNames from 'classnames';
|
|
5
|
-
import joinDataTestAttributes from '../global/data-tests.js';
|
|
6
|
-
import { m as modules_6c9187df } from '../_helpers/badge.js';
|
|
7
|
-
import 'core-js/modules/es.array.reduce.js';
|
|
8
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
9
|
-
import 'core-js/modules/es.object.entries.js';
|
|
10
|
-
import 'core-js/modules/es.array.concat.js';
|
|
11
|
-
|
|
12
|
-
var _excluded = ["gray", "valid", "invalid", "disabled", "className", "children", "data-test"];
|
|
13
|
-
/**
|
|
14
|
-
* @name Badge
|
|
15
|
-
*/
|
|
16
|
-
var Badge = /*#__PURE__*/function (_PureComponent) {
|
|
17
|
-
_inherits(Badge, _PureComponent);
|
|
18
|
-
var _super = _createSuper(Badge);
|
|
19
|
-
function Badge() {
|
|
20
|
-
_classCallCheck(this, Badge);
|
|
21
|
-
return _super.apply(this, arguments);
|
|
22
|
-
}
|
|
23
|
-
_createClass(Badge, [{
|
|
24
|
-
key: "render",
|
|
25
|
-
value: function render() {
|
|
26
|
-
var _this$props = this.props,
|
|
27
|
-
gray = _this$props.gray,
|
|
28
|
-
valid = _this$props.valid,
|
|
29
|
-
invalid = _this$props.invalid,
|
|
30
|
-
disabled = _this$props.disabled,
|
|
31
|
-
className = _this$props.className,
|
|
32
|
-
children = _this$props.children,
|
|
33
|
-
dataTest = _this$props['data-test'],
|
|
34
|
-
props = _objectWithoutProperties(_this$props, _excluded);
|
|
35
|
-
var classes = classNames(modules_6c9187df.badge, className, {
|
|
36
|
-
[modules_6c9187df.gray]: gray,
|
|
37
|
-
[modules_6c9187df.valid]: valid,
|
|
38
|
-
[modules_6c9187df.invalid]: invalid,
|
|
39
|
-
[modules_6c9187df.disabled]: disabled
|
|
40
|
-
});
|
|
41
|
-
return /*#__PURE__*/React.createElement("span", _extends({}, props, {
|
|
42
|
-
"data-test": joinDataTestAttributes('ring-badge', dataTest),
|
|
43
|
-
className: classes
|
|
44
|
-
}), children);
|
|
45
|
-
}
|
|
46
|
-
}]);
|
|
47
|
-
return Badge;
|
|
48
|
-
}(PureComponent);
|
|
49
|
-
_defineProperty(Badge, "propTypes", {
|
|
50
|
-
gray: PropTypes.bool,
|
|
51
|
-
valid: PropTypes.bool,
|
|
52
|
-
invalid: PropTypes.bool,
|
|
53
|
-
disabled: PropTypes.bool,
|
|
54
|
-
className: PropTypes.string,
|
|
55
|
-
children: PropTypes.node,
|
|
56
|
-
'data-test': PropTypes.string
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
export { Badge as default };
|
package/dist/button/button.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import React, { PureComponent, ButtonHTMLAttributes } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { IconProps, IconType, Size } from '../icon/icon';
|
|
4
|
-
import { ClickableLinkProps } from '../link/clickableLink';
|
|
5
|
-
import { ControlsHeight, ControlsHeightContext } from '../global/controls-height';
|
|
6
|
-
export interface ButtonBaseProps {
|
|
7
|
-
height?: ControlsHeight | undefined;
|
|
8
|
-
active?: boolean | null | undefined;
|
|
9
|
-
danger?: boolean | null | undefined;
|
|
10
|
-
delayed?: boolean | null | undefined;
|
|
11
|
-
loader?: boolean | null | undefined;
|
|
12
|
-
primary?: boolean | null | undefined;
|
|
13
|
-
short?: boolean | null | undefined;
|
|
14
|
-
text?: boolean | null | undefined;
|
|
15
|
-
inline?: boolean | null | undefined;
|
|
16
|
-
dropdown?: boolean | null | undefined;
|
|
17
|
-
disabled?: boolean | undefined;
|
|
18
|
-
icon?: string | IconType | null | undefined;
|
|
19
|
-
iconSize?: IconProps['size'];
|
|
20
|
-
iconClassName?: string | null | undefined;
|
|
21
|
-
iconSuppressSizeWarning?: boolean | null | undefined;
|
|
22
|
-
}
|
|
23
|
-
export interface ButtonButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, ButtonBaseProps {
|
|
24
|
-
href?: undefined;
|
|
25
|
-
}
|
|
26
|
-
export interface ButtonLinkProps extends ClickableLinkProps, ButtonBaseProps {
|
|
27
|
-
autoFocus?: never;
|
|
28
|
-
href: string;
|
|
29
|
-
}
|
|
30
|
-
export type ButtonProps = ButtonButtonProps | ButtonLinkProps;
|
|
31
|
-
/**
|
|
32
|
-
* @name Button
|
|
33
|
-
*/
|
|
34
|
-
/**
|
|
35
|
-
* A component for displaying variously styled buttons.
|
|
36
|
-
*/
|
|
37
|
-
export declare class Button extends PureComponent<ButtonProps> {
|
|
38
|
-
static propTypes: {
|
|
39
|
-
active: PropTypes.Requireable<boolean>;
|
|
40
|
-
danger: PropTypes.Requireable<boolean>;
|
|
41
|
-
delayed: PropTypes.Requireable<boolean>;
|
|
42
|
-
loader: PropTypes.Requireable<boolean>;
|
|
43
|
-
primary: PropTypes.Requireable<boolean>;
|
|
44
|
-
short: PropTypes.Requireable<boolean>;
|
|
45
|
-
text: PropTypes.Requireable<boolean>;
|
|
46
|
-
inline: PropTypes.Requireable<boolean>;
|
|
47
|
-
dropdown: PropTypes.Requireable<boolean>;
|
|
48
|
-
href: PropTypes.Requireable<string>;
|
|
49
|
-
target: PropTypes.Requireable<string>;
|
|
50
|
-
icon: PropTypes.Requireable<NonNullable<PropTypes.ReactComponentLike | null | undefined>>;
|
|
51
|
-
iconSize: PropTypes.Requireable<number>;
|
|
52
|
-
iconClassName: PropTypes.Requireable<string>;
|
|
53
|
-
iconSuppressSizeWarning: PropTypes.Requireable<boolean>;
|
|
54
|
-
className: PropTypes.Requireable<string>;
|
|
55
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
56
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
57
|
-
};
|
|
58
|
-
static IconSize: typeof Size;
|
|
59
|
-
static contextType: React.Context<ControlsHeight>;
|
|
60
|
-
context: React.ContextType<typeof ControlsHeightContext>;
|
|
61
|
-
buttonRef: React.RefObject<HTMLButtonElement>;
|
|
62
|
-
render(): React.JSX.Element;
|
|
63
|
-
}
|
|
64
|
-
export { Size as IconSize };
|
|
65
|
-
export type ContainerProps<T extends ButtonProps> = JSX.LibraryManagedAttributes<typeof Button, T>;
|
|
66
|
-
export type ButtonAttrs = ContainerProps<ButtonButtonProps> | ContainerProps<ButtonLinkProps>;
|
|
67
|
-
export default Button;
|
package/dist/button/button.js
DELETED
|
@@ -1,131 +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 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.array.concat.js';
|
|
3
|
-
import React, { createRef, PureComponent } from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import classNames from 'classnames';
|
|
6
|
-
import chevronDown from '@jetbrains/icons/chevron-10px';
|
|
7
|
-
import Icon from '../icon/icon.js';
|
|
8
|
-
import ClickableLink from '../link/clickableLink.js';
|
|
9
|
-
import { ControlsHeightContext } from '../global/controls-height.js';
|
|
10
|
-
import { g as getButtonClasses, m as modules_e81895c9 } from '../_helpers/button__classes.js';
|
|
11
|
-
import { Size } from '../icon/icon__constants.js';
|
|
12
|
-
import 'util-deprecate';
|
|
13
|
-
import '../_helpers/icon__svg.js';
|
|
14
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
15
|
-
import 'core-js/modules/es.string.replace.js';
|
|
16
|
-
import 'core-js/modules/es.string.starts-with.js';
|
|
17
|
-
import '../global/memoize.js';
|
|
18
|
-
import 'core-js/modules/es.array.iterator.js';
|
|
19
|
-
import 'core-js/modules/es.map.js';
|
|
20
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
21
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
22
|
-
import 'core-js/modules/es.weak-map.js';
|
|
23
|
-
|
|
24
|
-
var _excluded = ["active", "danger", "delayed", "loader", "primary", "short", "text", "inline", "dropdown", "height", "icon", "iconSize", "iconClassName", "iconSuppressSizeWarning", "className", "children"];
|
|
25
|
-
/**
|
|
26
|
-
* @name Button
|
|
27
|
-
*/
|
|
28
|
-
/**
|
|
29
|
-
* A component for displaying variously styled buttons.
|
|
30
|
-
*/
|
|
31
|
-
var Button = /*#__PURE__*/function (_PureComponent) {
|
|
32
|
-
_inherits(Button, _PureComponent);
|
|
33
|
-
var _super = _createSuper(Button);
|
|
34
|
-
function Button() {
|
|
35
|
-
var _this;
|
|
36
|
-
_classCallCheck(this, Button);
|
|
37
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
38
|
-
args[_key] = arguments[_key];
|
|
39
|
-
}
|
|
40
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
41
|
-
_defineProperty(_assertThisInitialized(_this), "buttonRef", /*#__PURE__*/createRef());
|
|
42
|
-
return _this;
|
|
43
|
-
}
|
|
44
|
-
_createClass(Button, [{
|
|
45
|
-
key: "render",
|
|
46
|
-
value: function render() {
|
|
47
|
-
var _this$props = this.props,
|
|
48
|
-
active = _this$props.active,
|
|
49
|
-
danger = _this$props.danger,
|
|
50
|
-
delayed = _this$props.delayed,
|
|
51
|
-
loader = _this$props.loader,
|
|
52
|
-
primary = _this$props.primary,
|
|
53
|
-
short = _this$props.short,
|
|
54
|
-
text = _this$props.text,
|
|
55
|
-
inline = _this$props.inline,
|
|
56
|
-
dropdown = _this$props.dropdown,
|
|
57
|
-
_this$props$height = _this$props.height,
|
|
58
|
-
height = _this$props$height === void 0 ? this.context : _this$props$height,
|
|
59
|
-
icon = _this$props.icon,
|
|
60
|
-
iconSize = _this$props.iconSize,
|
|
61
|
-
iconClassName = _this$props.iconClassName,
|
|
62
|
-
iconSuppressSizeWarning = _this$props.iconSuppressSizeWarning,
|
|
63
|
-
className = _this$props.className,
|
|
64
|
-
children = _this$props.children,
|
|
65
|
-
props = _objectWithoutProperties(_this$props, _excluded);
|
|
66
|
-
var classes = getButtonClasses({
|
|
67
|
-
className,
|
|
68
|
-
active,
|
|
69
|
-
danger,
|
|
70
|
-
delayed,
|
|
71
|
-
icon,
|
|
72
|
-
loader,
|
|
73
|
-
primary,
|
|
74
|
-
short,
|
|
75
|
-
text,
|
|
76
|
-
inline,
|
|
77
|
-
height
|
|
78
|
-
});
|
|
79
|
-
var content = /*#__PURE__*/React.createElement("span", {
|
|
80
|
-
className: modules_e81895c9.content
|
|
81
|
-
}, icon && /*#__PURE__*/React.createElement("span", {
|
|
82
|
-
className: classNames(modules_e81895c9.icon, iconClassName)
|
|
83
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
84
|
-
glyph: icon,
|
|
85
|
-
size: iconSize,
|
|
86
|
-
loading: loader,
|
|
87
|
-
suppressSizeWarning: iconSuppressSizeWarning
|
|
88
|
-
})), children && /*#__PURE__*/React.createElement("span", null, children), dropdown && /*#__PURE__*/React.createElement(Icon, {
|
|
89
|
-
glyph: chevronDown,
|
|
90
|
-
className: modules_e81895c9.dropdownIcon
|
|
91
|
-
}));
|
|
92
|
-
var commonProps = _objectSpread2(_objectSpread2({
|
|
93
|
-
tabIndex: loader ? -1 : 0
|
|
94
|
-
}, props), {}, {
|
|
95
|
-
className: classes,
|
|
96
|
-
children: /*#__PURE__*/React.createElement(React.Fragment, null, loader && !text && !icon && /*#__PURE__*/React.createElement("div", {
|
|
97
|
-
className: modules_e81895c9.loaderBackground
|
|
98
|
-
}), content)
|
|
99
|
-
});
|
|
100
|
-
return commonProps.href != null ? /*#__PURE__*/React.createElement(ClickableLink, commonProps) : /*#__PURE__*/React.createElement("button", _extends({
|
|
101
|
-
ref: this.buttonRef,
|
|
102
|
-
type: "button"
|
|
103
|
-
}, commonProps));
|
|
104
|
-
}
|
|
105
|
-
}]);
|
|
106
|
-
return Button;
|
|
107
|
-
}(PureComponent);
|
|
108
|
-
_defineProperty(Button, "propTypes", {
|
|
109
|
-
active: PropTypes.bool,
|
|
110
|
-
danger: PropTypes.bool,
|
|
111
|
-
delayed: PropTypes.bool,
|
|
112
|
-
loader: PropTypes.bool,
|
|
113
|
-
primary: PropTypes.bool,
|
|
114
|
-
short: PropTypes.bool,
|
|
115
|
-
text: PropTypes.bool,
|
|
116
|
-
inline: PropTypes.bool,
|
|
117
|
-
dropdown: PropTypes.bool,
|
|
118
|
-
href: PropTypes.string,
|
|
119
|
-
target: PropTypes.string,
|
|
120
|
-
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]),
|
|
121
|
-
iconSize: PropTypes.number,
|
|
122
|
-
iconClassName: PropTypes.string,
|
|
123
|
-
iconSuppressSizeWarning: PropTypes.bool,
|
|
124
|
-
className: PropTypes.string,
|
|
125
|
-
children: PropTypes.node,
|
|
126
|
-
onClick: PropTypes.func
|
|
127
|
-
});
|
|
128
|
-
_defineProperty(Button, "IconSize", Size);
|
|
129
|
-
_defineProperty(Button, "contextType", ControlsHeightContext);
|
|
130
|
-
|
|
131
|
-
export { Button, Size as IconSize, Button as default };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React, { PureComponent, HTMLAttributes } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import Caption from './caption';
|
|
4
|
-
export interface ButtonGroupProps extends HTMLAttributes<HTMLElement> {
|
|
5
|
-
split?: boolean | null | undefined;
|
|
6
|
-
'data-test'?: string | null | undefined;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @name Button Group
|
|
10
|
-
*/
|
|
11
|
-
export default class ButtonGroup extends PureComponent<ButtonGroupProps> {
|
|
12
|
-
static propTypes: {
|
|
13
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
14
|
-
className: PropTypes.Requireable<string>;
|
|
15
|
-
};
|
|
16
|
-
render(): React.JSX.Element;
|
|
17
|
-
}
|
|
18
|
-
export { Caption };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _createClass, e as _objectWithoutProperties, f as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
3
|
-
import 'core-js/modules/es.string.split.js';
|
|
4
|
-
import React, { PureComponent } from 'react';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
import classNames from 'classnames';
|
|
7
|
-
import joinDataTestAttributes from '../global/data-tests.js';
|
|
8
|
-
import { m as modules_1068e447 } from '../_helpers/caption.js';
|
|
9
|
-
export { C as Caption } from '../_helpers/caption.js';
|
|
10
|
-
import 'core-js/modules/es.array.reduce.js';
|
|
11
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
12
|
-
import 'core-js/modules/es.object.entries.js';
|
|
13
|
-
import 'core-js/modules/es.array.concat.js';
|
|
14
|
-
|
|
15
|
-
var _excluded = ["className", "split", "data-test"];
|
|
16
|
-
/**
|
|
17
|
-
* @name Button Group
|
|
18
|
-
*/
|
|
19
|
-
var ButtonGroup = /*#__PURE__*/function (_PureComponent) {
|
|
20
|
-
_inherits(ButtonGroup, _PureComponent);
|
|
21
|
-
var _super = _createSuper(ButtonGroup);
|
|
22
|
-
function ButtonGroup() {
|
|
23
|
-
_classCallCheck(this, ButtonGroup);
|
|
24
|
-
return _super.apply(this, arguments);
|
|
25
|
-
}
|
|
26
|
-
_createClass(ButtonGroup, [{
|
|
27
|
-
key: "render",
|
|
28
|
-
value: function render() {
|
|
29
|
-
var _this$props = this.props,
|
|
30
|
-
className = _this$props.className,
|
|
31
|
-
split = _this$props.split,
|
|
32
|
-
dataTest = _this$props['data-test'],
|
|
33
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
34
|
-
var classes = classNames(split ? modules_1068e447.split : modules_1068e447.buttonGroup, className);
|
|
35
|
-
return /*#__PURE__*/React.createElement("div", _extends({}, restProps, {
|
|
36
|
-
"data-test": joinDataTestAttributes('ring-button-group', dataTest),
|
|
37
|
-
className: classes
|
|
38
|
-
}));
|
|
39
|
-
}
|
|
40
|
-
}]);
|
|
41
|
-
return ButtonGroup;
|
|
42
|
-
}(PureComponent);
|
|
43
|
-
_defineProperty(ButtonGroup, "propTypes", {
|
|
44
|
-
children: PropTypes.node,
|
|
45
|
-
className: PropTypes.string
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
export { ButtonGroup as default };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { PureComponent, HTMLAttributes } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
export default class Caption extends PureComponent<HTMLAttributes<HTMLElement>> {
|
|
4
|
-
static propTypes: {
|
|
5
|
-
className: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
6
|
-
};
|
|
7
|
-
render(): React.JSX.Element;
|
|
8
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { PureComponent, HTMLAttributes } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
export interface ButtonSetProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
-
'data-test'?: string | null | undefined;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* @name Button Set
|
|
8
|
-
*/
|
|
9
|
-
export default class ButtonSet extends PureComponent<ButtonSetProps> {
|
|
10
|
-
static propTypes: {
|
|
11
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
12
|
-
className: PropTypes.Requireable<string>;
|
|
13
|
-
'data-test': PropTypes.Requireable<string>;
|
|
14
|
-
};
|
|
15
|
-
render(): React.JSX.Element;
|
|
16
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _createClass, e as _objectWithoutProperties, f as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import React, { PureComponent } from 'react';
|
|
3
|
-
import classNames from 'classnames';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import joinDataTestAttributes from '../global/data-tests.js';
|
|
6
|
-
import 'core-js/modules/es.array.reduce.js';
|
|
7
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
8
|
-
import 'core-js/modules/es.object.entries.js';
|
|
9
|
-
import 'core-js/modules/es.array.concat.js';
|
|
10
|
-
|
|
11
|
-
var modules_fd849143 = {"unit":"i__const_unit_0","button":"button_rui_0b90","light":"light_rui_2ac4","buttonSet":"buttonSet_rui_b2a9"};
|
|
12
|
-
|
|
13
|
-
var _excluded = ["className", "data-test", "children"];
|
|
14
|
-
/**
|
|
15
|
-
* @name Button Set
|
|
16
|
-
*/
|
|
17
|
-
var ButtonSet = /*#__PURE__*/function (_PureComponent) {
|
|
18
|
-
_inherits(ButtonSet, _PureComponent);
|
|
19
|
-
var _super = _createSuper(ButtonSet);
|
|
20
|
-
function ButtonSet() {
|
|
21
|
-
_classCallCheck(this, ButtonSet);
|
|
22
|
-
return _super.apply(this, arguments);
|
|
23
|
-
}
|
|
24
|
-
_createClass(ButtonSet, [{
|
|
25
|
-
key: "render",
|
|
26
|
-
value: function render() {
|
|
27
|
-
var _this$props = this.props,
|
|
28
|
-
className = _this$props.className,
|
|
29
|
-
dataTest = _this$props['data-test'],
|
|
30
|
-
children = _this$props.children,
|
|
31
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
32
|
-
var classes = classNames(modules_fd849143.buttonSet, className);
|
|
33
|
-
return /*#__PURE__*/React.createElement("div", _extends({}, restProps, {
|
|
34
|
-
"data-test": joinDataTestAttributes('ring-button-set', dataTest),
|
|
35
|
-
className: classes
|
|
36
|
-
}), children);
|
|
37
|
-
}
|
|
38
|
-
}]);
|
|
39
|
-
return ButtonSet;
|
|
40
|
-
}(PureComponent);
|
|
41
|
-
_defineProperty(ButtonSet, "propTypes", {
|
|
42
|
-
children: PropTypes.node,
|
|
43
|
-
className: PropTypes.string,
|
|
44
|
-
'data-test': PropTypes.string
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
export { ButtonSet as default };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { PureComponent, HTMLAttributes } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
export interface ButtonToolbarProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
-
'data-test'?: string | null | undefined;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* @name Button Toolbar
|
|
8
|
-
*/
|
|
9
|
-
export default class ButtonToolbar extends PureComponent<ButtonToolbarProps> {
|
|
10
|
-
static propTypes: {
|
|
11
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
12
|
-
className: PropTypes.Requireable<string>;
|
|
13
|
-
'data-test': PropTypes.Requireable<string>;
|
|
14
|
-
};
|
|
15
|
-
render(): React.JSX.Element;
|
|
16
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _createClass, e as _objectWithoutProperties, f as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import React, { PureComponent } from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import classNames from 'classnames';
|
|
5
|
-
import joinDataTestAttributes from '../global/data-tests.js';
|
|
6
|
-
import 'core-js/modules/es.array.reduce.js';
|
|
7
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
8
|
-
import 'core-js/modules/es.object.entries.js';
|
|
9
|
-
import 'core-js/modules/es.array.concat.js';
|
|
10
|
-
|
|
11
|
-
var modules_34154ec0 = {"unit":"i__const_unit_0","button":"button_rui_0b90","light":"light_rui_2ac4","buttonToolbar":"buttonToolbar_rui_f4fc","buttonGroup":"buttonGroup_rui_f4fc","split":"split_rui_f4fc"};
|
|
12
|
-
|
|
13
|
-
var _excluded = ["className", "data-test"];
|
|
14
|
-
/**
|
|
15
|
-
* @name Button Toolbar
|
|
16
|
-
*/
|
|
17
|
-
var ButtonToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
18
|
-
_inherits(ButtonToolbar, _PureComponent);
|
|
19
|
-
var _super = _createSuper(ButtonToolbar);
|
|
20
|
-
function ButtonToolbar() {
|
|
21
|
-
_classCallCheck(this, ButtonToolbar);
|
|
22
|
-
return _super.apply(this, arguments);
|
|
23
|
-
}
|
|
24
|
-
_createClass(ButtonToolbar, [{
|
|
25
|
-
key: "render",
|
|
26
|
-
value: function render() {
|
|
27
|
-
var _this$props = this.props,
|
|
28
|
-
className = _this$props.className,
|
|
29
|
-
dataTest = _this$props['data-test'],
|
|
30
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
31
|
-
var classes = classNames(modules_34154ec0.buttonToolbar, className);
|
|
32
|
-
return /*#__PURE__*/React.createElement("div", _extends({}, restProps, {
|
|
33
|
-
"data-test": joinDataTestAttributes('ring-button-toolbar', dataTest),
|
|
34
|
-
className: classes
|
|
35
|
-
}));
|
|
36
|
-
}
|
|
37
|
-
}]);
|
|
38
|
-
return ButtonToolbar;
|
|
39
|
-
}(PureComponent);
|
|
40
|
-
_defineProperty(ButtonToolbar, "propTypes", {
|
|
41
|
-
children: PropTypes.node,
|
|
42
|
-
className: PropTypes.string,
|
|
43
|
-
'data-test': PropTypes.string
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
export { ButtonToolbar as default };
|