@jetbrains/ring-ui 6.0.6-beta.0 → 6.0.6
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 +1 -1
- package/components/alert/alert.css +146 -0
- package/components/alert/alert.d.ts +113 -0
- package/components/alert/alert.js +186 -0
- package/components/alert/container.css +26 -0
- package/components/alert/container.d.ts +15 -0
- package/components/alert/container.js +30 -0
- package/components/alert-service/alert-service.d.ts +36 -0
- package/components/alert-service/alert-service.js +108 -0
- package/components/alert-service/alert-service.stories.css +17 -0
- package/components/analytics/analytics.d.ts +18 -0
- package/components/analytics/analytics.js +18 -0
- package/components/analytics/analytics__custom-plugin.d.ts +28 -0
- package/components/analytics/analytics__custom-plugin.js +58 -0
- package/components/auth/auth.d.ts +3 -0
- package/components/auth/auth.js +42 -0
- package/components/auth/auth__core.d.ts +236 -0
- package/components/auth/auth__core.js +834 -0
- package/components/auth/background-flow.d.ts +31 -0
- package/components/auth/background-flow.js +97 -0
- package/components/auth/down-notification.css +15 -0
- package/components/auth/down-notification.d.ts +15 -0
- package/components/auth/down-notification.js +52 -0
- package/components/auth/iframe-flow.d.ts +20 -0
- package/components/auth/iframe-flow.js +81 -0
- package/components/auth/request-builder.d.ts +48 -0
- package/components/auth/request-builder.js +64 -0
- package/components/auth/response-parser.d.ts +70 -0
- package/components/auth/response-parser.js +99 -0
- package/components/auth/storage.d.ts +112 -0
- package/components/auth/storage.js +224 -0
- package/components/auth/token-validator.d.ts +93 -0
- package/components/auth/token-validator.js +169 -0
- package/components/auth/window-flow.d.ts +26 -0
- package/components/auth/window-flow.js +102 -0
- package/components/auth-dialog/auth-dialog.css +54 -0
- package/components/auth-dialog/auth-dialog.d.ts +60 -0
- package/components/auth-dialog/auth-dialog.js +93 -0
- package/components/auth-dialog-service/auth-dialog-service.d.ts +6 -0
- package/components/auth-dialog-service/auth-dialog-service.js +26 -0
- package/components/avatar/avatar-example-datauri.d.ts +1 -0
- package/components/avatar/avatar-example-datauri.js +24 -0
- package/components/avatar/avatar.css +27 -0
- package/components/avatar/avatar.d.ts +52 -0
- package/components/avatar/avatar.js +98 -0
- package/components/avatar/fallback-avatar.d.ts +17 -0
- package/components/avatar/fallback-avatar.js +113 -0
- package/components/badge/badge.css +42 -0
- package/components/badge/badge.d.ts +24 -0
- package/components/badge/badge.js +35 -0
- package/components/button/button.css +397 -0
- package/components/button/button.d.ts +67 -0
- package/components/button/button.js +70 -0
- package/components/button/button__classes.d.ts +2 -0
- package/components/button/button__classes.js +18 -0
- package/components/button-group/button-group.css +236 -0
- package/components/button-group/button-group.d.ts +18 -0
- package/components/button-group/button-group.js +21 -0
- package/components/button-group/caption.d.ts +8 -0
- package/components/button-group/caption.js +14 -0
- package/components/button-set/button-set.css +21 -0
- package/components/button-set/button-set.d.ts +16 -0
- package/components/button-set/button-set.js +22 -0
- package/components/button-toolbar/button-toolbar.css +25 -0
- package/components/button-toolbar/button-toolbar.d.ts +16 -0
- package/components/button-toolbar/button-toolbar.js +20 -0
- package/components/caret/caret.d.ts +66 -0
- package/components/caret/caret.js +216 -0
- package/components/checkbox/checkbox.css +146 -0
- package/components/checkbox/checkbox.d.ts +45 -0
- package/components/checkbox/checkbox.js +72 -0
- package/components/clipboard/clipboard-fallback.d.ts +2 -0
- package/components/clipboard/clipboard-fallback.js +44 -0
- package/components/clipboard/clipboard.d.ts +5 -0
- package/components/clipboard/clipboard.js +41 -0
- package/components/code/code.css +29 -0
- package/components/code/code.d.ts +44 -0
- package/components/code/code.js +94 -0
- package/components/code/highlight.css +112 -0
- package/components/collapse/collapse-content.d.ts +11 -0
- package/components/collapse/collapse-content.js +72 -0
- package/components/collapse/collapse-context.d.ts +10 -0
- package/components/collapse/collapse-context.js +10 -0
- package/components/collapse/collapse-control.d.ts +11 -0
- package/components/collapse/collapse-control.js +22 -0
- package/components/collapse/collapse.css +40 -0
- package/components/collapse/collapse.d.ts +12 -0
- package/components/collapse/collapse.js +26 -0
- package/components/collapse/collapse.stories.css +25 -0
- package/components/collapse/consts.d.ts +4 -0
- package/components/collapse/consts.js +4 -0
- package/components/collapse/utils.d.ts +1 -0
- package/components/collapse/utils.js +1 -0
- package/components/confirm/confirm.css +7 -0
- package/components/confirm/confirm.d.ts +48 -0
- package/components/confirm/confirm.js +59 -0
- package/components/confirm-service/confirm-service.d.ts +21 -0
- package/components/confirm-service/confirm-service.js +52 -0
- package/components/content-layout/content-layout.css +108 -0
- package/components/content-layout/content-layout.d.ts +26 -0
- package/components/content-layout/content-layout.js +45 -0
- package/components/content-layout/sidebar.d.ts +31 -0
- package/components/content-layout/sidebar.js +76 -0
- package/components/contenteditable/contenteditable.d.ts +47 -0
- package/components/contenteditable/contenteditable.js +47 -0
- package/components/control-label/control-label.css +23 -0
- package/components/control-label/control-label.d.ts +11 -0
- package/components/control-label/control-label.js +22 -0
- package/components/data-list/data-list.css +97 -0
- package/components/data-list/data-list.d.ts +85 -0
- package/components/data-list/data-list.js +119 -0
- package/components/data-list/data-list.mock.d.ts +16 -0
- package/components/data-list/data-list.mock.js +207 -0
- package/components/data-list/item.d.ts +50 -0
- package/components/data-list/item.js +114 -0
- package/components/data-list/selection.d.ts +16 -0
- package/components/data-list/selection.js +81 -0
- package/components/data-list/title.d.ts +26 -0
- package/components/data-list/title.js +65 -0
- package/components/date-picker/consts.d.ts +98 -0
- package/components/date-picker/consts.js +44 -0
- package/components/date-picker/date-input.d.ts +47 -0
- package/components/date-picker/date-input.js +91 -0
- package/components/date-picker/date-picker.css +602 -0
- package/components/date-picker/date-picker.d.ts +77 -0
- package/components/date-picker/date-picker.js +218 -0
- package/components/date-picker/date-popup.d.ts +55 -0
- package/components/date-picker/date-popup.js +347 -0
- package/components/date-picker/day.d.ts +30 -0
- package/components/date-picker/day.js +88 -0
- package/components/date-picker/formats.d.ts +2 -0
- package/components/date-picker/formats.js +1 -0
- package/components/date-picker/month-names.d.ts +13 -0
- package/components/date-picker/month-names.js +62 -0
- package/components/date-picker/month-slider.d.ts +29 -0
- package/components/date-picker/month-slider.js +56 -0
- package/components/date-picker/month.d.ts +14 -0
- package/components/date-picker/month.js +33 -0
- package/components/date-picker/months.d.ts +11 -0
- package/components/date-picker/months.js +101 -0
- package/components/date-picker/weekdays.d.ts +13 -0
- package/components/date-picker/weekdays.js +24 -0
- package/components/date-picker/years.d.ts +25 -0
- package/components/date-picker/years.js +87 -0
- package/components/dialog/dialog.css +137 -0
- package/components/dialog/dialog.d.ts +64 -0
- package/components/dialog/dialog.js +128 -0
- package/components/dialog/dialog__body-scroll-preventer.d.ts +9 -0
- package/components/dialog/dialog__body-scroll-preventer.js +43 -0
- package/components/dropdown/anchor.d.ts +11 -0
- package/components/dropdown/anchor.js +16 -0
- package/components/dropdown/dropdown.css +18 -0
- package/components/dropdown/dropdown.d.ts +87 -0
- package/components/dropdown/dropdown.js +159 -0
- package/components/dropdown-menu/dropdown-menu.d.ts +36 -0
- package/components/dropdown-menu/dropdown-menu.js +56 -0
- package/components/editable-heading/editable-heading.css +198 -0
- package/components/editable-heading/editable-heading.d.ts +32 -0
- package/components/editable-heading/editable-heading.js +141 -0
- package/components/error-bubble/error-bubble-legacy.css +77 -0
- package/components/error-bubble/error-bubble.css +54 -0
- package/components/error-bubble/error-bubble.d.ts +18 -0
- package/components/error-bubble/error-bubble.js +28 -0
- package/components/error-message/error-message.css +37 -0
- package/components/error-message/error-message.d.ts +27 -0
- package/components/error-message/error-message.js +37 -0
- package/components/error-page/error-page.css +24 -0
- package/components/error-page/error-page.gif +0 -0
- package/components/footer/footer.css +83 -0
- package/components/footer/footer.d.ts +28 -0
- package/components/footer/footer.js +97 -0
- package/components/form/form.css +266 -0
- package/components/form/form.stories.js +138 -0
- package/components/global/compose.d.ts +7 -0
- package/components/global/compose.js +4 -0
- package/components/global/composeRefs.d.ts +3 -0
- package/components/global/composeRefs.js +8 -0
- package/components/global/controls-height.d.ts +9 -0
- package/components/global/controls-height.js +16 -0
- package/components/global/create-stateful-context.d.ts +27 -0
- package/components/global/create-stateful-context.js +38 -0
- package/components/global/data-tests.d.ts +3 -0
- package/components/global/data-tests.js +17 -0
- package/components/global/dom.d.ts +37 -0
- package/components/global/dom.js +83 -0
- package/components/global/focus-sensor-hoc.d.ts +19 -0
- package/components/global/focus-sensor-hoc.js +102 -0
- package/components/global/fuzzy-highlight.d.ts +11 -0
- package/components/global/fuzzy-highlight.js +58 -0
- package/components/global/get-event-key.d.ts +2 -0
- package/components/global/get-event-key.js +100 -0
- package/components/global/get-uid.d.ts +1 -0
- package/components/global/get-uid.js +16 -0
- package/components/global/global.css +101 -0
- package/components/global/inject-styles.d.ts +3 -0
- package/components/global/inject-styles.js +12 -0
- package/components/global/linear-function.d.ts +6 -0
- package/components/global/linear-function.js +13 -0
- package/components/global/listeners.d.ts +8 -0
- package/components/global/listeners.js +27 -0
- package/components/global/memoize.d.ts +1 -0
- package/components/global/memoize.js +15 -0
- package/components/global/normalize-indent.d.ts +1 -0
- package/components/global/normalize-indent.js +30 -0
- package/components/global/promise-with-timeout.d.ts +5 -0
- package/components/global/promise-with-timeout.js +11 -0
- package/components/global/prop-types.d.ts +4 -0
- package/components/global/prop-types.js +4 -0
- package/components/global/react-dom-renderer.d.ts +16 -0
- package/components/global/react-dom-renderer.js +25 -0
- package/components/global/react-render-adapter.d.ts +1 -0
- package/components/global/react-render-adapter.js +3 -0
- package/components/global/rerender-hoc.d.ts +10 -0
- package/components/global/rerender-hoc.js +14 -0
- package/components/global/schedule-raf.d.ts +1 -0
- package/components/global/schedule-raf.js +27 -0
- package/components/global/sniffer.d.ts +3 -0
- package/components/global/sniffer.js +4 -0
- package/components/global/theme.d.ts +21 -0
- package/components/global/theme.js +70 -0
- package/components/global/trivial-template-tag.d.ts +1 -0
- package/components/global/trivial-template-tag.js +9 -0
- package/components/global/typescript-utils.d.ts +2 -0
- package/components/global/typescript-utils.js +2 -0
- package/components/global/url.d.ts +57 -0
- package/components/global/url.js +136 -0
- package/components/global/use-event-callback.d.ts +1 -0
- package/components/global/use-event-callback.js +14 -0
- package/components/global/variables.css +179 -0
- package/components/global/variables.d.ts +89 -0
- package/components/global/variables.js +1 -0
- package/components/global/variables_dark.css +132 -0
- package/components/grid/col.d.ts +31 -0
- package/components/grid/col.js +49 -0
- package/components/grid/grid.css +915 -0
- package/components/grid/grid.d.ts +14 -0
- package/components/grid/grid.js +22 -0
- package/components/grid/row.d.ts +40 -0
- package/components/grid/row.js +51 -0
- package/components/group/group.css +7 -0
- package/components/group/group.d.ts +12 -0
- package/components/group/group.js +20 -0
- package/components/header/header.css +169 -0
- package/components/header/header.d.ts +34 -0
- package/components/header/header.js +46 -0
- package/components/header/logo.d.ts +14 -0
- package/components/header/logo.js +22 -0
- package/components/header/profile.d.ts +75 -0
- package/components/header/profile.js +119 -0
- package/components/header/services-link.d.ts +25 -0
- package/components/header/services-link.js +26 -0
- package/components/header/services.css +97 -0
- package/components/header/services.d.ts +33 -0
- package/components/header/services.js +62 -0
- package/components/header/smart-profile.d.ts +36 -0
- package/components/header/smart-profile.js +86 -0
- package/components/header/smart-services.d.ts +26 -0
- package/components/header/smart-services.js +49 -0
- package/components/header/tray-icon.d.ts +32 -0
- package/components/header/tray-icon.js +20 -0
- package/components/header/tray.d.ts +9 -0
- package/components/header/tray.js +18 -0
- package/components/heading/heading.css +68 -0
- package/components/heading/heading.d.ts +25 -0
- package/components/heading/heading.js +52 -0
- package/components/http/http.d.ts +61 -0
- package/components/http/http.js +192 -0
- package/components/http/http.mock.d.ts +20 -0
- package/components/http/http.mock.js +52 -0
- package/components/hub-source/hub-source.d.ts +44 -0
- package/components/hub-source/hub-source.js +107 -0
- package/components/hub-source/hub-source__user.d.ts +4 -0
- package/components/hub-source/hub-source__user.js +20 -0
- package/components/hub-source/hub-source__users-groups.d.ts +24 -0
- package/components/hub-source/hub-source__users-groups.js +53 -0
- package/components/i18n/README.md +46 -0
- package/components/i18n/i18n-context.d.ts +13 -0
- package/components/i18n/i18n-context.js +14 -0
- package/components/i18n/i18n.d.ts +59 -0
- package/components/i18n/i18n.js +26 -0
- package/components/i18n/messages.json +53 -0
- package/components/icon/icon.css +100 -0
- package/components/icon/icon.d.ts +43 -0
- package/components/icon/icon.js +69 -0
- package/components/icon/icon__constants.d.ts +30 -0
- package/components/icon/icon__constants.js +32 -0
- package/components/icon/icon__svg.d.ts +15 -0
- package/components/icon/icon__svg.js +58 -0
- package/components/icon/index.d.ts +2 -0
- package/components/icon/index.js +2 -0
- package/components/input/input-legacy.css +123 -0
- package/components/input/input.css +194 -0
- package/components/input/input.d.ts +77 -0
- package/components/input/input.js +165 -0
- package/components/input-size/input-size.css +82 -0
- package/components/input-size/input-size.stories.js +73 -0
- package/components/island/adaptive-island-hoc.d.ts +61 -0
- package/components/island/adaptive-island-hoc.js +28 -0
- package/components/island/content.d.ts +43 -0
- package/components/island/content.js +100 -0
- package/components/island/header.d.ts +8 -0
- package/components/island/header.js +78 -0
- package/components/island/island.css +131 -0
- package/components/island/island.d.ts +78 -0
- package/components/island/island.js +31 -0
- package/components/island-legacy/content-legacy.d.ts +10 -0
- package/components/island-legacy/content-legacy.js +17 -0
- package/components/island-legacy/header-legacy.d.ts +10 -0
- package/components/island-legacy/header-legacy.js +19 -0
- package/components/island-legacy/island-legacy.css +98 -0
- package/components/island-legacy/island-legacy.d.ts +12 -0
- package/components/island-legacy/island-legacy.js +19 -0
- package/components/line/line.css +14 -0
- package/components/link/clickableLink.d.ts +20 -0
- package/components/link/clickableLink.js +33 -0
- package/components/link/link.css +64 -0
- package/components/link/link.d.ts +138 -0
- package/components/link/link.js +44 -0
- package/components/list/consts.d.ts +77 -0
- package/components/list/consts.js +25 -0
- package/components/list/list.css +298 -0
- package/components/list/list.d.ts +205 -0
- package/components/list/list.js +590 -0
- package/components/list/list.stories.css +3 -0
- package/components/list/list__custom.d.ts +6 -0
- package/components/list/list__custom.js +52 -0
- package/components/list/list__hint.d.ts +15 -0
- package/components/list/list__hint.js +16 -0
- package/components/list/list__item.d.ts +8 -0
- package/components/list/list__item.js +130 -0
- package/components/list/list__link.d.ts +9 -0
- package/components/list/list__link.js +43 -0
- package/components/list/list__separator.d.ts +5 -0
- package/components/list/list__separator.js +21 -0
- package/components/list/list__title.d.ts +5 -0
- package/components/list/list__title.js +28 -0
- package/components/list/list__users-groups-source.d.ts +27 -0
- package/components/list/list__users-groups-source.js +74 -0
- package/components/loader/loader.css +27 -0
- package/components/loader/loader.d.ts +28 -0
- package/components/loader/loader.js +44 -0
- package/components/loader/loader__core.d.ts +75 -0
- package/components/loader/loader__core.js +219 -0
- package/components/loader-inline/loader-inline.css +73 -0
- package/components/loader-inline/loader-inline.d.ts +18 -0
- package/components/loader-inline/loader-inline.js +27 -0
- package/components/loader-screen/loader-screen.css +29 -0
- package/components/loader-screen/loader-screen.d.ts +17 -0
- package/components/loader-screen/loader-screen.js +25 -0
- package/components/login-dialog/login-dialog.css +23 -0
- package/components/login-dialog/login-dialog.d.ts +47 -0
- package/components/login-dialog/login-dialog.js +84 -0
- package/components/login-dialog/service.d.ts +2 -0
- package/components/login-dialog/service.js +24 -0
- package/components/markdown/markdown.css +126 -0
- package/components/markdown/markdown.d.ts +12 -0
- package/components/markdown/markdown.js +25 -0
- package/components/message/message.css +61 -0
- package/components/message/message.d.ts +55 -0
- package/components/message/message.js +129 -0
- package/components/old-browsers-message/old-browsers-message.css +26 -0
- package/components/old-browsers-message/old-browsers-message.d.ts +2 -0
- package/components/old-browsers-message/old-browsers-message.js +83 -0
- package/components/old-browsers-message/old-browsers-message__stop.d.ts +1 -0
- package/components/old-browsers-message/old-browsers-message__stop.js +2 -0
- package/components/old-browsers-message/white-list.d.ts +2 -0
- package/components/old-browsers-message/white-list.js +25 -0
- package/components/pager/pager.css +19 -0
- package/components/pager/pager.d.ts +78 -0
- package/components/pager/pager.js +223 -0
- package/components/palette/palette.css +216 -0
- package/components/panel/panel.css +20 -0
- package/components/panel/panel.d.ts +12 -0
- package/components/panel/panel.js +20 -0
- package/components/permissions/permissions.d.ts +111 -0
- package/components/permissions/permissions.js +177 -0
- package/components/permissions/permissions__cache.d.ts +93 -0
- package/components/permissions/permissions__cache.js +228 -0
- package/components/popup/popup.consts.d.ts +37 -0
- package/components/popup/popup.consts.js +45 -0
- package/components/popup/popup.css +34 -0
- package/components/popup/popup.d.ts +147 -0
- package/components/popup/popup.js +312 -0
- package/components/popup/popup.target.d.ts +7 -0
- package/components/popup/popup.target.js +15 -0
- package/components/popup/position.d.ts +30 -0
- package/components/popup/position.js +202 -0
- package/components/popup-menu/popup-menu.d.ts +80 -0
- package/components/popup-menu/popup-menu.js +41 -0
- package/components/progress-bar/progress-bar.css +82 -0
- package/components/progress-bar/progress-bar.d.ts +64 -0
- package/components/progress-bar/progress-bar.js +76 -0
- package/components/query-assist/query-assist.css +275 -0
- package/components/query-assist/query-assist.d.ts +306 -0
- package/components/query-assist/query-assist.js +847 -0
- package/components/query-assist/query-assist__suggestions.d.ts +29 -0
- package/components/query-assist/query-assist__suggestions.js +60 -0
- package/components/radio/radio.css +122 -0
- package/components/radio/radio.d.ts +18 -0
- package/components/radio/radio.js +27 -0
- package/components/radio/radio__item.d.ts +28 -0
- package/components/radio/radio__item.js +41 -0
- package/components/select/select-popup.css +103 -0
- package/components/select/select.css +235 -0
- package/components/select/select.d.ts +276 -0
- package/components/select/select.js +957 -0
- package/components/select/select__filter.d.ts +19 -0
- package/components/select/select__filter.js +49 -0
- package/components/select/select__popup.d.ts +166 -0
- package/components/select/select__popup.js +408 -0
- package/components/shortcuts/core.d.ts +74 -0
- package/components/shortcuts/core.js +191 -0
- package/components/shortcuts/shortcut-title.d.ts +1 -0
- package/components/shortcuts/shortcut-title.js +50 -0
- package/components/shortcuts/shortcuts-hoc.d.ts +65 -0
- package/components/shortcuts/shortcuts-hoc.js +19 -0
- package/components/shortcuts/shortcuts.d.ts +28 -0
- package/components/shortcuts/shortcuts.js +50 -0
- package/components/sidebar/sidebar.css +157 -0
- package/components/storage/storage.d.ts +18 -0
- package/components/storage/storage.js +22 -0
- package/components/storage/storage__fallback.d.ts +79 -0
- package/components/storage/storage__fallback.js +181 -0
- package/components/storage/storage__local.d.ts +38 -0
- package/components/storage/storage__local.js +119 -0
- package/components/tab-trap/tab-trap.css +6 -0
- package/components/tab-trap/tab-trap.d.ts +43 -0
- package/components/tab-trap/tab-trap.js +125 -0
- package/components/table/cell.d.ts +13 -0
- package/components/table/cell.js +16 -0
- package/components/table/disable-hover-hoc.d.ts +64 -0
- package/components/table/disable-hover-hoc.js +32 -0
- package/components/table/header-cell.d.ts +43 -0
- package/components/table/header-cell.js +56 -0
- package/components/table/header.d.ts +56 -0
- package/components/table/header.js +67 -0
- package/components/table/multitable.d.ts +25 -0
- package/components/table/multitable.js +81 -0
- package/components/table/row-with-focus-sensor.d.ts +18 -0
- package/components/table/row-with-focus-sensor.js +25 -0
- package/components/table/row.d.ts +59 -0
- package/components/table/row.js +154 -0
- package/components/table/selection-adapter.d.ts +5 -0
- package/components/table/selection-adapter.js +10 -0
- package/components/table/selection-shortcuts-hoc.d.ts +17 -0
- package/components/table/selection-shortcuts-hoc.js +146 -0
- package/components/table/selection.d.ts +47 -0
- package/components/table/selection.js +150 -0
- package/components/table/smart-table.d.ts +64 -0
- package/components/table/smart-table.js +40 -0
- package/components/table/table.css +259 -0
- package/components/table/table.d.ts +159 -0
- package/components/table/table.examples2.json +19 -0
- package/components/table/table.js +231 -0
- package/components/table/table.stories.json +45 -0
- package/components/table-legacy/table-legacy.css +346 -0
- package/components/table-legacy/table-legacy__toolbar.css +25 -0
- package/components/tabs/collapsible-more.d.ts +29 -0
- package/components/tabs/collapsible-more.js +97 -0
- package/components/tabs/collapsible-tab.d.ts +16 -0
- package/components/tabs/collapsible-tab.js +34 -0
- package/components/tabs/collapsible-tabs.d.ts +43 -0
- package/components/tabs/collapsible-tabs.js +196 -0
- package/components/tabs/custom-item.d.ts +9 -0
- package/components/tabs/custom-item.js +5 -0
- package/components/tabs/dumb-tabs.d.ts +35 -0
- package/components/tabs/dumb-tabs.js +56 -0
- package/components/tabs/smart-tabs.d.ts +20 -0
- package/components/tabs/smart-tabs.js +25 -0
- package/components/tabs/tab-link.d.ts +18 -0
- package/components/tabs/tab-link.js +24 -0
- package/components/tabs/tab.d.ts +27 -0
- package/components/tabs/tab.js +19 -0
- package/components/tabs/tabs.css +223 -0
- package/components/tabs/tabs.d.ts +7 -0
- package/components/tabs/tabs.js +7 -0
- package/components/tag/tag.css +184 -0
- package/components/tag/tag.d.ts +64 -0
- package/components/tag/tag.js +130 -0
- package/components/tags-input/tags-input.css +100 -0
- package/components/tags-input/tags-input.d.ts +138 -0
- package/components/tags-input/tags-input.js +275 -0
- package/components/tags-list/tags-list.d.ts +46 -0
- package/components/tags-list/tags-list.js +45 -0
- package/components/text/text.css +21 -0
- package/components/text/text.d.ts +23 -0
- package/components/text/text.js +31 -0
- package/components/toggle/toggle.css +198 -0
- package/components/toggle/toggle.d.ts +39 -0
- package/components/toggle/toggle.js +46 -0
- package/components/tooltip/tooltip.css +17 -0
- package/components/tooltip/tooltip.d.ts +65 -0
- package/components/tooltip/tooltip.js +126 -0
- package/components/user-agreement/service.d.ts +69 -0
- package/components/user-agreement/service.js +242 -0
- package/components/user-agreement/toolbox.eula.d.ts +2 -0
- package/components/user-agreement/toolbox.eula.js +160 -0
- package/components/user-agreement/user-agreement.css +29 -0
- package/components/user-agreement/user-agreement.d.ts +60 -0
- package/components/user-agreement/user-agreement.js +80 -0
- package/components/user-card/card.d.ts +70 -0
- package/components/user-card/card.js +89 -0
- package/components/user-card/smart-user-card-tooltip.d.ts +20 -0
- package/components/user-card/smart-user-card-tooltip.js +47 -0
- package/components/user-card/tooltip.d.ts +36 -0
- package/components/user-card/tooltip.js +43 -0
- package/components/user-card/user-card.css +123 -0
- package/components/user-card/user-card.d.ts +11 -0
- package/components/user-card/user-card.js +11 -0
- package/package.json +61 -61
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { PureComponent, AnchorHTMLAttributes } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
export interface ClickableLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
|
+
onConditionalClick?: ((isPlainLeft: boolean, e: React.MouseEvent<HTMLAnchorElement>) => void) | null | undefined;
|
|
5
|
+
onPlainLeftClick?: ((e: React.MouseEvent<HTMLAnchorElement>) => void) | null | undefined;
|
|
6
|
+
activeClassName?: string | null | undefined;
|
|
7
|
+
disabled?: boolean | undefined;
|
|
8
|
+
}
|
|
9
|
+
export default class ClickableLink extends PureComponent<ClickableLinkProps> {
|
|
10
|
+
static propTypes: {
|
|
11
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
+
onPlainLeftClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
+
onConditionalClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
|
+
activeClassName: PropTypes.Requireable<string>;
|
|
15
|
+
href: PropTypes.Validator<string>;
|
|
16
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
17
|
+
};
|
|
18
|
+
onClick: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
19
|
+
render(): React.JSX.Element;
|
|
20
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
const LEFT_BUTTON = 0;
|
|
4
|
+
// Cmd/Ctrl/Shift/Alt + Click should trigger default browser behaviour. Same applies to non-left clicks
|
|
5
|
+
const isPlainLeftClick = (e) => e.button === LEFT_BUTTON && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey;
|
|
6
|
+
export default class ClickableLink extends PureComponent {
|
|
7
|
+
static propTypes = {
|
|
8
|
+
onClick: PropTypes.func,
|
|
9
|
+
onPlainLeftClick: PropTypes.func,
|
|
10
|
+
onConditionalClick: PropTypes.func,
|
|
11
|
+
activeClassName: PropTypes.string,
|
|
12
|
+
href: PropTypes.string.isRequired,
|
|
13
|
+
children: PropTypes.node.isRequired
|
|
14
|
+
};
|
|
15
|
+
onClick = (e) => {
|
|
16
|
+
const { onClick, onConditionalClick, onPlainLeftClick } = this.props;
|
|
17
|
+
const isPlainLeft = isPlainLeftClick(e);
|
|
18
|
+
if (onClick) {
|
|
19
|
+
onClick(e);
|
|
20
|
+
}
|
|
21
|
+
if (onConditionalClick) {
|
|
22
|
+
onConditionalClick(isPlainLeft, e);
|
|
23
|
+
}
|
|
24
|
+
if (onPlainLeftClick && isPlainLeft) {
|
|
25
|
+
e.preventDefault();
|
|
26
|
+
onPlainLeftClick(e);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
render() {
|
|
30
|
+
const { onConditionalClick, onPlainLeftClick, activeClassName, href, children, ...restProps } = this.props;
|
|
31
|
+
return <a href={href} {...restProps} onClick={this.onClick}>{children}</a>;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
@import "../global/variables.css";
|
|
2
|
+
|
|
3
|
+
.link,
|
|
4
|
+
.withLinks a {
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
transition: color var(--ring-fast-ease);
|
|
7
|
+
|
|
8
|
+
color: var(--ring-link-color);
|
|
9
|
+
|
|
10
|
+
outline: none;
|
|
11
|
+
|
|
12
|
+
text-decoration-line: none;
|
|
13
|
+
text-decoration-thickness: 1px;
|
|
14
|
+
text-underline-offset: 3px;
|
|
15
|
+
|
|
16
|
+
@media (resolution >= 2dppx) {
|
|
17
|
+
text-decoration-thickness: 0.5px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:hover,
|
|
21
|
+
&.hover {
|
|
22
|
+
text-decoration-line: underline;
|
|
23
|
+
|
|
24
|
+
transition: none;
|
|
25
|
+
|
|
26
|
+
color: var(--ring-link-hover-color);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* stylelint-disable-next-line selector-max-specificity */
|
|
30
|
+
&.pseudo:hover {
|
|
31
|
+
text-decoration: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:focus-visible {
|
|
35
|
+
box-shadow: 0 0 0 2px var(--ring-border-hover-color);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.link.active {
|
|
40
|
+
color: inherit;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.inherit:not(:hover) {
|
|
44
|
+
color: inherit;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.pseudo {
|
|
48
|
+
margin: 0;
|
|
49
|
+
padding: 0;
|
|
50
|
+
|
|
51
|
+
text-align: left;
|
|
52
|
+
|
|
53
|
+
border: 0;
|
|
54
|
+
|
|
55
|
+
background: transparent;
|
|
56
|
+
|
|
57
|
+
font: inherit;
|
|
58
|
+
|
|
59
|
+
&::-moz-focus-inner {
|
|
60
|
+
padding: 0;
|
|
61
|
+
|
|
62
|
+
border: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import React, { ReactNode, ComponentType } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { ClickableLinkProps } from './clickableLink';
|
|
4
|
+
/**
|
|
5
|
+
* @name Link
|
|
6
|
+
*/
|
|
7
|
+
export interface LinkBaseProps {
|
|
8
|
+
active?: boolean | null | undefined;
|
|
9
|
+
inherit?: boolean | null | undefined;
|
|
10
|
+
pseudo?: boolean | null | undefined;
|
|
11
|
+
hover?: boolean | null | undefined;
|
|
12
|
+
'data-test'?: string | null | undefined;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export type LinkProps<P extends ClickableLinkProps = ClickableLinkProps> = Omit<P, keyof LinkBaseProps> & LinkBaseProps;
|
|
16
|
+
export declare function linkHOC<P extends ClickableLinkProps>(ComposedComponent: ComponentType<P> | string): {
|
|
17
|
+
new (props: LinkProps<P> | Readonly<LinkProps<P>>): {
|
|
18
|
+
render(): React.JSX.Element;
|
|
19
|
+
context: unknown;
|
|
20
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
21
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
22
|
+
readonly props: Readonly<LinkProps<P>>;
|
|
23
|
+
state: Readonly<{}>;
|
|
24
|
+
refs: {
|
|
25
|
+
[key: string]: React.ReactInstance;
|
|
26
|
+
};
|
|
27
|
+
componentDidMount?(): void;
|
|
28
|
+
shouldComponentUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
29
|
+
componentWillUnmount?(): void;
|
|
30
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
31
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any;
|
|
32
|
+
componentDidUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
33
|
+
componentWillMount?(): void;
|
|
34
|
+
UNSAFE_componentWillMount?(): void;
|
|
35
|
+
componentWillReceiveProps?(nextProps: Readonly<LinkProps<P>>, nextContext: any): void;
|
|
36
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LinkProps<P>>, nextContext: any): void;
|
|
37
|
+
componentWillUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
38
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
39
|
+
};
|
|
40
|
+
new (props: LinkProps<P>, context: any): {
|
|
41
|
+
render(): React.JSX.Element;
|
|
42
|
+
context: unknown;
|
|
43
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<P>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
44
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
45
|
+
readonly props: Readonly<LinkProps<P>>;
|
|
46
|
+
state: Readonly<{}>;
|
|
47
|
+
refs: {
|
|
48
|
+
[key: string]: React.ReactInstance;
|
|
49
|
+
};
|
|
50
|
+
componentDidMount?(): void;
|
|
51
|
+
shouldComponentUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
52
|
+
componentWillUnmount?(): void;
|
|
53
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
54
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>): any;
|
|
55
|
+
componentDidUpdate?(prevProps: Readonly<LinkProps<P>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
56
|
+
componentWillMount?(): void;
|
|
57
|
+
UNSAFE_componentWillMount?(): void;
|
|
58
|
+
componentWillReceiveProps?(nextProps: Readonly<LinkProps<P>>, nextContext: any): void;
|
|
59
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LinkProps<P>>, nextContext: any): void;
|
|
60
|
+
componentWillUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
61
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<P>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
62
|
+
};
|
|
63
|
+
propTypes: {
|
|
64
|
+
className: PropTypes.Requireable<string>;
|
|
65
|
+
active: PropTypes.Requireable<boolean>;
|
|
66
|
+
inherit: PropTypes.Requireable<boolean>;
|
|
67
|
+
pseudo: PropTypes.Requireable<boolean>;
|
|
68
|
+
hover: PropTypes.Requireable<boolean>;
|
|
69
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
70
|
+
'data-test': PropTypes.Requireable<string>;
|
|
71
|
+
href: PropTypes.Requireable<string>;
|
|
72
|
+
onPlainLeftClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
73
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
74
|
+
};
|
|
75
|
+
contextType?: React.Context<any> | undefined;
|
|
76
|
+
};
|
|
77
|
+
declare const _default: {
|
|
78
|
+
new (props: LinkProps<ClickableLinkProps> | Readonly<LinkProps<ClickableLinkProps>>): {
|
|
79
|
+
render(): React.JSX.Element;
|
|
80
|
+
context: unknown;
|
|
81
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
82
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
83
|
+
readonly props: Readonly<LinkProps<ClickableLinkProps>>;
|
|
84
|
+
state: Readonly<{}>;
|
|
85
|
+
refs: {
|
|
86
|
+
[key: string]: React.ReactInstance;
|
|
87
|
+
};
|
|
88
|
+
componentDidMount?(): void;
|
|
89
|
+
shouldComponentUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
90
|
+
componentWillUnmount?(): void;
|
|
91
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
92
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any;
|
|
93
|
+
componentDidUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
94
|
+
componentWillMount?(): void;
|
|
95
|
+
UNSAFE_componentWillMount?(): void;
|
|
96
|
+
componentWillReceiveProps?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextContext: any): void;
|
|
97
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextContext: any): void;
|
|
98
|
+
componentWillUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
99
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
100
|
+
};
|
|
101
|
+
new (props: LinkProps<ClickableLinkProps>, context: any): {
|
|
102
|
+
render(): React.JSX.Element;
|
|
103
|
+
context: unknown;
|
|
104
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<LinkProps<ClickableLinkProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
105
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
106
|
+
readonly props: Readonly<LinkProps<ClickableLinkProps>>;
|
|
107
|
+
state: Readonly<{}>;
|
|
108
|
+
refs: {
|
|
109
|
+
[key: string]: React.ReactInstance;
|
|
110
|
+
};
|
|
111
|
+
componentDidMount?(): void;
|
|
112
|
+
shouldComponentUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
113
|
+
componentWillUnmount?(): void;
|
|
114
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
115
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>): any;
|
|
116
|
+
componentDidUpdate?(prevProps: Readonly<LinkProps<ClickableLinkProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
117
|
+
componentWillMount?(): void;
|
|
118
|
+
UNSAFE_componentWillMount?(): void;
|
|
119
|
+
componentWillReceiveProps?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextContext: any): void;
|
|
120
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextContext: any): void;
|
|
121
|
+
componentWillUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
122
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<LinkProps<ClickableLinkProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
123
|
+
};
|
|
124
|
+
propTypes: {
|
|
125
|
+
className: PropTypes.Requireable<string>;
|
|
126
|
+
active: PropTypes.Requireable<boolean>;
|
|
127
|
+
inherit: PropTypes.Requireable<boolean>;
|
|
128
|
+
pseudo: PropTypes.Requireable<boolean>;
|
|
129
|
+
hover: PropTypes.Requireable<boolean>;
|
|
130
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
131
|
+
'data-test': PropTypes.Requireable<string>;
|
|
132
|
+
href: PropTypes.Requireable<string>;
|
|
133
|
+
onPlainLeftClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
134
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
135
|
+
};
|
|
136
|
+
contextType?: React.Context<any> | undefined;
|
|
137
|
+
};
|
|
138
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import dataTests from '../global/data-tests';
|
|
5
|
+
import ClickableLink from './clickableLink';
|
|
6
|
+
import styles from './link.css';
|
|
7
|
+
export function linkHOC(ComposedComponent) {
|
|
8
|
+
const isCustom = typeof ComposedComponent !== 'string' && ComposedComponent !== ClickableLink;
|
|
9
|
+
return class Link extends PureComponent {
|
|
10
|
+
static propTypes = {
|
|
11
|
+
className: PropTypes.string,
|
|
12
|
+
active: PropTypes.bool,
|
|
13
|
+
inherit: PropTypes.bool,
|
|
14
|
+
pseudo: PropTypes.bool,
|
|
15
|
+
hover: PropTypes.bool,
|
|
16
|
+
children: PropTypes.node,
|
|
17
|
+
'data-test': PropTypes.string,
|
|
18
|
+
href: PropTypes.string,
|
|
19
|
+
onPlainLeftClick: PropTypes.func,
|
|
20
|
+
onClick: PropTypes.func
|
|
21
|
+
};
|
|
22
|
+
render() {
|
|
23
|
+
const { active, inherit, pseudo, hover, className, 'data-test': dataTest, href, children, onPlainLeftClick, onClick, ...restProps } = this.props;
|
|
24
|
+
const useButton = pseudo || !isCustom && href == null;
|
|
25
|
+
const classes = classNames(styles.link, className, {
|
|
26
|
+
[styles.active]: active,
|
|
27
|
+
[styles.inherit]: inherit,
|
|
28
|
+
[styles.hover]: hover,
|
|
29
|
+
[styles.pseudo]: useButton
|
|
30
|
+
});
|
|
31
|
+
let props = restProps;
|
|
32
|
+
if (isCustom && !props.activeClassName) {
|
|
33
|
+
props = { ...props, activeClassName: styles.active };
|
|
34
|
+
}
|
|
35
|
+
if (useButton) {
|
|
36
|
+
return (<button type="button" {...props} className={classes} onClick={(onClick || onPlainLeftClick)} data-test={dataTests('ring-link', dataTest)}>{children}</button>);
|
|
37
|
+
}
|
|
38
|
+
return (<ComposedComponent {...props} href={href} className={classes} onClick={onClick} onPlainLeftClick={onPlainLeftClick} data-test={dataTests('ring-link', dataTest)}>
|
|
39
|
+
{children}
|
|
40
|
+
</ComposedComponent>);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export default linkHOC(ClickableLink);
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import React, { ComponentType, ReactNode, ReactElement, SyntheticEvent } from 'react';
|
|
2
|
+
import { LinkProps } from '../link/link';
|
|
3
|
+
import { IconType, Size } from '../icon/icon';
|
|
4
|
+
import { ClickableLinkProps } from '../link/clickableLink';
|
|
5
|
+
/**
|
|
6
|
+
* @enum {number}
|
|
7
|
+
*/
|
|
8
|
+
export declare enum Type {
|
|
9
|
+
SEPARATOR = 0,
|
|
10
|
+
LINK = 1,
|
|
11
|
+
ITEM = 2,
|
|
12
|
+
HINT = 3,
|
|
13
|
+
CUSTOM = 4,
|
|
14
|
+
TITLE = 5,
|
|
15
|
+
MARGIN = 6
|
|
16
|
+
}
|
|
17
|
+
export declare const Dimension: {
|
|
18
|
+
ITEM_PADDING: number;
|
|
19
|
+
ITEM_HEIGHT: number;
|
|
20
|
+
COMPACT_ITEM_HEIGHT: number;
|
|
21
|
+
SEPARATOR_HEIGHT: number;
|
|
22
|
+
SEPARATOR_FIRST_HEIGHT: number;
|
|
23
|
+
SEPARATOR_TEXT_HEIGHT: number;
|
|
24
|
+
TITLE_HEIGHT: number;
|
|
25
|
+
INNER_PADDING: number;
|
|
26
|
+
MARGIN: number;
|
|
27
|
+
};
|
|
28
|
+
export declare const DEFAULT_ITEM_TYPE = Type.ITEM;
|
|
29
|
+
export type ListDataItem<T = unknown> = T & Partial<Omit<LinkProps, 'onClick' | 'onMouseUp'>> & {
|
|
30
|
+
rgItemType?: Type | null | undefined;
|
|
31
|
+
key?: string | number | null | undefined;
|
|
32
|
+
disabled?: boolean | undefined;
|
|
33
|
+
details?: string | null | undefined;
|
|
34
|
+
hoverClassName?: string | null | undefined;
|
|
35
|
+
compact?: boolean | null | undefined;
|
|
36
|
+
className?: string | null | undefined;
|
|
37
|
+
url?: string | undefined;
|
|
38
|
+
showGeneratedAvatar?: boolean | null | undefined;
|
|
39
|
+
username?: string | null | undefined;
|
|
40
|
+
avatar?: string | null | undefined;
|
|
41
|
+
subavatar?: string | null | undefined;
|
|
42
|
+
glyph?: IconType | string | null | undefined;
|
|
43
|
+
icon?: string | undefined;
|
|
44
|
+
iconSize?: Size | null | undefined;
|
|
45
|
+
rightGlyph?: IconType | string | null | undefined;
|
|
46
|
+
title?: string | null | undefined;
|
|
47
|
+
level?: number | null | undefined;
|
|
48
|
+
checkbox?: boolean | undefined;
|
|
49
|
+
description?: ReactNode;
|
|
50
|
+
label?: ReactNode;
|
|
51
|
+
rightNodes?: ReactNode;
|
|
52
|
+
leftNodes?: ReactNode;
|
|
53
|
+
tagName?: keyof JSX.IntrinsicElements | null | undefined;
|
|
54
|
+
selectedLabel?: string | null | undefined;
|
|
55
|
+
originalModel?: never;
|
|
56
|
+
LinkComponent?: ComponentType<ClickableLinkProps> | string | null | undefined;
|
|
57
|
+
template?: ReactNode | ((props: ListDataItemProps<T>) => ReactNode);
|
|
58
|
+
labelWrapper?: (children: ReactNode) => ReactElement;
|
|
59
|
+
custom?: boolean | null | undefined;
|
|
60
|
+
onClick?: ((item: ListDataItem<T>, event: Event | SyntheticEvent) => void) | null | undefined;
|
|
61
|
+
onMouseUp?: ((item: ListDataItem<T>, event: Event | SyntheticEvent) => void) | null | undefined;
|
|
62
|
+
};
|
|
63
|
+
export interface ListDataItemAddProps {
|
|
64
|
+
className?: string;
|
|
65
|
+
compact?: boolean | null | undefined;
|
|
66
|
+
hover: boolean;
|
|
67
|
+
onMouseOver: (e: SyntheticEvent) => void;
|
|
68
|
+
tabIndex: number;
|
|
69
|
+
scrolling: boolean;
|
|
70
|
+
onMouseUp?: (e: React.MouseEvent) => void;
|
|
71
|
+
onMouseDown?: (e: React.MouseEvent) => void;
|
|
72
|
+
onClick: (e: SyntheticEvent) => void;
|
|
73
|
+
onCheckboxChange: (e: React.ChangeEvent) => void;
|
|
74
|
+
isFirst?: boolean;
|
|
75
|
+
'data-test'?: string | null | undefined;
|
|
76
|
+
}
|
|
77
|
+
export type ListDataItemProps<T = unknown> = Omit<ListDataItem<T>, keyof ListDataItemAddProps> & ListDataItemAddProps;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @enum {number}
|
|
3
|
+
*/
|
|
4
|
+
export var Type;
|
|
5
|
+
(function (Type) {
|
|
6
|
+
Type[Type["SEPARATOR"] = 0] = "SEPARATOR";
|
|
7
|
+
Type[Type["LINK"] = 1] = "LINK";
|
|
8
|
+
Type[Type["ITEM"] = 2] = "ITEM";
|
|
9
|
+
Type[Type["HINT"] = 3] = "HINT";
|
|
10
|
+
Type[Type["CUSTOM"] = 4] = "CUSTOM";
|
|
11
|
+
Type[Type["TITLE"] = 5] = "TITLE";
|
|
12
|
+
Type[Type["MARGIN"] = 6] = "MARGIN";
|
|
13
|
+
})(Type || (Type = {}));
|
|
14
|
+
export const Dimension = {
|
|
15
|
+
ITEM_PADDING: 16,
|
|
16
|
+
ITEM_HEIGHT: 32,
|
|
17
|
+
COMPACT_ITEM_HEIGHT: 24,
|
|
18
|
+
SEPARATOR_HEIGHT: 25,
|
|
19
|
+
SEPARATOR_FIRST_HEIGHT: 16,
|
|
20
|
+
SEPARATOR_TEXT_HEIGHT: 18,
|
|
21
|
+
TITLE_HEIGHT: 42,
|
|
22
|
+
INNER_PADDING: 8,
|
|
23
|
+
MARGIN: 8
|
|
24
|
+
};
|
|
25
|
+
export const DEFAULT_ITEM_TYPE = Type.ITEM;
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
@import "../global/variables.css";
|
|
2
|
+
|
|
3
|
+
.list {
|
|
4
|
+
position: relative;
|
|
5
|
+
|
|
6
|
+
z-index: 1;
|
|
7
|
+
|
|
8
|
+
border-radius: var(--ring-border-radius);
|
|
9
|
+
|
|
10
|
+
line-height: normal;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.simpleInner {
|
|
14
|
+
overflow: auto;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.scrolling {
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.separator {
|
|
22
|
+
display: block;
|
|
23
|
+
|
|
24
|
+
min-height: var(--ring-unit);
|
|
25
|
+
|
|
26
|
+
margin-top: var(--ring-unit);
|
|
27
|
+
padding: 0 calc(var(--ring-unit) * 2) 1px;
|
|
28
|
+
|
|
29
|
+
text-align: right;
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
|
|
32
|
+
color: var(--ring-secondary-color);
|
|
33
|
+
border-top: 1px solid var(--ring-line-color);
|
|
34
|
+
|
|
35
|
+
font-size: var(--ring-font-size-smaller);
|
|
36
|
+
line-height: var(--ring-line-height-lower);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.separator_first {
|
|
40
|
+
margin-top: 0;
|
|
41
|
+
padding-top: 0;
|
|
42
|
+
|
|
43
|
+
border: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.item {
|
|
47
|
+
display: block;
|
|
48
|
+
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
|
|
51
|
+
width: 100%;
|
|
52
|
+
|
|
53
|
+
text-align: left;
|
|
54
|
+
vertical-align: bottom;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
text-decoration: none;
|
|
57
|
+
|
|
58
|
+
outline: none;
|
|
59
|
+
|
|
60
|
+
font-size: var(--ring-font-size);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.item.item {
|
|
64
|
+
padding: 3px calc(var(--ring-unit) * 2) 5px;
|
|
65
|
+
|
|
66
|
+
line-height: calc(var(--ring-unit) * 3);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.itemContainer {
|
|
70
|
+
position: relative;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.compact {
|
|
74
|
+
line-height: calc(var(--ring-unit) * 2);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.error {
|
|
78
|
+
cursor: default;
|
|
79
|
+
|
|
80
|
+
/* Override ring-link */
|
|
81
|
+
&,
|
|
82
|
+
&:hover,
|
|
83
|
+
&:focus,
|
|
84
|
+
&:visited {
|
|
85
|
+
color: var(--ring-error-color);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.add {
|
|
90
|
+
padding: var(--ring-unit) calc(2 * var(--ring-unit));
|
|
91
|
+
|
|
92
|
+
line-height: calc(4 * var(--ring-unit));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.top {
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: baseline;
|
|
98
|
+
flex-direction: row;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.left {
|
|
102
|
+
align-self: center;
|
|
103
|
+
flex-shrink: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.label {
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
flex-grow: 1;
|
|
109
|
+
flex-shrink: 1;
|
|
110
|
+
|
|
111
|
+
text-align: left;
|
|
112
|
+
white-space: nowrap;
|
|
113
|
+
text-overflow: ellipsis;
|
|
114
|
+
|
|
115
|
+
[dir="rtl"] & {
|
|
116
|
+
text-align: right;
|
|
117
|
+
direction: ltr;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.description {
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
flex-shrink: 100;
|
|
124
|
+
|
|
125
|
+
padding-left: var(--ring-unit);
|
|
126
|
+
|
|
127
|
+
text-align: right;
|
|
128
|
+
white-space: nowrap;
|
|
129
|
+
text-overflow: ellipsis;
|
|
130
|
+
|
|
131
|
+
color: var(--ring-secondary-color);
|
|
132
|
+
|
|
133
|
+
font-size: var(--ring-font-size-smaller);
|
|
134
|
+
font-weight: 400;
|
|
135
|
+
line-height: var(--ring-line-height-lowest);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.right {
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
align-self: center;
|
|
142
|
+
flex-direction: row;
|
|
143
|
+
flex-shrink: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.details {
|
|
147
|
+
margin-bottom: 6px;
|
|
148
|
+
|
|
149
|
+
white-space: normal;
|
|
150
|
+
|
|
151
|
+
color: var(--ring-secondary-color);
|
|
152
|
+
|
|
153
|
+
font-size: var(--ring-font-size-smaller);
|
|
154
|
+
line-height: var(--ring-line-height-lowest);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.padded {
|
|
158
|
+
margin-left: 20px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Override :last-child */
|
|
162
|
+
.hint.hint {
|
|
163
|
+
margin-bottom: 0;
|
|
164
|
+
|
|
165
|
+
border-top: 1px solid var(--ring-line-color);
|
|
166
|
+
background-color: var(--ring-sidebar-background-color);
|
|
167
|
+
|
|
168
|
+
font-size: var(--ring-font-size-smaller);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.action {
|
|
172
|
+
cursor: pointer;
|
|
173
|
+
|
|
174
|
+
color: var(--ring-text-color);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* override link */
|
|
178
|
+
.actionLink.actionLink {
|
|
179
|
+
transition: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.hover:not(.error) {
|
|
183
|
+
background-color: var(--ring-selected-background-color);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.icon {
|
|
187
|
+
display: inline-block;
|
|
188
|
+
|
|
189
|
+
width: 20px;
|
|
190
|
+
height: 20px;
|
|
191
|
+
margin-left: calc(var(--ring-unit) * 2);
|
|
192
|
+
|
|
193
|
+
background-repeat: no-repeat;
|
|
194
|
+
background-position: center;
|
|
195
|
+
|
|
196
|
+
background-size: contain;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.highlight {
|
|
200
|
+
color: var(--ring-link-hover-color);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.service {
|
|
204
|
+
color: var(--ring-secondary-color);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.glyph {
|
|
208
|
+
float: left;
|
|
209
|
+
|
|
210
|
+
width: 20px;
|
|
211
|
+
|
|
212
|
+
margin-right: var(--ring-unit);
|
|
213
|
+
|
|
214
|
+
color: var(--ring-icon-secondary-color);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.avatar {
|
|
218
|
+
composes: glyph;
|
|
219
|
+
|
|
220
|
+
top: 0;
|
|
221
|
+
|
|
222
|
+
height: 20px;
|
|
223
|
+
|
|
224
|
+
object-fit: cover;
|
|
225
|
+
object-position: center;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.rightGlyph {
|
|
229
|
+
composes: glyph;
|
|
230
|
+
|
|
231
|
+
float: right;
|
|
232
|
+
|
|
233
|
+
margin-right: 0;
|
|
234
|
+
margin-left: calc(var(--ring-unit) * 2);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.checkboxContainer {
|
|
238
|
+
position: absolute;
|
|
239
|
+
top: 7px;
|
|
240
|
+
left: 19px;
|
|
241
|
+
|
|
242
|
+
width: 20px;
|
|
243
|
+
height: 20px;
|
|
244
|
+
margin-right: var(--ring-unit);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.compact .checkboxContainer {
|
|
248
|
+
top: 0;
|
|
249
|
+
|
|
250
|
+
width: calc(var(--ring-unit) * 2);
|
|
251
|
+
height: calc(var(--ring-unit) * 2);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.title {
|
|
255
|
+
display: block;
|
|
256
|
+
|
|
257
|
+
margin-top: 10px;
|
|
258
|
+
margin-bottom: 6px;
|
|
259
|
+
padding: var(--ring-unit) calc(var(--ring-unit) * 2) 0;
|
|
260
|
+
|
|
261
|
+
text-align: left;
|
|
262
|
+
|
|
263
|
+
[dir="rtl"] & {
|
|
264
|
+
text-align: right;
|
|
265
|
+
direction: ltr;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.title_first {
|
|
270
|
+
margin-top: 0;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.text {
|
|
274
|
+
letter-spacing: 1.5px;
|
|
275
|
+
text-transform: uppercase;
|
|
276
|
+
|
|
277
|
+
color: var(--ring-secondary-color);
|
|
278
|
+
|
|
279
|
+
font-size: var(--ring-font-size-smaller);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.fade {
|
|
283
|
+
position: absolute;
|
|
284
|
+
bottom: 0;
|
|
285
|
+
|
|
286
|
+
width: 100%;
|
|
287
|
+
height: calc(var(--ring-unit) * 3);
|
|
288
|
+
|
|
289
|
+
pointer-events: none;
|
|
290
|
+
|
|
291
|
+
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--ring-content-background-color));
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.disabled {
|
|
295
|
+
pointer-events: none;
|
|
296
|
+
|
|
297
|
+
color: var(--ring-disabled-color);
|
|
298
|
+
}
|