@jetbrains/ring-ui 6.0.2-beta.0 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -6
- package/components/alert/alert.css +12 -13
- package/components/alert/container.css +4 -6
- package/components/alert-service/alert-service.d.ts +4 -2
- package/components/alert-service/alert-service.js +3 -2
- package/components/alert-service/{alert-service.examples.css → alert-service.stories.css} +0 -3
- package/components/analytics/analytics.d.ts +0 -20
- package/components/analytics/analytics.js +0 -64
- package/components/analytics/analytics__custom-plugin.d.ts +0 -1
- package/components/analytics/analytics__custom-plugin.js +0 -3
- package/components/auth/down-notification.css +2 -4
- package/components/auth/request-builder.d.ts +1 -0
- package/components/auth-dialog/auth-dialog.css +9 -11
- package/components/auth-dialog-service/auth-dialog-service.d.ts +1 -0
- package/components/auth-dialog-service/auth-dialog-service.js +4 -3
- package/components/badge/badge.css +1 -3
- package/components/button/button.css +10 -12
- package/components/button-group/button-group.css +17 -2
- package/components/button-set/button-set.css +1 -2
- package/components/button-toolbar/button-toolbar.css +1 -2
- package/components/checkbox/checkbox.css +3 -4
- package/components/code/code.css +3 -5
- package/components/code/code.d.ts +1 -0
- package/components/confirm/confirm.css +1 -3
- package/components/confirm-service/confirm-service.d.ts +1 -1
- package/components/confirm-service/confirm-service.js +5 -4
- package/components/content-layout/content-layout.css +7 -7
- package/components/data-list/data-list.css +4 -5
- package/components/date-picker/consts.d.ts +0 -1
- package/components/date-picker/date-input.d.ts +0 -1
- package/components/date-picker/date-input.js +2 -3
- package/components/date-picker/date-picker.css +40 -41
- package/components/date-picker/date-picker.js +2 -2
- package/components/date-picker/date-popup.d.ts +0 -1
- package/components/date-picker/date-popup.js +3 -4
- package/components/dialog/dialog.css +16 -13
- package/components/dropdown-menu/dropdown-menu.d.ts +11 -1
- package/components/editable-heading/editable-heading.css +35 -8
- package/components/editable-heading/editable-heading.d.ts +2 -1
- package/components/editable-heading/editable-heading.js +45 -6
- package/components/error-bubble/error-bubble-legacy.css +6 -8
- package/components/error-bubble/error-bubble.css +6 -8
- package/components/footer/footer.css +6 -8
- package/components/form/form.css +31 -33
- package/components/form/form.stories.js +138 -0
- package/components/global/global.css +1 -7
- package/components/global/react-render-adapter.d.ts +1 -29
- package/components/global/react-render-adapter.js +3 -24
- package/components/global/rerender-hoc.d.ts +4 -35
- package/components/global/rerender-hoc.js +10 -24
- package/components/global/variables.css +1 -2
- package/components/global/variables.d.ts +0 -1
- package/components/global/variables_dark.css +71 -67
- package/components/grid/grid.css +6 -6
- package/components/grid/row.js +3 -3
- package/components/group/group.css +1 -3
- package/components/header/header.css +12 -14
- package/components/header/profile.js +1 -1
- package/components/header/services-link.js +3 -5
- package/components/header/services.css +12 -14
- package/components/header/smart-services.d.ts +2 -1
- package/components/heading/heading.css +24 -6
- package/components/http/http.d.ts +6 -6
- package/components/http/http.js +0 -12
- package/components/hub-source/hub-source.d.ts +8 -6
- package/components/icon/icon.css +2 -4
- package/components/input/input-legacy.css +2 -4
- package/components/input/input.css +8 -10
- package/components/input-size/input-size.css +4 -6
- package/components/input-size/input-size.stories.js +73 -0
- package/components/island/header.js +1 -1
- package/components/island/island.css +6 -7
- package/components/island-legacy/island-legacy.css +6 -8
- package/components/line/line.css +1 -3
- package/components/link/link.css +15 -39
- package/components/link/link.d.ts +6 -16
- package/components/link/link.js +6 -35
- package/components/list/consts.d.ts +13 -12
- package/components/list/consts.js +11 -15
- package/components/list/list.css +17 -20
- package/components/list/list.d.ts +15 -4
- package/components/list/list.js +9 -7
- package/components/list/list__item.js +3 -2
- package/components/loader/loader.css +1 -3
- package/components/loader/loader__core.js +6 -6
- package/components/loader-inline/loader-inline.css +5 -6
- package/components/login-dialog/login-dialog.css +1 -3
- package/components/login-dialog/service.js +5 -4
- package/components/markdown/markdown.css +53 -3
- package/components/markdown/markdown.d.ts +4 -7
- package/components/markdown/markdown.js +8 -27
- package/components/message/message.css +5 -8
- package/components/old-browsers-message/old-browsers-message.css +2 -4
- package/components/pager/pager.css +2 -4
- package/components/pager/pager.js +2 -8
- package/components/panel/panel.css +3 -5
- package/components/popup/popup.js +3 -3
- package/components/popup/position.js +4 -1
- package/components/popup-menu/popup-menu.d.ts +22 -2
- package/components/progress-bar/progress-bar.css +9 -4
- package/components/progress-bar/progress-bar.d.ts +6 -0
- package/components/progress-bar/progress-bar.js +9 -3
- package/components/query-assist/query-assist.css +3 -4
- package/components/query-assist/query-assist.d.ts +3 -28
- package/components/query-assist/query-assist.js +12 -5
- package/components/radio/radio.css +7 -10
- package/components/select/select-popup.css +23 -11
- package/components/select/select.css +13 -14
- package/components/select/select.d.ts +2 -28
- package/components/select/select.js +28 -28
- package/components/select/select__popup.js +5 -2
- package/components/sidebar/sidebar.css +13 -15
- package/components/table/table.css +15 -17
- package/components/table/table.js +1 -1
- package/components/table-legacy/table-legacy.css +22 -24
- package/components/table-legacy/table-legacy__toolbar.css +2 -4
- package/components/tabs/collapsible-more.js +1 -1
- package/components/tabs/collapsible-tab.js +1 -1
- package/components/tabs/collapsible-tabs.js +2 -2
- package/components/tabs/dumb-tabs.js +1 -1
- package/components/tabs/tab-link.js +7 -7
- package/components/tabs/tabs.css +3 -4
- package/components/tag/tag.css +12 -13
- package/components/tags-input/tags-input.css +1 -2
- package/components/tags-input/tags-input.d.ts +3 -28
- package/components/tags-input/tags-input.js +4 -1
- package/components/toggle/toggle.css +28 -23
- package/components/tooltip/tooltip.css +3 -5
- package/components/user-agreement/service.d.ts +3 -1
- package/components/user-agreement/service.js +8 -7
- package/components/user-agreement/user-agreement.css +2 -2
- package/components/user-agreement/user-agreement.d.ts +2 -3
- package/components/user-agreement/user-agreement.js +2 -4
- package/components/user-card/card.d.ts +2 -3
- package/components/user-card/card.js +8 -8
- package/components/user-card/user-card.css +3 -5
- package/package.json +82 -90
- package/typings.d.ts +0 -54
- package/webpack.config.js +1 -24
- package/components/analytics/analytics__fus-plugin.d.ts +0 -52
- package/components/analytics/analytics__fus-plugin.js +0 -22
- package/components/analytics/analytics__ga-plugin.d.ts +0 -27
- package/components/analytics/analytics__ga-plugin.js +0 -89
- package/components/analytics/analytics__plugin-utils.d.ts +0 -31
- package/components/analytics/analytics__plugin-utils.js +0 -92
- package/components/auth/landing-entry.d.ts +0 -3
- package/components/auth/landing-entry.js +0 -2
- package/components/auth/landing.d.ts +0 -2
- package/components/auth/landing.html +0 -12
- package/components/auth/landing.js +0 -26
- package/components/form/form.examples.js +0 -118
- package/components/input-size/input-size.examples.js +0 -72
- package/components/link/link__legacy.css +0 -29
- package/components/loader/__mocks__/loader__core.js +0 -5
- package/components/markdown/code.d.ts +0 -7
- package/components/markdown/code.js +0 -17
- package/components/markdown/heading.d.ts +0 -11
- package/components/markdown/heading.js +0 -9
- package/components/markdown/link.d.ts +0 -12
- package/components/markdown/link.js +0 -10
- package/components/old-browsers-message/__mocks__/old-browsers-message.js +0 -1
- package/dist/_helpers/_rollupPluginBabelHelpers.js +0 -657
- package/dist/_helpers/anchor.js +0 -31
- package/dist/_helpers/badge.js +0 -3
- package/dist/_helpers/button__classes.js +0 -24
- package/dist/_helpers/caption.js +0 -31
- package/dist/_helpers/card.js +0 -132
- package/dist/_helpers/date-picker.js +0 -3
- package/dist/_helpers/dialog__body-scroll-preventer.js +0 -55
- package/dist/_helpers/grid.js +0 -3
- package/dist/_helpers/header.js +0 -3
- package/dist/_helpers/icon__svg.js +0 -73
- package/dist/_helpers/input.js +0 -229
- package/dist/_helpers/island.js +0 -3
- package/dist/_helpers/list.js +0 -3
- package/dist/_helpers/query-assist__suggestions.js +0 -102
- package/dist/_helpers/select__filter.js +0 -94
- package/dist/_helpers/services-link.js +0 -50
- package/dist/_helpers/sidebar.js +0 -117
- package/dist/_helpers/tab-link.js +0 -36
- package/dist/_helpers/table.js +0 -3
- package/dist/_helpers/theme.js +0 -93
- package/dist/_helpers/title.js +0 -100
- package/dist/alert/alert.d.ts +0 -113
- package/dist/alert/alert.js +0 -281
- package/dist/alert/container.d.ts +0 -15
- package/dist/alert/container.js +0 -52
- package/dist/alert-service/alert-service.d.ts +0 -34
- package/dist/alert-service/alert-service.js +0 -221
- package/dist/analytics/analytics.d.ts +0 -38
- package/dist/analytics/analytics.js +0 -108
- package/dist/analytics/analytics__custom-plugin.d.ts +0 -29
- package/dist/analytics/analytics__custom-plugin.js +0 -95
- package/dist/analytics/analytics__fus-plugin.d.ts +0 -52
- package/dist/analytics/analytics__fus-plugin.js +0 -38
- package/dist/analytics/analytics__ga-plugin.d.ts +0 -27
- package/dist/analytics/analytics__ga-plugin.js +0 -118
- package/dist/analytics/analytics__plugin-utils.d.ts +0 -31
- package/dist/analytics/analytics__plugin-utils.js +0 -101
- package/dist/auth/auth.d.ts +0 -3
- package/dist/auth/auth.js +0 -135
- package/dist/auth/auth__core.d.ts +0 -236
- package/dist/auth/auth__core.js +0 -1656
- package/dist/auth/background-flow.d.ts +0 -31
- package/dist/auth/background-flow.js +0 -148
- package/dist/auth/down-notification.d.ts +0 -15
- package/dist/auth/down-notification.js +0 -158
- package/dist/auth/iframe-flow.d.ts +0 -20
- package/dist/auth/iframe-flow.js +0 -197
- package/dist/auth/landing-entry.d.ts +0 -3
- package/dist/auth/landing-entry.js +0 -5
- package/dist/auth/landing.d.ts +0 -2
- package/dist/auth/landing.js +0 -157
- package/dist/auth/request-builder.d.ts +0 -47
- package/dist/auth/request-builder.js +0 -103
- package/dist/auth/response-parser.d.ts +0 -70
- package/dist/auth/response-parser.js +0 -139
- package/dist/auth/storage.d.ts +0 -112
- package/dist/auth/storage.js +0 -427
- package/dist/auth/token-validator.d.ts +0 -93
- package/dist/auth/token-validator.js +0 -269
- package/dist/auth/window-flow.d.ts +0 -26
- package/dist/auth/window-flow.js +0 -155
- package/dist/auth-dialog/auth-dialog.d.ts +0 -60
- package/dist/auth-dialog/auth-dialog.js +0 -222
- package/dist/auth-dialog-service/auth-dialog-service.d.ts +0 -5
- package/dist/auth-dialog-service/auth-dialog-service.js +0 -92
- package/dist/avatar/avatar-example-datauri.d.ts +0 -1
- package/dist/avatar/avatar-example-datauri.js +0 -4
- package/dist/avatar/avatar.d.ts +0 -52
- package/dist/avatar/avatar.js +0 -184
- package/dist/avatar/fallback-avatar.d.ts +0 -17
- package/dist/avatar/fallback-avatar.js +0 -154
- package/dist/badge/badge.d.ts +0 -24
- package/dist/badge/badge.js +0 -55
- package/dist/button/button.d.ts +0 -67
- package/dist/button/button.js +0 -132
- package/dist/button/button__classes.d.ts +0 -2
- package/dist/button/button__classes.js +0 -3
- package/dist/button-group/button-group.d.ts +0 -18
- package/dist/button-group/button-group.js +0 -48
- package/dist/button-group/caption.d.ts +0 -8
- package/dist/button-group/caption.js +0 -5
- package/dist/button-set/button-set.d.ts +0 -16
- package/dist/button-set/button-set.js +0 -47
- package/dist/button-toolbar/button-toolbar.d.ts +0 -16
- package/dist/button-toolbar/button-toolbar.js +0 -46
- package/dist/caret/caret.d.ts +0 -66
- package/dist/caret/caret.js +0 -261
- package/dist/checkbox/checkbox.d.ts +0 -45
- package/dist/checkbox/checkbox.js +0 -131
- package/dist/clipboard/clipboard-fallback.d.ts +0 -2
- package/dist/clipboard/clipboard-fallback.js +0 -42
- package/dist/clipboard/clipboard.d.ts +0 -5
- package/dist/clipboard/clipboard.js +0 -185
- package/dist/code/code.d.ts +0 -43
- package/dist/code/code.js +0 -191
- package/dist/confirm/confirm.d.ts +0 -48
- package/dist/confirm/confirm.js +0 -155
- package/dist/confirm-service/confirm-service.d.ts +0 -21
- package/dist/confirm-service/confirm-service.js +0 -142
- package/dist/content-layout/content-layout.d.ts +0 -26
- package/dist/content-layout/content-layout.js +0 -77
- package/dist/content-layout/sidebar.d.ts +0 -31
- package/dist/content-layout/sidebar.js +0 -7
- package/dist/contenteditable/contenteditable.d.ts +0 -47
- package/dist/contenteditable/contenteditable.js +0 -84
- package/dist/control-label/control-label.d.ts +0 -11
- package/dist/control-label/control-label.js +0 -32
- package/dist/data-list/data-list.d.ts +0 -85
- package/dist/data-list/data-list.js +0 -249
- package/dist/data-list/data-list.mock.d.ts +0 -16
- package/dist/data-list/data-list.mock.js +0 -197
- package/dist/data-list/item.d.ts +0 -50
- package/dist/data-list/item.js +0 -236
- package/dist/data-list/selection.d.ts +0 -16
- package/dist/data-list/selection.js +0 -149
- package/dist/data-list/title.d.ts +0 -26
- package/dist/data-list/title.js +0 -29
- package/dist/date-picker/consts.d.ts +0 -99
- package/dist/date-picker/consts.js +0 -46
- package/dist/date-picker/date-input.d.ts +0 -48
- package/dist/date-picker/date-input.js +0 -180
- package/dist/date-picker/date-picker.d.ts +0 -77
- package/dist/date-picker/date-picker.js +0 -406
- package/dist/date-picker/date-popup.d.ts +0 -56
- package/dist/date-picker/date-popup.js +0 -488
- package/dist/date-picker/day.d.ts +0 -30
- package/dist/date-picker/day.js +0 -119
- package/dist/date-picker/formats.d.ts +0 -2
- package/dist/date-picker/formats.js +0 -3
- package/dist/date-picker/month-names.d.ts +0 -13
- package/dist/date-picker/month-names.js +0 -109
- package/dist/date-picker/month-slider.d.ts +0 -29
- package/dist/date-picker/month-slider.js +0 -92
- package/dist/date-picker/month.d.ts +0 -14
- package/dist/date-picker/month.js +0 -58
- package/dist/date-picker/months.d.ts +0 -11
- package/dist/date-picker/months.js +0 -134
- package/dist/date-picker/weekdays.d.ts +0 -13
- package/dist/date-picker/weekdays.js +0 -38
- package/dist/date-picker/years.d.ts +0 -25
- package/dist/date-picker/years.js +0 -133
- package/dist/dialog/dialog.d.ts +0 -64
- package/dist/dialog/dialog.js +0 -238
- package/dist/dialog/dialog__body-scroll-preventer.d.ts +0 -9
- package/dist/dialog/dialog__body-scroll-preventer.js +0 -7
- package/dist/dropdown/anchor.d.ts +0 -11
- package/dist/dropdown/anchor.js +0 -25
- package/dist/dropdown/dropdown.d.ts +0 -87
- package/dist/dropdown/dropdown.js +0 -246
- package/dist/dropdown-menu/dropdown-menu.d.ts +0 -26
- package/dist/dropdown-menu/dropdown-menu.js +0 -202
- package/dist/editable-heading/editable-heading.d.ts +0 -31
- package/dist/editable-heading/editable-heading.js +0 -203
- package/dist/error-bubble/error-bubble.d.ts +0 -18
- package/dist/error-bubble/error-bubble.js +0 -90
- package/dist/error-message/error-message.d.ts +0 -27
- package/dist/error-message/error-message.js +0 -79
- package/dist/footer/footer.d.ts +0 -28
- package/dist/footer/footer.js +0 -118
- package/dist/global/compose.d.ts +0 -7
- package/dist/global/compose.js +0 -17
- package/dist/global/composeRefs.d.ts +0 -3
- package/dist/global/composeRefs.js +0 -19
- package/dist/global/controls-height.d.ts +0 -9
- package/dist/global/controls-height.js +0 -19
- package/dist/global/create-stateful-context.d.ts +0 -27
- package/dist/global/create-stateful-context.js +0 -49
- package/dist/global/data-tests.d.ts +0 -3
- package/dist/global/data-tests.js +0 -30
- package/dist/global/dom.d.ts +0 -37
- package/dist/global/dom.js +0 -153
- package/dist/global/focus-sensor-hoc.d.ts +0 -19
- package/dist/global/focus-sensor-hoc.js +0 -165
- package/dist/global/fuzzy-highlight.d.ts +0 -11
- package/dist/global/fuzzy-highlight.js +0 -90
- package/dist/global/get-event-key.d.ts +0 -2
- package/dist/global/get-event-key.js +0 -101
- package/dist/global/get-uid.d.ts +0 -1
- package/dist/global/get-uid.js +0 -22
- package/dist/global/inject-styles.d.ts +0 -3
- package/dist/global/inject-styles.js +0 -22
- package/dist/global/linear-function.d.ts +0 -6
- package/dist/global/linear-function.js +0 -15
- package/dist/global/listeners.d.ts +0 -8
- package/dist/global/listeners.js +0 -59
- package/dist/global/memoize.d.ts +0 -1
- package/dist/global/memoize.js +0 -24
- package/dist/global/normalize-indent.d.ts +0 -1
- package/dist/global/normalize-indent.js +0 -61
- package/dist/global/promise-with-timeout.d.ts +0 -5
- package/dist/global/promise-with-timeout.js +0 -19
- package/dist/global/prop-types.d.ts +0 -4
- package/dist/global/prop-types.js +0 -9
- package/dist/global/react-dom-renderer.d.ts +0 -16
- package/dist/global/react-dom-renderer.js +0 -55
- package/dist/global/react-render-adapter.d.ts +0 -29
- package/dist/global/react-render-adapter.js +0 -36
- package/dist/global/rerender-hoc.d.ts +0 -41
- package/dist/global/rerender-hoc.js +0 -58
- package/dist/global/schedule-raf.d.ts +0 -1
- package/dist/global/schedule-raf.js +0 -28
- package/dist/global/sniffer.d.ts +0 -3
- package/dist/global/sniffer.js +0 -6
- package/dist/global/theme.d.ts +0 -21
- package/dist/global/theme.js +0 -44
- package/dist/global/trivial-template-tag.d.ts +0 -1
- package/dist/global/trivial-template-tag.js +0 -21
- package/dist/global/typescript-utils.d.ts +0 -2
- package/dist/global/typescript-utils.js +0 -8
- package/dist/global/url.d.ts +0 -57
- package/dist/global/url.js +0 -142
- package/dist/global/use-event-callback.d.ts +0 -1
- package/dist/global/use-event-callback.js +0 -17
- package/dist/global/variables.d.ts +0 -90
- package/dist/global/variables.js +0 -1
- package/dist/grid/col.d.ts +0 -31
- package/dist/grid/col.js +0 -81
- package/dist/grid/grid.d.ts +0 -14
- package/dist/grid/grid.js +0 -49
- package/dist/grid/row.d.ts +0 -40
- package/dist/grid/row.js +0 -68
- package/dist/group/group.d.ts +0 -12
- package/dist/group/group.js +0 -39
- package/dist/header/header.d.ts +0 -34
- package/dist/header/header.js +0 -191
- package/dist/header/logo.d.ts +0 -14
- package/dist/header/logo.js +0 -52
- package/dist/header/profile.d.ts +0 -75
- package/dist/header/profile.js +0 -258
- package/dist/header/services-link.d.ts +0 -25
- package/dist/header/services-link.js +0 -18
- package/dist/header/services.d.ts +0 -33
- package/dist/header/services.js +0 -173
- package/dist/header/smart-profile.d.ts +0 -36
- package/dist/header/smart-profile.js +0 -307
- package/dist/header/smart-services.d.ts +0 -25
- package/dist/header/smart-services.js +0 -194
- package/dist/header/tray-icon.d.ts +0 -32
- package/dist/header/tray-icon.js +0 -56
- package/dist/header/tray.d.ts +0 -9
- package/dist/header/tray.js +0 -41
- package/dist/heading/heading.d.ts +0 -25
- package/dist/heading/heading.js +0 -68
- package/dist/http/http.d.ts +0 -61
- package/dist/http/http.js +0 -399
- package/dist/http/http.mock.d.ts +0 -20
- package/dist/http/http.mock.js +0 -115
- package/dist/hub-source/hub-source.d.ts +0 -42
- package/dist/hub-source/hub-source.js +0 -217
- package/dist/hub-source/hub-source__user.d.ts +0 -4
- package/dist/hub-source/hub-source__user.js +0 -61
- package/dist/hub-source/hub-source__users-groups.d.ts +0 -24
- package/dist/hub-source/hub-source__users-groups.js +0 -87
- package/dist/i18n/i18n-context.d.ts +0 -13
- package/dist/i18n/i18n-context.js +0 -28
- package/dist/i18n/i18n.d.ts +0 -59
- package/dist/i18n/i18n.js +0 -140
- package/dist/icon/icon.d.ts +0 -43
- package/dist/icon/icon.js +0 -108
- package/dist/icon/icon__constants.d.ts +0 -30
- package/dist/icon/icon__constants.js +0 -34
- package/dist/icon/icon__svg.d.ts +0 -15
- package/dist/icon/icon__svg.js +0 -15
- package/dist/icon/index.d.ts +0 -2
- package/dist/icon/index.js +0 -18
- package/dist/input/input.d.ts +0 -77
- package/dist/input/input.js +0 -36
- package/dist/island/adaptive-island-hoc.d.ts +0 -61
- package/dist/island/adaptive-island-hoc.js +0 -53
- package/dist/island/content.d.ts +0 -43
- package/dist/island/content.js +0 -147
- package/dist/island/header.d.ts +0 -8
- package/dist/island/header.js +0 -97
- package/dist/island/island.d.ts +0 -78
- package/dist/island/island.js +0 -58
- package/dist/island-legacy/content-legacy.d.ts +0 -10
- package/dist/island-legacy/content-legacy.js +0 -34
- package/dist/island-legacy/header-legacy.d.ts +0 -10
- package/dist/island-legacy/header-legacy.js +0 -36
- package/dist/island-legacy/island-legacy.d.ts +0 -12
- package/dist/island-legacy/island-legacy.js +0 -36
- package/dist/link/clickableLink.d.ts +0 -20
- package/dist/link/clickableLink.js +0 -69
- package/dist/link/link.d.ts +0 -148
- package/dist/link/link.js +0 -122
- package/dist/list/consts.d.ts +0 -76
- package/dist/list/consts.js +0 -31
- package/dist/list/list.d.ts +0 -194
- package/dist/list/list.js +0 -801
- package/dist/list/list__custom.d.ts +0 -6
- package/dist/list/list__custom.js +0 -89
- package/dist/list/list__hint.d.ts +0 -15
- package/dist/list/list__hint.js +0 -33
- package/dist/list/list__item.d.ts +0 -8
- package/dist/list/list__item.js +0 -230
- package/dist/list/list__link.d.ts +0 -9
- package/dist/list/list__link.js +0 -78
- package/dist/list/list__separator.d.ts +0 -5
- package/dist/list/list__separator.js +0 -37
- package/dist/list/list__title.d.ts +0 -5
- package/dist/list/list__title.js +0 -46
- package/dist/list/list__users-groups-source.d.ts +0 -27
- package/dist/list/list__users-groups-source.js +0 -197
- package/dist/loader/loader.d.ts +0 -28
- package/dist/loader/loader.js +0 -95
- package/dist/loader/loader__core.d.ts +0 -75
- package/dist/loader/loader__core.js +0 -317
- package/dist/loader-inline/loader-inline.d.ts +0 -18
- package/dist/loader-inline/loader-inline.js +0 -50
- package/dist/loader-screen/loader-screen.d.ts +0 -17
- package/dist/loader-screen/loader-screen.js +0 -64
- package/dist/login-dialog/login-dialog.d.ts +0 -47
- package/dist/login-dialog/login-dialog.js +0 -218
- package/dist/login-dialog/service.d.ts +0 -2
- package/dist/login-dialog/service.js +0 -99
- package/dist/markdown/code.d.ts +0 -7
- package/dist/markdown/code.js +0 -54
- package/dist/markdown/heading.d.ts +0 -11
- package/dist/markdown/heading.js +0 -20
- package/dist/markdown/link.d.ts +0 -12
- package/dist/markdown/link.js +0 -34
- package/dist/markdown/markdown.d.ts +0 -15
- package/dist/markdown/markdown.js +0 -101
- package/dist/message/message.d.ts +0 -55
- package/dist/message/message.js +0 -255
- package/dist/old-browsers-message/old-browsers-message.d.ts +0 -2
- package/dist/old-browsers-message/old-browsers-message.js +0 -93
- package/dist/old-browsers-message/old-browsers-message__stop.d.ts +0 -1
- package/dist/old-browsers-message/old-browsers-message__stop.js +0 -12
- package/dist/old-browsers-message/white-list.d.ts +0 -2
- package/dist/old-browsers-message/white-list.js +0 -36
- package/dist/pager/pager.d.ts +0 -78
- package/dist/pager/pager.js +0 -394
- package/dist/panel/panel.d.ts +0 -12
- package/dist/panel/panel.js +0 -39
- package/dist/permissions/permissions.d.ts +0 -111
- package/dist/permissions/permissions.js +0 -221
- package/dist/permissions/permissions__cache.d.ts +0 -93
- package/dist/permissions/permissions__cache.js +0 -257
- package/dist/popup/popup.consts.d.ts +0 -37
- package/dist/popup/popup.consts.js +0 -44
- package/dist/popup/popup.d.ts +0 -147
- package/dist/popup/popup.js +0 -420
- package/dist/popup/popup.target.d.ts +0 -7
- package/dist/popup/popup.target.js +0 -24
- package/dist/popup/position.d.ts +0 -30
- package/dist/popup/position.js +0 -260
- package/dist/popup-menu/popup-menu.d.ts +0 -60
- package/dist/popup-menu/popup-menu.js +0 -144
- package/dist/progress-bar/progress-bar.d.ts +0 -58
- package/dist/progress-bar/progress-bar.js +0 -111
- package/dist/query-assist/query-assist.d.ts +0 -331
- package/dist/query-assist/query-assist.js +0 -1080
- package/dist/query-assist/query-assist__suggestions.d.ts +0 -29
- package/dist/query-assist/query-assist__suggestions.js +0 -77
- package/dist/radio/radio.d.ts +0 -18
- package/dist/radio/radio.js +0 -48
- package/dist/radio/radio__item.d.ts +0 -28
- package/dist/radio/radio__item.js +0 -88
- package/dist/select/select.d.ts +0 -302
- package/dist/select/select.js +0 -1281
- package/dist/select/select__filter.d.ts +0 -19
- package/dist/select/select__filter.js +0 -87
- package/dist/select/select__popup.d.ts +0 -166
- package/dist/select/select__popup.js +0 -625
- package/dist/shortcuts/core.d.ts +0 -74
- package/dist/shortcuts/core.js +0 -249
- package/dist/shortcuts/shortcut-title.d.ts +0 -1
- package/dist/shortcuts/shortcut-title.js +0 -56
- package/dist/shortcuts/shortcuts-hoc.d.ts +0 -65
- package/dist/shortcuts/shortcuts-hoc.js +0 -61
- package/dist/shortcuts/shortcuts.d.ts +0 -28
- package/dist/shortcuts/shortcuts.js +0 -92
- package/dist/storage/storage.d.ts +0 -18
- package/dist/storage/storage.js +0 -94
- package/dist/storage/storage__fallback.d.ts +0 -79
- package/dist/storage/storage__fallback.js +0 -254
- package/dist/storage/storage__local.d.ts +0 -38
- package/dist/storage/storage__local.js +0 -219
- package/dist/style.css +0 -1
- package/dist/tab-trap/tab-trap.d.ts +0 -43
- package/dist/tab-trap/tab-trap.js +0 -182
- package/dist/table/cell.d.ts +0 -13
- package/dist/table/cell.js +0 -37
- package/dist/table/disable-hover-hoc.d.ts +0 -64
- package/dist/table/disable-hover-hoc.js +0 -62
- package/dist/table/header-cell.d.ts +0 -43
- package/dist/table/header-cell.js +0 -105
- package/dist/table/header.d.ts +0 -56
- package/dist/table/header.js +0 -150
- package/dist/table/multitable.d.ts +0 -25
- package/dist/table/multitable.js +0 -140
- package/dist/table/row-with-focus-sensor.d.ts +0 -18
- package/dist/table/row-with-focus-sensor.js +0 -119
- package/dist/table/row.d.ts +0 -59
- package/dist/table/row.js +0 -294
- package/dist/table/selection-adapter.d.ts +0 -5
- package/dist/table/selection-adapter.js +0 -14
- package/dist/table/selection-shortcuts-hoc.d.ts +0 -17
- package/dist/table/selection-shortcuts-hoc.js +0 -206
- package/dist/table/selection.d.ts +0 -47
- package/dist/table/selection.js +0 -258
- package/dist/table/smart-table.d.ts +0 -64
- package/dist/table/smart-table.js +0 -151
- package/dist/table/table.d.ts +0 -159
- package/dist/table/table.js +0 -457
- package/dist/tabs/collapsible-more.d.ts +0 -29
- package/dist/tabs/collapsible-more.js +0 -226
- package/dist/tabs/collapsible-tab.d.ts +0 -16
- package/dist/tabs/collapsible-tab.js +0 -89
- package/dist/tabs/collapsible-tabs.d.ts +0 -43
- package/dist/tabs/collapsible-tabs.js +0 -355
- package/dist/tabs/custom-item.d.ts +0 -9
- package/dist/tabs/custom-item.js +0 -11
- package/dist/tabs/dumb-tabs.d.ts +0 -35
- package/dist/tabs/dumb-tabs.js +0 -191
- package/dist/tabs/smart-tabs.d.ts +0 -20
- package/dist/tabs/smart-tabs.js +0 -144
- package/dist/tabs/tab-link.d.ts +0 -18
- package/dist/tabs/tab-link.js +0 -18
- package/dist/tabs/tab.d.ts +0 -27
- package/dist/tabs/tab.js +0 -41
- package/dist/tabs/tabs.d.ts +0 -7
- package/dist/tabs/tabs.js +0 -102
- package/dist/tag/tag.d.ts +0 -64
- package/dist/tag/tag.js +0 -208
- package/dist/tags-input/tags-input.d.ts +0 -163
- package/dist/tags-input/tags-input.js +0 -532
- package/dist/tags-list/tags-list.d.ts +0 -46
- package/dist/tags-list/tags-list.js +0 -103
- package/dist/text/text.d.ts +0 -23
- package/dist/text/text.js +0 -54
- package/dist/toggle/toggle.d.ts +0 -39
- package/dist/toggle/toggle.js +0 -86
- package/dist/tooltip/tooltip.d.ts +0 -65
- package/dist/tooltip/tooltip.js +0 -229
- package/dist/user-agreement/service.d.ts +0 -67
- package/dist/user-agreement/service.js +0 -501
- package/dist/user-agreement/toolbox.eula.d.ts +0 -2
- package/dist/user-agreement/toolbox.eula.js +0 -3
- package/dist/user-agreement/user-agreement.d.ts +0 -61
- package/dist/user-agreement/user-agreement.js +0 -191
- package/dist/user-card/card.d.ts +0 -71
- package/dist/user-card/card.js +0 -82
- package/dist/user-card/smart-user-card-tooltip.d.ts +0 -20
- package/dist/user-card/smart-user-card-tooltip.js +0 -174
- package/dist/user-card/tooltip.d.ts +0 -36
- package/dist/user-card/tooltip.js +0 -146
- package/dist/user-card/user-card.d.ts +0 -11
- package/dist/user-card/user-card.js +0 -87
- /package/components/list/{list.examples.css → list.stories.css} +0 -0
- /package/components/table/{table.examples.json → table.stories.json} +0 -0
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
type Update<T> = (value: T) => void;
|
|
4
|
-
export interface ProviderProps {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export interface UpdaterProps<T> {
|
|
8
|
-
value: T;
|
|
9
|
-
skipUpdate?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export default function createStatefulContext<T>(initialValue: T, name?: string): {
|
|
12
|
-
ValueContext: React.Context<T>;
|
|
13
|
-
UpdateContext: React.Context<Update<T>>;
|
|
14
|
-
Provider: {
|
|
15
|
-
({ children }: ProviderProps): React.JSX.Element;
|
|
16
|
-
propTypes: {
|
|
17
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
18
|
-
};
|
|
19
|
-
displayName: string;
|
|
20
|
-
};
|
|
21
|
-
useUpdate: (value: T, skipUpdate?: boolean) => void;
|
|
22
|
-
Updater: React.MemoExoticComponent<{
|
|
23
|
-
({ value, skipUpdate }: UpdaterProps<T>): null;
|
|
24
|
-
displayName: string;
|
|
25
|
-
}>;
|
|
26
|
-
};
|
|
27
|
-
export {};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { j as _slicedToArray } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import React, { memo, createContext, useState, useContext, useEffect } from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
|
|
5
|
-
function createStatefulContext(initialValue) {
|
|
6
|
-
var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
7
|
-
var ValueContext = /*#__PURE__*/createContext(initialValue);
|
|
8
|
-
var UpdateContext = /*#__PURE__*/createContext(function () {});
|
|
9
|
-
function Provider(_ref) {
|
|
10
|
-
var children = _ref.children;
|
|
11
|
-
var _useState = useState(initialValue),
|
|
12
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
13
|
-
value = _useState2[0],
|
|
14
|
-
update = _useState2[1];
|
|
15
|
-
return /*#__PURE__*/React.createElement(ValueContext.Provider, {
|
|
16
|
-
value: value
|
|
17
|
-
}, /*#__PURE__*/React.createElement(UpdateContext.Provider, {
|
|
18
|
-
value: update
|
|
19
|
-
}, children));
|
|
20
|
-
}
|
|
21
|
-
Provider.propTypes = {
|
|
22
|
-
children: PropTypes.node
|
|
23
|
-
};
|
|
24
|
-
Provider.displayName = "".concat(name, "Provider");
|
|
25
|
-
function useUpdate(value, skipUpdate) {
|
|
26
|
-
var update = useContext(UpdateContext);
|
|
27
|
-
useEffect(function () {
|
|
28
|
-
if (!skipUpdate) {
|
|
29
|
-
update(value);
|
|
30
|
-
}
|
|
31
|
-
}, [update, value, skipUpdate]);
|
|
32
|
-
}
|
|
33
|
-
function Updater(_ref2) {
|
|
34
|
-
var value = _ref2.value,
|
|
35
|
-
skipUpdate = _ref2.skipUpdate;
|
|
36
|
-
useUpdate(value, skipUpdate);
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
Updater.displayName = "".concat(name, "Updater");
|
|
40
|
-
return {
|
|
41
|
-
ValueContext: ValueContext,
|
|
42
|
-
UpdateContext: UpdateContext,
|
|
43
|
-
Provider: Provider,
|
|
44
|
-
useUpdate: useUpdate,
|
|
45
|
-
Updater: /*#__PURE__*/memo(Updater)
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export { createStatefulContext as default };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { l as _typeof, m as _toConsumableArray, j as _slicedToArray } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.array.reduce.js';
|
|
3
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
4
|
-
import 'core-js/modules/es.object.entries.js';
|
|
5
|
-
import 'core-js/modules/es.array.concat.js';
|
|
6
|
-
|
|
7
|
-
function expandMap(attrsMap) {
|
|
8
|
-
return Object.entries(attrsMap).reduce(function (result, _ref) {
|
|
9
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
10
|
-
key = _ref2[0],
|
|
11
|
-
value = _ref2[1];
|
|
12
|
-
return value ? [].concat(_toConsumableArray(result), [key]) : result;
|
|
13
|
-
}, []);
|
|
14
|
-
}
|
|
15
|
-
function joinDataTestAttributes() {
|
|
16
|
-
for (var _len = arguments.length, attrs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
17
|
-
attrs[_key] = arguments[_key];
|
|
18
|
-
}
|
|
19
|
-
return attrs.reduce(function (result, attr) {
|
|
20
|
-
if (!attr) {
|
|
21
|
-
return result;
|
|
22
|
-
}
|
|
23
|
-
if (_typeof(attr) === 'object') {
|
|
24
|
-
return [].concat(_toConsumableArray(result), _toConsumableArray(expandMap(attr)));
|
|
25
|
-
}
|
|
26
|
-
return [].concat(_toConsumableArray(result), [attr]);
|
|
27
|
-
}, []).join(' ');
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { joinDataTestAttributes as default };
|
package/dist/global/dom.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name DOM
|
|
3
|
-
*/
|
|
4
|
-
import { SyntheticEvent } from 'react';
|
|
5
|
-
import type { PropertiesHyphen } from 'csstype';
|
|
6
|
-
export declare const getStyles: ((elt: Element, pseudoElt?: string | null | undefined) => CSSStyleDeclaration) & typeof getComputedStyle;
|
|
7
|
-
export declare function isMounted(node: Node | Range | null | undefined): boolean;
|
|
8
|
-
export interface Rect {
|
|
9
|
-
top: number;
|
|
10
|
-
right: number;
|
|
11
|
-
bottom: number;
|
|
12
|
-
left: number;
|
|
13
|
-
width: number;
|
|
14
|
-
height: number;
|
|
15
|
-
}
|
|
16
|
-
export declare function getRect(node: Element | Range | null | undefined): Rect;
|
|
17
|
-
export declare function getPixelRatio(): number;
|
|
18
|
-
export declare function getWindowHeight(): number;
|
|
19
|
-
export declare function getWindowWidth(): number;
|
|
20
|
-
export declare function isNodeInVisiblePartOfPage(node: Element | Range): boolean;
|
|
21
|
-
export declare function getDocumentScrollTop(): number;
|
|
22
|
-
export declare function getDocumentScrollLeft(): number;
|
|
23
|
-
export declare const applyMethodToClasses: (method: 'add' | 'remove') => (classList: DOMTokenList, classes?: string) => void;
|
|
24
|
-
export declare const addClasses: (classList: DOMTokenList, classes?: string) => void;
|
|
25
|
-
export declare const removeClasses: (classList: DOMTokenList, classes?: string) => void;
|
|
26
|
-
export declare const toggleClasses: (classList: DOMTokenList, classes: Record<string, boolean>) => void;
|
|
27
|
-
export declare function setRootStyleProperties(properties?: PropertiesHyphen): void;
|
|
28
|
-
export declare function resetRootStyleProperties(properties?: Partial<Record<keyof PropertiesHyphen, unknown>>): void;
|
|
29
|
-
export declare class Listeners {
|
|
30
|
-
private _all;
|
|
31
|
-
add<K extends keyof HTMLElementEventMap>(el: HTMLElement, event: K, handler: (this: HTMLElement, ev: HTMLElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): () => void;
|
|
32
|
-
add<K extends keyof WindowEventMap>(el: Window, event: K, handler: (this: Window, ev: WindowEventMap[K]) => void, options?: boolean | AddEventListenerOptions): () => void;
|
|
33
|
-
add<K extends keyof DocumentEventMap>(el: Document, event: K, handler: (this: Window, ev: DocumentEventMap[K]) => void, options?: boolean | AddEventListenerOptions): () => void;
|
|
34
|
-
remove(fn: () => void): void;
|
|
35
|
-
removeAll(): void;
|
|
36
|
-
}
|
|
37
|
-
export declare function preventDefault(e: Event | SyntheticEvent): void;
|
package/dist/global/dom.js
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { j as _slicedToArray, d as _createClass, c as _classCallCheck, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.object.assign.js';
|
|
3
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
4
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
5
|
-
import 'core-js/modules/es.array.filter.js';
|
|
6
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
7
|
-
import 'core-js/modules/es.string.split.js';
|
|
8
|
-
import 'core-js/modules/es.object.entries.js';
|
|
9
|
-
import 'core-js/modules/es.object.keys.js';
|
|
10
|
-
import 'core-js/modules/es.array.iterator.js';
|
|
11
|
-
import 'core-js/modules/es.set.js';
|
|
12
|
-
import 'core-js/modules/es.string.iterator.js';
|
|
13
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @name DOM
|
|
17
|
-
*/
|
|
18
|
-
var getStyles = window.getComputedStyle.bind(window);
|
|
19
|
-
function isMounted(node) {
|
|
20
|
-
if (node === document) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
return node instanceof Node && document.documentElement.contains(node.parentNode);
|
|
24
|
-
}
|
|
25
|
-
var rectStub = {
|
|
26
|
-
top: 0,
|
|
27
|
-
right: 0,
|
|
28
|
-
bottom: 0,
|
|
29
|
-
left: 0,
|
|
30
|
-
width: 0,
|
|
31
|
-
height: 0
|
|
32
|
-
};
|
|
33
|
-
function getRect(node) {
|
|
34
|
-
if (node instanceof Range || node != null && isMounted(node)) {
|
|
35
|
-
var _node$getBoundingClie = node.getBoundingClientRect(),
|
|
36
|
-
top = _node$getBoundingClie.top,
|
|
37
|
-
right = _node$getBoundingClie.right,
|
|
38
|
-
bottom = _node$getBoundingClie.bottom,
|
|
39
|
-
left = _node$getBoundingClie.left,
|
|
40
|
-
width = _node$getBoundingClie.width,
|
|
41
|
-
height = _node$getBoundingClie.height;
|
|
42
|
-
return {
|
|
43
|
-
top: top,
|
|
44
|
-
right: right,
|
|
45
|
-
bottom: bottom,
|
|
46
|
-
left: left,
|
|
47
|
-
width: width,
|
|
48
|
-
height: height
|
|
49
|
-
};
|
|
50
|
-
} else {
|
|
51
|
-
return Object.assign({}, rectStub);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function getPixelRatio() {
|
|
55
|
-
return 'devicePixelRatio' in window ? window.devicePixelRatio : 1;
|
|
56
|
-
}
|
|
57
|
-
function getWindowHeight() {
|
|
58
|
-
return window.innerHeight;
|
|
59
|
-
}
|
|
60
|
-
function getWindowWidth() {
|
|
61
|
-
return window.innerWidth;
|
|
62
|
-
}
|
|
63
|
-
function isNodeInVisiblePartOfPage(node) {
|
|
64
|
-
var _getRect = getRect(node),
|
|
65
|
-
top = _getRect.top,
|
|
66
|
-
bottom = _getRect.bottom,
|
|
67
|
-
left = _getRect.left,
|
|
68
|
-
right = _getRect.right;
|
|
69
|
-
return !(bottom < 0 || right < 0 || getWindowHeight() - top < 0 || getWindowWidth() - left < 0);
|
|
70
|
-
}
|
|
71
|
-
function getDocumentScrollTop() {
|
|
72
|
-
return document.documentElement && document.documentElement.scrollTop || document.body.scrollTop;
|
|
73
|
-
}
|
|
74
|
-
function getDocumentScrollLeft() {
|
|
75
|
-
return document.documentElement && document.documentElement.scrollLeft || document.body.scrollLeft;
|
|
76
|
-
}
|
|
77
|
-
var applyMethodToClasses = function applyMethodToClasses(method) {
|
|
78
|
-
return function (classList) {
|
|
79
|
-
var classes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
80
|
-
classes.split(/\s+/g).filter(function (className) {
|
|
81
|
-
return !!className;
|
|
82
|
-
}).forEach(function (className) {
|
|
83
|
-
return classList[method](className);
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
var addClasses = applyMethodToClasses('add');
|
|
88
|
-
var removeClasses = applyMethodToClasses('remove');
|
|
89
|
-
var toggleClasses = function toggleClasses(classList, classes) {
|
|
90
|
-
return Object.entries(classes).forEach(function (_ref) {
|
|
91
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
92
|
-
className = _ref2[0],
|
|
93
|
-
on = _ref2[1];
|
|
94
|
-
return classList.toggle(className, on);
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
function setRootStyleProperties() {
|
|
98
|
-
var properties = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
99
|
-
var rootStyle = document.documentElement.style;
|
|
100
|
-
Object.entries(properties).forEach(function (_ref3) {
|
|
101
|
-
var _ref4 = _slicedToArray(_ref3, 2),
|
|
102
|
-
key = _ref4[0],
|
|
103
|
-
value = _ref4[1];
|
|
104
|
-
rootStyle.setProperty(key, value);
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
function resetRootStyleProperties() {
|
|
108
|
-
var properties = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
109
|
-
var rootStyle = document.documentElement.style;
|
|
110
|
-
Object.keys(properties).forEach(function (key) {
|
|
111
|
-
return rootStyle.removeProperty(key);
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
var Listeners = /*#__PURE__*/function () {
|
|
115
|
-
function Listeners() {
|
|
116
|
-
_classCallCheck(this, Listeners);
|
|
117
|
-
_defineProperty(this, "_all", new Set());
|
|
118
|
-
}
|
|
119
|
-
_createClass(Listeners, [{
|
|
120
|
-
key: "add",
|
|
121
|
-
value: function add(el, event, handler, options) {
|
|
122
|
-
el.addEventListener(event, handler, options);
|
|
123
|
-
var dispatchFn = function dispatchFn() {
|
|
124
|
-
return el.removeEventListener(event, handler, options);
|
|
125
|
-
};
|
|
126
|
-
this._all.add(dispatchFn);
|
|
127
|
-
return dispatchFn;
|
|
128
|
-
}
|
|
129
|
-
}, {
|
|
130
|
-
key: "remove",
|
|
131
|
-
value: function remove(fn) {
|
|
132
|
-
fn();
|
|
133
|
-
this._all.delete(fn);
|
|
134
|
-
}
|
|
135
|
-
}, {
|
|
136
|
-
key: "removeAll",
|
|
137
|
-
value: function removeAll() {
|
|
138
|
-
var _this = this;
|
|
139
|
-
this._all.forEach(function (fn) {
|
|
140
|
-
return _this.remove(fn);
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
}]);
|
|
144
|
-
return Listeners;
|
|
145
|
-
}();
|
|
146
|
-
// Synthetic events from Combokeys#trigger are plain objects
|
|
147
|
-
function preventDefault(e) {
|
|
148
|
-
if (e.preventDefault) {
|
|
149
|
-
e.preventDefault();
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export { Listeners, addClasses, applyMethodToClasses, getDocumentScrollLeft, getDocumentScrollTop, getPixelRatio, getRect, getStyles, getWindowHeight, getWindowWidth, isMounted, isNodeInVisiblePartOfPage, preventDefault, removeClasses, resetRootStyleProperties, setRootStyleProperties, toggleClasses };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ComponentType, Ref } from 'react';
|
|
2
|
-
export interface FocusSensorOuterProps<T extends HTMLElement> {
|
|
3
|
-
focused?: boolean | undefined;
|
|
4
|
-
autofocus?: boolean | undefined;
|
|
5
|
-
scrollOnTableFocus?: boolean;
|
|
6
|
-
onFocus?: (() => void) | undefined;
|
|
7
|
-
onBlur?: (() => void) | undefined;
|
|
8
|
-
innerRef?: Ref<T> | null | undefined;
|
|
9
|
-
}
|
|
10
|
-
export interface FocusSensorAddProps<T extends HTMLElement> {
|
|
11
|
-
innerRef: Ref<T>;
|
|
12
|
-
focused: boolean;
|
|
13
|
-
onFocusReset: () => void;
|
|
14
|
-
onFocusRestore: () => void;
|
|
15
|
-
}
|
|
16
|
-
type RestProps<P, T extends HTMLElement> = Omit<P, keyof FocusSensorAddProps<T>>;
|
|
17
|
-
export type FocusSensorProps<P extends FocusSensorAddProps<T>, T extends HTMLElement, C extends ComponentType<P>> = RestProps<JSX.LibraryManagedAttributes<C, P>, T> & FocusSensorOuterProps<T>;
|
|
18
|
-
export default function focusSensorHOC<T extends HTMLElement, P extends FocusSensorAddProps<T>, C extends ComponentType<P>>(ComposedComponent: C): ComponentType<FocusSensorProps<P, T, typeof ComposedComponent>>;
|
|
19
|
-
export {};
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { g as _objectSpread2, e as _objectWithoutProperties, a as _inherits, b as _createSuper, c as _classCallCheck, _ as _defineProperty, k as _assertThisInitialized, d as _createClass, f as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.array.concat.js';
|
|
3
|
-
import React, { Component } from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import { refObject } from './prop-types.js';
|
|
6
|
-
import composeRefs from './composeRefs.js';
|
|
7
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
8
|
-
import 'core-js/modules/web.dom-collections.for-each.js';
|
|
9
|
-
|
|
10
|
-
var _excluded = ["innerRef", "focused", "onFocusReset", "onFocusRestore"],
|
|
11
|
-
_excluded2 = ["autofocus", "focused", "onFocus", "onBlur", "innerRef", "scrollOnTableFocus"];
|
|
12
|
-
function extractPropTypes(_ref) {
|
|
13
|
-
var propTypes = _ref.propTypes;
|
|
14
|
-
if (propTypes == null) {
|
|
15
|
-
return propTypes;
|
|
16
|
-
}
|
|
17
|
-
propTypes.innerRef;
|
|
18
|
-
propTypes.focused;
|
|
19
|
-
propTypes.onFocusReset;
|
|
20
|
-
propTypes.onFocusRestore;
|
|
21
|
-
var restPropTypes = _objectWithoutProperties(propTypes, _excluded);
|
|
22
|
-
return restPropTypes;
|
|
23
|
-
}
|
|
24
|
-
function focusSensorHOC(ComposedComponent) {
|
|
25
|
-
var FocusSensor = /*#__PURE__*/function (_Component) {
|
|
26
|
-
_inherits(FocusSensor, _Component);
|
|
27
|
-
var _super = _createSuper(FocusSensor);
|
|
28
|
-
function FocusSensor() {
|
|
29
|
-
var _this;
|
|
30
|
-
_classCallCheck(this, FocusSensor);
|
|
31
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
32
|
-
args[_key] = arguments[_key];
|
|
33
|
-
}
|
|
34
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
35
|
-
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
36
|
-
focused: _this.props.focused
|
|
37
|
-
});
|
|
38
|
-
_defineProperty(_assertThisInitialized(_this), "node", void 0);
|
|
39
|
-
_defineProperty(_assertThisInitialized(_this), "_skipNextCapture", false);
|
|
40
|
-
_defineProperty(_assertThisInitialized(_this), "onRefUpdate", function (node) {
|
|
41
|
-
if (node) {
|
|
42
|
-
_this.node = node;
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
_defineProperty(_assertThisInitialized(_this), "onFocusCapture", function (_ref2) {
|
|
46
|
-
var _this$node;
|
|
47
|
-
var target = _ref2.target;
|
|
48
|
-
if (_this._skipNextCapture) {
|
|
49
|
-
_this._skipNextCapture = false;
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
var focused = target instanceof Node && ((_this$node = _this.node) === null || _this$node === void 0 ? void 0 : _this$node.contains(target));
|
|
53
|
-
if (focused && !_this.state.focused) {
|
|
54
|
-
var _this$props$onFocus, _this$props;
|
|
55
|
-
_this.setState({
|
|
56
|
-
focused: true
|
|
57
|
-
});
|
|
58
|
-
(_this$props$onFocus = (_this$props = _this.props).onFocus) === null || _this$props$onFocus === void 0 ? void 0 : _this$props$onFocus.call(_this$props);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
_defineProperty(_assertThisInitialized(_this), "onBlurCapture", function (_ref3) {
|
|
62
|
-
var target = _ref3.target;
|
|
63
|
-
var _assertThisInitialize = _assertThisInitialized(_this),
|
|
64
|
-
focused = _assertThisInitialize.state.focused,
|
|
65
|
-
node = _assertThisInitialize.node;
|
|
66
|
-
if (focused) {
|
|
67
|
-
setTimeout(function () {
|
|
68
|
-
var blurred = target instanceof Node && (node === null || node === void 0 ? void 0 : node.contains(target)) && !node.contains(document.activeElement);
|
|
69
|
-
if (blurred) {
|
|
70
|
-
var _this$props$onBlur, _this$props2;
|
|
71
|
-
_this.setState({
|
|
72
|
-
focused: false
|
|
73
|
-
});
|
|
74
|
-
(_this$props$onBlur = (_this$props2 = _this.props).onBlur) === null || _this$props$onBlur === void 0 ? void 0 : _this$props$onBlur.call(_this$props2);
|
|
75
|
-
}
|
|
76
|
-
}, 1);
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
_defineProperty(_assertThisInitialized(_this), "onFocusRestore", function () {
|
|
80
|
-
var _this$node2;
|
|
81
|
-
_this._skipNextCapture = true;
|
|
82
|
-
(_this$node2 = _this.node) === null || _this$node2 === void 0 ? void 0 : _this$node2.focus({
|
|
83
|
-
preventScroll: !_this.props.scrollOnTableFocus
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
_defineProperty(_assertThisInitialized(_this), "onFocusReset", function () {
|
|
87
|
-
var _this$node3;
|
|
88
|
-
(_this$node3 = _this.node) === null || _this$node3 === void 0 ? void 0 : _this$node3.blur();
|
|
89
|
-
});
|
|
90
|
-
return _this;
|
|
91
|
-
}
|
|
92
|
-
_createClass(FocusSensor, [{
|
|
93
|
-
key: "componentDidMount",
|
|
94
|
-
value: function componentDidMount() {
|
|
95
|
-
var _this$props3 = this.props,
|
|
96
|
-
autofocus = _this$props3.autofocus,
|
|
97
|
-
scrollOnTableFocus = _this$props3.scrollOnTableFocus,
|
|
98
|
-
node = this.node;
|
|
99
|
-
node === null || node === void 0 ? void 0 : node.setAttribute('tabindex', '0');
|
|
100
|
-
if (node != null) {
|
|
101
|
-
node.style.outline = 'none';
|
|
102
|
-
}
|
|
103
|
-
document.addEventListener('focus', this.onFocusCapture, true);
|
|
104
|
-
document.addEventListener('blur', this.onBlurCapture, true);
|
|
105
|
-
if (autofocus) {
|
|
106
|
-
node === null || node === void 0 ? void 0 : node.focus({
|
|
107
|
-
preventScroll: !scrollOnTableFocus
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}, {
|
|
112
|
-
key: "componentDidUpdate",
|
|
113
|
-
value: function componentDidUpdate(prevProps) {
|
|
114
|
-
var focused = this.props.focused;
|
|
115
|
-
if (focused && !prevProps.focused) {
|
|
116
|
-
this.onFocusRestore();
|
|
117
|
-
} else if (!focused && prevProps.focused) {
|
|
118
|
-
this.onFocusReset();
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}, {
|
|
122
|
-
key: "componentWillUnmount",
|
|
123
|
-
value: function componentWillUnmount() {
|
|
124
|
-
document.removeEventListener('focus', this.onFocusCapture, true);
|
|
125
|
-
document.removeEventListener('blur', this.onBlurCapture, true);
|
|
126
|
-
}
|
|
127
|
-
}, {
|
|
128
|
-
key: "render",
|
|
129
|
-
value: function render() {
|
|
130
|
-
var _this$props4 = this.props;
|
|
131
|
-
_this$props4.autofocus;
|
|
132
|
-
_this$props4.focused;
|
|
133
|
-
_this$props4.onFocus;
|
|
134
|
-
_this$props4.onBlur;
|
|
135
|
-
var innerRef = _this$props4.innerRef;
|
|
136
|
-
_this$props4.scrollOnTableFocus;
|
|
137
|
-
var rest = _objectWithoutProperties(_this$props4, _excluded2);
|
|
138
|
-
return /*#__PURE__*/React.createElement(ComposedComponent, _extends({}, rest, {
|
|
139
|
-
innerRef: composeRefs(innerRef, this.onRefUpdate),
|
|
140
|
-
focused: this.state.focused,
|
|
141
|
-
onFocusReset: this.onFocusReset,
|
|
142
|
-
onFocusRestore: this.onFocusRestore
|
|
143
|
-
}));
|
|
144
|
-
}
|
|
145
|
-
}]);
|
|
146
|
-
return FocusSensor;
|
|
147
|
-
}(Component);
|
|
148
|
-
FocusSensor.propTypes = _objectSpread2(_objectSpread2({}, extractPropTypes(ComposedComponent)), {}, {
|
|
149
|
-
focused: PropTypes.bool,
|
|
150
|
-
autofocus: PropTypes.bool,
|
|
151
|
-
onFocus: PropTypes.func,
|
|
152
|
-
onBlur: PropTypes.func,
|
|
153
|
-
innerRef: PropTypes.oneOfType([PropTypes.func, refObject(PropTypes.instanceOf(HTMLElement))])
|
|
154
|
-
});
|
|
155
|
-
FocusSensor.defaultProps = _objectSpread2(_objectSpread2({}, ComposedComponent.defaultProps), {}, {
|
|
156
|
-
focused: false,
|
|
157
|
-
autofocus: false,
|
|
158
|
-
scrollOnTableFocus: true,
|
|
159
|
-
onFocus: function onFocus() {},
|
|
160
|
-
onBlur: function onBlur() {}
|
|
161
|
-
});
|
|
162
|
-
return FocusSensor;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export { focusSensorHOC as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** https://github.com/bevacqua/fuzzysearch + highlighting with Markdown */
|
|
2
|
-
type Match = {
|
|
3
|
-
from: number;
|
|
4
|
-
to: number;
|
|
5
|
-
};
|
|
6
|
-
export default function fuzzyHighlight(needle: string, haystack: string, caseSensitive?: boolean): {
|
|
7
|
-
matched: boolean;
|
|
8
|
-
matches: Match[];
|
|
9
|
-
highlight: string;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { n as _createForOfIteratorHelper } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.array.slice.js';
|
|
3
|
-
import 'core-js/modules/es.array.concat.js';
|
|
4
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
5
|
-
|
|
6
|
-
/** https://github.com/bevacqua/fuzzysearch + highlighting with Markdown */
|
|
7
|
-
function fuzzyHighlight(needle, haystack) {
|
|
8
|
-
var caseSensitive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
9
|
-
var ndl = caseSensitive ? needle : needle.toLowerCase();
|
|
10
|
-
var hstck = caseSensitive ? haystack : haystack.toLowerCase();
|
|
11
|
-
var result = function result(matched) {
|
|
12
|
-
var matches = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
13
|
-
var highlight = haystack;
|
|
14
|
-
if (matches.length > 0) {
|
|
15
|
-
highlight = '';
|
|
16
|
-
var prevMatch = {
|
|
17
|
-
to: 0
|
|
18
|
-
};
|
|
19
|
-
var _iterator = _createForOfIteratorHelper(matches),
|
|
20
|
-
_step;
|
|
21
|
-
try {
|
|
22
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
23
|
-
var match = _step.value;
|
|
24
|
-
highlight += "".concat(haystack.slice(prevMatch.to, match.from), "**").concat(haystack.slice(match.from, match.to), "**");
|
|
25
|
-
prevMatch = match;
|
|
26
|
-
}
|
|
27
|
-
} catch (err) {
|
|
28
|
-
_iterator.e(err);
|
|
29
|
-
} finally {
|
|
30
|
-
_iterator.f();
|
|
31
|
-
}
|
|
32
|
-
highlight += haystack.slice(prevMatch.to);
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
matched: matched,
|
|
36
|
-
matches: matches,
|
|
37
|
-
highlight: highlight
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
var hlen = hstck.length;
|
|
41
|
-
var nlen = ndl.length;
|
|
42
|
-
if (nlen > hlen) {
|
|
43
|
-
return result(false);
|
|
44
|
-
}
|
|
45
|
-
if (nlen === hlen) {
|
|
46
|
-
var matched = ndl === hstck;
|
|
47
|
-
return result(matched, matched ? [{
|
|
48
|
-
from: 0,
|
|
49
|
-
to: haystack.length
|
|
50
|
-
}] : []);
|
|
51
|
-
}
|
|
52
|
-
var on = false;
|
|
53
|
-
var j = 0;
|
|
54
|
-
var matches = [];
|
|
55
|
-
var from = 0;
|
|
56
|
-
/* eslint-disable no-labels */
|
|
57
|
-
outer: for (var i = 0; i < nlen; i++) {
|
|
58
|
-
var nch = ndl[i];
|
|
59
|
-
while (j < hlen) {
|
|
60
|
-
var hch = hstck[j];
|
|
61
|
-
var match = hch === nch;
|
|
62
|
-
// Don't turn highlight on for space characters
|
|
63
|
-
var nextOn = match && /\S/.test(hch);
|
|
64
|
-
if (nextOn && !on) {
|
|
65
|
-
from = j;
|
|
66
|
-
} else if (!nextOn && on) {
|
|
67
|
-
matches.push({
|
|
68
|
-
from: from,
|
|
69
|
-
to: j
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
j++;
|
|
73
|
-
on = nextOn;
|
|
74
|
-
if (match) {
|
|
75
|
-
continue outer;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return result(false);
|
|
79
|
-
}
|
|
80
|
-
/* eslint-enable */
|
|
81
|
-
if (on) {
|
|
82
|
-
matches.push({
|
|
83
|
-
from: from,
|
|
84
|
-
to: j
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
return result(true, matches);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export { fuzzyHighlight as default };
|