@jetbrains/ring-ui 6.0.6-beta.0 → 6.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/components/alert/alert.css +146 -0
- package/components/alert/alert.d.ts +113 -0
- package/components/alert/alert.js +186 -0
- package/components/alert/container.css +26 -0
- package/components/alert/container.d.ts +15 -0
- package/components/alert/container.js +30 -0
- package/components/alert-service/alert-service.d.ts +36 -0
- package/components/alert-service/alert-service.js +108 -0
- package/components/alert-service/alert-service.stories.css +17 -0
- package/components/analytics/analytics.d.ts +18 -0
- package/components/analytics/analytics.js +18 -0
- package/components/analytics/analytics__custom-plugin.d.ts +28 -0
- package/components/analytics/analytics__custom-plugin.js +58 -0
- package/components/auth/auth.d.ts +3 -0
- package/components/auth/auth.js +42 -0
- package/components/auth/auth__core.d.ts +236 -0
- package/components/auth/auth__core.js +834 -0
- package/components/auth/background-flow.d.ts +31 -0
- package/components/auth/background-flow.js +97 -0
- package/components/auth/down-notification.css +15 -0
- package/components/auth/down-notification.d.ts +15 -0
- package/components/auth/down-notification.js +52 -0
- package/components/auth/iframe-flow.d.ts +20 -0
- package/components/auth/iframe-flow.js +81 -0
- package/components/auth/request-builder.d.ts +48 -0
- package/components/auth/request-builder.js +64 -0
- package/components/auth/response-parser.d.ts +70 -0
- package/components/auth/response-parser.js +99 -0
- package/components/auth/storage.d.ts +112 -0
- package/components/auth/storage.js +224 -0
- package/components/auth/token-validator.d.ts +93 -0
- package/components/auth/token-validator.js +169 -0
- package/components/auth/window-flow.d.ts +26 -0
- package/components/auth/window-flow.js +102 -0
- package/components/auth-dialog/auth-dialog.css +54 -0
- package/components/auth-dialog/auth-dialog.d.ts +60 -0
- package/components/auth-dialog/auth-dialog.js +93 -0
- package/components/auth-dialog-service/auth-dialog-service.d.ts +6 -0
- package/components/auth-dialog-service/auth-dialog-service.js +26 -0
- package/components/avatar/avatar-example-datauri.d.ts +1 -0
- package/components/avatar/avatar-example-datauri.js +24 -0
- package/components/avatar/avatar.css +27 -0
- package/components/avatar/avatar.d.ts +52 -0
- package/components/avatar/avatar.js +98 -0
- package/components/avatar/fallback-avatar.d.ts +17 -0
- package/components/avatar/fallback-avatar.js +113 -0
- package/components/badge/badge.css +42 -0
- package/components/badge/badge.d.ts +24 -0
- package/components/badge/badge.js +35 -0
- package/components/button/button.css +397 -0
- package/components/button/button.d.ts +67 -0
- package/components/button/button.js +70 -0
- package/components/button/button__classes.d.ts +2 -0
- package/components/button/button__classes.js +18 -0
- package/components/button-group/button-group.css +236 -0
- package/components/button-group/button-group.d.ts +18 -0
- package/components/button-group/button-group.js +21 -0
- package/components/button-group/caption.d.ts +8 -0
- package/components/button-group/caption.js +14 -0
- package/components/button-set/button-set.css +21 -0
- package/components/button-set/button-set.d.ts +16 -0
- package/components/button-set/button-set.js +22 -0
- package/components/button-toolbar/button-toolbar.css +25 -0
- package/components/button-toolbar/button-toolbar.d.ts +16 -0
- package/components/button-toolbar/button-toolbar.js +20 -0
- package/components/caret/caret.d.ts +66 -0
- package/components/caret/caret.js +216 -0
- package/components/checkbox/checkbox.css +146 -0
- package/components/checkbox/checkbox.d.ts +45 -0
- package/components/checkbox/checkbox.js +72 -0
- package/components/clipboard/clipboard-fallback.d.ts +2 -0
- package/components/clipboard/clipboard-fallback.js +44 -0
- package/components/clipboard/clipboard.d.ts +5 -0
- package/components/clipboard/clipboard.js +41 -0
- package/components/code/code.css +29 -0
- package/components/code/code.d.ts +44 -0
- package/components/code/code.js +94 -0
- package/components/code/highlight.css +112 -0
- package/components/collapse/collapse-content.d.ts +11 -0
- package/components/collapse/collapse-content.js +72 -0
- package/components/collapse/collapse-context.d.ts +10 -0
- package/components/collapse/collapse-context.js +10 -0
- package/components/collapse/collapse-control.d.ts +11 -0
- package/components/collapse/collapse-control.js +22 -0
- package/components/collapse/collapse.css +40 -0
- package/components/collapse/collapse.d.ts +12 -0
- package/components/collapse/collapse.js +26 -0
- package/components/collapse/collapse.stories.css +25 -0
- package/components/collapse/consts.d.ts +4 -0
- package/components/collapse/consts.js +4 -0
- package/components/collapse/utils.d.ts +1 -0
- package/components/collapse/utils.js +1 -0
- package/components/confirm/confirm.css +7 -0
- package/components/confirm/confirm.d.ts +48 -0
- package/components/confirm/confirm.js +59 -0
- package/components/confirm-service/confirm-service.d.ts +21 -0
- package/components/confirm-service/confirm-service.js +52 -0
- package/components/content-layout/content-layout.css +108 -0
- package/components/content-layout/content-layout.d.ts +26 -0
- package/components/content-layout/content-layout.js +45 -0
- package/components/content-layout/sidebar.d.ts +31 -0
- package/components/content-layout/sidebar.js +76 -0
- package/components/contenteditable/contenteditable.d.ts +47 -0
- package/components/contenteditable/contenteditable.js +47 -0
- package/components/control-label/control-label.css +23 -0
- package/components/control-label/control-label.d.ts +11 -0
- package/components/control-label/control-label.js +22 -0
- package/components/data-list/data-list.css +97 -0
- package/components/data-list/data-list.d.ts +85 -0
- package/components/data-list/data-list.js +119 -0
- package/components/data-list/data-list.mock.d.ts +16 -0
- package/components/data-list/data-list.mock.js +207 -0
- package/components/data-list/item.d.ts +50 -0
- package/components/data-list/item.js +114 -0
- package/components/data-list/selection.d.ts +16 -0
- package/components/data-list/selection.js +81 -0
- package/components/data-list/title.d.ts +26 -0
- package/components/data-list/title.js +65 -0
- package/components/date-picker/consts.d.ts +98 -0
- package/components/date-picker/consts.js +44 -0
- package/components/date-picker/date-input.d.ts +47 -0
- package/components/date-picker/date-input.js +91 -0
- package/components/date-picker/date-picker.css +602 -0
- package/components/date-picker/date-picker.d.ts +77 -0
- package/components/date-picker/date-picker.js +218 -0
- package/components/date-picker/date-popup.d.ts +55 -0
- package/components/date-picker/date-popup.js +347 -0
- package/components/date-picker/day.d.ts +30 -0
- package/components/date-picker/day.js +88 -0
- package/components/date-picker/formats.d.ts +2 -0
- package/components/date-picker/formats.js +1 -0
- package/components/date-picker/month-names.d.ts +13 -0
- package/components/date-picker/month-names.js +62 -0
- package/components/date-picker/month-slider.d.ts +29 -0
- package/components/date-picker/month-slider.js +56 -0
- package/components/date-picker/month.d.ts +14 -0
- package/components/date-picker/month.js +33 -0
- package/components/date-picker/months.d.ts +11 -0
- package/components/date-picker/months.js +101 -0
- package/components/date-picker/weekdays.d.ts +13 -0
- package/components/date-picker/weekdays.js +24 -0
- package/components/date-picker/years.d.ts +25 -0
- package/components/date-picker/years.js +87 -0
- package/components/dialog/dialog.css +137 -0
- package/components/dialog/dialog.d.ts +64 -0
- package/components/dialog/dialog.js +128 -0
- package/components/dialog/dialog__body-scroll-preventer.d.ts +9 -0
- package/components/dialog/dialog__body-scroll-preventer.js +43 -0
- package/components/dropdown/anchor.d.ts +11 -0
- package/components/dropdown/anchor.js +16 -0
- package/components/dropdown/dropdown.css +18 -0
- package/components/dropdown/dropdown.d.ts +87 -0
- package/components/dropdown/dropdown.js +159 -0
- package/components/dropdown-menu/dropdown-menu.d.ts +36 -0
- package/components/dropdown-menu/dropdown-menu.js +56 -0
- package/components/editable-heading/editable-heading.css +198 -0
- package/components/editable-heading/editable-heading.d.ts +32 -0
- package/components/editable-heading/editable-heading.js +141 -0
- package/components/error-bubble/error-bubble-legacy.css +77 -0
- package/components/error-bubble/error-bubble.css +54 -0
- package/components/error-bubble/error-bubble.d.ts +18 -0
- package/components/error-bubble/error-bubble.js +28 -0
- package/components/error-message/error-message.css +37 -0
- package/components/error-message/error-message.d.ts +27 -0
- package/components/error-message/error-message.js +37 -0
- package/components/error-page/error-page.css +24 -0
- package/components/error-page/error-page.gif +0 -0
- package/components/footer/footer.css +83 -0
- package/components/footer/footer.d.ts +28 -0
- package/components/footer/footer.js +97 -0
- package/components/form/form.css +266 -0
- package/components/form/form.stories.js +138 -0
- package/components/global/compose.d.ts +7 -0
- package/components/global/compose.js +4 -0
- package/components/global/composeRefs.d.ts +3 -0
- package/components/global/composeRefs.js +8 -0
- package/components/global/controls-height.d.ts +9 -0
- package/components/global/controls-height.js +16 -0
- package/components/global/create-stateful-context.d.ts +27 -0
- package/components/global/create-stateful-context.js +38 -0
- package/components/global/data-tests.d.ts +3 -0
- package/components/global/data-tests.js +17 -0
- package/components/global/dom.d.ts +37 -0
- package/components/global/dom.js +83 -0
- package/components/global/focus-sensor-hoc.d.ts +19 -0
- package/components/global/focus-sensor-hoc.js +102 -0
- package/components/global/fuzzy-highlight.d.ts +11 -0
- package/components/global/fuzzy-highlight.js +58 -0
- package/components/global/get-event-key.d.ts +2 -0
- package/components/global/get-event-key.js +100 -0
- package/components/global/get-uid.d.ts +1 -0
- package/components/global/get-uid.js +16 -0
- package/components/global/global.css +101 -0
- package/components/global/inject-styles.d.ts +3 -0
- package/components/global/inject-styles.js +12 -0
- package/components/global/linear-function.d.ts +6 -0
- package/components/global/linear-function.js +13 -0
- package/components/global/listeners.d.ts +8 -0
- package/components/global/listeners.js +27 -0
- package/components/global/memoize.d.ts +1 -0
- package/components/global/memoize.js +15 -0
- package/components/global/normalize-indent.d.ts +1 -0
- package/components/global/normalize-indent.js +30 -0
- package/components/global/promise-with-timeout.d.ts +5 -0
- package/components/global/promise-with-timeout.js +11 -0
- package/components/global/prop-types.d.ts +4 -0
- package/components/global/prop-types.js +4 -0
- package/components/global/react-dom-renderer.d.ts +16 -0
- package/components/global/react-dom-renderer.js +25 -0
- package/components/global/react-render-adapter.d.ts +1 -0
- package/components/global/react-render-adapter.js +3 -0
- package/components/global/rerender-hoc.d.ts +10 -0
- package/components/global/rerender-hoc.js +14 -0
- package/components/global/schedule-raf.d.ts +1 -0
- package/components/global/schedule-raf.js +27 -0
- package/components/global/sniffer.d.ts +3 -0
- package/components/global/sniffer.js +4 -0
- package/components/global/theme.d.ts +21 -0
- package/components/global/theme.js +70 -0
- package/components/global/trivial-template-tag.d.ts +1 -0
- package/components/global/trivial-template-tag.js +9 -0
- package/components/global/typescript-utils.d.ts +2 -0
- package/components/global/typescript-utils.js +2 -0
- package/components/global/url.d.ts +57 -0
- package/components/global/url.js +136 -0
- package/components/global/use-event-callback.d.ts +1 -0
- package/components/global/use-event-callback.js +14 -0
- package/components/global/variables.css +179 -0
- package/components/global/variables.d.ts +89 -0
- package/components/global/variables.js +1 -0
- package/components/global/variables_dark.css +132 -0
- package/components/grid/col.d.ts +31 -0
- package/components/grid/col.js +49 -0
- package/components/grid/grid.css +915 -0
- package/components/grid/grid.d.ts +14 -0
- package/components/grid/grid.js +22 -0
- package/components/grid/row.d.ts +40 -0
- package/components/grid/row.js +51 -0
- package/components/group/group.css +7 -0
- package/components/group/group.d.ts +12 -0
- package/components/group/group.js +20 -0
- package/components/header/header.css +169 -0
- package/components/header/header.d.ts +34 -0
- package/components/header/header.js +46 -0
- package/components/header/logo.d.ts +14 -0
- package/components/header/logo.js +22 -0
- package/components/header/profile.d.ts +75 -0
- package/components/header/profile.js +119 -0
- package/components/header/services-link.d.ts +25 -0
- package/components/header/services-link.js +26 -0
- package/components/header/services.css +97 -0
- package/components/header/services.d.ts +33 -0
- package/components/header/services.js +62 -0
- package/components/header/smart-profile.d.ts +36 -0
- package/components/header/smart-profile.js +86 -0
- package/components/header/smart-services.d.ts +26 -0
- package/components/header/smart-services.js +49 -0
- package/components/header/tray-icon.d.ts +32 -0
- package/components/header/tray-icon.js +20 -0
- package/components/header/tray.d.ts +9 -0
- package/components/header/tray.js +18 -0
- package/components/heading/heading.css +68 -0
- package/components/heading/heading.d.ts +25 -0
- package/components/heading/heading.js +52 -0
- package/components/http/http.d.ts +61 -0
- package/components/http/http.js +192 -0
- package/components/http/http.mock.d.ts +20 -0
- package/components/http/http.mock.js +52 -0
- package/components/hub-source/hub-source.d.ts +44 -0
- package/components/hub-source/hub-source.js +107 -0
- package/components/hub-source/hub-source__user.d.ts +4 -0
- package/components/hub-source/hub-source__user.js +20 -0
- package/components/hub-source/hub-source__users-groups.d.ts +24 -0
- package/components/hub-source/hub-source__users-groups.js +53 -0
- package/components/i18n/README.md +46 -0
- package/components/i18n/i18n-context.d.ts +13 -0
- package/components/i18n/i18n-context.js +14 -0
- package/components/i18n/i18n.d.ts +59 -0
- package/components/i18n/i18n.js +26 -0
- package/components/i18n/messages.json +53 -0
- package/components/icon/icon.css +100 -0
- package/components/icon/icon.d.ts +43 -0
- package/components/icon/icon.js +69 -0
- package/components/icon/icon__constants.d.ts +30 -0
- package/components/icon/icon__constants.js +32 -0
- package/components/icon/icon__svg.d.ts +15 -0
- package/components/icon/icon__svg.js +58 -0
- package/components/icon/index.d.ts +2 -0
- package/components/icon/index.js +2 -0
- package/components/input/input-legacy.css +123 -0
- package/components/input/input.css +194 -0
- package/components/input/input.d.ts +77 -0
- package/components/input/input.js +165 -0
- package/components/input-size/input-size.css +82 -0
- package/components/input-size/input-size.stories.js +73 -0
- package/components/island/adaptive-island-hoc.d.ts +61 -0
- package/components/island/adaptive-island-hoc.js +28 -0
- package/components/island/content.d.ts +43 -0
- package/components/island/content.js +100 -0
- package/components/island/header.d.ts +8 -0
- package/components/island/header.js +78 -0
- package/components/island/island.css +131 -0
- package/components/island/island.d.ts +78 -0
- package/components/island/island.js +31 -0
- package/components/island-legacy/content-legacy.d.ts +10 -0
- package/components/island-legacy/content-legacy.js +17 -0
- package/components/island-legacy/header-legacy.d.ts +10 -0
- package/components/island-legacy/header-legacy.js +19 -0
- package/components/island-legacy/island-legacy.css +98 -0
- package/components/island-legacy/island-legacy.d.ts +12 -0
- package/components/island-legacy/island-legacy.js +19 -0
- package/components/line/line.css +14 -0
- package/components/link/clickableLink.d.ts +20 -0
- package/components/link/clickableLink.js +33 -0
- package/components/link/link.css +64 -0
- package/components/link/link.d.ts +138 -0
- package/components/link/link.js +44 -0
- package/components/list/consts.d.ts +77 -0
- package/components/list/consts.js +25 -0
- package/components/list/list.css +298 -0
- package/components/list/list.d.ts +205 -0
- package/components/list/list.js +590 -0
- package/components/list/list.stories.css +3 -0
- package/components/list/list__custom.d.ts +6 -0
- package/components/list/list__custom.js +52 -0
- package/components/list/list__hint.d.ts +15 -0
- package/components/list/list__hint.js +16 -0
- package/components/list/list__item.d.ts +8 -0
- package/components/list/list__item.js +130 -0
- package/components/list/list__link.d.ts +9 -0
- package/components/list/list__link.js +43 -0
- package/components/list/list__separator.d.ts +5 -0
- package/components/list/list__separator.js +21 -0
- package/components/list/list__title.d.ts +5 -0
- package/components/list/list__title.js +28 -0
- package/components/list/list__users-groups-source.d.ts +27 -0
- package/components/list/list__users-groups-source.js +74 -0
- package/components/loader/loader.css +27 -0
- package/components/loader/loader.d.ts +28 -0
- package/components/loader/loader.js +44 -0
- package/components/loader/loader__core.d.ts +75 -0
- package/components/loader/loader__core.js +219 -0
- package/components/loader-inline/loader-inline.css +73 -0
- package/components/loader-inline/loader-inline.d.ts +18 -0
- package/components/loader-inline/loader-inline.js +27 -0
- package/components/loader-screen/loader-screen.css +29 -0
- package/components/loader-screen/loader-screen.d.ts +17 -0
- package/components/loader-screen/loader-screen.js +25 -0
- package/components/login-dialog/login-dialog.css +23 -0
- package/components/login-dialog/login-dialog.d.ts +47 -0
- package/components/login-dialog/login-dialog.js +84 -0
- package/components/login-dialog/service.d.ts +2 -0
- package/components/login-dialog/service.js +24 -0
- package/components/markdown/markdown.css +126 -0
- package/components/markdown/markdown.d.ts +12 -0
- package/components/markdown/markdown.js +25 -0
- package/components/message/message.css +61 -0
- package/components/message/message.d.ts +55 -0
- package/components/message/message.js +129 -0
- package/components/old-browsers-message/old-browsers-message.css +26 -0
- package/components/old-browsers-message/old-browsers-message.d.ts +2 -0
- package/components/old-browsers-message/old-browsers-message.js +83 -0
- package/components/old-browsers-message/old-browsers-message__stop.d.ts +1 -0
- package/components/old-browsers-message/old-browsers-message__stop.js +2 -0
- package/components/old-browsers-message/white-list.d.ts +2 -0
- package/components/old-browsers-message/white-list.js +25 -0
- package/components/pager/pager.css +19 -0
- package/components/pager/pager.d.ts +78 -0
- package/components/pager/pager.js +223 -0
- package/components/palette/palette.css +216 -0
- package/components/panel/panel.css +20 -0
- package/components/panel/panel.d.ts +12 -0
- package/components/panel/panel.js +20 -0
- package/components/permissions/permissions.d.ts +111 -0
- package/components/permissions/permissions.js +177 -0
- package/components/permissions/permissions__cache.d.ts +93 -0
- package/components/permissions/permissions__cache.js +228 -0
- package/components/popup/popup.consts.d.ts +37 -0
- package/components/popup/popup.consts.js +45 -0
- package/components/popup/popup.css +34 -0
- package/components/popup/popup.d.ts +147 -0
- package/components/popup/popup.js +312 -0
- package/components/popup/popup.target.d.ts +7 -0
- package/components/popup/popup.target.js +15 -0
- package/components/popup/position.d.ts +30 -0
- package/components/popup/position.js +202 -0
- package/components/popup-menu/popup-menu.d.ts +80 -0
- package/components/popup-menu/popup-menu.js +41 -0
- package/components/progress-bar/progress-bar.css +82 -0
- package/components/progress-bar/progress-bar.d.ts +64 -0
- package/components/progress-bar/progress-bar.js +76 -0
- package/components/query-assist/query-assist.css +275 -0
- package/components/query-assist/query-assist.d.ts +306 -0
- package/components/query-assist/query-assist.js +847 -0
- package/components/query-assist/query-assist__suggestions.d.ts +29 -0
- package/components/query-assist/query-assist__suggestions.js +60 -0
- package/components/radio/radio.css +122 -0
- package/components/radio/radio.d.ts +18 -0
- package/components/radio/radio.js +27 -0
- package/components/radio/radio__item.d.ts +28 -0
- package/components/radio/radio__item.js +41 -0
- package/components/select/select-popup.css +103 -0
- package/components/select/select.css +235 -0
- package/components/select/select.d.ts +276 -0
- package/components/select/select.js +957 -0
- package/components/select/select__filter.d.ts +19 -0
- package/components/select/select__filter.js +49 -0
- package/components/select/select__popup.d.ts +166 -0
- package/components/select/select__popup.js +408 -0
- package/components/shortcuts/core.d.ts +74 -0
- package/components/shortcuts/core.js +191 -0
- package/components/shortcuts/shortcut-title.d.ts +1 -0
- package/components/shortcuts/shortcut-title.js +50 -0
- package/components/shortcuts/shortcuts-hoc.d.ts +65 -0
- package/components/shortcuts/shortcuts-hoc.js +19 -0
- package/components/shortcuts/shortcuts.d.ts +28 -0
- package/components/shortcuts/shortcuts.js +50 -0
- package/components/sidebar/sidebar.css +157 -0
- package/components/storage/storage.d.ts +18 -0
- package/components/storage/storage.js +22 -0
- package/components/storage/storage__fallback.d.ts +79 -0
- package/components/storage/storage__fallback.js +181 -0
- package/components/storage/storage__local.d.ts +38 -0
- package/components/storage/storage__local.js +119 -0
- package/components/tab-trap/tab-trap.css +6 -0
- package/components/tab-trap/tab-trap.d.ts +43 -0
- package/components/tab-trap/tab-trap.js +125 -0
- package/components/table/cell.d.ts +13 -0
- package/components/table/cell.js +16 -0
- package/components/table/disable-hover-hoc.d.ts +64 -0
- package/components/table/disable-hover-hoc.js +32 -0
- package/components/table/header-cell.d.ts +43 -0
- package/components/table/header-cell.js +56 -0
- package/components/table/header.d.ts +56 -0
- package/components/table/header.js +67 -0
- package/components/table/multitable.d.ts +25 -0
- package/components/table/multitable.js +81 -0
- package/components/table/row-with-focus-sensor.d.ts +18 -0
- package/components/table/row-with-focus-sensor.js +25 -0
- package/components/table/row.d.ts +59 -0
- package/components/table/row.js +154 -0
- package/components/table/selection-adapter.d.ts +5 -0
- package/components/table/selection-adapter.js +10 -0
- package/components/table/selection-shortcuts-hoc.d.ts +17 -0
- package/components/table/selection-shortcuts-hoc.js +146 -0
- package/components/table/selection.d.ts +47 -0
- package/components/table/selection.js +150 -0
- package/components/table/smart-table.d.ts +64 -0
- package/components/table/smart-table.js +40 -0
- package/components/table/table.css +259 -0
- package/components/table/table.d.ts +159 -0
- package/components/table/table.examples2.json +19 -0
- package/components/table/table.js +231 -0
- package/components/table/table.stories.json +45 -0
- package/components/table-legacy/table-legacy.css +346 -0
- package/components/table-legacy/table-legacy__toolbar.css +25 -0
- package/components/tabs/collapsible-more.d.ts +29 -0
- package/components/tabs/collapsible-more.js +97 -0
- package/components/tabs/collapsible-tab.d.ts +16 -0
- package/components/tabs/collapsible-tab.js +34 -0
- package/components/tabs/collapsible-tabs.d.ts +43 -0
- package/components/tabs/collapsible-tabs.js +196 -0
- package/components/tabs/custom-item.d.ts +9 -0
- package/components/tabs/custom-item.js +5 -0
- package/components/tabs/dumb-tabs.d.ts +35 -0
- package/components/tabs/dumb-tabs.js +56 -0
- package/components/tabs/smart-tabs.d.ts +20 -0
- package/components/tabs/smart-tabs.js +25 -0
- package/components/tabs/tab-link.d.ts +18 -0
- package/components/tabs/tab-link.js +24 -0
- package/components/tabs/tab.d.ts +27 -0
- package/components/tabs/tab.js +19 -0
- package/components/tabs/tabs.css +223 -0
- package/components/tabs/tabs.d.ts +7 -0
- package/components/tabs/tabs.js +7 -0
- package/components/tag/tag.css +184 -0
- package/components/tag/tag.d.ts +64 -0
- package/components/tag/tag.js +130 -0
- package/components/tags-input/tags-input.css +100 -0
- package/components/tags-input/tags-input.d.ts +138 -0
- package/components/tags-input/tags-input.js +275 -0
- package/components/tags-list/tags-list.d.ts +46 -0
- package/components/tags-list/tags-list.js +45 -0
- package/components/text/text.css +21 -0
- package/components/text/text.d.ts +23 -0
- package/components/text/text.js +31 -0
- package/components/toggle/toggle.css +198 -0
- package/components/toggle/toggle.d.ts +39 -0
- package/components/toggle/toggle.js +46 -0
- package/components/tooltip/tooltip.css +17 -0
- package/components/tooltip/tooltip.d.ts +65 -0
- package/components/tooltip/tooltip.js +126 -0
- package/components/user-agreement/service.d.ts +69 -0
- package/components/user-agreement/service.js +242 -0
- package/components/user-agreement/toolbox.eula.d.ts +2 -0
- package/components/user-agreement/toolbox.eula.js +160 -0
- package/components/user-agreement/user-agreement.css +29 -0
- package/components/user-agreement/user-agreement.d.ts +60 -0
- package/components/user-agreement/user-agreement.js +80 -0
- package/components/user-card/card.d.ts +70 -0
- package/components/user-card/card.js +89 -0
- package/components/user-card/smart-user-card-tooltip.d.ts +20 -0
- package/components/user-card/smart-user-card-tooltip.js +47 -0
- package/components/user-card/tooltip.d.ts +36 -0
- package/components/user-card/tooltip.js +43 -0
- package/components/user-card/user-card.css +123 -0
- package/components/user-card/user-card.d.ts +11 -0
- package/components/user-card/user-card.js +11 -0
- package/package.json +61 -61
|
@@ -0,0 +1,602 @@
|
|
|
1
|
+
@import "../global/variables.css";
|
|
2
|
+
@import "../global/global.css";
|
|
3
|
+
|
|
4
|
+
@value cellSize: calc(var(--ring-unit) * 3);
|
|
5
|
+
@value calHeight: calc(var(--ring-unit) * 36);
|
|
6
|
+
@value calWidth: calc(var(--ring-unit) * 37);
|
|
7
|
+
@value yearHeight: calc(var(--ring-unit) * 4);
|
|
8
|
+
@value yearWidth: calc(var(--ring-unit) * 6);
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
/* stylelint-disable-next-line color-no-hex */
|
|
12
|
+
--ring-date-picker-hover-color: #b3dfff;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.container {
|
|
16
|
+
display: inline-block;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.hoverable {
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
transition: color 0.2s ease-out 0s;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.hoverable:hover {
|
|
25
|
+
transition: none;
|
|
26
|
+
|
|
27
|
+
color: var(--ring-link-hover-color);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.datePicker.datePicker {
|
|
31
|
+
padding-right: var(--ring-unit);
|
|
32
|
+
|
|
33
|
+
&.inline {
|
|
34
|
+
padding: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.sizeS {
|
|
38
|
+
width: calc(var(--ring-unit) * 12);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.sizeM {
|
|
42
|
+
width: calc(var(--ring-unit) * 30);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.sizeL {
|
|
46
|
+
width: calc(var(--ring-unit) * 50);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.sizeFULL {
|
|
50
|
+
width: 100%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.sizeAUTO {
|
|
54
|
+
max-width: 100%;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.displayDate {
|
|
59
|
+
display: inline-block;
|
|
60
|
+
|
|
61
|
+
min-width: calc(var(--ring-unit) * 11);
|
|
62
|
+
|
|
63
|
+
text-align: left;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.displayDate.displayRange {
|
|
67
|
+
min-width: calc(var(--ring-unit) * 22);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.clear {
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
transition: opacity var(--ring-ease);
|
|
73
|
+
|
|
74
|
+
opacity: 0.3;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.datePicker:hover .clear {
|
|
78
|
+
opacity: 0.5;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.datePicker .clear:hover {
|
|
82
|
+
transition: none;
|
|
83
|
+
|
|
84
|
+
opacity: 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.datePopup {
|
|
88
|
+
width: min-content;
|
|
89
|
+
|
|
90
|
+
user-select: none;
|
|
91
|
+
text-align: left;
|
|
92
|
+
|
|
93
|
+
color: var(--ring-text-color);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.datePopup * {
|
|
97
|
+
box-sizing: border-box;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.filterWrapper {
|
|
101
|
+
composes: filterWrapper from "../select/select-popup.css";
|
|
102
|
+
|
|
103
|
+
display: flex;
|
|
104
|
+
|
|
105
|
+
padding-left: calc(var(--ring-unit) * 2);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.filter {
|
|
109
|
+
composes: filter from "../select/select-popup.css";
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.calendarIcon {
|
|
113
|
+
margin-right: calc(var(--ring-unit) / 2);
|
|
114
|
+
|
|
115
|
+
color: var(--ring-icon-color);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.anchor {
|
|
119
|
+
width: 100%;
|
|
120
|
+
padding: 0 var(--ring-unit);
|
|
121
|
+
|
|
122
|
+
text-align: start;
|
|
123
|
+
white-space: nowrap;
|
|
124
|
+
|
|
125
|
+
.inline & {
|
|
126
|
+
min-width: initial;
|
|
127
|
+
padding: 0;
|
|
128
|
+
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.anchorContent {
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: baseline;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.chevronDownIcon {
|
|
139
|
+
margin-left: auto;
|
|
140
|
+
|
|
141
|
+
color: var(--ring-icon-secondary-color);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.fromInput {
|
|
145
|
+
position: relative;
|
|
146
|
+
|
|
147
|
+
flex-basis: calc(var(--ring-unit) * 13);
|
|
148
|
+
flex-grow: 0;
|
|
149
|
+
flex-shrink: 0;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.fromInputWithDivider {
|
|
153
|
+
&::after {
|
|
154
|
+
position: absolute;
|
|
155
|
+
top: 0;
|
|
156
|
+
right: var(--ring-unit);
|
|
157
|
+
|
|
158
|
+
content: "—";
|
|
159
|
+
|
|
160
|
+
line-height: calc(4 * var(--ring-unit) - 2px);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.toInput {
|
|
165
|
+
flex-basis: calc(var(--ring-unit) * 13);
|
|
166
|
+
flex-grow: 1;
|
|
167
|
+
flex-shrink: 0;
|
|
168
|
+
|
|
169
|
+
width: calc(var(--ring-unit) * 13);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.dateInput {
|
|
173
|
+
flex-basis: calc(var(--ring-unit) * 11);
|
|
174
|
+
flex-grow: 1;
|
|
175
|
+
flex-shrink: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.timeInputWithDivider {
|
|
179
|
+
position: relative;
|
|
180
|
+
|
|
181
|
+
&::before {
|
|
182
|
+
position: absolute;
|
|
183
|
+
left: calc(-1 * var(--ring-unit));
|
|
184
|
+
|
|
185
|
+
content: ",";
|
|
186
|
+
|
|
187
|
+
line-height: calc(4 * var(--ring-unit) - 3px);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.weekdays {
|
|
192
|
+
height: calc(var(--ring-unit) * 4);
|
|
193
|
+
padding: 5px calc(var(--ring-unit) * 2) 0;
|
|
194
|
+
|
|
195
|
+
color: var(--ring-secondary-color);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.weekday.weekday {
|
|
199
|
+
display: inline-block;
|
|
200
|
+
|
|
201
|
+
width: cellSize;
|
|
202
|
+
|
|
203
|
+
text-align: center;
|
|
204
|
+
text-transform: capitalize;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.weekend.weekend {
|
|
208
|
+
color: var(--ring-error-color);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.calendar {
|
|
212
|
+
position: relative;
|
|
213
|
+
|
|
214
|
+
overflow: hidden;
|
|
215
|
+
|
|
216
|
+
width: calWidth;
|
|
217
|
+
height: calHeight;
|
|
218
|
+
|
|
219
|
+
box-shadow: 0 -1px var(--ring-line-color);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.months.months {
|
|
223
|
+
position: absolute;
|
|
224
|
+
top: 0;
|
|
225
|
+
right: yearWidth;
|
|
226
|
+
bottom: 0;
|
|
227
|
+
left: 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.days {
|
|
231
|
+
position: relative;
|
|
232
|
+
left: 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.month.month {
|
|
236
|
+
display: flex;
|
|
237
|
+
flex-wrap: wrap;
|
|
238
|
+
|
|
239
|
+
width: calc(var(--ring-unit) * 21);
|
|
240
|
+
margin: calc(var(--ring-unit) * 2);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.month.month > * {
|
|
244
|
+
flex-shrink: 0;
|
|
245
|
+
|
|
246
|
+
height: cellSize;
|
|
247
|
+
|
|
248
|
+
line-height: cellSize;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.monthTitle {
|
|
252
|
+
/* IE workaround, see https://github.com/philipwalton/flexbugs#7-flex-basis-doesnt-account-for-box-sizingborder-box */
|
|
253
|
+
|
|
254
|
+
width: calc(var(--ring-unit) * 12);
|
|
255
|
+
|
|
256
|
+
padding-left: calc(var(--ring-unit) * 0.5);
|
|
257
|
+
|
|
258
|
+
text-align: left;
|
|
259
|
+
|
|
260
|
+
text-transform: capitalize;
|
|
261
|
+
|
|
262
|
+
font-weight: bold;
|
|
263
|
+
|
|
264
|
+
@supports (flex-basis: 1px) {
|
|
265
|
+
flex-basis: calc(var(--ring-unit) * 12);
|
|
266
|
+
|
|
267
|
+
width: auto;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.day {
|
|
272
|
+
composes: resetButton from "../global/global.css";
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.day.day {
|
|
276
|
+
position: relative;
|
|
277
|
+
|
|
278
|
+
flex-basis: cellSize;
|
|
279
|
+
|
|
280
|
+
margin: 0;
|
|
281
|
+
|
|
282
|
+
cursor: pointer;
|
|
283
|
+
transition: background-color var(--ring-ease), color var(--ring-ease);
|
|
284
|
+
text-align: center;
|
|
285
|
+
|
|
286
|
+
&::before,
|
|
287
|
+
&::after {
|
|
288
|
+
pointer-events: none;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.between.between {
|
|
293
|
+
transition: none;
|
|
294
|
+
|
|
295
|
+
background-color: var(--ring-selected-background-color);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.activeBetween.activeBetween {
|
|
299
|
+
transition: none;
|
|
300
|
+
|
|
301
|
+
background-color: var(--ring-date-picker-hover-color);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.current.current {
|
|
305
|
+
color: var(--ring-white-text-color);
|
|
306
|
+
border-radius: var(--ring-border-radius);
|
|
307
|
+
background-color: var(--ring-main-color);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.active.active {
|
|
311
|
+
transition: none;
|
|
312
|
+
|
|
313
|
+
color: var(--ring-link-hover-color);
|
|
314
|
+
border-radius: var(--ring-border-radius);
|
|
315
|
+
background-color: var(--ring-date-picker-hover-color);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.disabled.disabled {
|
|
319
|
+
cursor: not-allowed;
|
|
320
|
+
|
|
321
|
+
color: var(--ring-disabled-color);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.from.from {
|
|
325
|
+
border-radius: var(--ring-border-radius) 0 0 var(--ring-border-radius);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.to.to {
|
|
329
|
+
border-radius: 0 var(--ring-border-radius) var(--ring-border-radius) 0;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.from.to {
|
|
333
|
+
border-radius: var(--ring-border-radius);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.Monday {
|
|
337
|
+
position: relative;
|
|
338
|
+
|
|
339
|
+
&::before,
|
|
340
|
+
&::after {
|
|
341
|
+
position: absolute;
|
|
342
|
+
|
|
343
|
+
width: calc(var(--ring-unit) * 2);
|
|
344
|
+
height: 100%;
|
|
345
|
+
|
|
346
|
+
content: "";
|
|
347
|
+
transition: background-color var(--ring-ease);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
&::before {
|
|
351
|
+
right: 100%;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
&::after {
|
|
355
|
+
bottom: 100%;
|
|
356
|
+
left: 700%;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
&.spread {
|
|
360
|
+
&::before,
|
|
361
|
+
&::after {
|
|
362
|
+
transition: none;
|
|
363
|
+
|
|
364
|
+
background-color: var(--ring-selected-background-color);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
&.activeSpread {
|
|
369
|
+
&::before,
|
|
370
|
+
&::after {
|
|
371
|
+
transition: none;
|
|
372
|
+
|
|
373
|
+
background-color: var(--ring-date-picker-hover-color);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.first {
|
|
379
|
+
position: relative;
|
|
380
|
+
|
|
381
|
+
&::before,
|
|
382
|
+
&::after {
|
|
383
|
+
position: absolute;
|
|
384
|
+
z-index: var(--ring-invisible-element-z-index);
|
|
385
|
+
|
|
386
|
+
width: calc(var(--ring-unit) * 23);
|
|
387
|
+
height: calc(var(--ring-unit) * 8);
|
|
388
|
+
|
|
389
|
+
content: "";
|
|
390
|
+
transition: background-color var(--ring-ease);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
&::before {
|
|
394
|
+
right: 100%;
|
|
395
|
+
bottom: 0;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
&::after {
|
|
399
|
+
bottom: 100%;
|
|
400
|
+
left: 0;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
&.Monday {
|
|
404
|
+
&::after {
|
|
405
|
+
height: calc(var(--ring-unit) * 5);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
& + .Tuesday {
|
|
410
|
+
position: relative;
|
|
411
|
+
|
|
412
|
+
&::before {
|
|
413
|
+
position: absolute;
|
|
414
|
+
z-index: var(--ring-invisible-element-z-index);
|
|
415
|
+
top: calc(var(--ring-unit) * -8);
|
|
416
|
+
left: 600%;
|
|
417
|
+
|
|
418
|
+
width: calc(var(--ring-unit) * 2);
|
|
419
|
+
height: 100%;
|
|
420
|
+
|
|
421
|
+
content: "";
|
|
422
|
+
transition: background-color var(--ring-ease);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.Friday,
|
|
428
|
+
.Saturday,
|
|
429
|
+
.Sunday {
|
|
430
|
+
&::before,
|
|
431
|
+
&::after {
|
|
432
|
+
height: calc(var(--ring-unit) * 5);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.spread {
|
|
437
|
+
&::before,
|
|
438
|
+
&::after,
|
|
439
|
+
& + .Tuesday::before {
|
|
440
|
+
transition: none;
|
|
441
|
+
|
|
442
|
+
background-color: var(--ring-selected-background-color);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.activeSpread {
|
|
447
|
+
&::before,
|
|
448
|
+
&::after,
|
|
449
|
+
& + .Tuesday::before {
|
|
450
|
+
transition: none;
|
|
451
|
+
|
|
452
|
+
background-color: var(--ring-date-picker-hover-color);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.empty.empty {
|
|
457
|
+
pointer-events: none;
|
|
458
|
+
|
|
459
|
+
opacity: 0;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.today.today {
|
|
463
|
+
position: relative;
|
|
464
|
+
|
|
465
|
+
font-weight: bold;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.today::before {
|
|
469
|
+
position: absolute;
|
|
470
|
+
top: 0;
|
|
471
|
+
left: calc(var(--ring-unit) * 0.5);
|
|
472
|
+
|
|
473
|
+
content: "•";
|
|
474
|
+
|
|
475
|
+
font-size: var(--ring-font-size-smaller);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.day > .today::before {
|
|
479
|
+
top: 4px;
|
|
480
|
+
left: 0;
|
|
481
|
+
|
|
482
|
+
width: 100%;
|
|
483
|
+
|
|
484
|
+
text-align: center;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.year.today::before {
|
|
488
|
+
top: -1px;
|
|
489
|
+
left: 2px;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.monthNames {
|
|
493
|
+
position: absolute;
|
|
494
|
+
top: 0;
|
|
495
|
+
right: 0;
|
|
496
|
+
bottom: 0;
|
|
497
|
+
|
|
498
|
+
width: calc(var(--ring-unit) * 6);
|
|
499
|
+
|
|
500
|
+
background-color: var(--ring-content-background-color);
|
|
501
|
+
box-shadow: -1px 0 var(--ring-line-color);
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.monthName {
|
|
505
|
+
composes: hoverable;
|
|
506
|
+
composes: resetButton from "../global/global.css";
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.monthName.monthName {
|
|
510
|
+
position: relative;
|
|
511
|
+
|
|
512
|
+
width: 100%;
|
|
513
|
+
|
|
514
|
+
height: cellSize;
|
|
515
|
+
padding-left: calc(var(--ring-unit) * 1.5);
|
|
516
|
+
|
|
517
|
+
text-transform: capitalize;
|
|
518
|
+
|
|
519
|
+
line-height: cellSize;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.monthSlider {
|
|
523
|
+
composes: resetButton from "../global/global.css";
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.monthSlider.monthSlider {
|
|
527
|
+
position: absolute;
|
|
528
|
+
z-index: var(--ring-fixed-z-index);
|
|
529
|
+
right: 0;
|
|
530
|
+
left: -1px;
|
|
531
|
+
|
|
532
|
+
width: calc(100% + 1px);
|
|
533
|
+
|
|
534
|
+
height: calc(var(--ring-unit) * 6);
|
|
535
|
+
|
|
536
|
+
cursor: grab;
|
|
537
|
+
|
|
538
|
+
opacity: 0.17;
|
|
539
|
+
background-color: var(--ring-main-color);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.monthSlider:hover {
|
|
543
|
+
opacity: 0.3;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.dragging {
|
|
547
|
+
cursor: grabbing;
|
|
548
|
+
|
|
549
|
+
opacity: 0.35;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.range {
|
|
553
|
+
position: absolute;
|
|
554
|
+
left: 0;
|
|
555
|
+
|
|
556
|
+
width: 2px;
|
|
557
|
+
|
|
558
|
+
background-color: var(--ring-main-color);
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.years {
|
|
562
|
+
position: absolute;
|
|
563
|
+
top: 0;
|
|
564
|
+
right: 0;
|
|
565
|
+
|
|
566
|
+
width: yearWidth;
|
|
567
|
+
|
|
568
|
+
background-color: var(--ring-content-background-color);
|
|
569
|
+
box-shadow: -1px 0 var(--ring-line-color);
|
|
570
|
+
|
|
571
|
+
font-size: var(--ring-font-size-smaller);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.year {
|
|
575
|
+
composes: hoverable;
|
|
576
|
+
composes: resetButton from "../global/global.css";
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.year.year {
|
|
580
|
+
position: relative;
|
|
581
|
+
|
|
582
|
+
width: 100%;
|
|
583
|
+
|
|
584
|
+
height: yearHeight;
|
|
585
|
+
|
|
586
|
+
text-align: center;
|
|
587
|
+
|
|
588
|
+
color: var(--ring-secondary-color);
|
|
589
|
+
|
|
590
|
+
line-height: yearHeight;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.currentYear.currentYear {
|
|
594
|
+
cursor: auto;
|
|
595
|
+
transition: none;
|
|
596
|
+
|
|
597
|
+
color: var(--ring-text-color);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.currentYear:hover {
|
|
601
|
+
color: var(--ring-text-color);
|
|
602
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import type { Locale } from 'date-fns';
|
|
4
|
+
import Popup from '../popup/popup';
|
|
5
|
+
import { DropdownAttrs } from '../dropdown/dropdown';
|
|
6
|
+
import { Size } from '../input/input';
|
|
7
|
+
import { DatePopupProps } from './date-popup';
|
|
8
|
+
import { DateInputTranslations, DatePickerChange } from './consts';
|
|
9
|
+
export interface DatePickerTranslations extends Partial<DateInputTranslations> {
|
|
10
|
+
setDate: string;
|
|
11
|
+
setDateTime: string;
|
|
12
|
+
setPeriod: string;
|
|
13
|
+
}
|
|
14
|
+
export type DatePickerProps = Omit<DatePopupProps, 'translations' | 'parseDateInput' | 'onComplete' | 'hidden'> & {
|
|
15
|
+
className: string;
|
|
16
|
+
clear: boolean;
|
|
17
|
+
inline: boolean;
|
|
18
|
+
popupClassName?: string | null | undefined;
|
|
19
|
+
dropdownProps?: DropdownAttrs;
|
|
20
|
+
translations?: DatePickerTranslations | null | undefined;
|
|
21
|
+
displayMonthFormat: (date: Date, locale: Locale | undefined) => string;
|
|
22
|
+
displayDayFormat: (date: Date, locale: Locale | undefined) => string;
|
|
23
|
+
displayTimeFormat: (date: Date, locale: Locale | undefined) => string;
|
|
24
|
+
applyTimeInput: (date: Date, time: string | null | undefined) => Date;
|
|
25
|
+
datePlaceholder?: string;
|
|
26
|
+
dateTimePlaceholder?: string;
|
|
27
|
+
rangePlaceholder?: string;
|
|
28
|
+
disabled?: boolean | null | undefined;
|
|
29
|
+
parseDateInput: (input: string | null | undefined) => Date | null;
|
|
30
|
+
size?: Size;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @name Date Picker
|
|
34
|
+
*/
|
|
35
|
+
export default class DatePicker extends PureComponent<DatePickerProps> {
|
|
36
|
+
static propTypes: {
|
|
37
|
+
className: PropTypes.Requireable<string>;
|
|
38
|
+
popupClassName: PropTypes.Requireable<string>;
|
|
39
|
+
date: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
40
|
+
withTime: PropTypes.Requireable<boolean>;
|
|
41
|
+
range: PropTypes.Requireable<boolean>;
|
|
42
|
+
from: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
43
|
+
to: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
44
|
+
clear: PropTypes.Requireable<boolean>;
|
|
45
|
+
inline: PropTypes.Requireable<boolean>;
|
|
46
|
+
displayFormat: PropTypes.Requireable<(...args: any[]) => any>;
|
|
47
|
+
displayMonthFormat: PropTypes.Requireable<(...args: any[]) => any>;
|
|
48
|
+
displayDayFormat: PropTypes.Requireable<(...args: any[]) => any>;
|
|
49
|
+
displayTimeFormat: PropTypes.Requireable<(...args: any[]) => any>;
|
|
50
|
+
parseDateInput: PropTypes.Requireable<(...args: any[]) => any>;
|
|
51
|
+
applyTimeInput: PropTypes.Requireable<(...args: any[]) => any>;
|
|
52
|
+
datePlaceholder: PropTypes.Requireable<string>;
|
|
53
|
+
dateTimePlaceholder: PropTypes.Requireable<string>;
|
|
54
|
+
rangePlaceholder: PropTypes.Requireable<string>;
|
|
55
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
56
|
+
dropdownProps: PropTypes.Requireable<object>;
|
|
57
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
58
|
+
minDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
59
|
+
maxDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
60
|
+
translations: PropTypes.Requireable<object>;
|
|
61
|
+
locale: PropTypes.Requireable<object>;
|
|
62
|
+
size: PropTypes.Requireable<Size>;
|
|
63
|
+
};
|
|
64
|
+
static defaultProps: DatePickerProps;
|
|
65
|
+
static contextType: React.Context<import("../i18n/i18n-context").I18nContextProps>;
|
|
66
|
+
context: React.ContextType<typeof DatePicker.contextType>;
|
|
67
|
+
handleChange: (change: DatePickerChange | Date | null | undefined) => void;
|
|
68
|
+
clear: () => void;
|
|
69
|
+
popup?: Popup | null;
|
|
70
|
+
popupRef: (el: Popup | null) => void;
|
|
71
|
+
closePopup: () => void;
|
|
72
|
+
parse: (arg: string | number | Date | null | undefined) => Date | null;
|
|
73
|
+
formatTime(): string | null;
|
|
74
|
+
getAnchorText: () => string;
|
|
75
|
+
render(): React.JSX.Element;
|
|
76
|
+
}
|
|
77
|
+
export type DatePickerAttrs = JSX.LibraryManagedAttributes<typeof DatePicker, DatePickerProps>;
|