@jetbrains/ring-ui 5.0.139 → 5.0.141
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.d.ts +1 -1
- package/components/alert-service/alert-service.d.ts +2 -2
- package/components/auth-dialog/auth-dialog.d.ts +2 -2
- package/components/avatar/avatar.d.ts +2 -2
- package/components/avatar/fallback-avatar.d.ts +2 -1
- package/components/badge/badge.d.ts +2 -2
- package/components/button/button.d.ts +1 -1
- package/components/button-group/button-group.d.ts +2 -2
- package/components/button-group/caption.d.ts +2 -2
- package/components/button-set/button-set.d.ts +2 -2
- package/components/button-toolbar/button-toolbar.d.ts +2 -2
- package/components/checkbox/checkbox.d.ts +2 -2
- package/components/code/code.d.ts +1 -1
- package/components/confirm/confirm.d.ts +1 -1
- package/components/content-layout/content-layout.d.ts +2 -2
- package/components/content-layout/sidebar.d.ts +2 -2
- package/components/contenteditable/contenteditable.d.ts +3 -3
- package/components/data-list/data-list.d.ts +3 -3
- package/components/data-list/data-list.mock.d.ts +2 -2
- package/components/data-list/item.d.ts +3 -3
- package/components/data-list/title.d.ts +1 -1
- package/components/date-picker/consts.d.ts +5 -5
- package/components/date-picker/date-input.d.ts +3 -12
- package/components/date-picker/date-input.js +7 -15
- package/components/date-picker/date-picker.d.ts +8 -6
- package/components/date-picker/date-picker.js +9 -15
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/day.d.ts +2 -2
- package/components/date-picker/month-names.d.ts +2 -1
- package/components/date-picker/month-slider.d.ts +2 -2
- package/components/date-picker/month.d.ts +2 -1
- package/components/date-picker/months.d.ts +2 -1
- package/components/date-picker/weekdays.d.ts +2 -1
- package/components/date-picker/years.d.ts +2 -2
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/dropdown.d.ts +8 -1
- package/components/editable-heading/editable-heading.d.ts +2 -2
- package/components/error-bubble/error-bubble.d.ts +2 -2
- package/components/error-message/error-message.d.ts +2 -2
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/react-dom-renderer.d.ts +2 -2
- package/components/grid/col.d.ts +2 -2
- package/components/grid/grid.d.ts +2 -2
- package/components/grid/row.d.ts +2 -2
- package/components/group/group.d.ts +2 -2
- package/components/header/header.d.ts +2 -2
- package/components/header/logo.d.ts +2 -2
- package/components/header/profile.d.ts +1 -1
- package/components/header/services-link.d.ts +2 -2
- package/components/header/services.d.ts +2 -2
- package/components/header/smart-profile.d.ts +2 -2
- package/components/header/smart-services.d.ts +2 -2
- package/components/header/tray-icon.d.ts +2 -2
- package/components/header/tray.d.ts +2 -2
- package/components/icon/icon.d.ts +2 -2
- package/components/icon/icon__svg.d.ts +1 -1
- package/components/input/input-label.d.ts +2 -2
- package/components/input/input.d.ts +1 -1
- package/components/island/adaptive-island-hoc.d.ts +2 -2
- package/components/island/content.d.ts +1 -1
- package/components/island/header.d.ts +2 -2
- package/components/island/island.d.ts +3 -3
- package/components/island-legacy/content-legacy.d.ts +2 -2
- package/components/island-legacy/header-legacy.d.ts +2 -2
- package/components/island-legacy/island-legacy.d.ts +2 -2
- package/components/link/clickableLink.d.ts +1 -1
- package/components/link/link.d.ts +8 -8
- package/components/list/list.d.ts +6 -6
- package/components/list/list__custom.d.ts +1 -1
- package/components/list/list__hint.d.ts +2 -2
- package/components/list/list__item.d.ts +2 -2
- package/components/list/list__link.d.ts +2 -2
- package/components/list/list__separator.d.ts +2 -2
- package/components/list/list__title.d.ts +2 -2
- package/components/loader/loader.d.ts +2 -2
- package/components/loader-inline/loader-inline.d.ts +2 -2
- package/components/loader-screen/loader-screen.d.ts +2 -2
- package/components/login-dialog/login-dialog.d.ts +2 -2
- package/components/markdown/code.d.ts +2 -1
- package/components/markdown/heading.d.ts +2 -1
- package/components/markdown/link.d.ts +2 -1
- package/components/markdown/markdown.d.ts +2 -2
- package/components/message/message.d.ts +2 -2
- package/components/pager/pager.d.ts +5 -5
- package/components/panel/panel.d.ts +2 -2
- package/components/popup/popup.d.ts +2 -2
- package/components/popup-menu/popup-menu.d.ts +2 -2
- package/components/progress-bar/progress-bar.d.ts +2 -2
- package/components/query-assist/query-assist.d.ts +2 -2
- package/components/query-assist/query-assist__suggestions.d.ts +2 -1
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/radio__item.d.ts +1 -1
- package/components/select/select.d.ts +4 -4
- package/components/select/select.js +1 -1
- package/components/select/select__filter.d.ts +2 -2
- package/components/select/select__popup.d.ts +7 -7
- package/components/shortcuts/shortcuts-hoc.d.ts +2 -2
- package/components/tab-trap/tab-trap.d.ts +1 -1
- package/components/table/cell.d.ts +2 -2
- package/components/table/disable-hover-hoc.d.ts +2 -2
- package/components/table/header-cell.d.ts +2 -2
- package/components/table/header.d.ts +3 -3
- package/components/table/multitable.d.ts +2 -2
- package/components/table/row-with-focus-sensor.d.ts +1 -1
- package/components/table/row.d.ts +1 -1
- package/components/table/smart-table.d.ts +1 -1
- package/components/table/table.d.ts +4 -4
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-tab.d.ts +1 -1
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/dumb-tabs.d.ts +3 -3
- package/components/tabs/smart-tabs.d.ts +2 -2
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab.d.ts +2 -2
- package/components/tag/tag.d.ts +5 -5
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/text/text.d.ts +2 -2
- package/components/toggle/toggle.d.ts +2 -2
- package/components/tooltip/tooltip.d.ts +1 -1
- package/components/user-agreement/user-agreement.d.ts +2 -2
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/smart-user-card-tooltip.d.ts +3 -3
- package/components/user-card/tooltip.d.ts +3 -3
- package/dist/_helpers/anchor.js +1 -1
- package/dist/_helpers/badge.js +1 -1
- package/dist/_helpers/button-group.js +1 -1
- package/dist/_helpers/button-set.js +1 -1
- package/dist/_helpers/button-toolbar.js +1 -1
- package/dist/_helpers/button__classes.js +1 -1
- package/dist/_helpers/card.js +1 -1
- package/dist/_helpers/checkbox.js +1 -1
- package/dist/_helpers/date-picker.js +1 -1
- package/dist/_helpers/dialog__body-scroll-preventer.js +1 -1
- package/dist/_helpers/error-message.js +1 -1
- package/dist/_helpers/footer.js +1 -1
- package/dist/_helpers/grid.js +1 -1
- package/dist/_helpers/group.js +1 -1
- package/dist/_helpers/header.js +1 -1
- package/dist/_helpers/icon.js +1 -1
- package/dist/_helpers/input.js +1 -1
- package/dist/_helpers/island.js +1 -1
- package/dist/_helpers/link.js +1 -1
- package/dist/_helpers/list.js +1 -1
- package/dist/_helpers/loader-inline.js +1 -1
- package/dist/_helpers/loader-screen.js +1 -1
- package/dist/_helpers/panel.js +1 -1
- package/dist/_helpers/query-assist__suggestions.js +1 -1
- package/dist/_helpers/radio.js +1 -1
- package/dist/_helpers/select__filter.js +1 -1
- package/dist/_helpers/services-link.js +1 -1
- package/dist/_helpers/sidebar.js +1 -1
- package/dist/_helpers/table.js +1 -1
- package/dist/_helpers/tabs.js +1 -1
- package/dist/_helpers/theme.js +1 -1
- package/dist/_helpers/title.js +1 -1
- package/dist/alert/alert.d.ts +1 -1
- package/dist/alert/alert.js +1 -1
- package/dist/alert/container.js +1 -1
- package/dist/alert-service/alert-service.d.ts +2 -2
- package/dist/auth/down-notification.js +1 -1
- package/dist/auth/iframe-flow.js +1 -1
- package/dist/auth/landing.js +3 -3
- package/dist/auth-dialog/auth-dialog.d.ts +2 -2
- package/dist/auth-dialog/auth-dialog.js +1 -1
- package/dist/avatar/avatar.d.ts +2 -2
- package/dist/avatar/avatar.js +1 -1
- package/dist/avatar/fallback-avatar.d.ts +2 -1
- package/dist/avatar-editor-ng/avatar-editor-ng.js +2 -2
- package/dist/badge/badge.d.ts +2 -2
- package/dist/breadcrumb-ng/breadcrumb-ng.js +3 -3
- package/dist/button/button.d.ts +1 -1
- package/dist/button-group/button-group.d.ts +2 -2
- package/dist/button-group/caption.d.ts +2 -2
- package/dist/button-ng/button-ng.js +3 -3
- package/dist/button-set/button-set.d.ts +2 -2
- package/dist/button-toolbar/button-toolbar.d.ts +2 -2
- package/dist/checkbox/checkbox.d.ts +2 -2
- package/dist/code/code.d.ts +1 -1
- package/dist/code/code.js +1 -1
- package/dist/confirm/confirm.d.ts +1 -1
- package/dist/confirm/confirm.js +1 -1
- package/dist/confirm-ng/confirm-ng.js +2 -2
- package/dist/content-layout/content-layout.d.ts +2 -2
- package/dist/content-layout/sidebar.d.ts +2 -2
- package/dist/contenteditable/contenteditable.d.ts +3 -3
- package/dist/data-list/data-list.d.ts +3 -3
- package/dist/data-list/data-list.mock.d.ts +2 -2
- package/dist/data-list/item.d.ts +3 -3
- package/dist/data-list/title.d.ts +1 -1
- package/dist/date-picker/consts.d.ts +5 -5
- package/dist/date-picker/date-input.d.ts +3 -12
- package/dist/date-picker/date-input.js +11 -17
- package/dist/date-picker/date-picker.d.ts +8 -6
- package/dist/date-picker/date-picker.js +15 -18
- package/dist/date-picker/date-popup.d.ts +1 -1
- package/dist/date-picker/date-popup.js +1 -1
- package/dist/date-picker/day.d.ts +2 -2
- package/dist/date-picker/month-names.d.ts +2 -1
- package/dist/date-picker/month-slider.d.ts +2 -2
- package/dist/date-picker/month.d.ts +2 -1
- package/dist/date-picker/months.d.ts +2 -1
- package/dist/date-picker/weekdays.d.ts +2 -1
- package/dist/date-picker/years.d.ts +2 -2
- package/dist/dialog-ng/dialog-ng.js +9 -9
- package/dist/docked-panel-ng/docked-panel-ng.js +1 -1
- package/dist/dropdown/anchor.d.ts +1 -1
- package/dist/dropdown/dropdown.d.ts +8 -1
- package/dist/editable-heading/editable-heading.d.ts +2 -2
- package/dist/error-bubble/error-bubble.d.ts +2 -2
- package/dist/error-bubble/error-bubble.js +1 -1
- package/dist/error-message/error-message.d.ts +2 -2
- package/dist/error-message-ng/error-message-ng.js +2 -2
- package/dist/form-ng/form-ng.js +2 -2
- package/dist/global/create-stateful-context.d.ts +1 -1
- package/dist/global/react-dom-renderer.d.ts +2 -2
- package/dist/grid/col.d.ts +2 -2
- package/dist/grid/grid.d.ts +2 -2
- package/dist/grid/row.d.ts +2 -2
- package/dist/group/group.d.ts +2 -2
- package/dist/header/header.d.ts +2 -2
- package/dist/header/logo.d.ts +2 -2
- package/dist/header/profile.d.ts +1 -1
- package/dist/header/services-link.d.ts +2 -2
- package/dist/header/services.d.ts +2 -2
- package/dist/header/smart-profile.d.ts +2 -2
- package/dist/header/smart-services.d.ts +2 -2
- package/dist/header/tray-icon.d.ts +2 -2
- package/dist/header/tray.d.ts +2 -2
- package/dist/heading/heading.js +1 -1
- package/dist/icon/icon.d.ts +2 -2
- package/dist/icon/icon__svg.d.ts +1 -1
- package/dist/input/input-label.d.ts +2 -2
- package/dist/input/input.d.ts +1 -1
- package/dist/input-ng/input-ng.js +2 -2
- package/dist/island/adaptive-island-hoc.d.ts +2 -2
- package/dist/island/content.d.ts +1 -1
- package/dist/island/header.d.ts +2 -2
- package/dist/island/island.d.ts +3 -3
- package/dist/island-legacy/content-legacy.d.ts +2 -2
- package/dist/island-legacy/header-legacy.d.ts +2 -2
- package/dist/island-legacy/island-legacy.d.ts +2 -2
- package/dist/link/clickableLink.d.ts +1 -1
- package/dist/link/link.d.ts +8 -8
- package/dist/link/link.js +1 -1
- package/dist/link-ng/link-ng.js +2 -2
- package/dist/list/list.d.ts +6 -6
- package/dist/list/list__custom.d.ts +1 -1
- package/dist/list/list__hint.d.ts +2 -2
- package/dist/list/list__item.d.ts +2 -2
- package/dist/list/list__link.d.ts +2 -2
- package/dist/list/list__separator.d.ts +2 -2
- package/dist/list/list__title.d.ts +2 -2
- package/dist/loader/loader.d.ts +2 -2
- package/dist/loader/loader__core.js +1 -1
- package/dist/loader-inline/loader-inline.d.ts +2 -2
- package/dist/loader-screen/loader-screen.d.ts +2 -2
- package/dist/login-dialog/login-dialog.d.ts +2 -2
- package/dist/login-dialog/login-dialog.js +1 -1
- package/dist/markdown/code.d.ts +2 -1
- package/dist/markdown/heading.d.ts +2 -1
- package/dist/markdown/link.d.ts +2 -1
- package/dist/markdown/markdown.d.ts +2 -2
- package/dist/markdown/markdown.js +1 -1
- package/dist/message/message.d.ts +2 -2
- package/dist/message/message.js +1 -1
- package/dist/message-bundle-ng/message-bundle-ng.js +2 -2
- package/dist/old-browsers-message/white-list.js +2 -2
- package/dist/pager/pager.d.ts +5 -5
- package/dist/pager/pager.js +1 -1
- package/dist/panel/panel.d.ts +2 -2
- package/dist/popup/popup.d.ts +2 -2
- package/dist/popup/popup.js +1 -1
- package/dist/popup-menu/popup-menu.d.ts +2 -2
- package/dist/progress-bar/progress-bar.d.ts +2 -2
- package/dist/progress-bar/progress-bar.js +1 -1
- package/dist/query-assist/query-assist.d.ts +2 -2
- package/dist/query-assist/query-assist.js +4 -4
- package/dist/query-assist/query-assist__suggestions.d.ts +2 -1
- package/dist/radio/radio.d.ts +1 -1
- package/dist/radio/radio__item.d.ts +1 -1
- package/dist/save-field-ng/save-field-ng.js +5 -5
- package/dist/select/select.d.ts +4 -4
- package/dist/select/select.js +3 -3
- package/dist/select/select__filter.d.ts +2 -2
- package/dist/select/select__popup.d.ts +7 -7
- package/dist/select/select__popup.js +4 -4
- package/dist/select-ng/select-ng.js +2 -2
- package/dist/shortcuts/core.js +2 -2
- package/dist/shortcuts/shortcuts-hoc.d.ts +2 -2
- package/dist/shortcuts/shortcuts.js +6 -6
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +3 -3
- package/dist/shortcuts-ng/shortcuts-ng.js +24 -24
- package/dist/sidebar-ng/sidebar-ng.js +2 -2
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.d.ts +1 -1
- package/dist/tab-trap/tab-trap.js +1 -1
- package/dist/table/cell.d.ts +2 -2
- package/dist/table/disable-hover-hoc.d.ts +2 -2
- package/dist/table/header-cell.d.ts +2 -2
- package/dist/table/header.d.ts +3 -3
- package/dist/table/multitable.d.ts +2 -2
- package/dist/table/row-with-focus-sensor.d.ts +1 -1
- package/dist/table/row.d.ts +1 -1
- package/dist/table/smart-table.d.ts +1 -1
- package/dist/table/table.d.ts +4 -4
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +2 -2
- package/dist/tabs/collapsible-more.d.ts +3 -3
- package/dist/tabs/collapsible-more.js +5 -5
- package/dist/tabs/collapsible-tab.d.ts +1 -1
- package/dist/tabs/collapsible-tabs.d.ts +2 -2
- package/dist/tabs/dumb-tabs.d.ts +3 -3
- package/dist/tabs/smart-tabs.d.ts +2 -2
- package/dist/tabs/tab-link.d.ts +1 -1
- package/dist/tabs/tab.d.ts +2 -2
- package/dist/tag/tag.d.ts +5 -5
- package/dist/tag/tag.js +1 -1
- package/dist/tags-input/tags-input.d.ts +1 -1
- package/dist/tags-input/tags-input.js +1 -1
- package/dist/tags-list/tags-list.d.ts +2 -2
- package/dist/text/text.d.ts +2 -2
- package/dist/text/text.js +1 -1
- package/dist/toggle/toggle.d.ts +2 -2
- package/dist/toggle/toggle.js +1 -1
- package/dist/tooltip/tooltip.d.ts +1 -1
- package/dist/tooltip/tooltip.js +1 -1
- package/dist/user-agreement/service.js +7 -7
- package/dist/user-agreement/user-agreement.d.ts +2 -2
- package/dist/user-agreement/user-agreement.js +4 -4
- package/dist/user-card/card.d.ts +1 -1
- package/dist/user-card/smart-user-card-tooltip.d.ts +3 -3
- package/dist/user-card/smart-user-card-tooltip.js +28 -28
- package/dist/user-card/tooltip.d.ts +3 -3
- package/dist/user-card-ng/user-card-ng.js +4 -4
- package/package.json +43 -43
|
@@ -18,11 +18,11 @@ import Icon from '../icon/icon.js';
|
|
|
18
18
|
import { Button } from '../button/button.js';
|
|
19
19
|
import Link from '../link/link.js';
|
|
20
20
|
import { Size } from '../input/input.js';
|
|
21
|
+
import { I18nContext } from '../i18n/i18n-context.js';
|
|
21
22
|
import DatePopup from './date-popup.js';
|
|
22
23
|
import { dateType } from './consts.js';
|
|
23
24
|
import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
|
|
24
25
|
import formats from './formats.js';
|
|
25
|
-
import DateInput from './date-input.js';
|
|
26
26
|
import 'react-dom';
|
|
27
27
|
import '../global/get-uid.js';
|
|
28
28
|
import '../global/schedule-raf.js';
|
|
@@ -50,15 +50,16 @@ import '../_helpers/button__classes.js';
|
|
|
50
50
|
import '../_helpers/link.js';
|
|
51
51
|
import '@jetbrains/icons/close-12px';
|
|
52
52
|
import '../global/prop-types.js';
|
|
53
|
-
import '../i18n/i18n-context.js';
|
|
54
|
-
import '../i18n/i18n.js';
|
|
55
53
|
import '../global/composeRefs.js';
|
|
56
54
|
import '../_helpers/input.js';
|
|
57
55
|
import '../input/input-label.js';
|
|
56
|
+
import '../i18n/i18n.js';
|
|
58
57
|
import 'date-fns/isAfter';
|
|
59
58
|
import 'date-fns/isBefore';
|
|
60
59
|
import 'date-fns/startOfDay';
|
|
61
60
|
import 'date-fns';
|
|
61
|
+
import './date-input.js';
|
|
62
|
+
import 'date-fns/add';
|
|
62
63
|
import './months.js';
|
|
63
64
|
import 'date-fns/addMonths';
|
|
64
65
|
import 'date-fns/getDay';
|
|
@@ -73,7 +74,6 @@ import 'date-fns/setDay';
|
|
|
73
74
|
import './day.js';
|
|
74
75
|
import 'date-fns/getDate';
|
|
75
76
|
import 'date-fns/isToday';
|
|
76
|
-
import 'date-fns/add';
|
|
77
77
|
import './month-names.js';
|
|
78
78
|
import 'date-fns/isThisMonth';
|
|
79
79
|
import 'date-fns/startOfYear';
|
|
@@ -171,17 +171,9 @@ class DatePicker extends PureComponent {
|
|
|
171
171
|
displayTimeFormat: (date, locale) => date ? format(date, 'HH:mm', {
|
|
172
172
|
locale
|
|
173
173
|
}) : '',
|
|
174
|
-
datePlaceholder: 'Set a date',
|
|
175
|
-
dateTimePlaceholder: 'Set date and time',
|
|
176
|
-
rangePlaceholder: 'Set a period',
|
|
177
174
|
minDate: null,
|
|
178
175
|
maxDate: null,
|
|
179
176
|
onChange() {},
|
|
180
|
-
translations: {
|
|
181
|
-
setDate: 'Set a date',
|
|
182
|
-
setDateTime: 'Set date and time',
|
|
183
|
-
setPeriod: 'Set a period'
|
|
184
|
-
},
|
|
185
177
|
applyTimeInput(date, timeString) {
|
|
186
178
|
var _timeString$split$map;
|
|
187
179
|
const [hours, minutes] = (_timeString$split$map = timeString?.split(':').map(Number)) !== null && _timeString$split$map !== void 0 ? _timeString$split$map : [];
|
|
@@ -204,6 +196,7 @@ class DatePicker extends PureComponent {
|
|
|
204
196
|
return null;
|
|
205
197
|
}
|
|
206
198
|
};
|
|
199
|
+
static contextType = I18nContext;
|
|
207
200
|
handleChange = change => {
|
|
208
201
|
const {
|
|
209
202
|
onChange,
|
|
@@ -266,15 +259,20 @@ class DatePicker extends PureComponent {
|
|
|
266
259
|
translations,
|
|
267
260
|
locale
|
|
268
261
|
} = this.props;
|
|
262
|
+
const {
|
|
263
|
+
translate
|
|
264
|
+
} = this.context;
|
|
269
265
|
const date = this.parse(this.props.date);
|
|
270
266
|
const from = this.parse(this.props.from);
|
|
271
267
|
const to = this.parse(this.props.to);
|
|
272
268
|
const time = this.formatTime();
|
|
273
269
|
if (!range && !withTime) {
|
|
274
|
-
|
|
270
|
+
var _ref2;
|
|
271
|
+
return date ? displayFormat(date, locale) : (_ref2 = datePlaceholder !== null && datePlaceholder !== void 0 ? datePlaceholder : translations?.setDate) !== null && _ref2 !== void 0 ? _ref2 : translate('setDate');
|
|
275
272
|
} else if (!range && withTime) {
|
|
276
273
|
if (!date && !time) {
|
|
277
|
-
|
|
274
|
+
var _ref3;
|
|
275
|
+
return (_ref3 = dateTimePlaceholder !== null && dateTimePlaceholder !== void 0 ? dateTimePlaceholder : translations?.setDateTime) !== null && _ref3 !== void 0 ? _ref3 : translate('setDateTime');
|
|
278
276
|
} else {
|
|
279
277
|
return `${date && displayFormat(date, locale) || '—'}, ${time || '—'}`;
|
|
280
278
|
}
|
|
@@ -293,7 +291,8 @@ class DatePicker extends PureComponent {
|
|
|
293
291
|
} else if (to) {
|
|
294
292
|
return `— ${displayFormat(to, locale)}`;
|
|
295
293
|
} else {
|
|
296
|
-
|
|
294
|
+
var _ref4;
|
|
295
|
+
return (_ref4 = rangePlaceholder !== null && rangePlaceholder !== void 0 ? rangePlaceholder : translations?.setPeriod) !== null && _ref4 !== void 0 ? _ref4 : translate('setPeriod');
|
|
297
296
|
}
|
|
298
297
|
};
|
|
299
298
|
render() {
|
|
@@ -339,9 +338,7 @@ class DatePicker extends PureComponent {
|
|
|
339
338
|
onClear: clear ? this.clear : null,
|
|
340
339
|
datePopupProps: {
|
|
341
340
|
...datePopupProps,
|
|
342
|
-
|
|
343
|
-
// Yet we should pass at least DateInput default translations not to have them empty.
|
|
344
|
-
translations: Object.assign({}, DateInput.defaultProps.translations, translations),
|
|
341
|
+
translations,
|
|
345
342
|
onChange: this.handleChange,
|
|
346
343
|
parseDateInput: this.parse,
|
|
347
344
|
time: this.formatTime()
|
|
@@ -52,5 +52,5 @@ export default class DatePopup extends Component<DatePopupProps, DatePopupState>
|
|
|
52
52
|
selectHandler: (date: Date) => void;
|
|
53
53
|
handleScroll: (scrollDate: number) => void;
|
|
54
54
|
onClear: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
55
|
-
render(): JSX.Element;
|
|
55
|
+
render(): React.JSX.Element;
|
|
56
56
|
}
|
|
@@ -33,6 +33,7 @@ import '../i18n/i18n.js';
|
|
|
33
33
|
import '../global/composeRefs.js';
|
|
34
34
|
import '../_helpers/input.js';
|
|
35
35
|
import '../input/input-label.js';
|
|
36
|
+
import 'date-fns/add';
|
|
36
37
|
import 'date-fns/addMonths';
|
|
37
38
|
import 'date-fns/getDay';
|
|
38
39
|
import 'date-fns/getDaysInMonth';
|
|
@@ -48,7 +49,6 @@ import 'date-fns/setDay';
|
|
|
48
49
|
import './day.js';
|
|
49
50
|
import 'date-fns/getDate';
|
|
50
51
|
import 'date-fns/isToday';
|
|
51
|
-
import 'date-fns/add';
|
|
52
52
|
import './month-names.js';
|
|
53
53
|
import 'date-fns/isThisMonth';
|
|
54
54
|
import 'date-fns/set';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { MonthsProps } from './consts';
|
|
4
4
|
export interface DayProps extends MonthsProps {
|
|
@@ -26,5 +26,5 @@ export default class Day extends Component<DayProps> {
|
|
|
26
26
|
inRange: (range: [Date, Date] | null) => boolean | null;
|
|
27
27
|
isDisabled: (date: Date) => boolean;
|
|
28
28
|
parse(text: string | null | undefined): Date | null;
|
|
29
|
-
render(): JSX.Element;
|
|
29
|
+
render(): React.JSX.Element;
|
|
30
30
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import PropTypes from 'prop-types';
|
|
2
3
|
import { MonthsProps } from './consts';
|
|
3
|
-
declare function MonthNames(props: MonthsProps): JSX.Element;
|
|
4
|
+
declare function MonthNames(props: MonthsProps): React.JSX.Element;
|
|
4
5
|
declare namespace MonthNames {
|
|
5
6
|
var propTypes: {
|
|
6
7
|
scrollDate: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { LinearFunction } from '../global/linear-function';
|
|
4
4
|
import { MonthsProps } from './consts';
|
|
@@ -24,6 +24,6 @@ export default class MonthSlider extends PureComponent<MonthSliderProps> {
|
|
|
24
24
|
onMouseDown: () => void;
|
|
25
25
|
onMouseUp: () => void;
|
|
26
26
|
onMouseMove: (e: MouseEvent) => void;
|
|
27
|
-
render(): JSX.Element;
|
|
27
|
+
render(): React.JSX.Element;
|
|
28
28
|
}
|
|
29
29
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import PropTypes from 'prop-types';
|
|
2
3
|
import { MonthsProps } from './consts';
|
|
3
4
|
export interface MonthProps extends MonthsProps {
|
|
4
5
|
month: Date;
|
|
5
6
|
}
|
|
6
|
-
declare function Month(props: MonthProps): JSX.Element;
|
|
7
|
+
declare function Month(props: MonthProps): React.JSX.Element;
|
|
7
8
|
declare namespace Month {
|
|
8
9
|
var propTypes: {
|
|
9
10
|
month: PropTypes.Requireable<NonNullable<string | number | Date | null | undefined>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import PropTypes from 'prop-types';
|
|
2
3
|
import { MonthsProps } from './consts';
|
|
3
|
-
declare function Months(props: MonthsProps): JSX.Element;
|
|
4
|
+
declare function Months(props: MonthsProps): React.JSX.Element;
|
|
4
5
|
declare namespace Months {
|
|
5
6
|
var propTypes: {
|
|
6
7
|
onScroll: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { Locale } from 'date-fns';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
4
|
interface WeekdaysProps {
|
|
4
5
|
locale: Locale | undefined;
|
|
5
6
|
}
|
|
6
|
-
declare function Weekdays(props: WeekdaysProps): JSX.Element;
|
|
7
|
+
declare function Weekdays(props: WeekdaysProps): React.JSX.Element;
|
|
7
8
|
declare namespace Weekdays {
|
|
8
9
|
var propTypes: {
|
|
9
10
|
locale: PropTypes.Requireable<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { CalendarProps } from './consts';
|
|
4
4
|
interface YearsState {
|
|
@@ -16,6 +16,6 @@ export default class Years extends PureComponent<CalendarProps> {
|
|
|
16
16
|
componentDidUpdate(prevProps: CalendarProps, prevState: YearsState): void;
|
|
17
17
|
stoppedScrolling?: boolean;
|
|
18
18
|
setYear(date: number): void;
|
|
19
|
-
render(): JSX.Element;
|
|
19
|
+
render(): React.JSX.Element;
|
|
20
20
|
}
|
|
21
21
|
export {};
|
|
@@ -2,8 +2,8 @@ import angular from 'angular';
|
|
|
2
2
|
import { createFocusTrap } from 'focus-trap';
|
|
3
3
|
import { getStyles, getRect } from '../global/dom.js';
|
|
4
4
|
import RingAngularComponent from '../global/ring-angular-component.js';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import shortcutsInstance from '../shortcuts/core.js';
|
|
6
|
+
import ButtonNG from '../button-ng/button-ng.js';
|
|
7
7
|
import PromisedClick from '../promised-click-ng/promised-click-ng.js';
|
|
8
8
|
import rgCompilerModuleName from '../compiler-ng/compiler-ng.js';
|
|
9
9
|
import { m as modules_5e9b8c03, p as preventerFactory } from '../_helpers/dialog__body-scroll-preventer.js';
|
|
@@ -22,7 +22,7 @@ import '../global/controls-height.js';
|
|
|
22
22
|
import 'react';
|
|
23
23
|
import 'scrollbar-width';
|
|
24
24
|
|
|
25
|
-
var modules_b378ce5a = {"unit":"i__const_unit_0","light":"
|
|
25
|
+
var modules_b378ce5a = {"unit":"i__const_unit_0","light":"light_rui_2ac4","dialogContainer":"dialogContainer_rui_0b63","wide":"wide_rui_0b63","autoWidth":"autoWidth_rui_0b63","header":"header_rui_0b63","inSidebar":"inSidebar_rui_0b63","scrollableWrapper":"scrollableWrapper_rui_0b63","content":"content_rui_0b63","error":"error_rui_0b63","footer":"footer_rui_0b63","footerDescription":"footerDescription_rui_0b63","footerItems":"footerItems_rui_0b63","footerItem":"footerItem_rui_0b63"};
|
|
26
26
|
|
|
27
27
|
rgDialogContentDirective.$inject = ["$compile", "$q"];
|
|
28
28
|
rgDialogDirective.$inject = ["$timeout"];
|
|
@@ -31,7 +31,7 @@ rgDialogDirective.$inject = ["$timeout"];
|
|
|
31
31
|
* @name Dialog Ng
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
-
const angularModule = angular.module('Ring.dialog', [
|
|
34
|
+
const angularModule = angular.module('Ring.dialog', [ButtonNG, PromisedClick, rgCompilerModuleName]);
|
|
35
35
|
class DialogController extends RingAngularComponent {
|
|
36
36
|
constructor() {
|
|
37
37
|
super(...arguments);
|
|
@@ -62,7 +62,7 @@ class DialogController extends RingAngularComponent {
|
|
|
62
62
|
$scope.$on('$destroy', dialogService.unregister);
|
|
63
63
|
$scope.$watch(() => this.active, () => {
|
|
64
64
|
if (this.active) {
|
|
65
|
-
|
|
65
|
+
shortcutsInstance.bindMap(this.getShortcuts(), {
|
|
66
66
|
scope: this.DIALOG_NAMESPACE
|
|
67
67
|
});
|
|
68
68
|
} else {
|
|
@@ -158,9 +158,9 @@ class DialogController extends RingAngularComponent {
|
|
|
158
158
|
// Backward compatibility with existing templates which use data directly from scope
|
|
159
159
|
$scope.data = this.data;
|
|
160
160
|
}
|
|
161
|
-
this.currentShortcutsScope =
|
|
161
|
+
this.currentShortcutsScope = shortcutsInstance.getScope();
|
|
162
162
|
this.DIALOG_NAMESPACE = this.dialogService.DIALOG_NAMESPACE;
|
|
163
|
-
|
|
163
|
+
shortcutsInstance.setScope(this.dialogService.DIALOG_NAMESPACE);
|
|
164
164
|
this.active = true;
|
|
165
165
|
$scope.$broadcast('dialog.show');
|
|
166
166
|
return $q((resolve, reject) => {
|
|
@@ -181,8 +181,8 @@ class DialogController extends RingAngularComponent {
|
|
|
181
181
|
this.content = '';
|
|
182
182
|
this.focusTrap.deactivate();
|
|
183
183
|
Reflect.deleteProperty(this, 'DIALOG_NAMESPACE');
|
|
184
|
-
if (
|
|
185
|
-
|
|
184
|
+
if (shortcutsInstance.indexOfScope(this.dialogService.DIALOG_NAMESPACE) > -1) {
|
|
185
|
+
shortcutsInstance.setScope(this.currentShortcutsScope);
|
|
186
186
|
}
|
|
187
187
|
this._resetFormState();
|
|
188
188
|
this.$inject.$scope.$broadcast('dialog.hide');
|
|
@@ -2,7 +2,7 @@ import angular from 'angular';
|
|
|
2
2
|
import scheduleRAF from '../global/schedule-raf.js';
|
|
3
3
|
import { getDocumentScrollTop, getWindowHeight } from '../global/dom.js';
|
|
4
4
|
|
|
5
|
-
var modules_655b40c7 = {"unit":"i__const_unit_0","light":"
|
|
5
|
+
var modules_655b40c7 = {"unit":"i__const_unit_0","light":"light_rui_2ac4","dockedPanel":"dockedPanel_rui_f45d","fixed":"fixed_rui_f45d"};
|
|
6
6
|
|
|
7
7
|
const scheduleAction = scheduleRAF();
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { ButtonAttrs } from '../button/button';
|
|
4
4
|
declare const _default: React.MemoExoticComponent<{
|
|
5
|
-
({ children, className, ...restProps }: ButtonAttrs): JSX.Element;
|
|
5
|
+
({ children, className, ...restProps }: ButtonAttrs): React.JSX.Element;
|
|
6
6
|
propTypes: {
|
|
7
7
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
8
8
|
className: PropTypes.Requireable<string>;
|
|
@@ -6,6 +6,13 @@ export interface AnchorProps {
|
|
|
6
6
|
active: boolean;
|
|
7
7
|
pinned: boolean;
|
|
8
8
|
}
|
|
9
|
+
export interface DropdownChildProps {
|
|
10
|
+
hidden: boolean;
|
|
11
|
+
onCloseAttempt: () => void;
|
|
12
|
+
onMouseDown?: () => void | undefined;
|
|
13
|
+
onContextMenu?: () => void | undefined;
|
|
14
|
+
dontCloseOnAnchorClick: boolean;
|
|
15
|
+
}
|
|
9
16
|
export interface DropdownProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
|
10
17
|
anchor: ReactElement | readonly ReactElement[] | string | ((props: AnchorProps) => ReactNode);
|
|
11
18
|
children: ReactElement<PopupAttrs> | ((props: Omit<PopupAttrs, 'children'>) => ReactNode);
|
|
@@ -74,7 +81,7 @@ export default class Dropdown extends Component<DropdownProps, DropdownState> {
|
|
|
74
81
|
toggle(show?: boolean): void;
|
|
75
82
|
_toggle(show: boolean, pinned?: boolean): void;
|
|
76
83
|
_clearTimer(): void;
|
|
77
|
-
render(): JSX.Element;
|
|
84
|
+
render(): React.JSX.Element;
|
|
78
85
|
}
|
|
79
86
|
export type DropdownAttrs = JSX.LibraryManagedAttributes<typeof Dropdown, DropdownProps>;
|
|
80
87
|
export { Anchor };
|
|
@@ -26,6 +26,6 @@ export type EditableHeadingProps = Omit<InputHTMLAttributes<HTMLInputElement>, '
|
|
|
26
26
|
renderMenu?: () => React.ReactNode;
|
|
27
27
|
translations?: EditableHeadingTranslations;
|
|
28
28
|
};
|
|
29
|
-
export declare const EditableHeading: (props: EditableHeadingProps) => JSX.Element;
|
|
30
|
-
declare const _default: React.MemoExoticComponent<(props: EditableHeadingProps) => JSX.Element>;
|
|
29
|
+
export declare const EditableHeading: (props: EditableHeadingProps) => React.JSX.Element;
|
|
30
|
+
declare const _default: React.MemoExoticComponent<(props: EditableHeadingProps) => React.JSX.Element>;
|
|
31
31
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PureComponent, ReactElement } from 'react';
|
|
1
|
+
import React, { PureComponent, ReactElement } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export type ErrorBubbleProps<P> = Partial<P> & {
|
|
4
4
|
className?: string | null | undefined;
|
|
@@ -14,5 +14,5 @@ export default class ErrorBubble<P> extends PureComponent<ErrorBubbleProps<P>> {
|
|
|
14
14
|
className: PropTypes.Requireable<string>;
|
|
15
15
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
16
16
|
};
|
|
17
|
-
render(): JSX.Element;
|
|
17
|
+
render(): React.JSX.Element;
|
|
18
18
|
}
|
|
@@ -18,7 +18,7 @@ import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
18
18
|
import '../popup/position.js';
|
|
19
19
|
import '../popup/popup.target.js';
|
|
20
20
|
|
|
21
|
-
var modules_ee284100 = {"unit":"i__const_unit_0","light":"
|
|
21
|
+
var modules_ee284100 = {"unit":"i__const_unit_0","light":"light_rui_2ac4","errorBubblePopup":"errorBubblePopup_rui_b075","errorBubbleWrapper":"errorBubbleWrapper_rui_b075","errorBubble":"errorBubble_rui_b075"};
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* @name Error Bubble
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ReactNode } from 'react';
|
|
1
|
+
import React, { Component, ReactNode } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { IconType } from '../icon/icon';
|
|
4
4
|
export interface ErrorMessageProps {
|
|
@@ -23,5 +23,5 @@ export default class ErrorMessage extends Component<ErrorMessageProps> {
|
|
|
23
23
|
className: PropTypes.Requireable<string>;
|
|
24
24
|
'data-test': PropTypes.Requireable<string>;
|
|
25
25
|
};
|
|
26
|
-
render(): JSX.Element;
|
|
26
|
+
render(): React.JSX.Element;
|
|
27
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import angular from 'angular';
|
|
2
2
|
import IconNG from '../icon-ng/icon-ng.js';
|
|
3
|
-
import
|
|
3
|
+
import LinkNG from '../link-ng/link-ng.js';
|
|
4
4
|
import { m as modules_2c5e8509 } from '../_helpers/error-message.js';
|
|
5
5
|
import '../icon/icon__constants.js';
|
|
6
6
|
import '../template-ng/template-ng.js';
|
|
@@ -12,7 +12,7 @@ import '../_helpers/link.js';
|
|
|
12
12
|
* @name Error Message Ng
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
const angularModule = angular.module('Ring.error-message', [IconNG,
|
|
15
|
+
const angularModule = angular.module('Ring.error-message', [IconNG, LinkNG]);
|
|
16
16
|
angularModule.directive('rgErrorMessage', function rgErrorMessageDirective() {
|
|
17
17
|
return {
|
|
18
18
|
replace: true,
|
package/dist/form-ng/form-ng.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import angular from 'angular';
|
|
2
|
-
import
|
|
2
|
+
import MessageBundle from '../message-bundle-ng/message-bundle-ng.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @name Form Ng
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
const angularModule = angular.module('Ring.form', [
|
|
8
|
+
const angularModule = angular.module('Ring.form', [MessageBundle]);
|
|
9
9
|
angularModule.factory('getFormErrorMessages', ["RingMessageBundle", function getFormErrorMessagesDirective(RingMessageBundle) {
|
|
10
10
|
function msg(id, formError) {
|
|
11
11
|
const messageBundleId = `form_${id}`;
|
|
@@ -12,7 +12,7 @@ export default function createStatefulContext<T>(initialValue: T, name?: string)
|
|
|
12
12
|
ValueContext: React.Context<T>;
|
|
13
13
|
UpdateContext: React.Context<Update<T>>;
|
|
14
14
|
Provider: {
|
|
15
|
-
({ children }: ProviderProps): JSX.Element;
|
|
15
|
+
({ children }: ProviderProps): React.JSX.Element;
|
|
16
16
|
propTypes: {
|
|
17
17
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
18
18
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export interface RendererProps {
|
|
4
4
|
className?: string | undefined;
|
|
@@ -12,5 +12,5 @@ export default class Renderer extends Component<RendererProps> {
|
|
|
12
12
|
componentDidMount(): void;
|
|
13
13
|
node?: HTMLElement | null;
|
|
14
14
|
nodeRef: (node: HTMLElement | null) => void;
|
|
15
|
-
render(): JSX.Element;
|
|
15
|
+
render(): React.JSX.Element;
|
|
16
16
|
}
|
package/dist/grid/col.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ReactNode } from 'react';
|
|
1
|
+
import React, { Component, ReactNode } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export interface ColProps {
|
|
4
4
|
children?: ReactNode;
|
|
@@ -27,5 +27,5 @@ export default class Col extends Component<ColProps> {
|
|
|
27
27
|
className: PropTypes.Requireable<string>;
|
|
28
28
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
29
29
|
};
|
|
30
|
-
render(): JSX.Element;
|
|
30
|
+
render(): React.JSX.Element;
|
|
31
31
|
}
|
package/dist/grid/grid.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, HTMLAttributes } from 'react';
|
|
1
|
+
import React, { Component, HTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
/**
|
|
4
4
|
* @name Grid
|
|
@@ -8,7 +8,7 @@ export declare class Grid extends Component<HTMLAttributes<HTMLDivElement>> {
|
|
|
8
8
|
className: PropTypes.Requireable<string>;
|
|
9
9
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
10
10
|
};
|
|
11
|
-
render(): JSX.Element;
|
|
11
|
+
render(): React.JSX.Element;
|
|
12
12
|
}
|
|
13
13
|
export { default as Row } from './row';
|
|
14
14
|
export { default as Col } from './col';
|
package/dist/grid/row.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ReactNode } from 'react';
|
|
1
|
+
import React, { Component, ReactNode } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
declare const ModifierType: PropTypes.Requireable<string>;
|
|
4
4
|
type ModifierType = 'xs' | 'sm' | 'md' | 'lg';
|
|
@@ -35,6 +35,6 @@ export default class Row extends Component<RowProps> {
|
|
|
35
35
|
className: PropTypes.Requireable<string>;
|
|
36
36
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
37
37
|
};
|
|
38
|
-
render(): JSX.Element;
|
|
38
|
+
render(): React.JSX.Element;
|
|
39
39
|
}
|
|
40
40
|
export {};
|
package/dist/group/group.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, HTMLAttributes } from 'react';
|
|
1
|
+
import React, { Component, HTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
/**
|
|
4
4
|
* @name Group
|
|
@@ -8,5 +8,5 @@ export default class Group extends Component<HTMLAttributes<HTMLSpanElement>> {
|
|
|
8
8
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
9
9
|
className: PropTypes.Requireable<string>;
|
|
10
10
|
};
|
|
11
|
-
render(): JSX.Element;
|
|
11
|
+
render(): React.JSX.Element;
|
|
12
12
|
}
|
package/dist/header/header.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, HTMLAttributes } from 'react';
|
|
1
|
+
import React, { Component, HTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Theme from '../global/theme';
|
|
4
4
|
interface HeaderProps extends HTMLAttributes<HTMLElement> {
|
|
@@ -21,7 +21,7 @@ declare class Header extends Component<HeaderProps> {
|
|
|
21
21
|
spaced: boolean;
|
|
22
22
|
theme: Theme;
|
|
23
23
|
};
|
|
24
|
-
render(): JSX.Element;
|
|
24
|
+
render(): React.JSX.Element;
|
|
25
25
|
}
|
|
26
26
|
export type HeaderAttrs = JSX.LibraryManagedAttributes<typeof Header, HeaderProps>;
|
|
27
27
|
export default Header;
|
package/dist/header/logo.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { IconAttrs, Size } from '../icon/icon';
|
|
4
4
|
export default class Logo extends PureComponent<IconAttrs> {
|
|
@@ -10,5 +10,5 @@ export default class Logo extends PureComponent<IconAttrs> {
|
|
|
10
10
|
suppressSizeWarning: boolean;
|
|
11
11
|
};
|
|
12
12
|
static Size: typeof Size;
|
|
13
|
-
render(): JSX.Element;
|
|
13
|
+
render(): React.JSX.Element;
|
|
14
14
|
}
|
package/dist/header/profile.d.ts
CHANGED
|
@@ -70,6 +70,6 @@ export default class Profile extends PureComponent<ProfileProps> {
|
|
|
70
70
|
static contextType: React.Context<import("../i18n/i18n-context").I18nContextProps>;
|
|
71
71
|
context: React.ContextType<typeof Profile.contextType>;
|
|
72
72
|
static Size: typeof Size;
|
|
73
|
-
render(): string | number | boolean | JSX.Element | React.ReactFragment | null | undefined;
|
|
73
|
+
render(): string | number | boolean | React.JSX.Element | React.ReactFragment | null | undefined;
|
|
74
74
|
}
|
|
75
75
|
export type ProfileAttrs = JSX.LibraryManagedAttributes<typeof Profile, ProfileProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { LinkProps } from '../link/link';
|
|
4
4
|
export interface Service {
|
|
@@ -21,5 +21,5 @@ export default class ServicesLink extends PureComponent<ServicesLinkProps> {
|
|
|
21
21
|
name: PropTypes.Requireable<string>;
|
|
22
22
|
}>>;
|
|
23
23
|
};
|
|
24
|
-
render(): JSX.Element;
|
|
24
|
+
render(): React.JSX.Element;
|
|
25
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes, PureComponent } from 'react';
|
|
1
|
+
import React, { HTMLAttributes, PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Theme from '../global/theme';
|
|
4
4
|
import ServicesLink, { Service } from './services-link';
|
|
@@ -29,5 +29,5 @@ export default class Services extends PureComponent<ServicesProps> {
|
|
|
29
29
|
};
|
|
30
30
|
static Link: typeof ServicesLink;
|
|
31
31
|
serviceIsActive: (service: Service) => boolean;
|
|
32
|
-
render(): JSX.Element;
|
|
32
|
+
render(): React.JSX.Element;
|
|
33
33
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
1
|
+
import React, { PureComponent } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Auth, { AuthUser } from '../auth/auth';
|
|
4
4
|
import { Size } from '../avatar/avatar';
|
|
@@ -31,6 +31,6 @@ export default class SmartProfile extends PureComponent<SmartProfileProps, Smart
|
|
|
31
31
|
onRevertPostponement: () => void;
|
|
32
32
|
requestUser(): Promise<void>;
|
|
33
33
|
checkUserCertificateMismatch(user: AuthUser): void;
|
|
34
|
-
render(): JSX.Element;
|
|
34
|
+
render(): React.JSX.Element;
|
|
35
35
|
}
|
|
36
36
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, HTMLAttributes } from 'react';
|
|
1
|
+
import React, { Component, HTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Auth from '../auth/auth';
|
|
4
4
|
import HTTP from '../http/http';
|
|
@@ -21,5 +21,5 @@ export default class SmartServices extends Component<SmartServicesProps> {
|
|
|
21
21
|
stopLoading: () => void;
|
|
22
22
|
getServicesContent: () => void;
|
|
23
23
|
getServices(fields: string): Promise<any> | undefined;
|
|
24
|
-
render(): JSX.Element | null;
|
|
24
|
+
render(): React.JSX.Element | null;
|
|
25
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { ButtonAttrs } from '../button/button';
|
|
4
4
|
import { IconType } from '../icon/icon';
|
|
@@ -28,5 +28,5 @@ export default class TrayIcon extends Component<ButtonAttrs & TrayIconSpecificPr
|
|
|
28
28
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
29
29
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
30
|
};
|
|
31
|
-
render(): JSX.Element;
|
|
31
|
+
render(): React.JSX.Element;
|
|
32
32
|
}
|
package/dist/header/tray.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Component, HTMLAttributes } from 'react';
|
|
1
|
+
import React, { Component, HTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export default class Tray extends Component<HTMLAttributes<HTMLElement>> {
|
|
4
4
|
static propTypes: {
|
|
5
5
|
className: PropTypes.Requireable<string>;
|
|
6
6
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
7
7
|
};
|
|
8
|
-
render(): JSX.Element;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
9
|
}
|
package/dist/heading/heading.js
CHANGED
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import deprecate from 'util-deprecate';
|
|
6
6
|
|
|
7
|
-
var modules_901b77ec = {"light":"
|
|
7
|
+
var modules_901b77ec = {"light":"light_rui_2ac4","heading":"heading_rui_4b24 font_rui_8bff","caps":"caps_rui_4b24"};
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @name Heading
|
package/dist/icon/icon.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name Icon
|
|
3
3
|
*/
|
|
4
|
-
import { PureComponent, ComponentType, SVGAttributes, HTMLAttributes } from 'react';
|
|
4
|
+
import React, { PureComponent, ComponentType, SVGAttributes, HTMLAttributes } from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { Color, Size } from './icon__constants';
|
|
7
7
|
export type IconType = ComponentType<SVGAttributes<SVGSVGElement>>;
|
|
@@ -37,7 +37,7 @@ export default class Icon extends PureComponent<IconProps> {
|
|
|
37
37
|
width: number | undefined;
|
|
38
38
|
height: number | undefined;
|
|
39
39
|
} | undefined;
|
|
40
|
-
render(): JSX.Element | null;
|
|
40
|
+
render(): React.JSX.Element | null;
|
|
41
41
|
}
|
|
42
42
|
export type IconAttrs = JSX.LibraryManagedAttributes<typeof Icon, IconProps>;
|
|
43
43
|
export { Color, Size };
|