@jetbrains/ring-ui-built 7.0.114 → 7.0.116
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/_helpers/heading.js +2 -2
- package/components/_helpers/theme.js +1 -1
- package/components/alert/alert.js +1 -1
- package/components/auth/iframe-flow.js +1 -1
- package/components/collapsible-group/collapsible-group.d.ts +16 -0
- package/components/collapsible-group/collapsible-group.js +381 -0
- package/components/date-picker/date-picker.js +24 -12
- package/components/date-picker/date-popup.js +3 -3
- package/components/date-picker/months.js +1 -0
- package/components/date-picker/use-scroll-behavior.js +1 -0
- package/components/date-picker/years.js +1 -0
- package/components/dropdown-menu/dropdown-menu.js +6 -6
- package/components/editable-heading/editable-heading.js +120 -107
- package/components/expand/collapsible-group.d.ts +8 -16
- package/components/expand/collapsible-group.js +33 -363
- package/components/global/theme.js +1 -1
- package/components/global/use-event-callback.d.ts +3 -0
- package/components/global/use-event-callback.js +8 -3
- package/components/header/header.js +1 -1
- package/components/heading/heading.js +3 -3
- package/components/markdown/markdown.js +2 -2
- package/components/message/message.js +1 -1
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/popup/popup.js +1 -1
- package/components/radio/radio-item.js +2 -2
- package/components/slider/slider.js +1 -0
- package/components/style.css +1 -1
- package/components/tooltip/tooltip.js +1 -1
- package/components/user-agreement/service.js +6 -6
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var headingStyles = {"contentWithHeadings":"ring-heading-contentWithHeadings","heading":"ring-heading-heading ring-global-font ring-heading-contentWithHeadings","caps":"ring-heading-caps","bold":"ring-heading-bold"};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { headingStyles as h };
|
|
@@ -279,4 +279,4 @@ const ThemeProvider = /*#__PURE__*/forwardRef(function ThemeProvider(props, ref)
|
|
|
279
279
|
});
|
|
280
280
|
var Theme$1 = Theme;
|
|
281
281
|
|
|
282
|
-
export { GLOBAL_DARK_CLASS_NAME as G, Theme$1 as T, WithThemeClasses as W,
|
|
282
|
+
export { GLOBAL_DARK_CLASS_NAME as G, Theme$1 as T, WithThemeClasses as W, ThemeProvider as a, ThemeContext as b, applyTheme as c, darkStyles as d, useThemeClasses as e, useTheme as u };
|
|
@@ -9,7 +9,7 @@ import LoaderInline from '../loader-inline/loader-inline.js';
|
|
|
9
9
|
import { getRect } from '../global/dom.js';
|
|
10
10
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
11
11
|
import { Button } from '../button/button.js';
|
|
12
|
-
import { T as Theme,
|
|
12
|
+
import { T as Theme, a as ThemeProvider } from '../_helpers/theme.js';
|
|
13
13
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
14
14
|
export { default as Container } from './container.js';
|
|
15
15
|
import { Color } from '../icon/icon.constants.js';
|
|
@@ -52,8 +52,8 @@ import '../loader-screen/loader-screen.js';
|
|
|
52
52
|
import '../loader/loader.js';
|
|
53
53
|
import '../_helpers/loader-core.js';
|
|
54
54
|
import './background-flow.js';
|
|
55
|
-
import '../global/url.js';
|
|
56
55
|
import '../_helpers/link.js';
|
|
56
|
+
import '../global/url.js';
|
|
57
57
|
|
|
58
58
|
class IFrameFlow {
|
|
59
59
|
hideDialog = null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CollapsibleGroupProps {
|
|
3
|
+
avatar?: React.ReactNode;
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
subtitle?: React.ReactNode;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
className?: string | null | undefined;
|
|
8
|
+
defaultExpanded?: boolean;
|
|
9
|
+
expanded?: boolean | null | undefined;
|
|
10
|
+
onChange?: (expanded: boolean) => void;
|
|
11
|
+
disableAnimation?: boolean;
|
|
12
|
+
interactive?: boolean;
|
|
13
|
+
'data-test'?: string | null | undefined;
|
|
14
|
+
}
|
|
15
|
+
declare const CollapsibleGroup: React.ForwardRefExoticComponent<CollapsibleGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export default CollapsibleGroup;
|
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
|
+
import { forwardRef, useState, useContext } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import chevronRightIcon from '@jetbrains/icons/chevron-12px-right';
|
|
5
|
+
import chevron12pxDown from '@jetbrains/icons/chevron-12px-down';
|
|
6
|
+
import Icon from '../icon/icon.js';
|
|
7
|
+
import { Collapse } from '../collapse/collapse.js';
|
|
8
|
+
import { CollapseContent } from '../collapse/collapse-content.js';
|
|
9
|
+
import { CollapseContext } from '../collapse/collapse-context.js';
|
|
10
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
|
+
import 'util-deprecate';
|
|
12
|
+
import '../icon/icon.constants.js';
|
|
13
|
+
import '../_helpers/icon-svg.js';
|
|
14
|
+
import '../global/memoize.js';
|
|
15
|
+
import '../collapse/consts.js';
|
|
16
|
+
import '../global/data-tests.js';
|
|
17
|
+
import '../global/dom.js';
|
|
18
|
+
import '../collapse/utils.js';
|
|
19
|
+
|
|
20
|
+
var styles = {"expand":"ring-collapsible-group-expand","collapseRoot":"ring-collapsible-group-collapseRoot","hovered":"ring-collapsible-group-hovered","expanded":"ring-collapsible-group-expanded","focused":"ring-collapsible-group-focused","header":"ring-collapsible-group-header","headerButton":"ring-collapsible-group-headerButton","headerStatic":"ring-collapsible-group-headerStatic","headerContent":"ring-collapsible-group-headerContent","avatarGroup":"ring-collapsible-group-avatarGroup","title":"ring-collapsible-group-title","subtitleGroup":"ring-collapsible-group-subtitleGroup","subtitle":"ring-collapsible-group-subtitle","subtitleChevron":"ring-collapsible-group-subtitleChevron","toggle":"ring-collapsible-group-toggle","toggleIcon":"ring-collapsible-group-toggleIcon","body":"ring-collapsible-group-body"};
|
|
21
|
+
|
|
22
|
+
function CollapsibleGroupHeaderContent(t0) {
|
|
23
|
+
const $ = c(16);
|
|
24
|
+
if ($[0] !== "248ebb691e89143680b26b525c22d5d37f19214f4f7f322680c1c724fd0796c3") {
|
|
25
|
+
for (let $i = 0; $i < 16; $i += 1) {
|
|
26
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
27
|
+
}
|
|
28
|
+
$[0] = "248ebb691e89143680b26b525c22d5d37f19214f4f7f322680c1c724fd0796c3";
|
|
29
|
+
}
|
|
30
|
+
const {
|
|
31
|
+
avatar,
|
|
32
|
+
titleContent,
|
|
33
|
+
subtitle
|
|
34
|
+
} = t0;
|
|
35
|
+
const {
|
|
36
|
+
collapsed
|
|
37
|
+
} = useContext(CollapseContext);
|
|
38
|
+
let t1;
|
|
39
|
+
if ($[1] !== titleContent) {
|
|
40
|
+
t1 = /*#__PURE__*/jsx("span", {
|
|
41
|
+
className: styles.title,
|
|
42
|
+
children: titleContent
|
|
43
|
+
});
|
|
44
|
+
$[1] = titleContent;
|
|
45
|
+
$[2] = t1;
|
|
46
|
+
} else {
|
|
47
|
+
t1 = $[2];
|
|
48
|
+
}
|
|
49
|
+
let t2;
|
|
50
|
+
if ($[3] !== avatar || $[4] !== t1) {
|
|
51
|
+
t2 = /*#__PURE__*/jsxs("span", {
|
|
52
|
+
className: styles.avatarGroup,
|
|
53
|
+
children: [avatar, t1]
|
|
54
|
+
});
|
|
55
|
+
$[3] = avatar;
|
|
56
|
+
$[4] = t1;
|
|
57
|
+
$[5] = t2;
|
|
58
|
+
} else {
|
|
59
|
+
t2 = $[5];
|
|
60
|
+
}
|
|
61
|
+
let t3;
|
|
62
|
+
if ($[6] !== subtitle) {
|
|
63
|
+
t3 = subtitle ? /*#__PURE__*/jsxs("span", {
|
|
64
|
+
className: styles.subtitleGroup,
|
|
65
|
+
children: [/*#__PURE__*/jsx(Icon, {
|
|
66
|
+
className: styles.subtitleChevron,
|
|
67
|
+
glyph: chevronRightIcon,
|
|
68
|
+
"aria-hidden": true
|
|
69
|
+
}), /*#__PURE__*/jsx("span", {
|
|
70
|
+
className: styles.subtitle,
|
|
71
|
+
children: subtitle
|
|
72
|
+
})]
|
|
73
|
+
}) : null;
|
|
74
|
+
$[6] = subtitle;
|
|
75
|
+
$[7] = t3;
|
|
76
|
+
} else {
|
|
77
|
+
t3 = $[7];
|
|
78
|
+
}
|
|
79
|
+
let t4;
|
|
80
|
+
if ($[8] !== t2 || $[9] !== t3) {
|
|
81
|
+
t4 = /*#__PURE__*/jsxs("span", {
|
|
82
|
+
className: styles.headerContent,
|
|
83
|
+
children: [t2, t3]
|
|
84
|
+
});
|
|
85
|
+
$[8] = t2;
|
|
86
|
+
$[9] = t3;
|
|
87
|
+
$[10] = t4;
|
|
88
|
+
} else {
|
|
89
|
+
t4 = $[10];
|
|
90
|
+
}
|
|
91
|
+
const t5 = collapsed ? chevronRightIcon : chevron12pxDown;
|
|
92
|
+
let t6;
|
|
93
|
+
if ($[11] !== t5) {
|
|
94
|
+
t6 = /*#__PURE__*/jsx("span", {
|
|
95
|
+
className: styles.toggle,
|
|
96
|
+
"aria-hidden": true,
|
|
97
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
98
|
+
className: styles.toggleIcon,
|
|
99
|
+
glyph: t5
|
|
100
|
+
})
|
|
101
|
+
});
|
|
102
|
+
$[11] = t5;
|
|
103
|
+
$[12] = t6;
|
|
104
|
+
} else {
|
|
105
|
+
t6 = $[12];
|
|
106
|
+
}
|
|
107
|
+
let t7;
|
|
108
|
+
if ($[13] !== t4 || $[14] !== t6) {
|
|
109
|
+
t7 = /*#__PURE__*/jsxs("span", {
|
|
110
|
+
className: styles.header,
|
|
111
|
+
children: [t4, t6]
|
|
112
|
+
});
|
|
113
|
+
$[13] = t4;
|
|
114
|
+
$[14] = t6;
|
|
115
|
+
$[15] = t7;
|
|
116
|
+
} else {
|
|
117
|
+
t7 = $[15];
|
|
118
|
+
}
|
|
119
|
+
return t7;
|
|
120
|
+
}
|
|
121
|
+
function CollapsibleGroupHeader(t0) {
|
|
122
|
+
const $ = c(16);
|
|
123
|
+
if ($[0] !== "248ebb691e89143680b26b525c22d5d37f19214f4f7f322680c1c724fd0796c3") {
|
|
124
|
+
for (let $i = 0; $i < 16; $i += 1) {
|
|
125
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
126
|
+
}
|
|
127
|
+
$[0] = "248ebb691e89143680b26b525c22d5d37f19214f4f7f322680c1c724fd0796c3";
|
|
128
|
+
}
|
|
129
|
+
let avatar;
|
|
130
|
+
let buttonProps;
|
|
131
|
+
let subtitle;
|
|
132
|
+
let titleContent;
|
|
133
|
+
if ($[1] !== t0) {
|
|
134
|
+
({
|
|
135
|
+
avatar,
|
|
136
|
+
titleContent,
|
|
137
|
+
subtitle,
|
|
138
|
+
...buttonProps
|
|
139
|
+
} = t0);
|
|
140
|
+
$[1] = t0;
|
|
141
|
+
$[2] = avatar;
|
|
142
|
+
$[3] = buttonProps;
|
|
143
|
+
$[4] = subtitle;
|
|
144
|
+
$[5] = titleContent;
|
|
145
|
+
} else {
|
|
146
|
+
avatar = $[2];
|
|
147
|
+
buttonProps = $[3];
|
|
148
|
+
subtitle = $[4];
|
|
149
|
+
titleContent = $[5];
|
|
150
|
+
}
|
|
151
|
+
const {
|
|
152
|
+
setCollapsed,
|
|
153
|
+
collapsed,
|
|
154
|
+
id
|
|
155
|
+
} = useContext(CollapseContext);
|
|
156
|
+
const t1 = `collapse-content-${id}`;
|
|
157
|
+
const t2 = !collapsed;
|
|
158
|
+
let t3;
|
|
159
|
+
if ($[6] !== avatar || $[7] !== subtitle || $[8] !== titleContent) {
|
|
160
|
+
t3 = /*#__PURE__*/jsx(CollapsibleGroupHeaderContent, {
|
|
161
|
+
avatar: avatar,
|
|
162
|
+
titleContent: titleContent,
|
|
163
|
+
subtitle: subtitle
|
|
164
|
+
});
|
|
165
|
+
$[6] = avatar;
|
|
166
|
+
$[7] = subtitle;
|
|
167
|
+
$[8] = titleContent;
|
|
168
|
+
$[9] = t3;
|
|
169
|
+
} else {
|
|
170
|
+
t3 = $[9];
|
|
171
|
+
}
|
|
172
|
+
let t4;
|
|
173
|
+
if ($[10] !== buttonProps || $[11] !== setCollapsed || $[12] !== t1 || $[13] !== t2 || $[14] !== t3) {
|
|
174
|
+
t4 = /*#__PURE__*/jsx("button", {
|
|
175
|
+
type: "button",
|
|
176
|
+
...buttonProps,
|
|
177
|
+
className: styles.headerButton,
|
|
178
|
+
onClick: setCollapsed,
|
|
179
|
+
"aria-controls": t1,
|
|
180
|
+
"aria-expanded": t2,
|
|
181
|
+
children: t3
|
|
182
|
+
});
|
|
183
|
+
$[10] = buttonProps;
|
|
184
|
+
$[11] = setCollapsed;
|
|
185
|
+
$[12] = t1;
|
|
186
|
+
$[13] = t2;
|
|
187
|
+
$[14] = t3;
|
|
188
|
+
$[15] = t4;
|
|
189
|
+
} else {
|
|
190
|
+
t4 = $[15];
|
|
191
|
+
}
|
|
192
|
+
return t4;
|
|
193
|
+
}
|
|
194
|
+
function CollapsibleGroupHeaderStatic(t0) {
|
|
195
|
+
const $ = c(5);
|
|
196
|
+
if ($[0] !== "248ebb691e89143680b26b525c22d5d37f19214f4f7f322680c1c724fd0796c3") {
|
|
197
|
+
for (let $i = 0; $i < 5; $i += 1) {
|
|
198
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
199
|
+
}
|
|
200
|
+
$[0] = "248ebb691e89143680b26b525c22d5d37f19214f4f7f322680c1c724fd0796c3";
|
|
201
|
+
}
|
|
202
|
+
const {
|
|
203
|
+
avatar,
|
|
204
|
+
titleContent,
|
|
205
|
+
subtitle
|
|
206
|
+
} = t0;
|
|
207
|
+
let t1;
|
|
208
|
+
if ($[1] !== avatar || $[2] !== subtitle || $[3] !== titleContent) {
|
|
209
|
+
t1 = /*#__PURE__*/jsx("span", {
|
|
210
|
+
className: styles.headerStatic,
|
|
211
|
+
children: /*#__PURE__*/jsx(CollapsibleGroupHeaderContent, {
|
|
212
|
+
avatar: avatar,
|
|
213
|
+
titleContent: titleContent,
|
|
214
|
+
subtitle: subtitle
|
|
215
|
+
})
|
|
216
|
+
});
|
|
217
|
+
$[1] = avatar;
|
|
218
|
+
$[2] = subtitle;
|
|
219
|
+
$[3] = titleContent;
|
|
220
|
+
$[4] = t1;
|
|
221
|
+
} else {
|
|
222
|
+
t1 = $[4];
|
|
223
|
+
}
|
|
224
|
+
return t1;
|
|
225
|
+
}
|
|
226
|
+
const CollapsibleGroup = /*#__PURE__*/forwardRef((t0, ref) => {
|
|
227
|
+
const $ = c(29);
|
|
228
|
+
if ($[0] !== "248ebb691e89143680b26b525c22d5d37f19214f4f7f322680c1c724fd0796c3") {
|
|
229
|
+
for (let $i = 0; $i < 29; $i += 1) {
|
|
230
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
231
|
+
}
|
|
232
|
+
$[0] = "248ebb691e89143680b26b525c22d5d37f19214f4f7f322680c1c724fd0796c3";
|
|
233
|
+
}
|
|
234
|
+
const {
|
|
235
|
+
avatar,
|
|
236
|
+
title,
|
|
237
|
+
subtitle,
|
|
238
|
+
children,
|
|
239
|
+
className,
|
|
240
|
+
defaultExpanded: t1,
|
|
241
|
+
expanded: t2,
|
|
242
|
+
onChange: t3,
|
|
243
|
+
disableAnimation: t4,
|
|
244
|
+
interactive: t5,
|
|
245
|
+
"data-test": dataTest
|
|
246
|
+
} = t0;
|
|
247
|
+
const defaultExpanded = t1 === undefined ? false : t1;
|
|
248
|
+
const expanded = t2 === undefined ? null : t2;
|
|
249
|
+
const onChange = t3 === undefined ? _temp : t3;
|
|
250
|
+
const disableAnimation = t4 === undefined ? false : t4;
|
|
251
|
+
const interactive = t5 === undefined ? true : t5;
|
|
252
|
+
const [innerExpanded, setInnerExpanded] = useState(defaultExpanded);
|
|
253
|
+
const [hovered, setHovered] = useState(false);
|
|
254
|
+
const [focused, setFocused] = useState(false);
|
|
255
|
+
const isExpanded = expanded !== null && expanded !== void 0 ? expanded : innerExpanded;
|
|
256
|
+
let t6;
|
|
257
|
+
if ($[1] !== expanded || $[2] !== onChange) {
|
|
258
|
+
t6 = collapsed => {
|
|
259
|
+
const nextExpanded = !collapsed;
|
|
260
|
+
if (expanded == null) {
|
|
261
|
+
setInnerExpanded(nextExpanded);
|
|
262
|
+
}
|
|
263
|
+
onChange(nextExpanded);
|
|
264
|
+
};
|
|
265
|
+
$[1] = expanded;
|
|
266
|
+
$[2] = onChange;
|
|
267
|
+
$[3] = t6;
|
|
268
|
+
} else {
|
|
269
|
+
t6 = $[3];
|
|
270
|
+
}
|
|
271
|
+
const handleChange = t6;
|
|
272
|
+
let t7;
|
|
273
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
274
|
+
t7 = event => {
|
|
275
|
+
const nextTarget = event.relatedTarget;
|
|
276
|
+
if (nextTarget instanceof Node && event.currentTarget.contains(nextTarget)) {
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
setFocused(false);
|
|
280
|
+
};
|
|
281
|
+
$[4] = t7;
|
|
282
|
+
} else {
|
|
283
|
+
t7 = $[4];
|
|
284
|
+
}
|
|
285
|
+
const onBlur = t7;
|
|
286
|
+
let t8;
|
|
287
|
+
if ($[5] !== className || $[6] !== focused || $[7] !== hovered || $[8] !== isExpanded) {
|
|
288
|
+
t8 = classNames(styles.expand, className, {
|
|
289
|
+
[styles.hovered]: hovered,
|
|
290
|
+
[styles.expanded]: isExpanded,
|
|
291
|
+
[styles.focused]: focused
|
|
292
|
+
});
|
|
293
|
+
$[5] = className;
|
|
294
|
+
$[6] = focused;
|
|
295
|
+
$[7] = hovered;
|
|
296
|
+
$[8] = isExpanded;
|
|
297
|
+
$[9] = t8;
|
|
298
|
+
} else {
|
|
299
|
+
t8 = $[9];
|
|
300
|
+
}
|
|
301
|
+
const classes = t8;
|
|
302
|
+
const t9 = !defaultExpanded;
|
|
303
|
+
const t10 = expanded == null ? null : !expanded;
|
|
304
|
+
let t11;
|
|
305
|
+
if ($[10] !== avatar || $[11] !== interactive || $[12] !== subtitle || $[13] !== title) {
|
|
306
|
+
t11 = interactive ? /*#__PURE__*/jsx(CollapsibleGroupHeader, {
|
|
307
|
+
avatar: avatar,
|
|
308
|
+
titleContent: title,
|
|
309
|
+
subtitle: subtitle,
|
|
310
|
+
onMouseEnter: () => setHovered(true),
|
|
311
|
+
onMouseLeave: () => setHovered(false),
|
|
312
|
+
onFocus: () => setFocused(true),
|
|
313
|
+
onBlur: onBlur
|
|
314
|
+
}) : /*#__PURE__*/jsx(CollapsibleGroupHeaderStatic, {
|
|
315
|
+
avatar: avatar,
|
|
316
|
+
titleContent: title,
|
|
317
|
+
subtitle: subtitle
|
|
318
|
+
});
|
|
319
|
+
$[10] = avatar;
|
|
320
|
+
$[11] = interactive;
|
|
321
|
+
$[12] = subtitle;
|
|
322
|
+
$[13] = title;
|
|
323
|
+
$[14] = t11;
|
|
324
|
+
} else {
|
|
325
|
+
t11 = $[14];
|
|
326
|
+
}
|
|
327
|
+
let t12;
|
|
328
|
+
if ($[15] !== children) {
|
|
329
|
+
t12 = /*#__PURE__*/jsx(CollapseContent, {
|
|
330
|
+
children: /*#__PURE__*/jsx("div", {
|
|
331
|
+
className: styles.body,
|
|
332
|
+
children: children
|
|
333
|
+
})
|
|
334
|
+
});
|
|
335
|
+
$[15] = children;
|
|
336
|
+
$[16] = t12;
|
|
337
|
+
} else {
|
|
338
|
+
t12 = $[16];
|
|
339
|
+
}
|
|
340
|
+
let t13;
|
|
341
|
+
if ($[17] !== disableAnimation || $[18] !== handleChange || $[19] !== t10 || $[20] !== t11 || $[21] !== t12 || $[22] !== t9) {
|
|
342
|
+
t13 = /*#__PURE__*/jsxs(Collapse, {
|
|
343
|
+
defaultCollapsed: t9,
|
|
344
|
+
collapsed: t10,
|
|
345
|
+
onChange: handleChange,
|
|
346
|
+
disableAnimation: disableAnimation,
|
|
347
|
+
className: styles.collapseRoot,
|
|
348
|
+
children: [t11, t12]
|
|
349
|
+
});
|
|
350
|
+
$[17] = disableAnimation;
|
|
351
|
+
$[18] = handleChange;
|
|
352
|
+
$[19] = t10;
|
|
353
|
+
$[20] = t11;
|
|
354
|
+
$[21] = t12;
|
|
355
|
+
$[22] = t9;
|
|
356
|
+
$[23] = t13;
|
|
357
|
+
} else {
|
|
358
|
+
t13 = $[23];
|
|
359
|
+
}
|
|
360
|
+
let t14;
|
|
361
|
+
if ($[24] !== classes || $[25] !== dataTest || $[26] !== ref || $[27] !== t13) {
|
|
362
|
+
t14 = /*#__PURE__*/jsx("div", {
|
|
363
|
+
ref: ref,
|
|
364
|
+
className: classes,
|
|
365
|
+
"data-test": dataTest,
|
|
366
|
+
children: t13
|
|
367
|
+
});
|
|
368
|
+
$[24] = classes;
|
|
369
|
+
$[25] = dataTest;
|
|
370
|
+
$[26] = ref;
|
|
371
|
+
$[27] = t13;
|
|
372
|
+
$[28] = t14;
|
|
373
|
+
} else {
|
|
374
|
+
t14 = $[28];
|
|
375
|
+
}
|
|
376
|
+
return t14;
|
|
377
|
+
});
|
|
378
|
+
CollapsibleGroup.displayName = 'CollapsibleGroup';
|
|
379
|
+
function _temp() {}
|
|
380
|
+
|
|
381
|
+
export { CollapsibleGroup as default };
|
|
@@ -92,11 +92,11 @@ import './month-slider.js';
|
|
|
92
92
|
|
|
93
93
|
const PopupComponent = t0 => {
|
|
94
94
|
const $ = c(20);
|
|
95
|
-
if ($[0] !== "
|
|
95
|
+
if ($[0] !== "9234d8ca8b34a5b7faad566d500afe9eaca1e8773f78755a6a2c893b2294c421") {
|
|
96
96
|
for (let $i = 0; $i < 20; $i += 1) {
|
|
97
97
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
98
98
|
}
|
|
99
|
-
$[0] = "
|
|
99
|
+
$[0] = "9234d8ca8b34a5b7faad566d500afe9eaca1e8773f78755a6a2c893b2294c421";
|
|
100
100
|
}
|
|
101
101
|
let className;
|
|
102
102
|
let datePopupProps;
|
|
@@ -260,8 +260,18 @@ class DatePicker extends PureComponent {
|
|
|
260
260
|
withTime,
|
|
261
261
|
applyTimeInput
|
|
262
262
|
} = this.props;
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
if (withTime && !(change instanceof Date) && change && 'date' in change && 'time' in change) {
|
|
264
|
+
const {
|
|
265
|
+
date,
|
|
266
|
+
time
|
|
267
|
+
} = change;
|
|
268
|
+
if (date) {
|
|
269
|
+
const dateWithTime = applyTimeInput(date, time);
|
|
270
|
+
onChange(dateWithTime);
|
|
271
|
+
}
|
|
272
|
+
} else {
|
|
273
|
+
onChange(change);
|
|
274
|
+
}
|
|
265
275
|
};
|
|
266
276
|
clear = () => {
|
|
267
277
|
let change = null;
|
|
@@ -282,16 +292,18 @@ class DatePicker extends PureComponent {
|
|
|
282
292
|
this.popup?._onCloseAttempt();
|
|
283
293
|
};
|
|
284
294
|
parse = memoize(date => {
|
|
285
|
-
|
|
286
|
-
parseDateInput
|
|
287
|
-
} = this.props;
|
|
295
|
+
let normalizedDate;
|
|
288
296
|
if (date instanceof Date) {
|
|
289
|
-
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
297
|
+
normalizedDate = date;
|
|
298
|
+
} else if (typeof date === 'number') {
|
|
299
|
+
normalizedDate = new Date(date);
|
|
300
|
+
} else {
|
|
301
|
+
const {
|
|
302
|
+
parseDateInput
|
|
303
|
+
} = this.props;
|
|
304
|
+
normalizedDate = parseDateInput(date);
|
|
293
305
|
}
|
|
294
|
-
return
|
|
306
|
+
return normalizedDate && isValid(normalizedDate) ? normalizedDate : null;
|
|
295
307
|
});
|
|
296
308
|
formatTime() {
|
|
297
309
|
const {
|
|
@@ -47,9 +47,6 @@ import 'date-fns/addDays';
|
|
|
47
47
|
import 'date-fns/getDate';
|
|
48
48
|
import 'date-fns/isSameDay';
|
|
49
49
|
import 'date-fns/isToday';
|
|
50
|
-
import 'date-fns/add';
|
|
51
|
-
import '../global/sniffer.js';
|
|
52
|
-
import 'sniffr';
|
|
53
50
|
import './use-intersection-observer.js';
|
|
54
51
|
import './scroll-arith.js';
|
|
55
52
|
import './use-scroll-behavior.js';
|
|
@@ -62,6 +59,9 @@ import 'date-fns/isThisYear';
|
|
|
62
59
|
import 'date-fns/setYear';
|
|
63
60
|
import 'date-fns/startOfYear';
|
|
64
61
|
import 'date-fns/setDay';
|
|
62
|
+
import 'date-fns/add';
|
|
63
|
+
import '../global/sniffer.js';
|
|
64
|
+
import 'sniffr';
|
|
65
65
|
import 'date-fns/isThisMonth';
|
|
66
66
|
import '../global/linear-function.js';
|
|
67
67
|
import './month-slider.js';
|
|
@@ -27,6 +27,7 @@ import 'date-fns/add';
|
|
|
27
27
|
import '../global/sniffer.js';
|
|
28
28
|
import 'sniffr';
|
|
29
29
|
import '../global/use-event-callback.js';
|
|
30
|
+
import 'util-deprecate';
|
|
30
31
|
|
|
31
32
|
function getMonthHeightWithMargin(date, locale) {
|
|
32
33
|
return units.unit * 2 + getMonthHeight(date, locale);
|
|
@@ -50,20 +50,20 @@ import '../global/get-event-key.js';
|
|
|
50
50
|
import '../list/list-title.js';
|
|
51
51
|
import '../list/list-separator.js';
|
|
52
52
|
import '../list/list-hint.js';
|
|
53
|
-
import '../button/button.js';
|
|
54
|
-
import '@jetbrains/icons/chevron-down';
|
|
55
|
-
import '@jetbrains/icons/chevron-12px-down';
|
|
56
|
-
import '../global/controls-height.js';
|
|
57
|
-
import '../global/configuration.js';
|
|
58
|
-
import '../_helpers/button.classes.js';
|
|
59
53
|
import '../popup/popup.js';
|
|
60
54
|
import 'react-dom';
|
|
61
55
|
import '../tab-trap/tab-trap.js';
|
|
56
|
+
import '../global/configuration.js';
|
|
62
57
|
import '../popup/position.js';
|
|
63
58
|
import '../popup/popup.consts.js';
|
|
64
59
|
import '../popup/popup.target.js';
|
|
65
60
|
import '../popup/position-css.js';
|
|
66
61
|
import '../_helpers/theme.js';
|
|
62
|
+
import '../button/button.js';
|
|
63
|
+
import '@jetbrains/icons/chevron-down';
|
|
64
|
+
import '@jetbrains/icons/chevron-12px-down';
|
|
65
|
+
import '../global/controls-height.js';
|
|
66
|
+
import '../_helpers/button.classes.js';
|
|
67
67
|
|
|
68
68
|
const defaultAriaLabel = 'Dropdown menu';
|
|
69
69
|
function DropdownAnchorWrapper(t0) {
|