@jetbrains/ring-ui 5.0.85 → 5.0.86

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.
@@ -1,7 +1,7 @@
1
1
  const idCounters = {};
2
2
  function generateSalt() {
3
3
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
4
- return (Number(new Date()) * Math.random()).toString(36).substring(0, 4);
4
+ return (Date.now() * Math.random()).toString(36).substring(0, 4);
5
5
  }
6
6
  const salt = generateSalt();
7
7
  export default function getUID(name) {
@@ -6,7 +6,10 @@
6
6
  .radio {
7
7
  position: relative;
8
8
 
9
- display: block;
9
+ display: flex;
10
+ flex-direction: row;
11
+
12
+ padding: 6px 0;
10
13
 
11
14
  text-align: left;
12
15
 
@@ -22,9 +25,9 @@
22
25
 
23
26
  .circle {
24
27
  position: relative;
25
- top: -2px;
28
+ top: 2px;
26
29
 
27
- display: inline-block;
30
+ flex-shrink: 0;
28
31
 
29
32
  box-sizing: border-box;
30
33
  width: radio-size;
@@ -32,7 +35,6 @@
32
35
 
33
36
  user-select: none;
34
37
  transition: border-color var(--ring-ease), box-shadow var(--ring-ease);
35
- vertical-align: middle;
36
38
  pointer-events: none;
37
39
 
38
40
  border: 1px solid var(--ring-borders-color);
@@ -119,5 +121,5 @@
119
121
  .label {
120
122
  margin-left: unit;
121
123
 
122
- line-height: calc(unit * 4);
124
+ line-height: var(--ring-line-height);
123
125
  }
@@ -1,7 +1,7 @@
1
1
  const idCounters = {};
2
2
  function generateSalt() {
3
3
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
4
- return (Number(new Date()) * Math.random()).toString(36).substring(0, 4);
4
+ return (Date.now() * Math.random()).toString(36).substring(0, 4);
5
5
  }
6
6
  const salt = generateSalt();
7
7
  function getUID(name) {