@jetbrains/ring-ui-built 7.0.72 → 7.0.74
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/anchor.js +55 -13
- package/components/_helpers/avatar-info.js +44 -11
- package/components/_helpers/caption.js +2 -2
- package/components/_helpers/card.js +21 -21
- package/components/_helpers/icon-svg.js +75 -17
- package/components/_helpers/input.js +13 -13
- package/components/_helpers/query-assist-suggestions.js +5 -5
- package/components/_helpers/select-filter.js +5 -5
- package/components/_helpers/services-link.js +5 -5
- package/components/_helpers/sidebar.js +6 -6
- package/components/_helpers/tab-link.js +69 -17
- package/components/_helpers/theme.js +231 -54
- package/components/_helpers/title.js +5 -5
- package/components/alert/alert.d.ts +1 -1
- package/components/alert/alert.js +12 -10
- package/components/alert/container.js +4 -4
- package/components/alert-service/alert-service.d.ts +1 -1
- package/components/alert-service/alert-service.js +5 -4
- package/components/auth/auth-core.js +8 -8
- package/components/auth/auth.js +3 -2
- package/components/auth/down-notification.js +61 -17
- package/components/auth/iframe-flow.js +7 -6
- package/components/auth/storage.js +3 -2
- package/components/auth/token-validator.js +1 -1
- package/components/auth/window-flow.js +2 -2
- package/components/auth-dialog/auth-dialog.d.ts +1 -1
- package/components/auth-dialog/auth-dialog.js +15 -14
- package/components/auth-dialog-service/auth-dialog-service.js +4 -6
- package/components/avatar/avatar-info.d.ts +1 -1
- package/components/avatar/avatar-info.js +3 -2
- package/components/avatar/avatar.d.ts +1 -1
- package/components/avatar/avatar.js +16 -15
- package/components/avatar/fallback-avatar.d.ts +1 -1
- package/components/avatar/fallback-avatar.js +183 -59
- package/components/avatar-stack/avatar-stack.d.ts +1 -1
- package/components/avatar-stack/avatar-stack.js +115 -29
- package/components/banner/banner.d.ts +1 -1
- package/components/banner/banner.js +11 -10
- package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/components/breadcrumbs/breadcrumbs.js +3 -2
- package/components/button/button.d.ts +1 -1
- package/components/button/button.js +11 -10
- package/components/button-group/button-group.d.ts +1 -1
- package/components/button-group/button-group.js +6 -8
- package/components/button-group/caption.d.ts +1 -1
- package/components/button-group/caption.js +1 -1
- package/components/button-set/button-set.d.ts +1 -1
- package/components/button-set/button-set.js +2 -5
- package/components/button-toolbar/button-toolbar.d.ts +1 -1
- package/components/button-toolbar/button-toolbar.js +2 -5
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +12 -17
- package/components/clipboard/clipboard.js +2 -1
- package/components/code/code.d.ts +1 -1
- package/components/code/code.js +5 -5
- package/components/collapse/collapse-content.js +161 -77
- package/components/collapse/collapse-control.js +69 -22
- package/components/collapse/collapse.js +83 -31
- package/components/confirm/confirm.d.ts +1 -1
- package/components/confirm/confirm.js +11 -13
- package/components/confirm-service/confirm-service.js +4 -3
- package/components/content-layout/content-layout.d.ts +1 -1
- package/components/content-layout/content-layout.js +4 -7
- package/components/content-layout/sidebar.d.ts +1 -1
- package/components/content-layout/sidebar.js +1 -1
- package/components/contenteditable/contenteditable.d.ts +2 -2
- package/components/contenteditable/contenteditable.js +50 -14
- package/components/control-help/control-help.d.ts +1 -1
- package/components/control-help/control-help.js +45 -9
- package/components/control-label/control-label.js +62 -13
- package/components/data-list/data-list.d.ts +1 -1
- package/components/data-list/data-list.js +10 -9
- package/components/data-list/data-list.mock.d.ts +1 -1
- package/components/data-list/data-list.mock.js +79 -78
- package/components/data-list/item.d.ts +2 -2
- package/components/data-list/item.js +18 -17
- package/components/data-list/title.d.ts +1 -1
- package/components/data-list/title.js +2 -1
- package/components/date-picker/consts.js +1 -1
- package/components/date-picker/date-input.d.ts +1 -1
- package/components/date-picker/date-input.js +4 -3
- package/components/date-picker/date-picker.d.ts +1 -1
- package/components/date-picker/date-picker.js +97 -31
- package/components/date-picker/date-popup.d.ts +1 -1
- package/components/date-picker/date-popup.js +11 -10
- package/components/date-picker/day.d.ts +1 -1
- package/components/date-picker/day.js +4 -3
- package/components/date-picker/month-names.d.ts +1 -1
- package/components/date-picker/month-names.js +98 -22
- package/components/date-picker/month-slider.d.ts +1 -1
- package/components/date-picker/month-slider.js +4 -4
- package/components/date-picker/month.d.ts +1 -1
- package/components/date-picker/month.js +79 -18
- package/components/date-picker/months.d.ts +1 -1
- package/components/date-picker/months.js +163 -53
- package/components/date-picker/weekdays.d.ts +1 -1
- package/components/date-picker/weekdays.js +56 -16
- package/components/date-picker/years.d.ts +1 -1
- package/components/date-picker/years.js +5 -5
- package/components/dialog/dialog.d.ts +1 -1
- package/components/dialog/dialog.js +21 -23
- package/components/dropdown/anchor.d.ts +1 -1
- package/components/dropdown/anchor.js +2 -1
- package/components/dropdown/dropdown.d.ts +1 -1
- package/components/dropdown/dropdown.js +7 -8
- package/components/dropdown-menu/dropdown-menu.js +299 -83
- package/components/editable-heading/editable-heading.d.ts +2 -2
- package/components/editable-heading/editable-heading.js +523 -174
- package/components/error-bubble/error-bubble.d.ts +1 -1
- package/components/error-bubble/error-bubble.js +7 -9
- package/components/error-message/error-message.d.ts +1 -1
- package/components/error-message/error-message.js +8 -10
- package/components/footer/footer.js +205 -61
- package/components/global/create-stateful-context.d.ts +1 -1
- package/components/global/create-stateful-context.js +73 -18
- package/components/global/focus-sensor-hoc.js +2 -2
- package/components/global/get-uid.js +1 -1
- package/components/global/react-dom-renderer.d.ts +1 -1
- package/components/global/react-dom-renderer.js +2 -2
- package/components/global/rerender-hoc.js +23 -6
- package/components/global/theme.js +3 -2
- package/components/global/use-event-callback.js +37 -13
- package/components/grid/col.d.ts +1 -1
- package/components/grid/col.js +3 -3
- package/components/grid/grid.d.ts +1 -1
- package/components/grid/grid.js +3 -6
- package/components/grid/row.d.ts +1 -1
- package/components/grid/row.js +3 -3
- package/components/group/group.d.ts +1 -1
- package/components/group/group.js +3 -6
- package/components/header/header-icon.d.ts +1 -1
- package/components/header/header-icon.js +3 -2
- package/components/header/header.d.ts +1 -1
- package/components/header/header.js +7 -12
- package/components/header/links.d.ts +1 -1
- package/components/header/links.js +45 -10
- package/components/header/logo.d.ts +1 -1
- package/components/header/logo.js +4 -3
- package/components/header/profile.js +17 -16
- package/components/header/services-link.d.ts +1 -1
- package/components/header/services-link.js +1 -1
- package/components/header/services.d.ts +1 -1
- package/components/header/services.js +13 -12
- package/components/header/smart-profile.d.ts +1 -1
- package/components/header/smart-profile.js +6 -5
- package/components/header/smart-services.d.ts +1 -1
- package/components/header/smart-services.js +3 -2
- package/components/header/tray.d.ts +1 -1
- package/components/header/tray.js +3 -3
- package/components/heading/heading.js +188 -44
- package/components/i18n/i18n-context.js +51 -13
- package/components/icon/icon-svg.d.ts +1 -1
- package/components/icon/icon-svg.js +2 -1
- package/components/icon/icon.d.ts +1 -1
- package/components/icon/icon.js +6 -5
- package/components/icon/index.js +2 -1
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +2 -1
- package/components/island/adaptive-island-hoc.js +4 -4
- package/components/island/content.d.ts +1 -1
- package/components/island/content.js +36 -17
- package/components/island/header.d.ts +1 -1
- package/components/island/header.js +32 -14
- package/components/island/island.d.ts +1 -1
- package/components/island/island.js +3 -5
- package/components/link/clickable-link.d.ts +1 -1
- package/components/link/clickable-link.js +2 -2
- package/components/link/link.js +4 -4
- package/components/list/list-custom.d.ts +1 -1
- package/components/list/list-custom.js +2 -2
- package/components/list/list-hint.d.ts +1 -1
- package/components/list/list-hint.js +3 -7
- package/components/list/list-item.d.ts +1 -1
- package/components/list/list-item.js +23 -26
- package/components/list/list-separator.d.ts +1 -1
- package/components/list/list-separator.js +3 -3
- package/components/list/list-title.d.ts +1 -1
- package/components/list/list-title.js +7 -7
- package/components/list/list-users-groups-source.js +6 -5
- package/components/list/list.d.ts +6 -6
- package/components/list/list.js +33 -31
- package/components/loader/loader.d.ts +1 -1
- package/components/loader/loader.js +8 -14
- package/components/loader-inline/loader-inline.d.ts +1 -1
- package/components/loader-inline/loader-inline.js +4 -7
- package/components/loader-screen/loader-screen.d.ts +1 -1
- package/components/loader-screen/loader-screen.js +3 -6
- package/components/login-dialog/login-dialog.d.ts +1 -1
- package/components/login-dialog/login-dialog.js +10 -9
- package/components/login-dialog/service.js +4 -3
- package/components/markdown/markdown.d.ts +1 -1
- package/components/markdown/markdown.js +3 -6
- package/components/message/message.d.ts +1 -1
- package/components/message/message.js +13 -15
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.d.ts +5 -5
- package/components/pager/pager.js +28 -27
- package/components/panel/panel.d.ts +1 -1
- package/components/panel/panel.js +3 -6
- package/components/popup/popup.d.ts +2 -2
- package/components/popup/popup.js +14 -11
- package/components/popup/popup.target.js +68 -16
- package/components/popup-menu/popup-menu.d.ts +1 -1
- package/components/popup-menu/popup-menu.js +7 -9
- package/components/progress-bar/progress-bar.d.ts +1 -1
- package/components/progress-bar/progress-bar.js +4 -7
- package/components/query-assist/query-assist-suggestions.d.ts +1 -1
- package/components/query-assist/query-assist-suggestions.js +5 -4
- package/components/query-assist/query-assist.d.ts +2 -2
- package/components/query-assist/query-assist.js +37 -34
- package/components/radio/radio-item.d.ts +1 -1
- package/components/radio/radio-item.js +40 -20
- package/components/radio/radio.d.ts +1 -1
- package/components/radio/radio.js +3 -5
- package/components/scrollable-section/scrollable-section.d.ts +1 -1
- package/components/scrollable-section/scrollable-section.js +100 -38
- package/components/select/select-filter.d.ts +1 -1
- package/components/select/select-filter.js +5 -4
- package/components/select/select-popup.d.ts +7 -7
- package/components/select/select-popup.js +26 -25
- package/components/select/select.d.ts +3 -3
- package/components/select/select.js +52 -52
- package/components/shortcuts/shortcuts-hoc.js +3 -3
- package/components/slider/slider.js +591 -196
- package/components/storage/storage-local.js +2 -1
- package/components/storage/storage.js +2 -1
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +247 -102
- package/components/table/cell.d.ts +1 -1
- package/components/table/cell.js +2 -2
- package/components/table/disable-hover-hoc.js +3 -3
- package/components/table/header-cell.d.ts +1 -1
- package/components/table/header-cell.js +7 -6
- package/components/table/header.d.ts +2 -2
- package/components/table/header.js +14 -13
- package/components/table/multitable.d.ts +1 -1
- package/components/table/multitable.js +3 -3
- package/components/table/row-with-focus-sensor.d.ts +1 -1
- package/components/table/row-with-focus-sensor.js +3 -2
- package/components/table/row.d.ts +1 -1
- package/components/table/row.js +51 -24
- package/components/table/selection-shortcuts-hoc.js +2 -2
- package/components/table/simple-table.d.ts +1 -1
- package/components/table/simple-table.js +4 -3
- package/components/table/smart-table.d.ts +1 -1
- package/components/table/smart-table.js +4 -3
- package/components/table/table.d.ts +2 -2
- package/components/table/table.js +21 -23
- package/components/tabs/collapsible-more.d.ts +3 -3
- package/components/tabs/collapsible-more.js +253 -83
- package/components/tabs/collapsible-tab.d.ts +1 -1
- package/components/tabs/collapsible-tab.js +4 -3
- package/components/tabs/collapsible-tabs.d.ts +2 -2
- package/components/tabs/collapsible-tabs.js +450 -188
- package/components/tabs/dumb-tabs.d.ts +2 -2
- package/components/tabs/dumb-tabs.js +10 -9
- package/components/tabs/smart-tabs.d.ts +1 -1
- package/components/tabs/smart-tabs.js +6 -5
- package/components/tabs/tab-link.d.ts +1 -1
- package/components/tabs/tab-link.js +2 -1
- package/components/tabs/tab.d.ts +1 -1
- package/components/tabs/tab.js +2 -2
- package/components/tabs/tabs.js +5 -4
- package/components/tag/tag.d.ts +5 -5
- package/components/tag/tag.js +14 -13
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-input/tags-input.js +10 -9
- package/components/tags-list/tags-list.d.ts +2 -2
- package/components/tags-list/tags-list.js +4 -3
- package/components/text/text.d.ts +1 -1
- package/components/text/text.js +2 -2
- package/components/toggle/toggle.d.ts +1 -1
- package/components/toggle/toggle.js +12 -11
- package/components/tooltip/tooltip.d.ts +1 -1
- package/components/tooltip/tooltip.js +7 -6
- package/components/upload/upload.js +10 -9
- package/components/user-agreement/service.js +11 -10
- package/components/user-agreement/user-agreement.d.ts +1 -1
- package/components/user-agreement/user-agreement.js +19 -18
- package/components/user-card/card.d.ts +1 -1
- package/components/user-card/card.js +3 -2
- package/components/user-card/smart-user-card-tooltip.d.ts +2 -2
- package/components/user-card/smart-user-card-tooltip.js +7 -6
- package/components/user-card/tooltip.d.ts +2 -2
- package/components/user-card/tooltip.js +7 -6
- package/components/user-card/user-card.js +4 -3
- package/package.json +4 -9
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
|
+
import 'react';
|
|
3
3
|
import getUID from '../global/get-uid.js';
|
|
4
4
|
import { Size } from './avatar-size.js';
|
|
5
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
6
|
|
|
6
7
|
const colorPairs = [['#A5E074', '#E8E093'], ['#6AD8A2', '#79E98F'], ['#7FBAF6', '#7BEBB2'], ['#6DDC8C', '#97FFFF'], ['#8EE5C0', '#A2B6FF'], ['#73B4F5', '#78F8DC'], ['#BA8EFF', '#78DFD6'], ['#63AFF5', '#60E2F5'], ['#A192F7', '#93B2F7'], ['#B989FF', '#60E2F5'], ['#CA7EF7', '#9BBAF8'], ['#A192F7', '#CF94F4'], ['#AB7EE1', '#D58AE3'], ['#BE82FF', '#FFA0FF'], ['#C57EF2', '#F2799E'], ['#BE82FF', '#F2CC83'], ['#E16C9D', '#EF8AE8'], ['#F29766', '#EF8AE8'], ['#F27AA9', '#EAF087'], ['#F27AA9', '#FBBB8C'], ['#FFAB66', '#FFEBA0']];
|
|
7
8
|
const SizesSquare = {
|
|
@@ -244,69 +245,192 @@ function hashCode(s) {
|
|
|
244
245
|
}
|
|
245
246
|
return h;
|
|
246
247
|
}
|
|
247
|
-
function FallbackAvatar({
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
248
|
+
function FallbackAvatar(t0) {
|
|
249
|
+
const $ = c(37);
|
|
250
|
+
if ($[0] !== "1327bfb856627bd1df724c4986534605e8c89dbffcc82ad962cbae4668165288") {
|
|
251
|
+
for (let $i = 0; $i < 37; $i += 1) {
|
|
252
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
253
|
+
}
|
|
254
|
+
$[0] = "1327bfb856627bd1df724c4986534605e8c89dbffcc82ad962cbae4668165288";
|
|
255
|
+
}
|
|
256
|
+
const {
|
|
257
|
+
username,
|
|
258
|
+
size,
|
|
259
|
+
round
|
|
260
|
+
} = t0;
|
|
252
261
|
const hash = Math.abs(hashCode(username.toLowerCase()));
|
|
253
262
|
const [fromColor, toColor] = colorPairs[hash % colorPairs.length];
|
|
254
263
|
const sizes = round ? SizesRound[size] : SizesSquare[size];
|
|
255
264
|
const underscore = sizes.underscore;
|
|
256
|
-
const radius = round ?
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
265
|
+
const radius = round ? "50%" : sizes.radius;
|
|
266
|
+
let t1;
|
|
267
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
268
|
+
t1 = getUID("gradient-");
|
|
269
|
+
$[1] = t1;
|
|
270
|
+
} else {
|
|
271
|
+
t1 = $[1];
|
|
272
|
+
}
|
|
273
|
+
const gradientId = t1;
|
|
274
|
+
const t2 = `0 0 ${size} ${size}`;
|
|
275
|
+
let t3;
|
|
276
|
+
if ($[2] !== fromColor) {
|
|
277
|
+
t3 = /*#__PURE__*/jsx("stop", {
|
|
278
|
+
stopColor: fromColor,
|
|
279
|
+
offset: "0"
|
|
280
|
+
});
|
|
281
|
+
$[2] = fromColor;
|
|
282
|
+
$[3] = t3;
|
|
283
|
+
} else {
|
|
284
|
+
t3 = $[3];
|
|
285
|
+
}
|
|
286
|
+
let t4;
|
|
287
|
+
if ($[4] !== toColor) {
|
|
288
|
+
t4 = /*#__PURE__*/jsx("stop", {
|
|
289
|
+
stopColor: toColor,
|
|
290
|
+
offset: "0.8"
|
|
291
|
+
});
|
|
292
|
+
$[4] = toColor;
|
|
293
|
+
$[5] = t4;
|
|
294
|
+
} else {
|
|
295
|
+
t4 = $[5];
|
|
296
|
+
}
|
|
297
|
+
let t5;
|
|
298
|
+
if ($[6] !== t3 || $[7] !== t4) {
|
|
299
|
+
t5 = /*#__PURE__*/jsx("defs", {
|
|
300
|
+
children: /*#__PURE__*/jsxs("linearGradient", {
|
|
263
301
|
id: gradientId,
|
|
264
|
-
x1:
|
|
265
|
-
y1:
|
|
266
|
-
x2:
|
|
267
|
-
y2:
|
|
268
|
-
children: [
|
|
269
|
-
stopColor: fromColor,
|
|
270
|
-
offset: '0'
|
|
271
|
-
}), jsx("stop", {
|
|
272
|
-
stopColor: toColor,
|
|
273
|
-
offset: '0.8'
|
|
274
|
-
})]
|
|
302
|
+
x1: "1",
|
|
303
|
+
y1: "1",
|
|
304
|
+
x2: "0",
|
|
305
|
+
y2: "0",
|
|
306
|
+
children: [t3, t4]
|
|
275
307
|
})
|
|
276
|
-
})
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
308
|
+
});
|
|
309
|
+
$[6] = t3;
|
|
310
|
+
$[7] = t4;
|
|
311
|
+
$[8] = t5;
|
|
312
|
+
} else {
|
|
313
|
+
t5 = $[8];
|
|
314
|
+
}
|
|
315
|
+
let t6;
|
|
316
|
+
if ($[9] !== radius || $[10] !== size) {
|
|
317
|
+
t6 = /*#__PURE__*/jsx("rect", {
|
|
318
|
+
fill: `url(#${gradientId})`,
|
|
319
|
+
x: "0",
|
|
320
|
+
y: "0",
|
|
321
|
+
width: size,
|
|
322
|
+
height: size,
|
|
323
|
+
rx: radius,
|
|
324
|
+
ry: radius
|
|
325
|
+
});
|
|
326
|
+
$[9] = radius;
|
|
327
|
+
$[10] = size;
|
|
328
|
+
$[11] = t6;
|
|
329
|
+
} else {
|
|
330
|
+
t6 = $[11];
|
|
331
|
+
}
|
|
332
|
+
const t7 = sizes.text.x;
|
|
333
|
+
const t8 = sizes.text.y;
|
|
334
|
+
const t9 = sizes.fontSize;
|
|
335
|
+
const t10 = sizes.letterSpacing;
|
|
336
|
+
const t11 = sizes.dominantBaseline;
|
|
337
|
+
const t12 = sizes.textAnchor;
|
|
338
|
+
let t13;
|
|
339
|
+
if ($[12] !== username) {
|
|
340
|
+
t13 = extractLetters(username);
|
|
341
|
+
$[12] = username;
|
|
342
|
+
$[13] = t13;
|
|
343
|
+
} else {
|
|
344
|
+
t13 = $[13];
|
|
345
|
+
}
|
|
346
|
+
let t14;
|
|
347
|
+
if ($[14] !== t13) {
|
|
348
|
+
t14 = /*#__PURE__*/jsx("tspan", {
|
|
349
|
+
children: t13
|
|
350
|
+
});
|
|
351
|
+
$[14] = t13;
|
|
352
|
+
$[15] = t14;
|
|
353
|
+
} else {
|
|
354
|
+
t14 = $[15];
|
|
355
|
+
}
|
|
356
|
+
let t15;
|
|
357
|
+
if ($[16] !== sizes.dominantBaseline || $[17] !== sizes.fontSize || $[18] !== sizes.letterSpacing || $[19] !== sizes.text.x || $[20] !== sizes.text.y || $[21] !== sizes.textAnchor || $[22] !== t14) {
|
|
358
|
+
t15 = /*#__PURE__*/jsx("text", {
|
|
359
|
+
x: t7,
|
|
360
|
+
y: t8,
|
|
361
|
+
fontFamily: "var(--ring-font-family, 'Arial, Helvetica, sans-serif')",
|
|
362
|
+
fontSize: t9,
|
|
363
|
+
fontWeight: "600",
|
|
364
|
+
letterSpacing: t10,
|
|
365
|
+
fill: "#FFFFFF",
|
|
366
|
+
dominantBaseline: t11,
|
|
367
|
+
textAnchor: t12,
|
|
368
|
+
cursor: "default",
|
|
369
|
+
children: t14
|
|
370
|
+
});
|
|
371
|
+
$[16] = sizes.dominantBaseline;
|
|
372
|
+
$[17] = sizes.fontSize;
|
|
373
|
+
$[18] = sizes.letterSpacing;
|
|
374
|
+
$[19] = sizes.text.x;
|
|
375
|
+
$[20] = sizes.text.y;
|
|
376
|
+
$[21] = sizes.textAnchor;
|
|
377
|
+
$[22] = t14;
|
|
378
|
+
$[23] = t15;
|
|
379
|
+
} else {
|
|
380
|
+
t15 = $[23];
|
|
381
|
+
}
|
|
382
|
+
let t16;
|
|
383
|
+
if ($[24] !== underscore) {
|
|
384
|
+
t16 = underscore && /*#__PURE__*/jsx("rect", {
|
|
385
|
+
fill: "#FFFFFF",
|
|
386
|
+
x: underscore.x,
|
|
387
|
+
y: underscore.y,
|
|
388
|
+
width: underscore.width,
|
|
389
|
+
height: underscore.height
|
|
390
|
+
});
|
|
391
|
+
$[24] = underscore;
|
|
392
|
+
$[25] = t16;
|
|
393
|
+
} else {
|
|
394
|
+
t16 = $[25];
|
|
395
|
+
}
|
|
396
|
+
let t17;
|
|
397
|
+
if ($[26] !== username) {
|
|
398
|
+
t17 = /*#__PURE__*/jsx("title", {
|
|
399
|
+
children: username
|
|
400
|
+
});
|
|
401
|
+
$[26] = username;
|
|
402
|
+
$[27] = t17;
|
|
403
|
+
} else {
|
|
404
|
+
t17 = $[27];
|
|
405
|
+
}
|
|
406
|
+
let t18;
|
|
407
|
+
if ($[28] !== t15 || $[29] !== t16 || $[30] !== t17 || $[31] !== t6) {
|
|
408
|
+
t18 = /*#__PURE__*/jsxs("g", {
|
|
409
|
+
children: [t6, t15, t16, t17]
|
|
410
|
+
});
|
|
411
|
+
$[28] = t15;
|
|
412
|
+
$[29] = t16;
|
|
413
|
+
$[30] = t17;
|
|
414
|
+
$[31] = t6;
|
|
415
|
+
$[32] = t18;
|
|
416
|
+
} else {
|
|
417
|
+
t18 = $[32];
|
|
418
|
+
}
|
|
419
|
+
let t19;
|
|
420
|
+
if ($[33] !== t18 || $[34] !== t2 || $[35] !== t5) {
|
|
421
|
+
t19 = /*#__PURE__*/jsxs("svg", {
|
|
422
|
+
viewBox: t2,
|
|
423
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
424
|
+
children: [t5, t18]
|
|
425
|
+
});
|
|
426
|
+
$[33] = t18;
|
|
427
|
+
$[34] = t2;
|
|
428
|
+
$[35] = t5;
|
|
429
|
+
$[36] = t19;
|
|
430
|
+
} else {
|
|
431
|
+
t19 = $[36];
|
|
432
|
+
}
|
|
433
|
+
return t19;
|
|
310
434
|
}
|
|
311
435
|
|
|
312
436
|
export { FallbackAvatar as default };
|
|
@@ -12,4 +12,4 @@ export interface AvatarProps<T = unknown> extends HTMLAttributes<HTMLDivElement>
|
|
|
12
12
|
extraItems?: readonly ListDataItem<T>[] | null | undefined;
|
|
13
13
|
dropdownMenuProps?: DropdownMenuProps<T> | null | undefined;
|
|
14
14
|
}
|
|
15
|
-
export default function AvatarStack({ children, className, size, extraItems, dropdownMenuProps, ...restProps }: AvatarProps): import("react
|
|
15
|
+
export default function AvatarStack({ children, className, size, extraItems, dropdownMenuProps, ...restProps }: AvatarProps): import("react").JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c } from 'react-compiler-runtime';
|
|
2
2
|
import { useState, Children } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import DropdownMenu from '../dropdown-menu/dropdown-menu.js';
|
|
5
5
|
import Avatar from '../avatar/avatar.js';
|
|
6
6
|
import { f as fontSizes } from '../_helpers/avatar-info.js';
|
|
7
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
8
|
import { Size } from '../avatar/avatar-size.js';
|
|
8
9
|
import '../list/list.js';
|
|
9
10
|
import 'react-virtualized/dist/es/List';
|
|
@@ -35,9 +36,9 @@ import '../control-help/control-help.js';
|
|
|
35
36
|
import '../link/link.js';
|
|
36
37
|
import '../link/clickable-link.js';
|
|
37
38
|
import '../_helpers/link.js';
|
|
38
|
-
import '../_helpers/list.js';
|
|
39
39
|
import '../list/consts.js';
|
|
40
40
|
import '../list/list.classes.js';
|
|
41
|
+
import '../_helpers/list.js';
|
|
41
42
|
import '../global/url.js';
|
|
42
43
|
import '../avatar/fallback-avatar.js';
|
|
43
44
|
import '../list/list-custom.js';
|
|
@@ -65,31 +66,82 @@ import '../popup/position-css.js';
|
|
|
65
66
|
|
|
66
67
|
var styles = {"avatarStack":"ring-avatar-stack-avatarStack","extraText":"ring-avatar-stack-extraText","item":"ring-avatar-stack-item","size20":"ring-avatar-stack-size20","size24":"ring-avatar-stack-size24","size28":"ring-avatar-stack-size28","size32":"ring-avatar-stack-size32","size40":"ring-avatar-stack-size40","size56":"ring-avatar-stack-size56","hovered":"ring-avatar-stack-hovered","extra":"ring-avatar-stack-extra ring-avatar-stack-item","extraButton":"ring-avatar-stack-extraButton ring-global-resetButton"};
|
|
67
68
|
|
|
68
|
-
function AvatarStack({
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
69
|
+
function AvatarStack(t0) {
|
|
70
|
+
const $ = c(28);
|
|
71
|
+
if ($[0] !== "935a2575bcba5af6c406972a71daa0b8850b8f7634076664ddbd547b5e2fc6a6") {
|
|
72
|
+
for (let $i = 0; $i < 28; $i += 1) {
|
|
73
|
+
$[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
74
|
+
}
|
|
75
|
+
$[0] = "935a2575bcba5af6c406972a71daa0b8850b8f7634076664ddbd547b5e2fc6a6";
|
|
76
|
+
}
|
|
77
|
+
let children;
|
|
78
|
+
let className;
|
|
79
|
+
let dropdownMenuProps;
|
|
80
|
+
let extraItems;
|
|
81
|
+
let restProps;
|
|
82
|
+
let t1;
|
|
83
|
+
if ($[1] !== t0) {
|
|
84
|
+
({
|
|
85
|
+
children,
|
|
86
|
+
className,
|
|
87
|
+
size: t1,
|
|
88
|
+
extraItems,
|
|
89
|
+
dropdownMenuProps,
|
|
90
|
+
...restProps
|
|
91
|
+
} = t0);
|
|
92
|
+
$[1] = t0;
|
|
93
|
+
$[2] = children;
|
|
94
|
+
$[3] = className;
|
|
95
|
+
$[4] = dropdownMenuProps;
|
|
96
|
+
$[5] = extraItems;
|
|
97
|
+
$[6] = restProps;
|
|
98
|
+
$[7] = t1;
|
|
99
|
+
} else {
|
|
100
|
+
children = $[2];
|
|
101
|
+
className = $[3];
|
|
102
|
+
dropdownMenuProps = $[4];
|
|
103
|
+
extraItems = $[5];
|
|
104
|
+
restProps = $[6];
|
|
105
|
+
t1 = $[7];
|
|
106
|
+
}
|
|
107
|
+
const size = t1 === undefined ? Size.Size20 : t1;
|
|
76
108
|
const [dropdownOpen, setDropdownOpen] = useState(false);
|
|
77
|
-
|
|
78
|
-
|
|
109
|
+
const t2 = styles[`size${size}`];
|
|
110
|
+
let t3;
|
|
111
|
+
if ($[8] !== className || $[9] !== dropdownOpen || $[10] !== t2) {
|
|
112
|
+
t3 = classNames(styles.avatarStack, className, t2, {
|
|
79
113
|
[styles.hovered]: dropdownOpen
|
|
80
|
-
})
|
|
81
|
-
|
|
82
|
-
|
|
114
|
+
});
|
|
115
|
+
$[8] = className;
|
|
116
|
+
$[9] = dropdownOpen;
|
|
117
|
+
$[10] = t2;
|
|
118
|
+
$[11] = t3;
|
|
119
|
+
} else {
|
|
120
|
+
t3 = $[11];
|
|
121
|
+
}
|
|
122
|
+
let t4;
|
|
123
|
+
if ($[12] !== restProps.style || $[13] !== size) {
|
|
124
|
+
t4 = {
|
|
83
125
|
height: size,
|
|
84
126
|
...restProps.style
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
127
|
+
};
|
|
128
|
+
$[12] = restProps.style;
|
|
129
|
+
$[13] = size;
|
|
130
|
+
$[14] = t4;
|
|
131
|
+
} else {
|
|
132
|
+
t4 = $[14];
|
|
133
|
+
}
|
|
134
|
+
let t5;
|
|
135
|
+
if ($[15] !== children) {
|
|
136
|
+
t5 = Children.map(children, _temp);
|
|
137
|
+
$[15] = children;
|
|
138
|
+
$[16] = t5;
|
|
139
|
+
} else {
|
|
140
|
+
t5 = $[16];
|
|
141
|
+
}
|
|
142
|
+
let t6;
|
|
143
|
+
if ($[17] !== children || $[18] !== dropdownMenuProps || $[19] !== extraItems || $[20] !== size) {
|
|
144
|
+
t6 = extraItems?.length ? /*#__PURE__*/jsx(DropdownMenu, {
|
|
93
145
|
hoverMode: true,
|
|
94
146
|
hoverShowTimeOut: 10,
|
|
95
147
|
onShow: () => setDropdownOpen(true),
|
|
@@ -98,15 +150,15 @@ function AvatarStack({
|
|
|
98
150
|
style: {
|
|
99
151
|
width: size,
|
|
100
152
|
height: size,
|
|
101
|
-
|
|
153
|
+
"--ring-avatar-stack-index": Children.count(children),
|
|
102
154
|
fontSize: fontSizes[size]
|
|
103
155
|
},
|
|
104
|
-
anchor: jsx("button", {
|
|
105
|
-
type:
|
|
156
|
+
anchor: /*#__PURE__*/jsx("button", {
|
|
157
|
+
type: "button",
|
|
106
158
|
className: styles.extraButton,
|
|
107
|
-
children: jsx(Avatar, {
|
|
159
|
+
children: /*#__PURE__*/jsx(Avatar, {
|
|
108
160
|
size: size,
|
|
109
|
-
info: jsx("span", {
|
|
161
|
+
info: /*#__PURE__*/jsx("span", {
|
|
110
162
|
className: styles.extraText,
|
|
111
163
|
children: `+${extraItems.length}`
|
|
112
164
|
})
|
|
@@ -118,7 +170,41 @@ function AvatarStack({
|
|
|
118
170
|
...dropdownMenuProps?.menuProps
|
|
119
171
|
},
|
|
120
172
|
...dropdownMenuProps
|
|
121
|
-
}) : null
|
|
173
|
+
}) : null;
|
|
174
|
+
$[17] = children;
|
|
175
|
+
$[18] = dropdownMenuProps;
|
|
176
|
+
$[19] = extraItems;
|
|
177
|
+
$[20] = size;
|
|
178
|
+
$[21] = t6;
|
|
179
|
+
} else {
|
|
180
|
+
t6 = $[21];
|
|
181
|
+
}
|
|
182
|
+
let t7;
|
|
183
|
+
if ($[22] !== restProps || $[23] !== t3 || $[24] !== t4 || $[25] !== t5 || $[26] !== t6) {
|
|
184
|
+
t7 = /*#__PURE__*/jsxs("div", {
|
|
185
|
+
className: t3,
|
|
186
|
+
...restProps,
|
|
187
|
+
style: t4,
|
|
188
|
+
children: [t5, t6]
|
|
189
|
+
});
|
|
190
|
+
$[22] = restProps;
|
|
191
|
+
$[23] = t3;
|
|
192
|
+
$[24] = t4;
|
|
193
|
+
$[25] = t5;
|
|
194
|
+
$[26] = t6;
|
|
195
|
+
$[27] = t7;
|
|
196
|
+
} else {
|
|
197
|
+
t7 = $[27];
|
|
198
|
+
}
|
|
199
|
+
return t7;
|
|
200
|
+
}
|
|
201
|
+
function _temp(child, index) {
|
|
202
|
+
return /*#__PURE__*/jsx("div", {
|
|
203
|
+
className: styles.item,
|
|
204
|
+
style: {
|
|
205
|
+
"--ring-avatar-stack-index": index
|
|
206
|
+
},
|
|
207
|
+
children: child
|
|
122
208
|
});
|
|
123
209
|
}
|
|
124
210
|
|
|
@@ -14,6 +14,6 @@ export interface BannerProps {
|
|
|
14
14
|
['data-test']?: string;
|
|
15
15
|
translations?: BannerTranslations;
|
|
16
16
|
}
|
|
17
|
-
export declare function Banner(props: BannerProps):
|
|
17
|
+
export declare function Banner(props: BannerProps): React.JSX.Element;
|
|
18
18
|
declare const _default: React.MemoExoticComponent<typeof Banner>;
|
|
19
19
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
1
|
import React__default from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import infoIcon from '@jetbrains/icons/info-filled';
|
|
@@ -9,9 +8,11 @@ import closeIcon from '@jetbrains/icons/close';
|
|
|
9
8
|
import Icon from '../icon/icon.js';
|
|
10
9
|
import Link from '../link/link.js';
|
|
11
10
|
import Tooltip from '../tooltip/tooltip.js';
|
|
11
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
12
12
|
import 'util-deprecate';
|
|
13
13
|
import '../icon/icon.constants.js';
|
|
14
14
|
import '../_helpers/icon-svg.js';
|
|
15
|
+
import 'react-compiler-runtime';
|
|
15
16
|
import '../global/memoize.js';
|
|
16
17
|
import '../global/data-tests.js';
|
|
17
18
|
import '../link/clickable-link.js';
|
|
@@ -59,7 +60,7 @@ function Banner(props) {
|
|
|
59
60
|
} else if (mode === 'warning') {
|
|
60
61
|
icon = warningIcon;
|
|
61
62
|
}
|
|
62
|
-
return jsxs("div", {
|
|
63
|
+
return /*#__PURE__*/jsxs("div", {
|
|
63
64
|
className: classNames({
|
|
64
65
|
[styles.banner]: true,
|
|
65
66
|
[styles.inline]: inline,
|
|
@@ -71,26 +72,26 @@ function Banner(props) {
|
|
|
71
72
|
[styles.grey]: mode === 'grey'
|
|
72
73
|
}, className),
|
|
73
74
|
"data-test": dataTest,
|
|
74
|
-
children: [withIcon && jsx(Icon, {
|
|
75
|
+
children: [withIcon && /*#__PURE__*/jsx(Icon, {
|
|
75
76
|
glyph: icon,
|
|
76
77
|
className: styles.icon
|
|
77
|
-
}), jsxs("div", {
|
|
78
|
-
children: [title && jsx("div", {
|
|
78
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
79
|
+
children: [title && /*#__PURE__*/jsx("div", {
|
|
79
80
|
className: styles.title,
|
|
80
81
|
children: title
|
|
81
|
-
}), jsx("div", {
|
|
82
|
+
}), /*#__PURE__*/jsx("div", {
|
|
82
83
|
className: styles.description,
|
|
83
84
|
children: children
|
|
84
85
|
})]
|
|
85
|
-
}), onClose && jsx(Tooltip, {
|
|
86
|
+
}), onClose && /*#__PURE__*/jsx(Tooltip, {
|
|
86
87
|
title: closeButtonTitle !== null && closeButtonTitle !== void 0 ? closeButtonTitle : translations.close,
|
|
87
88
|
className: styles.closeButtonWrapper,
|
|
88
|
-
children: jsx(Link, {
|
|
89
|
+
children: /*#__PURE__*/jsx(Link, {
|
|
89
90
|
className: styles.closeButton,
|
|
90
91
|
pseudo: true,
|
|
91
92
|
onClick: onClose,
|
|
92
|
-
"aria-label":
|
|
93
|
-
children: jsx(Icon, {
|
|
93
|
+
"aria-label": "Close",
|
|
94
|
+
children: /*#__PURE__*/jsx(Icon, {
|
|
94
95
|
glyph: closeIcon
|
|
95
96
|
})
|
|
96
97
|
})
|
|
@@ -3,4 +3,4 @@ export interface BreadcrumbsSeparatorAttrs {
|
|
|
3
3
|
separatorClassName?: string | null | undefined;
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export default function Breadcrumbs({ separatorClassName, children }: BreadcrumbsSeparatorAttrs): import("react
|
|
6
|
+
export default function Breadcrumbs({ separatorClassName, children }: BreadcrumbsSeparatorAttrs): import("react").JSX.Element[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
1
|
import classNames from 'classnames';
|
|
3
2
|
import { Children, Fragment } from 'react';
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
var styles = {"separator":"ring-breadcrumbs-separator"};
|
|
6
6
|
|
|
@@ -9,9 +9,10 @@ function Breadcrumbs({
|
|
|
9
9
|
children
|
|
10
10
|
}) {
|
|
11
11
|
return Children.toArray(children).map((child, index) =>
|
|
12
|
+
/*#__PURE__*/
|
|
12
13
|
// eslint-disable-next-line react/no-array-index-key
|
|
13
14
|
jsxs(Fragment, {
|
|
14
|
-
children: [index > 0 && jsx("span", {
|
|
15
|
+
children: [index > 0 && /*#__PURE__*/jsx("span", {
|
|
15
16
|
className: classNames(styles.separator, separatorClassName),
|
|
16
17
|
children: '/'
|
|
17
18
|
}), child]
|
|
@@ -54,7 +54,7 @@ export declare class Button extends PureComponent<ButtonProps> {
|
|
|
54
54
|
static contextType: React.Context<ControlsHeight | (() => ControlsHeight)>;
|
|
55
55
|
context: React.ContextType<typeof ControlsHeightContext>;
|
|
56
56
|
buttonRef: React.RefObject<HTMLButtonElement | null>;
|
|
57
|
-
render():
|
|
57
|
+
render(): React.JSX.Element;
|
|
58
58
|
}
|
|
59
59
|
export { Size as IconSize };
|
|
60
60
|
export type ContainerProps<T extends ButtonProps> = React.JSX.LibraryManagedAttributes<typeof Button, T>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent, createRef } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import chevronDownIcon from '@jetbrains/icons/chevron-down';
|
|
@@ -8,8 +7,10 @@ import Icon from '../icon/icon.js';
|
|
|
8
7
|
import ClickableLink from '../link/clickable-link.js';
|
|
9
8
|
import { ControlsHeightContext } from '../global/controls-height.js';
|
|
10
9
|
import { g as getButtonClasses, s as styles } from '../_helpers/button.classes.js';
|
|
10
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
11
11
|
import { Size } from '../icon/icon.constants.js';
|
|
12
12
|
import '../_helpers/icon-svg.js';
|
|
13
|
+
import 'react-compiler-runtime';
|
|
13
14
|
import '../global/memoize.js';
|
|
14
15
|
import '../global/configuration.js';
|
|
15
16
|
|
|
@@ -83,16 +84,16 @@ class Button extends PureComponent {
|
|
|
83
84
|
inline: isInline,
|
|
84
85
|
height: height !== null && height !== void 0 ? height : typeof this.context === 'function' ? this.context() : this.context
|
|
85
86
|
});
|
|
86
|
-
const content = jsxs(Fragment, {
|
|
87
|
-
children: [icon && jsx(Icon, {
|
|
87
|
+
const content = /*#__PURE__*/jsxs(Fragment, {
|
|
88
|
+
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
88
89
|
className: classNames(styles.icon, iconClassName),
|
|
89
90
|
glyph: icon,
|
|
90
91
|
size: iconSize,
|
|
91
92
|
suppressSizeWarning: iconSuppressSizeWarning
|
|
92
|
-
}), children, iconRight && jsx(Icon, {
|
|
93
|
+
}), children, iconRight && /*#__PURE__*/jsx(Icon, {
|
|
93
94
|
className: classNames(styles.iconRight, iconRightClassName),
|
|
94
95
|
glyph: iconRight
|
|
95
|
-
}), dropdown && jsx(Icon, {
|
|
96
|
+
}), dropdown && /*#__PURE__*/jsx(Icon, {
|
|
96
97
|
glyph: isInline ? chevron12pxDown : chevronDownIcon,
|
|
97
98
|
className: styles.dropdownIcon
|
|
98
99
|
})]
|
|
@@ -101,17 +102,17 @@ class Button extends PureComponent {
|
|
|
101
102
|
const commonProps = {
|
|
102
103
|
...(props.href !== undefined && isDisabled ? removeLinkProps(props) : props),
|
|
103
104
|
className: classes,
|
|
104
|
-
children: jsxs(Fragment, {
|
|
105
|
-
children: [loader && !isInline && jsx("div", {
|
|
105
|
+
children: /*#__PURE__*/jsxs(Fragment, {
|
|
106
|
+
children: [loader && !isInline && /*#__PURE__*/jsx("div", {
|
|
106
107
|
className: styles.loaderBackground
|
|
107
108
|
}), content]
|
|
108
109
|
})
|
|
109
110
|
};
|
|
110
|
-
return 'href' in commonProps && commonProps.href !== undefined ? jsx(ClickableLink, {
|
|
111
|
+
return 'href' in commonProps && commonProps.href !== undefined ? /*#__PURE__*/jsx(ClickableLink, {
|
|
111
112
|
...commonProps
|
|
112
|
-
}) : jsx("button", {
|
|
113
|
+
}) : /*#__PURE__*/jsx("button", {
|
|
113
114
|
ref: this.buttonRef,
|
|
114
|
-
type:
|
|
115
|
+
type: "button",
|
|
115
116
|
disabled: isDisabled,
|
|
116
117
|
...commonProps
|
|
117
118
|
});
|
|
@@ -10,6 +10,6 @@ export interface ButtonGroupProps extends HTMLAttributes<HTMLElement> {
|
|
|
10
10
|
* @name Button Group
|
|
11
11
|
*/
|
|
12
12
|
export default class ButtonGroup extends PureComponent<ButtonGroupProps> {
|
|
13
|
-
render(): import("react
|
|
13
|
+
render(): import("react").JSX.Element;
|
|
14
14
|
}
|
|
15
15
|
export { Caption };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
1
|
import { PureComponent, Children } from 'react';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import joinDataTestAttributes from '../global/data-tests.js';
|
|
@@ -6,10 +5,9 @@ import { ControlLabel } from '../control-label/control-label.js';
|
|
|
6
5
|
import ControlHelp from '../control-help/control-help.js';
|
|
7
6
|
import { s as styles } from '../_helpers/caption.js';
|
|
8
7
|
export { C as Caption } from '../_helpers/caption.js';
|
|
8
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
9
|
+
import 'react-compiler-runtime';
|
|
9
10
|
|
|
10
|
-
/**
|
|
11
|
-
* @name Button Group
|
|
12
|
-
*/
|
|
13
11
|
class ButtonGroup extends PureComponent {
|
|
14
12
|
render() {
|
|
15
13
|
const {
|
|
@@ -23,14 +21,14 @@ class ButtonGroup extends PureComponent {
|
|
|
23
21
|
const classes = classNames(split ? styles.split : styles.buttonGroup, className, {
|
|
24
22
|
[styles.disabled]: Children.toArray(this.props.children).every(child => !!child && typeof child === 'object' && 'props' in child && child.props.disabled)
|
|
25
23
|
});
|
|
26
|
-
return jsxs(Fragment, {
|
|
27
|
-
children: [label && jsx(ControlLabel, {
|
|
24
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
25
|
+
children: [label && /*#__PURE__*/jsx(ControlLabel, {
|
|
28
26
|
children: label
|
|
29
|
-
}), jsx("div", {
|
|
27
|
+
}), /*#__PURE__*/jsx("div", {
|
|
30
28
|
...restProps,
|
|
31
29
|
"data-test": joinDataTestAttributes('ring-button-group', dataTest),
|
|
32
30
|
className: classes
|
|
33
|
-
}), help && jsx(ControlHelp, {
|
|
31
|
+
}), help && /*#__PURE__*/jsx(ControlHelp, {
|
|
34
32
|
className: styles.help,
|
|
35
33
|
children: help
|
|
36
34
|
})]
|