@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,381 +1,51 @@
|
|
|
1
1
|
import { c } from 'react-compiler-runtime';
|
|
2
|
-
import { forwardRef
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
|
-
import 'util-deprecate';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import deprecate from 'util-deprecate';
|
|
4
|
+
import CollapsibleGroup from '../collapsible-group/collapsible-group.js';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
import 'classnames';
|
|
7
|
+
import '@jetbrains/icons/chevron-12px-right';
|
|
8
|
+
import '@jetbrains/icons/chevron-12px-down';
|
|
9
|
+
import '../icon/icon.js';
|
|
12
10
|
import '../icon/icon.constants.js';
|
|
13
11
|
import '../_helpers/icon-svg.js';
|
|
14
12
|
import '../global/memoize.js';
|
|
13
|
+
import '../collapse/collapse.js';
|
|
14
|
+
import '../collapse/collapse-context.js';
|
|
15
15
|
import '../collapse/consts.js';
|
|
16
|
+
import '../collapse/collapse-content.js';
|
|
16
17
|
import '../global/data-tests.js';
|
|
17
18
|
import '../global/dom.js';
|
|
18
19
|
import '../collapse/utils.js';
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
$
|
|
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) {
|
|
21
|
+
const warnDeprecation = deprecate(() => {}, '`CollapsibleGroup` from `@jetbrains/ring-ui/components/expand/collapsible-group` is deprecated and will be removed in Ring UI 8.0. Import it from `@jetbrains/ring-ui/components/collapsible-group/collapsible-group` instead.');
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated The `expand` module has been renamed to `collapsible-group`. This re-export will be removed in
|
|
24
|
+
* Ring UI 8.0. Use `CollapsibleGroup` from `@jetbrains/ring-ui/components/collapsible-group/collapsible-group` instead.
|
|
25
|
+
*/
|
|
26
|
+
const DeprecatedCollapsibleGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
27
|
+
const $ = c(4);
|
|
28
|
+
if ($[0] !== "dc9f603c6e591e91f020cc5faed8f169e693dd93fe948fc345146a82715c1a34") {
|
|
29
|
+
for (let $i = 0; $i < 4; $i += 1) {
|
|
230
30
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
231
31
|
}
|
|
232
|
-
$[0] = "
|
|
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];
|
|
32
|
+
$[0] = "dc9f603c6e591e91f020cc5faed8f169e693dd93fe948fc345146a82715c1a34";
|
|
359
33
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
34
|
+
warnDeprecation();
|
|
35
|
+
let t0;
|
|
36
|
+
if ($[1] !== props || $[2] !== ref) {
|
|
37
|
+
t0 = /*#__PURE__*/jsx(CollapsibleGroup, {
|
|
363
38
|
ref: ref,
|
|
364
|
-
|
|
365
|
-
"data-test": dataTest,
|
|
366
|
-
children: t13
|
|
39
|
+
...props
|
|
367
40
|
});
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
371
|
-
$[27] = t13;
|
|
372
|
-
$[28] = t14;
|
|
41
|
+
$[1] = props;
|
|
42
|
+
$[2] = ref;
|
|
43
|
+
$[3] = t0;
|
|
373
44
|
} else {
|
|
374
|
-
|
|
45
|
+
t0 = $[3];
|
|
375
46
|
}
|
|
376
|
-
return
|
|
47
|
+
return t0;
|
|
377
48
|
});
|
|
378
|
-
|
|
379
|
-
function _temp() {}
|
|
49
|
+
DeprecatedCollapsibleGroup.displayName = 'CollapsibleGroup';
|
|
380
50
|
|
|
381
|
-
export {
|
|
51
|
+
export { DeprecatedCollapsibleGroup as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'react-compiler-runtime';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
export { G as GLOBAL_DARK_CLASS_NAME,
|
|
4
|
+
export { G as GLOBAL_DARK_CLASS_NAME, b as ThemeContext, a as ThemeProvider, W as WithThemeClasses, c as applyTheme, T as default, u as useTheme, e as useThemeClasses } from '../_helpers/theme.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { c } from 'react-compiler-runtime';
|
|
2
2
|
import { useRef, useLayoutEffect } from 'react';
|
|
3
|
+
import deprecate from 'util-deprecate';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
const warnDeprecation = deprecate(() => {}, '`useEventCallback()` is deprecated and will be removed in Ring UI 8.0. Use `useEffectEvent()` instead.');
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated This hook will be removed in Ring UI 8.0. Use `useEffectEvent()` instead.
|
|
8
|
+
*/
|
|
5
9
|
function useEventCallback(fn) {
|
|
6
10
|
const $ = c(4);
|
|
7
|
-
if ($[0] !== "
|
|
11
|
+
if ($[0] !== "0b80c23a2d5918c2ff451ff50bb10512bd04bc56940e9524fa5677201ca31d22") {
|
|
8
12
|
for (let $i = 0; $i < 4; $i += 1) {
|
|
9
13
|
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
10
14
|
}
|
|
11
|
-
$[0] = "
|
|
15
|
+
$[0] = "0b80c23a2d5918c2ff451ff50bb10512bd04bc56940e9524fa5677201ca31d22";
|
|
12
16
|
}
|
|
17
|
+
warnDeprecation();
|
|
13
18
|
const ref = useRef(null);
|
|
14
19
|
let t0;
|
|
15
20
|
if ($[1] !== fn) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import { T as Theme,
|
|
3
|
+
import { T as Theme, a as ThemeProvider } from '../_helpers/theme.js';
|
|
4
4
|
import { s as styles } from '../_helpers/header.js';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
export { default as Logo } from './logo.js';
|
|
@@ -2,7 +2,7 @@ import { c } from 'react-compiler-runtime';
|
|
|
2
2
|
import { memo, useEffect } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import deprecate from 'util-deprecate';
|
|
5
|
-
import {
|
|
5
|
+
import { h as headingStyles } from '../_helpers/heading.js';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
var Levels;
|
|
@@ -46,7 +46,7 @@ const HeadingMemo = /*#__PURE__*/memo(function Heading(t0) {
|
|
|
46
46
|
const level = t1 === undefined ? Levels.H1 : t1;
|
|
47
47
|
let t2;
|
|
48
48
|
if ($[6] !== className) {
|
|
49
|
-
t2 = classNames(
|
|
49
|
+
t2 = classNames(headingStyles.heading, className);
|
|
50
50
|
$[6] = className;
|
|
51
51
|
$[7] = t2;
|
|
52
52
|
} else {
|
|
@@ -183,7 +183,7 @@ const H4 = /*#__PURE__*/memo(function H4(t0) {
|
|
|
183
183
|
let t1;
|
|
184
184
|
if ($[5] !== bold || $[6] !== className) {
|
|
185
185
|
t1 = classNames(className, {
|
|
186
|
-
[
|
|
186
|
+
[headingStyles.bold]: bold
|
|
187
187
|
});
|
|
188
188
|
$[5] = bold;
|
|
189
189
|
$[6] = className;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import {
|
|
3
|
+
import { h as headingStyles } from '../_helpers/heading.js';
|
|
4
4
|
import { l as linkStyles } from '../_helpers/link.js';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ class Markdown extends PureComponent {
|
|
|
13
13
|
children,
|
|
14
14
|
inline
|
|
15
15
|
} = this.props;
|
|
16
|
-
const classes = classNames(className,
|
|
16
|
+
const classes = classNames(className, headingStyles.contentWithHeadings, linkStyles.withLinks, {
|
|
17
17
|
[styles.markdown]: !inline,
|
|
18
18
|
[styles.inline]: inline
|
|
19
19
|
});
|
|
@@ -7,7 +7,7 @@ import { Directions } from '../popup/popup.consts.js';
|
|
|
7
7
|
import Icon from '../icon/icon.js';
|
|
8
8
|
import { Button } from '../button/button.js';
|
|
9
9
|
import { I18nContext } from '../i18n/i18n-context.js';
|
|
10
|
-
import { T as Theme, d as darkStyles, W as WithThemeClasses,
|
|
10
|
+
import { T as Theme, d as darkStyles, W as WithThemeClasses, a as ThemeProvider } from '../_helpers/theme.js';
|
|
11
11
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
12
12
|
import 'react-dom';
|
|
13
13
|
import '../global/get-uid.js';
|
|
@@ -6,11 +6,11 @@ const MAJOR_VERSION_INDEX = 0;
|
|
|
6
6
|
/**
|
|
7
7
|
* SUPPORTED_BROWSERS are defined by Babel plugin, see babel config
|
|
8
8
|
*/
|
|
9
|
-
if (!["and_chr 148", "and_ff 150", "and_qq 14.9", "and_uc 15.5", "android 148", "chrome 148", "chrome 147", "chrome 146", "chrome 145", "chrome 144", "chrome 143", "chrome 142", "chrome 141", "chrome 140", "chrome 139", "chrome 138", "chrome 137", "chrome 136", "chrome 135", "chrome 134", "chrome 133", "chrome 132", "chrome 131", "chrome 130", "chrome 129", "chrome 128", "chrome 127", "chrome 126", "chrome 125", "chrome 124", "chrome 123", "chrome 122", "chrome 121", "chrome 120", "chrome 112", "chrome 109", "edge 148", "edge 147", "edge 146", "edge 145", "edge 144", "edge 143", "edge 142", "edge 141", "edge 140", "edge 139", "edge 138", "edge 137", "edge 136", "edge 135", "edge 134", "edge 133", "edge 132", "edge 131", "edge 130", "edge 129", "edge 128", "edge 127", "edge 126", "edge 125", "edge 124", "edge 123", "edge 122", "edge 121", "edge 120", "firefox 150", "firefox 149", "firefox 148", "firefox 147", "firefox 146", "firefox 145", "firefox 144", "firefox 143", "firefox 142", "firefox 141", "firefox 140", "firefox 139", "firefox 138", "firefox 137", "firefox 136", "firefox 135", "firefox 134", "firefox 133", "firefox 132", "firefox 131", "firefox 130", "firefox 129", "firefox 128", "firefox 127", "firefox 126", "firefox 125", "firefox 124", "firefox 123", "firefox 122", "firefox 121", "
|
|
9
|
+
if (!["and_chr 148", "and_ff 150", "and_qq 14.9", "and_uc 15.5", "android 148", "chrome 149", "chrome 148", "chrome 147", "chrome 146", "chrome 145", "chrome 144", "chrome 143", "chrome 142", "chrome 141", "chrome 140", "chrome 139", "chrome 138", "chrome 137", "chrome 136", "chrome 135", "chrome 134", "chrome 133", "chrome 132", "chrome 131", "chrome 130", "chrome 129", "chrome 128", "chrome 127", "chrome 126", "chrome 125", "chrome 124", "chrome 123", "chrome 122", "chrome 121", "chrome 120", "chrome 118", "chrome 116", "chrome 112", "chrome 109", "edge 149", "edge 148", "edge 147", "edge 146", "edge 145", "edge 144", "edge 143", "edge 142", "edge 141", "edge 140", "edge 139", "edge 138", "edge 137", "edge 136", "edge 135", "edge 134", "edge 133", "edge 132", "edge 131", "edge 130", "edge 129", "edge 128", "edge 127", "edge 126", "edge 125", "edge 124", "edge 123", "edge 122", "edge 121", "edge 120", "firefox 151", "firefox 150", "firefox 149", "firefox 148", "firefox 147", "firefox 146", "firefox 145", "firefox 144", "firefox 143", "firefox 142", "firefox 141", "firefox 140", "firefox 139", "firefox 138", "firefox 137", "firefox 136", "firefox 135", "firefox 134", "firefox 133", "firefox 132", "firefox 131", "firefox 130", "firefox 129", "firefox 128", "firefox 127", "firefox 126", "firefox 125", "firefox 124", "firefox 123", "firefox 122", "firefox 121", "ios_saf 26.5", "ios_saf 26.4", "ios_saf 26.3", "ios_saf 26.2", "ios_saf 26.1", "ios_saf 26.0", "ios_saf 18.5-18.7", "ios_saf 18.4", "ios_saf 18.3", "ios_saf 18.2", "ios_saf 18.1", "ios_saf 18.0", "ios_saf 17.6-17.7", "ios_saf 17.5", "ios_saf 17.4", "ios_saf 17.3", "ios_saf 17.2", "kaios 3.0-3.1", "kaios 2.5", "op_mini all", "op_mob 80", "opera 131", "opera 127", "safari 26.4", "safari 26.3", "safari 26.2", "safari 26.1", "safari 26.0", "safari 18.5-18.7", "safari 18.4", "safari 18.3", "safari 18.2", "safari 18.1", "safari 18.0", "safari 17.6", "safari 17.5", "safari 17.4", "safari 17.3", "safari 17.2", "samsung 30", "samsung 29"]) {
|
|
10
10
|
// eslint-disable-next-line no-console
|
|
11
11
|
console.warn('Ring UI: no SUPPORTED_BROWSERS passed. Please check babel config.');
|
|
12
12
|
}
|
|
13
|
-
const SUPPORTED = ["and_chr 148", "and_ff 150", "and_qq 14.9", "and_uc 15.5", "android 148", "chrome 148", "chrome 147", "chrome 146", "chrome 145", "chrome 144", "chrome 143", "chrome 142", "chrome 141", "chrome 140", "chrome 139", "chrome 138", "chrome 137", "chrome 136", "chrome 135", "chrome 134", "chrome 133", "chrome 132", "chrome 131", "chrome 130", "chrome 129", "chrome 128", "chrome 127", "chrome 126", "chrome 125", "chrome 124", "chrome 123", "chrome 122", "chrome 121", "chrome 120", "chrome 112", "chrome 109", "edge 148", "edge 147", "edge 146", "edge 145", "edge 144", "edge 143", "edge 142", "edge 141", "edge 140", "edge 139", "edge 138", "edge 137", "edge 136", "edge 135", "edge 134", "edge 133", "edge 132", "edge 131", "edge 130", "edge 129", "edge 128", "edge 127", "edge 126", "edge 125", "edge 124", "edge 123", "edge 122", "edge 121", "edge 120", "firefox 150", "firefox 149", "firefox 148", "firefox 147", "firefox 146", "firefox 145", "firefox 144", "firefox 143", "firefox 142", "firefox 141", "firefox 140", "firefox 139", "firefox 138", "firefox 137", "firefox 136", "firefox 135", "firefox 134", "firefox 133", "firefox 132", "firefox 131", "firefox 130", "firefox 129", "firefox 128", "firefox 127", "firefox 126", "firefox 125", "firefox 124", "firefox 123", "firefox 122", "firefox 121", "
|
|
13
|
+
const SUPPORTED = ["and_chr 148", "and_ff 150", "and_qq 14.9", "and_uc 15.5", "android 148", "chrome 149", "chrome 148", "chrome 147", "chrome 146", "chrome 145", "chrome 144", "chrome 143", "chrome 142", "chrome 141", "chrome 140", "chrome 139", "chrome 138", "chrome 137", "chrome 136", "chrome 135", "chrome 134", "chrome 133", "chrome 132", "chrome 131", "chrome 130", "chrome 129", "chrome 128", "chrome 127", "chrome 126", "chrome 125", "chrome 124", "chrome 123", "chrome 122", "chrome 121", "chrome 120", "chrome 118", "chrome 116", "chrome 112", "chrome 109", "edge 149", "edge 148", "edge 147", "edge 146", "edge 145", "edge 144", "edge 143", "edge 142", "edge 141", "edge 140", "edge 139", "edge 138", "edge 137", "edge 136", "edge 135", "edge 134", "edge 133", "edge 132", "edge 131", "edge 130", "edge 129", "edge 128", "edge 127", "edge 126", "edge 125", "edge 124", "edge 123", "edge 122", "edge 121", "edge 120", "firefox 151", "firefox 150", "firefox 149", "firefox 148", "firefox 147", "firefox 146", "firefox 145", "firefox 144", "firefox 143", "firefox 142", "firefox 141", "firefox 140", "firefox 139", "firefox 138", "firefox 137", "firefox 136", "firefox 135", "firefox 134", "firefox 133", "firefox 132", "firefox 131", "firefox 130", "firefox 129", "firefox 128", "firefox 127", "firefox 126", "firefox 125", "firefox 124", "firefox 123", "firefox 122", "firefox 121", "ios_saf 26.5", "ios_saf 26.4", "ios_saf 26.3", "ios_saf 26.2", "ios_saf 26.1", "ios_saf 26.0", "ios_saf 18.5-18.7", "ios_saf 18.4", "ios_saf 18.3", "ios_saf 18.2", "ios_saf 18.1", "ios_saf 18.0", "ios_saf 17.6-17.7", "ios_saf 17.5", "ios_saf 17.4", "ios_saf 17.3", "ios_saf 17.2", "kaios 3.0-3.1", "kaios 2.5", "op_mini all", "op_mob 80", "opera 131", "opera 127", "safari 26.4", "safari 26.3", "safari 26.2", "safari 26.1", "safari 26.0", "safari 18.5-18.7", "safari 18.4", "safari 18.3", "safari 18.2", "safari 18.1", "safari 18.0", "safari 17.6", "safari 17.5", "safari 17.4", "safari 17.3", "safari 17.2", "samsung 30", "samsung 29"] || [];
|
|
14
14
|
const WHITE_LISTED_BROWSERS = ['chrome', 'firefox', 'safari', 'edge'];
|
|
15
15
|
const WHITE_LIST = SUPPORTED.reduce((acc, item) => {
|
|
16
16
|
var _item$match;
|
|
@@ -12,7 +12,7 @@ import position from './position.js';
|
|
|
12
12
|
import { DEFAULT_DIRECTIONS, Display, MaxHeight, MinWidth, Dimension, Directions } from './popup.consts.js';
|
|
13
13
|
import { PopupTargetContext, normalizePopupTarget, PopupTarget } from './popup.target.js';
|
|
14
14
|
import { supportsCSSAnchorPositioning, setCSSAnchorPositioning } from './position-css.js';
|
|
15
|
-
import {
|
|
15
|
+
import { b as ThemeContext, W as WithThemeClasses } from '../_helpers/theme.js';
|
|
16
16
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
17
17
|
import '../shortcuts/core.js';
|
|
18
18
|
import 'core-js/modules/es.array.includes.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { c } from 'react-compiler-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { createContext, Component, forwardRef } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import getUID from '../global/get-uid.js';
|
|
5
5
|
import ControlHelp from '../control-help/control-help.js';
|
|
6
6
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
7
|
-
import {
|
|
7
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
var styles = {"radio":"ring-radio-radio","circle":"ring-radio-circle","input":"ring-radio-input","focus":"ring-radio-focus","label":"ring-radio-label"};
|
|
10
10
|
|
|
@@ -12,6 +12,7 @@ import 'core-js/modules/es.array.includes.js';
|
|
|
12
12
|
import 'combokeys';
|
|
13
13
|
import '../global/sniffer.js';
|
|
14
14
|
import 'sniffr';
|
|
15
|
+
import 'util-deprecate';
|
|
15
16
|
|
|
16
17
|
var styles = {"slider":"ring-slider-slider","disabled":"ring-slider-disabled","marked":"ring-slider-marked","rail":"ring-slider-rail","rounded":"ring-slider-rounded","track":"ring-slider-track","thumb":"ring-slider-thumb ring-global-resetButton","dragged":"ring-slider-dragged","tick":"ring-slider-tick","active":"ring-slider-active","markValue":"ring-slider-markValue","tag":"ring-slider-tag"};
|
|
17
18
|
|