@semcore/input 3.5.19 → 3.5.21
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.
- package/CHANGELOG.md +13 -1
- package/lib/cjs/Input.js +16 -16
- package/lib/cjs/style/input.shadow.css +3 -3
- package/lib/es6/Input.js +16 -16
- package/lib/es6/style/input.shadow.css +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [3.5.21] - 2023-04-24
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/utils` [3.50.3 ~> 3.50.4], `@semcore/flex-box` [4.7.19 ~> 4.7.20]).
|
|
10
|
+
|
|
11
|
+
## [3.5.20] - 2023-04-14
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Fixed outline styles so that they work even if the `Value` is wrapped in other elements.
|
|
16
|
+
|
|
5
17
|
## [3.5.19] - 2023-04-14
|
|
6
18
|
|
|
7
19
|
### Changed
|
|
8
20
|
|
|
9
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.
|
|
21
|
+
- Version patch update due to children dependencies update (`@semcore/utils` [3.49.1 ~> 3.50.2], `@semcore/flex-box` [4.7.17 ~> 4.7.19]).
|
|
10
22
|
|
|
11
23
|
## [3.5.8] - 2023-02-09
|
|
12
24
|
|
package/lib/cjs/Input.js
CHANGED
|
@@ -20,22 +20,22 @@ var _neighborLocation = _interopRequireDefault(require("@semcore/neighbor-locati
|
|
|
20
20
|
var _autoFocusEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/autoFocusEnhance"));
|
|
21
21
|
var _keyboardFocusEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/keyboardFocusEnhance"));
|
|
22
22
|
/*__reshadow-styles__:"./style/input.shadow.css"*/
|
|
23
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
24
|
-
"__SInput": "
|
|
25
|
-
"__SOutline": "
|
|
26
|
-
"__SValue": "
|
|
27
|
-
"__SAddon": "
|
|
28
|
-
"_interactive": "
|
|
29
|
-
"_disabled": "
|
|
30
|
-
"_size_m": "
|
|
31
|
-
"_size_l": "
|
|
32
|
-
"_focused": "
|
|
33
|
-
"_state_normal": "
|
|
34
|
-
"_state_valid": "
|
|
35
|
-
"_state_invalid": "
|
|
36
|
-
"_neighborLocation_right": "
|
|
37
|
-
"_neighborLocation_both": "
|
|
38
|
-
"_neighborLocation_left": "
|
|
23
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SInput_1nha7_gg_{display:inline-flex;width:100%;align-items:center;position:relative;z-index:0;vertical-align:middle;padding:1px;box-sizing:border-box}.___SInput_1nha7_gg_ input:-webkit-autofill{border-radius:var(--intergalactic-control-rounded, 6px);-webkit-box-shadow:0 0 0 30px #faffbd inset}.___SInput_1nha7_gg_ input:-webkit-autofill~.___SOutline_1nha7_gg_{background-color:#faffbd}.___SValue_1nha7_gg_{min-width:0;width:100%;height:100%;padding:0;border:0;box-sizing:border-box;color:var(--intergalactic-text-primary, #191b23);font-size:inherit;text-overflow:ellipsis;font-family:inherit;background:0 0}.___SValue_1nha7_gg_:focus{outline:0}.___SValue_1nha7_gg_::-moz-placeholder{color:var(--intergalactic-text-placeholder, #a9abb6)}.___SValue_1nha7_gg_::placeholder{color:var(--intergalactic-text-placeholder, #a9abb6)}.___SValue_1nha7_gg_:not(:disabled):-moz-read-only~.___SOutline_1nha7_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}.___SValue_1nha7_gg_:not(:disabled):read-only~.___SOutline_1nha7_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}.___SValue_1nha7_gg_:disabled{-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SValue_1nha7_gg_:disabled~.___SOutline_1nha7_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SOutline_1nha7_gg_{position:absolute;top:0;right:0;bottom:0;left:0;border:1px solid;border-radius:var(--intergalactic-control-rounded, 6px);z-index:-1;background:var(--intergalactic-bg-primary-neutral, #ffffff)}.___SAddon_1nha7_gg_{display:inline-flex;justify-content:center;align-items:center;flex:0 0 auto;padding:0 var(--intergalactic-spacing-2x, 8px);height:100%;color:var(--intergalactic-icon-secondary-neutral, #a9abb6)}.___SAddon_1nha7_gg_.__interactive_1nha7_gg_{cursor:pointer}@media (hover:hover){.___SAddon_1nha7_gg_.__interactive_1nha7_gg_:hover{color:var(--intergalactic-icon-secondary-neutral-hover-active, #8a8e9b)}}.___SAddon_1nha7_gg_.__disabled_1nha7_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SInput_1nha7_gg_._size_m_1nha7_gg_{font-size:var(--intergalactic-fs-200, 14px);height:var(--intergalactic-form-control-m, 28px)}.___SValue_1nha7_gg_._size_l_1nha7_gg_,.___SValue_1nha7_gg_._size_m_1nha7_gg_{padding:0 var(--intergalactic-spacing-2x, 8px)}.___SInput_1nha7_gg_._size_l_1nha7_gg_{font-size:var(--intergalactic-fs-300, 16px);height:var(--intergalactic-form-control-l, 40px);padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-1x, 4px)}.___SInput_1nha7_gg_.__focused_1nha7_gg_{z-index:1}.___SInput_1nha7_gg_._state_normal_1nha7_gg_ .___SOutline_1nha7_gg_{border-color:var(--intergalactic-border-primary, #c4c7cf)}.___SInput_1nha7_gg_._state_normal_1nha7_gg_.__focused_1nha7_gg_ .___SOutline_1nha7_gg_{border-color:var(--intergalactic-border-info-active, #006dca);box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.3))}.___SInput_1nha7_gg_._state_valid_1nha7_gg_ .___SOutline_1nha7_gg_{border-color:var(--intergalactic-border-success, #59ddaa)}.___SInput_1nha7_gg_._state_valid_1nha7_gg_.__focused_1nha7_gg_ .___SOutline_1nha7_gg_{border-color:var(--intergalactic-border-success-active, #007c65);box-shadow:var(--intergalactic-keyboard-focus-valid, 0px 0px 0px 3px rgba(0, 159, 129, 0.3))}.___SInput_1nha7_gg_._state_invalid_1nha7_gg_ .___SOutline_1nha7_gg_{border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SInput_1nha7_gg_._state_invalid_1nha7_gg_.__focused_1nha7_gg_ .___SOutline_1nha7_gg_{border-color:var(--intergalactic-border-critical-active, #d1002f);box-shadow:var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px rgba(255, 73, 83, 0.3))}.___SInput_1nha7_gg_._neighborLocation_right_1nha7_gg_ .___SOutline_1nha7_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SInput_1nha7_gg_._neighborLocation_both_1nha7_gg_ .___SOutline_1nha7_gg_{border-radius:0;border-left:none}.___SInput_1nha7_gg_._neighborLocation_left_1nha7_gg_ .___SOutline_1nha7_gg_{border-top-left-radius:0;border-bottom-left-radius:0;border-left:none}.___SValue_1nha7_gg_._neighborLocation_right_1nha7_gg_{padding-right:0}.___SValue_1nha7_gg_._neighborLocation_both_1nha7_gg_{padding-left:0;padding-right:0}.___SValue_1nha7_gg_._neighborLocation_left_1nha7_gg_{padding-left:0}" /*__inner_css_end__*/, "1nha7_gg_") /*__reshadow_css_end__*/, {
|
|
24
|
+
"__SInput": "___SInput_1nha7_gg_",
|
|
25
|
+
"__SOutline": "___SOutline_1nha7_gg_",
|
|
26
|
+
"__SValue": "___SValue_1nha7_gg_",
|
|
27
|
+
"__SAddon": "___SAddon_1nha7_gg_",
|
|
28
|
+
"_interactive": "__interactive_1nha7_gg_",
|
|
29
|
+
"_disabled": "__disabled_1nha7_gg_",
|
|
30
|
+
"_size_m": "_size_m_1nha7_gg_",
|
|
31
|
+
"_size_l": "_size_l_1nha7_gg_",
|
|
32
|
+
"_focused": "__focused_1nha7_gg_",
|
|
33
|
+
"_state_normal": "_state_normal_1nha7_gg_",
|
|
34
|
+
"_state_valid": "_state_valid_1nha7_gg_",
|
|
35
|
+
"_state_invalid": "_state_invalid_1nha7_gg_",
|
|
36
|
+
"_neighborLocation_right": "_neighborLocation_right_1nha7_gg_",
|
|
37
|
+
"_neighborLocation_both": "_neighborLocation_both_1nha7_gg_",
|
|
38
|
+
"_neighborLocation_left": "_neighborLocation_left_1nha7_gg_"
|
|
39
39
|
});
|
|
40
40
|
var Input = /*#__PURE__*/function (_Component) {
|
|
41
41
|
(0, _inherits2["default"])(Input, _Component);
|
|
@@ -119,7 +119,7 @@ SInput[state='normal'] {
|
|
|
119
119
|
border-color: var(--intergalactic-border-primary, #c4c7cf);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
&
|
|
122
|
+
&[focused] SOutline {
|
|
123
123
|
border-color: var(--intergalactic-border-info-active, #006dca);
|
|
124
124
|
box-shadow: var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.3));
|
|
125
125
|
}
|
|
@@ -129,7 +129,7 @@ SInput[state='valid'] {
|
|
|
129
129
|
border-color: var(--intergalactic-border-success, #59ddaa);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
&
|
|
132
|
+
&[focused] SOutline {
|
|
133
133
|
border-color: var(--intergalactic-border-success-active, #007c65);
|
|
134
134
|
box-shadow: var(--intergalactic-keyboard-focus-valid, 0px 0px 0px 3px rgba(0, 159, 129, 0.3));
|
|
135
135
|
}
|
|
@@ -139,7 +139,7 @@ SInput[state='invalid'] {
|
|
|
139
139
|
border-color: var(--intergalactic-border-critical, #ffaeb5);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
&
|
|
142
|
+
&[focused] SOutline {
|
|
143
143
|
border-color: var(--intergalactic-border-critical-active, #d1002f);
|
|
144
144
|
box-shadow: var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px rgba(255, 73, 83, 0.3));
|
|
145
145
|
}
|
package/lib/es6/Input.js
CHANGED
|
@@ -16,22 +16,22 @@ import NeighborLocation from '@semcore/neighbor-location';
|
|
|
16
16
|
import autoFocusEnhance from '@semcore/utils/lib/enhances/autoFocusEnhance';
|
|
17
17
|
import keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';
|
|
18
18
|
/*__reshadow-styles__:"./style/input.shadow.css"*/
|
|
19
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
20
|
-
"__SInput": "
|
|
21
|
-
"__SOutline": "
|
|
22
|
-
"__SValue": "
|
|
23
|
-
"__SAddon": "
|
|
24
|
-
"_interactive": "
|
|
25
|
-
"_disabled": "
|
|
26
|
-
"_size_m": "
|
|
27
|
-
"_size_l": "
|
|
28
|
-
"_focused": "
|
|
29
|
-
"_state_normal": "
|
|
30
|
-
"_state_valid": "
|
|
31
|
-
"_state_invalid": "
|
|
32
|
-
"_neighborLocation_right": "
|
|
33
|
-
"_neighborLocation_both": "
|
|
34
|
-
"_neighborLocation_left": "
|
|
19
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SInput_1nha7_gg_{display:inline-flex;width:100%;align-items:center;position:relative;z-index:0;vertical-align:middle;padding:1px;box-sizing:border-box}.___SInput_1nha7_gg_ input:-webkit-autofill{border-radius:var(--intergalactic-control-rounded, 6px);-webkit-box-shadow:0 0 0 30px #faffbd inset}.___SInput_1nha7_gg_ input:-webkit-autofill~.___SOutline_1nha7_gg_{background-color:#faffbd}.___SValue_1nha7_gg_{min-width:0;width:100%;height:100%;padding:0;border:0;box-sizing:border-box;color:var(--intergalactic-text-primary, #191b23);font-size:inherit;text-overflow:ellipsis;font-family:inherit;background:0 0}.___SValue_1nha7_gg_:focus{outline:0}.___SValue_1nha7_gg_::-moz-placeholder{color:var(--intergalactic-text-placeholder, #a9abb6)}.___SValue_1nha7_gg_::placeholder{color:var(--intergalactic-text-placeholder, #a9abb6)}.___SValue_1nha7_gg_:not(:disabled):-moz-read-only~.___SOutline_1nha7_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}.___SValue_1nha7_gg_:not(:disabled):read-only~.___SOutline_1nha7_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}.___SValue_1nha7_gg_:disabled{-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SValue_1nha7_gg_:disabled~.___SOutline_1nha7_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SOutline_1nha7_gg_{position:absolute;top:0;right:0;bottom:0;left:0;border:1px solid;border-radius:var(--intergalactic-control-rounded, 6px);z-index:-1;background:var(--intergalactic-bg-primary-neutral, #ffffff)}.___SAddon_1nha7_gg_{display:inline-flex;justify-content:center;align-items:center;flex:0 0 auto;padding:0 var(--intergalactic-spacing-2x, 8px);height:100%;color:var(--intergalactic-icon-secondary-neutral, #a9abb6)}.___SAddon_1nha7_gg_.__interactive_1nha7_gg_{cursor:pointer}@media (hover:hover){.___SAddon_1nha7_gg_.__interactive_1nha7_gg_:hover{color:var(--intergalactic-icon-secondary-neutral-hover-active, #8a8e9b)}}.___SAddon_1nha7_gg_.__disabled_1nha7_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SInput_1nha7_gg_._size_m_1nha7_gg_{font-size:var(--intergalactic-fs-200, 14px);height:var(--intergalactic-form-control-m, 28px)}.___SValue_1nha7_gg_._size_l_1nha7_gg_,.___SValue_1nha7_gg_._size_m_1nha7_gg_{padding:0 var(--intergalactic-spacing-2x, 8px)}.___SInput_1nha7_gg_._size_l_1nha7_gg_{font-size:var(--intergalactic-fs-300, 16px);height:var(--intergalactic-form-control-l, 40px);padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-1x, 4px)}.___SInput_1nha7_gg_.__focused_1nha7_gg_{z-index:1}.___SInput_1nha7_gg_._state_normal_1nha7_gg_ .___SOutline_1nha7_gg_{border-color:var(--intergalactic-border-primary, #c4c7cf)}.___SInput_1nha7_gg_._state_normal_1nha7_gg_.__focused_1nha7_gg_ .___SOutline_1nha7_gg_{border-color:var(--intergalactic-border-info-active, #006dca);box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.3))}.___SInput_1nha7_gg_._state_valid_1nha7_gg_ .___SOutline_1nha7_gg_{border-color:var(--intergalactic-border-success, #59ddaa)}.___SInput_1nha7_gg_._state_valid_1nha7_gg_.__focused_1nha7_gg_ .___SOutline_1nha7_gg_{border-color:var(--intergalactic-border-success-active, #007c65);box-shadow:var(--intergalactic-keyboard-focus-valid, 0px 0px 0px 3px rgba(0, 159, 129, 0.3))}.___SInput_1nha7_gg_._state_invalid_1nha7_gg_ .___SOutline_1nha7_gg_{border-color:var(--intergalactic-border-critical, #ffaeb5)}.___SInput_1nha7_gg_._state_invalid_1nha7_gg_.__focused_1nha7_gg_ .___SOutline_1nha7_gg_{border-color:var(--intergalactic-border-critical-active, #d1002f);box-shadow:var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px rgba(255, 73, 83, 0.3))}.___SInput_1nha7_gg_._neighborLocation_right_1nha7_gg_ .___SOutline_1nha7_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SInput_1nha7_gg_._neighborLocation_both_1nha7_gg_ .___SOutline_1nha7_gg_{border-radius:0;border-left:none}.___SInput_1nha7_gg_._neighborLocation_left_1nha7_gg_ .___SOutline_1nha7_gg_{border-top-left-radius:0;border-bottom-left-radius:0;border-left:none}.___SValue_1nha7_gg_._neighborLocation_right_1nha7_gg_{padding-right:0}.___SValue_1nha7_gg_._neighborLocation_both_1nha7_gg_{padding-left:0;padding-right:0}.___SValue_1nha7_gg_._neighborLocation_left_1nha7_gg_{padding-left:0}" /*__inner_css_end__*/, "1nha7_gg_") /*__reshadow_css_end__*/, {
|
|
20
|
+
"__SInput": "___SInput_1nha7_gg_",
|
|
21
|
+
"__SOutline": "___SOutline_1nha7_gg_",
|
|
22
|
+
"__SValue": "___SValue_1nha7_gg_",
|
|
23
|
+
"__SAddon": "___SAddon_1nha7_gg_",
|
|
24
|
+
"_interactive": "__interactive_1nha7_gg_",
|
|
25
|
+
"_disabled": "__disabled_1nha7_gg_",
|
|
26
|
+
"_size_m": "_size_m_1nha7_gg_",
|
|
27
|
+
"_size_l": "_size_l_1nha7_gg_",
|
|
28
|
+
"_focused": "__focused_1nha7_gg_",
|
|
29
|
+
"_state_normal": "_state_normal_1nha7_gg_",
|
|
30
|
+
"_state_valid": "_state_valid_1nha7_gg_",
|
|
31
|
+
"_state_invalid": "_state_invalid_1nha7_gg_",
|
|
32
|
+
"_neighborLocation_right": "_neighborLocation_right_1nha7_gg_",
|
|
33
|
+
"_neighborLocation_both": "_neighborLocation_both_1nha7_gg_",
|
|
34
|
+
"_neighborLocation_left": "_neighborLocation_left_1nha7_gg_"
|
|
35
35
|
});
|
|
36
36
|
var Input = /*#__PURE__*/function (_Component) {
|
|
37
37
|
_inherits(Input, _Component);
|
|
@@ -119,7 +119,7 @@ SInput[state='normal'] {
|
|
|
119
119
|
border-color: var(--intergalactic-border-primary, #c4c7cf);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
&
|
|
122
|
+
&[focused] SOutline {
|
|
123
123
|
border-color: var(--intergalactic-border-info-active, #006dca);
|
|
124
124
|
box-shadow: var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.3));
|
|
125
125
|
}
|
|
@@ -129,7 +129,7 @@ SInput[state='valid'] {
|
|
|
129
129
|
border-color: var(--intergalactic-border-success, #59ddaa);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
&
|
|
132
|
+
&[focused] SOutline {
|
|
133
133
|
border-color: var(--intergalactic-border-success-active, #007c65);
|
|
134
134
|
box-shadow: var(--intergalactic-keyboard-focus-valid, 0px 0px 0px 3px rgba(0, 159, 129, 0.3));
|
|
135
135
|
}
|
|
@@ -139,7 +139,7 @@ SInput[state='invalid'] {
|
|
|
139
139
|
border-color: var(--intergalactic-border-critical, #ffaeb5);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
&
|
|
142
|
+
&[focused] SOutline {
|
|
143
143
|
border-color: var(--intergalactic-border-critical-active, #d1002f);
|
|
144
144
|
box-shadow: var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px rgba(255, 73, 83, 0.3));
|
|
145
145
|
}
|