colibri-ui 0.7.123 → 0.7.125

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.
@@ -25,7 +25,7 @@
25
25
 
26
26
  .input-date {
27
27
  position: relative;
28
- width: 100px;
28
+ flex: 3;
29
29
  }
30
30
 
31
31
  .input-date:focus-within {
@@ -44,7 +44,7 @@ var TimePicker = function TimePicker(_a) {
44
44
  });
45
45
  }, [baseOptions, interval]);
46
46
  return /*#__PURE__*/React__default.default.createElement(index$1.default, {
47
- className: clx(className),
47
+ className: clx(className, styles__default.default.select),
48
48
  options: options,
49
49
  fontSize: 14,
50
50
  customInputRoot: /*#__PURE__*/React__default.default.createElement("div", {
@@ -60,6 +60,7 @@ var TimePicker = function TimePicker(_a) {
60
60
  readOnly: true,
61
61
  value: time
62
62
  })),
63
+ value: time,
63
64
  onChange: function onChange(time) {
64
65
  return setTime(time);
65
66
  }
@@ -1,7 +1,9 @@
1
1
  .input-container {
2
2
  border-top-left-radius: 0.375rem;
3
3
  border-bottom-left-radius: 0.375rem;
4
- border: 1px solid var(--palette-bg-3);
4
+ border-top: 1px solid var(--palette-bg-3);
5
+ border-left: 1px solid var(--palette-bg-3);
6
+ border-bottom: 1px solid var(--palette-bg-3);
5
7
  display: flex;
6
8
  justify-content: center;
7
9
  align-items: center;
@@ -22,13 +24,35 @@
22
24
  }
23
25
 
24
26
  .input-time {
25
- width: 89px;
27
+ position: relative;
28
+ }
29
+
30
+ .input-time::before {
31
+ content: "";
32
+ position: absolute;
33
+ height: 100%;
34
+ width: 1px;
35
+ background-color: var(--palette-bg-3);
36
+ right: 0;
26
37
  }
27
38
 
28
39
  .input-time:focus-within {
29
- border: 1px solid var(--palette-primary-3);
30
- border-bottom-right-radius: 0;
31
- border-top-right-radius: 0;
40
+ border-top: 1px solid var(--palette-primary-3);
41
+ border-left: 1px solid var(--palette-primary-3);
42
+ border-bottom: 1px solid var(--palette-primary-3);
32
43
  box-shadow: 0 0 0 2px var(--palette-primary-2);
33
44
  z-index: 2;
45
+ }
46
+
47
+ .input-time:focus-within::before {
48
+ content: "";
49
+ position: absolute;
50
+ height: 100%;
51
+ width: 1px;
52
+ background-color: var(--palette-primary-3);
53
+ right: 0;
54
+ }
55
+
56
+ .select {
57
+ flex: 2;
34
58
  }
@@ -25,7 +25,7 @@
25
25
 
26
26
  .input-date {
27
27
  position: relative;
28
- width: 100px;
28
+ flex: 3;
29
29
  }
30
30
 
31
31
  .input-date:focus-within {
@@ -34,7 +34,7 @@ var TimePicker = function TimePicker(_a) {
34
34
  });
35
35
  }, [baseOptions, interval]);
36
36
  return /*#__PURE__*/React__default.createElement(Select, {
37
- className: clx(className),
37
+ className: clx(className, styles.select),
38
38
  options: options,
39
39
  fontSize: 14,
40
40
  customInputRoot: /*#__PURE__*/React__default.createElement("div", {
@@ -50,6 +50,7 @@ var TimePicker = function TimePicker(_a) {
50
50
  readOnly: true,
51
51
  value: time
52
52
  })),
53
+ value: time,
53
54
  onChange: function onChange(time) {
54
55
  return setTime(time);
55
56
  }
@@ -1,7 +1,9 @@
1
1
  .input-container {
2
2
  border-top-left-radius: 0.375rem;
3
3
  border-bottom-left-radius: 0.375rem;
4
- border: 1px solid var(--palette-bg-3);
4
+ border-top: 1px solid var(--palette-bg-3);
5
+ border-left: 1px solid var(--palette-bg-3);
6
+ border-bottom: 1px solid var(--palette-bg-3);
5
7
  display: flex;
6
8
  justify-content: center;
7
9
  align-items: center;
@@ -22,13 +24,35 @@
22
24
  }
23
25
 
24
26
  .input-time {
25
- width: 89px;
27
+ position: relative;
28
+ }
29
+
30
+ .input-time::before {
31
+ content: "";
32
+ position: absolute;
33
+ height: 100%;
34
+ width: 1px;
35
+ background-color: var(--palette-bg-3);
36
+ right: 0;
26
37
  }
27
38
 
28
39
  .input-time:focus-within {
29
- border: 1px solid var(--palette-primary-3);
30
- border-bottom-right-radius: 0;
31
- border-top-right-radius: 0;
40
+ border-top: 1px solid var(--palette-primary-3);
41
+ border-left: 1px solid var(--palette-primary-3);
42
+ border-bottom: 1px solid var(--palette-primary-3);
32
43
  box-shadow: 0 0 0 2px var(--palette-primary-2);
33
44
  z-index: 2;
45
+ }
46
+
47
+ .input-time:focus-within::before {
48
+ content: "";
49
+ position: absolute;
50
+ height: 100%;
51
+ width: 1px;
52
+ background-color: var(--palette-primary-3);
53
+ right: 0;
54
+ }
55
+
56
+ .select {
57
+ flex: 2;
34
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "colibri-ui",
3
- "version": "0.7.123",
3
+ "version": "0.7.125",
4
4
  "description": "React UI components library",
5
5
  "main": "index.js",
6
6
  "scripts": {},