@jetbrains/ring-ui 6.0.7-beta.0 → 6.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/README.md +1 -1
  2. package/components/alert/alert.css +12 -13
  3. package/components/alert/container.css +4 -6
  4. package/components/alert-service/alert-service.stories.css +0 -3
  5. package/components/auth/down-notification.css +2 -4
  6. package/components/auth-dialog/auth-dialog.css +10 -12
  7. package/components/badge/badge.css +1 -3
  8. package/components/button/button.css +13 -14
  9. package/components/button-group/button-group.css +6 -5
  10. package/components/button-set/button-set.css +1 -2
  11. package/components/button-toolbar/button-toolbar.css +1 -2
  12. package/components/checkbox/checkbox.css +7 -7
  13. package/components/checkbox/checkbox.js +2 -2
  14. package/components/code/code.css +3 -5
  15. package/components/collapse/collapse-content.d.ts +11 -0
  16. package/components/collapse/collapse-content.js +72 -0
  17. package/components/collapse/collapse-context.d.ts +10 -0
  18. package/components/collapse/collapse-context.js +10 -0
  19. package/components/collapse/collapse-control.d.ts +11 -0
  20. package/components/collapse/collapse-control.js +22 -0
  21. package/components/collapse/collapse.css +40 -0
  22. package/components/collapse/collapse.d.ts +12 -0
  23. package/components/collapse/collapse.js +26 -0
  24. package/components/collapse/collapse.stories.css +25 -0
  25. package/components/collapse/consts.d.ts +4 -0
  26. package/components/collapse/consts.js +4 -0
  27. package/components/collapse/utils.d.ts +1 -0
  28. package/components/collapse/utils.js +1 -0
  29. package/components/confirm/confirm.css +1 -3
  30. package/components/content-layout/content-layout.css +7 -7
  31. package/components/data-list/data-list.css +4 -5
  32. package/components/date-picker/consts.js +1 -1
  33. package/components/date-picker/date-picker.css +40 -41
  34. package/components/date-picker/date-picker.js +7 -7
  35. package/components/date-picker/date-popup.js +4 -4
  36. package/components/date-picker/day.js +9 -9
  37. package/components/date-picker/month-names.js +6 -6
  38. package/components/date-picker/month-slider.js +3 -3
  39. package/components/date-picker/month.js +5 -5
  40. package/components/date-picker/months.js +6 -6
  41. package/components/date-picker/weekdays.js +4 -4
  42. package/components/date-picker/years.js +8 -8
  43. package/components/dialog/dialog.css +12 -13
  44. package/components/editable-heading/editable-heading.css +8 -8
  45. package/components/error-bubble/error-bubble-legacy.css +6 -8
  46. package/components/error-bubble/error-bubble.css +6 -8
  47. package/components/footer/footer.css +6 -8
  48. package/components/form/form.css +31 -33
  49. package/components/global/global.css +1 -7
  50. package/components/global/variables.css +4 -4
  51. package/components/global/variables_dark.css +8 -8
  52. package/components/grid/grid.css +6 -6
  53. package/components/group/group.css +1 -3
  54. package/components/header/header.css +12 -14
  55. package/components/header/services.css +12 -14
  56. package/components/icon/icon.css +7 -4
  57. package/components/input/input-legacy.css +2 -4
  58. package/components/input/input.css +8 -10
  59. package/components/input-size/input-size.css +4 -6
  60. package/components/island/island.css +6 -7
  61. package/components/island-legacy/island-legacy.css +6 -8
  62. package/components/line/line.css +1 -3
  63. package/components/link/link.css +1 -1
  64. package/components/link/link.d.ts +2 -2
  65. package/components/link/link.js +1 -1
  66. package/components/list/list.css +17 -20
  67. package/components/loader/loader.css +1 -3
  68. package/components/loader-inline/loader-inline.css +5 -6
  69. package/components/login-dialog/login-dialog.css +1 -3
  70. package/components/markdown/markdown.css +2 -3
  71. package/components/message/message.css +5 -8
  72. package/components/old-browsers-message/old-browsers-message.css +2 -4
  73. package/components/pager/pager.css +2 -4
  74. package/components/panel/panel.css +3 -5
  75. package/components/progress-bar/progress-bar.css +3 -4
  76. package/components/query-assist/query-assist.css +3 -4
  77. package/components/radio/radio.css +8 -11
  78. package/components/select/select-popup.css +9 -11
  79. package/components/select/select.css +13 -14
  80. package/components/sidebar/sidebar.css +13 -15
  81. package/components/table/table.css +15 -17
  82. package/components/table-legacy/table-legacy.css +22 -24
  83. package/components/table-legacy/table-legacy__toolbar.css +2 -4
  84. package/components/tabs/tabs.css +3 -4
  85. package/components/tag/tag.css +12 -13
  86. package/components/tags-input/tags-input.css +1 -2
  87. package/components/toggle/toggle.css +46 -55
  88. package/components/tooltip/tooltip.css +3 -5
  89. package/components/user-agreement/user-agreement.css +2 -2
  90. package/components/user-card/user-card.css +3 -5
  91. package/package.json +66 -65
@@ -1,14 +1,12 @@
1
1
  @import "../global/variables.css";
2
2
 
3
- @value unit from "../global/global.css";
4
-
5
3
  .panel {
6
4
  composes: panel from "../dialog/dialog.css"; /* TODO: Invert dependency using :externals CSS Modules selector */
7
5
 
8
6
  position: relative;
9
7
 
10
- margin-top: calc(unit * 2);
11
- padding: calc(unit * 2) calc(unit * 4) calc(unit * 4);
8
+ margin-top: calc(var(--ring-unit) * 2);
9
+ padding: calc(var(--ring-unit) * 2) calc(var(--ring-unit) * 4) calc(var(--ring-unit) * 4);
12
10
 
13
11
  border-top: 1px solid var(--ring-popup-border-color);
14
12
 
@@ -17,6 +15,6 @@
17
15
  }
18
16
 
19
17
  & > button:not(:last-child) {
20
- margin-right: unit;
18
+ margin-right: var(--ring-unit);
21
19
  }
22
20
  }
@@ -1,7 +1,6 @@
1
1
  @import "../global/variables.css";
2
2
 
3
3
  @value dark from "../global/variables_dark.css";
4
- @value unit from "../global/global.css";
5
4
 
6
5
  :root {
7
6
  --ring-progress-bar-background-color: rgba(0, 0, 0, 0.2);
@@ -20,8 +19,8 @@
20
19
 
21
20
  overflow: hidden;
22
21
 
23
- height: calc(unit / 2);
24
- margin-bottom: calc(unit / 2);
22
+ height: calc(var(--ring-unit) / 2);
23
+ margin-bottom: calc(var(--ring-unit) / 2);
25
24
 
26
25
  border-radius: 2px;
27
26
  background-color: var(--ring-progress-bar-background-color);
@@ -49,7 +48,7 @@
49
48
  border-radius: 2px;
50
49
  background-color: var(--ring-main-color);
51
50
 
52
- line-height: calc(unit / 2);
51
+ line-height: calc(var(--ring-unit) / 2);
53
52
 
54
53
  &::after {
55
54
  position: absolute;
@@ -1,13 +1,12 @@
1
1
  @import "../global/variables.css";
2
2
  @import "../button/button.css";
3
3
 
4
- @value unit from "../global/global.css";
5
4
  @value overInputZIndex: 2;
6
- @value inputGap: calc(unit * 3);
5
+ @value inputGap: calc(var(--ring-unit) * 3);
7
6
 
8
7
  .queryAssist {
9
- --ring-input-icon-offset: calc(unit * 2.5);
10
- --ring-input-padding-inline: unit;
8
+ --ring-input-icon-offset: calc(var(--ring-unit) * 2.5);
9
+ --ring-input-padding-inline: var(--ring-unit);
11
10
  --ring-input-padding-block: 1px;
12
11
 
13
12
  position: relative;
@@ -1,8 +1,5 @@
1
1
  @import "../global/variables.css";
2
2
 
3
- @value unit from "../global/global.css";
4
- @value radio-size: calc(2 * unit);
5
-
6
3
  .radio {
7
4
  position: relative;
8
5
 
@@ -30,15 +27,15 @@
30
27
  flex-shrink: 0;
31
28
 
32
29
  box-sizing: border-box;
33
- width: radio-size;
34
- height: radio-size;
30
+ width: calc(2 * var(--ring-unit));
31
+ height: calc(2 * var(--ring-unit));
35
32
 
36
33
  user-select: none;
37
34
  transition: border-color var(--ring-ease), box-shadow var(--ring-ease);
38
35
  pointer-events: none;
39
36
 
40
37
  border: 1px solid var(--ring-borders-color);
41
- border-radius: unit;
38
+ border-radius: var(--ring-unit);
42
39
  background-color: var(--ring-content-background-color);
43
40
 
44
41
  &::after {
@@ -46,8 +43,8 @@
46
43
  top: 3px;
47
44
  left: 3px;
48
45
 
49
- width: unit;
50
- height: unit;
46
+ width: var(--ring-unit);
47
+ height: var(--ring-unit);
51
48
 
52
49
  content: "";
53
50
 
@@ -57,7 +54,7 @@
57
54
 
58
55
  opacity: 0;
59
56
 
60
- border-radius: calc(unit / 2);
57
+ border-radius: calc(var(--ring-unit) / 2);
61
58
  background-color: var(--ring-main-color);
62
59
  }
63
60
  }
@@ -109,7 +106,7 @@
109
106
 
110
107
  /* stylelint-disable-next-line selector-max-specificity */
111
108
  &::after {
112
- background-color: var(--ring-icon-disabled-color);
109
+ background-color: var(--ring-border-selected-disabled-color);
113
110
  }
114
111
  }
115
112
 
@@ -119,7 +116,7 @@
119
116
  }
120
117
 
121
118
  .label {
122
- margin-left: unit;
119
+ margin-left: var(--ring-unit);
123
120
 
124
121
  line-height: var(--ring-line-height);
125
122
  }
@@ -1,11 +1,9 @@
1
1
  @import "../global/variables.css";
2
2
 
3
- @value unit from "../global/global.css";
4
-
5
3
  .filterWithTags {
6
4
  overflow: hidden;
7
5
 
8
- margin: calc(unit * 2) unit 0;
6
+ margin: calc(var(--ring-unit) * 2) var(--ring-unit) 0;
9
7
  padding: 3px;
10
8
 
11
9
  text-align: left;
@@ -52,26 +50,26 @@
52
50
  display: flex;
53
51
 
54
52
  margin: 0;
55
- padding-right: unit;
56
- padding-left: calc(unit * 5.5);
53
+ padding-right: var(--ring-unit);
54
+ padding-left: calc(var(--ring-unit) * 5.5);
57
55
 
58
56
  border-bottom: 1px solid var(--ring-borders-color);
59
57
 
60
58
  [dir="rtl"] & {
61
- padding-right: calc(unit * 5.5);
62
- padding-left: unit;
59
+ padding-right: calc(var(--ring-unit) * 5.5);
60
+ padding-left: var(--ring-unit);
63
61
  }
64
62
  }
65
63
 
66
64
  .filterIcon {
67
65
  position: absolute;
68
66
  top: 7px;
69
- left: calc(unit * 2);
67
+ left: calc(var(--ring-unit) * 2);
70
68
 
71
69
  color: var(--ring-icon-color);
72
70
 
73
71
  [dir="rtl"] & {
74
- right: calc(unit * 2);
72
+ right: calc(var(--ring-unit) * 2);
75
73
  left: auto;
76
74
  }
77
75
  }
@@ -93,8 +91,8 @@
93
91
  .message {
94
92
  display: inline-block;
95
93
 
96
- margin: unit 0;
97
- padding: 0 calc(2 * unit);
94
+ margin: var(--ring-unit) 0;
95
+ padding: 0 calc(2 * var(--ring-unit));
98
96
  }
99
97
 
100
98
  .selectAll {
@@ -1,6 +1,5 @@
1
1
  @import "../global/variables.css";
2
2
 
3
- @value unit from "../global/global.css";
4
3
  @value button-shadow from "../button/button.css";
5
4
 
6
5
  .select {
@@ -29,12 +28,12 @@
29
28
  }
30
29
 
31
30
  .toolbar & {
32
- height: calc(4 * unit);
33
- margin: unit 0;
31
+ height: calc(4 * var(--ring-unit));
32
+ margin: var(--ring-unit) 0;
34
33
  }
35
34
 
36
35
  &.buttonSpaced {
37
- padding: 0 calc(2 * unit);
36
+ padding: 0 calc(2 * var(--ring-unit));
38
37
  }
39
38
  }
40
39
 
@@ -63,8 +62,8 @@
63
62
 
64
63
  display: inline-block;
65
64
 
66
- width: calc(2 * unit);
67
- height: calc(2 * unit);
65
+ width: calc(2 * var(--ring-unit));
66
+ height: calc(2 * var(--ring-unit));
68
67
  margin: 0 4px;
69
68
 
70
69
  background-repeat: no-repeat;
@@ -80,15 +79,15 @@
80
79
  }
81
80
 
82
81
  .sizeS {
83
- width: calc(unit * 12);
82
+ width: calc(var(--ring-unit) * 12);
84
83
  }
85
84
 
86
85
  .sizeM {
87
- width: calc(unit * 30);
86
+ width: calc(var(--ring-unit) * 30);
88
87
  }
89
88
 
90
89
  .sizeL {
91
- width: calc(unit * 50);
90
+ width: calc(var(--ring-unit) * 50);
92
91
  }
93
92
 
94
93
  .sizeFULL {
@@ -113,7 +112,7 @@
113
112
 
114
113
  box-sizing: border-box;
115
114
  width: 100%;
116
- height: calc(unit * 4 + 1px);
115
+ height: calc(var(--ring-unit) * 4 + 1px);
117
116
  padding: 0 0 3px;
118
117
 
119
118
  cursor: pointer;
@@ -157,10 +156,10 @@
157
156
  display: block;
158
157
 
159
158
  width: 100%;
160
- padding-left: unit;
159
+ padding-left: var(--ring-unit);
161
160
 
162
161
  text-align: left;
163
- vertical-align: calc(0 - unit);
162
+ vertical-align: calc(var(--ring-unit) * -1);
164
163
  }
165
164
 
166
165
  .buttonValue:focus-visible {
@@ -216,8 +215,8 @@
216
215
  }
217
216
 
218
217
  .popup {
219
- min-width: calc(unit * 30);
220
- max-width: calc(unit * 40);
218
+ min-width: calc(var(--ring-unit) * 30);
219
+ max-width: calc(var(--ring-unit) * 40);
221
220
  }
222
221
 
223
222
  .chevron.chevron {
@@ -1,7 +1,5 @@
1
1
  @import "../global/global.css";
2
2
 
3
- @value unit from "../global/global.css";
4
-
5
3
  @keyframes show-sidebar {
6
4
  0% {
7
5
  right: -100%;
@@ -25,10 +23,10 @@
25
23
 
26
24
  box-sizing: border-box;
27
25
 
28
- width: calc(unit * 58);
26
+ width: calc(var(--ring-unit) * 58);
29
27
  height: 100%;
30
28
 
31
- padding-top: calc(2 * unit);
29
+ padding-top: calc(2 * var(--ring-unit));
32
30
 
33
31
  transition: right 0.5s ease, visibility 0.5s;
34
32
 
@@ -60,16 +58,16 @@
60
58
  :global(.ring-sidebar__avatar) {
61
59
  float: left;
62
60
 
63
- width: calc(6 * unit);
64
- height: calc(6 * unit);
61
+ width: calc(6 * var(--ring-unit));
62
+ height: calc(6 * var(--ring-unit));
65
63
  object-fit: contain;
66
64
 
67
- padding: 0 calc(2 * unit) 0 calc(4 * unit);
65
+ padding: 0 calc(2 * var(--ring-unit)) 0 calc(4 * var(--ring-unit));
68
66
  }
69
67
 
70
68
  :global(.ring-sidebar__title) {
71
69
  margin: 0;
72
- padding-left: calc(4 * unit);
70
+ padding-left: calc(4 * var(--ring-unit));
73
71
 
74
72
  vertical-align: middle;
75
73
 
@@ -90,8 +88,8 @@
90
88
  :global(.ring-sidebar__section) {
91
89
  position: relative;
92
90
 
93
- margin-top: calc(3 * unit);
94
- padding: 0 calc(2 * unit) 0 calc(4 * unit);
91
+ margin-top: calc(3 * var(--ring-unit));
92
+ padding: 0 calc(2 * var(--ring-unit)) 0 calc(4 * var(--ring-unit));
95
93
  }
96
94
 
97
95
  :global(.ring-sidebar__section-title) {
@@ -107,7 +105,7 @@
107
105
  color: var(--ring-text-color);
108
106
 
109
107
  font-size: var(--ring-font-size);
110
- line-height: calc(3 * unit);
108
+ line-height: calc(3 * var(--ring-unit));
111
109
  }
112
110
 
113
111
  :global(.ring-sidebar__section-text_multiline) {
@@ -117,7 +115,7 @@
117
115
  }
118
116
 
119
117
  :global(.ring-sidebar__section-roster) {
120
- margin-top: unit;
118
+ margin-top: var(--ring-unit);
121
119
  }
122
120
 
123
121
  :global(.ring-sidebar__section-icon) {
@@ -126,7 +124,7 @@
126
124
 
127
125
  display: block;
128
126
 
129
- width: calc(4 * unit);
127
+ width: calc(4 * var(--ring-unit));
130
128
 
131
129
  text-align: center;
132
130
 
@@ -136,7 +134,7 @@
136
134
  }
137
135
 
138
136
  :global(.ring-sidebar__empty) {
139
- margin-top: calc(unit * 4);
137
+ margin-top: calc(var(--ring-unit) * 4);
140
138
 
141
139
  text-align: center;
142
140
  }
@@ -148,7 +146,7 @@
148
146
  }
149
147
 
150
148
  :global(.ring-sidebar__empty-description) {
151
- margin-top: calc(unit * 2);
149
+ margin-top: calc(var(--ring-unit) * 2);
152
150
  padding-top: 4px;
153
151
 
154
152
  color: var(--ring-text-color);
@@ -1,9 +1,7 @@
1
1
  @import "../global/variables.css";
2
2
 
3
- @value unit from "../global/global.css";
4
- @value height: calc(4 * unit);
5
3
  @value compensate: 2px;
6
- @value compensated: calc(height - compensate);
4
+ @value compensated: calc(calc(4 * var(--ring-unit)) - compensate);
7
5
 
8
6
  .tableWrapper {
9
7
  position: relative;
@@ -23,8 +21,8 @@
23
21
  composes: font-smaller-lower from "../global/global.css";
24
22
 
25
23
  box-sizing: border-box;
26
- height: calc(unit * 3);
27
- padding-right: calc(unit * 5);
24
+ height: calc(var(--ring-unit) * 3);
25
+ padding-right: calc(var(--ring-unit) * 5);
28
26
 
29
27
  text-align: left;
30
28
  white-space: nowrap;
@@ -35,12 +33,12 @@
35
33
  }
36
34
 
37
35
  .headerCell:first-child {
38
- padding-left: calc(unit * 4);
36
+ padding-left: calc(var(--ring-unit) * 4);
39
37
  }
40
38
 
41
39
  .headerCell:last-child {
42
40
  width: 100%;
43
- padding-right: calc(unit * 4);
41
+ padding-right: calc(var(--ring-unit) * 4);
44
42
  }
45
43
 
46
44
  .headerCell:first-child:only-child {
@@ -76,7 +74,7 @@
76
74
  }
77
75
 
78
76
  .caption {
79
- padding-top: unit;
77
+ padding-top: var(--ring-unit);
80
78
  padding-bottom: 6px;
81
79
 
82
80
  color: var(--ring-text-color);
@@ -152,15 +150,15 @@
152
150
 
153
151
  min-width: 0;
154
152
 
155
- height: height;
153
+ height: calc(4 * var(--ring-unit));
156
154
  padding: 0;
157
- padding-right: calc(unit * 5);
155
+ padding-right: calc(var(--ring-unit) * 5);
158
156
 
159
157
  color: var(--ring-text-color);
160
158
  }
161
159
 
162
160
  .cell:first-child {
163
- padding-left: calc(unit * 4);
161
+ padding-left: calc(var(--ring-unit) * 4);
164
162
  }
165
163
 
166
164
  .cell:last-child {
@@ -169,12 +167,12 @@
169
167
  /* Markup hack, allows cell to have content which is wider than cell and collapses it */
170
168
 
171
169
  max-width: 0;
172
- padding-right: calc(unit * 4);
170
+ padding-right: calc(var(--ring-unit) * 4);
173
171
  }
174
172
 
175
173
  .cell:first-child {
176
- min-width: calc(unit * 37);
177
- max-width: calc(unit * 77);
174
+ min-width: calc(var(--ring-unit) * 37);
175
+ max-width: calc(var(--ring-unit) * 77);
178
176
  }
179
177
 
180
178
  .cell:first-child:only-child {
@@ -207,7 +205,7 @@
207
205
 
208
206
  .dragHandle {
209
207
  top: top;
210
- left: calc(-2 * unit);
208
+ left: calc(-2 * var(--ring-unit));
211
209
 
212
210
  cursor: grab;
213
211
 
@@ -218,7 +216,7 @@
218
216
  .dragHandle.dragHandle {
219
217
  position: absolute;
220
218
 
221
- height: calc(height - top);
219
+ height: calc(calc(4 * var(--ring-unit)) - top);
222
220
  padding: 0;
223
221
  }
224
222
 
@@ -228,7 +226,7 @@
228
226
  }
229
227
 
230
228
  .rowCollapseExpandButton {
231
- padding-right: calc(unit / 2);
229
+ padding-right: calc(var(--ring-unit) / 2);
232
230
  padding-left: 7px;
233
231
  }
234
232
 
@@ -1,7 +1,5 @@
1
1
  @import "./table-legacy__toolbar.css";
2
2
 
3
- @value unit from "../global/global.css";
4
-
5
3
  :global(.ring-table) {
6
4
  width: 100%;
7
5
 
@@ -32,7 +30,7 @@
32
30
 
33
31
  display: table-cell;
34
32
 
35
- padding: 0 unit;
33
+ padding: 0 var(--ring-unit);
36
34
 
37
35
  text-align: left;
38
36
  white-space: nowrap;
@@ -51,7 +49,7 @@
51
49
  }
52
50
 
53
51
  :global(.ring-table__title:first-child) {
54
- padding-left: calc(unit * 4);
52
+ padding-left: calc(var(--ring-unit) * 4);
55
53
  }
56
54
 
57
55
  /* Have to emulate right border because of Fx weird bug —
@@ -79,7 +77,7 @@
79
77
  }
80
78
 
81
79
  :global(.ring-table__title_nested) {
82
- padding-left: calc(unit * 5);
80
+ padding-left: calc(var(--ring-unit) * 5);
83
81
  }
84
82
 
85
83
  /* fix header checkbox position in nested table */
@@ -96,7 +94,7 @@
96
94
  width: 12px;
97
95
  height: 9px;
98
96
 
99
- margin-left: calc(unit * 2);
97
+ margin-left: calc(var(--ring-unit) * 2);
100
98
  padding-bottom: 21px;
101
99
 
102
100
  cursor: pointer;
@@ -129,7 +127,7 @@
129
127
  }
130
128
 
131
129
  :global(.ring-table__column_selector) {
132
- min-width: calc(3 * unit);
130
+ min-width: calc(3 * var(--ring-unit));
133
131
  padding: 0 !important;
134
132
 
135
133
  text-align: center;
@@ -138,13 +136,13 @@
138
136
  :global(.ring-table__selector) {
139
137
  display: inline-block;
140
138
 
141
- margin: 0 0 0 calc(unit / 2);
139
+ margin: 0 0 0 calc(var(--ring-unit) / 2);
142
140
  }
143
141
 
144
142
  :global(.ring-table__column) {
145
143
  display: table-cell;
146
144
 
147
- padding: calc(unit - 2px) unit;
145
+ padding: calc(var(--ring-unit) - 2px) var(--ring-unit);
148
146
 
149
147
  vertical-align: middle;
150
148
  white-space: nowrap;
@@ -162,7 +160,7 @@
162
160
  }
163
161
 
164
162
  :global(.ring-table__column:first-child) {
165
- padding-left: calc(4 * unit);
163
+ padding-left: calc(4 * var(--ring-unit));
166
164
  }
167
165
 
168
166
  :global(.ring-table__column.ring-table__column_gap) {
@@ -172,7 +170,7 @@
172
170
 
173
171
  /* Combined class is required here for specificity */
174
172
  :global(.ring-table__column.ring-table__column_toggle) {
175
- width: calc(unit * 2);
173
+ width: calc(var(--ring-unit) * 2);
176
174
  padding: 0;
177
175
 
178
176
  text-align: right;
@@ -201,7 +199,7 @@
201
199
  }
202
200
 
203
201
  :global(.ring-table__column_gap) {
204
- padding-left: calc(unit * 2) !important;
202
+ padding-left: calc(var(--ring-unit) * 2) !important;
205
203
  }
206
204
 
207
205
  :global(.ring-table__column-title) {
@@ -209,13 +207,13 @@
209
207
  }
210
208
 
211
209
  :global(.ring-table__column_wide) {
212
- min-width: calc(10 * unit);
210
+ min-width: calc(10 * var(--ring-unit));
213
211
  }
214
212
 
215
213
  :global(.ring-table__column_limited) {
216
214
  overflow: hidden;
217
215
 
218
- max-width: calc(50 * unit);
216
+ max-width: calc(50 * var(--ring-unit));
219
217
 
220
218
  white-space: nowrap;
221
219
  text-overflow: ellipsis;
@@ -232,7 +230,7 @@
232
230
  }
233
231
 
234
232
  :global(.ring-table__column_narrow) {
235
- min-width: calc(3 * unit);
233
+ min-width: calc(3 * var(--ring-unit));
236
234
  padding: 0 !important;
237
235
  }
238
236
 
@@ -244,7 +242,7 @@
244
242
  display: table-row;
245
243
 
246
244
  width: 100%;
247
- height: calc(5 * unit);
245
+ height: calc(5 * var(--ring-unit));
248
246
  }
249
247
 
250
248
  :global(.ring-table__row .ring-table__row_ghost) {
@@ -294,7 +292,7 @@
294
292
  }
295
293
 
296
294
  :global(.ring-table__description) {
297
- margin-left: unit;
295
+ margin-left: var(--ring-unit);
298
296
 
299
297
  color: var(--ring-secondary-color);
300
298
 
@@ -302,13 +300,13 @@
302
300
  }
303
301
 
304
302
  :global(.ring-table__avatar) {
305
- width: calc(3 * unit);
306
- height: calc(3 * unit + 3px); /* If avatar is missing */
303
+ width: calc(3 * var(--ring-unit));
304
+ height: calc(3 * var(--ring-unit) + 3px); /* If avatar is missing */
307
305
  }
308
306
 
309
307
  :global(.ring-table__avatar-img) {
310
- width: calc(3 * unit);
311
- height: calc(3 * unit);
308
+ width: calc(3 * var(--ring-unit));
309
+ height: calc(3 * var(--ring-unit));
312
310
  }
313
311
 
314
312
  :global(.ring-table__header_sticky) {
@@ -325,17 +323,17 @@
325
323
  }
326
324
 
327
325
  :global(.table__pager) {
328
- padding: calc(4 * unit) calc(4 * unit);
326
+ padding: calc(4 * var(--ring-unit)) calc(4 * var(--ring-unit));
329
327
  }
330
328
 
331
329
  :global(.table__pager-links) {
332
- margin-bottom: calc(2 * unit);
330
+ margin-bottom: calc(2 * var(--ring-unit));
333
331
  }
334
332
 
335
333
  :global(.table__pager-link) {
336
334
  display: inline-block;
337
335
 
338
- margin-right: calc(4 * unit);
336
+ margin-right: calc(4 * var(--ring-unit));
339
337
  }
340
338
 
341
339
  :global(.table__pager-link_disabled) {
@@ -1,5 +1,3 @@
1
- @value unit from "../global/global.css";
2
-
3
1
  :global(.ring-table__toolbar) {
4
2
  background: inherit;
5
3
  }
@@ -9,9 +7,9 @@
9
7
 
10
8
  display: block;
11
9
 
12
- min-height: calc(unit * 3);
10
+ min-height: calc(var(--ring-unit) * 3);
13
11
 
14
- padding: calc(unit * 2) calc(unit * 4);
12
+ padding: calc(var(--ring-unit) * 2) calc(var(--ring-unit) * 4);
15
13
 
16
14
  white-space: initial;
17
15
 
@@ -4,7 +4,6 @@
4
4
  @import "../link/link.css";
5
5
 
6
6
  @value dark from "../global/variables_dark.css";
7
- @value unit from "../global/global.css";
8
7
  @value line-shadow: inset 0 -1px 0 0;
9
8
  @value selected-line-shadow: inset 0 -2px 0 0;
10
9
 
@@ -24,7 +23,7 @@
24
23
  .titles {
25
24
  display: inline-block;
26
25
 
27
- margin-bottom: calc(unit * 2);
26
+ margin-bottom: calc(var(--ring-unit) * 2);
28
27
  }
29
28
 
30
29
  .titles {
@@ -48,7 +47,7 @@
48
47
  border-radius: 0;
49
48
  background: none;
50
49
 
51
- line-height: calc(unit * 4);
50
+ line-height: calc(var(--ring-unit) * 4);
52
51
 
53
52
  &:hover,
54
53
  &:active {
@@ -82,7 +81,7 @@
82
81
  }
83
82
 
84
83
  .title + .title {
85
- margin-left: calc(unit * 3);
84
+ margin-left: calc(var(--ring-unit) * 3);
86
85
  }
87
86
 
88
87
  .title[disabled] {