@jetbrains/ring-ui 7.0.0-beta.9 → 7.0.1

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 (251) hide show
  1. package/babel.config.js +20 -14
  2. package/components/alert/alert.css +7 -7
  3. package/components/alert/alert.d.ts +2 -2
  4. package/components/alert/alert.js +10 -12
  5. package/components/alert/container.js +1 -1
  6. package/components/alert-service/alert-service.js +4 -2
  7. package/components/analytics/analytics__custom-plugin.js +1 -1
  8. package/components/auth/auth.js +1 -1
  9. package/components/auth/auth__core.js +36 -36
  10. package/components/auth/background-flow.js +2 -2
  11. package/components/auth/down-notification.js +3 -1
  12. package/components/auth/iframe-flow.js +4 -2
  13. package/components/auth/request-builder.js +5 -5
  14. package/components/auth/storage.js +10 -9
  15. package/components/auth/token-validator.js +8 -15
  16. package/components/auth-dialog/auth-dialog.js +8 -8
  17. package/components/auth-dialog-service/auth-dialog-service.js +4 -4
  18. package/components/avatar/avatar.js +9 -7
  19. package/components/avatar/fallback-avatar.js +15 -12
  20. package/components/button/button.css +31 -24
  21. package/components/button/button.js +9 -9
  22. package/components/button/button__classes.d.ts +1 -1
  23. package/components/button/button__classes.js +3 -4
  24. package/components/button-group/button-group.css +25 -13
  25. package/components/button-group/caption.js +1 -1
  26. package/components/button-toolbar/button-toolbar.d.ts +1 -1
  27. package/components/button-toolbar/button-toolbar.js +2 -2
  28. package/components/caret/caret.js +8 -8
  29. package/components/checkbox/checkbox.css +8 -5
  30. package/components/checkbox/checkbox.js +1 -1
  31. package/components/clipboard/clipboard-fallback.js +2 -6
  32. package/components/clipboard/clipboard.js +5 -5
  33. package/components/code/code.d.ts +1 -1
  34. package/components/code/code.js +2 -2
  35. package/components/code/highlight.css +3 -1
  36. package/components/collapse/collapse-content.js +3 -3
  37. package/components/collapse/collapse-context.js +1 -1
  38. package/components/collapse/collapse-control.js +5 -3
  39. package/components/collapse/collapse.css +21 -20
  40. package/components/collapse/collapse.js +2 -2
  41. package/components/confirm/confirm.d.ts +2 -2
  42. package/components/confirm/confirm.js +2 -2
  43. package/components/confirm-service/confirm-service.d.ts +1 -1
  44. package/components/confirm-service/confirm-service.js +6 -6
  45. package/components/content-layout/content-layout.css +6 -5
  46. package/components/content-layout/content-layout.js +7 -6
  47. package/components/content-layout/sidebar.js +5 -5
  48. package/components/contenteditable/contenteditable.d.ts +1 -1
  49. package/components/contenteditable/contenteditable.js +3 -4
  50. package/components/control-label/control-label.js +5 -3
  51. package/components/data-list/data-list.css +3 -3
  52. package/components/data-list/data-list.d.ts +2 -2
  53. package/components/data-list/data-list.js +6 -7
  54. package/components/data-list/data-list.mock.js +57 -47
  55. package/components/data-list/item.js +14 -16
  56. package/components/data-list/selection.js +5 -7
  57. package/components/data-list/title.js +5 -6
  58. package/components/date-picker/consts.js +2 -2
  59. package/components/date-picker/date-input.js +4 -4
  60. package/components/date-picker/date-picker.css +23 -18
  61. package/components/date-picker/date-picker.d.ts +2 -1
  62. package/components/date-picker/date-picker.js +13 -19
  63. package/components/date-picker/date-popup.js +30 -36
  64. package/components/date-picker/day.js +6 -9
  65. package/components/date-picker/formats.js +647 -1
  66. package/components/date-picker/month-names.js +6 -8
  67. package/components/date-picker/month-slider.js +2 -2
  68. package/components/date-picker/month.js +1 -3
  69. package/components/date-picker/months.js +2 -6
  70. package/components/date-picker/weekdays.js +2 -3
  71. package/components/date-picker/years.js +3 -3
  72. package/components/dialog/dialog.d.ts +1 -0
  73. package/components/dialog/dialog.js +20 -13
  74. package/components/dialog/dialog__body-scroll-preventer.js +1 -1
  75. package/components/dropdown/dropdown.css +2 -4
  76. package/components/dropdown/dropdown.d.ts +2 -2
  77. package/components/dropdown/dropdown.js +5 -5
  78. package/components/dropdown-menu/dropdown-menu.js +5 -5
  79. package/components/editable-heading/editable-heading.css +5 -2
  80. package/components/editable-heading/editable-heading.js +21 -19
  81. package/components/error-bubble/error-bubble.js +1 -1
  82. package/components/error-message/error-message.js +2 -4
  83. package/components/footer/footer.js +11 -15
  84. package/components/form/form.stories.js +45 -63
  85. package/components/global/create-stateful-context.js +2 -4
  86. package/components/global/data-tests.js +5 -6
  87. package/components/global/dom.js +8 -11
  88. package/components/global/focus-sensor-hoc.js +5 -6
  89. package/components/global/fuzzy-highlight.js +1 -1
  90. package/components/global/get-event-key.js +2 -2
  91. package/components/global/global.css +0 -3
  92. package/components/global/linear-function.js +1 -1
  93. package/components/global/normalize-indent.js +2 -6
  94. package/components/global/react-dom-renderer.js +2 -3
  95. package/components/global/theme.js +9 -10
  96. package/components/global/url.js +8 -8
  97. package/components/global/variables.css +1 -8
  98. package/components/global/variables_dark.css +0 -1
  99. package/components/grid/col.js +6 -6
  100. package/components/grid/grid.css +174 -173
  101. package/components/grid/grid.js +1 -1
  102. package/components/grid/row.js +13 -6
  103. package/components/group/group.js +1 -1
  104. package/components/header/header-icon.js +2 -2
  105. package/components/header/header.css +19 -15
  106. package/components/header/header.js +3 -5
  107. package/components/header/links.js +1 -1
  108. package/components/header/logo.js +1 -1
  109. package/components/header/profile.d.ts +2 -2
  110. package/components/header/profile.js +9 -9
  111. package/components/header/services-link.js +1 -1
  112. package/components/header/services.js +4 -5
  113. package/components/header/smart-profile.js +4 -3
  114. package/components/header/smart-services.js +9 -5
  115. package/components/header/tray.js +1 -1
  116. package/components/heading/heading.css +0 -1
  117. package/components/heading/heading.js +2 -2
  118. package/components/http/http.d.ts +3 -3
  119. package/components/http/http.js +25 -29
  120. package/components/http/http.mock.js +9 -6
  121. package/components/hub-source/hub-source.js +5 -7
  122. package/components/hub-source/hub-source__user.js +1 -1
  123. package/components/hub-source/hub-source__users-groups.js +6 -7
  124. package/components/i18n/README.md +3 -4
  125. package/components/i18n/i18n-context.js +2 -4
  126. package/components/icon/icon.js +7 -9
  127. package/components/icon/icon__svg.js +6 -6
  128. package/components/input/input.js +11 -14
  129. package/components/input-size/input-size.stories.js +42 -22
  130. package/components/island/adaptive-island-hoc.js +1 -1
  131. package/components/island/content.js +4 -6
  132. package/components/island/header.js +8 -10
  133. package/components/island/island.css +5 -5
  134. package/components/island/island.js +1 -1
  135. package/components/link/clickableLink.js +3 -1
  136. package/components/link/link.js +5 -3
  137. package/components/list/consts.js +1 -1
  138. package/components/list/list.d.ts +1 -1
  139. package/components/list/list.js +35 -57
  140. package/components/list/list__custom.js +3 -5
  141. package/components/list/list__hint.js +3 -1
  142. package/components/list/list__item.js +11 -9
  143. package/components/list/list__link.js +1 -1
  144. package/components/list/list__separator.js +2 -2
  145. package/components/list/list__title.js +7 -3
  146. package/components/list/list__users-groups-source.js +6 -8
  147. package/components/loader/loader.js +1 -1
  148. package/components/loader/loader__core.js +5 -5
  149. package/components/loader-inline/loader-inline.css +0 -3
  150. package/components/loader-inline/loader-inline.js +5 -7
  151. package/components/loader-screen/loader-screen.js +1 -1
  152. package/components/login-dialog/login-dialog.js +4 -4
  153. package/components/login-dialog/service.js +5 -5
  154. package/components/markdown/markdown.css +6 -6
  155. package/components/markdown/markdown.d.ts +2 -2
  156. package/components/markdown/markdown.js +4 -6
  157. package/components/message/message.css +2 -1
  158. package/components/message/message.js +30 -21
  159. package/components/old-browsers-message/old-browsers-message.js +2 -2
  160. package/components/old-browsers-message/white-list.js +2 -3
  161. package/components/pager/pager.js +28 -29
  162. package/components/permissions/permissions.js +8 -13
  163. package/components/permissions/permissions__cache.js +6 -7
  164. package/components/popup/popup.consts.js +8 -2
  165. package/components/popup/popup.js +27 -33
  166. package/components/popup/popup.target.js +4 -4
  167. package/components/popup/position.js +21 -28
  168. package/components/popup-menu/popup-menu.js +1 -1
  169. package/components/progress-bar/progress-bar.css +10 -8
  170. package/components/progress-bar/progress-bar.d.ts +2 -2
  171. package/components/progress-bar/progress-bar.js +2 -2
  172. package/components/query-assist/query-assist.css +0 -3
  173. package/components/query-assist/query-assist.js +73 -84
  174. package/components/query-assist/query-assist__suggestions.js +10 -9
  175. package/components/radio/radio.css +6 -2
  176. package/components/radio/radio.js +1 -3
  177. package/components/scrollable-section/scrollable-section.css +5 -6
  178. package/components/scrollable-section/scrollable-section.js +1 -1
  179. package/components/select/select.css +5 -5
  180. package/components/select/select.d.ts +1 -1
  181. package/components/select/select.js +96 -110
  182. package/components/select/select__filter.js +1 -1
  183. package/components/select/select__popup.js +40 -51
  184. package/components/shortcuts/core.js +10 -7
  185. package/components/shortcuts/shortcut-title.js +6 -6
  186. package/components/shortcuts/shortcuts.js +1 -1
  187. package/components/sidebar/sidebar.css +3 -1
  188. package/components/slider/slider.css +14 -14
  189. package/components/slider/slider.js +7 -7
  190. package/components/tab-trap/tab-trap.js +7 -9
  191. package/components/table/cell.js +3 -1
  192. package/components/table/disable-hover-hoc.js +2 -2
  193. package/components/table/header-cell.js +5 -3
  194. package/components/table/header.d.ts +1 -2
  195. package/components/table/header.js +10 -12
  196. package/components/table/multitable.js +5 -3
  197. package/components/table/row.d.ts +0 -1
  198. package/components/table/row.js +20 -27
  199. package/components/table/selection-adapter.js +1 -1
  200. package/components/table/selection-shortcuts-hoc.js +2 -2
  201. package/components/table/selection.d.ts +2 -3
  202. package/components/table/selection.js +4 -5
  203. package/components/table/simple-table.js +4 -4
  204. package/components/table/smart-table.js +5 -5
  205. package/components/table/table.css +8 -9
  206. package/components/table/table.d.ts +0 -1
  207. package/components/table/table.js +22 -23
  208. package/components/table/table.stories.json +45 -16
  209. package/components/tabs/collapsible-more.d.ts +1 -1
  210. package/components/tabs/collapsible-more.js +13 -16
  211. package/components/tabs/collapsible-tab.js +2 -2
  212. package/components/tabs/collapsible-tabs.d.ts +2 -2
  213. package/components/tabs/collapsible-tabs.js +13 -22
  214. package/components/tabs/dumb-tabs.js +6 -9
  215. package/components/tabs/smart-tabs.js +4 -4
  216. package/components/tabs/tab-link.js +1 -3
  217. package/components/tabs/tabs.css +7 -9
  218. package/components/tag/tag.css +6 -6
  219. package/components/tag/tag.d.ts +1 -1
  220. package/components/tag/tag.js +9 -12
  221. package/components/tags-input/tags-input.js +15 -19
  222. package/components/tags-list/tags-list.d.ts +2 -2
  223. package/components/tags-list/tags-list.js +6 -5
  224. package/components/text/text.js +5 -3
  225. package/components/toggle/toggle.css +12 -10
  226. package/components/toggle/toggle.d.ts +2 -2
  227. package/components/toggle/toggle.js +4 -3
  228. package/components/tooltip/tooltip.js +13 -8
  229. package/components/user-agreement/service.js +15 -13
  230. package/components/user-agreement/user-agreement.js +3 -5
  231. package/components/user-card/card.js +10 -9
  232. package/components/user-card/smart-user-card-tooltip.js +5 -7
  233. package/components/user-card/tooltip.js +4 -4
  234. package/components/user-card/user-card.css +4 -0
  235. package/jslint-xml.js +20 -19
  236. package/package.json +59 -50
  237. package/postcss.config.js +3 -4
  238. package/typings.d.ts +2 -4
  239. package/webpack.config.js +20 -25
  240. package/components/badge/badge.css +0 -42
  241. package/components/badge/badge.d.ts +0 -14
  242. package/components/badge/badge.js +0 -29
  243. package/components/island-legacy/content-legacy.d.ts +0 -5
  244. package/components/island-legacy/content-legacy.js +0 -12
  245. package/components/island-legacy/header-legacy.d.ts +0 -5
  246. package/components/island-legacy/header-legacy.js +0 -14
  247. package/components/island-legacy/island-legacy.css +0 -98
  248. package/components/island-legacy/island-legacy.d.ts +0 -7
  249. package/components/island-legacy/island-legacy.js +0 -14
  250. package/components/table-legacy/table-legacy.css +0 -346
  251. package/components/table-legacy/table-legacy__toolbar.css +0 -25
@@ -1,14 +0,0 @@
1
- import { PureComponent, HTMLAttributes } from 'react';
2
- export interface BadgeProps extends HTMLAttributes<HTMLElement> {
3
- gray?: boolean | null | undefined;
4
- valid?: boolean | null | undefined;
5
- invalid?: boolean | null | undefined;
6
- disabled?: boolean | null | undefined;
7
- 'data-test'?: string | null | undefined;
8
- }
9
- /**
10
- * @name Badge
11
- */
12
- export default class Badge extends PureComponent<BadgeProps> {
13
- render(): import("react").JSX.Element;
14
- }
@@ -1,29 +0,0 @@
1
- import { PureComponent } from 'react';
2
- import classNames from 'classnames';
3
- import deprecate from 'util-deprecate';
4
- import dataTests from '../global/data-tests';
5
- import style from './badge.css';
6
- const warn = deprecate(() => { }, 'Badge is deprecated and will be removed in RingUI 7.0. Use Tag instead.');
7
- /**
8
- * @name Badge
9
- */
10
- // TODO remove in 7.0
11
- export default class Badge extends PureComponent {
12
- render() {
13
- warn();
14
- const {
15
- // Modifiers
16
- gray, valid, invalid, disabled,
17
- // Props
18
- className, children, 'data-test': dataTest, ...props } = this.props;
19
- const classes = classNames(style.badge, className, {
20
- [style.gray]: gray,
21
- [style.valid]: valid,
22
- [style.invalid]: invalid,
23
- [style.disabled]: disabled
24
- });
25
- return (<span {...props} data-test={dataTests('ring-badge', dataTest)} className={classes}>
26
- {children}
27
- </span>);
28
- }
29
- }
@@ -1,5 +0,0 @@
1
- import { HTMLAttributes, PureComponent } from 'react';
2
- import './island-legacy.css';
3
- export default class Content extends PureComponent<HTMLAttributes<HTMLElement>> {
4
- render(): import("react").JSX.Element;
5
- }
@@ -1,12 +0,0 @@
1
- import { PureComponent } from 'react';
2
- import classNames from 'classnames';
3
- import './island-legacy.css';
4
- export default class Content extends PureComponent {
5
- render() {
6
- const { children, className, ...restProps } = this.props;
7
- const classes = classNames('ring-island__content', className);
8
- return (<div {...restProps} className={classes}>
9
- {children}
10
- </div>);
11
- }
12
- }
@@ -1,5 +0,0 @@
1
- import { HTMLAttributes, PureComponent } from 'react';
2
- import './island-legacy.css';
3
- export default class Header extends PureComponent<HTMLAttributes<HTMLElement>> {
4
- render(): import("react").JSX.Element;
5
- }
@@ -1,14 +0,0 @@
1
- import { PureComponent } from 'react';
2
- import classNames from 'classnames';
3
- import './island-legacy.css';
4
- export default class Header extends PureComponent {
5
- render() {
6
- const { children, className, ...restProps } = this.props;
7
- const classes = classNames('ring-island__header', className);
8
- return (<div {...restProps} className={classes}>
9
- <div className="ring-island__title">
10
- {children}
11
- </div>
12
- </div>);
13
- }
14
- }
@@ -1,98 +0,0 @@
1
- /**
2
- * @name Island Legacy
3
- */
4
-
5
- :global(.ring-island) {
6
- min-width: calc(var(--ring-unit) * 25 - 2px);
7
-
8
- color: var(--ring-text-color);
9
-
10
- border: 1px solid;
11
- border-color: var(--ring-line-color);
12
- border-radius: var(--ring-border-radius);
13
-
14
- background-color: var(--ring-content-background-color);
15
- box-shadow: 0 1px 4px var(--ring-popup-shadow-color);
16
-
17
- font-family: var(--ring-font-family);
18
-
19
- font-size: var(--ring-font-size);
20
- }
21
-
22
- :global(.ring-island_stack-right) {
23
- border-right: none;
24
- border-top-right-radius: 0;
25
- border-bottom-right-radius: 0;
26
-
27
- box-shadow: none;
28
- }
29
-
30
- :global(.ring-island_stack-left) {
31
- border-top-left-radius: 0;
32
- border-bottom-left-radius: 0;
33
-
34
- box-shadow: none;
35
- }
36
-
37
- :global(.ring-island__header) {
38
- min-height: calc(var(--ring-unit) * 3 - 2px);
39
-
40
- border-bottom: 1px solid var(--ring-line-color);
41
- border-top-left-radius: var(--ring-border-radius);
42
- border-top-right-radius: var(--ring-border-radius);
43
-
44
- background-color: var(--ring-content-background-color);
45
-
46
- line-height: calc(var(--ring-unit) * 3 - 2px);
47
- }
48
-
49
- :global(.ring-island__header-btn),
50
- :global(.ring-island__header-button) {
51
- float: right;
52
-
53
- padding: 0 calc(var(--ring-unit) * 2 - 1px);
54
-
55
- /* -1 to account for border */
56
-
57
- cursor: pointer;
58
-
59
- user-select: none;
60
-
61
- color: var(--ring-secondary-color);
62
-
63
- border-left: 1px solid var(--ring-disabled-color);
64
- text-shadow: var(--ring-white-text-color) 0 0 1px;
65
-
66
- font-size: var(--ring-font-size-smaller);
67
- }
68
-
69
- :global(.ring-island__header-btn),
70
- :global(.ring-island__header-button:hover) {
71
- background:
72
- var(--ring-hover-background-color)
73
- linear-gradient(to top, var(--ring-hover-background-color), var(--ring-content-background-color));
74
- }
75
-
76
- :global(.ring-island__header-btn),
77
- :global(.ring-island__header-button:active) {
78
- background: var(--ring-content-background-color) none;
79
- box-shadow: 0 0 4px 0 var(--ring-content-background-color) inset;
80
- }
81
-
82
- :global(.ring-island__header-btn),
83
- :global(.ring-island__header-button:last-child) {
84
- border-top-right-radius: 3px;
85
- }
86
-
87
- :global(.ring-island__title) {
88
- display: block;
89
- float: left;
90
-
91
- padding: 0 calc(var(--ring-unit) * 4);
92
-
93
- font-weight: var(--ring-font-weight-bold);
94
- }
95
-
96
- :global(.ring-island__content) {
97
- margin: calc(var(--ring-unit) * 2) calc(var(--ring-unit) * 4);
98
- }
@@ -1,7 +0,0 @@
1
- import { HTMLAttributes, PureComponent } from 'react';
2
- import './island-legacy.css';
3
- export default class Island extends PureComponent<HTMLAttributes<HTMLElement>> {
4
- render(): import("react").JSX.Element;
5
- }
6
- export { default as Header } from './header-legacy';
7
- export { default as Content } from './content-legacy';
@@ -1,14 +0,0 @@
1
- import { PureComponent } from 'react';
2
- import classNames from 'classnames';
3
- import './island-legacy.css';
4
- export default class Island extends PureComponent {
5
- render() {
6
- const { children, className, ...restProps } = this.props;
7
- const classes = classNames('ring-island', className);
8
- return (<div {...restProps} className={classes}>
9
- {children}
10
- </div>);
11
- }
12
- }
13
- export { default as Header } from './header-legacy';
14
- export { default as Content } from './content-legacy';
@@ -1,346 +0,0 @@
1
- @import "./table-legacy__toolbar.css";
2
-
3
- :global(.ring-table) {
4
- width: 100%;
5
-
6
- border-spacing: 0;
7
-
8
- border-collapse: collapse;
9
- background-color: transparent;
10
-
11
- font-size: var(--ring-font-size);
12
- }
13
-
14
- :global(.ring-table__header) {
15
- display: table-row;
16
-
17
- background-color: var(--ring-sidebar-background-color);
18
- }
19
-
20
- :global(.ring-table__header-checkbox) {
21
- position: relative;
22
- top: 1px;
23
- left: -2px;
24
-
25
- display: inline-block;
26
- }
27
-
28
- :global(.ring-table__title) {
29
- position: relative;
30
-
31
- display: table-cell;
32
-
33
- padding: 0 var(--ring-unit);
34
-
35
- text-align: left;
36
- white-space: nowrap;
37
-
38
- color: var(--ring-text-color);
39
- border-top: 1px solid var(--ring-sidebar-background-color);
40
- border-bottom: 1px solid var(--ring-line-color);
41
-
42
- font-size: var(--ring-font-size-smaller);
43
- font-weight: normal;
44
- line-height: 23px;
45
- }
46
-
47
- :global(.ring-table__title.ring-table__title_active) {
48
- font-weight: var(--ring-font-weight-bold);
49
- }
50
-
51
- :global(.ring-table__title:first-child) {
52
- padding-left: calc(var(--ring-unit) * 4);
53
- }
54
-
55
- /* Have to emulate right border because of Fx weird bug —
56
- * https://jetpass.myjetbrains.com/youtrack/issue/JPS-1634
57
- * Removing border-collapse: collapse from .ring-table helps too,
58
- * but to implement nested items markup without it is next to impossible.
59
- **/
60
- :global(.ring-table__title::after) {
61
- position: absolute;
62
- top: -1px;
63
- right: 0;
64
- bottom: 0;
65
-
66
- display: block;
67
-
68
- width: 1px;
69
-
70
- content: normal;
71
-
72
- background-color: var(--ring-sidebar-background-color);
73
- }
74
-
75
- :global(.ring-table__title_border::after) {
76
- content: "";
77
- }
78
-
79
- :global(.ring-table__title_nested) {
80
- padding-left: calc(var(--ring-unit) * 5);
81
- }
82
-
83
- /* fix header checkbox position in nested table */
84
- :global(.ring-table__title_nested.ring-table__header-checkbox) {
85
- left: -26px;
86
- }
87
-
88
- :global(.ring-table__toggle) {
89
- position: relative;
90
- top: 9px;
91
-
92
- display: inline-block;
93
-
94
- width: 12px;
95
- height: 9px;
96
-
97
- margin-left: calc(var(--ring-unit) * 2);
98
- padding-bottom: 21px;
99
-
100
- cursor: pointer;
101
-
102
- color: var(--ring-line-color);
103
-
104
- font-size: 14px;
105
- }
106
-
107
- :global(.ring-table__toggle:hover) {
108
- color: var(--ring-text-color);
109
- }
110
-
111
- :global(.ring-table__toggle-icon) {
112
- float: right;
113
- }
114
-
115
- :global(.ring-table__toggle-icon:hover) {
116
- color: var(--ring-link-hover-color);
117
- }
118
-
119
- :global(.ring-table__column-inline-avatar) {
120
- display: inline-block;
121
-
122
- vertical-align: middle;
123
- }
124
-
125
- :global(.ring-table__column-inline-avatar-img) {
126
- margin: -6px 8px;
127
- }
128
-
129
- :global(.ring-table__column_selector) {
130
- min-width: calc(3 * var(--ring-unit));
131
- padding: 0 !important;
132
-
133
- text-align: center;
134
- }
135
-
136
- :global(.ring-table__selector) {
137
- display: inline-block;
138
-
139
- margin: 0 0 0 calc(var(--ring-unit) / 2);
140
- }
141
-
142
- :global(.ring-table__column) {
143
- display: table-cell;
144
-
145
- padding: calc(var(--ring-unit) - 2px) var(--ring-unit);
146
-
147
- vertical-align: middle;
148
- white-space: nowrap;
149
-
150
- border-collapse: collapse;
151
- border-width: 1px;
152
- border-color: var(--ring-line-color);
153
- border-top-style: solid;
154
- border-bottom-style: solid;
155
- }
156
-
157
- /* Avoid vertical gaps in the middle of the table */
158
- :global(.ring-table__column:last-child) {
159
- width: 100%;
160
- }
161
-
162
- :global(.ring-table__column:first-child) {
163
- padding-left: calc(4 * var(--ring-unit));
164
- }
165
-
166
- :global(.ring-table__column.ring-table__column_gap) {
167
- border-bottom-color: transparent !important;
168
- background-color: var(--ring-line-color);
169
- }
170
-
171
- /* Combined class is required here for specificity */
172
- :global(.ring-table__column.ring-table__column_toggle) {
173
- width: calc(var(--ring-unit) * 2);
174
- padding: 0;
175
-
176
- text-align: right;
177
-
178
- vertical-align: top;
179
- }
180
-
181
- :global(.ring-table__column_right) {
182
- text-align: right;
183
- }
184
-
185
- :global(.ring-table__column_gray) {
186
- color: var(--ring-secondary-color);
187
- }
188
-
189
- :global(.ring-table__column_snuggle-right) {
190
- padding-right: 0;
191
- }
192
-
193
- :global(.ring-table__column_snuggle-left) {
194
- padding-left: 0;
195
- }
196
-
197
- :global(.ring-table__column_align-right) {
198
- text-align: right;
199
- }
200
-
201
- :global(.ring-table__column_gap) {
202
- padding-left: calc(var(--ring-unit) * 2) !important;
203
- }
204
-
205
- :global(.ring-table__column-title) {
206
- font-weight: var(--ring-font-weight-bold);
207
- }
208
-
209
- :global(.ring-table__column_wide) {
210
- min-width: calc(10 * var(--ring-unit));
211
- }
212
-
213
- :global(.ring-table__column_limited) {
214
- overflow: hidden;
215
-
216
- max-width: calc(50 * var(--ring-unit));
217
-
218
- white-space: nowrap;
219
- text-overflow: ellipsis;
220
- }
221
-
222
- :global(.ring-table__column_unlimited) {
223
- overflow: hidden;
224
-
225
- width: 100%;
226
- max-width: 1px;
227
-
228
- white-space: nowrap;
229
- text-overflow: ellipsis;
230
- }
231
-
232
- :global(.ring-table__column_narrow) {
233
- min-width: calc(3 * var(--ring-unit));
234
- padding: 0 !important;
235
- }
236
-
237
- :global(.ring-table__column-list:not(:last-child)::after) {
238
- content: ", ";
239
- }
240
-
241
- :global(.ring-table__row) {
242
- display: table-row;
243
-
244
- width: 100%;
245
- height: calc(5 * var(--ring-unit));
246
- }
247
-
248
- :global(.ring-table__row .ring-table__row_ghost) {
249
- background-color: var(--ring-content-background-color);
250
- }
251
-
252
- :global(.ring-table__row .ring-table__row_implicit) {
253
- opacity: 0.5;
254
- }
255
-
256
- :global(.ring-table__row:hover) {
257
- background-color: var(--ring-sidebar-background-color);
258
- }
259
-
260
- :global(.ring-table__row:hover .ring-table__column_gap) {
261
- background-color: var(--ring-line-color);
262
- }
263
-
264
- :global(.ring-table__row .ring-table__row_unselectable:hover) {
265
- background-color: initial;
266
- }
267
-
268
- :global(.ring-table__row .ring-table__row_checked) {
269
- background-color: var(--ring-selected-background-color);
270
- }
271
-
272
- :global(.ring-table__row .ring-table__row_active-checked) {
273
- background-color: var(--ring-selected-background-color);
274
- }
275
-
276
- :global(.ring-table__row .ring-table__row_active.ring-table__column) {
277
- border-color: var(--ring-main-color);
278
- border-top-style: double; /* Using double to override border-top-color because of border collapsed */
279
- }
280
-
281
- :global(.ring-table__row .ring-table__row_active.ring-table__column_gap) {
282
- border-color: var(--ring-line-color);
283
- border-top-style: none;
284
- }
285
-
286
- :global(.ring-table__row .ring-table__row_active.sidebar__btn) {
287
- visibility: visible;
288
- }
289
-
290
- :global(.ring-table__group) {
291
- display: table-row-group;
292
- }
293
-
294
- :global(.ring-table__description) {
295
- margin-left: var(--ring-unit);
296
-
297
- color: var(--ring-secondary-color);
298
-
299
- font-size: var(--ring-font-size-smaller);
300
- }
301
-
302
- :global(.ring-table__avatar) {
303
- width: calc(3 * var(--ring-unit));
304
- height: calc(3 * var(--ring-unit) + 3px); /* If avatar is missing */
305
- }
306
-
307
- :global(.ring-table__avatar-img) {
308
- width: calc(3 * var(--ring-unit));
309
- height: calc(3 * var(--ring-unit));
310
- }
311
-
312
- :global(.ring-table__header_sticky) {
313
- position: fixed;
314
-
315
- /* Set z-index to avoid overlaying icons in rows and fixed header */
316
-
317
- z-index: var(--ring-fixed-z-index);
318
- top: 0;
319
-
320
- display: none;
321
-
322
- width: auto;
323
- }
324
-
325
- :global(.table__pager) {
326
- padding: calc(4 * var(--ring-unit));
327
- }
328
-
329
- :global(.table__pager-links) {
330
- margin-bottom: calc(2 * var(--ring-unit));
331
- }
332
-
333
- :global(.table__pager-link) {
334
- display: inline-block;
335
-
336
- margin-right: calc(4 * var(--ring-unit));
337
- }
338
-
339
- :global(.table__pager-link_disabled) {
340
- color: var(--ring-secondary-color);
341
- }
342
-
343
- :global(.table__pager-select) {
344
- display: inline-block;
345
- float: right;
346
- }
@@ -1,25 +0,0 @@
1
- :global(.ring-table__toolbar) {
2
- background: inherit;
3
- }
4
-
5
- :global(.ring-table__toolbar-controls) {
6
- position: relative;
7
-
8
- display: block;
9
-
10
- min-height: calc(var(--ring-unit) * 3);
11
-
12
- padding: calc(var(--ring-unit) * 2) calc(var(--ring-unit) * 4);
13
-
14
- white-space: initial;
15
-
16
- background: inherit;
17
-
18
- &:global(.ring-table__toolbar-controls_fixed) {
19
- position: fixed;
20
- z-index: calc(var(--ring-fixed-z-index) + 1);
21
- top: 0;
22
- right: 0;
23
- left: 0;
24
- }
25
- }