@jetbrains/ring-ui 4.1.0-beta.9 → 4.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +22 -16
- package/babel.config.js +3 -2
- package/components/alert/alert.js +9 -3
- package/components/alert/container.css +1 -1
- package/components/alert-service/alert-service.examples.css +18 -0
- package/components/alert-service/alert-service.examples.js +21 -0
- package/components/alert-service/alert-service.js +10 -3
- package/components/analytics/analytics__fus-plugin.js +1 -1
- package/components/auth/auth.test.js +14 -7
- package/components/auth/auth__core.js +64 -33
- package/components/auth-dialog/auth-dialog.js +1 -0
- package/components/avatar/avatar.css +4 -1
- package/components/avatar/avatar.examples.js +3 -2
- package/components/avatar/avatar.js +31 -6
- package/components/avatar/fallback-avatar.js +136 -0
- package/components/avatar-editor-ng/avatar-editor-ng.css +2 -2
- package/components/avatar-editor-ng/avatar-editor-ng.js +2 -1
- package/components/avatar-editor-ng/{avatar-editor-ng.html → avatar-editor-ng__template.js} +2 -2
- package/components/button/button.css +2 -2
- package/components/button/button.js +4 -1
- package/components/button-group/button-group.js +1 -1
- package/components/button-group/caption.js +1 -1
- package/components/button-ng/button-ng.js +1 -1
- package/components/button-set-ng/button-set-ng.js +3 -1
- package/components/checkbox/checkbox.css +1 -1
- package/components/code/code.js +1 -1
- package/components/confirm/confirm.js +1 -0
- package/components/confirm-service/confirm-service.js +5 -5
- package/components/content-layout/content-layout.css +1 -1
- package/components/data-list/data-list.css +1 -1
- package/components/date-picker/date-input.js +5 -4
- package/components/date-picker/date-picker.css +34 -22
- package/components/date-picker/date-picker.examples.js +1 -1
- package/components/date-picker/date-picker.js +16 -14
- package/components/date-picker/date-popup.js +22 -7
- package/components/date-picker/month-names.js +8 -5
- package/components/date-picker/month.js +6 -2
- package/components/date-picker/weekdays.js +10 -2
- package/components/dialog/dialog.examples.js +3 -1
- package/components/dialog/dialog.js +5 -2
- package/components/dialog/dialog.test.js +1 -1
- package/components/dialog/dialog__body-scroll-preventer.js +2 -2
- package/components/dialog-ng/dialog-ng.js +7 -8
- package/components/dialog-ng/{dialog-ng.html → dialog-ng__template.js} +2 -2
- package/components/dropdown/anchor.js +1 -0
- package/components/dropdown/dropdown.examples.js +36 -1
- package/components/dropdown-menu/dropdown-menu.examples.js +47 -0
- package/components/dropdown-menu/dropdown-menu.js +117 -0
- package/components/dropdown-menu/dropdown-menu.test.js +76 -0
- package/components/error-bubble/error-bubble-legacy.css +1 -1
- package/components/error-bubble/error-bubble.css +1 -1
- package/components/error-bubble/error-bubble.examples.js +1 -1
- package/components/error-page/error-page.css +2 -2
- package/components/footer-ng/footer-ng.js +13 -3
- package/components/form/form.css +2 -2
- package/components/form-ng/form-ng.js +3 -1
- package/components/global/global.css +1 -1
- package/components/global/theme.js +1 -1
- package/components/global/variables.css +8 -1
- package/components/grid/grid.css +10 -9
- package/components/header/header.css +1 -1
- package/components/header/header.examples.js +7 -8
- package/components/header/profile.js +10 -11
- package/components/http/http.js +1 -1
- package/components/icon/icon.css +5 -4
- package/components/island/island.css +4 -3
- package/components/island-legacy/island-legacy.css +3 -1
- package/components/list/list.js +6 -1
- package/components/list/list__custom.js +9 -3
- package/components/list/list__item.js +8 -2
- package/components/list/list__link.js +2 -1
- package/components/loader-inline/loader-inline.css +1 -1
- package/components/loader-screen/loader-screen.css +1 -1
- package/components/message/message.css +1 -1
- package/components/message/message.examples.js +8 -5
- package/components/pager/pager.js +5 -3
- package/components/permissions/permissions.js +1 -1
- package/components/progress-bar/progress-bar.css +1 -1
- package/components/progress-bar/progress-bar.examples.js +3 -3
- package/components/progress-bar/progress-bar.js +5 -2
- package/components/progress-bar/progress-bar.test.js +12 -13
- package/components/progress-bar-ng/progress-bar-ng.examples.js +3 -3
- package/components/query-assist/query-assist.css +13 -3
- package/components/query-assist/query-assist.examples.js +3 -1
- package/components/query-assist/query-assist.js +56 -12
- package/components/query-assist/query-assist.test.js +37 -5
- package/components/save-field-ng/save-field-ng.css +0 -3
- package/components/save-field-ng/save-field-ng.js +3 -1
- package/components/save-field-ng/{save-field-ng.html → save-field-ng__template.js} +2 -2
- package/components/select/select.css +12 -7
- package/components/select/select.examples.js +13 -0
- package/components/select/select.js +30 -43
- package/components/select/select.test.js +4 -5
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.css +1 -1
- package/components/shortcuts-hint-ng/shortcuts-hint-ng.js +1 -1
- package/components/shortcuts-hint-ng/{shortcuts-hint-ng.html → shortcuts-hint-ng__template.js} +2 -2
- package/components/sidebar/sidebar.css +1 -0
- package/components/sidebar-ng/sidebar-ng.js +6 -2
- package/components/sidebar-ng/{sidebar-ng__button.html → sidebar-ng__button-template.js} +2 -2
- package/components/sidebar-ng/{sidebar-ng.html → sidebar-ng__template.js} +2 -2
- package/components/table/row.js +2 -1
- package/components/table/table.css +2 -1
- package/components/table-legacy/table-legacy.css +2 -2
- package/components/table-legacy/table-legacy__toolbar.css +2 -2
- package/components/table-legacy-ng/table-legacy-ng.js +38 -5
- package/components/table-legacy-ng/table-legacy-ng__pager.js +7 -1
- package/components/tabs/collapsible-tab.js +2 -2
- package/components/tabs/collapsible-tabs.js +4 -8
- package/components/tabs/dumb-tabs.js +1 -0
- package/components/tabs/tab-link.js +4 -2
- package/components/tabs/tabs.css +27 -0
- package/components/tabs-ng/tabs-ng.js +4 -2
- package/components/tabs-ng/{tabs-ng.html → tabs-ng__template.js} +6 -2
- package/components/tag/tag.css +5 -2
- package/components/tag/tag.examples.js +3 -0
- package/components/tag/tag.js +19 -16
- package/components/tags-input/tag-input.examples.js +1 -1
- package/components/tags-input/tags-input.js +5 -2
- package/components/template-ng/template-ng.js +1 -1
- package/components/tooltip/tooltip.js +7 -2
- package/components/user-agreement/user-agreement.css +1 -1
- package/components/user-agreement/user-agreement.examples.js +7 -4
- package/components/user-agreement/user-agreement.js +1 -0
- package/dist/_helpers/_rollupPluginBabelHelpers.js +1 -94
- package/dist/_helpers/anchor.js +6 -6
- package/dist/_helpers/badge.js +1 -1
- package/dist/_helpers/button-group.js +3 -0
- package/dist/_helpers/button-set.js +3 -0
- package/dist/_helpers/button-toolbar.js +3 -0
- package/dist/_helpers/button__classes.js +1 -1
- package/dist/_helpers/card.js +6 -8
- package/dist/_helpers/checkbox.js +3 -0
- package/dist/_helpers/date-picker.js +1 -1
- package/dist/_helpers/dialog__body-scroll-preventer.js +3 -2
- package/dist/_helpers/error-message.js +3 -0
- package/dist/_helpers/footer.js +121 -0
- package/dist/_helpers/grid.js +1 -1
- package/dist/_helpers/group.js +3 -0
- package/dist/_helpers/header.js +1 -1
- package/dist/_helpers/icon.js +3 -0
- package/dist/_helpers/inject-styles.js +1 -1
- package/dist/_helpers/input.js +3 -0
- package/dist/_helpers/island.js +1 -1
- package/dist/_helpers/link.js +3 -0
- package/dist/_helpers/list.js +1 -1
- package/dist/_helpers/loader-screen.js +3 -0
- package/dist/_helpers/panel.js +3 -0
- package/dist/_helpers/query-assist__suggestions.js +1 -1
- package/dist/_helpers/radio.js +3 -0
- package/dist/_helpers/select__filter.js +6 -8
- package/dist/_helpers/services-link.js +6 -8
- package/dist/_helpers/sidebar.js +6 -8
- package/dist/_helpers/table.js +1 -1
- package/dist/_helpers/tabs.js +1 -1
- package/dist/_helpers/title.js +1 -1
- package/dist/alert/alert.js +15 -9
- package/dist/alert/container.js +7 -9
- package/dist/alert-service/alert-service.js +24 -13
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/analytics__custom-plugin.js +1 -1
- package/dist/analytics/analytics__fus-plugin.js +2 -2
- package/dist/analytics/analytics__ga-plugin.js +1 -1
- package/dist/analytics/analytics__plugin-utils.js +1 -1
- package/dist/analytics-ng/analytics-ng.js +94 -0
- package/dist/auth/auth.js +7 -4
- package/dist/auth/auth__core.js +86 -48
- package/dist/auth/background-flow.js +1 -2
- package/dist/auth/down-notification.js +6 -3
- package/dist/auth/iframe-flow.js +5 -2
- package/dist/auth/landing-entry.js +1 -1
- package/dist/auth/landing.js +5 -2
- package/dist/auth/request-builder.js +1 -1
- package/dist/auth/response-parser.js +1 -1
- package/dist/auth/storage.js +3 -2
- package/dist/auth/token-validator.js +1 -1
- package/dist/auth/window-flow.js +1 -1
- package/dist/auth-dialog/auth-dialog.js +5 -3
- package/dist/auth-dialog-service/auth-dialog-service.js +6 -5
- package/dist/auth-ng/auth-ng.js +203 -0
- package/dist/auth-ng/auth-ng.mock.js +33 -0
- package/dist/autofocus-ng/autofocus-ng.js +50 -0
- package/dist/avatar/avatar.js +36 -30
- package/dist/avatar/fallback-avatar.js +141 -0
- package/dist/avatar-editor-ng/avatar-editor-ng.js +164 -0
- package/dist/avatar-editor-ng/avatar-editor-ng__template.js +30 -0
- package/dist/avatar-ng/avatar-ng.js +18 -0
- package/dist/badge/badge.js +6 -8
- package/dist/badge-ng/badge-ng.js +16 -0
- package/dist/breadcrumb-ng/breadcrumb-ng.js +61 -0
- package/dist/button/button.js +16 -10
- package/dist/button-group/button-group.js +4 -4
- package/dist/button-group/caption.js +24 -5
- package/dist/button-group-ng/button-group-ng.js +38 -0
- package/dist/button-ng/button-ng.js +223 -0
- package/dist/button-set/button-set.js +3 -4
- package/dist/button-set-ng/button-set-ng.js +19 -0
- package/dist/button-toolbar/button-toolbar.js +3 -4
- package/dist/button-toolbar-ng/button-toolbar-ng.js +23 -0
- package/dist/caret/caret.js +1 -1
- package/dist/checkbox/checkbox.js +9 -11
- package/dist/checkbox-ng/checkbox-ng.js +55 -0
- package/dist/code/code.js +136 -0
- package/dist/compiler-ng/compiler-ng.js +53 -0
- package/dist/confirm/confirm.js +6 -3
- package/dist/confirm-ng/confirm-ng.js +66 -0
- package/dist/confirm-service/confirm-service.js +12 -10
- package/dist/content-layout/content-layout.js +6 -8
- package/dist/contenteditable/contenteditable.js +13 -16
- package/dist/data-list/data-list.js +10 -7
- package/dist/data-list/data-list.mock.js +2 -2
- package/dist/data-list/item.js +5 -3
- package/dist/data-list/selection.js +1 -1
- package/dist/data-list/title.js +3 -1
- package/dist/data-list-ng/data-list-ng.js +59 -0
- package/dist/date-picker/consts.js +1 -2
- package/dist/date-picker/date-input.js +10 -6
- package/dist/date-picker/date-picker.js +38 -29
- package/dist/date-picker/date-popup.js +51 -28
- package/dist/date-picker/day.js +2 -2
- package/dist/date-picker/formats.js +1 -1
- package/dist/date-picker/month-names.js +16 -9
- package/dist/date-picker/month-slider.js +2 -2
- package/dist/date-picker/month.js +13 -7
- package/dist/date-picker/months.js +3 -3
- package/dist/date-picker/weekdays.js +12 -4
- package/dist/date-picker/years.js +2 -2
- package/dist/dialog/dialog.js +13 -10
- package/dist/dialog/dialog__body-scroll-preventer.js +1 -1
- package/dist/dialog-ng/dialog-ng.js +601 -0
- package/dist/dialog-ng/dialog-ng__template.js +71 -0
- package/dist/docked-panel-ng/docked-panel-ng.js +170 -0
- package/dist/dropdown/anchor.js +2 -1
- package/dist/dropdown/dropdown.js +8 -10
- package/dist/dropdown-menu/dropdown-menu.js +175 -0
- package/dist/error-bubble/error-bubble.js +7 -9
- package/dist/error-message/error-message.js +4 -4
- package/dist/error-message-ng/error-message-ng.js +53 -0
- package/dist/footer/footer.js +6 -122
- package/dist/footer-ng/footer-ng.js +75 -0
- package/dist/form-ng/form-ng.js +169 -0
- package/dist/global/angular-component-factory.js +1 -2
- package/dist/global/compose.js +1 -1
- package/dist/global/composeRefs.js +1 -1
- package/dist/global/conic-gradient.js +3 -5
- package/dist/global/create-stateful-context.js +1 -1
- package/dist/global/data-tests.js +1 -1
- package/dist/global/focus-sensor-hoc.js +9 -11
- package/dist/global/fuzzy-highlight.js +1 -1
- package/dist/global/get-event-key.js +1 -1
- package/dist/global/get-uid.js +1 -1
- package/dist/global/linear-function.js +1 -2
- package/dist/global/listeners.js +1 -1
- package/dist/global/memoize.js +1 -1
- package/dist/global/normalize-indent.js +1 -1
- package/dist/global/promise-with-timeout.js +1 -1
- package/dist/global/radial-gradient-mask.js +1 -1
- package/dist/global/react-dom-renderer.js +1 -1
- package/dist/global/rerender-hoc.js +3 -5
- package/dist/global/ring-angular-component.js +1 -1
- package/dist/global/schedule-raf.js +1 -1
- package/dist/global/sniffer.js +1 -1
- package/dist/global/supports-css.js +1 -1
- package/dist/global/theme.js +6 -8
- package/dist/global/trivial-template-tag.js +1 -1
- package/dist/global/variables_dark.js +1 -1
- package/dist/grid/col.js +6 -8
- package/dist/grid/grid.js +5 -7
- package/dist/grid/row.js +6 -8
- package/dist/group/group.js +7 -10
- package/dist/group-ng/group-ng.js +11 -0
- package/dist/header/header.js +29 -26
- package/dist/header/logo.js +8 -9
- package/dist/header/profile.js +37 -32
- package/dist/header/services-link.js +1 -0
- package/dist/header/services.js +10 -9
- package/dist/header/smart-profile.js +27 -24
- package/dist/header/smart-services.js +10 -9
- package/dist/header/tray-icon.js +12 -12
- package/dist/header/tray.js +6 -8
- package/dist/heading/heading.js +9 -12
- package/dist/http/http.js +37 -37
- package/dist/http/http.mock.js +4 -4
- package/dist/hub-source/hub-source.js +1 -1
- package/dist/hub-source/hub-source__users-groups.js +1 -1
- package/dist/icon/icon.js +8 -8
- package/dist/icon/icon__svg.js +81 -6
- package/dist/icon/index.js +2 -1
- package/dist/icon-ng/icon-ng.js +89 -0
- package/dist/input/input.js +9 -12
- package/dist/input-ng/input-ng.js +166 -0
- package/dist/island/adaptive-island-hoc.js +1 -2
- package/dist/island/content.js +6 -8
- package/dist/island/header.js +6 -8
- package/dist/island/island.js +6 -9
- package/dist/island-legacy/content-legacy.js +6 -8
- package/dist/island-legacy/header-legacy.js +6 -8
- package/dist/island-legacy/island-legacy.js +6 -8
- package/dist/island-ng/island-content-ng.js +56 -0
- package/dist/island-ng/island-header-ng.js +32 -0
- package/dist/island-ng/island-ng-class-fixer.js +9 -0
- package/dist/island-ng/island-ng.js +31 -0
- package/dist/link/clickableLink.js +6 -8
- package/dist/link/link.js +7 -11
- package/dist/link-ng/link-ng.js +25 -0
- package/dist/list/list.js +25 -13
- package/dist/list/list__custom.js +13 -10
- package/dist/list/list__hint.js +1 -1
- package/dist/list/list__item.js +20 -13
- package/dist/list/list__link.js +11 -12
- package/dist/list/list__separator.js +1 -1
- package/dist/list/list__title.js +1 -1
- package/dist/list/list__users-groups-source.js +11 -7
- package/dist/loader/loader.js +6 -8
- package/dist/loader/loader__core.js +2 -2
- package/dist/loader-inline/inject-styles.js +1 -1
- package/dist/loader-inline/loader-inline.js +6 -8
- package/dist/loader-inline-ng/loader-inline-ng.js +42 -0
- package/dist/loader-ng/loader-ng.js +43 -0
- package/dist/loader-screen/loader-screen.js +7 -10
- package/dist/loader-screen-ng/loader-screen-ng.js +99 -0
- package/dist/login-dialog/login-dialog.js +5 -3
- package/dist/login-dialog/service.js +7 -5
- package/dist/markdown/code.js +30 -0
- package/dist/markdown/heading.js +23 -0
- package/dist/markdown/link.js +30 -0
- package/dist/markdown/markdown.js +73 -0
- package/dist/message/message.js +5 -4
- package/dist/message-bundle-ng/message-bundle-ng.js +111 -0
- package/dist/old-browsers-message/old-browsers-message.js +0 -1
- package/dist/old-browsers-message/old-browsers-message__stop.js +0 -1
- package/dist/old-browsers-message/white-list.js +4 -5
- package/dist/pager/pager.js +18 -9
- package/dist/pager-ng/pager-ng.js +96 -0
- package/dist/panel/panel.js +7 -10
- package/dist/panel-ng/panel-ng.js +16 -0
- package/dist/permissions/permissions.js +1 -1
- package/dist/permissions/permissions__cache.js +1 -1
- package/dist/permissions-ng/permissions-ng.js +274 -0
- package/dist/place-under-ng/place-under-ng.js +157 -0
- package/dist/popup/popup.js +8 -8
- package/dist/popup/popup.target.js +4 -5
- package/dist/popup/position.js +1 -2
- package/dist/popup-menu/popup-menu.js +21 -14
- package/dist/progress-bar/progress-bar.js +12 -10
- package/dist/progress-bar-ng/progress-bar-ng.js +15 -0
- package/dist/promised-click-ng/promised-click-ng.js +126 -0
- package/dist/proxy-attrs/proxy-attrs.js +1 -1
- package/dist/query-assist/query-assist.js +97 -28
- package/dist/query-assist/query-assist__suggestions.js +5 -1
- package/dist/query-assist-ng/query-assist-ng.js +82 -0
- package/dist/radio/radio.js +7 -5
- package/dist/radio/radio__item.js +10 -15
- package/dist/radio-ng/radio-ng.js +63 -0
- package/dist/save-field-ng/save-field-ng.js +335 -0
- package/dist/save-field-ng/save-field-ng__template.js +34 -0
- package/dist/select/select.js +50 -49
- package/dist/select/select__filter.js +6 -1
- package/dist/select/select__popup.js +8 -3
- package/dist/select-ng/select-ng.js +621 -0
- package/dist/select-ng/select-ng__lazy.js +150 -0
- package/dist/select-ng/select-ng__options.js +145 -0
- package/dist/shortcuts/core.js +2 -2
- package/dist/shortcuts/shortcuts-hoc.js +6 -8
- package/dist/shortcuts/shortcuts.js +6 -6
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +120 -0
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +50 -0
- package/dist/shortcuts-ng/shortcuts-ng.js +261 -0
- package/dist/sidebar-ng/sidebar-ng.js +111 -0
- package/dist/sidebar-ng/sidebar-ng__button-template.js +20 -0
- package/dist/sidebar-ng/sidebar-ng__template.js +12 -0
- package/dist/storage/storage.js +3 -2
- package/dist/storage/storage__fallback.js +1 -1
- package/dist/storage/storage__local.js +3 -2
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.js +7 -9
- package/dist/table/cell.js +2 -2
- package/dist/table/disable-hover-hoc.js +2 -2
- package/dist/table/header-cell.js +8 -9
- package/dist/table/header.js +5 -3
- package/dist/table/multitable.js +1 -1
- package/dist/table/row-with-focus-sensor.js +5 -3
- package/dist/table/row.js +11 -10
- package/dist/table/selection-adapter.js +1 -1
- package/dist/table/selection-shortcuts-hoc.js +8 -6
- package/dist/table/selection.js +1 -1
- package/dist/table/smart-table.js +14 -8
- package/dist/table/table.js +10 -11
- package/dist/table-legacy-ng/table-legacy-ng.js +501 -0
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +122 -0
- package/dist/table-legacy-ng/table-legacy-ng__selection-navigate-actions.js +123 -0
- package/dist/table-legacy-ng/table-legacy-ng__selection.js +179 -0
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +56 -0
- package/dist/table-ng/smart-table-ng.js +65 -0
- package/dist/table-ng/table-ng.js +64 -0
- package/dist/tabs/collapsible-more.js +9 -6
- package/dist/tabs/collapsible-tab.js +7 -7
- package/dist/tabs/collapsible-tabs.js +18 -19
- package/dist/tabs/dumb-tabs.js +12 -9
- package/dist/tabs/smart-tabs.js +11 -9
- package/dist/tabs/tab-link.js +13 -7
- package/dist/tabs/tab.js +1 -1
- package/dist/tabs/tabs.js +5 -1
- package/dist/tabs-ng/tabs-ng.js +193 -0
- package/dist/tabs-ng/tabs-ng__template.js +40 -0
- package/dist/tag/tag.js +20 -14
- package/dist/tags-input/tags-input.js +14 -10
- package/dist/tags-input-ng/tags-input-ng.js +89 -0
- package/dist/tags-list/tags-list.js +8 -9
- package/dist/template-ng/template-ng.js +70 -0
- package/dist/text/text.js +7 -9
- package/dist/theme-ng/theme-ng.js +44 -0
- package/dist/title-ng/title-ng.js +114 -0
- package/dist/toggle/toggle.js +8 -11
- package/dist/toggle-ng/toggle-ng.js +16 -0
- package/dist/tooltip/tooltip.js +14 -12
- package/dist/tooltip-ng/tooltip-ng.js +98 -0
- package/dist/user-agreement/service.js +409 -0
- package/dist/user-agreement/toolbox.eula.js +162 -0
- package/dist/user-agreement/user-agreement.js +167 -0
- package/dist/user-card/card.js +3 -0
- package/dist/user-card/smart-user-card-tooltip.js +14 -14
- package/dist/user-card/tooltip.js +9 -7
- package/dist/user-card/user-card.js +5 -2
- package/dist/user-card-ng/user-card-ng.js +59 -0
- package/package.json +81 -79
- package/webpack.config.js +14 -10
- package/components/button-set-ng/button-set-ng.html +0 -1
- package/components/footer-ng/footer-ng.html +0 -13
- package/components/form-ng/form-ng__error-bubble.html +0 -3
- package/components/table-legacy-ng/table-legacy-ng.html +0 -4
- package/components/table-legacy-ng/table-legacy-ng__column.html +0 -12
- package/components/table-legacy-ng/table-legacy-ng__header.html +0 -4
- package/components/table-legacy-ng/table-legacy-ng__pager.html +0 -7
- package/components/table-legacy-ng/table-legacy-ng__row.html +0 -12
- package/components/table-legacy-ng/table-legacy-ng__title.html +0 -9
- package/dist/_helpers/caption.js +0 -25
- package/dist/_helpers/icon__svg.js +0 -83
package/components/tag/tag.js
CHANGED
|
@@ -29,7 +29,8 @@ export default class Tag extends PureComponent {
|
|
|
29
29
|
textColor: PropTypes.string,
|
|
30
30
|
|
|
31
31
|
children: PropTypes.node,
|
|
32
|
-
className: PropTypes.string
|
|
32
|
+
className: PropTypes.string,
|
|
33
|
+
render: PropTypes.func
|
|
33
34
|
};
|
|
34
35
|
|
|
35
36
|
static defaultProps = {
|
|
@@ -37,7 +38,8 @@ export default class Tag extends PureComponent {
|
|
|
37
38
|
onClick: () => {},
|
|
38
39
|
readOnly: false,
|
|
39
40
|
disabled: false,
|
|
40
|
-
focused: false
|
|
41
|
+
focused: false,
|
|
42
|
+
render: props => <button type="button" {...props}/>
|
|
41
43
|
};
|
|
42
44
|
|
|
43
45
|
state = {
|
|
@@ -155,23 +157,24 @@ export default class Tag extends PureComponent {
|
|
|
155
157
|
this.props.className
|
|
156
158
|
);
|
|
157
159
|
|
|
158
|
-
const {backgroundColor, textColor} = this.props;
|
|
160
|
+
const {backgroundColor, textColor, render} = this.props;
|
|
159
161
|
|
|
160
162
|
return (
|
|
161
163
|
<span className={styles.container}>
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
164
|
+
{render({
|
|
165
|
+
'data-test': 'ring-tag',
|
|
166
|
+
className: classes,
|
|
167
|
+
ref: this.tagRef,
|
|
168
|
+
onClick: this.props.onClick,
|
|
169
|
+
style: {backgroundColor, color: textColor},
|
|
170
|
+
children: (
|
|
171
|
+
<>
|
|
172
|
+
{this.renderAvatar()}
|
|
173
|
+
{this.renderCustomIcon()}
|
|
174
|
+
{this.renderImage()}
|
|
175
|
+
<span className={styles.content}>{this.props.children}</span>
|
|
176
|
+
</>)
|
|
177
|
+
})}
|
|
175
178
|
{this.renderRemoveIcon()}
|
|
176
179
|
</span>
|
|
177
180
|
);
|
|
@@ -116,7 +116,7 @@ export const autoOpenInADialog = () => {
|
|
|
116
116
|
return (
|
|
117
117
|
<>
|
|
118
118
|
<Button>Button</Button>
|
|
119
|
-
<Dialog show trapFocus autoFocusFirst={false}>
|
|
119
|
+
<Dialog label="Tags" show trapFocus autoFocusFirst={false}>
|
|
120
120
|
<Content>
|
|
121
121
|
<TagsInput tags={tags} dataSource={dataSource} autoOpen/>
|
|
122
122
|
</Content>
|
|
@@ -70,6 +70,11 @@ export default class TagsInput extends PureComponent {
|
|
|
70
70
|
placeholder: 'Select an option'
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
+
constructor(props) {
|
|
74
|
+
super(props);
|
|
75
|
+
this.ngModelStateField = TagsInput.ngModelStateField;
|
|
76
|
+
}
|
|
77
|
+
|
|
73
78
|
state = {
|
|
74
79
|
tags: [],
|
|
75
80
|
prevTags: null,
|
|
@@ -102,8 +107,6 @@ export default class TagsInput extends PureComponent {
|
|
|
102
107
|
this.node = node;
|
|
103
108
|
};
|
|
104
109
|
|
|
105
|
-
ngModelStateField = TagsInput.ngModelStateField;
|
|
106
|
-
|
|
107
110
|
getInputNode() {
|
|
108
111
|
if (!this.input) {
|
|
109
112
|
this.input = this.select.filter;
|
|
@@ -20,7 +20,7 @@ export default class Tooltip extends Component {
|
|
|
20
20
|
delay: PropTypes.number,
|
|
21
21
|
selfOverflowOnly: PropTypes.bool,
|
|
22
22
|
popupProps: PropTypes.object,
|
|
23
|
-
title: PropTypes.
|
|
23
|
+
title: PropTypes.node,
|
|
24
24
|
children: PropTypes.node,
|
|
25
25
|
'data-test': PropTypes.string
|
|
26
26
|
};
|
|
@@ -133,15 +133,20 @@ export default class Tooltip extends Component {
|
|
|
133
133
|
const {children, 'data-test': dataTest,
|
|
134
134
|
title, delay, selfOverflowOnly, popupProps, ...restProps} = this.props;
|
|
135
135
|
|
|
136
|
+
const ariaProps = typeof title === 'string' && !!title
|
|
137
|
+
? {'aria-label': title, role: 'tooltip'}
|
|
138
|
+
: {};
|
|
139
|
+
|
|
136
140
|
const {onNestedTooltipShow, onNestedTooltipHide} = this;
|
|
137
141
|
|
|
138
142
|
return (
|
|
139
143
|
<TooltipContext.Provider value={{onNestedTooltipShow, onNestedTooltipHide}}>
|
|
140
144
|
<span
|
|
145
|
+
{...ariaProps}
|
|
141
146
|
{...restProps}
|
|
142
147
|
ref={this.containerRef}
|
|
143
148
|
data-test={dataTests('ring-tooltip', dataTest)}
|
|
144
|
-
data-test-title={title}
|
|
149
|
+
data-test-title={typeof title === 'string' ? title : undefined}
|
|
145
150
|
>
|
|
146
151
|
{children}
|
|
147
152
|
<Popup
|
|
@@ -34,12 +34,15 @@ dialog.args = {
|
|
|
34
34
|
dialog.argTypes = {
|
|
35
35
|
onRemindLater: {}
|
|
36
36
|
};
|
|
37
|
+
dialog.parameters = {
|
|
38
|
+
actions: {argTypesRegex: '^on(?!RemindLater).*'}
|
|
39
|
+
};
|
|
37
40
|
dialog.storyName = 'dialog';
|
|
38
41
|
|
|
39
42
|
function noop() {}
|
|
40
43
|
export const service = ({
|
|
41
|
-
|
|
42
|
-
onGetUserConsent,
|
|
44
|
+
onGetUserAgreement = noop,
|
|
45
|
+
onGetUserConsent = noop,
|
|
43
46
|
onSetUserConsent = noop,
|
|
44
47
|
onAccept,
|
|
45
48
|
onDecline,
|
|
@@ -59,7 +62,7 @@ export const service = ({
|
|
|
59
62
|
|
|
60
63
|
const agreementService = new UserAgreementService({
|
|
61
64
|
getUserAgreement: () => {
|
|
62
|
-
|
|
65
|
+
onGetUserAgreement(fakeUserAgreement);
|
|
63
66
|
return fakeUserAgreement;
|
|
64
67
|
},
|
|
65
68
|
getUserConsent: () => {
|
|
@@ -93,7 +96,7 @@ export const service = ({
|
|
|
93
96
|
};
|
|
94
97
|
|
|
95
98
|
service.argTypes = {
|
|
96
|
-
|
|
99
|
+
onGetUserAgreement: {},
|
|
97
100
|
onGetUserConsent: {},
|
|
98
101
|
onSetUserConsent: {},
|
|
99
102
|
onAccept: {},
|
|
@@ -1,41 +1,3 @@
|
|
|
1
|
-
function ownKeys(object, enumerableOnly) {
|
|
2
|
-
var keys = Object.keys(object);
|
|
3
|
-
|
|
4
|
-
if (Object.getOwnPropertySymbols) {
|
|
5
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
6
|
-
|
|
7
|
-
if (enumerableOnly) {
|
|
8
|
-
symbols = symbols.filter(function (sym) {
|
|
9
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
keys.push.apply(keys, symbols);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return keys;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function _objectSpread2(target) {
|
|
20
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
21
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
22
|
-
|
|
23
|
-
if (i % 2) {
|
|
24
|
-
ownKeys(Object(source), true).forEach(function (key) {
|
|
25
|
-
_defineProperty(target, key, source[key]);
|
|
26
|
-
});
|
|
27
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
28
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
29
|
-
} else {
|
|
30
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
31
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return target;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
1
|
function _defineProperty(obj, key, value) {
|
|
40
2
|
if (key in obj) {
|
|
41
3
|
Object.defineProperty(obj, key, {
|
|
@@ -69,59 +31,4 @@ function _extends() {
|
|
|
69
31
|
return _extends.apply(this, arguments);
|
|
70
32
|
}
|
|
71
33
|
|
|
72
|
-
|
|
73
|
-
if (source == null) return {};
|
|
74
|
-
var target = {};
|
|
75
|
-
var sourceKeys = Object.keys(source);
|
|
76
|
-
var key, i;
|
|
77
|
-
|
|
78
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
79
|
-
key = sourceKeys[i];
|
|
80
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
81
|
-
target[key] = source[key];
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return target;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function _objectWithoutProperties(source, excluded) {
|
|
88
|
-
if (source == null) return {};
|
|
89
|
-
|
|
90
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
91
|
-
|
|
92
|
-
var key, i;
|
|
93
|
-
|
|
94
|
-
if (Object.getOwnPropertySymbols) {
|
|
95
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
96
|
-
|
|
97
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
98
|
-
key = sourceSymbolKeys[i];
|
|
99
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
100
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
101
|
-
target[key] = source[key];
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
return target;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function _toPrimitive(input, hint) {
|
|
109
|
-
if (typeof input !== "object" || input === null) return input;
|
|
110
|
-
var prim = input[Symbol.toPrimitive];
|
|
111
|
-
|
|
112
|
-
if (prim !== undefined) {
|
|
113
|
-
var res = prim.call(input, hint || "default");
|
|
114
|
-
if (typeof res !== "object") return res;
|
|
115
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
return (hint === "string" ? String : Number)(input);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function _toPropertyKey(arg) {
|
|
122
|
-
var key = _toPrimitive(arg, "string");
|
|
123
|
-
|
|
124
|
-
return typeof key === "symbol" ? key : String(key);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export { _defineProperty as _, _objectWithoutProperties as a, _extends as b, _objectSpread2 as c, _toPropertyKey as d };
|
|
34
|
+
export { _defineProperty as _, _extends as a };
|
package/dist/_helpers/anchor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as _extends } from './_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { memo } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import chevronDown from '@jetbrains/icons/chevron-10px';
|
|
@@ -6,16 +6,16 @@ import classNames from 'classnames';
|
|
|
6
6
|
import Icon from '../icon/icon.js';
|
|
7
7
|
import Button from '../button/button.js';
|
|
8
8
|
|
|
9
|
-
var modules_d9414203 = {"dropdown":"
|
|
9
|
+
var modules_d9414203 = {"dropdown":"dropdown_rui_15de","anchor":"anchor_rui_15de","chevron":"chevron_rui_15de"};
|
|
10
10
|
|
|
11
11
|
const Anchor = _ref => {
|
|
12
12
|
let {
|
|
13
13
|
children,
|
|
14
|
-
className
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
className,
|
|
15
|
+
...restProps
|
|
16
|
+
} = _ref;
|
|
18
17
|
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
18
|
+
"data-test-ring-dropdown-anchor": true,
|
|
19
19
|
text: true,
|
|
20
20
|
className: classNames(modules_d9414203.anchor, className)
|
|
21
21
|
}, restProps), children, /*#__PURE__*/React.createElement(Icon, {
|
package/dist/_helpers/badge.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var modules_6c9187df = {"unit":"8px","badge":"
|
|
1
|
+
var modules_6c9187df = {"unit":"8px","badge":"badge_rui_e7ea","gray":"gray_rui_e7ea","valid":"valid_rui_e7ea","invalid":"invalid_rui_e7ea","disabled":"disabled_rui_e7ea"};
|
|
2
2
|
|
|
3
3
|
export { modules_6c9187df as m };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import Theme from '../global/theme.js';
|
|
3
3
|
|
|
4
|
-
var modules_e81895c9 = {"unit":"8px","button-shadow":"inset 0 0 0 1px","height":"24px","loaderWidth":"64px","
|
|
4
|
+
var modules_e81895c9 = {"unit":"8px","button-shadow":"inset 0 0 0 1px","height":"24px","loaderWidth":"64px","light":"light_rui_8477","active":"active_rui_8477 active_rui_e33e","withIcon":"withIcon_rui_8477","icon":"icon_rui_8477","primary":"primary_rui_8477","danger":"danger_rui_8477","loaderBackground":"loaderBackground_rui_8477","dark":"dark_rui_8477","dropdownIcon":"dropdownIcon_rui_8477","button":"button_rui_8477 button_rui_e33e button_rui_40c7 button_rui_ec74","loader":"loader_rui_8477","text":"text_rui_8477","content":"content_rui_8477","text-loading":"textLoading_rui_8477","inline":"inline_rui_8477","withNormalIconLight":"withNormalIconLight_rui_8477","withNormalIconDark":"withNormalIconDark_rui_8477","withDangerIconLight":"withDangerIconLight_rui_8477","withDangerIconDark":"withDangerIconDark_rui_8477","progress":"progress_rui_8477","delayed":"delayed_rui_8477","short":"short_rui_8477"};
|
|
5
5
|
|
|
6
6
|
function getButtonClasses(_ref) {
|
|
7
7
|
let {
|
package/dist/_helpers/card.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _defineProperty, a as _extends } from './_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
@@ -6,19 +6,17 @@ import Avatar, { Size } from '../avatar/avatar.js';
|
|
|
6
6
|
import Link from '../link/link.js';
|
|
7
7
|
import { m as modules_6c9187df } from './badge.js';
|
|
8
8
|
|
|
9
|
-
var modules_a4196c17 = {"unit":"8px","userCardSpaced":"
|
|
9
|
+
var modules_a4196c17 = {"unit":"8px","userCardSpaced":"userCardSpaced_rui_2a18","userInformationContainer":"userInformationContainer_rui_2a18","userInformation":"userInformation_rui_2a18","userName":"userName_rui_2a18","userActiveStatus":"userActiveStatus_rui_2a18","online":"online_rui_2a18"};
|
|
10
10
|
|
|
11
11
|
class UserCard extends PureComponent {
|
|
12
12
|
render() {
|
|
13
|
-
const
|
|
14
|
-
{
|
|
13
|
+
const {
|
|
15
14
|
children,
|
|
16
15
|
className,
|
|
17
16
|
user,
|
|
18
|
-
wording
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
wording,
|
|
18
|
+
...restProps
|
|
19
|
+
} = this.props;
|
|
22
20
|
const classes = classNames(className, {});
|
|
23
21
|
const userActiveStatusClasses = classNames(modules_a4196c17.userActiveStatus, user.online ? modules_a4196c17.online : '');
|
|
24
22
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var modules_3199090e = {"unit":"8px","checkboxSize":"14px","checkbox":"checkbox_rui_c636","cell":"cell_rui_c636","icon":"icon_rui_c636","check":"check_rui_c636 icon_rui_c636","minus":"minus_rui_c636 icon_rui_c636","input":"input_rui_c636","focus":"focus_rui_c636","label":"label_rui_c636"};
|
|
2
|
+
|
|
3
|
+
export { modules_3199090e as m };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var modules_0c7b7d96 = {"unit":"8px","resetButton":"
|
|
1
|
+
var modules_0c7b7d96 = {"unit":"8px","resetButton":"resetButton_rui_750f","cellSize":"24px","calHeight":"288px","calWidth":"296px","yearHeight":"32px","yearWidth":"48px","container":"container_rui_2e95","hoverable":"hoverable_rui_2e95","datePicker":"datePicker_rui_2e95","displayDate":"displayDate_rui_2e95","displayRange":"displayRange_rui_2e95","clear":"clear_rui_2e95","datePopup":"datePopup_rui_2e95","filterWrapper":"filterWrapper_rui_2e95 filterWrapper_rui_7e99","filter":"filter_rui_2e95 filter_rui_7e99","filterIcon":"filterIcon_rui_2e95 filterIcon_rui_7e99","fromInput":"fromInput_rui_2e95","fromInputWithDivider":"fromInputWithDivider_rui_2e95","toInput":"toInput_rui_2e95","dateInput":"dateInput_rui_2e95","timeInputWithDivider":"timeInputWithDivider_rui_2e95","weekdays":"weekdays_rui_2e95","weekday":"weekday_rui_2e95","weekend":"weekend_rui_2e95","calendar":"calendar_rui_2e95","months":"months_rui_2e95","days":"days_rui_2e95","month":"month_rui_2e95","monthTitle":"monthTitle_rui_2e95","day":"day_rui_2e95 resetButton_rui_750f","between":"between_rui_2e95","activeBetween":"activeBetween_rui_2e95","current":"current_rui_2e95","active":"active_rui_2e95","disabled":"disabled_rui_2e95","from":"from_rui_2e95","to":"to_rui_2e95","Monday":"Monday_rui_2e95","spread":"spread_rui_2e95","activeSpread":"activeSpread_rui_2e95","first":"first_rui_2e95","Tuesday":"Tuesday_rui_2e95","Friday":"Friday_rui_2e95","Saturday":"Saturday_rui_2e95","Sunday":"Sunday_rui_2e95","empty":"empty_rui_2e95","today":"today_rui_2e95","year":"year_rui_2e95 hoverable_rui_2e95 resetButton_rui_750f","monthNames":"monthNames_rui_2e95","monthName":"monthName_rui_2e95 hoverable_rui_2e95 resetButton_rui_750f","monthSlider":"monthSlider_rui_2e95 resetButton_rui_750f","dragging":"dragging_rui_2e95","range":"range_rui_2e95","years":"years_rui_2e95","currentYear":"currentYear_rui_2e95"};
|
|
2
2
|
|
|
3
3
|
export { modules_0c7b7d96 as m };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import scrollbarWidth from 'scrollbar-width';
|
|
2
2
|
|
|
3
|
-
var modules_5e9b8c03 = {"unit":"8px","container":"
|
|
3
|
+
var modules_5e9b8c03 = {"unit":"8px","container":"container_rui_16e5","innerContainer":"innerContainer_rui_16e5","content":"content_rui_16e5","panel":"panel_rui_16e5","clickableOverlay":"clickableOverlay_rui_16e5","closeIcon":"closeIcon_rui_16e5","closeButton":"closeButton_rui_16e5","closeButtonOutside":"closeButtonOutside_rui_16e5","closeButtonInside":"closeButtonInside_rui_16e5","documentWithoutScroll":"documentWithoutScroll_rui_16e5","popupTarget":"popupTarget_rui_16e5"};
|
|
4
4
|
|
|
5
5
|
const isPrevented = new Set();
|
|
6
6
|
let previousDocumentWidth = null;
|
|
@@ -52,5 +52,6 @@ const preventerFactory = key => {
|
|
|
52
52
|
reset: () => reset(preventerKey)
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
+
var dialog__bodyScrollPreventer = preventerFactory('default-preventer');
|
|
55
56
|
|
|
56
|
-
export { modules_5e9b8c03 as m, preventerFactory as p };
|
|
57
|
+
export { dialog__bodyScrollPreventer as d, modules_5e9b8c03 as m, preventerFactory as p };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import React, { memo, isValidElement } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import Link from '../link/link.js';
|
|
5
|
+
|
|
6
|
+
var modules_7385b3fd = {"unit":"8px","footer-height":"64px","footer":"footer_rui_4682 font_rui_750f","footerFloating":"footerFloating_rui_4682 footer_rui_4682 font_rui_750f","column":"column_rui_4682","columnItem":"columnItem_rui_4682","columnLeft":"columnLeft_rui_4682 column_rui_4682","columnCenter":"columnCenter_rui_4682 column_rui_4682","line":"line_rui_4682","columnRight":"columnRight_rui_4682 column_rui_4682","lineCenter":"lineCenter_rui_4682"};
|
|
7
|
+
|
|
8
|
+
const FooterColumn = /*#__PURE__*/memo(function FooterColumn(_ref) {
|
|
9
|
+
let {
|
|
10
|
+
position,
|
|
11
|
+
children
|
|
12
|
+
} = _ref;
|
|
13
|
+
const classes = classNames({
|
|
14
|
+
[modules_7385b3fd.columnLeft]: position === 'left',
|
|
15
|
+
[modules_7385b3fd.columnCenter]: position === 'center',
|
|
16
|
+
[modules_7385b3fd.columnRight]: position === 'right'
|
|
17
|
+
});
|
|
18
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
19
|
+
className: classes
|
|
20
|
+
}, /*#__PURE__*/React.createElement("ul", {
|
|
21
|
+
className: modules_7385b3fd.columnItem
|
|
22
|
+
}, children));
|
|
23
|
+
});
|
|
24
|
+
FooterColumn.propTypes = {
|
|
25
|
+
position: PropTypes.string,
|
|
26
|
+
children: PropTypes.node
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Return copyright string
|
|
30
|
+
* @param year {int}
|
|
31
|
+
* @returns {string}
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
function copyright(year) {
|
|
35
|
+
const currentYear = new Date().getUTCFullYear();
|
|
36
|
+
const ndash = '–';
|
|
37
|
+
let ret = 'Copyright © ';
|
|
38
|
+
|
|
39
|
+
if (year >= currentYear) {
|
|
40
|
+
ret += year;
|
|
41
|
+
} else {
|
|
42
|
+
ret += year + ndash + currentYear;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return ret;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @constructor
|
|
49
|
+
* @extends {ReactComponent}
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
const FooterLine = /*#__PURE__*/memo(function FooterLine(props) {
|
|
53
|
+
const items = Array.isArray(props.item) ? props.item : [props.item];
|
|
54
|
+
|
|
55
|
+
function renderItem(item) {
|
|
56
|
+
if ( /*#__PURE__*/isValidElement(item)) {
|
|
57
|
+
return item;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const element = (item.copyright ? copyright(item.copyright) : '') + (item.label || item);
|
|
61
|
+
|
|
62
|
+
if (item.url) {
|
|
63
|
+
return /*#__PURE__*/React.createElement(Link, {
|
|
64
|
+
href: item.url,
|
|
65
|
+
target: item.target,
|
|
66
|
+
key: item.url + item.title,
|
|
67
|
+
title: item.title
|
|
68
|
+
}, element);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return element;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
75
|
+
className: modules_7385b3fd.line
|
|
76
|
+
}, items.map(renderItem));
|
|
77
|
+
});
|
|
78
|
+
FooterLine.propTypes = {
|
|
79
|
+
item: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string])
|
|
80
|
+
};
|
|
81
|
+
const Footer = /*#__PURE__*/memo(function Footer(_ref2) {
|
|
82
|
+
let {
|
|
83
|
+
floating,
|
|
84
|
+
className,
|
|
85
|
+
left,
|
|
86
|
+
center,
|
|
87
|
+
right
|
|
88
|
+
} = _ref2;
|
|
89
|
+
|
|
90
|
+
function content(elements, position) {
|
|
91
|
+
if (!elements) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return /*#__PURE__*/React.createElement(FooterColumn, {
|
|
96
|
+
key: position,
|
|
97
|
+
position: position
|
|
98
|
+
}, elements.map((item, idx) => /*#__PURE__*/React.createElement(FooterLine // eslint-disable-next-line react/no-array-index-key
|
|
99
|
+
, {
|
|
100
|
+
key: idx,
|
|
101
|
+
item: item
|
|
102
|
+
})));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const classes = classNames(modules_7385b3fd.footer, className, {
|
|
106
|
+
[modules_7385b3fd.footerFloating]: floating
|
|
107
|
+
});
|
|
108
|
+
return /*#__PURE__*/React.createElement("footer", {
|
|
109
|
+
className: classes,
|
|
110
|
+
"data-test": "ring-footer"
|
|
111
|
+
}, [content(left, 'left'), content(center, 'center'), content(right, 'right')]);
|
|
112
|
+
});
|
|
113
|
+
Footer.propTypes = {
|
|
114
|
+
className: PropTypes.string,
|
|
115
|
+
floating: PropTypes.bool,
|
|
116
|
+
left: PropTypes.array,
|
|
117
|
+
center: PropTypes.array,
|
|
118
|
+
right: PropTypes.array
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export { Footer as F, copyright as c, modules_7385b3fd as m };
|
package/dist/_helpers/grid.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var modules_855170c0 = {"unit":"8px","breakpoint-small":"640px","breakpoint-middle":"960px","breakpoint-large":"1200px","large-screen-media":"(min-width:1200px)","middle-screen-media":"(min-width:960px) and (max-width:1199px)","small-screen-media":"(min-width:640px) and (max-width:959px)","gutterWidth":"(8px*2)","gutterCompensation":"-8px","outerMargin":"16px","containerSmall":"656px","containerMedium":"976px","containerLarge":"1216px","width-1":"8.
|
|
1
|
+
var modules_855170c0 = {"unit":"8px","breakpoint-small":"640px","breakpoint-middle":"960px","breakpoint-large":"1200px","large-screen-media":"(min-width:1200px)","middle-screen-media":"(min-width:960px) and (max-width:1199px)","small-screen-media":"(min-width:640px) and (max-width:959px)","gutterWidth":"(8px*2)","gutterCompensation":"-8px","outerMargin":"16px","containerSmall":"656px","containerMedium":"976px","containerLarge":"1216px","width-1":"8.3333%","width-2":"16.6667%","width-3":"25%","width-4":"33.3333%","width-5":"41.6667%","width-6":"50%","width-7":"58.3333%","width-8":"66.6667%","width-9":"75%","width-10":"83.3333%","width-11":"91.6667%","width-12":"100%","container-fluid":"containerFluid_rui_ecf1","container":"container_rui_ecf1","row":"row_rui_ecf1","reverse":"reverse_rui_ecf1","col":"col_rui_ecf1","col-xs":"colXs_rui_ecf1","col-xs-1":"colXs1_rui_ecf1","col-xs-2":"colXs2_rui_ecf1","col-xs-3":"colXs3_rui_ecf1","col-xs-4":"colXs4_rui_ecf1","col-xs-5":"colXs5_rui_ecf1","col-xs-6":"colXs6_rui_ecf1","col-xs-7":"colXs7_rui_ecf1","col-xs-8":"colXs8_rui_ecf1","col-xs-9":"colXs9_rui_ecf1","col-xs-10":"colXs10_rui_ecf1","col-xs-11":"colXs11_rui_ecf1","col-xs-12":"colXs12_rui_ecf1","col-xs-offset-0":"colXsOffset0_rui_ecf1","col-xs-offset-1":"colXsOffset1_rui_ecf1","col-xs-offset-2":"colXsOffset2_rui_ecf1","col-xs-offset-3":"colXsOffset3_rui_ecf1","col-xs-offset-4":"colXsOffset4_rui_ecf1","col-xs-offset-5":"colXsOffset5_rui_ecf1","col-xs-offset-6":"colXsOffset6_rui_ecf1","col-xs-offset-7":"colXsOffset7_rui_ecf1","col-xs-offset-8":"colXsOffset8_rui_ecf1","col-xs-offset-9":"colXsOffset9_rui_ecf1","col-xs-offset-10":"colXsOffset10_rui_ecf1","col-xs-offset-11":"colXsOffset11_rui_ecf1","col-xs-offset-12":"colXsOffset12_rui_ecf1","start-xs":"startXs_rui_ecf1","center-xs":"centerXs_rui_ecf1","end-xs":"endXs_rui_ecf1","top-xs":"topXs_rui_ecf1","middle-xs":"middleXs_rui_ecf1","baseline-xs":"baselineXs_rui_ecf1","bottom-xs":"bottomXs_rui_ecf1","around-xs":"aroundXs_rui_ecf1","between-xs":"betweenXs_rui_ecf1","first-xs":"firstXs_rui_ecf1","last-xs":"lastXs_rui_ecf1","col-sm":"colSm_rui_ecf1","col-sm-1":"colSm1_rui_ecf1","col-sm-2":"colSm2_rui_ecf1","col-sm-3":"colSm3_rui_ecf1","col-sm-4":"colSm4_rui_ecf1","col-sm-5":"colSm5_rui_ecf1","col-sm-6":"colSm6_rui_ecf1","col-sm-7":"colSm7_rui_ecf1","col-sm-8":"colSm8_rui_ecf1","col-sm-9":"colSm9_rui_ecf1","col-sm-10":"colSm10_rui_ecf1","col-sm-11":"colSm11_rui_ecf1","col-sm-12":"colSm12_rui_ecf1","col-sm-offset-0":"colSmOffset0_rui_ecf1","col-sm-offset-1":"colSmOffset1_rui_ecf1","col-sm-offset-2":"colSmOffset2_rui_ecf1","col-sm-offset-3":"colSmOffset3_rui_ecf1","col-sm-offset-4":"colSmOffset4_rui_ecf1","col-sm-offset-5":"colSmOffset5_rui_ecf1","col-sm-offset-6":"colSmOffset6_rui_ecf1","col-sm-offset-7":"colSmOffset7_rui_ecf1","col-sm-offset-8":"colSmOffset8_rui_ecf1","col-sm-offset-9":"colSmOffset9_rui_ecf1","col-sm-offset-10":"colSmOffset10_rui_ecf1","col-sm-offset-11":"colSmOffset11_rui_ecf1","col-sm-offset-12":"colSmOffset12_rui_ecf1","start-sm":"startSm_rui_ecf1","center-sm":"centerSm_rui_ecf1","end-sm":"endSm_rui_ecf1","top-sm":"topSm_rui_ecf1","middle-sm":"middleSm_rui_ecf1","baseline-sm":"baselineSm_rui_ecf1","bottom-sm":"bottomSm_rui_ecf1","around-sm":"aroundSm_rui_ecf1","between-sm":"betweenSm_rui_ecf1","first-sm":"firstSm_rui_ecf1","last-sm":"lastSm_rui_ecf1","col-md":"colMd_rui_ecf1","col-md-1":"colMd1_rui_ecf1","col-md-2":"colMd2_rui_ecf1","col-md-3":"colMd3_rui_ecf1","col-md-4":"colMd4_rui_ecf1","col-md-5":"colMd5_rui_ecf1","col-md-6":"colMd6_rui_ecf1","col-md-7":"colMd7_rui_ecf1","col-md-8":"colMd8_rui_ecf1","col-md-9":"colMd9_rui_ecf1","col-md-10":"colMd10_rui_ecf1","col-md-11":"colMd11_rui_ecf1","col-md-12":"colMd12_rui_ecf1","col-md-offset-0":"colMdOffset0_rui_ecf1","col-md-offset-1":"colMdOffset1_rui_ecf1","col-md-offset-2":"colMdOffset2_rui_ecf1","col-md-offset-3":"colMdOffset3_rui_ecf1","col-md-offset-4":"colMdOffset4_rui_ecf1","col-md-offset-5":"colMdOffset5_rui_ecf1","col-md-offset-6":"colMdOffset6_rui_ecf1","col-md-offset-7":"colMdOffset7_rui_ecf1","col-md-offset-8":"colMdOffset8_rui_ecf1","col-md-offset-9":"colMdOffset9_rui_ecf1","col-md-offset-10":"colMdOffset10_rui_ecf1","col-md-offset-11":"colMdOffset11_rui_ecf1","col-md-offset-12":"colMdOffset12_rui_ecf1","start-md":"startMd_rui_ecf1","center-md":"centerMd_rui_ecf1","end-md":"endMd_rui_ecf1","top-md":"topMd_rui_ecf1","middle-md":"middleMd_rui_ecf1","baseline-md":"baselineMd_rui_ecf1","bottom-md":"bottomMd_rui_ecf1","around-md":"aroundMd_rui_ecf1","between-md":"betweenMd_rui_ecf1","first-md":"firstMd_rui_ecf1","last-md":"lastMd_rui_ecf1","col-lg":"colLg_rui_ecf1","col-lg-1":"colLg1_rui_ecf1","col-lg-2":"colLg2_rui_ecf1","col-lg-3":"colLg3_rui_ecf1","col-lg-4":"colLg4_rui_ecf1","col-lg-5":"colLg5_rui_ecf1","col-lg-6":"colLg6_rui_ecf1","col-lg-7":"colLg7_rui_ecf1","col-lg-8":"colLg8_rui_ecf1","col-lg-9":"colLg9_rui_ecf1","col-lg-10":"colLg10_rui_ecf1","col-lg-11":"colLg11_rui_ecf1","col-lg-12":"colLg12_rui_ecf1","col-lg-offset-0":"colLgOffset0_rui_ecf1","col-lg-offset-1":"colLgOffset1_rui_ecf1","col-lg-offset-2":"colLgOffset2_rui_ecf1","col-lg-offset-3":"colLgOffset3_rui_ecf1","col-lg-offset-4":"colLgOffset4_rui_ecf1","col-lg-offset-5":"colLgOffset5_rui_ecf1","col-lg-offset-6":"colLgOffset6_rui_ecf1","col-lg-offset-7":"colLgOffset7_rui_ecf1","col-lg-offset-8":"colLgOffset8_rui_ecf1","col-lg-offset-9":"colLgOffset9_rui_ecf1","col-lg-offset-10":"colLgOffset10_rui_ecf1","col-lg-offset-11":"colLgOffset11_rui_ecf1","col-lg-offset-12":"colLgOffset12_rui_ecf1","start-lg":"startLg_rui_ecf1","center-lg":"centerLg_rui_ecf1","end-lg":"endLg_rui_ecf1","top-lg":"topLg_rui_ecf1","middle-lg":"middleLg_rui_ecf1","baseline-lg":"baselineLg_rui_ecf1","bottom-lg":"bottomLg_rui_ecf1","around-lg":"aroundLg_rui_ecf1","between-lg":"betweenLg_rui_ecf1","first-lg":"firstLg_rui_ecf1","last-lg":"lastLg_rui_ecf1"};
|
|
2
2
|
|
|
3
3
|
export { modules_855170c0 as m };
|
package/dist/_helpers/header.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var modules_47759f5e = {"unit":"8px","resetButton":"
|
|
1
|
+
var modules_47759f5e = {"unit":"8px","resetButton":"resetButton_rui_750f","height":"64px","compensate":"3px","compensated":"61px","light":"light_rui_513e","dark":"dark_rui_513e","header":"header_rui_513e","headerSpaced":"headerSpaced_rui_513e","logo":"logo_rui_513e","tray":"tray_rui_513e","trayItemContent":"trayItemContent_rui_513e","icon":"icon_rui_513e","main":"main_rui_513e","rotatable":"rotatable_rui_513e","rotated":"rotated_rui_513e","profileEmpty":"profileEmpty_rui_513e","profile":"profile_rui_513e profileEmpty_rui_513e","avatarWrapper":"avatarWrapper_rui_513e resetButton_rui_750f","hasUpdates":"hasUpdates_rui_513e"};
|
|
2
2
|
|
|
3
3
|
export { modules_47759f5e as m };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var modules_29747b80 = {"unit":"8px","icon":"icon_rui_680a","glyph":"glyph_rui_680a","compatibilityMode":"compatibilityMode_rui_680a","gray":"gray_rui_680a","hover":"hover_rui_680a","green":"green_rui_680a","magenta":"magenta_rui_680a","red":"red_rui_680a","blue":"blue_rui_680a","white":"white_rui_680a","loading":"loading_rui_680a","icon-loading":"iconLoading_rui_680a"};
|
|
2
|
+
|
|
3
|
+
export { modules_29747b80 as m };
|