@semcore/inline-input 4.17.0 → 4.17.2-prerelease.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.
- package/CHANGELOG.md +13 -1
- package/lib/cjs/InlineInput.js +227 -45
- package/lib/cjs/InlineInput.js.map +1 -1
- package/lib/cjs/style/inline-input.shadow.css +72 -0
- package/lib/es6/InlineInput.js +229 -45
- package/lib/es6/InlineInput.js.map +1 -1
- package/lib/es6/style/inline-input.shadow.css +72 -0
- package/package.json +10 -7
|
@@ -47,6 +47,16 @@ SValue {
|
|
|
47
47
|
&[disabled] {
|
|
48
48
|
user-select: none;
|
|
49
49
|
}
|
|
50
|
+
|
|
51
|
+
&::-webkit-outer-spin-button,
|
|
52
|
+
&::-webkit-inner-spin-button {
|
|
53
|
+
-webkit-appearance: none;
|
|
54
|
+
margin: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&[type='number'] {
|
|
58
|
+
-moz-appearance: textfield;
|
|
59
|
+
}
|
|
50
60
|
}
|
|
51
61
|
|
|
52
62
|
SUnderline {
|
|
@@ -115,3 +125,65 @@ SInlineInput[state='invalid'][focused] SUnderline {
|
|
|
115
125
|
border-bottom-color: var(--intergalactic-border-critical-active, #d1002f);
|
|
116
126
|
box-shadow: var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px rgba(255, 73, 83, 0.5));
|
|
117
127
|
}
|
|
128
|
+
|
|
129
|
+
SValue:focus ~ SControls {
|
|
130
|
+
display: flex;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
SControls {
|
|
134
|
+
display: none;
|
|
135
|
+
flex-flow: column;
|
|
136
|
+
justify-content: center;
|
|
137
|
+
height: 100%;
|
|
138
|
+
box-sizing: border-box;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
SControls[showControls] {
|
|
142
|
+
display: flex;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
SUp,
|
|
146
|
+
SDown {
|
|
147
|
+
padding: 0;
|
|
148
|
+
width: 16px;
|
|
149
|
+
color: var(--intergalactic-icon-secondary-neutral, #a9abb6);
|
|
150
|
+
box-sizing: border-box;
|
|
151
|
+
display: inline-flex;
|
|
152
|
+
justify-content: center;
|
|
153
|
+
border: none;
|
|
154
|
+
background: none;
|
|
155
|
+
cursor: pointer;
|
|
156
|
+
|
|
157
|
+
&:focus {
|
|
158
|
+
outline: none;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&:hover {
|
|
162
|
+
color: var(--intergalactic-icon-secondary-neutral-hover-active, #878992);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
SUp {
|
|
167
|
+
/* disable-tokens-validator */
|
|
168
|
+
padding-bottom: 1px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
SDown {
|
|
172
|
+
/* disable-tokens-validator */
|
|
173
|
+
padding-top: 1px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
SValue[disabled] ~ SControls {
|
|
177
|
+
opacity: var(--intergalactic-disabled-opacity, 0.3);
|
|
178
|
+
cursor: default;
|
|
179
|
+
pointer-events: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
SValueHidden {
|
|
183
|
+
position: absolute;
|
|
184
|
+
top: 0;
|
|
185
|
+
width: 1px;
|
|
186
|
+
height: 1px;
|
|
187
|
+
padding: 0;
|
|
188
|
+
overflow: hidden;
|
|
189
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/inline-input",
|
|
3
3
|
"description": "Semrush Input Component",
|
|
4
|
-
"version": "4.17.
|
|
4
|
+
"version": "4.17.2-prerelease.1",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -9,11 +9,14 @@
|
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@semcore/flex-box": "5.
|
|
13
|
-
"@semcore/icon": "4.
|
|
14
|
-
"@semcore/spin": "5.
|
|
15
|
-
"@semcore/tooltip": "6.10.1",
|
|
16
|
-
"@semcore/utils": "4.
|
|
12
|
+
"@semcore/flex-box": "5.11.0-prerelease.1",
|
|
13
|
+
"@semcore/icon": "4.17.0-prerelease.1",
|
|
14
|
+
"@semcore/spin": "5.11.0-prerelease.1",
|
|
15
|
+
"@semcore/tooltip": "6.10.4-prerelease.1",
|
|
16
|
+
"@semcore/utils": "4.13.0-prerelease.1",
|
|
17
|
+
"@semcore/input-number": "5.13.0-prerelease.1",
|
|
18
|
+
"@semcore/input": "4.13.0-prerelease.1",
|
|
19
|
+
"@semcore/core": "2.10.0-prerelease.1"
|
|
17
20
|
},
|
|
18
21
|
"devDependencies": {
|
|
19
22
|
"@types/react": "18.0.21",
|
|
@@ -23,7 +26,7 @@
|
|
|
23
26
|
"@semcore/tooltip": "*"
|
|
24
27
|
},
|
|
25
28
|
"peerDependencies": {
|
|
26
|
-
"@semcore/core": "^2.
|
|
29
|
+
"@semcore/core": "^2.10.0-prerelease.1",
|
|
27
30
|
"react": "16.8 - 18",
|
|
28
31
|
"react-dom": "16.8 - 18"
|
|
29
32
|
},
|