@jetbrains/ring-ui-built 7.0.0-beta.13 → 7.0.0-beta.14

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 (158) hide show
  1. package/components/_helpers/anchor.js +4 -4
  2. package/components/_helpers/badge.js +2 -2
  3. package/components/_helpers/button__classes.js +13 -13
  4. package/components/_helpers/caption.js +3 -3
  5. package/components/_helpers/card.js +18 -18
  6. package/components/_helpers/date-picker.js +2 -2
  7. package/components/_helpers/dialog__body-scroll-preventer.js +4 -4
  8. package/components/_helpers/grid.js +2 -2
  9. package/components/_helpers/header.js +2 -2
  10. package/components/_helpers/heading.js +2 -2
  11. package/components/_helpers/icon__svg.js +6 -6
  12. package/components/_helpers/input.js +14 -14
  13. package/components/_helpers/island.js +2 -2
  14. package/components/_helpers/link.js +2 -2
  15. package/components/_helpers/list.js +2 -2
  16. package/components/_helpers/query-assist__suggestions.js +7 -7
  17. package/components/_helpers/select__filter.js +3 -3
  18. package/components/_helpers/services-link.js +3 -3
  19. package/components/_helpers/sidebar.js +9 -9
  20. package/components/_helpers/tab-link.js +7 -7
  21. package/components/_helpers/table.js +2 -2
  22. package/components/_helpers/theme.js +9 -9
  23. package/components/_helpers/title.js +7 -7
  24. package/components/alert/alert.d.ts +2 -2
  25. package/components/alert/alert.js +12 -12
  26. package/components/alert/container.js +3 -3
  27. package/components/auth/auth__core.js +1 -1
  28. package/components/auth/background-flow.js +2 -2
  29. package/components/auth/down-notification.js +3 -3
  30. package/components/auth/token-validator.js +1 -1
  31. package/components/auth-dialog/auth-dialog.js +10 -10
  32. package/components/auth-dialog-service/auth-dialog-service.js +1 -1
  33. package/components/avatar/avatar.js +6 -6
  34. package/components/badge/badge.js +6 -6
  35. package/components/breadcrumbs/breadcrumbs.js +2 -2
  36. package/components/button/button.js +4 -4
  37. package/components/button/button__classes.d.ts +1 -1
  38. package/components/button-group/button-group.js +3 -3
  39. package/components/button-set/button-set.js +2 -2
  40. package/components/button-toolbar/button-toolbar.d.ts +1 -1
  41. package/components/button-toolbar/button-toolbar.js +2 -2
  42. package/components/checkbox/checkbox.js +8 -8
  43. package/components/code/code.d.ts +1 -1
  44. package/components/code/code.js +6 -6
  45. package/components/collapse/collapse-content.js +4 -4
  46. package/components/confirm/confirm.d.ts +2 -2
  47. package/components/confirm/confirm.js +3 -3
  48. package/components/confirm-service/confirm-service.d.ts +1 -1
  49. package/components/content-layout/content-layout.js +4 -4
  50. package/components/contenteditable/contenteditable.d.ts +1 -1
  51. package/components/control-help/control-help.js +2 -2
  52. package/components/control-label/control-label.js +5 -5
  53. package/components/data-list/data-list.d.ts +2 -2
  54. package/components/data-list/data-list.js +6 -6
  55. package/components/data-list/item.js +8 -8
  56. package/components/date-picker/date-input.js +2 -2
  57. package/components/date-picker/date-picker.js +8 -8
  58. package/components/date-picker/date-popup.js +4 -4
  59. package/components/date-picker/day.js +15 -15
  60. package/components/date-picker/month-names.js +5 -5
  61. package/components/date-picker/month-slider.js +3 -3
  62. package/components/date-picker/month.js +3 -3
  63. package/components/date-picker/months.js +3 -3
  64. package/components/date-picker/weekdays.js +4 -4
  65. package/components/date-picker/years.js +5 -5
  66. package/components/dialog/dialog.js +13 -13
  67. package/components/dropdown/dropdown.d.ts +2 -2
  68. package/components/dropdown/dropdown.js +2 -2
  69. package/components/editable-heading/editable-heading.js +19 -19
  70. package/components/error-bubble/error-bubble.js +4 -4
  71. package/components/error-message/error-message.js +6 -6
  72. package/components/footer/footer.js +8 -8
  73. package/components/form/form.js +2 -3
  74. package/components/global/theme.js +1 -1
  75. package/components/grid/col.js +4 -4
  76. package/components/grid/grid.js +2 -2
  77. package/components/grid/row.js +4 -4
  78. package/components/group/group.js +2 -2
  79. package/components/header/header-icon.js +4 -4
  80. package/components/header/header.js +3 -3
  81. package/components/header/links.js +2 -2
  82. package/components/header/logo.js +2 -2
  83. package/components/header/profile.d.ts +2 -2
  84. package/components/header/profile.js +10 -10
  85. package/components/header/services.js +7 -7
  86. package/components/header/tray.js +3 -3
  87. package/components/heading/heading.js +3 -3
  88. package/components/http/http.d.ts +3 -3
  89. package/components/icon/icon.js +8 -6
  90. package/components/input/input-legacy.js +2 -3
  91. package/components/input-size/input-size.js +2 -3
  92. package/components/island/content.js +7 -7
  93. package/components/island/header.js +4 -4
  94. package/components/island/island.js +4 -4
  95. package/components/link/link.js +7 -7
  96. package/components/list/list.d.ts +1 -1
  97. package/components/list/list.js +5 -5
  98. package/components/list/list__custom.js +5 -5
  99. package/components/list/list__hint.js +2 -2
  100. package/components/list/list__item.js +22 -22
  101. package/components/list/list__link.js +5 -5
  102. package/components/list/list__separator.js +3 -3
  103. package/components/list/list__title.js +5 -5
  104. package/components/loader/loader__core.js +5 -5
  105. package/components/loader-inline/loader-inline.js +3 -3
  106. package/components/loader-screen/loader-screen.js +4 -4
  107. package/components/login-dialog/login-dialog.js +6 -6
  108. package/components/markdown/markdown.d.ts +2 -2
  109. package/components/markdown/markdown.js +6 -6
  110. package/components/message/message.js +9 -9
  111. package/components/old-browsers-message/white-list.js +2 -2
  112. package/components/pager/pager.js +9 -9
  113. package/components/panel/panel.js +2 -2
  114. package/components/permissions/permissions__cache.js +2 -2
  115. package/components/popup/popup.js +5 -5
  116. package/components/popup/position.js +2 -2
  117. package/components/progress-bar/progress-bar.d.ts +2 -2
  118. package/components/progress-bar/progress-bar.js +5 -5
  119. package/components/query-assist/query-assist.js +25 -25
  120. package/components/radio/radio__item.js +5 -5
  121. package/components/scrollable-section/scrollable-section.js +6 -6
  122. package/components/select/select.d.ts +1 -1
  123. package/components/select/select.js +22 -21
  124. package/components/select/select__popup.js +11 -11
  125. package/components/shortcuts/core.js +1 -1
  126. package/components/slider/slider.js +20 -20
  127. package/components/style.css +1 -1
  128. package/components/tab-trap/tab-trap.js +2 -2
  129. package/components/table/cell.js +2 -2
  130. package/components/table/header-cell.js +8 -8
  131. package/components/table/header.js +6 -6
  132. package/components/table/row.js +10 -10
  133. package/components/table/selection.d.ts +2 -3
  134. package/components/table/simple-table.js +2 -2
  135. package/components/table/table.js +12 -12
  136. package/components/tabs/collapsible-more.d.ts +1 -1
  137. package/components/tabs/collapsible-more.js +6 -6
  138. package/components/tabs/collapsible-tab.js +4 -4
  139. package/components/tabs/collapsible-tabs.d.ts +2 -2
  140. package/components/tabs/collapsible-tabs.js +5 -5
  141. package/components/tabs/dumb-tabs.js +5 -5
  142. package/components/tag/tag.js +13 -13
  143. package/components/tags-input/tags-input.js +8 -8
  144. package/components/text/text.js +7 -7
  145. package/components/toggle/toggle.d.ts +2 -2
  146. package/components/toggle/toggle.js +12 -12
  147. package/components/tooltip/tooltip.js +3 -3
  148. package/components/user-agreement/user-agreement.js +7 -7
  149. package/components/user-card/smart-user-card-tooltip.js +2 -2
  150. package/components/user-card/tooltip.js +2 -2
  151. package/package.json +8 -7
  152. package/typings.d.ts +2 -4
  153. package/components/island-legacy/content-legacy.d.ts +0 -5
  154. package/components/island-legacy/content-legacy.js +0 -23
  155. package/components/island-legacy/header-legacy.d.ts +0 -5
  156. package/components/island-legacy/header-legacy.js +0 -26
  157. package/components/island-legacy/island-legacy.d.ts +0 -7
  158. package/components/island-legacy/island-legacy.js +0 -25
@@ -6,7 +6,7 @@ import getUID from '../global/get-uid.js';
6
6
  import ControlHelp from '../control-help/control-help.js';
7
7
  import { jsxs, jsx } from 'react/jsx-runtime';
8
8
 
9
- var modules_df92307a = {"light":"light_rui_2ac4","radio":"radio_rui_798a","circle":"circle_rui_798a","input":"input_rui_798a","focus":"focus_rui_798a","label":"label_rui_798a"};
9
+ var styles = {"radio":"radio_rui_798a","circle":"circle_rui_798a","input":"input_rui_798a","focus":"focus_rui_798a","label":"label_rui_798a"};
10
10
 
11
11
  const _excluded = ["className", "children", "help"],
12
12
  _excluded2 = ["value", "onChange"];
@@ -32,7 +32,7 @@ class RadioItemInner extends Component {
32
32
  help
33
33
  } = _this$props,
34
34
  restProps = _objectWithoutProperties(_this$props, _excluded);
35
- const classes = classNames(modules_df92307a.radio, className);
35
+ const classes = classNames(styles.radio, className);
36
36
  return /*#__PURE__*/jsxs("label", {
37
37
  ref: this.labelRef,
38
38
  className: classes,
@@ -41,12 +41,12 @@ class RadioItemInner extends Component {
41
41
  id: this.uid
42
42
  }, restProps), {}, {
43
43
  ref: this.inputRef,
44
- className: modules_df92307a.input,
44
+ className: styles.input,
45
45
  type: "radio"
46
46
  })), /*#__PURE__*/jsx("span", {
47
- className: modules_df92307a.circle
47
+ className: styles.circle
48
48
  }), /*#__PURE__*/jsxs("span", {
49
- className: modules_df92307a.label,
49
+ className: styles.label,
50
50
  children: [children, help && /*#__PURE__*/jsx(ControlHelp, {
51
51
  children: help
52
52
  })]
@@ -4,7 +4,7 @@ import { useState, useRef, useCallback, useEffect } from 'react';
4
4
  import classNames from 'classnames';
5
5
  import { jsx } from 'react/jsx-runtime';
6
6
 
7
- var modules_8c094df0 = {"scrollableSection":"scrollableSection_rui_29c1","withTopBorder":"withTopBorder_rui_29c1","withRightBorder":"withRightBorder_rui_29c1","withBottomBorder":"withBottomBorder_rui_29c1","withLeftBorder":"withLeftBorder_rui_29c1"};
7
+ var styles = {"scrollableSection":"scrollableSection_rui_29c1","withTopBorder":"withTopBorder_rui_29c1","withRightBorder":"withRightBorder_rui_29c1","withBottomBorder":"withBottomBorder_rui_29c1","withLeftBorder":"withLeftBorder_rui_29c1"};
8
8
 
9
9
  const _excluded = ["className"];
10
10
  function ScrollableSection(_ref) {
@@ -39,11 +39,11 @@ function ScrollableSection(_ref) {
39
39
  return () => window.removeEventListener('resize', calculateScrollPosition);
40
40
  }, [calculateScrollPosition]);
41
41
  return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
42
- className: classNames(modules_8c094df0.scrollableSection, className, {
43
- [modules_8c094df0.withTopBorder]: !scrolledToTop,
44
- [modules_8c094df0.withRightBorder]: !scrolledToRight,
45
- [modules_8c094df0.withBottomBorder]: !scrolledToBottom,
46
- [modules_8c094df0.withLeftBorder]: !scrolledToLeft
42
+ className: classNames(styles.scrollableSection, className, {
43
+ [styles.withTopBorder]: !scrolledToTop,
44
+ [styles.withRightBorder]: !scrolledToRight,
45
+ [styles.withBottomBorder]: !scrolledToBottom,
46
+ [styles.withLeftBorder]: !scrolledToLeft
47
47
  }),
48
48
  ref: ref,
49
49
  onScroll: calculateScrollPosition
@@ -49,7 +49,7 @@ export interface CustomAnchorProps {
49
49
  } & DataTestProps;
50
50
  popup: ReactNode;
51
51
  }
52
- export type CustomAnchor = ((props: CustomAnchorProps) => ReactNode);
52
+ export type CustomAnchor = (props: CustomAnchorProps) => ReactNode;
53
53
  export interface BaseSelectProps<T = unknown> {
54
54
  data: readonly SelectItem<T>[];
55
55
  filter: boolean | Filter<T>;
@@ -13,7 +13,7 @@ import '../dropdown/dropdown.js';
13
13
  import Avatar, { Size as Size$1 } from '../avatar/avatar.js';
14
14
  import Popup from '../popup/popup.js';
15
15
  import List, { ActiveItemContext } from '../list/list.js';
16
- import { S as Size, I as Input, m as modules_88cfaf40 } from '../_helpers/input.js';
16
+ import { S as Size, I as Input, i as inputStyles } from '../_helpers/input.js';
17
17
  import { ControlLabel } from '../control-label/control-label.js';
18
18
  import Shortcuts from '../shortcuts/shortcuts.js';
19
19
  import { Button } from '../button/button.js';
@@ -82,7 +82,7 @@ import '../caret/caret.js';
82
82
  import '../text/text.js';
83
83
  import '../_helpers/select__filter.js';
84
84
 
85
- var modules_9d0de074 = {"button-shadow":"i__const_button_shadow_0","select":"select_rui_e9c2","value":"value_rui_e9c2 ellipsis_rui_f295 font_rui_f295","icons":"icons_rui_e9c2","light":"light_rui_2ac4","toolbar":"toolbar_rui_e9c2","button":"button_rui_e9c2","buttonSpaced":"buttonSpaced_rui_e9c2","inputMode":"inputMode_rui_e9c2","heightS":"heightS_rui_e9c2","heightL":"heightL_rui_e9c2","selectedIcon":"selectedIcon_rui_e9c2 resetButton_rui_f295","clearIcon":"clearIcon_rui_e9c2","sizeS":"sizeS_rui_e9c2","sizeM":"sizeM_rui_e9c2","sizeL":"sizeL_rui_e9c2","sizeFULL":"sizeFULL_rui_e9c2","sizeAUTO":"sizeAUTO_rui_e9c2","buttonMode":"buttonMode_rui_e9c2","open":"open_rui_e9c2","buttonContainer":"buttonContainer_rui_e9c2","buttonValue":"buttonValue_rui_e9c2 ellipsis_rui_f295","buttonValueOpen":"buttonValueOpen_rui_e9c2","buttonValueEmpty":"buttonValueEmpty_rui_e9c2","label":"label_rui_e9c2","disabled":"disabled_rui_e9c2","avatar":"avatar_rui_e9c2","popup":"popup_rui_e9c2","chevron":"chevron_rui_e9c2","chevronIcon":"chevronIcon_rui_e9c2"};
85
+ var styles = {"select":"select_rui_e9c2","value":"value_rui_e9c2 ellipsis_rui_f295 font_rui_f295","icons":"icons_rui_e9c2","toolbar":"toolbar_rui_e9c2","button":"button_rui_e9c2","buttonSpaced":"buttonSpaced_rui_e9c2","inputMode":"inputMode_rui_e9c2","heightS":"heightS_rui_e9c2","heightL":"heightL_rui_e9c2","selectedIcon":"selectedIcon_rui_e9c2 resetButton_rui_f295","clearIcon":"clearIcon_rui_e9c2","sizeS":"sizeS_rui_e9c2","sizeM":"sizeM_rui_e9c2","sizeL":"sizeL_rui_e9c2","sizeFULL":"sizeFULL_rui_e9c2","sizeAUTO":"sizeAUTO_rui_e9c2","buttonMode":"buttonMode_rui_e9c2","open":"open_rui_e9c2","buttonContainer":"buttonContainer_rui_e9c2","buttonValue":"buttonValue_rui_e9c2 ellipsis_rui_f295","buttonValueOpen":"buttonValueOpen_rui_e9c2","buttonValueEmpty":"buttonValueEmpty_rui_e9c2","label":"label_rui_e9c2","disabled":"disabled_rui_e9c2","avatar":"avatar_rui_e9c2","popup":"popup_rui_e9c2","chevron":"chevron_rui_e9c2","chevronIcon":"chevronIcon_rui_e9c2"};
86
86
 
87
87
  function noop() {}
88
88
  /**
@@ -422,6 +422,7 @@ class Select extends Component {
422
422
  _defineProperty(this, "_redrawPopup", () => {
423
423
  if (this.props.multiple) {
424
424
  setTimeout(() => {
425
+ //setTimeout solves events order and bubbling issue
425
426
  if (this.isInputMode()) {
426
427
  this.clearFilter();
427
428
  }
@@ -696,7 +697,7 @@ class Select extends Component {
696
697
  rgItemType: List.ListProps.Type.CUSTOM,
697
698
  template: /*#__PURE__*/jsx(Button, {
698
699
  text: true,
699
- className: modules_9d0de074.button,
700
+ className: styles.button,
700
701
  "data-test": "ring-select-reset-tags-button",
701
702
  height: ControlsHeight.S,
702
703
  children: reset.label
@@ -801,13 +802,13 @@ class Select extends Component {
801
802
  }
802
803
  return /*#__PURE__*/jsxs("div", {
803
804
  className: classNames({
804
- [modules_9d0de074.toolbar]: Boolean(this.state.addButton || renderBottomToolbar)
805
+ [styles.toolbar]: Boolean(this.state.addButton || renderBottomToolbar)
805
806
  }),
806
807
  "data-test": "ring-select-toolbar",
807
808
  children: [renderBottomToolbar && renderBottomToolbar(), this.state.addButton && /*#__PURE__*/jsx(Button, {
808
809
  text: true,
809
810
  delayed: delayed,
810
- className: classNames(modules_9d0de074.button, modules_9d0de074.buttonSpaced),
811
+ className: classNames(styles.button, styles.buttonSpaced),
811
812
  onClick: this.addHandler,
812
813
  "data-test": "ring-select-toolbar-button",
813
814
  children: prefix ? "".concat(prefix, " ").concat(label) : label
@@ -894,7 +895,7 @@ class Select extends Component {
894
895
  icons.push(/*#__PURE__*/jsx("button", {
895
896
  title: "Toggle options popup",
896
897
  type: "button",
897
- className: modules_9d0de074.selectedIcon,
898
+ className: styles.selectedIcon,
898
899
  disabled: this.props.disabled,
899
900
  onClick: this._clickHandler,
900
901
  style: {
@@ -906,7 +907,7 @@ class Select extends Component {
906
907
  icons.push(/*#__PURE__*/jsx(Button, {
907
908
  title: "Clear selection",
908
909
  "data-test": "ring-clear-select",
909
- className: modules_9d0de074.clearIcon,
910
+ className: styles.clearIcon,
910
911
  disabled: this.props.disabled,
911
912
  onClick: this.clear,
912
913
  height: height,
@@ -916,8 +917,8 @@ class Select extends Component {
916
917
  if (!hideArrow) {
917
918
  icons.push(/*#__PURE__*/jsx(Button, {
918
919
  title: "Toggle options popup",
919
- className: modules_9d0de074.chevron,
920
- iconClassName: modules_9d0de074.chevronIcon,
920
+ className: styles.chevron,
921
+ iconClassName: styles.chevronIcon,
921
922
  icon: chevronDownIcon,
922
923
  disabled: this.props.disabled,
923
924
  height: height,
@@ -929,7 +930,7 @@ class Select extends Component {
929
930
  _getAvatar() {
930
931
  var _this$state$selected, _this$state$selected2;
931
932
  return !Array.isArray(this.state.selected) && (((_this$state$selected = this.state.selected) === null || _this$state$selected === void 0 ? void 0 : _this$state$selected.avatar) || ((_this$state$selected2 = this.state.selected) === null || _this$state$selected2 === void 0 ? void 0 : _this$state$selected2.showGeneratedAvatar)) && /*#__PURE__*/jsx(Avatar, {
932
- className: modules_9d0de074.avatar,
933
+ className: styles.avatar,
933
934
  url: this.state.selected.avatar,
934
935
  username: this.state.selected.username,
935
936
  size: Size$1.Size20
@@ -957,9 +958,9 @@ class Select extends Component {
957
958
  const {
958
959
  shortcutsEnabled
959
960
  } = this.state;
960
- const classes = classNames(modules_9d0de074.select, 'ring-js-shortcuts', this.props.className, modules_9d0de074["height".concat(this.props.height || this.context)], {
961
- [modules_9d0de074["size".concat(this.props.size)]]: this.props.type !== Type.INLINE,
962
- [modules_9d0de074.disabled]: this.props.disabled
961
+ const classes = classNames(styles.select, 'ring-js-shortcuts', this.props.className, styles["height".concat(this.props.height || this.context)], {
962
+ [styles["size".concat(this.props.size)]]: this.props.type !== Type.INLINE,
963
+ [styles.disabled]: this.props.disabled
963
964
  });
964
965
  let style;
965
966
  let iconsNode;
@@ -967,7 +968,7 @@ class Select extends Component {
967
968
  const icons = this._getIcons();
968
969
  style = getStyle(icons.length);
969
970
  iconsNode = /*#__PURE__*/jsx("div", {
970
- className: modules_9d0de074.icons,
971
+ className: styles.icons,
971
972
  children: icons
972
973
  });
973
974
  }
@@ -984,7 +985,7 @@ class Select extends Component {
984
985
  return /*#__PURE__*/jsxs(Fragment$1, {
985
986
  children: [/*#__PURE__*/jsxs("div", {
986
987
  ref: this.nodeRef,
987
- className: classNames(classes, modules_9d0de074.inputMode),
988
+ className: classNames(classes, styles.inputMode),
988
989
  "data-test": joinDataTestAttributes('ring-select', dataTest),
989
990
  role: "presentation" // has interactive elements inside
990
991
  ,
@@ -1019,14 +1020,14 @@ class Select extends Component {
1019
1020
  afterInput: iconsNode
1020
1021
  })), this._renderPopup()]
1021
1022
  }), this.props.error && /*#__PURE__*/jsx("div", {
1022
- className: classNames(modules_88cfaf40.errorText, modules_88cfaf40["size".concat(this.props.size)]),
1023
+ className: classNames(inputStyles.errorText, inputStyles["size".concat(this.props.size)]),
1023
1024
  children: this.props.error
1024
1025
  })]
1025
1026
  });
1026
1027
  case Type.BUTTON:
1027
1028
  return /*#__PURE__*/jsxs("div", {
1028
1029
  ref: this.nodeRef,
1029
- className: classNames(classes, modules_9d0de074.buttonMode),
1030
+ className: classNames(classes, styles.buttonMode),
1030
1031
  "data-test": joinDataTestAttributes('ring-select', dataTest),
1031
1032
  children: [selectedLabel && /*#__PURE__*/jsx(ControlLabel, {
1032
1033
  type: this.props.labelType,
@@ -1037,14 +1038,14 @@ class Select extends Component {
1037
1038
  map: this.getShortcutsMap(),
1038
1039
  scope: this.shortcutsScope
1039
1040
  }), /*#__PURE__*/jsxs("div", {
1040
- className: modules_9d0de074.buttonContainer,
1041
+ className: styles.buttonContainer,
1041
1042
  children: [/*#__PURE__*/jsxs(Button, _objectSpread2(_objectSpread2({}, ariaProps), {}, {
1042
1043
  height: this.props.height,
1043
1044
  id: this.props.id,
1044
1045
  onClick: this._clickHandler,
1045
- className: classNames(this.props.buttonClassName, modules_9d0de074.buttonValue, {
1046
- [modules_9d0de074.buttonValueOpen]: this.state.showPopup,
1047
- [modules_9d0de074.buttonValueEmpty]: this._selectionIsEmpty()
1046
+ className: classNames(this.props.buttonClassName, styles.buttonValue, {
1047
+ [styles.buttonValueOpen]: this.state.showPopup,
1048
+ [styles.buttonValueEmpty]: this._selectionIsEmpty()
1048
1049
  }),
1049
1050
  disabled: this.props.disabled,
1050
1051
  style: style,
@@ -23,7 +23,7 @@ import Text from '../text/text.js';
23
23
  import { ControlsHeight } from '../global/controls-height.js';
24
24
  import { createComposedRef } from '../global/composeRefs.js';
25
25
  import { DEFAULT_DIRECTIONS } from '../popup/popup.consts.js';
26
- import { m as modules_b607bec2, S as SelectFilter } from '../_helpers/select__filter.js';
26
+ import { s as styles, S as SelectFilter } from '../_helpers/select__filter.js';
27
27
  import { jsxs, jsx } from 'react/jsx-runtime';
28
28
  import 'util-deprecate';
29
29
  import '../icon/icon__constants.js';
@@ -149,7 +149,7 @@ class SelectPopup extends PureComponent {
149
149
  const multiple = this.props.multiple;
150
150
  const activeFilters = this.props.data.filter(item => !item.disabled);
151
151
  return Array.isArray(this.props.selected) && /*#__PURE__*/jsxs("div", {
152
- className: modules_b607bec2.selectAll,
152
+ className: styles.selectAll,
153
153
  children: [activeFilters.length === 0 ? /*#__PURE__*/jsx("span", {}) : /*#__PURE__*/jsx(Button, {
154
154
  text: true,
155
155
  inline: true,
@@ -298,11 +298,11 @@ class SelectPopup extends PureComponent {
298
298
  if (this.props.filter || this.props.tags) {
299
299
  var _this$props$filterIco;
300
300
  return /*#__PURE__*/jsxs("div", {
301
- className: modules_b607bec2.filterWrapper,
301
+ className: styles.filterWrapper,
302
302
  "data-test": "ring-select-popup-filter",
303
303
  children: [!this.props.tags && /*#__PURE__*/jsx(Icon, {
304
304
  glyph: (_this$props$filterIco = this.props.filterIcon) !== null && _this$props$filterIco !== void 0 ? _this$props$filterIco : searchIcon,
305
- className: modules_b607bec2.filterIcon,
305
+ className: styles.filterIcon,
306
306
  "data-test-custom": "ring-select-popup-filter-icon"
307
307
  }), /*#__PURE__*/jsx(FilterWithShortcuts, {
308
308
  rgShortcutsOptions: this.state.popupFilterShortcutsOptions,
@@ -313,7 +313,7 @@ class SelectPopup extends PureComponent {
313
313
  onFocus: this.onFilterFocus,
314
314
  className: "ring-js-shortcuts",
315
315
  inputClassName: classNames({
316
- [modules_b607bec2.filterWithTagsInput]: this.props.tags
316
+ [styles.filterWithTagsInput]: this.props.tags
317
317
  }),
318
318
  placeholder: typeof this.props.filter === 'object' ? this.props.filter.placeholder : undefined,
319
319
  height: this.props.tags ? ControlsHeight.S : ControlsHeight.L,
@@ -348,8 +348,8 @@ class SelectPopup extends PureComponent {
348
348
  }
349
349
  getFilterWithTags() {
350
350
  if (this.props.tags) {
351
- const classes = classNames([modules_b607bec2.filterWithTags, {
352
- [modules_b607bec2.filterWithTagsFocused]: !this.state.popupFilterShortcutsOptions.disabled
351
+ const classes = classNames([styles.filterWithTags, {
352
+ [styles.filterWithTagsFocused]: !this.state.popupFilterShortcutsOptions.disabled
353
353
  }]);
354
354
  return /*#__PURE__*/jsxs("div", {
355
355
  className: classes,
@@ -366,11 +366,11 @@ class SelectPopup extends PureComponent {
366
366
  } = this.props;
367
367
  const hasMoreThanOneItem = data.length > 1;
368
368
  return (loading || message) && /*#__PURE__*/jsxs("div", {
369
- className: classNames(modules_b607bec2.bottomLine, {
370
- [modules_b607bec2.bottomLineOverItem]: hasMoreThanOneItem
369
+ className: classNames(styles.bottomLine, {
370
+ [styles.bottomLineOverItem]: hasMoreThanOneItem
371
371
  }),
372
372
  children: [loading && /*#__PURE__*/jsx(LoaderInline, {}), message && /*#__PURE__*/jsx("div", {
373
- className: modules_b607bec2.message,
373
+ className: styles.message,
374
374
  children: message
375
375
  })]
376
376
  });
@@ -432,7 +432,7 @@ class SelectPopup extends PureComponent {
432
432
  dir,
433
433
  filter
434
434
  } = this.props;
435
- const classes = classNames(modules_b607bec2.popup, className);
435
+ const classes = classNames(styles.popup, className);
436
436
  return /*#__PURE__*/jsx(PopupTargetContext.Consumer, {
437
437
  children: ringPopupTarget => {
438
438
  const filterWithTags = this.getFilterWithTags();
@@ -88,7 +88,7 @@ class Shortcuts {
88
88
  */
89
89
  bindMap(map, options) {
90
90
  if (!(map instanceof Object)) {
91
- throw new Error('Shortcuts map shouldn\'t be empty');
91
+ throw new Error("Shortcuts map shouldn't be empty");
92
92
  }
93
93
  for (const key in map) {
94
94
  if (map.hasOwnProperty(key)) {
@@ -14,7 +14,7 @@ import 'combokeys';
14
14
  import '../global/sniffer.js';
15
15
  import 'sniffr';
16
16
 
17
- var modules_b653e84a = {"dark":"dark_rui_f090","slider":"slider_rui_35ea","disabled":"disabled_rui_35ea","marked":"marked_rui_35ea","rail":"rail_rui_35ea","rounded":"rounded_rui_35ea","track":"track_rui_35ea","thumb":"thumb_rui_35ea resetButton_rui_f295","dragged":"dragged_rui_35ea","tick":"tick_rui_35ea","active":"active_rui_35ea","markValue":"markValue_rui_35ea","tag":"tag_rui_35ea"};
17
+ var styles = {"slider":"slider_rui_35ea","disabled":"disabled_rui_35ea","marked":"marked_rui_35ea","rail":"rail_rui_35ea","rounded":"rounded_rui_35ea","track":"track_rui_35ea","thumb":"thumb_rui_35ea resetButton_rui_f295","dragged":"dragged_rui_35ea","tick":"tick_rui_35ea","active":"active_rui_35ea","markValue":"markValue_rui_35ea","tag":"tag_rui_35ea"};
18
18
 
19
19
  const Slider = _ref => {
20
20
  let {
@@ -169,9 +169,9 @@ const Slider = _ref => {
169
169
  ref: ref,
170
170
  role: "presentation" // contains interactive elements
171
171
  ,
172
- className: classNames(modules_b653e84a.slider, className, {
173
- [modules_b653e84a.disabled]: disabled,
174
- [modules_b653e84a.marked]: !!marks || showTag
172
+ className: classNames(styles.slider, className, {
173
+ [styles.disabled]: disabled,
174
+ [styles.marked]: !!marks || showTag
175
175
  }),
176
176
  tabIndex: -1,
177
177
  onMouseDown: handleMouseDown,
@@ -179,18 +179,18 @@ const Slider = _ref => {
179
179
  map: shortcutsMap,
180
180
  scope: shortcutsScope
181
181
  }), /*#__PURE__*/jsx("div", {
182
- className: classNames(modules_b653e84a.rail, {
183
- [modules_b653e84a.rounded]: !showTicks,
184
- [modules_b653e84a.disabled]: disabled
182
+ className: classNames(styles.rail, {
183
+ [styles.rounded]: !showTicks,
184
+ [styles.disabled]: disabled
185
185
  })
186
186
  }), /*#__PURE__*/jsx("div", {
187
187
  style: {
188
188
  left: "".concat(trackStart, "%"),
189
189
  width: "".concat(trackLength, "%")
190
190
  },
191
- className: classNames(modules_b653e84a.track, {
192
- [modules_b653e84a.rounded]: !showTicks,
193
- [modules_b653e84a.disabled]: disabled
191
+ className: classNames(styles.track, {
192
+ [styles.rounded]: !showTicks,
193
+ [styles.disabled]: disabled
194
194
  })
195
195
  }), validValues.map((numValue, index) => {
196
196
  const percent = toPercent(numValue, min, max);
@@ -209,17 +209,17 @@ const Slider = _ref => {
209
209
  style: {
210
210
  left: "".concat(percent, "%")
211
211
  },
212
- className: classNames(modules_b653e84a.thumb, {
213
- [modules_b653e84a.disabled]: disabled,
214
- [modules_b653e84a.dragged]: isDragging && draggedIndex === index
212
+ className: classNames(styles.thumb, {
213
+ [styles.disabled]: disabled,
214
+ [styles.dragged]: isDragging && draggedIndex === index
215
215
  }),
216
216
  onMouseDown: handleMouseDown
217
217
  }), showTag && /*#__PURE__*/jsx("div", {
218
218
  style: {
219
219
  left: "".concat(percent, "%")
220
220
  },
221
- className: classNames(modules_b653e84a.tag, {
222
- [modules_b653e84a.disabled]: disabled
221
+ className: classNames(styles.tag, {
222
+ [styles.disabled]: disabled
223
223
  }),
224
224
  role: "tooltip",
225
225
  children: renderTag ? renderTag(numValue) : numValue
@@ -236,8 +236,8 @@ const Slider = _ref => {
236
236
  style: {
237
237
  left: "".concat(percent, "%")
238
238
  },
239
- className: classNames(modules_b653e84a.markValue, {
240
- [modules_b653e84a.disabled]: disabled
239
+ className: classNames(styles.markValue, {
240
+ [styles.disabled]: disabled
241
241
  }),
242
242
  children: label !== null && label !== void 0 ? label : markValue
243
243
  }, index);
@@ -248,9 +248,9 @@ const Slider = _ref => {
248
248
  const percent = toPercent(tickValue, min, max);
249
249
  const isActive = isRange ? tickValue >= validValues[0] && tickValue <= validValues[validValues.length - 1] : tickValue <= validValues[0];
250
250
  return /*#__PURE__*/jsx("div", {
251
- className: classNames(modules_b653e84a.tick, {
252
- [modules_b653e84a.active]: isActive,
253
- [modules_b653e84a.disabled]: disabled
251
+ className: classNames(styles.tick, {
252
+ [styles.active]: isActive,
253
+ [styles.disabled]: disabled
254
254
  }),
255
255
  style: {
256
256
  left: "".concat(percent, "%")