@jetbrains/ring-ui-built 7.0.0-beta.12 → 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 (164) 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 -13
  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/data-list.mock.js +0 -1
  56. package/components/data-list/item.js +8 -8
  57. package/components/date-picker/date-input.js +2 -2
  58. package/components/date-picker/date-picker.d.ts +2 -1
  59. package/components/date-picker/date-picker.js +12 -11
  60. package/components/date-picker/date-popup.js +4 -4
  61. package/components/date-picker/day.js +15 -15
  62. package/components/date-picker/month-names.js +5 -5
  63. package/components/date-picker/month-slider.js +3 -3
  64. package/components/date-picker/month.js +3 -3
  65. package/components/date-picker/months.js +3 -3
  66. package/components/date-picker/weekdays.js +4 -4
  67. package/components/date-picker/years.js +5 -5
  68. package/components/dialog/dialog.d.ts +1 -0
  69. package/components/dialog/dialog.js +21 -16
  70. package/components/dropdown/dropdown.d.ts +2 -2
  71. package/components/dropdown/dropdown.js +2 -2
  72. package/components/editable-heading/editable-heading.js +19 -19
  73. package/components/error-bubble/error-bubble.js +4 -4
  74. package/components/error-message/error-message.js +6 -6
  75. package/components/footer/footer.js +8 -8
  76. package/components/form/form.js +2 -3
  77. package/components/global/theme.js +1 -1
  78. package/components/grid/col.js +4 -4
  79. package/components/grid/grid.js +2 -2
  80. package/components/grid/row.js +4 -4
  81. package/components/group/group.js +2 -2
  82. package/components/header/header-icon.js +4 -4
  83. package/components/header/header.js +3 -3
  84. package/components/header/links.js +2 -2
  85. package/components/header/logo.js +2 -2
  86. package/components/header/profile.d.ts +2 -2
  87. package/components/header/profile.js +10 -10
  88. package/components/header/services.js +7 -7
  89. package/components/header/tray.js +3 -3
  90. package/components/heading/heading.js +3 -3
  91. package/components/http/http.d.ts +3 -3
  92. package/components/icon/icon.js +8 -6
  93. package/components/input/input-legacy.js +2 -3
  94. package/components/input-size/input-size.js +2 -3
  95. package/components/island/content.js +7 -7
  96. package/components/island/header.js +4 -4
  97. package/components/island/island.js +4 -4
  98. package/components/link/link.js +7 -7
  99. package/components/list/list.d.ts +1 -1
  100. package/components/list/list.js +5 -5
  101. package/components/list/list__custom.js +5 -5
  102. package/components/list/list__hint.js +2 -2
  103. package/components/list/list__item.js +22 -22
  104. package/components/list/list__link.js +5 -5
  105. package/components/list/list__separator.js +3 -3
  106. package/components/list/list__title.js +5 -5
  107. package/components/loader/loader__core.js +5 -5
  108. package/components/loader-inline/loader-inline.js +3 -3
  109. package/components/loader-screen/loader-screen.js +4 -4
  110. package/components/login-dialog/login-dialog.js +6 -6
  111. package/components/markdown/markdown.d.ts +2 -2
  112. package/components/markdown/markdown.js +6 -6
  113. package/components/message/message.js +9 -9
  114. package/components/old-browsers-message/white-list.js +2 -2
  115. package/components/pager/pager.js +9 -9
  116. package/components/panel/panel.js +2 -2
  117. package/components/permissions/permissions__cache.js +2 -2
  118. package/components/popup/popup.js +5 -5
  119. package/components/popup/position.js +2 -2
  120. package/components/progress-bar/progress-bar.d.ts +2 -2
  121. package/components/progress-bar/progress-bar.js +5 -5
  122. package/components/query-assist/query-assist.js +26 -26
  123. package/components/radio/radio__item.js +5 -5
  124. package/components/scrollable-section/scrollable-section.js +6 -6
  125. package/components/select/select.d.ts +1 -1
  126. package/components/select/select.js +22 -21
  127. package/components/select/select__popup.js +11 -11
  128. package/components/shortcuts/core.js +1 -1
  129. package/components/slider/slider.js +20 -20
  130. package/components/style.css +1 -1
  131. package/components/tab-trap/tab-trap.js +2 -2
  132. package/components/table/cell.js +2 -2
  133. package/components/table/header-cell.js +8 -8
  134. package/components/table/header.d.ts +1 -2
  135. package/components/table/header.js +7 -13
  136. package/components/table/row.d.ts +0 -1
  137. package/components/table/row.js +11 -17
  138. package/components/table/selection.d.ts +2 -3
  139. package/components/table/simple-table.js +2 -2
  140. package/components/table/table.d.ts +0 -1
  141. package/components/table/table.js +17 -19
  142. package/components/tabs/collapsible-more.d.ts +1 -1
  143. package/components/tabs/collapsible-more.js +6 -6
  144. package/components/tabs/collapsible-tab.js +4 -4
  145. package/components/tabs/collapsible-tabs.d.ts +2 -2
  146. package/components/tabs/collapsible-tabs.js +5 -5
  147. package/components/tabs/dumb-tabs.js +5 -5
  148. package/components/tag/tag.js +13 -13
  149. package/components/tags-input/tags-input.js +8 -8
  150. package/components/text/text.js +7 -7
  151. package/components/toggle/toggle.d.ts +2 -2
  152. package/components/toggle/toggle.js +12 -12
  153. package/components/tooltip/tooltip.js +11 -4
  154. package/components/user-agreement/user-agreement.js +7 -7
  155. package/components/user-card/smart-user-card-tooltip.js +2 -2
  156. package/components/user-card/tooltip.js +2 -2
  157. package/package.json +6 -5
  158. package/typings.d.ts +2 -4
  159. package/components/island-legacy/content-legacy.d.ts +0 -5
  160. package/components/island-legacy/content-legacy.js +0 -23
  161. package/components/island-legacy/header-legacy.d.ts +0 -5
  162. package/components/island-legacy/header-legacy.js +0 -26
  163. package/components/island-legacy/island-legacy.d.ts +0 -7
  164. package/components/island-legacy/island-legacy.js +0 -25
@@ -4,7 +4,7 @@ export interface ButtonToolbarProps extends HTMLAttributes<HTMLElement> {
4
4
  }
5
5
  /**
6
6
  * @name Button Toolbar
7
- */
7
+ */
8
8
  export default class ButtonToolbar extends PureComponent<ButtonToolbarProps> {
9
9
  render(): import("react").JSX.Element;
10
10
  }
@@ -6,7 +6,7 @@ import { jsx } from 'react/jsx-runtime';
6
6
  import 'core-js/modules/es.array.reduce.js';
7
7
  import 'core-js/modules/web.dom-collections.iterator.js';
8
8
 
9
- var modules_34154ec0 = {"button":"button_rui_6ad6","light":"light_rui_2ac4","buttonToolbar":"buttonToolbar_rui_5c90","buttonGroup":"buttonGroup_rui_5c90","split":"split_rui_5c90"};
9
+ var styles = {"button":"button_rui_6ad6","buttonToolbar":"buttonToolbar_rui_5c90","buttonGroup":"buttonGroup_rui_5c90","split":"split_rui_5c90"};
10
10
 
11
11
  const _excluded = ["className", "data-test"];
12
12
  class ButtonToolbar extends PureComponent {
@@ -17,7 +17,7 @@ class ButtonToolbar extends PureComponent {
17
17
  'data-test': dataTest
18
18
  } = _this$props,
19
19
  restProps = _objectWithoutProperties(_this$props, _excluded);
20
- const classes = classNames(modules_34154ec0.buttonToolbar, className);
20
+ const classes = classNames(styles.buttonToolbar, className);
21
21
  return /*#__PURE__*/jsx("div", _objectSpread2(_objectSpread2({}, restProps), {}, {
22
22
  "data-test": joinDataTestAttributes('ring-button-toolbar', dataTest),
23
23
  className: classes
@@ -16,7 +16,7 @@ import 'core-js/modules/es.string.replace.js';
16
16
  import '../global/memoize.js';
17
17
  import 'memoize-one';
18
18
 
19
- var modules_3199090e = {"checkboxSize":"14px","light":"light_rui_2ac4","checkbox":"checkbox_rui_219d","cell":"cell_rui_219d","icon":"icon_rui_219d","check":"check_rui_219d icon_rui_219d","minus":"minus_rui_219d icon_rui_219d","input":"input_rui_219d","cellWrapper":"cellWrapper_rui_219d","focus":"focus_rui_219d","label":"label_rui_219d"};
19
+ var styles = {"checkbox":"checkbox_rui_219d","cell":"cell_rui_219d","icon":"icon_rui_219d","check":"check_rui_219d icon_rui_219d","minus":"minus_rui_219d icon_rui_219d","input":"input_rui_219d","cellWrapper":"cellWrapper_rui_219d","focus":"focus_rui_219d","label":"label_rui_219d"};
20
20
 
21
21
  const _excluded = ["children", "label", "className", "containerClassName", "containerStyle", "cellClassName", "labelClassName", "indeterminate", "inputRef", "help"];
22
22
  class Checkbox extends PureComponent {
@@ -59,10 +59,10 @@ class Checkbox extends PureComponent {
59
59
  help
60
60
  } = _this$props,
61
61
  restProps = _objectWithoutProperties(_this$props, _excluded);
62
- const classes = classNames(modules_3199090e.input, className);
63
- const containerClasses = classNames(modules_3199090e.checkbox, containerClassName);
64
- const cellClasses = classNames(modules_3199090e.cell, cellClassName);
65
- const labelClasses = classNames(modules_3199090e.label, labelClassName);
62
+ const classes = classNames(styles.input, className);
63
+ const containerClasses = classNames(styles.checkbox, containerClassName);
64
+ const cellClasses = classNames(styles.cell, cellClassName);
65
+ const labelClasses = classNames(styles.label, labelClassName);
66
66
  return /*#__PURE__*/jsxs("label", {
67
67
  className: containerClasses,
68
68
  style: containerStyle,
@@ -73,15 +73,15 @@ class Checkbox extends PureComponent {
73
73
  type: "checkbox",
74
74
  className: classes
75
75
  })), /*#__PURE__*/jsx("div", {
76
- className: modules_3199090e.cellWrapper,
76
+ className: styles.cellWrapper,
77
77
  children: /*#__PURE__*/jsxs("span", {
78
78
  className: cellClasses,
79
79
  children: [/*#__PURE__*/jsx(Icon, {
80
80
  glyph: checkmarkIcon,
81
- className: modules_3199090e.check
81
+ className: styles.check
82
82
  }), /*#__PURE__*/jsx(Icon, {
83
83
  glyph: minusIcon,
84
- className: modules_3199090e.minus
84
+ className: styles.minus
85
85
  })]
86
86
  })
87
87
  }), /*#__PURE__*/jsxs("span", {
@@ -5,7 +5,7 @@ export interface CodeProps {
5
5
  code: string;
6
6
  inline: boolean;
7
7
  softWrap: boolean;
8
- replacer: ((element: HTMLElement | null) => void);
8
+ replacer: (element: HTMLElement | null) => void;
9
9
  className?: string | null | undefined;
10
10
  language?: string | null | undefined;
11
11
  codeRef?: Ref<HTMLElement> | null | undefined;
@@ -11,9 +11,9 @@ import { jsx } from 'react/jsx-runtime';
11
11
  import 'core-js/modules/es.array.reverse.js';
12
12
  import 'core-js/modules/es.regexp.exec.js';
13
13
 
14
- var modules_66c414ea = {"light":"light_rui_2ac4","code":"code_rui_1c82","inline":"inline_rui_1c82","softWrap":"softWrap_rui_1c82"};
14
+ var styles = {"code":"code_rui_1c82","inline":"inline_rui_1c82","softWrap":"softWrap_rui_1c82"};
15
15
 
16
- var modules_39cf09e8 = {"highlightContainer":"highlightContainer_rui_1a79"};
16
+ var highlightStyles = {"highlightContainer":"highlightContainer_rui_1a79"};
17
17
 
18
18
  function noop() {}
19
19
  const registerLanguage = memoize(async language => {
@@ -83,9 +83,9 @@ class Code extends PureComponent {
83
83
  language
84
84
  } = this.props;
85
85
  const Tag = inline ? 'span' : 'pre';
86
- const classes = classNames(modules_66c414ea.code, className, language, {
87
- [modules_66c414ea.inline]: inline,
88
- [modules_66c414ea.softWrap]: softWrap
86
+ const classes = classNames(styles.code, className, language, {
87
+ [styles.inline]: inline,
88
+ [styles.softWrap]: softWrap
89
89
  });
90
90
  return /*#__PURE__*/jsx(Tag, {
91
91
  className: classes,
@@ -94,7 +94,7 @@ class Code extends PureComponent {
94
94
  // should be focusable because it can be scrollable
95
95
  tabIndex: inline ? -1 : 0,
96
96
  ref: this.initCodeRef,
97
- className: modules_39cf09e8.highlightContainer,
97
+ className: highlightStyles.highlightContainer,
98
98
  children: normalizeIndent(code)
99
99
  })
100
100
  });
@@ -11,7 +11,7 @@ import 'core-js/modules/es.array.reduce.js';
11
11
  import '../_helpers/_rollupPluginBabelHelpers.js';
12
12
  import 'core-js/modules/es.regexp.exec.js';
13
13
 
14
- var modules_9c8b5b00 = {"container":"container_rui_93ce","transition":"transition_rui_93ce","summary":"summary_rui_93ce","trigger":"trigger_rui_93ce","fade":"fade_rui_93ce"};
14
+ var styles = {"container":"container_rui_93ce","transition":"transition_rui_93ce","summary":"summary_rui_93ce","trigger":"trigger_rui_93ce","fade":"fade_rui_93ce"};
15
15
 
16
16
  const DURATION_FACTOR = 0.5;
17
17
  const DEFAULT_HEIGHT = 0;
@@ -89,8 +89,8 @@ const CollapseContent = _ref => {
89
89
  ref: containerRef,
90
90
  id: "collapse-content-".concat(id),
91
91
  "data-test": joinDataTestAttributes(COLLAPSE_CONTENT_CONTAINER_TEST_ID),
92
- className: classNames(modules_9c8b5b00.container, {
93
- [modules_9c8b5b00.transition]: !disableAnimation
92
+ className: classNames(styles.container, {
93
+ [styles.transition]: !disableAnimation
94
94
  }),
95
95
  style: style,
96
96
  children: [/*#__PURE__*/jsx("div", {
@@ -98,7 +98,7 @@ const CollapseContent = _ref => {
98
98
  "data-test": joinDataTestAttributes(COLLAPSE_CONTENT_TEST_ID, dataTest),
99
99
  children: children
100
100
  }), fadeShouldBeVisible && /*#__PURE__*/jsx("div", {
101
- className: modules_9c8b5b00.fade
101
+ className: styles.fade
102
102
  })]
103
103
  });
104
104
  };
@@ -9,8 +9,8 @@ export interface ConfirmProps {
9
9
  cancelIsDefault: boolean;
10
10
  confirmLabel: string;
11
11
  rejectLabel: string;
12
- onConfirm: ((event: React.MouseEvent<HTMLButtonElement>) => void);
13
- onReject: ((event?: React.MouseEvent<HTMLButtonElement>) => void);
12
+ onConfirm: (event: React.MouseEvent<HTMLButtonElement>) => void;
13
+ onReject: (event?: React.MouseEvent<HTMLButtonElement>) => void;
14
14
  className?: string | undefined;
15
15
  native?: boolean;
16
16
  }
@@ -7,6 +7,7 @@ import { Button } from '../button/button.js';
7
7
  import 'classnames';
8
8
  import 'core-js/modules/es.array.reduce.js';
9
9
  import { jsxs, jsx } from 'react/jsx-runtime';
10
+ import '../_helpers/island.js';
10
11
  import HeaderWrapper from '../island/header.js';
11
12
  import ContentWrapper from '../island/content.js';
12
13
  import Panel from '../panel/panel.js';
@@ -16,7 +17,6 @@ import '../island/island.js';
16
17
  import '../global/data-tests.js';
17
18
  import '../island/adaptive-island-hoc.js';
18
19
  import '../global/linear-function.js';
19
- import '../_helpers/island.js';
20
20
  import 'element-resize-detector';
21
21
  import '../global/schedule-raf.js';
22
22
  import '../global/get-uid.js';
@@ -42,7 +42,7 @@ import '../link/clickableLink.js';
42
42
  import '../global/controls-height.js';
43
43
  import '../_helpers/button__classes.js';
44
44
 
45
- var modules_4c9c3a3a = {"light":"light_rui_2ac4","description":"description_rui_f040"};
45
+ var styles = {"description":"description_rui_f040"};
46
46
 
47
47
  class Confirm extends PureComponent {
48
48
  constructor() {
@@ -79,7 +79,7 @@ class Confirm extends PureComponent {
79
79
  children: text
80
80
  }), description && /*#__PURE__*/jsx(ContentWrapper, {
81
81
  children: /*#__PURE__*/jsx("div", {
82
- className: modules_4c9c3a3a.description,
82
+ className: styles.description,
83
83
  children: description
84
84
  })
85
85
  }), /*#__PURE__*/jsxs(Panel, {
@@ -17,5 +17,5 @@ export interface ConfirmServiceParams {
17
17
  onBeforeConfirm?: (() => void) | undefined;
18
18
  buttonsHeight?: ControlsHeight | undefined;
19
19
  }
20
- export default function confirm({ text, description, confirmLabel, rejectLabel, cancelIsDefault, onBeforeConfirm, buttonsHeight }: ConfirmServiceParams): Promise<void>;
20
+ export default function confirm({ text, description, confirmLabel, rejectLabel, cancelIsDefault, onBeforeConfirm, buttonsHeight, }: ConfirmServiceParams): Promise<void>;
21
21
  export declare function hideConfirm(): void;
@@ -2,7 +2,7 @@ import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread
2
2
  import 'core-js/modules/web.dom-collections.iterator.js';
3
3
  import { Component, Children, cloneElement } from 'react';
4
4
  import classNames from 'classnames';
5
- import { m as modules_b8a9dd4f, S as Sidebar } from '../_helpers/sidebar.js';
5
+ import { s as styles, S as Sidebar } from '../_helpers/sidebar.js';
6
6
  import { jsxs, jsx } from 'react/jsx-runtime';
7
7
  import 'react-waypoint';
8
8
 
@@ -28,10 +28,10 @@ class ContentLayout extends Component {
28
28
  responsive
29
29
  } = _this$props,
30
30
  restProps = _objectWithoutProperties(_this$props, _excluded);
31
- const classes = classNames(modules_b8a9dd4f.contentLayout, className, {
32
- [modules_b8a9dd4f.contentLayoutResponsive]: responsive
31
+ const classes = classNames(styles.contentLayout, className, {
32
+ [styles.contentLayoutResponsive]: responsive
33
33
  });
34
- const contentClasses = classNames(modules_b8a9dd4f.contentLayoutContent, contentClassName);
34
+ const contentClasses = classNames(styles.contentLayoutContent, contentClassName);
35
35
  const childrenArray = Children.toArray(children);
36
36
  const sidebarChild = childrenArray.filter(child => child != null && typeof child === 'object' && 'type' in child && child.type === Sidebar)[0];
37
37
  const sidebar = sidebarChild && /*#__PURE__*/cloneElement(sidebarChild, {
@@ -5,7 +5,7 @@ import { Component, HTMLAttributes, Ref } from 'react';
5
5
  declare function noop(): void;
6
6
  export interface ContentEditableBaseProps extends HTMLAttributes<HTMLElement> {
7
7
  disabled: boolean;
8
- onComponentUpdate: ((prevProps: ContentEditableBaseProps) => void);
8
+ onComponentUpdate: (prevProps: ContentEditableBaseProps) => void;
9
9
  inputRef?: Ref<HTMLDivElement> | null | undefined;
10
10
  __html: string;
11
11
  }
@@ -2,7 +2,7 @@ import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/
2
2
  import classNames from 'classnames';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
- var modules_7bfdf71c = {"light":"light_rui_2ac4","help":"help_rui_63a3"};
5
+ var styles = {"help":"help_rui_63a3"};
6
6
 
7
7
  const _excluded = ["className"];
8
8
  function ControlHelp(_ref) {
@@ -11,7 +11,7 @@ function ControlHelp(_ref) {
11
11
  } = _ref,
12
12
  restProps = _objectWithoutProperties(_ref, _excluded);
13
13
  return /*#__PURE__*/jsx("div", _objectSpread2({
14
- className: classNames(className, modules_7bfdf71c.help)
14
+ className: classNames(className, styles.help)
15
15
  }, restProps));
16
16
  }
17
17
 
@@ -3,7 +3,7 @@ import 'react';
3
3
  import classNames from 'classnames';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
6
- var modules_9eb96a10 = {"label":"label_rui_fe46","formLabel":"formLabel_rui_fe46","secondaryLabel":"secondaryLabel_rui_fe46","disabledLabel":"disabledLabel_rui_fe46"};
6
+ var styles = {"label":"label_rui_fe46","formLabel":"formLabel_rui_fe46","secondaryLabel":"secondaryLabel_rui_fe46","disabledLabel":"disabledLabel_rui_fe46"};
7
7
 
8
8
  const _excluded = ["children", "type", "disabled"];
9
9
  var LabelType;
@@ -12,8 +12,8 @@ var LabelType;
12
12
  LabelType["FORM"] = "form";
13
13
  })(LabelType || (LabelType = {}));
14
14
  const classNameByType = {
15
- [LabelType.SECONDARY]: modules_9eb96a10.secondaryLabel,
16
- [LabelType.FORM]: modules_9eb96a10.formLabel
15
+ [LabelType.SECONDARY]: styles.secondaryLabel,
16
+ [LabelType.FORM]: styles.formLabel
17
17
  };
18
18
  const ControlLabel = _ref => {
19
19
  let {
@@ -23,8 +23,8 @@ const ControlLabel = _ref => {
23
23
  } = _ref,
24
24
  rest = _objectWithoutProperties(_ref, _excluded);
25
25
  return /*#__PURE__*/jsx("label", _objectSpread2(_objectSpread2({
26
- className: classNames(modules_9eb96a10.label, classNameByType[type], {
27
- [modules_9eb96a10.disabledLabel]: disabled
26
+ className: classNames(styles.label, classNameByType[type], {
27
+ [styles.disabledLabel]: disabled
28
28
  })
29
29
  }, rest), {}, {
30
30
  children: children
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @name Data List
3
- */
2
+ * @name Data List
3
+ */
4
4
  import { Component } from 'react';
5
5
  import { FocusSensorOuterProps } from '../global/focus-sensor-hoc';
6
6
  import { SelectionShortcutsAddProps, SelectionShortcutsOuterProps } from '../table/selection-shortcuts-hoc';
@@ -9,7 +9,7 @@ import getUID from '../global/get-uid.js';
9
9
  import Shortcuts from '../shortcuts/shortcuts.js';
10
10
  import Loader from '../loader/loader.js';
11
11
  import Item, { moreLessButtonStates } from './item.js';
12
- import { m as modules_09d014b4 } from '../_helpers/title.js';
12
+ import { s as styles } from '../_helpers/title.js';
13
13
  import { jsx, jsxs } from 'react/jsx-runtime';
14
14
  import '../global/composeRefs.js';
15
15
  import 'memoize-one';
@@ -116,12 +116,12 @@ class DataList extends PureComponent {
116
116
  } = this.props;
117
117
  const shortcutsMap = _objectSpread2(_objectSpread2({}, this.shortcutsMap), this.props.shortcutsMap);
118
118
  const classes = classNames(className, {
119
- [modules_09d014b4.dataList]: true,
120
- [modules_09d014b4.disabledHover]: disabledHover,
121
- [modules_09d014b4.multiSelection]: selection.getSelected().size > 0
119
+ [styles.dataList]: true,
120
+ [styles.disabledHover]: disabledHover,
121
+ [styles.multiSelection]: selection.getSelected().size > 0
122
122
  });
123
123
  return /*#__PURE__*/jsxs("div", {
124
- className: modules_09d014b4.dataListWrapper,
124
+ className: styles.dataListWrapper,
125
125
  "data-test": "ring-data-list",
126
126
  ref: innerRef,
127
127
  children: [focused && /*#__PURE__*/jsx(Shortcuts, {
@@ -159,7 +159,7 @@ class DataList extends PureComponent {
159
159
  }, key || id);
160
160
  })
161
161
  }), loading && /*#__PURE__*/jsx("div", {
162
- className: data.length > 0 ? modules_09d014b4.loadingOverlay : undefined,
162
+ className: data.length > 0 ? styles.loadingOverlay : undefined,
163
163
  children: /*#__PURE__*/jsx(Loader, {})
164
164
  })]
165
165
  });
@@ -9,7 +9,6 @@ import 'core-js/modules/es.array.reduce.js';
9
9
  import 'core-js/modules/web.dom-collections.iterator.js';
10
10
  import '../link/clickableLink.js';
11
11
  import '../_helpers/link.js';
12
- import 'util-deprecate';
13
12
  import '../_helpers/badge.js';
14
13
 
15
14
  const items = [{
@@ -7,7 +7,7 @@ import Link from '../link/link.js';
7
7
  import Text from '../text/text.js';
8
8
  import LoaderInline from '../loader-inline/loader-inline.js';
9
9
  import { Button } from '../button/button.js';
10
- import { m as modules_09d014b4, T as Title } from '../_helpers/title.js';
10
+ import { s as styles, T as Title } from '../_helpers/title.js';
11
11
  import { jsx, jsxs } from 'react/jsx-runtime';
12
12
  import 'classnames';
13
13
  import '../global/data-tests.js';
@@ -126,7 +126,7 @@ class Item extends PureComponent {
126
126
  onClick: this.onShowMore,
127
127
  children: 'Show more'
128
128
  }), showMoreLessButton === moreLessButtonStates.MORE_LOADING && /*#__PURE__*/jsx(LoaderInline, {
129
- className: modules_09d014b4.showMoreLoader
129
+ className: styles.showMoreLoader
130
130
  })]
131
131
  });
132
132
  } else if (showMoreLessButton === moreLessButtonStates.LESS) {
@@ -147,8 +147,8 @@ class Item extends PureComponent {
147
147
  title: "Expand",
148
148
  onClick: onExpand,
149
149
  icon: chevronRightIcon,
150
- className: modules_09d014b4.collapseButton,
151
- iconClassName: modules_09d014b4.collapseIcon,
150
+ className: styles.collapseButton,
151
+ iconClassName: styles.collapseIcon,
152
152
  "data-test": "ring-data-list-expand"
153
153
  });
154
154
  } else {
@@ -156,8 +156,8 @@ class Item extends PureComponent {
156
156
  title: "Collapse",
157
157
  onClick: onCollapse,
158
158
  icon: chevronDownIcon,
159
- className: modules_09d014b4.collapseButton,
160
- iconClassName: modules_09d014b4.collapseIcon,
159
+ className: styles.collapseButton,
160
+ iconClassName: styles.collapseIcon,
161
161
  "data-test": "ring-data-list-collapse"
162
162
  });
163
163
  }
@@ -176,9 +176,9 @@ class Item extends PureComponent {
176
176
  onSelect: this.onSelect,
177
177
  offset: offset
178
178
  }), !itemIsEmpty ? /*#__PURE__*/jsxs("ul", {
179
- className: modules_09d014b4.itemContent,
179
+ className: styles.itemContent,
180
180
  children: [items.map(model => this.renderItem(model, parentShift)), showMoreLessButton !== moreLessButtonStates.UNUSED ? /*#__PURE__*/jsx("li", {
181
- className: modules_09d014b4.showMore,
181
+ className: styles.showMore,
182
182
  children: moreLessButton
183
183
  }) : null]
184
184
  }) : null]
@@ -7,7 +7,7 @@ import classNames from 'classnames';
7
7
  import { I as Input } from '../_helpers/input.js';
8
8
  import { ControlsHeight } from '../global/controls-height.js';
9
9
  import { I18nContext } from '../i18n/i18n-context.js';
10
- import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
10
+ import { s as styles } from '../_helpers/date-picker.js';
11
11
  import { jsx } from 'react/jsx-runtime';
12
12
  import '@jetbrains/icons/close-12px';
13
13
  import '../button/button.js';
@@ -121,7 +121,7 @@ class DateInput extends React.PureComponent {
121
121
  return ((_translations$selectN = translations === null || translations === void 0 ? void 0 : translations.selectName) !== null && _translations$selectN !== void 0 ? _translations$selectN : translate('selectName')).replace('%name%', name).replace('{{name}}', name);
122
122
  }
123
123
  })();
124
- const classes = classNames(modules_0c7b7d96.filter, modules_0c7b7d96["".concat(name, "Input")], divider && modules_0c7b7d96["".concat(name, "InputWithDivider")], 'ring-js-shortcuts');
124
+ const classes = classNames(styles.filter, styles["".concat(name, "Input")], divider && styles["".concat(name, "InputWithDivider")], 'ring-js-shortcuts');
125
125
  return /*#__PURE__*/jsx(Input, {
126
126
  autoComplete: "off",
127
127
  borderless: true,
@@ -1,4 +1,4 @@
1
- import { PureComponent } from 'react';
1
+ import { PureComponent, ButtonHTMLAttributes } from 'react';
2
2
  import * as React from 'react';
3
3
  import type { Locale } from 'date-fns';
4
4
  import Popup from '../popup/popup';
@@ -28,6 +28,7 @@ export type DatePickerProps = Omit<DatePopupProps, 'translations' | 'parseDateIn
28
28
  disabled?: boolean | null | undefined;
29
29
  parseDateInput: (input: string | null | undefined) => Date | null;
30
30
  size?: Size;
31
+ buttonAttributes?: Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'aria-label'>;
31
32
  };
32
33
  /**
33
34
  * @name Date Picker
@@ -20,7 +20,7 @@ import Link from '../link/link.js';
20
20
  import { S as Size } from '../_helpers/input.js';
21
21
  import { I18nContext } from '../i18n/i18n-context.js';
22
22
  import DatePopup from './date-popup.js';
23
- import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
23
+ import { s as styles } from '../_helpers/date-picker.js';
24
24
  import formats from './formats.js';
25
25
  import { jsxs, jsx } from 'react/jsx-runtime';
26
26
  import 'core-js/modules/es.regexp.exec.js';
@@ -226,13 +226,13 @@ class DatePicker extends PureComponent {
226
226
  render() {
227
227
  var _this$props$disabled, _this$props$disabled2;
228
228
  const anchorContent = /*#__PURE__*/jsxs("div", {
229
- className: modules_0c7b7d96.anchorContent,
229
+ className: styles.anchorContent,
230
230
  children: [/*#__PURE__*/jsx(Icon, {
231
231
  glyph: calendarIcon,
232
- className: modules_0c7b7d96.calendarIcon
232
+ className: styles.calendarIcon
233
233
  }), this.getAnchorText(), /*#__PURE__*/jsx(Icon, {
234
234
  glyph: chevronDownIcon,
235
- className: modules_0c7b7d96.chevronDownIcon
235
+ className: styles.chevronDownIcon
236
236
  })]
237
237
  });
238
238
  const _this$props = this.props,
@@ -245,8 +245,8 @@ class DatePicker extends PureComponent {
245
245
  translations
246
246
  } = _this$props,
247
247
  datePopupProps = _objectWithoutProperties(_this$props, _excluded2);
248
- const classes = classNames(modules_0c7b7d96.datePicker, className, modules_0c7b7d96["size".concat(this.props.size)], {
249
- [modules_0c7b7d96.inline]: inline
248
+ const classes = classNames(styles.datePicker, className, styles["size".concat(this.props.size)], {
249
+ [styles.inline]: inline
250
250
  });
251
251
  return /*#__PURE__*/jsx(Dropdown, _objectSpread2(_objectSpread2({
252
252
  className: classes,
@@ -254,17 +254,18 @@ class DatePicker extends PureComponent {
254
254
  "data-test": "ring-date-picker",
255
255
  anchor: inline ? /*#__PURE__*/jsx(Link, {
256
256
  "data-test-ring-dropdown-anchor": true,
257
- className: modules_0c7b7d96.anchor,
257
+ className: styles.anchor,
258
258
  disabled: (_this$props$disabled = this.props.disabled) !== null && _this$props$disabled !== void 0 ? _this$props$disabled : false,
259
259
  pseudo: true,
260
260
  children: this.getAnchorText()
261
- }) : /*#__PURE__*/jsx(Button, {
261
+ }) : /*#__PURE__*/jsx(Button, _objectSpread2(_objectSpread2({
262
262
  "data-test-ring-dropdown-anchor": true,
263
- className: modules_0c7b7d96.anchor,
263
+ className: styles.anchor,
264
264
  text: false,
265
- disabled: (_this$props$disabled2 = this.props.disabled) !== null && _this$props$disabled2 !== void 0 ? _this$props$disabled2 : false,
265
+ disabled: (_this$props$disabled2 = this.props.disabled) !== null && _this$props$disabled2 !== void 0 ? _this$props$disabled2 : false
266
+ }, this.props.buttonAttributes), {}, {
266
267
  children: anchorContent
267
- })
268
+ }))
268
269
  }, dropdownProps), {}, {
269
270
  children: /*#__PURE__*/jsx(PopupComponent, {
270
271
  className: popupClassName,
@@ -13,7 +13,7 @@ import Months from './months.js';
13
13
  import Years from './years.js';
14
14
  import Weekdays from './weekdays.js';
15
15
  import { parseTime } from './consts.js';
16
- import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
16
+ import { s as styles } from '../_helpers/date-picker.js';
17
17
  import { jsxs, jsx } from 'react/jsx-runtime';
18
18
  import 'core-js/modules/web.dom-collections.iterator.js';
19
19
  import 'core-js/modules/es.regexp.exec.js';
@@ -368,11 +368,11 @@ class DatePopup extends Component {
368
368
  });
369
369
  const clearable = Boolean(this.props.onClear);
370
370
  return /*#__PURE__*/jsxs("div", {
371
- className: modules_0c7b7d96.datePopup,
371
+ className: styles.datePopup,
372
372
  "data-test": "ring-date-popup",
373
373
  ref: this.componentRef,
374
374
  children: [/*#__PURE__*/jsxs("div", {
375
- className: modules_0c7b7d96.filterWrapper,
375
+ className: styles.filterWrapper,
376
376
  children: [names.map(name => {
377
377
  let onClear;
378
378
  if (clearable && name !== 'from' && !this.isInTimeMode()) {
@@ -408,7 +408,7 @@ class DatePopup extends Component {
408
408
  }), /*#__PURE__*/jsx(Weekdays, {
409
409
  locale: locale
410
410
  }), /*#__PURE__*/jsxs("div", {
411
- className: modules_0c7b7d96.calendar,
411
+ className: styles.calendar,
412
412
  children: [/*#__PURE__*/jsx(Months, _objectSpread2(_objectSpread2({}, calendarProps), {}, {
413
413
  onHover: this.hoverHandler,
414
414
  onSelect: this.selectHandler,
@@ -12,7 +12,7 @@ import { isSameDay } from 'date-fns/isSameDay';
12
12
  import { isToday } from 'date-fns/isToday';
13
13
  import { startOfDay } from 'date-fns/startOfDay';
14
14
  import { getDayNumInWeek, weekdays } from './consts.js';
15
- import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
15
+ import { s as styles } from '../_helpers/date-picker.js';
16
16
  import { jsx } from 'react/jsx-runtime';
17
17
  import 'core-js/modules/es.regexp.exec.js';
18
18
  import 'date-fns/add';
@@ -69,19 +69,19 @@ class Day extends Component {
69
69
  // TODO make keyboard navigation actually work
70
70
  jsx("button", {
71
71
  type: "button",
72
- className: classNames(modules_0c7b7d96.day, modules_0c7b7d96["Day".concat(dayInWeek)], {
73
- [modules_0c7b7d96.current]: ['date', 'from', 'to'].some(this.is),
74
- [modules_0c7b7d96.active]: !disabled && this.is('activeDate'),
75
- [modules_0c7b7d96.weekend]: [weekdays.SA, weekdays.SU].includes(getDay(day)),
76
- [modules_0c7b7d96.empty]: empty,
77
- [modules_0c7b7d96.from]: currentRange && this.isDay(currentRange[0]) && !reverse || activeRange && this.isDay(activeRange[0]),
78
- [modules_0c7b7d96.to]: currentRange && this.isDay(currentRange[1]) || activeRange && this.isDay(activeRange[1]),
79
- [modules_0c7b7d96.between]: this.inRange(currentRange),
80
- [modules_0c7b7d96.activeBetween]: !disabled && this.inRange(activeRange),
81
- [modules_0c7b7d96.first]: getDate(day) === 1,
82
- [modules_0c7b7d96.spread]: this.inRange(spreadRange),
83
- [modules_0c7b7d96.activeSpread]: !disabled && this.inRange(activeSpreadRange),
84
- [modules_0c7b7d96.disabled]: disabled
72
+ className: classNames(styles.day, styles["Day".concat(dayInWeek)], {
73
+ [styles.current]: ['date', 'from', 'to'].some(this.is),
74
+ [styles.active]: !disabled && this.is('activeDate'),
75
+ [styles.weekend]: [weekdays.SA, weekdays.SU].includes(getDay(day)),
76
+ [styles.empty]: empty,
77
+ [styles.from]: currentRange && this.isDay(currentRange[0]) && !reverse || activeRange && this.isDay(activeRange[0]),
78
+ [styles.to]: currentRange && this.isDay(currentRange[1]) || activeRange && this.isDay(activeRange[1]),
79
+ [styles.between]: this.inRange(currentRange),
80
+ [styles.activeBetween]: !disabled && this.inRange(activeRange),
81
+ [styles.first]: getDate(day) === 1,
82
+ [styles.spread]: this.inRange(spreadRange),
83
+ [styles.activeSpread]: !disabled && this.inRange(activeSpreadRange),
84
+ [styles.disabled]: disabled
85
85
  }),
86
86
  onClick: this.handleClick,
87
87
  onMouseOver: this.handleMouseOver,
@@ -91,7 +91,7 @@ class Day extends Component {
91
91
  disabled: disabled,
92
92
  children: empty || /*#__PURE__*/jsx("span", {
93
93
  className: classNames({
94
- [modules_0c7b7d96.today]: isToday(day)
94
+ [styles.today]: isToday(day)
95
95
  }),
96
96
  children: format(day, 'd')
97
97
  })
@@ -11,7 +11,7 @@ import { startOfYear } from 'date-fns/startOfYear';
11
11
  import linearFunction from '../global/linear-function.js';
12
12
  import MonthSlider from './month-slider.js';
13
13
  import { YEAR, MIDDLE_DAY, yearScrollSpeed } from './consts.js';
14
- import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
14
+ import { s as styles } from '../_helpers/date-picker.js';
15
15
  import { jsxs, jsx } from 'react/jsx-runtime';
16
16
  import 'date-fns/addYears';
17
17
  import 'date-fns/subYears';
@@ -33,8 +33,8 @@ class MonthName extends PureComponent {
33
33
  } = this.props;
34
34
  return /*#__PURE__*/jsx("button", {
35
35
  type: "button",
36
- className: classNames(modules_0c7b7d96.monthName, {
37
- [modules_0c7b7d96.today]: isThisMonth(month)
36
+ className: classNames(styles.monthName, {
37
+ [styles.today]: isThisMonth(month)
38
38
  }),
39
39
  onClick: this.handleClick,
40
40
  children: format(month, 'LLL', {
@@ -63,13 +63,13 @@ function MonthNames(props) {
63
63
  [top, bottom] = props.currentRange.map(date => Math.floor(pxToDate.x(Number(date))));
64
64
  }
65
65
  return /*#__PURE__*/jsxs("div", {
66
- className: modules_0c7b7d96.monthNames,
66
+ className: styles.monthNames,
67
67
  children: [months.map(month => /*#__PURE__*/jsx(MonthName, {
68
68
  month: month,
69
69
  onScrollChange: props.onScrollChange,
70
70
  locale: locale
71
71
  }, +month)), props.currentRange && /*#__PURE__*/jsx("div", {
72
- className: modules_0c7b7d96.range,
72
+ className: styles.range,
73
73
  style: {
74
74
  top: top - 1,
75
75
  height: bottom + 1 - (top - 1)
@@ -7,7 +7,7 @@ import { startOfDay } from 'date-fns/startOfDay';
7
7
  import { subYears } from 'date-fns/subYears';
8
8
  import linearFunction from '../global/linear-function.js';
9
9
  import units, { yearScrollSpeed } from './consts.js';
10
- import { m as modules_0c7b7d96 } from '../_helpers/date-picker.js';
10
+ import { s as styles } from '../_helpers/date-picker.js';
11
11
  import { jsx } from 'react/jsx-runtime';
12
12
  import 'core-js/modules/es.regexp.exec.js';
13
13
  import 'date-fns/add';
@@ -49,8 +49,8 @@ class MonthSlider extends PureComponent {
49
49
  year = addYears(year, 1);
50
50
  years.push(year);
51
51
  }
52
- const classes = classNames(modules_0c7b7d96.monthSlider, {
53
- [modules_0c7b7d96.dragging]: this.state.dragging
52
+ const classes = classNames(styles.monthSlider, {
53
+ [styles.dragging]: this.state.dragging
54
54
  });
55
55
  return /*#__PURE__*/jsx("div", {
56
56
  children: years.map(date => /*#__PURE__*/jsx("button", {