@jetbrains/ring-ui 6.0.3-beta.0 → 6.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -6
- package/components/alert/alert.css +12 -13
- package/components/alert/container.css +4 -6
- package/components/alert-service/alert-service.d.ts +4 -2
- package/components/alert-service/alert-service.js +3 -2
- package/components/alert-service/alert-service.stories.css +0 -3
- package/components/analytics/analytics.d.ts +0 -20
- package/components/analytics/analytics.js +0 -64
- package/components/analytics/analytics__custom-plugin.d.ts +0 -1
- package/components/analytics/analytics__custom-plugin.js +0 -3
- package/components/auth/down-notification.css +2 -4
- package/components/auth/request-builder.d.ts +1 -0
- package/components/auth-dialog/auth-dialog.css +10 -12
- package/components/auth-dialog-service/auth-dialog-service.d.ts +1 -0
- package/components/auth-dialog-service/auth-dialog-service.js +4 -3
- package/components/badge/badge.css +1 -3
- package/components/button/button.css +13 -14
- package/components/button-group/button-group.css +22 -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/confirm/confirm.css +1 -3
- package/components/confirm-service/confirm-service.d.ts +1 -1
- package/components/confirm-service/confirm-service.js +5 -4
- package/components/content-layout/content-layout.css +7 -7
- package/components/data-list/data-list.css +4 -5
- package/components/date-picker/consts.d.ts +0 -1
- package/components/date-picker/date-input.d.ts +0 -1
- package/components/date-picker/date-input.js +2 -3
- package/components/date-picker/date-picker.css +40 -41
- package/components/date-picker/date-picker.js +2 -2
- package/components/date-picker/date-popup.d.ts +0 -1
- package/components/date-picker/date-popup.js +3 -4
- package/components/dialog/dialog.css +15 -12
- package/components/dropdown-menu/dropdown-menu.d.ts +11 -1
- package/components/editable-heading/editable-heading.css +35 -8
- package/components/editable-heading/editable-heading.d.ts +2 -1
- package/components/editable-heading/editable-heading.js +45 -6
- package/components/error-bubble/error-bubble-legacy.css +6 -8
- package/components/error-bubble/error-bubble.css +6 -8
- package/components/footer/footer.css +6 -8
- package/components/form/form.css +31 -33
- package/components/form/form.stories.js +109 -89
- package/components/global/global.css +1 -7
- package/components/global/react-render-adapter.d.ts +1 -29
- package/components/global/react-render-adapter.js +3 -24
- package/components/global/rerender-hoc.d.ts +4 -35
- package/components/global/rerender-hoc.js +10 -24
- package/components/global/variables.css +1 -3
- package/components/global/variables.d.ts +0 -1
- package/components/global/variables_dark.css +2 -4
- package/components/grid/grid.css +6 -6
- package/components/grid/row.js +3 -3
- package/components/group/group.css +1 -3
- package/components/header/header.css +12 -14
- package/components/header/profile.js +1 -1
- package/components/header/services-link.js +3 -5
- package/components/header/services.css +12 -14
- package/components/header/smart-services.d.ts +2 -1
- package/components/heading/heading.css +24 -6
- package/components/http/http.d.ts +6 -6
- package/components/http/http.js +0 -12
- package/components/hub-source/hub-source.d.ts +8 -6
- package/components/icon/icon.css +2 -4
- package/components/input/input-legacy.css +2 -4
- package/components/input/input.css +8 -10
- package/components/input-size/input-size.css +4 -6
- package/components/input-size/input-size.stories.js +50 -49
- package/components/island/header.js +1 -1
- package/components/island/island.css +6 -7
- package/components/island-legacy/island-legacy.css +6 -8
- package/components/line/line.css +1 -3
- package/components/link/link.css +15 -39
- package/components/link/link.d.ts +6 -16
- package/components/link/link.js +6 -35
- package/components/list/consts.d.ts +13 -12
- package/components/list/consts.js +11 -15
- package/components/list/list.css +17 -20
- package/components/list/list.d.ts +15 -4
- package/components/list/list.js +9 -7
- package/components/list/list__item.js +3 -2
- package/components/loader/loader.css +1 -3
- package/components/loader/loader__core.js +6 -6
- package/components/loader-inline/loader-inline.css +5 -6
- package/components/login-dialog/login-dialog.css +1 -3
- package/components/login-dialog/service.js +5 -4
- package/components/markdown/markdown.css +53 -3
- package/components/markdown/markdown.d.ts +4 -7
- package/components/markdown/markdown.js +8 -27
- package/components/message/message.css +5 -8
- package/components/old-browsers-message/old-browsers-message.css +2 -4
- package/components/pager/pager.css +2 -4
- package/components/pager/pager.js +2 -8
- package/components/panel/panel.css +3 -5
- package/components/popup/popup.js +3 -3
- package/components/popup/position.js +4 -1
- package/components/popup-menu/popup-menu.d.ts +22 -2
- package/components/progress-bar/progress-bar.css +9 -4
- package/components/progress-bar/progress-bar.d.ts +6 -0
- package/components/progress-bar/progress-bar.js +9 -3
- package/components/query-assist/query-assist.css +3 -4
- package/components/query-assist/query-assist.d.ts +3 -28
- package/components/query-assist/query-assist.js +12 -5
- package/components/radio/radio.css +7 -10
- package/components/select/select-popup.css +23 -11
- package/components/select/select.css +13 -14
- package/components/select/select.d.ts +1 -28
- package/components/select/select.js +22 -22
- package/components/select/select__popup.js +5 -2
- package/components/sidebar/sidebar.css +13 -15
- package/components/table/table.css +15 -17
- package/components/table/table.js +1 -1
- package/components/table-legacy/table-legacy.css +22 -24
- package/components/table-legacy/table-legacy__toolbar.css +2 -4
- package/components/tabs/collapsible-more.js +1 -1
- package/components/tabs/collapsible-tab.js +1 -1
- package/components/tabs/collapsible-tabs.js +2 -2
- package/components/tabs/dumb-tabs.js +1 -1
- package/components/tabs/tab-link.js +7 -7
- package/components/tabs/tabs.css +3 -4
- package/components/tag/tag.css +12 -13
- package/components/tags-input/tags-input.css +1 -2
- package/components/tags-input/tags-input.d.ts +1 -28
- package/components/toggle/toggle.css +21 -22
- package/components/tooltip/tooltip.css +3 -5
- package/components/user-agreement/service.d.ts +3 -1
- package/components/user-agreement/service.js +8 -7
- package/components/user-agreement/user-agreement.css +2 -2
- package/components/user-agreement/user-agreement.d.ts +2 -3
- package/components/user-agreement/user-agreement.js +2 -4
- package/components/user-card/card.d.ts +2 -3
- package/components/user-card/card.js +8 -8
- package/components/user-card/user-card.css +3 -5
- package/package.json +89 -96
- package/typings.d.ts +0 -54
- package/webpack.config.js +1 -24
- package/components/analytics/analytics__fus-plugin.d.ts +0 -52
- package/components/analytics/analytics__fus-plugin.js +0 -22
- package/components/analytics/analytics__ga-plugin.d.ts +0 -27
- package/components/analytics/analytics__ga-plugin.js +0 -89
- package/components/analytics/analytics__plugin-utils.d.ts +0 -31
- package/components/analytics/analytics__plugin-utils.js +0 -92
- package/components/auth/landing-entry.d.ts +0 -3
- package/components/auth/landing-entry.js +0 -2
- package/components/auth/landing.d.ts +0 -2
- package/components/auth/landing.html +0 -12
- package/components/auth/landing.js +0 -26
- package/components/link/link__legacy.css +0 -29
- package/components/markdown/code.d.ts +0 -7
- package/components/markdown/code.js +0 -17
- package/components/markdown/heading.d.ts +0 -11
- package/components/markdown/heading.js +0 -9
- package/components/markdown/link.d.ts +0 -12
- package/components/markdown/link.js +0 -10
- package/dist/_helpers/_rollupPluginBabelHelpers.js +0 -657
- package/dist/_helpers/anchor.js +0 -31
- package/dist/_helpers/badge.js +0 -3
- package/dist/_helpers/button__classes.js +0 -24
- package/dist/_helpers/caption.js +0 -31
- package/dist/_helpers/card.js +0 -132
- package/dist/_helpers/date-picker.js +0 -3
- package/dist/_helpers/dialog__body-scroll-preventer.js +0 -55
- package/dist/_helpers/grid.js +0 -3
- package/dist/_helpers/header.js +0 -3
- package/dist/_helpers/icon__svg.js +0 -73
- package/dist/_helpers/input.js +0 -229
- package/dist/_helpers/island.js +0 -3
- package/dist/_helpers/list.js +0 -3
- package/dist/_helpers/query-assist__suggestions.js +0 -102
- package/dist/_helpers/select__filter.js +0 -94
- package/dist/_helpers/services-link.js +0 -50
- package/dist/_helpers/sidebar.js +0 -117
- package/dist/_helpers/tab-link.js +0 -36
- package/dist/_helpers/table.js +0 -3
- package/dist/_helpers/theme.js +0 -93
- package/dist/_helpers/title.js +0 -100
- package/dist/alert/alert.d.ts +0 -113
- package/dist/alert/alert.js +0 -281
- package/dist/alert/container.d.ts +0 -15
- package/dist/alert/container.js +0 -52
- package/dist/alert-service/alert-service.d.ts +0 -34
- package/dist/alert-service/alert-service.js +0 -221
- package/dist/analytics/analytics.d.ts +0 -38
- package/dist/analytics/analytics.js +0 -108
- package/dist/analytics/analytics__custom-plugin.d.ts +0 -29
- package/dist/analytics/analytics__custom-plugin.js +0 -95
- package/dist/analytics/analytics__fus-plugin.d.ts +0 -52
- package/dist/analytics/analytics__fus-plugin.js +0 -38
- package/dist/analytics/analytics__ga-plugin.d.ts +0 -27
- package/dist/analytics/analytics__ga-plugin.js +0 -118
- package/dist/analytics/analytics__plugin-utils.d.ts +0 -31
- package/dist/analytics/analytics__plugin-utils.js +0 -101
- package/dist/auth/auth.d.ts +0 -3
- package/dist/auth/auth.js +0 -135
- package/dist/auth/auth__core.d.ts +0 -236
- package/dist/auth/auth__core.js +0 -1656
- package/dist/auth/background-flow.d.ts +0 -31
- package/dist/auth/background-flow.js +0 -148
- package/dist/auth/down-notification.d.ts +0 -15
- package/dist/auth/down-notification.js +0 -158
- package/dist/auth/iframe-flow.d.ts +0 -20
- package/dist/auth/iframe-flow.js +0 -197
- package/dist/auth/landing-entry.d.ts +0 -3
- package/dist/auth/landing-entry.js +0 -5
- package/dist/auth/landing.d.ts +0 -2
- package/dist/auth/landing.js +0 -157
- package/dist/auth/request-builder.d.ts +0 -47
- package/dist/auth/request-builder.js +0 -103
- package/dist/auth/response-parser.d.ts +0 -70
- package/dist/auth/response-parser.js +0 -139
- package/dist/auth/storage.d.ts +0 -112
- package/dist/auth/storage.js +0 -427
- package/dist/auth/token-validator.d.ts +0 -93
- package/dist/auth/token-validator.js +0 -269
- package/dist/auth/window-flow.d.ts +0 -26
- package/dist/auth/window-flow.js +0 -155
- package/dist/auth-dialog/auth-dialog.d.ts +0 -60
- package/dist/auth-dialog/auth-dialog.js +0 -222
- package/dist/auth-dialog-service/auth-dialog-service.d.ts +0 -5
- package/dist/auth-dialog-service/auth-dialog-service.js +0 -92
- package/dist/avatar/avatar-example-datauri.d.ts +0 -1
- package/dist/avatar/avatar-example-datauri.js +0 -4
- package/dist/avatar/avatar.d.ts +0 -52
- package/dist/avatar/avatar.js +0 -184
- package/dist/avatar/fallback-avatar.d.ts +0 -17
- package/dist/avatar/fallback-avatar.js +0 -154
- package/dist/badge/badge.d.ts +0 -24
- package/dist/badge/badge.js +0 -55
- package/dist/button/button.d.ts +0 -67
- package/dist/button/button.js +0 -132
- package/dist/button/button__classes.d.ts +0 -2
- package/dist/button/button__classes.js +0 -3
- package/dist/button-group/button-group.d.ts +0 -18
- package/dist/button-group/button-group.js +0 -48
- package/dist/button-group/caption.d.ts +0 -8
- package/dist/button-group/caption.js +0 -5
- package/dist/button-set/button-set.d.ts +0 -16
- package/dist/button-set/button-set.js +0 -47
- package/dist/button-toolbar/button-toolbar.d.ts +0 -16
- package/dist/button-toolbar/button-toolbar.js +0 -46
- package/dist/caret/caret.d.ts +0 -66
- package/dist/caret/caret.js +0 -261
- package/dist/checkbox/checkbox.d.ts +0 -45
- package/dist/checkbox/checkbox.js +0 -131
- package/dist/clipboard/clipboard-fallback.d.ts +0 -2
- package/dist/clipboard/clipboard-fallback.js +0 -42
- package/dist/clipboard/clipboard.d.ts +0 -5
- package/dist/clipboard/clipboard.js +0 -185
- package/dist/code/code.d.ts +0 -43
- package/dist/code/code.js +0 -191
- package/dist/confirm/confirm.d.ts +0 -48
- package/dist/confirm/confirm.js +0 -155
- package/dist/confirm-service/confirm-service.d.ts +0 -21
- package/dist/confirm-service/confirm-service.js +0 -142
- package/dist/content-layout/content-layout.d.ts +0 -26
- package/dist/content-layout/content-layout.js +0 -77
- package/dist/content-layout/sidebar.d.ts +0 -31
- package/dist/content-layout/sidebar.js +0 -7
- package/dist/contenteditable/contenteditable.d.ts +0 -47
- package/dist/contenteditable/contenteditable.js +0 -84
- package/dist/control-label/control-label.d.ts +0 -11
- package/dist/control-label/control-label.js +0 -32
- package/dist/data-list/data-list.d.ts +0 -85
- package/dist/data-list/data-list.js +0 -249
- package/dist/data-list/data-list.mock.d.ts +0 -16
- package/dist/data-list/data-list.mock.js +0 -197
- package/dist/data-list/item.d.ts +0 -50
- package/dist/data-list/item.js +0 -236
- package/dist/data-list/selection.d.ts +0 -16
- package/dist/data-list/selection.js +0 -149
- package/dist/data-list/title.d.ts +0 -26
- package/dist/data-list/title.js +0 -29
- package/dist/date-picker/consts.d.ts +0 -99
- package/dist/date-picker/consts.js +0 -46
- package/dist/date-picker/date-input.d.ts +0 -48
- package/dist/date-picker/date-input.js +0 -180
- package/dist/date-picker/date-picker.d.ts +0 -77
- package/dist/date-picker/date-picker.js +0 -406
- package/dist/date-picker/date-popup.d.ts +0 -56
- package/dist/date-picker/date-popup.js +0 -488
- package/dist/date-picker/day.d.ts +0 -30
- package/dist/date-picker/day.js +0 -119
- package/dist/date-picker/formats.d.ts +0 -2
- package/dist/date-picker/formats.js +0 -3
- package/dist/date-picker/month-names.d.ts +0 -13
- package/dist/date-picker/month-names.js +0 -109
- package/dist/date-picker/month-slider.d.ts +0 -29
- package/dist/date-picker/month-slider.js +0 -92
- package/dist/date-picker/month.d.ts +0 -14
- package/dist/date-picker/month.js +0 -58
- package/dist/date-picker/months.d.ts +0 -11
- package/dist/date-picker/months.js +0 -134
- package/dist/date-picker/weekdays.d.ts +0 -13
- package/dist/date-picker/weekdays.js +0 -38
- package/dist/date-picker/years.d.ts +0 -25
- package/dist/date-picker/years.js +0 -133
- package/dist/dialog/dialog.d.ts +0 -64
- package/dist/dialog/dialog.js +0 -238
- package/dist/dialog/dialog__body-scroll-preventer.d.ts +0 -9
- package/dist/dialog/dialog__body-scroll-preventer.js +0 -7
- package/dist/dropdown/anchor.d.ts +0 -11
- package/dist/dropdown/anchor.js +0 -25
- package/dist/dropdown/dropdown.d.ts +0 -87
- package/dist/dropdown/dropdown.js +0 -246
- package/dist/dropdown-menu/dropdown-menu.d.ts +0 -26
- package/dist/dropdown-menu/dropdown-menu.js +0 -202
- package/dist/editable-heading/editable-heading.d.ts +0 -31
- package/dist/editable-heading/editable-heading.js +0 -203
- package/dist/error-bubble/error-bubble.d.ts +0 -18
- package/dist/error-bubble/error-bubble.js +0 -90
- package/dist/error-message/error-message.d.ts +0 -27
- package/dist/error-message/error-message.js +0 -79
- package/dist/footer/footer.d.ts +0 -28
- package/dist/footer/footer.js +0 -118
- package/dist/global/compose.d.ts +0 -7
- package/dist/global/compose.js +0 -17
- package/dist/global/composeRefs.d.ts +0 -3
- package/dist/global/composeRefs.js +0 -19
- package/dist/global/controls-height.d.ts +0 -9
- package/dist/global/controls-height.js +0 -19
- package/dist/global/create-stateful-context.d.ts +0 -27
- package/dist/global/create-stateful-context.js +0 -49
- package/dist/global/data-tests.d.ts +0 -3
- package/dist/global/data-tests.js +0 -30
- package/dist/global/dom.d.ts +0 -37
- package/dist/global/dom.js +0 -153
- package/dist/global/focus-sensor-hoc.d.ts +0 -19
- package/dist/global/focus-sensor-hoc.js +0 -165
- package/dist/global/fuzzy-highlight.d.ts +0 -11
- package/dist/global/fuzzy-highlight.js +0 -90
- package/dist/global/get-event-key.d.ts +0 -2
- package/dist/global/get-event-key.js +0 -101
- package/dist/global/get-uid.d.ts +0 -1
- package/dist/global/get-uid.js +0 -22
- package/dist/global/inject-styles.d.ts +0 -3
- package/dist/global/inject-styles.js +0 -22
- package/dist/global/linear-function.d.ts +0 -6
- package/dist/global/linear-function.js +0 -15
- package/dist/global/listeners.d.ts +0 -8
- package/dist/global/listeners.js +0 -59
- package/dist/global/memoize.d.ts +0 -1
- package/dist/global/memoize.js +0 -24
- package/dist/global/normalize-indent.d.ts +0 -1
- package/dist/global/normalize-indent.js +0 -61
- package/dist/global/promise-with-timeout.d.ts +0 -5
- package/dist/global/promise-with-timeout.js +0 -19
- package/dist/global/prop-types.d.ts +0 -4
- package/dist/global/prop-types.js +0 -9
- package/dist/global/react-dom-renderer.d.ts +0 -16
- package/dist/global/react-dom-renderer.js +0 -55
- package/dist/global/react-render-adapter.d.ts +0 -29
- package/dist/global/react-render-adapter.js +0 -36
- package/dist/global/rerender-hoc.d.ts +0 -41
- package/dist/global/rerender-hoc.js +0 -58
- package/dist/global/schedule-raf.d.ts +0 -1
- package/dist/global/schedule-raf.js +0 -28
- package/dist/global/sniffer.d.ts +0 -3
- package/dist/global/sniffer.js +0 -6
- package/dist/global/theme.d.ts +0 -21
- package/dist/global/theme.js +0 -44
- package/dist/global/trivial-template-tag.d.ts +0 -1
- package/dist/global/trivial-template-tag.js +0 -21
- package/dist/global/typescript-utils.d.ts +0 -2
- package/dist/global/typescript-utils.js +0 -8
- package/dist/global/url.d.ts +0 -57
- package/dist/global/url.js +0 -142
- package/dist/global/use-event-callback.d.ts +0 -1
- package/dist/global/use-event-callback.js +0 -17
- package/dist/global/variables.d.ts +0 -90
- package/dist/global/variables.js +0 -1
- package/dist/grid/col.d.ts +0 -31
- package/dist/grid/col.js +0 -81
- package/dist/grid/grid.d.ts +0 -14
- package/dist/grid/grid.js +0 -49
- package/dist/grid/row.d.ts +0 -40
- package/dist/grid/row.js +0 -68
- package/dist/group/group.d.ts +0 -12
- package/dist/group/group.js +0 -39
- package/dist/header/header.d.ts +0 -34
- package/dist/header/header.js +0 -191
- package/dist/header/logo.d.ts +0 -14
- package/dist/header/logo.js +0 -52
- package/dist/header/profile.d.ts +0 -75
- package/dist/header/profile.js +0 -258
- package/dist/header/services-link.d.ts +0 -25
- package/dist/header/services-link.js +0 -18
- package/dist/header/services.d.ts +0 -33
- package/dist/header/services.js +0 -173
- package/dist/header/smart-profile.d.ts +0 -36
- package/dist/header/smart-profile.js +0 -307
- package/dist/header/smart-services.d.ts +0 -25
- package/dist/header/smart-services.js +0 -194
- package/dist/header/tray-icon.d.ts +0 -32
- package/dist/header/tray-icon.js +0 -56
- package/dist/header/tray.d.ts +0 -9
- package/dist/header/tray.js +0 -41
- package/dist/heading/heading.d.ts +0 -25
- package/dist/heading/heading.js +0 -68
- package/dist/http/http.d.ts +0 -61
- package/dist/http/http.js +0 -399
- package/dist/http/http.mock.d.ts +0 -20
- package/dist/http/http.mock.js +0 -115
- package/dist/hub-source/hub-source.d.ts +0 -42
- package/dist/hub-source/hub-source.js +0 -217
- package/dist/hub-source/hub-source__user.d.ts +0 -4
- package/dist/hub-source/hub-source__user.js +0 -61
- package/dist/hub-source/hub-source__users-groups.d.ts +0 -24
- package/dist/hub-source/hub-source__users-groups.js +0 -87
- package/dist/i18n/i18n-context.d.ts +0 -13
- package/dist/i18n/i18n-context.js +0 -28
- package/dist/i18n/i18n.d.ts +0 -59
- package/dist/i18n/i18n.js +0 -140
- package/dist/icon/icon.d.ts +0 -43
- package/dist/icon/icon.js +0 -108
- package/dist/icon/icon__constants.d.ts +0 -30
- package/dist/icon/icon__constants.js +0 -34
- package/dist/icon/icon__svg.d.ts +0 -15
- package/dist/icon/icon__svg.js +0 -15
- package/dist/icon/index.d.ts +0 -2
- package/dist/icon/index.js +0 -18
- package/dist/input/input.d.ts +0 -77
- package/dist/input/input.js +0 -36
- package/dist/island/adaptive-island-hoc.d.ts +0 -61
- package/dist/island/adaptive-island-hoc.js +0 -53
- package/dist/island/content.d.ts +0 -43
- package/dist/island/content.js +0 -147
- package/dist/island/header.d.ts +0 -8
- package/dist/island/header.js +0 -97
- package/dist/island/island.d.ts +0 -78
- package/dist/island/island.js +0 -58
- package/dist/island-legacy/content-legacy.d.ts +0 -10
- package/dist/island-legacy/content-legacy.js +0 -34
- package/dist/island-legacy/header-legacy.d.ts +0 -10
- package/dist/island-legacy/header-legacy.js +0 -36
- package/dist/island-legacy/island-legacy.d.ts +0 -12
- package/dist/island-legacy/island-legacy.js +0 -36
- package/dist/link/clickableLink.d.ts +0 -20
- package/dist/link/clickableLink.js +0 -69
- package/dist/link/link.d.ts +0 -148
- package/dist/link/link.js +0 -122
- package/dist/list/consts.d.ts +0 -76
- package/dist/list/consts.js +0 -31
- package/dist/list/list.d.ts +0 -194
- package/dist/list/list.js +0 -801
- package/dist/list/list__custom.d.ts +0 -6
- package/dist/list/list__custom.js +0 -89
- package/dist/list/list__hint.d.ts +0 -15
- package/dist/list/list__hint.js +0 -33
- package/dist/list/list__item.d.ts +0 -8
- package/dist/list/list__item.js +0 -230
- package/dist/list/list__link.d.ts +0 -9
- package/dist/list/list__link.js +0 -78
- package/dist/list/list__separator.d.ts +0 -5
- package/dist/list/list__separator.js +0 -37
- package/dist/list/list__title.d.ts +0 -5
- package/dist/list/list__title.js +0 -46
- package/dist/list/list__users-groups-source.d.ts +0 -27
- package/dist/list/list__users-groups-source.js +0 -197
- package/dist/loader/loader.d.ts +0 -28
- package/dist/loader/loader.js +0 -95
- package/dist/loader/loader__core.d.ts +0 -75
- package/dist/loader/loader__core.js +0 -317
- package/dist/loader-inline/loader-inline.d.ts +0 -18
- package/dist/loader-inline/loader-inline.js +0 -50
- package/dist/loader-screen/loader-screen.d.ts +0 -17
- package/dist/loader-screen/loader-screen.js +0 -64
- package/dist/login-dialog/login-dialog.d.ts +0 -47
- package/dist/login-dialog/login-dialog.js +0 -218
- package/dist/login-dialog/service.d.ts +0 -2
- package/dist/login-dialog/service.js +0 -99
- package/dist/markdown/code.d.ts +0 -7
- package/dist/markdown/code.js +0 -54
- package/dist/markdown/heading.d.ts +0 -11
- package/dist/markdown/heading.js +0 -20
- package/dist/markdown/link.d.ts +0 -12
- package/dist/markdown/link.js +0 -34
- package/dist/markdown/markdown.d.ts +0 -15
- package/dist/markdown/markdown.js +0 -101
- package/dist/message/message.d.ts +0 -55
- package/dist/message/message.js +0 -255
- package/dist/old-browsers-message/old-browsers-message.d.ts +0 -2
- package/dist/old-browsers-message/old-browsers-message.js +0 -93
- package/dist/old-browsers-message/old-browsers-message__stop.d.ts +0 -1
- package/dist/old-browsers-message/old-browsers-message__stop.js +0 -12
- package/dist/old-browsers-message/white-list.d.ts +0 -2
- package/dist/old-browsers-message/white-list.js +0 -36
- package/dist/pager/pager.d.ts +0 -78
- package/dist/pager/pager.js +0 -394
- package/dist/panel/panel.d.ts +0 -12
- package/dist/panel/panel.js +0 -39
- package/dist/permissions/permissions.d.ts +0 -111
- package/dist/permissions/permissions.js +0 -221
- package/dist/permissions/permissions__cache.d.ts +0 -93
- package/dist/permissions/permissions__cache.js +0 -257
- package/dist/popup/popup.consts.d.ts +0 -37
- package/dist/popup/popup.consts.js +0 -44
- package/dist/popup/popup.d.ts +0 -147
- package/dist/popup/popup.js +0 -420
- package/dist/popup/popup.target.d.ts +0 -7
- package/dist/popup/popup.target.js +0 -24
- package/dist/popup/position.d.ts +0 -30
- package/dist/popup/position.js +0 -260
- package/dist/popup-menu/popup-menu.d.ts +0 -60
- package/dist/popup-menu/popup-menu.js +0 -144
- package/dist/progress-bar/progress-bar.d.ts +0 -58
- package/dist/progress-bar/progress-bar.js +0 -111
- package/dist/query-assist/query-assist.d.ts +0 -331
- package/dist/query-assist/query-assist.js +0 -1080
- package/dist/query-assist/query-assist__suggestions.d.ts +0 -29
- package/dist/query-assist/query-assist__suggestions.js +0 -77
- package/dist/radio/radio.d.ts +0 -18
- package/dist/radio/radio.js +0 -48
- package/dist/radio/radio__item.d.ts +0 -28
- package/dist/radio/radio__item.js +0 -88
- package/dist/select/select.d.ts +0 -303
- package/dist/select/select.js +0 -1283
- package/dist/select/select__filter.d.ts +0 -19
- package/dist/select/select__filter.js +0 -87
- package/dist/select/select__popup.d.ts +0 -166
- package/dist/select/select__popup.js +0 -625
- package/dist/shortcuts/core.d.ts +0 -74
- package/dist/shortcuts/core.js +0 -249
- package/dist/shortcuts/shortcut-title.d.ts +0 -1
- package/dist/shortcuts/shortcut-title.js +0 -56
- package/dist/shortcuts/shortcuts-hoc.d.ts +0 -65
- package/dist/shortcuts/shortcuts-hoc.js +0 -61
- package/dist/shortcuts/shortcuts.d.ts +0 -28
- package/dist/shortcuts/shortcuts.js +0 -92
- package/dist/storage/storage.d.ts +0 -18
- package/dist/storage/storage.js +0 -94
- package/dist/storage/storage__fallback.d.ts +0 -79
- package/dist/storage/storage__fallback.js +0 -254
- package/dist/storage/storage__local.d.ts +0 -38
- package/dist/storage/storage__local.js +0 -219
- package/dist/style.css +0 -1
- package/dist/tab-trap/tab-trap.d.ts +0 -43
- package/dist/tab-trap/tab-trap.js +0 -182
- package/dist/table/cell.d.ts +0 -13
- package/dist/table/cell.js +0 -37
- package/dist/table/disable-hover-hoc.d.ts +0 -64
- package/dist/table/disable-hover-hoc.js +0 -62
- package/dist/table/header-cell.d.ts +0 -43
- package/dist/table/header-cell.js +0 -105
- package/dist/table/header.d.ts +0 -56
- package/dist/table/header.js +0 -150
- package/dist/table/multitable.d.ts +0 -25
- package/dist/table/multitable.js +0 -140
- package/dist/table/row-with-focus-sensor.d.ts +0 -18
- package/dist/table/row-with-focus-sensor.js +0 -119
- package/dist/table/row.d.ts +0 -59
- package/dist/table/row.js +0 -294
- package/dist/table/selection-adapter.d.ts +0 -5
- package/dist/table/selection-adapter.js +0 -14
- package/dist/table/selection-shortcuts-hoc.d.ts +0 -17
- package/dist/table/selection-shortcuts-hoc.js +0 -206
- package/dist/table/selection.d.ts +0 -47
- package/dist/table/selection.js +0 -258
- package/dist/table/smart-table.d.ts +0 -64
- package/dist/table/smart-table.js +0 -151
- package/dist/table/table.d.ts +0 -159
- package/dist/table/table.js +0 -457
- package/dist/tabs/collapsible-more.d.ts +0 -29
- package/dist/tabs/collapsible-more.js +0 -226
- package/dist/tabs/collapsible-tab.d.ts +0 -16
- package/dist/tabs/collapsible-tab.js +0 -89
- package/dist/tabs/collapsible-tabs.d.ts +0 -43
- package/dist/tabs/collapsible-tabs.js +0 -355
- package/dist/tabs/custom-item.d.ts +0 -9
- package/dist/tabs/custom-item.js +0 -11
- package/dist/tabs/dumb-tabs.d.ts +0 -35
- package/dist/tabs/dumb-tabs.js +0 -191
- package/dist/tabs/smart-tabs.d.ts +0 -20
- package/dist/tabs/smart-tabs.js +0 -144
- package/dist/tabs/tab-link.d.ts +0 -18
- package/dist/tabs/tab-link.js +0 -18
- package/dist/tabs/tab.d.ts +0 -27
- package/dist/tabs/tab.js +0 -41
- package/dist/tabs/tabs.d.ts +0 -7
- package/dist/tabs/tabs.js +0 -102
- package/dist/tag/tag.d.ts +0 -64
- package/dist/tag/tag.js +0 -208
- package/dist/tags-input/tags-input.d.ts +0 -165
- package/dist/tags-input/tags-input.js +0 -535
- package/dist/tags-list/tags-list.d.ts +0 -46
- package/dist/tags-list/tags-list.js +0 -103
- package/dist/text/text.d.ts +0 -23
- package/dist/text/text.js +0 -54
- package/dist/toggle/toggle.d.ts +0 -39
- package/dist/toggle/toggle.js +0 -86
- package/dist/tooltip/tooltip.d.ts +0 -65
- package/dist/tooltip/tooltip.js +0 -229
- package/dist/user-agreement/service.d.ts +0 -67
- package/dist/user-agreement/service.js +0 -501
- package/dist/user-agreement/toolbox.eula.d.ts +0 -2
- package/dist/user-agreement/toolbox.eula.js +0 -3
- package/dist/user-agreement/user-agreement.d.ts +0 -61
- package/dist/user-agreement/user-agreement.js +0 -191
- package/dist/user-card/card.d.ts +0 -71
- package/dist/user-card/card.js +0 -82
- package/dist/user-card/smart-user-card-tooltip.d.ts +0 -20
- package/dist/user-card/smart-user-card-tooltip.js +0 -174
- package/dist/user-card/tooltip.d.ts +0 -36
- package/dist/user-card/tooltip.js +0 -146
- package/dist/user-card/user-card.d.ts +0 -11
- package/dist/user-card/user-card.js +0 -87
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import '../input/input-legacy.css';
|
|
2
3
|
import './form.css';
|
|
3
4
|
import '../input-size/input-size.css';
|
|
@@ -12,107 +13,126 @@ export default {
|
|
|
12
13
|
}
|
|
13
14
|
};
|
|
14
15
|
|
|
15
|
-
export const basic = () =>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
export const basic = () => (
|
|
17
|
+
<div style={{width: 700}}>
|
|
18
|
+
<form className="ring-form">
|
|
19
|
+
<span className="ring-form__title">Form Title</span>
|
|
20
|
+
|
|
21
|
+
<div className="ring-form__group">
|
|
22
|
+
<label htmlFor="ring-form-1" className="ring-form__label">Full-Width
|
|
23
|
+
Input</label>
|
|
24
|
+
<div className="ring-form__control">
|
|
25
|
+
<input className="ring-input" id="ring-form-1" type="text"/>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
<div className="ring-form__group">
|
|
30
|
+
<label htmlFor="ring-form-2" className="ring-form__label">Medium Input</label>
|
|
31
|
+
<div className="ring-form__control">
|
|
32
|
+
<input
|
|
33
|
+
className="ring-input ring-input-size_m"
|
|
34
|
+
id="ring-form-2"
|
|
35
|
+
type="text"
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
35
39
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
<div className="ring-form__group">
|
|
41
|
+
<label htmlFor="ring-form-3" className="ring-form__label">Medium Input & Error</label>
|
|
42
|
+
<div className="ring-form__control">
|
|
43
|
+
<input
|
|
44
|
+
className="ring-input ring-input_error ring-input-size_m"
|
|
45
|
+
id="ring-form-3"
|
|
46
|
+
type="text"
|
|
47
|
+
/>
|
|
48
|
+
<div className="ring-error-bubble active">Error bubble</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
44
51
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
<div className="ring-form__group">
|
|
53
|
+
<label htmlFor="ring-form-4" className="ring-form__label">Long Input</label>
|
|
54
|
+
<div className="ring-form__control">
|
|
55
|
+
<input
|
|
56
|
+
className="ring-input ring-input-size_l"
|
|
57
|
+
id="ring-form-4"
|
|
58
|
+
type="text"
|
|
59
|
+
/>
|
|
60
|
+
<div className="ring-error-bubble active">Error bubble for a long
|
|
61
|
+
control
|
|
54
62
|
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
55
65
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
66
|
+
<div className="ring-form__group">
|
|
67
|
+
<label htmlFor="ring-form-5" className="ring-form__label">Full-Width
|
|
68
|
+
Control</label>
|
|
69
|
+
<div className="ring-form__control">
|
|
70
|
+
<input className="ring-input" id="ring-form-5" type="text"/>
|
|
71
|
+
<div className="ring-error-bubble active">Error bubble for a full-width
|
|
72
|
+
control
|
|
65
73
|
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
66
76
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
77
|
+
<div className="ring-form__group">
|
|
78
|
+
<label htmlFor="ring-form-7" className="ring-form__label">Textarea</label>
|
|
79
|
+
<div className="ring-form__control">
|
|
80
|
+
<textarea
|
|
81
|
+
className="ring-input ring-input-size_m"
|
|
82
|
+
id="ring-form-7"
|
|
83
|
+
/>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
74
86
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
87
|
+
<div className="ring-form__group">
|
|
88
|
+
<label htmlFor="ring-form-8" className="ring-form__label">Long
|
|
89
|
+
Textarea</label>
|
|
90
|
+
<div className="ring-form__control">
|
|
91
|
+
<textarea
|
|
92
|
+
className="ring-input ring-input-size_l"
|
|
93
|
+
id="ring-form-8"
|
|
94
|
+
/>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
83
97
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
98
|
+
<div className="ring-form__group">
|
|
99
|
+
<label htmlFor="ring-form-9" className="ring-form__label">Full-Width
|
|
100
|
+
Textarea</label>
|
|
101
|
+
<div className="ring-form__control">
|
|
102
|
+
<textarea className="ring-input" id="ring-form-9"/>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
91
105
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
106
|
+
<div className="ring-form__group">
|
|
107
|
+
<label htmlFor="ring-form-11" className="ring-form__label">Input in
|
|
108
|
+
a small container</label>
|
|
109
|
+
<div className="ring-form__control ring-form__control_small">
|
|
110
|
+
<input
|
|
111
|
+
className="ring-input ring-input-size_m"
|
|
112
|
+
id="ring-form-11"
|
|
113
|
+
type="text"
|
|
114
|
+
/>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
100
117
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
118
|
+
<div className="ring-form__group">
|
|
119
|
+
<label htmlFor="ring-form-12" className="ring-form__label">Textarea in
|
|
120
|
+
a small container</label>
|
|
121
|
+
<div className="ring-form__control ring-form__control_small">
|
|
122
|
+
<textarea
|
|
123
|
+
className="ring-input ring-input-size_m"
|
|
124
|
+
id="ring-form-12"
|
|
125
|
+
/>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
109
128
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
</form>
|
|
129
|
+
<div className="ring-form__footer">
|
|
130
|
+
<rg-button mode="primary">Save</rg-button>
|
|
131
|
+
{' '}
|
|
132
|
+
<rg-button>Cancel</rg-button>
|
|
115
133
|
</div>
|
|
116
|
-
|
|
134
|
+
</form>
|
|
135
|
+
</div>
|
|
136
|
+
);
|
|
117
137
|
|
|
118
138
|
basic.storyName = 'Form';
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
/* https://readymag.com/artemtiunov/RingUILanguage/colours/ */
|
|
2
2
|
|
|
3
|
-
/*
|
|
4
|
-
Unit shouldn't be CSS custom property because it is not intended to change
|
|
5
|
-
Also it won't form in FF47 https://bugzilla.mozilla.org/show_bug.cgi?id=594933
|
|
6
|
-
*/
|
|
7
|
-
@value unit: 8px;
|
|
8
|
-
|
|
9
3
|
.clearfix {
|
|
10
4
|
&::after {
|
|
11
5
|
display: block;
|
|
@@ -93,7 +87,7 @@ Also it won't form in FF47 https://bugzilla.mozilla.org/show_bug.cgi?id=594933
|
|
|
93
87
|
}
|
|
94
88
|
|
|
95
89
|
/* Note: footer also has top margin which isn't taken into account here */
|
|
96
|
-
@value footer-height: calc(unit * 8);
|
|
90
|
+
@value footer-height: calc(var(--ring-unit) * 8);
|
|
97
91
|
|
|
98
92
|
/* Media breakpoints (minimal values) */
|
|
99
93
|
@value breakpoint-small: 640px;
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { unmountComponentAtNode as legacyUnmountComponentAtNode } from 'react-dom';
|
|
3
|
-
export declare let render: (element: ReactElement, container: Element | DocumentFragment) => void;
|
|
4
|
-
export declare let unmountComponentAtNode: typeof legacyUnmountComponentAtNode;
|
|
5
|
-
export declare let hydrate: (element: ReactElement, container: Element | Document) => void;
|
|
6
|
-
interface Root {
|
|
7
|
-
render(children: ReactChild | Iterable<ReactNode>): void;
|
|
8
|
-
unmount(): void;
|
|
9
|
-
}
|
|
10
|
-
interface RootOptions {
|
|
11
|
-
/**
|
|
12
|
-
* Prefix for `useId`.
|
|
13
|
-
*/
|
|
14
|
-
identifierPrefix?: string;
|
|
15
|
-
onRecoverableError?: (error: unknown) => void;
|
|
16
|
-
}
|
|
17
|
-
interface HydrationOptions {
|
|
18
|
-
/**
|
|
19
|
-
* Prefix for `useId`.
|
|
20
|
-
*/
|
|
21
|
-
identifierPrefix?: string;
|
|
22
|
-
onRecoverableError?: (error: unknown) => void;
|
|
23
|
-
}
|
|
24
|
-
interface Client {
|
|
25
|
-
createRoot(container: Element | DocumentFragment, options?: RootOptions): Root;
|
|
26
|
-
hydrateRoot(container: Element | Document, initialChildren: ReactChild | Iterable<ReactNode>, options?: HydrationOptions): Root;
|
|
27
|
-
}
|
|
28
|
-
export declare function setClient({ createRoot, hydrateRoot }: Client): void;
|
|
29
|
-
export {};
|
|
1
|
+
export declare const setClient: () => void;
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/* eslint-disable import/no-mutable-exports */
|
|
5
|
-
export let render = legacyRender;
|
|
6
|
-
export let unmountComponentAtNode = legacyUnmountComponentAtNode;
|
|
7
|
-
export let hydrate = legacyHydrate;
|
|
8
|
-
// TODO replace with a noop with warning in 6.0, remove in 7.0
|
|
9
|
-
export function setClient({ createRoot, hydrateRoot }) {
|
|
10
|
-
const roots = new WeakMap();
|
|
11
|
-
render = (element, container) => {
|
|
12
|
-
let root = roots.get(container);
|
|
13
|
-
if (root == null) {
|
|
14
|
-
root = createRoot(container);
|
|
15
|
-
roots.set(container, root);
|
|
16
|
-
}
|
|
17
|
-
root.render(element);
|
|
18
|
-
};
|
|
19
|
-
unmountComponentAtNode = container => roots.get(container)?.unmount();
|
|
20
|
-
hydrate = (element, container) => {
|
|
21
|
-
const root = hydrateRoot(container, element);
|
|
22
|
-
roots.set(container, root);
|
|
23
|
-
};
|
|
24
|
-
}
|
|
1
|
+
import deprecate from 'util-deprecate';
|
|
2
|
+
// TODO remove in 7.0
|
|
3
|
+
export const setClient = deprecate(() => { }, 'setClient does nothing in Ring UI 6.0 and will be removed in 7.0');
|
|
@@ -1,41 +1,10 @@
|
|
|
1
|
-
import { Component
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
2
|
export interface RerenderableComponent<P, S> extends Component<P, S> {
|
|
3
3
|
node?: HTMLElement | null;
|
|
4
4
|
}
|
|
5
5
|
export interface RerenderableComponentClass<P, S> {
|
|
6
6
|
new (props: P): RerenderableComponent<P, S>;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* @param captureNode, whether the wrapper should capture this.node itself. Set to false if the component already has "node" property captured
|
|
12
|
-
* @returns {Rerenderer}
|
|
13
|
-
*/
|
|
14
|
-
export default function rerenderHOC<P extends {}, S>(ComposedComponent: RerenderableComponentClass<P, S>): {
|
|
15
|
-
new (props: P): {
|
|
16
|
-
_propsCache: P & RefAttributes<unknown>;
|
|
17
|
-
rerender(props?: Partial<P>, callback?: () => void): void;
|
|
18
|
-
node?: HTMLElement | null | undefined;
|
|
19
|
-
context: unknown;
|
|
20
|
-
setState<K extends keyof S>(state: S | ((prevState: Readonly<S>, props: Readonly<P>) => S | Pick<S, K> | null) | Pick<S, K> | null, callback?: (() => void) | undefined): void;
|
|
21
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
22
|
-
render(): import("react").ReactNode;
|
|
23
|
-
readonly props: Readonly<P>;
|
|
24
|
-
state: Readonly<S>;
|
|
25
|
-
refs: {
|
|
26
|
-
[key: string]: import("react").ReactInstance;
|
|
27
|
-
};
|
|
28
|
-
componentDidMount?(): void;
|
|
29
|
-
shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<S>, nextContext: any): boolean;
|
|
30
|
-
componentWillUnmount?(): void;
|
|
31
|
-
componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
|
|
32
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P>, prevState: Readonly<S>): any;
|
|
33
|
-
componentDidUpdate?(prevProps: Readonly<P>, prevState: Readonly<S>, snapshot?: any): void;
|
|
34
|
-
componentWillMount?(): void;
|
|
35
|
-
UNSAFE_componentWillMount?(): void;
|
|
36
|
-
componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
|
|
37
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
|
|
38
|
-
componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<S>, nextContext: any): void;
|
|
39
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<S>, nextContext: any): void;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
8
|
+
export default function rerenderHOC<P extends {}, C extends Component<P, unknown>>(ComposedComponent: {
|
|
9
|
+
new (props: P): C;
|
|
10
|
+
}): React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<C>>;
|
|
@@ -1,28 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { render } from './react-render-adapter';
|
|
1
|
+
import React, { Component, forwardRef } from 'react';
|
|
3
2
|
import composeRefs from './composeRefs';
|
|
4
|
-
/**
|
|
5
|
-
* Wraps a component to add a "rerender" method
|
|
6
|
-
* @param ComposedComponent
|
|
7
|
-
* @param captureNode, whether the wrapper should capture this.node itself. Set to false if the component already has "node" property captured
|
|
8
|
-
* @returns {Rerenderer}
|
|
9
|
-
*/
|
|
10
3
|
export default function rerenderHOC(ComposedComponent) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
container = this.node?.parentNode;
|
|
17
|
-
}
|
|
18
|
-
finally {
|
|
19
|
-
if (!container || !(container instanceof Element)) {
|
|
20
|
-
throw new Error(`${this.constructor.name} component isn't mounted`);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
this._propsCache = Object.assign({}, this.props, this._propsCache, props);
|
|
24
|
-
this._propsCache.ref = composeRefs(this._propsCache.ref, callback);
|
|
25
|
-
render(createElement(this.constructor, this._propsCache), container);
|
|
4
|
+
class Rerenderer extends Component {
|
|
5
|
+
state = this.props.props;
|
|
6
|
+
render() {
|
|
7
|
+
const ref = composeRefs(this.props.forwardedRef);
|
|
8
|
+
return (<ComposedComponent {...this.state} ref={instance => ref(instance != null ? { ...instance, rerender: this.setState.bind(this) } : null)}/>);
|
|
26
9
|
}
|
|
27
|
-
}
|
|
10
|
+
}
|
|
11
|
+
return forwardRef(function RerendererForwardRef(props, ref) {
|
|
12
|
+
return <Rerenderer props={props} forwardedRef={ref}/>;
|
|
13
|
+
});
|
|
28
14
|
}
|
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
--ring-border-disabled-color: rgb(var(--ring-border-disabled-components)); /* #e8e8e8 */
|
|
18
18
|
--ring-border-selected-disabled-components: 212, 212, 212;
|
|
19
19
|
--ring-border-selected-disabled-color: rgb(var(--ring-border-selected-disabled-components)); /* #d4d4d4 */
|
|
20
|
-
--ring-border-unselected-disabled-components: 232, 232, 232;
|
|
21
|
-
--ring-border-unselected-disabled-color: rgb(var(--ring-border-unselected-disabled-components)); /* #e8e8e8 */ /* TODO remove in 6.0 */
|
|
22
20
|
--ring-icon-disabled-components: 212, 212, 212;
|
|
23
21
|
--ring-icon-disabled-color: rgb(var(--ring-icon-disabled-components)); /* #d4d4d4 */
|
|
24
22
|
--ring-border-hover-components: 128, 198, 255;
|
|
@@ -51,7 +49,7 @@
|
|
|
51
49
|
--ring-button-danger-hover-color: var(--ring-icon-error-color);
|
|
52
50
|
--ring-button-primary-border-components: 0, 98, 178;
|
|
53
51
|
--ring-button-primary-border-color: rgb(var(--ring-button-primary-border-components)); /* #0062b2 */
|
|
54
|
-
--ring-dialog-overlay-components:
|
|
52
|
+
--ring-dialog-overlay-components: 0, 0, 0;
|
|
55
53
|
--ring-popup-shadow: 0 2px 8px var(--ring-popup-shadow-color), 0 1px 2px var(--ring-popup-secondary-shadow-color);
|
|
56
54
|
--ring-dialog-shadow: 0 4px 24px var(--ring-popup-shadow-color), 0 2px 6px var(--ring-popup-secondary-shadow-color);
|
|
57
55
|
|
|
@@ -6,7 +6,6 @@ export interface RingCSSProperties {
|
|
|
6
6
|
'--ring-icon-color'?: Property.Color;
|
|
7
7
|
'--ring-icon-secondary-color'?: Property.Color;
|
|
8
8
|
'--ring-border-disabled-color'?: Property.BorderColor;
|
|
9
|
-
'--ring-border-unselected-disabled-color'?: Property.Color;
|
|
10
9
|
'--ring-icon-disabled-color'?: Property.Color;
|
|
11
10
|
'--ring-border-hover-color'?: Property.BorderColor;
|
|
12
11
|
'--ring-icon-hover-color'?: Property.Color;
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
--ring-border-disabled-color: rgb(var(--ring-border-disabled-components)); /* #37393D */
|
|
16
16
|
--ring-border-selected-disabled-components: 54, 54, 54;
|
|
17
17
|
--ring-border-selected-disabled-color: rgb(var(--ring-border-selected-disabled-components)); /* #363636 */
|
|
18
|
-
--ring-border-unselected-disabled-components: 51, 52, 56;
|
|
19
|
-
--ring-border-unselected-disabled-color: rgb(var(--ring-border-unselected-disabled-components)); /* #333438 */ /* TODO remove in 6.0 */
|
|
20
18
|
--ring-icon-disabled-components: 64, 66, 71;
|
|
21
19
|
--ring-icon-disabled-color: rgb(var(--ring-icon-disabled-components)); /* #404247 */
|
|
22
20
|
--ring-border-hover-components: 77, 100, 148;
|
|
@@ -93,8 +91,8 @@
|
|
|
93
91
|
--ring-warning-background-color: rgb(var(--ring-warning-background-components)); /* #5e4d33 */
|
|
94
92
|
--ring-added-background-components: 51, 76, 53;
|
|
95
93
|
--ring-added-background-color: rgb(var(--ring-added-background-components)); /* #334c35 */
|
|
96
|
-
--ring-disabled-background-components:
|
|
97
|
-
--ring-disabled-background-color: rgb(var(--ring-disabled-background-components)); /* #
|
|
94
|
+
--ring-disabled-background-components: 45, 47, 50;
|
|
95
|
+
--ring-disabled-background-color: rgb(var(--ring-disabled-background-components)); /* #2D2F32 */
|
|
98
96
|
--ring-disabled-selected-background-components: 44, 47, 51;
|
|
99
97
|
--ring-disabled-selected-background-color: rgb(var(--ring-disabled-selected-background-components)); /* #2C2F33 */
|
|
100
98
|
--ring-button-danger-active-components: 38, 8, 10;
|
package/components/grid/grid.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
@import "../global/variables.css";
|
|
2
2
|
|
|
3
|
-
@value
|
|
3
|
+
@value breakpoint-small, breakpoint-middle, breakpoint-large from "../global/global.css";
|
|
4
4
|
@value large-screen-media, middle-screen-media, small-screen-media from "../global/global.css";
|
|
5
|
-
@value gutterWidth: (unit*2);
|
|
5
|
+
@value gutterWidth: (var(--ring-unit) * 2);
|
|
6
6
|
@value gutterCompensation: calc(gutterWidth / -2);
|
|
7
|
-
@value outerMargin: calc(unit*2);
|
|
7
|
+
@value outerMargin: calc(var(--ring-unit) * 2);
|
|
8
8
|
@value containerSmall: calc(breakpoint-small + gutterWidth);
|
|
9
9
|
@value containerMedium: calc(breakpoint-middle + gutterWidth);
|
|
10
10
|
@value containerLarge: calc(breakpoint-large + gutterWidth);
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.container-fluid {
|
|
31
|
-
min-width: calc(unit * 40);
|
|
31
|
+
min-width: calc(var(--ring-unit) * 40);
|
|
32
32
|
padding-right: outerMargin;
|
|
33
33
|
padding-left: outerMargin;
|
|
34
34
|
}
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.col {
|
|
51
|
-
margin-top: unit;
|
|
52
|
-
margin-bottom: unit;
|
|
51
|
+
margin-top: var(--ring-unit);
|
|
52
|
+
margin-bottom: var(--ring-unit);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.col.reverse {
|
package/components/grid/row.js
CHANGED
|
@@ -4,9 +4,9 @@ import classNames from 'classnames';
|
|
|
4
4
|
import styles from './grid.css';
|
|
5
5
|
const ModifierType = PropTypes.oneOf(['xs', 'sm', 'md', 'lg']);
|
|
6
6
|
const modifierKeys = [
|
|
7
|
-
'start', 'center', 'end',
|
|
8
|
-
'around', 'between',
|
|
9
|
-
'top', 'middle', 'baseline', 'bottom',
|
|
7
|
+
'start', 'center', 'end', // text-align, justify-content
|
|
8
|
+
'around', 'between', // justify-content
|
|
9
|
+
'top', 'middle', 'baseline', 'bottom', // align-items
|
|
10
10
|
'first', 'last' // order
|
|
11
11
|
];
|
|
12
12
|
/**
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
@import "../global/variables.css";
|
|
2
2
|
|
|
3
3
|
@value dark from "../global/variables_dark.css";
|
|
4
|
-
@value unit from "../global/global.css";
|
|
5
4
|
@value link, active from "../link/link.css";
|
|
6
|
-
@value height: calc(unit * 8);
|
|
7
5
|
@value compensate: 3px;
|
|
8
|
-
@value compensated: calc(
|
|
6
|
+
@value compensated: calc(calc(var(--ring-unit) * 8) - compensate);
|
|
9
7
|
|
|
10
8
|
:root {
|
|
11
9
|
--ring-header-link-color: var(--ring-link-color);
|
|
@@ -22,7 +20,7 @@
|
|
|
22
20
|
align-items: center;
|
|
23
21
|
|
|
24
22
|
box-sizing: border-box;
|
|
25
|
-
height:
|
|
23
|
+
height: calc(var(--ring-unit) * 8);
|
|
26
24
|
|
|
27
25
|
color: var(--ring-text-color);
|
|
28
26
|
|
|
@@ -34,8 +32,8 @@
|
|
|
34
32
|
display: inline-block;
|
|
35
33
|
|
|
36
34
|
box-sizing: border-box;
|
|
37
|
-
height:
|
|
38
|
-
padding: 0 calc(unit * 1.5) compensate;
|
|
35
|
+
height: calc(var(--ring-unit) * 8);
|
|
36
|
+
padding: 0 calc(var(--ring-unit) * 1.5) compensate;
|
|
39
37
|
}
|
|
40
38
|
|
|
41
39
|
/* override link */
|
|
@@ -50,11 +48,11 @@
|
|
|
50
48
|
|
|
51
49
|
.headerSpaced {
|
|
52
50
|
& > *:first-child {
|
|
53
|
-
padding-left: calc(unit * 4);
|
|
51
|
+
padding-left: calc(var(--ring-unit) * 4);
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
& > *:last-child {
|
|
57
|
-
padding-right: calc(unit * 4);
|
|
55
|
+
padding-right: calc(var(--ring-unit) * 4);
|
|
58
56
|
}
|
|
59
57
|
}
|
|
60
58
|
|
|
@@ -62,7 +60,7 @@
|
|
|
62
60
|
display: inline-flex;
|
|
63
61
|
align-items: center;
|
|
64
62
|
|
|
65
|
-
height:
|
|
63
|
+
height: calc(var(--ring-unit) * 8);
|
|
66
64
|
|
|
67
65
|
color: var(--ring-navigation-background-color);
|
|
68
66
|
|
|
@@ -90,7 +88,7 @@
|
|
|
90
88
|
}
|
|
91
89
|
|
|
92
90
|
.icon {
|
|
93
|
-
width: calc(unit * 5);
|
|
91
|
+
width: calc(var(--ring-unit) * 5);
|
|
94
92
|
|
|
95
93
|
text-align: center;
|
|
96
94
|
|
|
@@ -101,7 +99,7 @@
|
|
|
101
99
|
.icon.icon {
|
|
102
100
|
height: compensated;
|
|
103
101
|
|
|
104
|
-
padding-top: calc(unit / 2);
|
|
102
|
+
padding-top: calc(var(--ring-unit) / 2);
|
|
105
103
|
|
|
106
104
|
line-height: compensated;
|
|
107
105
|
}
|
|
@@ -125,7 +123,7 @@
|
|
|
125
123
|
|
|
126
124
|
width: auto;
|
|
127
125
|
height: compensated;
|
|
128
|
-
padding-left: unit;
|
|
126
|
+
padding-left: var(--ring-unit);
|
|
129
127
|
|
|
130
128
|
vertical-align: bottom;
|
|
131
129
|
}
|
|
@@ -159,8 +157,8 @@
|
|
|
159
157
|
|
|
160
158
|
display: block;
|
|
161
159
|
|
|
162
|
-
width: unit;
|
|
163
|
-
height: unit;
|
|
160
|
+
width: var(--ring-unit);
|
|
161
|
+
height: var(--ring-unit);
|
|
164
162
|
|
|
165
163
|
content: "";
|
|
166
164
|
|
|
@@ -93,7 +93,7 @@ export default class Profile extends PureComponent {
|
|
|
93
93
|
{
|
|
94
94
|
rgItemType: PopupMenu.ListProps.Type.LINK,
|
|
95
95
|
label: translations?.profile ?? translate('profile'),
|
|
96
|
-
target: '_self',
|
|
96
|
+
target: '_self', // Full page reload in Angular
|
|
97
97
|
href: profileUrl,
|
|
98
98
|
LinkComponent
|
|
99
99
|
},
|
|
@@ -15,14 +15,12 @@ export default class ServicesLink extends PureComponent {
|
|
|
15
15
|
render() {
|
|
16
16
|
const { service, ...props } = this.props;
|
|
17
17
|
return (<Link target="_self" href={service.homeUrl} {...props}>
|
|
18
|
-
{
|
|
18
|
+
{service.iconUrl
|
|
19
19
|
? [
|
|
20
20
|
<span key="icon" className={styles.itemLogo} style={{ backgroundImage: `url(${service.iconUrl})` }}/>,
|
|
21
|
-
<div key="text">
|
|
22
|
-
<WrapText>{service.name}</WrapText>
|
|
23
|
-
</div>
|
|
21
|
+
<div key="text">{service.name}</div>
|
|
24
22
|
]
|
|
25
|
-
:
|
|
23
|
+
: service.name}
|
|
26
24
|
</Link>);
|
|
27
25
|
}
|
|
28
26
|
}
|