@semcore/inline-input 3.0.10 → 3.0.13
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 +18 -0
- package/README.md +2 -2
- package/lib/cjs/InlineInput.js +67 -44
- package/lib/cjs/InlineInput.js.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/es6/InlineInput.js +67 -44
- package/lib/es6/InlineInput.js.map +1 -1
- package/lib/es6/index.js.map +1 -1
- package/package.json +1 -1
- package/src/InlineInput.tsx +0 -328
- package/src/index.d.ts +0 -163
- package/src/index.ts +0 -2
- package/src/style/inline-input.shadow.css +0 -118
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
@import '@semcore/utils/style/var.css';
|
|
2
|
-
|
|
3
|
-
SInlineInput {
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 100%;
|
|
7
|
-
align-items: center;
|
|
8
|
-
position: relative;
|
|
9
|
-
z-index: 0;
|
|
10
|
-
vertical-align: middle;
|
|
11
|
-
padding: 1px;
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
|
|
14
|
-
background-color: var(--white);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
SInlineInput[disabled] {
|
|
18
|
-
cursor: default;
|
|
19
|
-
pointer-events: none;
|
|
20
|
-
opacity: var(--disabled-opacity);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
SValue {
|
|
24
|
-
/* hack for firefox */
|
|
25
|
-
min-width: 0;
|
|
26
|
-
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 100%;
|
|
29
|
-
padding: 0px 4px;
|
|
30
|
-
border: none;
|
|
31
|
-
box-sizing: border-box;
|
|
32
|
-
color: var(--gray-800);
|
|
33
|
-
font-size: inherit;
|
|
34
|
-
line-height: 1.2;
|
|
35
|
-
text-overflow: ellipsis;
|
|
36
|
-
font-family: inherit;
|
|
37
|
-
background: transparent;
|
|
38
|
-
min-height: 1em;
|
|
39
|
-
|
|
40
|
-
&:focus {
|
|
41
|
-
outline: none;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&::placeholder {
|
|
45
|
-
color: var(--gray-300);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&[disabled] {
|
|
49
|
-
user-select: none;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
SUnderline {
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: row;
|
|
56
|
-
align-items: center;
|
|
57
|
-
flex-grow: 1;
|
|
58
|
-
width: 100%;
|
|
59
|
-
height: 100%;
|
|
60
|
-
min-height: 1em;
|
|
61
|
-
border: 1px solid transparent;
|
|
62
|
-
border-bottom: 1px solid var(--gray-200);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
SAddon {
|
|
66
|
-
display: inline-flex;
|
|
67
|
-
justify-content: center;
|
|
68
|
-
align-items: center;
|
|
69
|
-
flex: 0 0 auto;
|
|
70
|
-
height: 100%;
|
|
71
|
-
color: var(--gray-300);
|
|
72
|
-
padding: 0 4px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
SAddon[disabled] {
|
|
76
|
-
opacity: var(--disabled-opacity);
|
|
77
|
-
cursor: default;
|
|
78
|
-
pointer-events: none;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
SConfirmIcon {
|
|
82
|
-
color: var(--green-300);
|
|
83
|
-
cursor: pointer;
|
|
84
|
-
}
|
|
85
|
-
SConfirmIcon:hover {
|
|
86
|
-
color: var(--green-400);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
SCancelIcon {
|
|
90
|
-
color: var(--gray-300);
|
|
91
|
-
cursor: pointer;
|
|
92
|
-
}
|
|
93
|
-
SCancelIcon:hover {
|
|
94
|
-
color: var(--gray-400);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
SInlineInput[focused] {
|
|
98
|
-
z-index: 1;
|
|
99
|
-
}
|
|
100
|
-
SInlineInput[focused] SUnderline {
|
|
101
|
-
border-bottom-color: var(--blue-400);
|
|
102
|
-
box-shadow: var(--keyboard-focus);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
SInlineInput[state='valid'] SUnderline {
|
|
106
|
-
border-bottom-color: var(--green-200);
|
|
107
|
-
}
|
|
108
|
-
SInlineInput[state='valid'][focused] SUnderline {
|
|
109
|
-
border-bottom-color: var(--green-400);
|
|
110
|
-
box-shadow: var(--keyboard-focus-valid);
|
|
111
|
-
}
|
|
112
|
-
SInlineInput[state='invalid'] SUnderline {
|
|
113
|
-
border-bottom-color: var(--red-200);
|
|
114
|
-
}
|
|
115
|
-
SInlineInput[state='invalid'][focused] SUnderline {
|
|
116
|
-
border-bottom-color: var(--red-400);
|
|
117
|
-
box-shadow: var(--keyboard-focus-invalid);
|
|
118
|
-
}
|