@jetbrains/ring-ui 5.0.0-beta.2 → 5.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +61 -0
- package/babel.config.js +1 -12
- package/components/alert/alert.css +5 -15
- package/components/alert/alert.d.ts +3 -0
- package/components/alert/{alert.jsx → alert.js} +8 -7
- package/components/alert/container.css +0 -2
- package/components/alert/{container.jsx → container.js} +0 -0
- package/components/alert-service/alert-service.examples.css +5 -3
- package/components/alert-service/{alert-service.jsx → alert-service.js} +1 -1
- package/components/analytics/analytics__ga-plugin.d.ts +1 -1
- package/components/analytics/analytics__ga-plugin.js +11 -3
- package/components/auth/auth__core.d.ts +3 -1
- package/components/auth/auth__core.js +47 -16
- package/components/auth/down-notification.css +1 -1
- package/components/auth/{down-notification.jsx → down-notification.js} +0 -0
- package/components/auth/{iframe-flow.jsx → iframe-flow.js} +0 -0
- package/components/auth-dialog/auth-dialog.d.ts +11 -0
- package/components/auth-dialog/{auth-dialog.jsx → auth-dialog.js} +33 -2
- package/components/auth-dialog-service/{auth-dialog-service.jsx → auth-dialog-service.js} +1 -1
- package/components/autofocus-ng/autofocus-ng.js +1 -1
- package/components/autofocus-ng/autofocus-ng.test.js +1 -1
- package/components/avatar/{avatar-example-datauri.jsx → avatar-example-datauri.js} +0 -0
- package/components/avatar/{avatar.jsx → avatar.js} +0 -0
- package/components/avatar/{fallback-avatar.jsx → fallback-avatar.js} +2 -2
- package/components/badge/{badge.jsx → badge.js} +0 -0
- package/components/button/button.css +95 -206
- package/components/button/button.d.ts +8 -8
- package/components/button/{button.jsx → button.js} +6 -8
- package/components/button/button__classes.d.ts +1 -1
- package/components/button/button__classes.js +4 -7
- package/components/button-group/button-group.css +138 -19
- package/components/button-group/button-group.d.ts +4 -1
- package/components/button-group/{button-group.jsx → button-group.js} +3 -3
- package/components/button-group/{caption.jsx → caption.js} +0 -0
- package/components/button-group-ng/button-group-ng.css +1 -0
- package/components/button-group-ng/button-group-ng.examples.js +1 -1
- package/components/button-ng/button-ng.examples.js +6 -7
- package/components/button-ng/button-ng.js +6 -25
- package/components/button-set/button-set.css +1 -0
- package/components/button-set/{button-set.jsx → button-set.js} +0 -0
- package/components/button-toolbar/button-toolbar.css +2 -0
- package/components/button-toolbar/{button-toolbar.jsx → button-toolbar.js} +0 -0
- package/components/checkbox/checkbox.css +16 -13
- package/components/checkbox/{checkbox.jsx → checkbox.js} +1 -1
- package/components/checkbox-ng/checkbox-ng.js +1 -1
- package/components/code/{code.jsx → code.js} +0 -0
- package/components/confirm/{confirm.jsx → confirm.js} +0 -0
- package/components/confirm-service/{confirm-service.jsx → confirm-service.js} +1 -1
- package/components/content-layout/{content-layout.jsx → content-layout.js} +0 -0
- package/components/content-layout/{sidebar.jsx → sidebar.js} +0 -0
- package/components/contenteditable/{contenteditable.jsx → contenteditable.js} +0 -0
- package/components/data-list/data-list.d.ts +4 -8
- package/components/data-list/{data-list.jsx → data-list.js} +0 -0
- package/components/data-list/{data-list.mock.jsx → data-list.mock.js} +0 -0
- package/components/data-list/{item.jsx → item.js} +0 -0
- package/components/data-list/{title.jsx → title.js} +0 -0
- package/components/date-picker/{date-input.jsx → date-input.js} +2 -1
- package/components/date-picker/date-picker.css +3 -1
- package/components/date-picker/{date-picker.jsx → date-picker.js} +0 -0
- package/components/date-picker/{date-popup.jsx → date-popup.js} +0 -1
- package/components/date-picker/{day.jsx → day.js} +0 -0
- package/components/date-picker/{month-names.jsx → month-names.js} +0 -0
- package/components/date-picker/{month-slider.jsx → month-slider.js} +0 -0
- package/components/date-picker/{month.jsx → month.js} +0 -0
- package/components/date-picker/{months.jsx → months.js} +0 -0
- package/components/date-picker/{weekdays.jsx → weekdays.js} +0 -0
- package/components/date-picker/{years.jsx → years.js} +0 -0
- package/components/dialog/dialog.css +10 -3
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/{dialog.jsx → dialog.js} +0 -0
- package/components/dialog-ng/dialog-ng__template.js +1 -0
- package/components/dropdown/{anchor.jsx → anchor.js} +0 -0
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/dropdown/{dropdown.jsx → dropdown.js} +0 -0
- package/components/dropdown-menu/{dropdown-menu.jsx → dropdown-menu.js} +0 -0
- package/components/error-bubble/error-bubble-legacy.css +1 -1
- package/components/error-bubble/error-bubble.css +1 -1
- package/components/error-bubble/{error-bubble.jsx → error-bubble.js} +0 -0
- package/components/error-message/{error-message.jsx → error-message.js} +0 -0
- package/components/footer/{footer.jsx → footer.js} +0 -0
- package/components/global/angular-component-factory.js +1 -1
- package/components/global/controls-height.d.ts +7 -0
- package/components/global/controls-height.js +8 -0
- package/components/global/{create-stateful-context.jsx → create-stateful-context.js} +0 -0
- package/components/global/{focus-sensor-hoc.jsx → focus-sensor-hoc.js} +0 -0
- package/components/global/promise-with-timeout.d.ts +2 -1
- package/components/global/promise-with-timeout.js +5 -2
- package/components/global/{react-dom-renderer.jsx → react-dom-renderer.js} +0 -0
- package/components/global/react-render-adapter.d.ts +29 -0
- package/components/global/react-render-adapter.js +36 -0
- package/components/global/rerender-hoc.d.ts +5 -9
- package/components/global/rerender-hoc.js +4 -2
- package/components/global/theme.d.ts +7 -20
- package/components/global/theme.js +40 -0
- package/components/global/variables.css +30 -26
- package/components/global/variables.d.ts +10 -9
- package/components/global/variables_dark.css +67 -0
- package/components/grid/{col.jsx → col.js} +0 -0
- package/components/grid/{grid.jsx → grid.js} +0 -0
- package/components/grid/{row.jsx → row.js} +0 -0
- package/components/group/{group.jsx → group.js} +0 -0
- package/components/header/header.css +19 -10
- package/components/header/header.d.ts +7 -69
- package/components/header/{header.jsx → header.js} +10 -9
- package/components/header/{logo.jsx → logo.js} +0 -0
- package/components/header/profile.d.ts +3 -3
- package/components/header/{profile.jsx → profile.js} +0 -0
- package/components/header/{services-link.jsx → services-link.js} +0 -0
- package/components/header/services.css +3 -3
- package/components/header/services.d.ts +5 -0
- package/components/header/{services.jsx → services.js} +8 -2
- package/components/header/{smart-profile.jsx → smart-profile.js} +0 -0
- package/components/header/{smart-services.jsx → smart-services.js} +0 -0
- package/components/header/tray-icon.d.ts +18 -575
- package/components/header/{tray-icon.jsx → tray-icon.js} +0 -0
- package/components/header/{tray.jsx → tray.js} +0 -0
- package/components/heading/heading.css +4 -1
- package/components/heading/{heading.jsx → heading.js} +0 -0
- package/components/icon/icon.css +1 -1
- package/components/icon/{icon.jsx → icon.js} +0 -0
- package/components/icon/{icon__svg.jsx → icon__svg.js} +0 -0
- package/components/input/input.css +86 -149
- package/components/input/input.d.ts +13 -17
- package/components/input/{input.jsx → input.js} +29 -33
- package/components/input-ng/input-ng.examples.js +1 -1
- package/components/input-ng/input-ng.js +45 -49
- package/components/island/adaptive-island-hoc.d.ts +6 -10
- package/components/island/{adaptive-island-hoc.jsx → adaptive-island-hoc.js} +2 -2
- package/components/island/content.d.ts +33 -2
- package/components/island/{content.jsx → content.js} +7 -11
- package/components/island/{header.jsx → header.js} +7 -4
- package/components/island/island.css +8 -5
- package/components/island/island.d.ts +6 -10
- package/components/island/{island.jsx → island.js} +0 -0
- package/components/island-legacy/{content-legacy.jsx → content-legacy.js} +0 -0
- package/components/island-legacy/{header-legacy.jsx → header-legacy.js} +0 -0
- package/components/island-legacy/island-legacy.css +1 -1
- package/components/island-legacy/{island-legacy.jsx → island-legacy.js} +0 -0
- package/components/link/clickableLink.d.ts +1 -1
- package/components/link/{clickableLink.jsx → clickableLink.js} +0 -0
- package/components/link/link.css +0 -2
- package/components/link/link.d.ts +14 -22
- package/components/link/{link.jsx → link.js} +0 -0
- package/components/list/consts.d.ts +3 -1
- package/components/list/list.css +1 -0
- package/components/list/list.d.ts +3 -1
- package/components/list/{list.jsx → list.js} +12 -13
- package/components/list/{list__custom.jsx → list__custom.js} +0 -0
- package/components/list/{list__hint.jsx → list__hint.js} +0 -0
- package/components/list/{list__item.jsx → list__item.js} +0 -0
- package/components/list/{list__link.jsx → list__link.js} +0 -0
- package/components/list/{list__separator.jsx → list__separator.js} +0 -0
- package/components/list/{list__title.jsx → list__title.js} +0 -0
- package/components/loader/{loader.jsx → loader.js} +0 -0
- package/components/loader-inline/loader-inline.css +14 -0
- package/components/loader-inline/loader-inline.d.ts +4 -41
- package/components/loader-inline/{loader-inline.jsx → loader-inline.js} +3 -11
- package/components/loader-inline-ng/loader-inline-ng.js +1 -17
- package/components/loader-inline-ng/loader-inline-ng.test.js +0 -11
- package/components/loader-screen/{loader-screen.jsx → loader-screen.js} +0 -0
- package/components/login-dialog/{login-dialog.jsx → login-dialog.js} +0 -0
- package/components/login-dialog/{service.jsx → service.js} +1 -1
- package/components/markdown/code.d.ts +6 -13
- package/components/markdown/{code.jsx → code.js} +2 -2
- package/components/markdown/heading.d.ts +5 -9
- package/components/markdown/{heading.jsx → heading.js} +2 -2
- package/components/markdown/link.d.ts +4 -8
- package/components/markdown/{link.jsx → link.js} +1 -1
- package/components/markdown/markdown.d.ts +2 -3
- package/components/markdown/{markdown.jsx → markdown.js} +14 -11
- package/components/message/message.css +18 -28
- package/components/message/message.d.ts +3 -0
- package/components/message/{message.jsx → message.js} +42 -22
- package/components/pager/{pager.jsx → pager.js} +2 -8
- package/components/panel/{panel.jsx → panel.js} +0 -0
- package/components/popup/popup.css +1 -1
- package/components/popup/popup.d.ts +6 -1
- package/components/popup/{popup.jsx → popup.js} +4 -2
- package/components/popup/popup.target.d.ts +1 -0
- package/components/popup/{popup.target.jsx → popup.target.js} +0 -0
- package/components/popup/position.d.ts +1 -1
- package/components/popup/position.js +2 -2
- package/components/popup-menu/popup-menu.d.ts +1 -0
- package/components/popup-menu/{popup-menu.jsx → popup-menu.js} +0 -0
- package/components/progress-bar/progress-bar.css +8 -12
- package/components/progress-bar/progress-bar.d.ts +0 -4
- package/components/progress-bar/{progress-bar.jsx → progress-bar.js} +1 -6
- package/components/progress-bar-ng/progress-bar-ng.examples.js +3 -2
- package/components/query-assist/query-assist.css +48 -64
- package/components/query-assist/query-assist.d.ts +4 -13
- package/components/query-assist/{query-assist.jsx → query-assist.js} +6 -12
- package/components/query-assist/{query-assist__suggestions.jsx → query-assist__suggestions.js} +0 -0
- package/components/radio/radio.css +10 -4
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/{radio.jsx → radio.js} +0 -0
- package/components/radio/{radio__item.jsx → radio__item.js} +0 -0
- package/components/select/select-popup.css +5 -1
- package/components/select/select.css +23 -38
- package/components/select/select.d.ts +13 -18
- package/components/select/{select.jsx → select.js} +37 -47
- package/components/select/{select__filter.jsx → select__filter.js} +2 -1
- package/components/select/{select__popup.jsx → select__popup.js} +1 -2
- package/components/select-ng/select-ng.examples.js +1 -0
- package/components/select-ng/select-ng.js +19 -6
- package/components/select-ng/select-ng.test.js +1 -1
- package/components/select-ng/select-ng__lazy.js +13 -9
- package/components/select-ng/select-ng__lazy.test.js +3 -1
- package/components/shortcuts/shortcuts-hoc.d.ts +4 -8
- package/components/shortcuts/{shortcuts-hoc.jsx → shortcuts-hoc.js} +0 -0
- package/components/shortcuts/shortcuts.d.ts +1 -1
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.css +1 -1
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.examples.js +1 -1
- package/components/tab-trap/tab-trap.d.ts +1 -1
- package/components/tab-trap/{tab-trap.jsx → tab-trap.js} +0 -0
- package/components/table/{cell.jsx → cell.js} +0 -0
- package/components/table/disable-hover-hoc.d.ts +4 -8
- package/components/table/{disable-hover-hoc.jsx → disable-hover-hoc.js} +0 -0
- package/components/table/{header-cell.jsx → header-cell.js} +0 -0
- package/components/table/header.d.ts +8 -1
- package/components/table/{header.jsx → header.js} +0 -0
- package/components/table/{multitable.jsx → multitable.js} +0 -0
- package/components/table/{row-with-focus-sensor.jsx → row-with-focus-sensor.js} +0 -0
- package/components/table/{row.jsx → row.js} +0 -0
- package/components/table/{selection-shortcuts-hoc.jsx → selection-shortcuts-hoc.js} +0 -0
- package/components/table/smart-table.d.ts +1 -0
- package/components/table/{smart-table.jsx → smart-table.js} +7 -3
- package/components/table/table.d.ts +4 -8
- package/components/table/{table.jsx → table.js} +0 -0
- package/components/tabs/{collapsible-more.jsx → collapsible-more.js} +2 -2
- package/components/tabs/{collapsible-tab.jsx → collapsible-tab.js} +2 -2
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/{collapsible-tabs.jsx → collapsible-tabs.js} +1 -1
- package/components/tabs/custom-item.d.ts +1 -1
- package/components/tabs/{custom-item.jsx → custom-item.js} +0 -0
- package/components/tabs/dumb-tabs.d.ts +5 -108
- package/components/tabs/{dumb-tabs.jsx → dumb-tabs.js} +5 -9
- package/components/tabs/{smart-tabs.jsx → smart-tabs.js} +0 -0
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/{tab-link.jsx → tab-link.js} +0 -0
- package/components/tabs/tab.d.ts +3 -1
- package/components/tabs/{tab.jsx → tab.js} +0 -0
- package/components/tabs/tabs.css +17 -28
- package/components/tabs-ng/tabs-ng.examples.js +11 -3
- package/components/tabs-ng/tabs-ng.js +1 -4
- package/components/tabs-ng/tabs-ng__template.js +1 -1
- package/components/tag/tag.css +31 -8
- package/components/tag/tag.d.ts +1 -0
- package/components/tag/{tag.jsx → tag.js} +2 -2
- package/components/tags-input/tags-input.css +10 -4
- package/components/tags-input/tags-input.d.ts +4 -8
- package/components/tags-input/{tags-input.jsx → tags-input.js} +0 -0
- package/components/tags-list/tags-list.d.ts +1 -1
- package/components/tags-list/{tags-list.jsx → tags-list.js} +0 -0
- package/components/text/{text.jsx → text.js} +0 -0
- package/components/toggle/toggle.css +61 -35
- package/components/toggle/toggle.d.ts +9 -89
- package/components/toggle/{toggle.jsx → toggle.js} +7 -7
- package/components/tooltip/tooltip.css +7 -0
- package/components/tooltip/tooltip.d.ts +1 -0
- package/components/tooltip/{tooltip.jsx → tooltip.js} +3 -2
- package/components/tooltip-ng/tooltip-ng.js +13 -10
- package/components/user-agreement/service.d.ts +14 -62
- package/components/user-agreement/{service.jsx → service.js} +1 -1
- package/components/user-agreement/{user-agreement.jsx → user-agreement.js} +1 -1
- package/components/user-card/{card.jsx → card.js} +0 -0
- package/components/user-card/{smart-user-card-tooltip.jsx → smart-user-card-tooltip.js} +0 -0
- package/components/user-card/{tooltip.jsx → tooltip.js} +0 -0
- package/dist/_helpers/anchor.js +3 -3
- package/dist/_helpers/badge.js +1 -1
- package/dist/_helpers/button-group.js +1 -1
- package/dist/_helpers/button-set.js +1 -1
- package/dist/_helpers/button-toolbar.js +1 -1
- package/dist/_helpers/button__classes.js +5 -8
- package/dist/_helpers/card.js +1 -1
- package/dist/_helpers/checkbox.js +1 -1
- package/dist/_helpers/date-picker.js +1 -1
- package/dist/_helpers/dialog__body-scroll-preventer.js +3 -2
- package/dist/_helpers/error-message.js +1 -1
- package/dist/_helpers/footer.js +1 -1
- package/dist/_helpers/grid.js +1 -1
- package/dist/_helpers/group.js +1 -1
- package/dist/_helpers/header.js +1 -1
- package/dist/_helpers/icon.js +1 -1
- package/dist/_helpers/input.js +1 -1
- package/dist/_helpers/island.js +1 -1
- package/dist/_helpers/link.js +1 -1
- package/dist/_helpers/list.js +1 -1
- package/dist/_helpers/loader-inline.js +3 -0
- package/dist/_helpers/loader-screen.js +1 -1
- package/dist/_helpers/panel.js +1 -1
- package/dist/_helpers/query-assist__suggestions.js +1 -1
- package/dist/_helpers/radio.js +1 -1
- package/dist/_helpers/select__filter.js +6 -3
- package/dist/_helpers/services-link.js +2 -2
- package/dist/_helpers/sidebar.js +3 -2
- package/dist/_helpers/table.js +1 -1
- package/dist/_helpers/tabs.js +1 -1
- package/dist/_helpers/theme.js +55 -0
- package/dist/_helpers/title.js +2 -1
- package/dist/alert/alert.d.ts +3 -0
- package/dist/alert/alert.js +35 -21
- package/dist/alert/container.js +1 -1
- package/dist/alert-service/alert-service.js +23 -8
- package/dist/analytics/analytics.js +4 -3
- package/dist/analytics/analytics__custom-plugin.js +2 -1
- package/dist/analytics/analytics__fus-plugin.js +1 -0
- package/dist/analytics/analytics__ga-plugin.d.ts +1 -1
- package/dist/analytics/analytics__ga-plugin.js +15 -7
- package/dist/analytics/analytics__plugin-utils.js +4 -3
- package/dist/analytics-ng/analytics-ng.js +3 -2
- package/dist/auth/auth.js +22 -9
- package/dist/auth/auth__core.d.ts +3 -1
- package/dist/auth/auth__core.js +87 -38
- package/dist/auth/background-flow.js +2 -1
- package/dist/auth/down-notification.js +21 -8
- package/dist/auth/iframe-flow.js +4 -1
- package/dist/auth/landing.js +26 -13
- package/dist/auth/request-builder.js +1 -0
- package/dist/auth/response-parser.js +1 -0
- package/dist/auth/storage.js +22 -7
- package/dist/auth/token-validator.js +2 -0
- package/dist/auth/window-flow.js +2 -1
- package/dist/auth-dialog/auth-dialog.d.ts +11 -0
- package/dist/auth-dialog/auth-dialog.js +55 -8
- package/dist/auth-dialog-service/auth-dialog-service.js +5 -2
- package/dist/auth-ng/auth-ng.js +23 -10
- package/dist/autofocus-ng/autofocus-ng.js +2 -1
- package/dist/avatar/avatar-example-datauri.js +1 -23
- package/dist/avatar/avatar.js +5 -3
- package/dist/avatar/fallback-avatar.js +6 -5
- package/dist/avatar-editor-ng/avatar-editor-ng.js +22 -7
- package/dist/avatar-editor-ng/avatar-editor-ng__template.js +1 -28
- package/dist/avatar-ng/avatar-ng.js +3 -0
- package/dist/badge/badge.js +1 -0
- package/dist/badge-ng/badge-ng.js +2 -0
- package/dist/breadcrumb-ng/breadcrumb-ng.js +4 -28
- package/dist/button/button.d.ts +8 -8
- package/dist/button/button.js +8 -8
- package/dist/button/button__classes.d.ts +1 -1
- package/dist/button/button__classes.js +0 -3
- package/dist/button-group/button-group.d.ts +4 -1
- package/dist/button-group/button-group.js +5 -3
- package/dist/button-group-ng/button-group-ng.js +2 -1
- package/dist/button-ng/button-ng.js +9 -40
- package/dist/button-set-ng/button-set-ng.js +1 -1
- package/dist/button-toolbar-ng/button-toolbar-ng.js +1 -0
- package/dist/caret/caret.js +2 -0
- package/dist/checkbox/checkbox.js +3 -1
- package/dist/checkbox-ng/checkbox-ng.js +4 -21
- package/dist/code/code.js +4 -3
- package/dist/confirm/confirm.js +7 -5
- package/dist/confirm-ng/confirm-ng.js +4 -1
- package/dist/confirm-service/confirm-service.js +5 -2
- package/dist/content-layout/content-layout.js +1 -0
- package/dist/content-layout/sidebar.js +1 -0
- package/dist/data-list/data-list.d.ts +4 -8
- package/dist/data-list/data-list.js +5 -8
- package/dist/data-list/data-list.mock.js +1 -0
- package/dist/data-list/item.js +11 -14
- package/dist/data-list/selection.js +1 -0
- package/dist/data-list/title.js +3 -1
- package/dist/data-list-ng/data-list-ng.js +6 -8
- package/dist/date-picker/consts.js +1 -1
- package/dist/date-picker/date-input.js +8 -5
- package/dist/date-picker/date-picker.js +11 -9
- package/dist/date-picker/date-popup.js +5 -4
- package/dist/date-picker/day.js +1 -0
- package/dist/date-picker/month-names.js +1 -0
- package/dist/date-picker/month-slider.js +1 -0
- package/dist/date-picker/month.js +1 -0
- package/dist/date-picker/months.js +1 -0
- package/dist/date-picker/years.js +1 -0
- package/dist/dialog/dialog.d.ts +1 -1
- package/dist/dialog/dialog.js +5 -3
- package/dist/dialog/dialog__body-scroll-preventer.js +1 -0
- package/dist/dialog-ng/dialog-ng.js +9 -6
- package/dist/dialog-ng/dialog-ng__template.js +1 -69
- package/dist/docked-panel-ng/docked-panel-ng.js +2 -1
- package/dist/dropdown/anchor.js +3 -1
- package/dist/dropdown/dropdown.d.ts +2 -2
- package/dist/dropdown/dropdown.js +3 -1
- package/dist/dropdown-menu/dropdown-menu.js +5 -3
- package/dist/error-bubble/error-bubble.js +3 -1
- package/dist/error-message/error-message.js +3 -1
- package/dist/error-message-ng/error-message-ng.js +3 -21
- package/dist/footer/footer.js +1 -0
- package/dist/footer-ng/footer-ng.js +3 -14
- package/dist/form-ng/form-ng.js +2 -4
- package/dist/global/angular-component-factory.js +8 -6
- package/dist/global/controls-height.d.ts +7 -0
- package/dist/global/controls-height.js +13 -0
- package/dist/global/create-stateful-context.js +3 -2
- package/dist/global/data-tests.js +2 -0
- package/dist/global/dom.js +1 -0
- package/dist/global/focus-sensor-hoc.js +1 -0
- package/dist/global/fuzzy-highlight.js +1 -1
- package/dist/global/inject-styles.js +5 -7
- package/dist/global/listeners.js +1 -0
- package/dist/global/memoize.js +2 -0
- package/dist/global/normalize-indent.js +2 -0
- package/dist/global/promise-with-timeout.d.ts +2 -1
- package/dist/global/promise-with-timeout.js +6 -2
- package/dist/global/react-dom-renderer.js +1 -0
- package/dist/global/react-render-adapter.d.ts +29 -0
- package/dist/global/react-render-adapter.js +41 -0
- package/dist/global/rerender-hoc.d.ts +5 -9
- package/dist/global/rerender-hoc.js +7 -3
- package/dist/global/theme.d.ts +7 -20
- package/dist/global/theme.js +22 -62
- package/dist/global/trivial-template-tag.js +2 -0
- package/dist/global/url.js +3 -1
- package/dist/global/variables.d.ts +10 -9
- package/dist/grid/col.js +2 -1
- package/dist/grid/grid.js +1 -0
- package/dist/grid/row.js +1 -1
- package/dist/group-ng/group-ng.js +1 -1
- package/dist/header/header.d.ts +7 -69
- package/dist/header/header.js +31 -31
- package/dist/header/logo.js +2 -0
- package/dist/header/profile.d.ts +3 -3
- package/dist/header/profile.js +6 -4
- package/dist/header/services-link.js +1 -0
- package/dist/header/services.d.ts +5 -0
- package/dist/header/services.js +13 -3
- package/dist/header/smart-profile.js +27 -27
- package/dist/header/smart-services.js +23 -24
- package/dist/header/tray-icon.d.ts +18 -575
- package/dist/header/tray-icon.js +6 -4
- package/dist/heading/heading.js +3 -3
- package/dist/http/http.js +4 -2
- package/dist/http/http.mock.js +2 -0
- package/dist/hub-source/hub-source.js +1 -1
- package/dist/hub-source/hub-source__user.js +4 -2
- package/dist/hub-source/hub-source__users-groups.js +3 -2
- package/dist/icon/icon.js +3 -3
- package/dist/icon/icon__svg.js +2 -0
- package/dist/icon/index.js +2 -0
- package/dist/icon-ng/icon-ng.js +7 -5
- package/dist/input/input.d.ts +13 -17
- package/dist/input/input.js +35 -42
- package/dist/input-ng/input-ng.js +8 -64
- package/dist/island/adaptive-island-hoc.d.ts +6 -10
- package/dist/island/adaptive-island-hoc.js +8 -5
- package/dist/island/content.d.ts +33 -2
- package/dist/island/content.js +10 -13
- package/dist/island/header.js +10 -6
- package/dist/island/island.d.ts +6 -10
- package/dist/island/island.js +1 -0
- package/dist/island-ng/island-content-ng.js +2 -16
- package/dist/island-ng/island-header-ng.js +2 -8
- package/dist/island-ng/island-ng-class-fixer.js +2 -0
- package/dist/island-ng/island-ng.js +2 -8
- package/dist/link/clickableLink.d.ts +1 -1
- package/dist/link/clickableLink.js +1 -0
- package/dist/link/link.d.ts +14 -22
- package/dist/link/link.js +4 -3
- package/dist/link-ng/link-ng.js +1 -4
- package/dist/list/consts.d.ts +3 -1
- package/dist/list/list.d.ts +3 -1
- package/dist/list/list.js +30 -23
- package/dist/list/list__custom.js +1 -0
- package/dist/list/list__item.js +6 -4
- package/dist/list/list__link.js +1 -0
- package/dist/list/list__users-groups-source.js +4 -2
- package/dist/loader/loader.js +1 -0
- package/dist/loader/loader__core.js +5 -4
- package/dist/loader-inline/loader-inline.d.ts +4 -41
- package/dist/loader-inline/loader-inline.js +4 -21
- package/dist/loader-inline-ng/loader-inline-ng.js +2 -30
- package/dist/loader-ng/loader-ng.js +1 -0
- package/dist/loader-screen/loader-screen.js +1 -0
- package/dist/loader-screen-ng/loader-screen-ng.js +2 -6
- package/dist/login-dialog/login-dialog.js +4 -2
- package/dist/login-dialog/service.js +5 -2
- package/dist/markdown/code.d.ts +6 -13
- package/dist/markdown/code.js +4 -3
- package/dist/markdown/heading.d.ts +5 -9
- package/dist/markdown/heading.js +2 -2
- package/dist/markdown/link.d.ts +4 -8
- package/dist/markdown/link.js +2 -1
- package/dist/markdown/markdown.d.ts +2 -3
- package/dist/markdown/markdown.js +17 -16
- package/dist/message/message.d.ts +3 -0
- package/dist/message/message.js +56 -42
- package/dist/old-browsers-message/old-browsers-message.js +2 -1
- package/dist/old-browsers-message/old-browsers-message__stop.js +1 -0
- package/dist/old-browsers-message/white-list.js +1 -0
- package/dist/pager/pager.js +14 -15
- package/dist/pager-ng/pager-ng.js +8 -9
- package/dist/panel-ng/panel-ng.js +1 -0
- package/dist/permissions/permissions.js +1 -1
- package/dist/permissions-ng/permissions-ng.js +23 -10
- package/dist/place-under-ng/place-under-ng.js +3 -2
- package/dist/popup/popup.d.ts +6 -1
- package/dist/popup/popup.js +11 -5
- package/dist/popup/popup.target.d.ts +1 -0
- package/dist/popup/position.d.ts +1 -1
- package/dist/popup/position.js +3 -2
- package/dist/popup-menu/popup-menu.d.ts +1 -0
- package/dist/popup-menu/popup-menu.js +3 -1
- package/dist/progress-bar/progress-bar.d.ts +0 -4
- package/dist/progress-bar/progress-bar.js +3 -8
- package/dist/progress-bar-ng/progress-bar-ng.js +2 -1
- package/dist/promised-click-ng/promised-click-ng.js +4 -2
- package/dist/proxy-attrs/proxy-attrs.js +5 -3
- package/dist/query-assist/query-assist.d.ts +4 -13
- package/dist/query-assist/query-assist.js +19 -31
- package/dist/query-assist/query-assist__suggestions.js +3 -1
- package/dist/query-assist-ng/query-assist-ng.js +9 -10
- package/dist/radio/radio.d.ts +1 -1
- package/dist/radio/radio.js +1 -0
- package/dist/radio/radio__item.js +1 -0
- package/dist/radio-ng/radio-ng.js +2 -18
- package/dist/save-field-ng/save-field-ng.js +5 -10
- package/dist/save-field-ng/save-field-ng__template.js +1 -32
- package/dist/select/select.d.ts +13 -18
- package/dist/select/select.js +65 -77
- package/dist/select/select__filter.js +5 -3
- package/dist/select/select__popup.js +12 -16
- package/dist/select-ng/select-ng.js +28 -17
- package/dist/select-ng/select-ng__lazy.js +24 -20
- package/dist/select-ng/select-ng__options.js +2 -2
- package/dist/shortcuts/shortcuts-hoc.d.ts +4 -8
- package/dist/shortcuts/shortcuts-hoc.js +4 -3
- package/dist/shortcuts/shortcuts.d.ts +1 -1
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +5 -2
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +1 -48
- package/dist/shortcuts-ng/shortcuts-ng.js +4 -3
- package/dist/sidebar-ng/sidebar-ng.js +4 -2
- package/dist/sidebar-ng/sidebar-ng__button-template.js +1 -18
- package/dist/sidebar-ng/sidebar-ng__template.js +1 -10
- package/dist/storage/storage.js +22 -7
- package/dist/storage/storage__fallback.js +4 -3
- package/dist/storage/storage__local.js +22 -7
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.d.ts +1 -1
- package/dist/tab-trap/tab-trap.js +2 -1
- package/dist/table/cell.js +1 -0
- package/dist/table/disable-hover-hoc.d.ts +4 -8
- package/dist/table/disable-hover-hoc.js +4 -3
- package/dist/table/header-cell.js +2 -0
- package/dist/table/header.d.ts +8 -1
- package/dist/table/header.js +3 -1
- package/dist/table/multitable.js +1 -0
- package/dist/table/row-with-focus-sensor.js +4 -2
- package/dist/table/row.js +9 -7
- package/dist/table/selection-adapter.js +2 -0
- package/dist/table/selection-shortcuts-hoc.js +1 -0
- package/dist/table/selection.js +1 -0
- package/dist/table/smart-table.d.ts +1 -0
- package/dist/table/smart-table.js +14 -8
- package/dist/table/table.d.ts +4 -8
- package/dist/table/table.js +4 -2
- package/dist/table-legacy-ng/table-legacy-ng.js +16 -54
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +9 -16
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +2 -1
- package/dist/table-ng/smart-table-ng.js +5 -2
- package/dist/table-ng/table-ng.js +5 -2
- package/dist/tabs/collapsible-more.js +5 -3
- package/dist/tabs/collapsible-tab.js +4 -2
- package/dist/tabs/collapsible-tabs.d.ts +2 -2
- package/dist/tabs/collapsible-tabs.js +4 -2
- package/dist/tabs/custom-item.d.ts +1 -1
- package/dist/tabs/dumb-tabs.d.ts +5 -108
- package/dist/tabs/dumb-tabs.js +9 -13
- package/dist/tabs/smart-tabs.js +6 -4
- package/dist/tabs/tab-link.d.ts +1 -1
- package/dist/tabs/tab-link.js +1 -0
- package/dist/tabs/tab.d.ts +3 -1
- package/dist/tabs/tab.js +1 -0
- package/dist/tabs/tabs.js +4 -2
- package/dist/tabs-ng/tabs-ng.js +2 -6
- package/dist/tabs-ng/tabs-ng__template.js +1 -38
- package/dist/tag/tag.d.ts +1 -0
- package/dist/tag/tag.js +8 -6
- package/dist/tags-input/tags-input.d.ts +4 -8
- package/dist/tags-input/tags-input.js +10 -11
- package/dist/tags-input-ng/tags-input-ng.js +9 -10
- package/dist/tags-list/tags-list.d.ts +1 -1
- package/dist/tags-list/tags-list.js +4 -2
- package/dist/template-ng/template-ng.js +1 -0
- package/dist/text/text.js +1 -1
- package/dist/theme-ng/theme-ng.js +1 -0
- package/dist/toggle/toggle.d.ts +9 -89
- package/dist/toggle/toggle.js +8 -8
- package/dist/toggle-ng/toggle-ng.js +4 -3
- package/dist/tooltip/tooltip.d.ts +1 -0
- package/dist/tooltip/tooltip.js +8 -3
- package/dist/tooltip-ng/tooltip-ng.js +12 -6
- package/dist/user-agreement/service.d.ts +14 -62
- package/dist/user-agreement/service.js +23 -21
- package/dist/user-agreement/toolbox.eula.js +1 -160
- package/dist/user-agreement/user-agreement.js +10 -10
- package/dist/user-card/card.js +2 -0
- package/dist/user-card/smart-user-card-tooltip.js +8 -11
- package/dist/user-card/tooltip.js +3 -1
- package/dist/user-card/user-card.js +4 -7
- package/dist/user-card-ng/user-card-ng.js +7 -9
- package/package.json +78 -69
- package/webpack.config.js +0 -11
- package/components/global/conic-gradient.d.ts +0 -796
- package/components/global/conic-gradient.js +0 -21
- package/components/global/radial-gradient-mask.d.ts +0 -9
- package/components/global/radial-gradient-mask.js +0 -39
- package/components/global/supports-css.d.ts +0 -2
- package/components/global/supports-css.js +0 -14
- package/components/global/theme.jsx +0 -39
- package/components/global/variables_dark.d.ts +0 -3
- package/components/global/variables_dark.js +0 -53
- package/components/loader-inline/inject-styles.d.ts +0 -2
- package/components/loader-inline/inject-styles.js +0 -17
- package/dist/_helpers/inject-styles.js +0 -22
- package/dist/global/conic-gradient.d.ts +0 -796
- package/dist/global/conic-gradient.js +0 -35
- package/dist/global/radial-gradient-mask.d.ts +0 -9
- package/dist/global/radial-gradient-mask.js +0 -49
- package/dist/global/supports-css.d.ts +0 -2
- package/dist/global/supports-css.js +0 -20
- package/dist/global/variables_dark.d.ts +0 -3
- package/dist/global/variables_dark.js +0 -57
- package/dist/loader-inline/inject-styles.d.ts +0 -2
- package/dist/loader-inline/inject-styles.js +0 -11
|
@@ -1,33 +1,141 @@
|
|
|
1
1
|
@import "../global/variables.css";
|
|
2
2
|
|
|
3
3
|
@value unit from "../global/global.css";
|
|
4
|
+
@value button, active, primary, button-shadow from "../button/button.css";
|
|
4
5
|
|
|
5
6
|
:root {
|
|
6
|
-
--ring-button-group-default-z-index:
|
|
7
|
-
--ring-button-group-disabled-z-index:
|
|
8
|
-
--ring-button-group-active-z-index:
|
|
9
|
-
--ring-button-group-hover-z-index:
|
|
10
|
-
--ring-button-group-focus-z-index:
|
|
7
|
+
--ring-button-group-default-z-index: 1;
|
|
8
|
+
--ring-button-group-disabled-z-index: 0;
|
|
9
|
+
--ring-button-group-active-z-index: 2;
|
|
10
|
+
--ring-button-group-hover-z-index: 3;
|
|
11
|
+
--ring-button-group-focus-z-index: 4;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.common {
|
|
15
|
+
display: inline-block;
|
|
16
|
+
|
|
17
|
+
white-space: nowrap;
|
|
11
18
|
}
|
|
12
19
|
|
|
13
20
|
.buttonGroup {
|
|
21
|
+
composes: common;
|
|
14
22
|
composes: buttonGroup from "../button-toolbar/button-toolbar.css";
|
|
15
23
|
|
|
16
|
-
|
|
17
|
-
z-index: 0;
|
|
24
|
+
border-radius: var(--ring-border-radius);
|
|
18
25
|
|
|
19
|
-
|
|
26
|
+
box-shadow: button-shadow var(--ring-borders-color);
|
|
20
27
|
|
|
21
|
-
|
|
28
|
+
line-height: normal;
|
|
22
29
|
}
|
|
23
30
|
|
|
24
|
-
.buttonGroup button,
|
|
25
31
|
.buttonGroup .button {
|
|
26
|
-
|
|
32
|
+
--ring-button-group-button-border-color: var(--ring-borders-color);
|
|
33
|
+
|
|
34
|
+
position: relative;
|
|
35
|
+
|
|
36
|
+
transition: none;
|
|
37
|
+
|
|
38
|
+
box-shadow: 0 1px var(--ring-button-group-button-border-color) inset, 0 -1px var(--ring-button-group-button-border-color) inset;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.buttonGroup .button[disabled] {
|
|
42
|
+
--ring-button-group-button-border-color: var(--ring-border-unselected-disabled-color);
|
|
43
|
+
|
|
44
|
+
/* stylelint-disable-next-line selector-max-specificity */
|
|
45
|
+
&::before,
|
|
46
|
+
&::after {
|
|
47
|
+
position: absolute;
|
|
48
|
+
z-index: 0;
|
|
49
|
+
top: 0;
|
|
50
|
+
bottom: 0;
|
|
51
|
+
|
|
52
|
+
width: var(--ring-border-radius);
|
|
27
53
|
|
|
54
|
+
content: "";
|
|
55
|
+
|
|
56
|
+
background-color: var(--ring-disabled-background-color);
|
|
57
|
+
|
|
58
|
+
box-shadow: 0 1px var(--ring-border-unselected-disabled-color) inset, 0 -1px var(--ring-border-unselected-disabled-color) inset;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* stylelint-disable-next-line selector-max-specificity */
|
|
62
|
+
&::before {
|
|
63
|
+
left: calc(var(--ring-border-radius) * -1);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* stylelint-disable-next-line selector-max-specificity */
|
|
67
|
+
&::after {
|
|
68
|
+
right: calc(var(--ring-border-radius) * -1);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.buttonGroup > .button:first-child,
|
|
73
|
+
.buttonGroup > :first-child .button {
|
|
74
|
+
box-shadow: 0 1px var(--ring-button-group-button-border-color) inset, 0 -1px var(--ring-button-group-button-border-color) inset, 1px 0 var(--ring-button-group-button-border-color) inset;
|
|
75
|
+
|
|
76
|
+
/* stylelint-disable-next-line selector-max-specificity */
|
|
77
|
+
&::before {
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.buttonGroup > .button:last-child,
|
|
83
|
+
.buttonGroup > :last-child .button {
|
|
84
|
+
box-shadow: 0 1px var(--ring-button-group-button-border-color) inset, 0 -1px var(--ring-button-group-button-border-color) inset, -1px 0 var(--ring-button-group-button-border-color) inset;
|
|
85
|
+
|
|
86
|
+
/* stylelint-disable-next-line selector-max-specificity */
|
|
87
|
+
&::after {
|
|
88
|
+
display: none;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* stylelint-disable-next-line selector-max-specificity */
|
|
93
|
+
.buttonGroup .button.button:hover,
|
|
94
|
+
.buttonGroup .button.button:active {
|
|
95
|
+
border-radius: var(--ring-border-radius);
|
|
96
|
+
box-shadow: button-shadow var(--ring-border-hover-color);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* stylelint-disable-next-line selector-max-specificity */
|
|
100
|
+
.buttonGroup .button.button:global(.focus-visible) {
|
|
101
|
+
border-radius: var(--ring-border-radius);
|
|
102
|
+
box-shadow: button-shadow var(--ring-border-hover-color), 0 0 0 1px var(--ring-border-hover-color);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* stylelint-disable-next-line selector-max-specificity */
|
|
106
|
+
.buttonGroup .button.button.active {
|
|
107
|
+
border-radius: var(--ring-border-radius);
|
|
108
|
+
box-shadow: inset 0 0 0 2px var(--ring-main-color);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* stylelint-disable-next-line selector-max-specificity */
|
|
112
|
+
.buttonGroup .button:global(.focus-visible).active {
|
|
113
|
+
border-radius: var(--ring-border-radius);
|
|
114
|
+
box-shadow: inset 0 0 0 2px var(--ring-main-color), 0 0 0 1px var(--ring-border-hover-color);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* stylelint-disable-next-line selector-max-specificity */
|
|
118
|
+
.buttonGroup .button.active[disabled] {
|
|
119
|
+
box-shadow: button-shadow var(--ring-border-disabled-color);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.split {
|
|
123
|
+
composes: common;
|
|
124
|
+
|
|
125
|
+
position: relative;
|
|
126
|
+
z-index: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.common button,
|
|
130
|
+
.common .button {
|
|
28
131
|
border-radius: 0;
|
|
29
132
|
}
|
|
30
133
|
|
|
134
|
+
.split button,
|
|
135
|
+
.split .button {
|
|
136
|
+
margin: 0 0 0 -1px;
|
|
137
|
+
}
|
|
138
|
+
|
|
31
139
|
.caption {
|
|
32
140
|
composes: font from "../global/global.css";
|
|
33
141
|
|
|
@@ -40,24 +148,31 @@
|
|
|
40
148
|
}
|
|
41
149
|
}
|
|
42
150
|
|
|
43
|
-
.
|
|
44
|
-
.
|
|
45
|
-
.
|
|
46
|
-
.buttonGroup > :first-child .button {
|
|
151
|
+
.common > button:first-child,
|
|
152
|
+
.common > .button:first-child,
|
|
153
|
+
.common > :first-child .button {
|
|
47
154
|
margin: 0;
|
|
48
155
|
|
|
49
156
|
border-top-left-radius: var(--ring-border-radius);
|
|
50
157
|
border-bottom-left-radius: var(--ring-border-radius);
|
|
51
158
|
}
|
|
52
159
|
|
|
53
|
-
.
|
|
54
|
-
.
|
|
55
|
-
.
|
|
160
|
+
.common > .button:last-child,
|
|
161
|
+
.common > button:last-child,
|
|
162
|
+
.common > :last-child .button {
|
|
56
163
|
border-top-right-radius: var(--ring-border-radius);
|
|
57
164
|
border-bottom-right-radius: var(--ring-border-radius);
|
|
58
165
|
}
|
|
59
166
|
|
|
60
|
-
.
|
|
167
|
+
.split .primary:not(:last-child) {
|
|
168
|
+
margin-right: 1px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.split .primary:not(:first-child) {
|
|
172
|
+
margin-left: 1px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.common {
|
|
61
176
|
& .button {
|
|
62
177
|
position: relative;
|
|
63
178
|
z-index: var(--ring-button-group-default-z-index);
|
|
@@ -81,5 +196,9 @@
|
|
|
81
196
|
|
|
82
197
|
& .active {
|
|
83
198
|
z-index: var(--ring-button-group-active-z-index);
|
|
199
|
+
|
|
200
|
+
&[disabled] {
|
|
201
|
+
z-index: var(--ring-button-group-default-z-index);
|
|
202
|
+
}
|
|
84
203
|
}
|
|
85
204
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { PureComponent, HTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Caption from './caption';
|
|
4
|
+
export interface ButtonGroupProps extends HTMLAttributes<HTMLElement> {
|
|
5
|
+
split?: boolean | null | undefined;
|
|
6
|
+
}
|
|
4
7
|
/**
|
|
5
8
|
* @name Button Group
|
|
6
9
|
*/
|
|
7
|
-
export default class ButtonGroup extends PureComponent<
|
|
10
|
+
export default class ButtonGroup extends PureComponent<ButtonGroupProps> {
|
|
8
11
|
static propTypes: {
|
|
9
12
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
10
13
|
className: PropTypes.Requireable<string>;
|
|
@@ -12,9 +12,9 @@ export default class ButtonGroup extends PureComponent {
|
|
|
12
12
|
className: PropTypes.string
|
|
13
13
|
};
|
|
14
14
|
render() {
|
|
15
|
-
const { className } = this.props;
|
|
16
|
-
const classes = classNames(styles.buttonGroup, className);
|
|
17
|
-
return (<div {...
|
|
15
|
+
const { className, split, ...restProps } = this.props;
|
|
16
|
+
const classes = classNames(split ? styles.split : styles.buttonGroup, className);
|
|
17
|
+
return (<div {...restProps} className={classes}/>);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
export { Caption };
|
|
File without changes
|
|
@@ -19,8 +19,8 @@ export const basic = () => {
|
|
|
19
19
|
angular.module(APP_NAME, [ButtonNG, ButtonGroupNG]);
|
|
20
20
|
|
|
21
21
|
return `
|
|
22
|
+
<span rg-button-group-caption>Side</span>
|
|
22
23
|
<div rg-button-group>
|
|
23
|
-
<span rg-button-group-caption>Side</span>
|
|
24
24
|
<rg-button>Left</rg-button>
|
|
25
25
|
<rg-button>Right</rg-button>
|
|
26
26
|
</div>
|
|
@@ -9,6 +9,7 @@ import IconNG from '../icon-ng/icon-ng';
|
|
|
9
9
|
import ThemeNG from '../theme-ng/theme-ng';
|
|
10
10
|
import CheckboxNG from '../checkbox-ng/checkbox-ng';
|
|
11
11
|
import Theme from '../global/theme';
|
|
12
|
+
import styles from '../global/variables_dark.css';
|
|
12
13
|
|
|
13
14
|
import ButtonNG from './button-ng';
|
|
14
15
|
|
|
@@ -88,9 +89,7 @@ export const basic = () => {
|
|
|
88
89
|
<div ng-controller="testCtrl">
|
|
89
90
|
<div class="buttons">${renderAllButtons()}</div>
|
|
90
91
|
|
|
91
|
-
<
|
|
92
|
-
<div class="buttons dark">${renderAllButtons()}</div>
|
|
93
|
-
</rg-theme>
|
|
92
|
+
<div class="buttons ${styles.dark}">${renderAllButtons()}</div>
|
|
94
93
|
</div>
|
|
95
94
|
`;
|
|
96
95
|
|
|
@@ -108,12 +107,12 @@ basic.parameters = {
|
|
|
108
107
|
},
|
|
109
108
|
storyStyles: `
|
|
110
109
|
<style>
|
|
111
|
-
.buttons
|
|
112
|
-
|
|
110
|
+
.buttons {
|
|
111
|
+
background-color: var(--ring-content-background-color);
|
|
113
112
|
}
|
|
114
113
|
|
|
115
|
-
.
|
|
116
|
-
|
|
114
|
+
.buttons > button {
|
|
115
|
+
margin: 8px;
|
|
117
116
|
}
|
|
118
117
|
</style>`
|
|
119
118
|
};
|
|
@@ -5,10 +5,11 @@ import classNames from 'classnames';
|
|
|
5
5
|
import RingAngularComponent from '../global/ring-angular-component';
|
|
6
6
|
import {addClasses, applyMethodToClasses, removeClasses} from '../global/dom';
|
|
7
7
|
import IconNG from '../icon-ng/icon-ng';
|
|
8
|
-
import Theme, {applyTheme} from '../global/theme';
|
|
9
8
|
import styles from '../button/button.css';
|
|
10
9
|
import {getButtonClasses} from '../button/button__classes';
|
|
11
10
|
|
|
11
|
+
import {ControlsHeight} from '../global/controls-height';
|
|
12
|
+
|
|
12
13
|
import overrides from './button-ng.css';
|
|
13
14
|
|
|
14
15
|
const {ringIconDefaultColor, iconMarginFix, transcludeSpacer} = overrides;
|
|
@@ -92,7 +93,6 @@ class ButtonController extends RingAngularComponent {
|
|
|
92
93
|
this.updateClasses();
|
|
93
94
|
this.updateIcon();
|
|
94
95
|
});
|
|
95
|
-
$attrs.$observe('theme', this.updateClasses);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
getAttrValue(attribute) {
|
|
@@ -103,13 +103,12 @@ class ButtonController extends RingAngularComponent {
|
|
|
103
103
|
updateClasses = () => {
|
|
104
104
|
const {$attrs} = this.$inject;
|
|
105
105
|
|
|
106
|
-
const theme = this.element.classList.contains(styles.light) ? Theme.LIGHT : Theme.DARK;
|
|
107
|
-
|
|
108
106
|
const foreignClasses = [...this.element.classList].filter(name => !buttonClassesMap[name]);
|
|
109
107
|
|
|
110
108
|
this.element.className = classNames(
|
|
111
109
|
foreignClasses,
|
|
112
110
|
getButtonClasses({
|
|
111
|
+
height: ControlsHeight.S,
|
|
113
112
|
className: styles.button,
|
|
114
113
|
active: this.getAttrValue($attrs.active),
|
|
115
114
|
disabled: this.getAttrValue($attrs.disabled),
|
|
@@ -120,8 +119,7 @@ class ButtonController extends RingAngularComponent {
|
|
|
120
119
|
inline: this.getAttrValue($attrs.inline),
|
|
121
120
|
danger: this.getAttrValue($attrs.danger),
|
|
122
121
|
delayed: this.getAttrValue($attrs.delayed),
|
|
123
|
-
icon: $attrs.icon
|
|
124
|
-
theme
|
|
122
|
+
icon: $attrs.icon
|
|
125
123
|
}),
|
|
126
124
|
{
|
|
127
125
|
// Some overrides for angular buttons
|
|
@@ -169,24 +167,13 @@ class ButtonController extends RingAngularComponent {
|
|
|
169
167
|
};
|
|
170
168
|
}
|
|
171
169
|
|
|
172
|
-
function changeTheme(element, data) {
|
|
173
|
-
return applyTheme({
|
|
174
|
-
element,
|
|
175
|
-
prevTheme: data.prevTheme && styles[data.prevTheme] || styles.light,
|
|
176
|
-
currentTheme: styles[data.currentTheme]
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
|
|
180
170
|
function createButtonDirective(tagName) {
|
|
181
171
|
return () => ({
|
|
182
172
|
restrict: 'E',
|
|
183
173
|
transclude: true,
|
|
184
174
|
replace: true,
|
|
185
|
-
require: {
|
|
186
|
-
rgThemeCtrl: '?^^rgTheme'
|
|
187
|
-
},
|
|
188
175
|
template: `
|
|
189
|
-
<${tagName} class="${styles.button}
|
|
176
|
+
<${tagName} class="${styles.button}">
|
|
190
177
|
<span class="${styles.content}"
|
|
191
178
|
><rg-icon class="${classNames(styles.icon, overrides.iconNg, iconMarginFix)}"></rg-icon
|
|
192
179
|
><ng-transclude></ng-transclude
|
|
@@ -194,13 +181,7 @@ function createButtonDirective(tagName) {
|
|
|
194
181
|
><div class="js-button-loader"></div>
|
|
195
182
|
</${tagName}>
|
|
196
183
|
`,
|
|
197
|
-
controller: ButtonController
|
|
198
|
-
link: (scope, element, attrs, {rgThemeCtrl}) => {
|
|
199
|
-
if (rgThemeCtrl) {
|
|
200
|
-
changeTheme(element[0], {currentTheme: rgThemeCtrl.theme});
|
|
201
|
-
rgThemeCtrl.on('change', (event, data) => changeTheme(element[0], data));
|
|
202
|
-
}
|
|
203
|
-
}
|
|
184
|
+
controller: ButtonController
|
|
204
185
|
});
|
|
205
186
|
}
|
|
206
187
|
|
|
File without changes
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@import "../global/variables.css";
|
|
2
2
|
|
|
3
3
|
@value unit from "../global/global.css";
|
|
4
|
+
@value button from "../button/button.css";
|
|
4
5
|
|
|
5
6
|
.buttonToolbar {
|
|
6
7
|
display: inline-block;
|
|
@@ -8,6 +9,7 @@
|
|
|
8
9
|
white-space: nowrap;
|
|
9
10
|
|
|
10
11
|
font-size: 0;
|
|
12
|
+
line-height: 0;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
.buttonToolbar > button,
|
|
File without changes
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
pointer-events: none;
|
|
37
37
|
|
|
38
38
|
border: 1px solid var(--ring-borders-color);
|
|
39
|
-
border-radius:
|
|
39
|
+
border-radius: var(--ring-border-radius-small);
|
|
40
40
|
background-color: var(--ring-content-background-color);
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -46,9 +46,8 @@
|
|
|
46
46
|
width: calc(unit * 2);
|
|
47
47
|
height: calc(unit * 2);
|
|
48
48
|
|
|
49
|
-
transition: opacity var(--ring-fast-ease), transform var(--ring-fast-ease);
|
|
50
|
-
|
|
51
49
|
opacity: 0;
|
|
50
|
+
color: var(--ring-white-text-color);
|
|
52
51
|
|
|
53
52
|
& svg {
|
|
54
53
|
position: absolute;
|
|
@@ -60,8 +59,8 @@
|
|
|
60
59
|
.check {
|
|
61
60
|
composes: icon;
|
|
62
61
|
|
|
63
|
-
top:
|
|
64
|
-
left: 1px;
|
|
62
|
+
top: -1px;
|
|
63
|
+
left: -1px;
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
.minus {
|
|
@@ -90,18 +89,16 @@
|
|
|
90
89
|
&:checked + .cell,
|
|
91
90
|
&:indeterminate[checked] + .cell,
|
|
92
91
|
&:indeterminate[data-checked="true"] + .cell {
|
|
93
|
-
border-color:
|
|
94
|
-
background-color: var(--ring-
|
|
92
|
+
border-color: transparent;
|
|
93
|
+
background-color: var(--ring-main-color);
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
/* stylelint-disable-next-line selector-max-specificity */
|
|
98
97
|
&:checked + .cell .check {
|
|
99
|
-
transform: translateY(unit);
|
|
100
|
-
|
|
101
98
|
opacity: 1;
|
|
102
99
|
}
|
|
103
100
|
|
|
104
|
-
&:focus + .cell,
|
|
101
|
+
&:global(.focus-visible) + .cell,
|
|
105
102
|
&.focus + .cell {
|
|
106
103
|
transition: background-color var(--ring-ease);
|
|
107
104
|
|
|
@@ -120,14 +117,20 @@
|
|
|
120
117
|
|
|
121
118
|
/* stylelint-disable-next-line selector-max-specificity */
|
|
122
119
|
&[disabled][disabled] + .cell {
|
|
123
|
-
border-color: var(--ring-
|
|
124
|
-
background-color: var(--ring-
|
|
120
|
+
border-color: var(--ring-border-unselected-disabled-color);
|
|
121
|
+
background-color: var(--ring-disabled-background-color);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* stylelint-disable-next-line selector-max-specificity */
|
|
125
|
+
&[disabled]:checked + .cell,
|
|
126
|
+
&[disabled]:indeterminate + .cell {
|
|
127
|
+
border-color: var(--ring-border-disabled-color);
|
|
125
128
|
}
|
|
126
129
|
|
|
127
130
|
/* stylelint-disable-next-line selector-max-specificity */
|
|
128
131
|
&[disabled]:checked + .cell .check,
|
|
129
132
|
&[disabled]:indeterminate + .cell .minus {
|
|
130
|
-
|
|
133
|
+
color: var(--ring-border-disabled-color);
|
|
131
134
|
}
|
|
132
135
|
|
|
133
136
|
/* stylelint-disable-next-line selector-max-specificity */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import checkmarkIcon from '@jetbrains/icons/checkmark';
|
|
4
|
+
import checkmarkIcon from '@jetbrains/icons/checkmark-14px';
|
|
5
5
|
import minusIcon from '@jetbrains/icons/remove-10px';
|
|
6
6
|
import Icon from '../icon/icon';
|
|
7
7
|
import styles from './checkbox.css';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -31,12 +31,10 @@ export default class DataListContainer<T extends SelectionItem> extends Componen
|
|
|
31
31
|
onMouseMove: () => void;
|
|
32
32
|
onKeyDown: (e: KeyboardEvent) => void;
|
|
33
33
|
render(): JSX.Element;
|
|
34
|
-
context:
|
|
34
|
+
context: unknown;
|
|
35
35
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
36
36
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
37
|
-
readonly props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T
|
|
38
|
-
children?: React.ReactNode;
|
|
39
|
-
}>;
|
|
37
|
+
readonly props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>;
|
|
40
38
|
refs: {
|
|
41
39
|
[key: string]: React.ReactInstance;
|
|
42
40
|
};
|
|
@@ -60,12 +58,10 @@ export default class DataListContainer<T extends SelectionItem> extends Componen
|
|
|
60
58
|
onMouseMove: () => void;
|
|
61
59
|
onKeyDown: (e: KeyboardEvent) => void;
|
|
62
60
|
render(): JSX.Element;
|
|
63
|
-
context:
|
|
61
|
+
context: unknown;
|
|
64
62
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
65
63
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
66
|
-
readonly props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T
|
|
67
|
-
children?: React.ReactNode;
|
|
68
|
-
}>;
|
|
64
|
+
readonly props: Readonly<import("../table/disable-hover-hoc").DisableHoverProps<import("../table/selection-shortcuts-hoc").SelectionShortcutsProps<T, FocusableProps<T>>>>;
|
|
69
65
|
refs: {
|
|
70
66
|
[key: string]: React.ReactInstance;
|
|
71
67
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import Input from '../input/input';
|
|
5
|
+
import { ControlsHeight } from '../global/controls-height';
|
|
5
6
|
import { dateType } from './consts';
|
|
6
7
|
import styles from './date-picker.css';
|
|
7
8
|
export default class DateInput extends React.PureComponent {
|
|
@@ -92,6 +93,6 @@ export default class DateInput extends React.PureComponent {
|
|
|
92
93
|
}
|
|
93
94
|
})();
|
|
94
95
|
const classes = classNames(styles.filter, styles[`${name}Input`], divider && styles[`${name}InputWithDivider`], 'ring-js-shortcuts');
|
|
95
|
-
return (<Input autoComplete="off" borderless data-name={name} inputRef={this.inputRef} className={classes} value={displayText} onChange={this.handleChange} onFocus={onActivate} onKeyDown={this.handleKeyDown} onClear={onClear} placeholder={placeholder}/>);
|
|
96
|
+
return (<Input autoComplete="off" borderless height={ControlsHeight.L} data-name={name} inputRef={this.inputRef} className={classes} value={displayText} onChange={this.handleChange} onFocus={onActivate} onKeyDown={this.handleKeyDown} onClear={onClear} placeholder={placeholder}/>);
|
|
96
97
|
}
|
|
97
98
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import "../global/variables.css";
|
|
2
|
+
@import "../global/global.css";
|
|
2
3
|
|
|
3
4
|
@value unit from "../global/global.css";
|
|
4
5
|
@value cellSize: calc(unit * 3);
|
|
@@ -94,6 +95,7 @@
|
|
|
94
95
|
.fromInputWithDivider {
|
|
95
96
|
&::after {
|
|
96
97
|
position: absolute;
|
|
98
|
+
top: 0;
|
|
97
99
|
right: unit;
|
|
98
100
|
|
|
99
101
|
content: "—";
|
|
@@ -243,7 +245,7 @@
|
|
|
243
245
|
}
|
|
244
246
|
|
|
245
247
|
.current.current {
|
|
246
|
-
color: var(--ring-
|
|
248
|
+
color: var(--ring-white-text-color);
|
|
247
249
|
border-radius: var(--ring-border-radius);
|
|
248
250
|
background-color: var(--ring-main-color);
|
|
249
251
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@import "../global/variables.css";
|
|
2
2
|
|
|
3
3
|
@value unit from "../global/global.css";
|
|
4
|
+
@value header from "../island/island.css";
|
|
4
5
|
|
|
5
6
|
.container {
|
|
6
7
|
position: fixed;
|
|
@@ -39,8 +40,7 @@
|
|
|
39
40
|
|
|
40
41
|
& .panel {
|
|
41
42
|
margin-top: 0;
|
|
42
|
-
padding
|
|
43
|
-
padding-left: calc(unit * 4);
|
|
43
|
+
padding: calc(unit * 2) calc(unit * 4) calc(unit * 4);
|
|
44
44
|
|
|
45
45
|
border-top: none;
|
|
46
46
|
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.content.content {
|
|
57
|
-
box-shadow:
|
|
57
|
+
box-shadow: var(--ring-dialog-shadow);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.clickableOverlay {
|
|
@@ -117,3 +117,10 @@
|
|
|
117
117
|
pointer-events: initial;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
+
|
|
121
|
+
.container .header {
|
|
122
|
+
padding-top: calc(unit * 4);
|
|
123
|
+
|
|
124
|
+
font-size: 24px;
|
|
125
|
+
line-height: 28px;
|
|
126
|
+
}
|