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