@solcre-org/core-ui 2.12.14 → 2.12.16
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/assets/css/inc/components/chat-input.css +238 -0
- package/assets/css/inc/components/chat-layout.css +131 -0
- package/assets/css/main.css +2 -1
- package/fesm2022/solcre-org-core-ui.mjs +1295 -148
- package/fesm2022/solcre-org-core-ui.mjs.map +1 -1
- package/index.d.ts +388 -57
- package/package.json +1 -1
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
/* ******************************************** */
|
|
2
|
+
/** COMPONENT: CHAT INPUT
|
|
3
|
+
/* ******************************************** */
|
|
4
|
+
|
|
5
|
+
.c-chat-input{
|
|
6
|
+
--_color-main-hsl: var(--color-primary-400-hsl);
|
|
7
|
+
--_color-text-hsl: var(--color-neutral-800-hsl);
|
|
8
|
+
|
|
9
|
+
--_fz: var(--fz-100);
|
|
10
|
+
--_input-padd-y: 0.687em;
|
|
11
|
+
--_input-padd-x: 1.2em;
|
|
12
|
+
--_input-height: 3.8rem;
|
|
13
|
+
--_input-placeholder-color: hsl(from hsl(var(--_color-main-hsl)) h calc(s * 0.6) l / 0.5);
|
|
14
|
+
--_submit-color: var(--color-neutral-100);
|
|
15
|
+
--_br: 2em;
|
|
16
|
+
|
|
17
|
+
position: relative;
|
|
18
|
+
width: 100%;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: flex-end;
|
|
21
|
+
gap: 1rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.c-chat-input__textarea{
|
|
25
|
+
display: flex;
|
|
26
|
+
background-color: hsl(from hsl(var(--_color-main-hsl)) h s l / 0.1 );
|
|
27
|
+
padding-inline: var(--_input-padd-x);
|
|
28
|
+
border-radius: var(--_br);
|
|
29
|
+
align-items: flex-end;
|
|
30
|
+
gap: 1rem;
|
|
31
|
+
width: 100%;
|
|
32
|
+
font-size: var(--_fz);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.c-chat-input__textarea label{
|
|
36
|
+
flex-grow: 1;
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: row;
|
|
39
|
+
justify-content: flex-end;
|
|
40
|
+
align-items: flex-end;
|
|
41
|
+
position: relative;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.c-chat-input textarea{
|
|
45
|
+
display: block;
|
|
46
|
+
width: 100%;
|
|
47
|
+
color: hsl(from hsl(var(--_color-text-hsl)) h s l / 0.9 );
|
|
48
|
+
padding-block: var(--_input-padd-y);
|
|
49
|
+
padding-bottom: calc(var(--_input-padd-y) + var(--font-visual-correction-b));
|
|
50
|
+
|
|
51
|
+
min-height: var(--_input-height);
|
|
52
|
+
max-height: 30rem;
|
|
53
|
+
resize: none;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
overflow-y: auto;
|
|
56
|
+
/* box-sizing: border-box; */
|
|
57
|
+
transition: height 0.2s ease;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.js-chat-textarea-ghost {
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: 0;
|
|
63
|
+
left: -9999px;
|
|
64
|
+
visibility: hidden;
|
|
65
|
+
height: auto;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
white-space: pre-wrap;
|
|
68
|
+
word-wrap: break-word;
|
|
69
|
+
overflow-wrap: break-word;
|
|
70
|
+
pointer-events: none;
|
|
71
|
+
z-index: -1;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.c-chat-input__actions {
|
|
75
|
+
display: flex;
|
|
76
|
+
height: 100%;
|
|
77
|
+
align-items: center;
|
|
78
|
+
gap: 0.6em;
|
|
79
|
+
min-height: var(--_input-height);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.c-chat-input__actions > *{
|
|
83
|
+
color: hsl(from hsl(var(--_color-main-hsl)) h calc(s * 0.6) l / 0.8);
|
|
84
|
+
font-size: 1.2em;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.c-chat-input__submit{
|
|
88
|
+
display: inline-flex;
|
|
89
|
+
background-color: hsl(var(--_color-main-hsl));
|
|
90
|
+
color: var(--_submit-color);
|
|
91
|
+
width: var(--_input-height);
|
|
92
|
+
min-width: var(--_input-height);
|
|
93
|
+
height: var(--_input-height);
|
|
94
|
+
border-radius: 50%;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
font-size: var(--_fz);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.c-chat-input textarea::placeholder,
|
|
101
|
+
.c-chat-input textarea input::placeholder {
|
|
102
|
+
font-weight: 400;
|
|
103
|
+
color: var(--_input-placeholder-color);
|
|
104
|
+
font-style: italic;
|
|
105
|
+
/* Navegadores modernos */
|
|
106
|
+
opacity: 1;
|
|
107
|
+
/* Para que el color sea visible en Firefox */
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.c-chat-input textarea::-webkit-input-placeholder,
|
|
111
|
+
.c-chat-input textarea input::-webkit-input-placeholder {
|
|
112
|
+
font-weight: 400;
|
|
113
|
+
color: var(--_input-placeholder-color);
|
|
114
|
+
font-style: italic;
|
|
115
|
+
/* Chrome, Safari, Edge (antiguo) */
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.c-chat-input textarea:-moz-placeholder,
|
|
119
|
+
.c-chat-input textarea input:-moz-placeholder {
|
|
120
|
+
font-weight: 400;
|
|
121
|
+
color: var(--_input-placeholder-color);
|
|
122
|
+
font-style: italic;
|
|
123
|
+
/* Firefox 4-18 */
|
|
124
|
+
opacity: 1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.c-chat-input textarea::-moz-placeholder,
|
|
128
|
+
.c-chat-input textarea input::-moz-placeholder {
|
|
129
|
+
font-weight: 400;
|
|
130
|
+
color: var(--_input-placeholder-color);
|
|
131
|
+
font-style: italic;
|
|
132
|
+
/* Firefox 19+ */
|
|
133
|
+
opacity: 1;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.c-chat-input textarea:-ms-input-placeholder,
|
|
137
|
+
.c-chat-input textarea input:-ms-input-placeholder {
|
|
138
|
+
font-weight: 400;
|
|
139
|
+
color: var(--_input-placeholder-color);
|
|
140
|
+
font-style: italic;
|
|
141
|
+
/* Internet Explorer 10-11 */
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
/* ********************** MEDIA HOVER ********************** */
|
|
146
|
+
|
|
147
|
+
@media (hover: hover) {
|
|
148
|
+
|
|
149
|
+
.c-chat-input__submit:hover{
|
|
150
|
+
background-color: var(--color-hover);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.c-chat-input__actions > button:hover{
|
|
154
|
+
color: var(--color-hover);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
/* ********************** SHORT MOBILE ********************** */
|
|
161
|
+
|
|
162
|
+
@media (max-width: 22.4375rem) { /* 359px */
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
/* ********************** TALL MOBILE PORTRAIT ********************** */
|
|
170
|
+
|
|
171
|
+
@media (max-width: 47.9375rem) and (min-height: 45.625rem) { /* 767px, 730px */
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
/* ********************** MOBILE LANDSCAPE ********************** */
|
|
179
|
+
|
|
180
|
+
@media (orientation: landscape) and (min-width: 31.25rem) and (max-width: 47.9375rem) { /* 500px, 767px */
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
/* ********************** de Mobile a TABLET ********************** */
|
|
188
|
+
|
|
189
|
+
@media (min-width: 48rem) { /* 768px */
|
|
190
|
+
}
|
|
191
|
+
@media (min-width: 48rem) and (orientation: portrait) {
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
/* ********************** de Tablet a DESKTOP ********************** */
|
|
198
|
+
|
|
199
|
+
@media (min-width: 61.25rem) { /* 980px */
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
/* ********************** de Desktop a DESKTOP 2 ********************** */
|
|
206
|
+
|
|
207
|
+
@media (min-width: 75rem) { /* 1200px */
|
|
208
|
+
}
|
|
209
|
+
@media (min-width: 75rem) and (min-height: 45rem) { /* 1200, 720 */
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
/* ********************** de Desktop 2 a HD ********************** */
|
|
216
|
+
|
|
217
|
+
@media (min-width: 87.5rem) { /* 1400px */
|
|
218
|
+
}
|
|
219
|
+
@media (min-width: 87.5rem) and (min-height: 49.375rem) { /* 1400px, 790px */
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
/* ********************** de Hd a FULL HD ********************** */
|
|
226
|
+
|
|
227
|
+
@media (min-width: 100rem) { /* 1600px */
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
@media (min-width: 100rem) and (min-height: 49.375rem) { /* 1600px, 790px */
|
|
231
|
+
}
|
|
232
|
+
@media (min-width: 100rem) and (min-height: 56.25rem) { /* 1600px, 900px */
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
@media (min-width: 112.5rem) { /* 1800px */
|
|
236
|
+
}
|
|
237
|
+
@media (min-width: 112.5rem) and (min-height: 56.25rem) { /* 1800px, 900px */
|
|
238
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/* ******************************************** */
|
|
2
|
+
/** COMPONENT: CHAT LAYOUT
|
|
3
|
+
/* ******************************************** */
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
.c-chat-layout {
|
|
7
|
+
--_bottom-gap-x: 1.5rem;
|
|
8
|
+
--_bottom-py: 1.6rem;
|
|
9
|
+
--_bottom-min-height: 7rem;
|
|
10
|
+
--_sepatarion-y: 2.2rem;
|
|
11
|
+
--_separator-line-w: .1rem;
|
|
12
|
+
--_separator-line-color: var(--color-neutral-400);
|
|
13
|
+
--_holder-px: 3rem;
|
|
14
|
+
--_holder-py: 3.6rem;
|
|
15
|
+
|
|
16
|
+
position: relative;
|
|
17
|
+
display: grid;
|
|
18
|
+
grid-template-rows: 1fr auto;
|
|
19
|
+
grid-template-areas:
|
|
20
|
+
"chatbody"
|
|
21
|
+
"chatbottom";
|
|
22
|
+
align-content: space-between;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.c-chat-layout__body,
|
|
27
|
+
.c-chat-layout__bottom{
|
|
28
|
+
padding: var(--_holder-py) var(--_holder-px);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.c-chat-layout__body {
|
|
32
|
+
grid-area: chatbody;
|
|
33
|
+
position: relative;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
overflow-y: auto;
|
|
36
|
+
padding-block: calc(var(--_holder-py)*.5);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.c-chat-body{
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
flex-direction: column-reverse;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.c-chat-layout__bottom {
|
|
46
|
+
grid-area: chatbottom;
|
|
47
|
+
padding-block: var(--_bottom-py);
|
|
48
|
+
border-top: var(--_separator-line-w) solid var(--_separator-line-color);
|
|
49
|
+
height: fit-content;
|
|
50
|
+
min-height: var(--_bottom-min-height);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* ********************** SHORT MOBILE ********************** */
|
|
54
|
+
|
|
55
|
+
@media (max-width: 22.4375rem) { /* 359px */
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
/* ********************** TALL MOBILE PORTRAIT ********************** */
|
|
63
|
+
|
|
64
|
+
@media (max-width: 47.9375rem) and (min-height: 45.625rem) { /* 767px, 730px */
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/* ********************** MOBILE LANDSCAPE ********************** */
|
|
72
|
+
|
|
73
|
+
@media (orientation: landscape) and (min-width: 31.25rem) and (max-width: 47.9375rem) { /* 500px, 767px */
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/* ********************** de Mobile a TABLET ********************** */
|
|
81
|
+
|
|
82
|
+
@media (min-width: 48rem) { /* 768px */
|
|
83
|
+
}
|
|
84
|
+
@media (min-width: 48rem) and (orientation: portrait) {
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
/* ********************** de Tablet a DESKTOP ********************** */
|
|
91
|
+
|
|
92
|
+
@media (min-width: 61.25rem) { /* 980px */
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/* ********************** de Desktop a DESKTOP 2 ********************** */
|
|
99
|
+
|
|
100
|
+
@media (min-width: 75rem) { /* 1200px */
|
|
101
|
+
}
|
|
102
|
+
@media (min-width: 75rem) and (min-height: 45rem) { /* 1200, 720 */
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
/* ********************** de Desktop 2 a HD ********************** */
|
|
109
|
+
|
|
110
|
+
@media (min-width: 87.5rem) { /* 1400px */
|
|
111
|
+
}
|
|
112
|
+
@media (min-width: 87.5rem) and (min-height: 49.375rem) { /* 1400px, 790px */
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/* ********************** de Hd a FULL HD ********************** */
|
|
119
|
+
|
|
120
|
+
@media (min-width: 100rem) { /* 1600px */
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@media (min-width: 100rem) and (min-height: 49.375rem) { /* 1600px, 790px */
|
|
124
|
+
}
|
|
125
|
+
@media (min-width: 100rem) and (min-height: 56.25rem) { /* 1600px, 900px */
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@media (min-width: 112.5rem) { /* 1800px */
|
|
129
|
+
}
|
|
130
|
+
@media (min-width: 112.5rem) and (min-height: 56.25rem) { /* 1800px, 900px */
|
|
131
|
+
}
|
package/assets/css/main.css
CHANGED
|
@@ -69,7 +69,8 @@
|
|
|
69
69
|
/* ⭐️ */ @import url(inc/components/progressbar.css);
|
|
70
70
|
/* ✅ */ @import url(inc/components/image-carousel.css); /* !(new) */
|
|
71
71
|
/* ✅ */ @import url(inc/components/skeleton.css); /* !(new) */
|
|
72
|
-
|
|
72
|
+
/* ✅ */ @import url(inc/components/chat-layout.css);
|
|
73
|
+
/* ✅ */ @import url(inc/components/chat-input.css);
|
|
73
74
|
|
|
74
75
|
/* Utilities */
|
|
75
76
|
/* ✅ */ @import url(inc/utilities/headings.css);
|