@jetbrains/ring-ui-built 8.0.0-beta.6 → 8.0.0-beta.8

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.
Files changed (70) hide show
  1. package/components/_helpers/avatar-info.js +2 -4
  2. package/components/_helpers/icon-svg.js +1 -1
  3. package/components/auth-dialog/auth-dialog.js +1 -1
  4. package/components/avatar/avatar-size.d.ts +0 -4
  5. package/components/avatar/avatar-size.js +0 -4
  6. package/components/avatar/avatar.js +0 -7
  7. package/components/avatar/fallback-avatar.js +2 -47
  8. package/components/avatar-stack/avatar-stack.js +3 -3
  9. package/components/button/button.d.ts +0 -4
  10. package/components/button/button.js +2 -8
  11. package/components/confirm/confirm.js +1 -1
  12. package/components/confirm-service/confirm-service.js +1 -1
  13. package/components/data-list/data-list.js +1 -1
  14. package/components/data-list/item.js +1 -1
  15. package/components/date-picker/date-input.js +1 -1
  16. package/components/date-picker/date-popup.js +1 -1
  17. package/components/dialog/dialog.js +1 -1
  18. package/components/dropdown/anchor.js +1 -1
  19. package/components/dropdown/dropdown.js +1 -1
  20. package/components/global/variables.interface.d.ts +0 -4
  21. package/components/header/header-icon.js +1 -1
  22. package/components/header/header.js +1 -1
  23. package/components/header/profile.js +3 -3
  24. package/components/header/services.js +1 -1
  25. package/components/header/smart-profile.js +1 -1
  26. package/components/header/smart-services.js +1 -1
  27. package/components/icon/icon.d.ts +0 -1
  28. package/components/icon/icon.js +1 -4
  29. package/components/input/input.js +1 -1
  30. package/components/list/consts.d.ts +0 -1
  31. package/components/list/consts.js +0 -1
  32. package/components/list/list-item.js +2 -3
  33. package/components/list/list.d.ts +0 -4
  34. package/components/login-dialog/login-dialog.js +1 -1
  35. package/components/pager/pager.js +2 -2
  36. package/components/select/chevron-button.js +1 -1
  37. package/components/select/select-filter.js +1 -1
  38. package/components/select/select-popup.d.ts +2 -1
  39. package/components/select/select-popup.js +8 -3
  40. package/components/select/select.d.ts +2 -0
  41. package/components/select/select.js +4 -3
  42. package/components/style.css +1 -1
  43. package/components/tags-input/tags-input.js +2 -2
  44. package/components/user-agreement/user-agreement.js +1 -1
  45. package/components/user-card/card.js +3 -3
  46. package/components/user-card/smart-user-card-tooltip.js +1 -1
  47. package/components/user-card/tooltip.js +1 -1
  48. package/components/user-card/user-card.js +3 -3
  49. package/package.json +1 -2
  50. package/components/__mocks__/old-browsers-message.js +0 -3
  51. package/components/_helpers/grid.js +0 -3
  52. package/components/_helpers/sidebar.js +0 -110
  53. package/components/content-layout/content-layout.d.ts +0 -20
  54. package/components/content-layout/content-layout.js +0 -50
  55. package/components/content-layout/sidebar.d.ts +0 -26
  56. package/components/content-layout/sidebar.js +0 -5
  57. package/components/expand/collapsible-group.d.ts +0 -8
  58. package/components/expand/collapsible-group.js +0 -52
  59. package/components/grid/col.d.ts +0 -16
  60. package/components/grid/col.js +0 -63
  61. package/components/grid/grid.d.ts +0 -13
  62. package/components/grid/grid.js +0 -27
  63. package/components/grid/row.d.ts +0 -21
  64. package/components/grid/row.js +0 -72
  65. package/components/old-browsers-message/old-browsers-message-stop.d.ts +0 -1
  66. package/components/old-browsers-message/old-browsers-message-stop.js +0 -5
  67. package/components/old-browsers-message/old-browsers-message.d.ts +0 -5
  68. package/components/old-browsers-message/old-browsers-message.js +0 -89
  69. package/components/old-browsers-message/white-list.d.ts +0 -2
  70. package/components/old-browsers-message/white-list.js +0 -30
@@ -10,8 +10,8 @@ import '@jetbrains/icons/close-12px';
10
10
  import '../button/button.js';
11
11
  import '@jetbrains/icons/chevron-down';
12
12
  import '@jetbrains/icons/chevron-12px-down';
13
- import 'util-deprecate';
14
13
  import '../icon/icon.js';
14
+ import 'util-deprecate';
15
15
  import '../icon/icon.constants.js';
16
16
  import '../_helpers/icon-svg.js';
17
17
  import 'react/compiler-runtime';
@@ -4,7 +4,7 @@
4
4
  import { type ComponentType, type CSSProperties, PureComponent, type ReactNode, type Ref, type SyntheticEvent } from 'react';
5
5
  import * as React from 'react';
6
6
  import { type IconType } from '../icon/icon';
7
- import Popup from '../popup/popup';
7
+ import Popup, { type PopupAttrs } from '../popup/popup';
8
8
  import { type Directions } from '../popup/position';
9
9
  import List, { type SelectHandlerParams } from '../list/list';
10
10
  import Caret from '../caret/caret';
@@ -60,6 +60,7 @@ export interface SelectPopupProps<T = unknown> {
60
60
  ringPopupTarget: string | null;
61
61
  onSelectAll: (isSelectAll: boolean) => void;
62
62
  onEmptyPopupEnter: (e: KeyboardEvent) => void;
63
+ popupProps?: Partial<PopupAttrs> | undefined;
63
64
  className?: string | null | undefined;
64
65
  compact?: boolean | null | undefined;
65
66
  dir?: 'ltr' | 'rtl' | undefined;
@@ -446,9 +446,10 @@ class SelectPopup extends PureComponent {
446
446
  offset,
447
447
  style,
448
448
  dir,
449
- filter
449
+ filter,
450
+ popupProps
450
451
  } = this.props;
451
- const classes = classNames(styles.popup, className);
452
+ const classes = classNames(styles.popup, className, popupProps?.className);
452
453
  return /*#__PURE__*/jsx(PopupTargetContext.Consumer, {
453
454
  children: ringPopupTarget => {
454
455
  const filterWithTags = this.getFilterWithTags();
@@ -457,6 +458,7 @@ class SelectPopup extends PureComponent {
457
458
  const bottomLine = this.getBottomLine();
458
459
  const hasContent = filterWithTags || selectAll || list || bottomLine || toolbar || topbar;
459
460
  return /*#__PURE__*/jsx(Popup, {
461
+ ...popupProps,
460
462
  trapFocus: false,
461
463
  ref: this.popupRef,
462
464
  hidden: hidden || !hasContent,
@@ -474,7 +476,10 @@ class SelectPopup extends PureComponent {
474
476
  onMouseDown: this.mouseDownHandler,
475
477
  target: this.props.ringPopupTarget,
476
478
  autoCorrectTopOverflow: false,
477
- style: style,
479
+ style: {
480
+ ...popupProps?.style,
481
+ ...style
482
+ },
478
483
  largeBorderRadius: true,
479
484
  children: /*#__PURE__*/jsxs("div", {
480
485
  dir: dir,
@@ -1,5 +1,6 @@
1
1
  import { type ButtonHTMLAttributes, Component, type ComponentType, type CSSProperties, type HTMLAttributes, type ReactNode, type Ref, type RefCallback, type SyntheticEvent } from 'react';
2
2
  import * as React from 'react';
3
+ import { type PopupAttrs } from '../popup/popup';
3
4
  import { type SelectHandlerParams } from '../list/list';
4
5
  import { Size } from '../input/input';
5
6
  import { type LabelType } from '../control-label/control-label';
@@ -99,6 +100,7 @@ export interface BaseSelectProps<T = unknown> {
99
100
  getInitial?: (() => string) | null | undefined;
100
101
  minWidth?: number | undefined;
101
102
  popupClassName?: string | null | undefined;
103
+ popupProps?: Partial<PopupAttrs> | undefined;
102
104
  popupStyle?: CSSProperties | undefined;
103
105
  top?: number | undefined;
104
106
  left?: number | undefined;
@@ -25,8 +25,6 @@ import ChevronButton from './chevron-button.js';
25
25
  import { ControlsHeight } from '../global/configuration.js';
26
26
  import { Size as Size$1 } from '../avatar/avatar-size.js';
27
27
  import 'react/compiler-runtime';
28
- import 'core-js/modules/es.array.includes.js';
29
- import 'util-deprecate';
30
28
  import '../global/url.js';
31
29
  import '../global/dom.js';
32
30
  import '../avatar/fallback-avatar.js';
@@ -35,6 +33,7 @@ import 'react-dom';
35
33
  import '../global/schedule-raf.js';
36
34
  import '../tab-trap/tab-trap.js';
37
35
  import '../popup/position.js';
36
+ import 'core-js/modules/es.array.includes.js';
38
37
  import '../popup/popup.consts.js';
39
38
  import '../popup/popup.target.js';
40
39
  import '../popup/position-css.js';
@@ -47,6 +46,7 @@ import 'react-virtualized/dist/es/List';
47
46
  import 'react-virtualized/dist/es/AutoSizer';
48
47
  import 'react-virtualized/dist/es/WindowScroller';
49
48
  import 'react-virtualized/dist/es/CellMeasurer';
49
+ import 'util-deprecate';
50
50
  import 'memoize-one';
51
51
  import '../global/create-stateful-context.js';
52
52
  import '../list/list-item.js';
@@ -102,7 +102,7 @@ const getStyle = memoize(iconsLength => ({
102
102
  }));
103
103
  const isInputMode = type => type === Type.INPUT || type === Type.INPUT_WITHOUT_CONTROLS;
104
104
  function getLowerCaseLabel(item) {
105
- if (List.isItemType(List.ListProps.Type.SEPARATOR, item) || List.isItemType(List.ListProps.Type.HINT, item) || typeof item.label !== 'string') {
105
+ if (List.isItemType(List.ListProps.Type.SEPARATOR, item) || typeof item.label !== 'string') {
106
106
  return null;
107
107
  }
108
108
  return item.label.toLowerCase();
@@ -585,6 +585,7 @@ class Select extends Component {
585
585
  maxHeight: this.props.maxHeight,
586
586
  minWidth: this.props.minWidth,
587
587
  directions: this.props.directions,
588
+ popupProps: this.props.popupProps,
588
589
  className: this.props.popupClassName,
589
590
  style: this.props.popupStyle,
590
591
  top: this.props.top,