@jetbrains/ring-ui 7.0.62 → 7.0.63
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/components/alert/alert.css +1 -1
- package/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +3 -3
- package/components/alert/container.css +2 -2
- package/components/alert/container.d.ts +1 -1
- package/components/alert/container.js +1 -1
- package/components/alert-service/alert-service.d.ts +2 -2
- package/components/analytics/{analytics__custom-plugin.d.ts → analytics-custom-plugin.d.ts} +1 -1
- package/components/analytics/{analytics__custom-plugin.js → analytics-custom-plugin.js} +2 -2
- package/components/auth/{auth__core.d.ts → auth-core.d.ts} +9 -8
- package/components/auth/{auth__core.js → auth-core.js} +14 -18
- package/components/auth/auth.d.ts +2 -2
- package/components/auth/auth.js +2 -2
- package/components/auth/background-flow.d.ts +2 -2
- package/components/auth/background-flow.js +0 -1
- package/components/auth/down-notification.css +1 -1
- package/components/auth/down-notification.js +1 -1
- package/components/auth/iframe-flow.d.ts +3 -3
- package/components/auth/iframe-flow.js +3 -5
- package/components/auth/request-builder.d.ts +2 -1
- package/components/auth/request-builder.js +1 -2
- package/components/auth/storage.d.ts +3 -3
- package/components/auth/storage.js +4 -8
- package/components/auth/token-validator.d.ts +2 -1
- package/components/auth/token-validator.js +6 -1
- package/components/auth/window-flow.d.ts +3 -3
- package/components/auth/window-flow.js +7 -7
- package/components/auth-dialog/auth-dialog.css +2 -2
- package/components/auth-dialog/auth-dialog.js +1 -1
- package/components/auth-dialog-service/auth-dialog-service.d.ts +1 -1
- package/components/avatar/avatar-info.d.ts +1 -1
- package/components/avatar/avatar.css +1 -1
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.figma.js +1 -1
- package/components/avatar/avatar.js +5 -7
- package/components/avatar/fallback-avatar.js +4 -8
- package/components/avatar-stack/avatar-stack.css +1 -1
- package/components/avatar-stack/avatar-stack.d.ts +3 -3
- package/components/avatar-stack/avatar-stack.figma.js +1 -1
- package/components/avatar-stack/avatar-stack.js +1 -1
- package/components/banner/banner.css +2 -2
- package/components/banner/banner.js +1 -1
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.figma.js +1 -1
- package/components/button/{button__classes.d.ts → button.classes.d.ts} +1 -1
- package/components/button/button.css +19 -16
- package/components/button/button.d.ts +4 -4
- package/components/button/button.figma.js +1 -1
- package/components/button/button.js +6 -6
- package/components/button-group/button-group.css +6 -6
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +1 -1
- package/components/button-group/caption.d.ts +1 -1
- package/components/button-set/button-set.css +2 -2
- package/components/button-set/button-set.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.css +2 -2
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/caret/caret.js +23 -18
- package/components/checkbox/checkbox-group.figma.js +1 -1
- package/components/checkbox/checkbox.css +1 -1
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.figma.js +1 -1
- package/components/checkbox/checkbox.js +5 -5
- package/components/clipboard/clipboard.js +2 -2
- package/components/code/code.css +1 -1
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +5 -3
- package/components/collapse/collapse-content.d.ts +3 -3
- package/components/collapse/collapse-control.d.ts +2 -2
- package/components/collapse/collapse.css +1 -1
- package/components/collapse/collapse.d.ts +3 -3
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +1 -1
- package/components/confirm-service/confirm-service.d.ts +3 -3
- package/components/content-layout/content-layout.css +2 -2
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +2 -2
- package/components/content-layout/sidebar.d.ts +1 -1
- package/components/contenteditable/contenteditable.d.ts +1 -1
- package/components/contenteditable/contenteditable.js +2 -1
- package/components/control-help/control-help.css +1 -1
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-label/control-label.d.ts +1 -1
- package/components/data-list/data-list.css +1 -1
- package/components/data-list/data-list.d.ts +5 -5
- package/components/data-list/data-list.js +2 -2
- package/components/data-list/data-list.mock.d.ts +2 -2
- package/components/data-list/data-list.mock.js +20 -20
- package/components/data-list/item.d.ts +3 -3
- package/components/data-list/item.js +2 -2
- package/components/data-list/selection.d.ts +1 -1
- package/components/data-list/selection.js +8 -1
- package/components/data-list/title.d.ts +2 -2
- package/components/date-picker/consts.d.ts +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +2 -2
- package/components/date-picker/date-picker.css +15 -15
- package/components/date-picker/date-picker.d.ts +5 -5
- package/components/date-picker/date-picker.js +17 -19
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +5 -3
- package/components/date-picker/day.d.ts +2 -2
- package/components/date-picker/day.js +4 -5
- package/components/date-picker/formats.js +1 -0
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +1 -1
- package/components/date-picker/month-slider.d.ts +2 -2
- package/components/date-picker/month-slider.js +1 -1
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +2 -2
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +2 -2
- package/components/dialog/{dialog__body-scroll-preventer.js → dialog-body-scroll-preventer.js} +6 -2
- package/components/dialog/dialog.css +5 -5
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +7 -7
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/dropdown.css +1 -1
- package/components/dropdown/dropdown.d.ts +2 -2
- package/components/dropdown/dropdown.js +2 -2
- package/components/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/components/dropdown-menu/dropdown-menu.js +1 -1
- package/components/editable-heading/editable-heading.css +6 -8
- package/components/editable-heading/editable-heading.d.ts +1 -1
- package/components/editable-heading/editable-heading.js +3 -2
- package/components/error-bubble/error-bubble-legacy.css +3 -3
- package/components/error-bubble/error-bubble.css +5 -5
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.figma.js +1 -1
- package/components/error-bubble/error-bubble.js +2 -2
- package/components/error-message/error-message.css +1 -1
- package/components/error-message/error-message.d.ts +2 -2
- package/components/error-message/error-message.js +2 -2
- package/components/error-page/error-page.css +3 -3
- package/components/footer/footer.css +2 -2
- package/components/footer/footer.d.ts +1 -1
- package/components/footer/footer.js +1 -1
- package/components/form/form.css +3 -3
- package/components/global/compose-refs.d.ts +2 -0
- package/components/global/compose-refs.js +14 -0
- package/components/global/composeRefs.d.ts +6 -2
- package/components/global/composeRefs.js +7 -14
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/dom.d.ts +1 -1
- package/components/global/dom.js +2 -4
- package/components/global/focus-sensor-hoc.d.ts +1 -1
- package/components/global/focus-sensor-hoc.js +2 -2
- package/components/global/fuzzy-highlight.d.ts +2 -2
- package/components/global/get-event-key.d.ts +1 -1
- package/components/global/global.css +2 -2
- package/components/global/memoize.js +1 -1
- package/components/global/rerender-hoc.d.ts +1 -1
- package/components/global/rerender-hoc.js +2 -2
- package/components/global/theme.d.ts +1 -1
- package/components/global/theme.js +2 -2
- package/components/global/url.js +3 -3
- package/components/global/use-event-callback.js +1 -1
- package/components/global/variables.css +1 -1
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +1 -1
- package/components/grid/grid.css +4 -4
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +1 -1
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +1 -1
- package/components/group/group.css +1 -1
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +1 -1
- package/components/header/header-icon.d.ts +2 -2
- package/components/header/header.css +4 -4
- package/components/header/header.d.ts +1 -1
- package/components/header/links.d.ts +1 -1
- package/components/header/logo.d.ts +1 -1
- package/components/header/profile.d.ts +5 -5
- package/components/header/profile.js +3 -3
- package/components/header/services-link.d.ts +1 -1
- package/components/header/services-link.js +3 -3
- package/components/header/services.css +1 -1
- package/components/header/services.d.ts +2 -2
- package/components/header/services.js +3 -3
- package/components/header/smart-profile.d.ts +3 -3
- package/components/header/smart-profile.js +2 -1
- package/components/header/smart-services.d.ts +3 -3
- package/components/header/tray.d.ts +1 -1
- package/components/heading/heading.css +2 -2
- package/components/heading/heading.d.ts +1 -1
- package/components/http/http.mock.d.ts +1 -1
- package/components/hub-source/{hub-source__user.d.ts → hub-source-user.d.ts} +3 -2
- package/components/hub-source/{hub-source__users-groups.d.ts → hub-source-users-groups.d.ts} +3 -2
- package/components/hub-source/hub-source.d.ts +2 -2
- package/components/icon/{icon__svg.d.ts → icon-svg.d.ts} +1 -1
- package/components/icon/icon.css +5 -5
- package/components/icon/icon.d.ts +2 -2
- package/components/icon/icon.js +3 -3
- package/components/input/input-legacy.css +2 -2
- package/components/input/input.css +5 -5
- package/components/input/input.d.ts +3 -3
- package/components/input/input.figma.js +1 -1
- package/components/input/input.js +8 -8
- package/components/input-size/input-size.css +1 -1
- package/components/island/adaptive-island-hoc.d.ts +1 -1
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +2 -2
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +4 -4
- package/components/island/island.css +3 -3
- package/components/island/island.d.ts +1 -1
- package/components/line/line.css +1 -1
- package/components/link/clickable-link.d.ts +12 -0
- package/components/link/clickable-link.js +25 -0
- package/components/link/clickableLink.d.ts +11 -12
- package/components/link/clickableLink.js +4 -25
- package/components/link/link.css +1 -1
- package/components/link/link.d.ts +2 -2
- package/components/link/link.js +4 -4
- package/components/list/consts.d.ts +4 -5
- package/components/list/{list__custom.d.ts → list-custom.d.ts} +1 -1
- package/components/list/{list__custom.js → list-custom.js} +1 -1
- package/components/list/{list__hint.d.ts → list-hint.d.ts} +1 -1
- package/components/list/{list__hint.js → list-hint.js} +1 -1
- package/components/list/{list__item.d.ts → list-item.d.ts} +2 -2
- package/components/list/{list__item.js → list-item.js} +6 -5
- package/components/list/{list__separator.d.ts → list-separator.d.ts} +1 -1
- package/components/list/{list__separator.js → list-separator.js} +1 -1
- package/components/list/{list__title.d.ts → list-title.d.ts} +1 -1
- package/components/list/{list__title.js → list-title.js} +1 -1
- package/components/list/{list__users-groups-source.d.ts → list-users-groups-source.d.ts} +3 -2
- package/components/list/{list__users-groups-source.js → list-users-groups-source.js} +1 -1
- package/components/list/{list__classes.d.ts → list.classes.d.ts} +1 -1
- package/components/list/list.css +5 -5
- package/components/list/list.d.ts +7 -7
- package/components/list/list.js +34 -28
- package/components/loader/{loader__core.js → loader-core.js} +2 -2
- package/components/loader/loader.css +1 -1
- package/components/loader/loader.d.ts +2 -2
- package/components/loader/loader.js +1 -1
- package/components/loader-inline/loader-inline.css +2 -2
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-screen/loader-screen.css +2 -2
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/login-dialog/login-dialog.css +2 -2
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +1 -1
- package/components/login-dialog/service.d.ts +1 -1
- package/components/markdown/markdown.css +3 -3
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +1 -1
- package/components/message/message.css +3 -3
- package/components/message/message.d.ts +4 -4
- package/components/message/message.js +3 -3
- package/components/old-browsers-message/old-browsers-message.css +2 -2
- package/components/old-browsers-message/old-browsers-message.js +1 -1
- package/components/pager/pager.css +1 -1
- package/components/pager/pager.d.ts +2 -2
- package/components/pager/pager.js +11 -12
- package/components/panel/panel.css +1 -1
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +1 -1
- package/components/permissions/{permissions__cache.js → permissions-cache.js} +4 -5
- package/components/permissions/permissions.d.ts +2 -2
- package/components/permissions/permissions.js +2 -4
- package/components/popup/popup.css +3 -3
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +6 -5
- package/components/popup/popup.target.d.ts +1 -1
- package/components/popup/position-css.js +6 -10
- package/components/popup/position.js +10 -10
- package/components/popup-menu/popup-menu.d.ts +4 -4
- package/components/progress-bar/progress-bar.css +6 -8
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +1 -1
- package/components/query-assist/{query-assist__suggestions.d.ts → query-assist-suggestions.d.ts} +1 -1
- package/components/query-assist/query-assist.css +11 -11
- package/components/query-assist/query-assist.d.ts +4 -4
- package/components/query-assist/query-assist.js +11 -11
- package/components/radio/{radio__item.d.ts → radio-item.d.ts} +1 -1
- package/components/radio/{radio__item.js → radio-item.js} +2 -2
- package/components/radio/radio.css +2 -2
- package/components/radio/radio.d.ts +2 -2
- package/components/radio/radio.js +1 -1
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +1 -1
- package/components/select/{select__filter.d.ts → select-filter.d.ts} +2 -2
- package/components/select/{select__filter.js → select-filter.js} +1 -1
- package/components/select/select-popup.css +5 -5
- package/components/select/{select__popup.d.ts → select-popup.d.ts} +8 -8
- package/components/select/{select__popup.js → select-popup.js} +11 -7
- package/components/select/select.css +10 -9
- package/components/select/select.d.ts +6 -6
- package/components/select/select.js +27 -25
- package/components/shortcuts/core.js +7 -7
- package/components/shortcuts/shortcuts-hoc.d.ts +2 -2
- package/components/shortcuts/shortcuts.d.ts +1 -1
- package/components/sidebar/sidebar.css +1 -1
- package/components/slider/slider.css +2 -2
- package/components/slider/slider.d.ts +5 -5
- package/components/slider/slider.js +5 -5
- package/components/slider/slider.utils.d.ts +1 -1
- package/components/slider/slider.utils.js +2 -4
- package/components/storage/{storage__local.d.ts → storage-local.d.ts} +1 -1
- package/components/storage/{storage__local.js → storage-local.js} +7 -7
- package/components/storage/storage.d.ts +1 -1
- package/components/storage/storage.js +1 -1
- package/components/tab-trap/tab-trap.css +1 -1
- package/components/tab-trap/tab-trap.d.ts +1 -1
- package/components/tab-trap/tab-trap.js +2 -5
- package/components/table/cell.d.ts +1 -1
- package/components/table/disable-hover-hoc.d.ts +1 -1
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +1 -1
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +2 -2
- package/components/table/multitable.d.ts +3 -3
- package/components/table/multitable.js +1 -1
- package/components/table/row-with-focus-sensor.d.ts +3 -3
- package/components/table/row.d.ts +4 -4
- package/components/table/row.js +1 -1
- package/components/table/selection-adapter.d.ts +2 -1
- package/components/table/selection-shortcuts-hoc.d.ts +4 -3
- package/components/table/selection-shortcuts-hoc.js +1 -3
- package/components/table/selection.js +4 -8
- package/components/table/simple-table.d.ts +2 -2
- package/components/table/smart-table.d.ts +2 -2
- package/components/table/table.css +6 -6
- package/components/table/table.d.ts +7 -7
- package/components/table/table.js +3 -3
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +2 -2
- package/components/tabs/collapsible-tab.d.ts +2 -2
- package/components/tabs/collapsible-tab.js +1 -1
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +6 -8
- package/components/tabs/custom-item.d.ts +2 -2
- package/components/tabs/dumb-tabs.d.ts +3 -3
- package/components/tabs/dumb-tabs.js +3 -3
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/tab-link.d.ts +2 -2
- package/components/tabs/tab.d.ts +2 -2
- package/components/tabs/tabs.css +6 -6
- package/components/tag/tag.css +5 -5
- package/components/tag/tag.d.ts +2 -2
- package/components/tag/tag.js +2 -2
- package/components/tags-input/tags-input.css +3 -3
- package/components/tags-input/tags-input.d.ts +8 -8
- package/components/tags-input/tags-input.js +13 -7
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +1 -1
- package/components/text/text.css +1 -1
- package/components/text/text.d.ts +1 -1
- package/components/toggle/toggle.css +2 -2
- package/components/toggle/toggle.d.ts +1 -1
- package/components/toggle/toggle.js +1 -1
- package/components/tooltip/tooltip.css +1 -1
- package/components/tooltip/tooltip.d.ts +2 -2
- package/components/tooltip/tooltip.js +1 -1
- package/components/upload/upload.css +1 -1
- package/components/upload/upload.d.ts +3 -3
- package/components/upload/upload.js +2 -2
- package/components/user-agreement/service.d.ts +2 -2
- package/components/user-agreement/service.js +3 -5
- package/components/user-agreement/user-agreement.css +2 -2
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +1 -1
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +3 -2
- package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
- package/components/user-card/smart-user-card-tooltip.js +1 -1
- package/components/user-card/tooltip.d.ts +3 -3
- package/components/user-card/user-card.css +1 -1
- package/package.json +4 -1
- /package/components/button/{button__classes.js → button.classes.js} +0 -0
- /package/components/dialog/{dialog__body-scroll-preventer.d.ts → dialog-body-scroll-preventer.d.ts} +0 -0
- /package/components/global/{variables.d.ts → variables.interface.d.ts} +0 -0
- /package/components/global/{variables.js → variables.interface.js} +0 -0
- /package/components/hub-source/{hub-source__user.js → hub-source-user.js} +0 -0
- /package/components/hub-source/{hub-source__users-groups.js → hub-source-users-groups.js} +0 -0
- /package/components/icon/{icon__svg.js → icon-svg.js} +0 -0
- /package/components/icon/{icon__constants.d.ts → icon.constants.d.ts} +0 -0
- /package/components/icon/{icon__constants.js → icon.constants.js} +0 -0
- /package/components/list/{list__classes.js → list.classes.js} +0 -0
- /package/components/loader/{loader__core.d.ts → loader-core.d.ts} +0 -0
- /package/components/old-browsers-message/{old-browsers-message__stop.d.ts → old-browsers-message-stop.d.ts} +0 -0
- /package/components/old-browsers-message/{old-browsers-message__stop.js → old-browsers-message-stop.js} +0 -0
- /package/components/permissions/{permissions__cache.d.ts → permissions-cache.d.ts} +0 -0
- /package/components/query-assist/{query-assist__suggestions.js → query-assist-suggestions.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
|
|
3
|
+
interface Props {
|
|
4
4
|
onChange?: (collapsed: boolean) => void;
|
|
5
5
|
duration?: number;
|
|
6
6
|
disableAnimation?: boolean;
|
|
7
7
|
className?: string;
|
|
8
8
|
defaultCollapsed?: boolean;
|
|
9
9
|
collapsed?: boolean | null;
|
|
10
|
-
}
|
|
10
|
+
}
|
|
11
11
|
/**
|
|
12
12
|
* @name Collapse
|
|
13
13
|
*/
|
|
@@ -27,6 +27,6 @@ export default class Confirm extends PureComponent {
|
|
|
27
27
|
};
|
|
28
28
|
render() {
|
|
29
29
|
const { show, className, inProgress, cancelIsDefault, text, description, confirmLabel, rejectLabel, onConfirm, onReject, native, } = this.props;
|
|
30
|
-
return (_jsxs(Dialog, { label: text || (typeof description === 'string' ? description : undefined), className: className, onEscPress: this.onEscPress, show: show, trapFocus: true, "data-test":
|
|
30
|
+
return (_jsxs(Dialog, { label: text || (typeof description === 'string' ? description : undefined), className: className, onEscPress: this.onEscPress, show: show, trapFocus: true, "data-test": 'ring-confirm', native: native, children: [text && _jsx(Header, { children: text }), description && _jsx(Content, { children: description }), _jsxs(Panel, { children: [_jsx(Button, { "data-test": 'confirm-ok-button', primary: !cancelIsDefault, loader: inProgress, disabled: inProgress, onClick: onConfirm, children: confirmLabel }), _jsx(Button, { "data-test": 'confirm-reject-button', onClick: onReject, disabled: inProgress, primary: cancelIsDefault, children: rejectLabel })] })] }));
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ConfirmAttributes } from '../confirm/confirm';
|
|
3
|
-
import { ControlsHeight } from '../global/controls-height';
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type ConfirmAttributes } from '../confirm/confirm';
|
|
3
|
+
import { type ControlsHeight } from '../global/controls-height';
|
|
4
4
|
/**
|
|
5
5
|
* @name Confirm Service
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import '../global/variables.css';
|
|
2
2
|
|
|
3
|
-
@value extra-small-screen-media, small-screen-media from
|
|
3
|
+
@value extra-small-screen-media, small-screen-media from '../global/global.css';
|
|
4
4
|
|
|
5
5
|
.contentLayout {
|
|
6
6
|
--ring-content-layout-sidebar-width: calc(var(--ring-unit) * 30);
|
|
@@ -23,13 +23,13 @@ export default class ContentLayout extends Component {
|
|
|
23
23
|
});
|
|
24
24
|
const contentClasses = classNames(styles.contentLayoutContent, contentClassName);
|
|
25
25
|
const childrenArray = Children.toArray(children);
|
|
26
|
-
const sidebarChild = childrenArray.filter((child) => child
|
|
26
|
+
const sidebarChild = childrenArray.filter((child) => !!child && typeof child === 'object' && 'type' in child && child.type === Sidebar)[0];
|
|
27
27
|
const sidebar = sidebarChild &&
|
|
28
28
|
cloneElement(sidebarChild, {
|
|
29
29
|
contentNode: this.state.contentNode,
|
|
30
30
|
});
|
|
31
31
|
const contentChildren = childrenArray.filter(child => child !== sidebarChild);
|
|
32
|
-
return (_jsxs("div", { "data-test":
|
|
32
|
+
return (_jsxs("div", { "data-test": 'content-layout', ...restProps, className: classes, children: [sidebar, _jsx("main", { className: contentClasses, ref: this.saveContentNode, children: contentChildren })] }));
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
export { default as Sidebar } from './sidebar';
|
|
@@ -13,6 +13,7 @@ class ContentEditableBase extends Component {
|
|
|
13
13
|
onComponentUpdate: noop,
|
|
14
14
|
};
|
|
15
15
|
shouldComponentUpdate(nextProps) {
|
|
16
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
16
17
|
return nextProps.disabled !== this.props.disabled || nextProps.__html !== this.props.__html;
|
|
17
18
|
}
|
|
18
19
|
componentDidUpdate(prevProps) {
|
|
@@ -23,7 +24,7 @@ class ContentEditableBase extends Component {
|
|
|
23
24
|
return (_jsx("div", { ...props, ref: inputRef,
|
|
24
25
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
25
26
|
// @ts-ignore
|
|
26
|
-
disabled: disabled, role:
|
|
27
|
+
disabled: disabled, role: 'textbox', tabIndex: disabled ? undefined : tabIndex, contentEditable: !this.props.disabled, dangerouslySetInnerHTML: { __html } }));
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
const ContentEditable = ({ children, ...props }) => (_jsx(ContentEditableBase, { ...props, __html: renderToStaticMarkup(children) }));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
2
|
type ControlHelpProps = HTMLAttributes<HTMLDivElement>;
|
|
3
3
|
export default function ControlHelp({ className, ...restProps }: ControlHelpProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export {};
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* @name Data List
|
|
3
3
|
*/
|
|
4
4
|
import { Component } from 'react';
|
|
5
|
-
import { FocusSensorOuterProps } from '../global/focus-sensor-hoc';
|
|
6
|
-
import { SelectionShortcutsAddProps, SelectionShortcutsOuterProps } from '../table/selection-shortcuts-hoc';
|
|
7
|
-
import { DisableHoverAddProps } from '../table/disable-hover-hoc';
|
|
8
|
-
import { SelectionItem } from '../table/selection';
|
|
9
|
-
import { FormattedItem, moreLessButtonStates } from './item';
|
|
5
|
+
import { type FocusSensorOuterProps } from '../global/focus-sensor-hoc';
|
|
6
|
+
import { type SelectionShortcutsAddProps, type SelectionShortcutsOuterProps } from '../table/selection-shortcuts-hoc';
|
|
7
|
+
import { type DisableHoverAddProps } from '../table/disable-hover-hoc';
|
|
8
|
+
import { type SelectionItem } from '../table/selection';
|
|
9
|
+
import { type FormattedItem, moreLessButtonStates } from './item';
|
|
10
10
|
export interface DataListBaseProps<T extends SelectionItem> {
|
|
11
11
|
data: readonly T[];
|
|
12
12
|
itemFormatter: (item: T) => FormattedItem<T>;
|
|
@@ -45,7 +45,7 @@ class DataList extends PureComponent {
|
|
|
45
45
|
onEqualPress = () => {
|
|
46
46
|
const { selection, itemFormatter } = this.props;
|
|
47
47
|
const focused = selection.getFocused();
|
|
48
|
-
if (focused
|
|
48
|
+
if (!focused) {
|
|
49
49
|
throw new Error('No focused item');
|
|
50
50
|
}
|
|
51
51
|
const item = itemFormatter(focused);
|
|
@@ -67,7 +67,7 @@ class DataList extends PureComponent {
|
|
|
67
67
|
[styles.disabledHover]: disabledHover,
|
|
68
68
|
[styles.multiSelection]: selection.getSelected().size > 0,
|
|
69
69
|
});
|
|
70
|
-
return (_jsxs("div", { className: styles.dataListWrapper, "data-test":
|
|
70
|
+
return (_jsxs("div", { className: styles.dataListWrapper, "data-test": 'ring-data-list', ref: innerRef, children: [focused && _jsx(Shortcuts, { map: shortcutsMap, scope: this.shortcutsScope }), _jsx("ul", { className: classes, children: data.map(model => {
|
|
71
71
|
const item = itemFormatter(model);
|
|
72
72
|
const { id, key, title, items } = item;
|
|
73
73
|
const showMoreLessButton = this.props.itemMoreLessState?.(item);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { SelectionItem } from '../table/selection';
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type SelectionItem } from '../table/selection';
|
|
3
3
|
export interface Item extends SelectionItem {
|
|
4
4
|
title: ReactNode;
|
|
5
5
|
collapsible?: boolean;
|
|
@@ -17,27 +17,27 @@ const items = [
|
|
|
17
17
|
{
|
|
18
18
|
id: 111,
|
|
19
19
|
selectable: true,
|
|
20
|
-
title: _jsx(Link, { href:
|
|
20
|
+
title: _jsx(Link, { href: '#', children: "TeamCity" }),
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
id: 112,
|
|
24
24
|
selectable: true,
|
|
25
|
-
title: _jsx(Link, { href:
|
|
25
|
+
title: _jsx(Link, { href: '#', children: "YouTrack" }),
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
id: 113,
|
|
29
29
|
selectable: true,
|
|
30
|
-
title: _jsx(Link, { href:
|
|
30
|
+
title: _jsx(Link, { href: '#', children: "Sandbox" }),
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
id: 114,
|
|
34
34
|
selectable: true,
|
|
35
|
-
title: _jsx(Link, { href:
|
|
35
|
+
title: _jsx(Link, { href: '#', children: "Exception Analyzer" }),
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
id: 115,
|
|
39
39
|
selectable: true,
|
|
40
|
-
title: _jsx(Link, { href:
|
|
40
|
+
title: _jsx(Link, { href: '#', children: "MPS" }),
|
|
41
41
|
},
|
|
42
42
|
],
|
|
43
43
|
},
|
|
@@ -52,7 +52,7 @@ const items = [
|
|
|
52
52
|
{
|
|
53
53
|
id: 21,
|
|
54
54
|
selectable: true,
|
|
55
|
-
title: (_jsxs("span", { children: [_jsx(Link, { href:
|
|
55
|
+
title: (_jsxs("span", { children: [_jsx(Link, { href: '#', children: "JetProfile" }), _jsx("span", { children: " " }), _jsx(Tag, { children: "duplicate" })] })),
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
id: 22,
|
|
@@ -62,34 +62,34 @@ const items = [
|
|
|
62
62
|
{
|
|
63
63
|
id: 221,
|
|
64
64
|
collapsible: true,
|
|
65
|
-
title: _jsx(Link, { href:
|
|
65
|
+
title: _jsx(Link, { href: '#', children: "TeamCity" }),
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
id: 222,
|
|
69
69
|
collapsible: true,
|
|
70
|
-
title: _jsx(Link, { href:
|
|
70
|
+
title: _jsx(Link, { href: '#', children: "YouTrack" }),
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
id: 223,
|
|
74
74
|
collapsible: true,
|
|
75
|
-
title: _jsx(Link, { href:
|
|
75
|
+
title: _jsx(Link, { href: '#', children: "Sandbox" }),
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
id: 224,
|
|
79
79
|
collapsible: true,
|
|
80
|
-
title: _jsx(Link, { href:
|
|
80
|
+
title: _jsx(Link, { href: '#', children: "Exception Analyzer" }),
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
id: 225,
|
|
84
84
|
collapsible: true,
|
|
85
|
-
title: _jsx(Link, { href:
|
|
85
|
+
title: _jsx(Link, { href: '#', children: "MPS" }),
|
|
86
86
|
},
|
|
87
87
|
],
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
id: 23,
|
|
91
91
|
collapsible: true,
|
|
92
|
-
title: (_jsxs("span", { children: [_jsx(Link, { href:
|
|
92
|
+
title: (_jsxs("span", { children: [_jsx(Link, { href: '#', children: "CustomJDK" }), _jsx("span", { children: ": as a member of ide-developers" })] })),
|
|
93
93
|
},
|
|
94
94
|
],
|
|
95
95
|
},
|
|
@@ -102,12 +102,12 @@ const items = [
|
|
|
102
102
|
{
|
|
103
103
|
id: 31,
|
|
104
104
|
collapsible: true,
|
|
105
|
-
title: (_jsxs("span", { children: [_jsx(Link, { href:
|
|
105
|
+
title: (_jsxs("span", { children: [_jsx(Link, { href: '#', children: "ide-frontend" }), _jsx("span", { children: ": as a member of ide-developers" })] })),
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
id: 32,
|
|
109
109
|
collapsible: true,
|
|
110
|
-
title: (_jsxs("span", { children: [_jsx(Link, { href:
|
|
110
|
+
title: (_jsxs("span", { children: [_jsx(Link, { href: '#', children: "ide-frontend" }), _jsx("span", { children: ": as a member of ide-frontend Code Viewers" })] })),
|
|
111
111
|
},
|
|
112
112
|
],
|
|
113
113
|
},
|
|
@@ -119,12 +119,12 @@ const items = [
|
|
|
119
119
|
{
|
|
120
120
|
id: 41,
|
|
121
121
|
collapsible: true,
|
|
122
|
-
title: (_jsxs("span", { children: [_jsx(Link, { href:
|
|
122
|
+
title: (_jsxs("span", { children: [_jsx(Link, { href: '#', children: "Intellij IDEA" }), _jsx("span", { children: ": as a member of Registered Users" })] })),
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
id: 42,
|
|
126
126
|
collapsible: true,
|
|
127
|
-
title: (_jsxs("span", { children: [_jsx(Link, { href:
|
|
127
|
+
title: (_jsxs("span", { children: [_jsx(Link, { href: '#', children: "YouTrack Backlog" }), _jsx("span", { children: ": as a member of jetbrains-team" })] })),
|
|
128
128
|
},
|
|
129
129
|
],
|
|
130
130
|
},
|
|
@@ -137,14 +137,14 @@ const items = [
|
|
|
137
137
|
id: 51,
|
|
138
138
|
selectable: true,
|
|
139
139
|
collapsible: true,
|
|
140
|
-
title: _jsx(Link, { href:
|
|
140
|
+
title: _jsx(Link, { href: '#', children: "Wasabi" }),
|
|
141
141
|
},
|
|
142
142
|
],
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
id: 6,
|
|
146
146
|
collapsible: true,
|
|
147
|
-
title: (_jsxs("span", { children: [_jsx("strong", { children: "Git Hosting Admin" }), _jsx("span", { children: " in project " }), _jsx(Link, { href:
|
|
147
|
+
title: (_jsxs("span", { children: [_jsx("strong", { children: "Git Hosting Admin" }), _jsx("span", { children: " in project " }), _jsx(Link, { href: '#', children: "Hackathon 2016" }), _jsx("span", { children: ": as a member of jetbrains-team" })] })),
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
id: 7,
|
|
@@ -158,13 +158,13 @@ export const moreItems = [
|
|
|
158
158
|
id: 91,
|
|
159
159
|
selectable: true,
|
|
160
160
|
collapsible: true,
|
|
161
|
-
title: (_jsxs("span", { children: [_jsx(Link, { href:
|
|
161
|
+
title: (_jsxs("span", { children: [_jsx(Link, { href: '#', children: "More item 1" }), _jsx("span", { children: " " }), _jsx(Tag, { children: "duplicate" })] })),
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
id: 92,
|
|
165
165
|
selectable: true,
|
|
166
166
|
collapsible: true,
|
|
167
|
-
title: (_jsxs("span", { children: [_jsx(Link, { href:
|
|
167
|
+
title: (_jsxs("span", { children: [_jsx(Link, { href: '#', children: "More item 2" }), _jsx("span", { children: " " }), _jsx(Tag, { children: "duplicate" })] })),
|
|
168
168
|
},
|
|
169
169
|
];
|
|
170
170
|
export default items;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PureComponent, ReactNode } from 'react';
|
|
2
|
-
import { SelectionItem } from '../table/selection';
|
|
3
|
-
import Selection from './selection';
|
|
1
|
+
import { PureComponent, type ReactNode } from 'react';
|
|
2
|
+
import { type SelectionItem } from '../table/selection';
|
|
3
|
+
import type Selection from './selection';
|
|
4
4
|
export declare enum moreLessButtonStates {
|
|
5
5
|
UNUSED = 0,
|
|
6
6
|
MORE = 1,
|
|
@@ -58,10 +58,10 @@ export default class Item extends PureComponent {
|
|
|
58
58
|
let collapserExpander = null;
|
|
59
59
|
if (collapsible) {
|
|
60
60
|
if (collapsed) {
|
|
61
|
-
collapserExpander = (_jsx(Button, { title:
|
|
61
|
+
collapserExpander = (_jsx(Button, { title: 'Expand', onClick: onExpand, icon: chevronRightIcon, className: styles.collapseButton, iconClassName: styles.collapseIcon, "data-test": 'ring-data-list-expand' }));
|
|
62
62
|
}
|
|
63
63
|
else {
|
|
64
|
-
collapserExpander = (_jsx(Button, { title:
|
|
64
|
+
collapserExpander = (_jsx(Button, { title: 'Collapse', onClick: onCollapse, icon: chevronDownIcon, className: styles.collapseButton, iconClassName: styles.collapseIcon, "data-test": 'ring-data-list-collapse' }));
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
const itemIsEmpty = !items?.length || (collapsible && collapsed);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import TableSelection, { CloneWithConfig, SelectionItem, TableSelectionConfig } from '../table/selection';
|
|
1
|
+
import TableSelection, { type CloneWithConfig, type SelectionItem, type TableSelectionConfig } from '../table/selection';
|
|
2
2
|
interface DataListSelectionConfig<T extends SelectionItem> extends TableSelectionConfig<T> {
|
|
3
3
|
partialSelected?: Set<T> | undefined;
|
|
4
4
|
}
|
|
@@ -9,6 +9,7 @@ export default class Selection extends TableSelection {
|
|
|
9
9
|
return new Set(this._getDescendants(data));
|
|
10
10
|
}
|
|
11
11
|
_buildSelected(data, selected) {
|
|
12
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
12
13
|
const _selected = new Set(selected);
|
|
13
14
|
[...data].forEach(item => {
|
|
14
15
|
if (_selected.has(item)) {
|
|
@@ -90,7 +91,7 @@ export default class Selection extends TableSelection {
|
|
|
90
91
|
return this.cloneWith({ selected, partialSelected });
|
|
91
92
|
}
|
|
92
93
|
isPartialSelected(value) {
|
|
93
|
-
return value
|
|
94
|
+
return value !== null && value !== undefined && this._partialSelected.has(value);
|
|
94
95
|
}
|
|
95
96
|
focus(value) {
|
|
96
97
|
return super.focus(value);
|
|
@@ -101,11 +102,17 @@ export default class Selection extends TableSelection {
|
|
|
101
102
|
cloneWith({ partialSelected = this._partialSelected, ...rest }) {
|
|
102
103
|
const parentClone = super.cloneWith(rest);
|
|
103
104
|
return new this.constructor({
|
|
105
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
104
106
|
data: parentClone._rawData,
|
|
107
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
105
108
|
selected: parentClone._selected,
|
|
109
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
106
110
|
focused: parentClone._focused,
|
|
111
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
107
112
|
getKey: parentClone._getKey,
|
|
113
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
108
114
|
getChildren: parentClone._getChildren,
|
|
115
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
109
116
|
isItemSelectable: parentClone._isItemSelectable,
|
|
110
117
|
partialSelected,
|
|
111
118
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PureComponent, ReactNode } from 'react';
|
|
2
|
-
import { FocusSensorAddProps } from '../global/focus-sensor-hoc';
|
|
1
|
+
import { PureComponent, type ReactNode } from 'react';
|
|
2
|
+
import { type FocusSensorAddProps } from '../global/focus-sensor-hoc';
|
|
3
3
|
export interface TitleProps extends FocusSensorAddProps<HTMLDivElement> {
|
|
4
4
|
onSelect: (selected: boolean) => void;
|
|
5
5
|
selectable?: boolean | undefined;
|
|
@@ -53,7 +53,7 @@ export default class DateInput extends React.PureComponent {
|
|
|
53
53
|
if (active && hoverDate) {
|
|
54
54
|
displayText = displayFormat(hoverDate, locale);
|
|
55
55
|
}
|
|
56
|
-
else if (active && text
|
|
56
|
+
else if (active && text !== null && text !== undefined) {
|
|
57
57
|
displayText = text;
|
|
58
58
|
}
|
|
59
59
|
else if (date) {
|
|
@@ -77,6 +77,6 @@ export default class DateInput extends React.PureComponent {
|
|
|
77
77
|
}
|
|
78
78
|
})();
|
|
79
79
|
const classes = classNames(styles.filter, styles[`${name}Input`], divider && styles[`${name}InputWithDivider`], 'ring-js-shortcuts');
|
|
80
|
-
return (_jsx(Input, { autoComplete:
|
|
80
|
+
return (_jsx(Input, { autoComplete: 'off', borderless: true, height: ControlsHeight.L, "data-name": name, inputRef: this.inputRef, className: classes, value: displayText, onChange: this.handleChange, onFocus: onActivate, onKeyDown: this.handleKeyDown, onClear: onClear, placeholder: placeholder }));
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
1
|
+
@import '../global/variables.css';
|
|
2
|
+
@import '../global/global.css';
|
|
3
3
|
|
|
4
4
|
/* ensure styles order */
|
|
5
|
-
@import
|
|
5
|
+
@import '../input/input.css';
|
|
6
6
|
|
|
7
7
|
:root,
|
|
8
8
|
:host {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.filterWrapper {
|
|
104
|
-
composes: filterWrapper from
|
|
104
|
+
composes: filterWrapper from '../select/select-popup.css';
|
|
105
105
|
|
|
106
106
|
display: flex;
|
|
107
107
|
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
.filter {
|
|
112
|
-
composes: filter from
|
|
112
|
+
composes: filter from '../select/select-popup.css';
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
.calendarIcon {
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
top: 0;
|
|
159
159
|
right: var(--ring-unit);
|
|
160
160
|
|
|
161
|
-
content:
|
|
161
|
+
content: '—';
|
|
162
162
|
|
|
163
163
|
line-height: calc(4 * var(--ring-unit) - 2px);
|
|
164
164
|
}
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
position: absolute;
|
|
186
186
|
left: calc(-1 * var(--ring-unit));
|
|
187
187
|
|
|
188
|
-
content:
|
|
188
|
+
content: ',';
|
|
189
189
|
|
|
190
190
|
line-height: calc(4 * var(--ring-unit) - 3px);
|
|
191
191
|
}
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
.day {
|
|
275
|
-
composes: resetButton from
|
|
275
|
+
composes: resetButton from '../global/global.css';
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
.day.day {
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
width: calc(var(--ring-unit) * 2);
|
|
349
349
|
height: 100%;
|
|
350
350
|
|
|
351
|
-
content:
|
|
351
|
+
content: '';
|
|
352
352
|
transition: background-color var(--ring-ease);
|
|
353
353
|
}
|
|
354
354
|
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
width: calc(var(--ring-unit) * 23);
|
|
392
392
|
height: calc(var(--ring-unit) * 8);
|
|
393
393
|
|
|
394
|
-
content:
|
|
394
|
+
content: '';
|
|
395
395
|
transition: background-color var(--ring-ease);
|
|
396
396
|
}
|
|
397
397
|
|
|
@@ -423,7 +423,7 @@
|
|
|
423
423
|
width: calc(var(--ring-unit) * 2);
|
|
424
424
|
height: 100%;
|
|
425
425
|
|
|
426
|
-
content:
|
|
426
|
+
content: '';
|
|
427
427
|
transition: background-color var(--ring-ease);
|
|
428
428
|
}
|
|
429
429
|
}
|
|
@@ -475,7 +475,7 @@
|
|
|
475
475
|
top: 0;
|
|
476
476
|
left: calc(var(--ring-unit) * 0.5);
|
|
477
477
|
|
|
478
|
-
content:
|
|
478
|
+
content: '•';
|
|
479
479
|
|
|
480
480
|
font-size: var(--ring-font-size-smaller);
|
|
481
481
|
}
|
|
@@ -508,7 +508,7 @@
|
|
|
508
508
|
|
|
509
509
|
.monthName {
|
|
510
510
|
composes: hoverable;
|
|
511
|
-
composes: resetButton from
|
|
511
|
+
composes: resetButton from '../global/global.css';
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
.monthName.monthName {
|
|
@@ -525,7 +525,7 @@
|
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
.monthSlider {
|
|
528
|
-
composes: resetButton from
|
|
528
|
+
composes: resetButton from '../global/global.css';
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
.monthSlider.monthSlider {
|
|
@@ -578,7 +578,7 @@
|
|
|
578
578
|
|
|
579
579
|
.year {
|
|
580
580
|
composes: hoverable;
|
|
581
|
-
composes: resetButton from
|
|
581
|
+
composes: resetButton from '../global/global.css';
|
|
582
582
|
}
|
|
583
583
|
|
|
584
584
|
.year.year {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { PureComponent, ButtonHTMLAttributes } from 'react';
|
|
1
|
+
import { PureComponent, type ButtonHTMLAttributes } from 'react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import type { Locale } from 'date-fns';
|
|
4
3
|
import Popup from '../popup/popup';
|
|
5
|
-
import { DropdownAttrs } from '../dropdown/dropdown';
|
|
4
|
+
import { type DropdownAttrs } from '../dropdown/dropdown';
|
|
6
5
|
import { Size } from '../input/input';
|
|
7
|
-
import { DatePopupProps } from './date-popup';
|
|
8
|
-
import { DateInputTranslations, DatePickerChange } from './consts';
|
|
6
|
+
import { type DatePopupProps } from './date-popup';
|
|
7
|
+
import { type DateInputTranslations, type DatePickerChange } from './consts';
|
|
8
|
+
import type { Locale } from 'date-fns';
|
|
9
9
|
export interface DatePickerTranslations extends Partial<DateInputTranslations> {
|
|
10
10
|
setDate: string;
|
|
11
11
|
setDateTime: string;
|