@appartmint/mint 2.5.0 → 2.6.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/dist/css/mint.css +212 -88
- package/dist/css/mint.css.map +1 -1
- package/dist/css/mint.min.css +1 -1
- package/dist/css/mint.min.css.map +1 -1
- package/dist/js/imports/abstract/attaches-events.d.ts +1 -1
- package/dist/js/imports/components/header.d.ts +10 -111
- package/dist/js/imports/components/header.d.ts.map +1 -1
- package/dist/js/imports/components/index.d.ts +1 -1
- package/dist/js/imports/components/index.d.ts.map +1 -1
- package/dist/js/imports/components/{tray.d.ts → panel.d.ts} +18 -14
- package/dist/js/imports/components/panel.d.ts.map +1 -0
- package/dist/js/index.js +74 -420
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.min.js +1 -1
- package/dist/js/index.min.js.map +1 -1
- package/package.json +1 -1
- package/src/scss/imports/components/partial/_chat.scss +131 -0
- package/src/scss/imports/components/partial/_header.scss +22 -103
- package/src/scss/imports/components/partial/_index.scss +1 -0
- package/src/scss/imports/components/widget/_button.scss +2 -0
- package/src/scss/imports/components/widget/_index.scss +2 -0
- package/src/scss/imports/components/widget/_menu.scss +0 -0
- package/src/scss/imports/components/widget/_panel.scss +100 -0
- package/src/scss/imports/global/_global.scss +1 -1
- package/dist/js/imports/components/tray.d.ts.map +0 -1
package/dist/css/mint.css
CHANGED
|
@@ -168,32 +168,9 @@
|
|
|
168
168
|
width: 100%;
|
|
169
169
|
color: var(--mint-header-fore);
|
|
170
170
|
background-color: var(--mint-header-back);
|
|
171
|
-
z-index:
|
|
171
|
+
z-index: 1000;
|
|
172
172
|
height: var(--mint-header-height);
|
|
173
173
|
}
|
|
174
|
-
#mint-header.mint-right #mint-wrapper {
|
|
175
|
-
top: var(--mint-header-height);
|
|
176
|
-
right: -100%;
|
|
177
|
-
left: unset;
|
|
178
|
-
}
|
|
179
|
-
#mint-header.mint-right #mint-wrapper.mint-open {
|
|
180
|
-
right: 0;
|
|
181
|
-
}
|
|
182
|
-
#mint-header.mint-bottom #mint-wrapper {
|
|
183
|
-
top: unset;
|
|
184
|
-
bottom: -100%;
|
|
185
|
-
}
|
|
186
|
-
#mint-header.mint-bottom #mint-wrapper.mint-open {
|
|
187
|
-
top: unset;
|
|
188
|
-
bottom: 0;
|
|
189
|
-
}
|
|
190
|
-
#mint-header.mint-left #mint-wrapper {
|
|
191
|
-
top: var(--mint-header-height);
|
|
192
|
-
left: -100%;
|
|
193
|
-
}
|
|
194
|
-
#mint-header.mint-left #mint-wrapper.mint-open {
|
|
195
|
-
left: 0;
|
|
196
|
-
}
|
|
197
174
|
@media (min-width: 768px) {
|
|
198
175
|
#mint-header.mint-expand .mint-buttons {
|
|
199
176
|
width: auto;
|
|
@@ -301,31 +278,22 @@
|
|
|
301
278
|
#mint-header.mint-spread:not(.mint-expand) #mint-wrapper [aria-controls] + ul > li:first-child {
|
|
302
279
|
font-size: 1.5em;
|
|
303
280
|
}
|
|
304
|
-
#mint-header.mint-tray #mint-wrapper {
|
|
305
|
-
gap: 1.5rem;
|
|
306
|
-
font-size: 0.5em;
|
|
307
|
-
}
|
|
308
|
-
@media (min-width: 768px) {
|
|
309
|
-
#mint-header.mint-tray #mint-wrapper {
|
|
310
|
-
max-width: 512px;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
#mint-header.mint-tray #mint-wrapper a, #mint-header.mint-tray #mint-wrapper button {
|
|
281
|
+
#mint-header .mint-tray #mint-wrapper a, #mint-header .mint-tray #mint-wrapper button {
|
|
314
282
|
padding: 0.75rem;
|
|
315
283
|
margin: 0.25rem 0;
|
|
316
284
|
line-height: 1;
|
|
317
|
-
font-size:
|
|
285
|
+
font-size: 2em;
|
|
318
286
|
width: 100%;
|
|
319
287
|
}
|
|
320
|
-
#mint-header.mint-tray #mint-wrapper button {
|
|
321
|
-
font-size:
|
|
288
|
+
#mint-header .mint-tray #mint-wrapper button {
|
|
289
|
+
font-size: 3em;
|
|
322
290
|
}
|
|
323
|
-
#mint-header.mint-tray #mint-wrapper nav > ul {
|
|
291
|
+
#mint-header .mint-tray #mint-wrapper nav > ul {
|
|
324
292
|
flex-direction: column;
|
|
325
293
|
flex-wrap: nowrap;
|
|
326
294
|
justify-content: flex-start;
|
|
327
295
|
}
|
|
328
|
-
#mint-header.mint-tray #mint-wrapper nav li {
|
|
296
|
+
#mint-header .mint-tray #mint-wrapper nav li {
|
|
329
297
|
width: 100%;
|
|
330
298
|
}
|
|
331
299
|
#mint-header:not(.mint-border)::before {
|
|
@@ -340,33 +308,10 @@
|
|
|
340
308
|
height: var(--mint-header-height);
|
|
341
309
|
z-index: -1;
|
|
342
310
|
}
|
|
343
|
-
#mint-header nav > ul {
|
|
344
|
-
display: flex;
|
|
345
|
-
flex-direction: column;
|
|
346
|
-
}
|
|
347
|
-
#mint-header ul {
|
|
348
|
-
list-style: none;
|
|
349
|
-
margin-top: 0;
|
|
350
|
-
margin-bottom: 1rem;
|
|
351
|
-
padding-left: 0;
|
|
352
|
-
}
|
|
353
|
-
#mint-header a,
|
|
354
|
-
#mint-header button {
|
|
355
|
-
margin: 0;
|
|
356
|
-
border: 0;
|
|
357
|
-
color: var(--mint-fore);
|
|
358
|
-
background: var(--mint-trans);
|
|
359
|
-
transition-property: color, background;
|
|
360
|
-
transition-duration: var(--mint-delay-default);
|
|
361
|
-
}
|
|
362
|
-
#mint-header a:hover,
|
|
363
|
-
#mint-header button:hover {
|
|
364
|
-
color: var(--mint-back);
|
|
365
|
-
}
|
|
366
311
|
#mint-header #mint-navbar {
|
|
367
312
|
display: flex;
|
|
368
313
|
align-items: center;
|
|
369
|
-
justify-content:
|
|
314
|
+
justify-content: flex-end;
|
|
370
315
|
height: 100%;
|
|
371
316
|
}
|
|
372
317
|
#mint-header .mint-logo {
|
|
@@ -378,8 +323,14 @@
|
|
|
378
323
|
white-space: nowrap;
|
|
379
324
|
}
|
|
380
325
|
#mint-header .mint-logo span {
|
|
326
|
+
display: none;
|
|
381
327
|
margin: 0;
|
|
382
328
|
}
|
|
329
|
+
@media (min-width: 480px) {
|
|
330
|
+
#mint-header .mint-logo span {
|
|
331
|
+
display: inline;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
383
334
|
#mint-header .mint-logo img {
|
|
384
335
|
max-height: var(--mint-header-height);
|
|
385
336
|
width: auto;
|
|
@@ -431,24 +382,6 @@
|
|
|
431
382
|
#mint-header [aria-controls=mint-wrapper][aria-expanded=true] .mint-menu-icon::after {
|
|
432
383
|
transform: translate(-50%, 0) rotate(-45deg);
|
|
433
384
|
}
|
|
434
|
-
#mint-header #mint-wrapper {
|
|
435
|
-
display: flex;
|
|
436
|
-
flex-direction: column;
|
|
437
|
-
position: fixed;
|
|
438
|
-
top: -100%;
|
|
439
|
-
left: 0;
|
|
440
|
-
width: 100%;
|
|
441
|
-
height: calc(100vh - var(--mint-header-height));
|
|
442
|
-
height: calc(100dvh - var(--mint-header-height));
|
|
443
|
-
z-index: -2;
|
|
444
|
-
background: var(--mint-header-back);
|
|
445
|
-
transition-duration: var(--mint-delay-default);
|
|
446
|
-
transition-property: top, right, bottom, left;
|
|
447
|
-
overflow: auto;
|
|
448
|
-
}
|
|
449
|
-
#mint-header #mint-wrapper.mint-open {
|
|
450
|
-
top: var(--mint-header-height);
|
|
451
|
-
}
|
|
452
385
|
#mint-header #mint-wrapper nav {
|
|
453
386
|
flex-grow: 1;
|
|
454
387
|
height: auto;
|
|
@@ -466,6 +399,8 @@
|
|
|
466
399
|
margin-bottom: 0;
|
|
467
400
|
}
|
|
468
401
|
#mint-header #mint-wrapper nav > ul {
|
|
402
|
+
display: flex;
|
|
403
|
+
flex-direction: column;
|
|
469
404
|
height: 100%;
|
|
470
405
|
overflow: visible;
|
|
471
406
|
}
|
|
@@ -492,6 +427,10 @@
|
|
|
492
427
|
margin: 0.5rem 0;
|
|
493
428
|
text-align: center;
|
|
494
429
|
border-radius: 1rem;
|
|
430
|
+
color: var(--mint-fore);
|
|
431
|
+
background: var(--mint-trans);
|
|
432
|
+
transition-property: color, background;
|
|
433
|
+
transition-duration: var(--mint-delay-default);
|
|
495
434
|
}
|
|
496
435
|
@media (min-width: 480px) {
|
|
497
436
|
#mint-header #mint-wrapper a,
|
|
@@ -517,6 +456,12 @@
|
|
|
517
456
|
#mint-header #mint-wrapper button.mint-active {
|
|
518
457
|
text-decoration: underline;
|
|
519
458
|
}
|
|
459
|
+
#mint-header #mint-wrapper ul {
|
|
460
|
+
list-style: none;
|
|
461
|
+
margin-top: 0;
|
|
462
|
+
margin-bottom: 1rem;
|
|
463
|
+
padding-left: 0;
|
|
464
|
+
}
|
|
520
465
|
#mint-header #mint-wrapper ul li:last-child {
|
|
521
466
|
margin-bottom: 0;
|
|
522
467
|
}
|
|
@@ -529,12 +474,6 @@
|
|
|
529
474
|
justify-content: flex-end;
|
|
530
475
|
margin-left: auto;
|
|
531
476
|
}
|
|
532
|
-
#mint-header .mint-buttons a:not([aria-controls=mint-wrapper]),
|
|
533
|
-
#mint-header .mint-buttons button:not([aria-controls=mint-wrapper]) {
|
|
534
|
-
display: flex;
|
|
535
|
-
width: auto;
|
|
536
|
-
padding: 0.5rem;
|
|
537
|
-
}
|
|
538
477
|
#mint-header .mint-dropdown {
|
|
539
478
|
background: var(--mint-header-back);
|
|
540
479
|
}
|
|
@@ -562,6 +501,118 @@
|
|
|
562
501
|
margin: 0;
|
|
563
502
|
}
|
|
564
503
|
|
|
504
|
+
.mint-chatbot {
|
|
505
|
+
display: flex;
|
|
506
|
+
flex-direction: column;
|
|
507
|
+
flex-grow: 1;
|
|
508
|
+
justify-content: flex-end;
|
|
509
|
+
position: relative;
|
|
510
|
+
gap: 1rem;
|
|
511
|
+
padding: 1rem;
|
|
512
|
+
background: rgba(0, 0, 0, 0.8);
|
|
513
|
+
min-height: calc(100vh - 4rem);
|
|
514
|
+
min-height: calc(100dvh - 4rem);
|
|
515
|
+
}
|
|
516
|
+
@media (min-width: 480px) {
|
|
517
|
+
.mint-chatbot {
|
|
518
|
+
min-height: unset;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
.mint-chatbot .mint-output {
|
|
522
|
+
display: flex;
|
|
523
|
+
position: absolute;
|
|
524
|
+
top: 0;
|
|
525
|
+
left: 0;
|
|
526
|
+
width: 100%;
|
|
527
|
+
height: calc(100% - 75px);
|
|
528
|
+
padding: 1rem;
|
|
529
|
+
overflow-y: auto;
|
|
530
|
+
}
|
|
531
|
+
.mint-chatbot .mint-chat {
|
|
532
|
+
display: flex;
|
|
533
|
+
flex-direction: column;
|
|
534
|
+
gap: 0;
|
|
535
|
+
width: 100%;
|
|
536
|
+
min-height: 100%;
|
|
537
|
+
padding: 1rem;
|
|
538
|
+
font-size: 1.125rem;
|
|
539
|
+
overflow-x: hidden;
|
|
540
|
+
}
|
|
541
|
+
.mint-chatbot .mint-chat::before {
|
|
542
|
+
content: "";
|
|
543
|
+
flex-grow: 1;
|
|
544
|
+
}
|
|
545
|
+
.mint-chatbot .mint-chat p {
|
|
546
|
+
align-self: flex-start;
|
|
547
|
+
margin: 0;
|
|
548
|
+
color: #000;
|
|
549
|
+
}
|
|
550
|
+
@media (min-width: 480px) {
|
|
551
|
+
.mint-chatbot .mint-chat p {
|
|
552
|
+
max-width: 75%;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
.mint-chatbot .mint-chat p:nth-child(even) {
|
|
556
|
+
align-self: flex-end;
|
|
557
|
+
}
|
|
558
|
+
.mint-chatbot .mint-chat p:nth-child(even) span {
|
|
559
|
+
background-color: var(--mint-brand-1);
|
|
560
|
+
}
|
|
561
|
+
.mint-chatbot .mint-chat p:nth-child(even) span::before {
|
|
562
|
+
left: unset;
|
|
563
|
+
right: 0;
|
|
564
|
+
transform: translate(-5%, 90%) skew(50deg, 10deg);
|
|
565
|
+
border-color: var(--mint-brand-1) transparent transparent transparent;
|
|
566
|
+
}
|
|
567
|
+
.mint-chatbot .mint-chat p span {
|
|
568
|
+
display: block;
|
|
569
|
+
position: relative;
|
|
570
|
+
padding: 1rem;
|
|
571
|
+
margin-bottom: 2rem;
|
|
572
|
+
background-color: #e1e5e6;
|
|
573
|
+
border-radius: 0.5rem;
|
|
574
|
+
}
|
|
575
|
+
.mint-chatbot .mint-chat p span::before {
|
|
576
|
+
content: "";
|
|
577
|
+
position: absolute;
|
|
578
|
+
bottom: 0;
|
|
579
|
+
left: 0;
|
|
580
|
+
transform: translate(5%, 90%) skew(-50deg, 10deg);
|
|
581
|
+
width: 0;
|
|
582
|
+
height: 0;
|
|
583
|
+
border: 0.5rem solid;
|
|
584
|
+
border-color: #e1e5e6 transparent transparent transparent;
|
|
585
|
+
}
|
|
586
|
+
.mint-chatbot .mint-input {
|
|
587
|
+
position: relative;
|
|
588
|
+
width: 100%;
|
|
589
|
+
max-width: 550px;
|
|
590
|
+
margin: 0 auto;
|
|
591
|
+
}
|
|
592
|
+
.mint-chatbot .mint-input input {
|
|
593
|
+
font-size: 1.25rem;
|
|
594
|
+
padding-right: 47px;
|
|
595
|
+
}
|
|
596
|
+
.mint-chatbot .mint-input button {
|
|
597
|
+
position: absolute;
|
|
598
|
+
top: 0;
|
|
599
|
+
right: 0;
|
|
600
|
+
height: 100%;
|
|
601
|
+
padding: 0 1rem;
|
|
602
|
+
border-top-right-radius: 1rem;
|
|
603
|
+
border-bottom-right-radius: 1rem;
|
|
604
|
+
border: none;
|
|
605
|
+
transition: all 0.3s ease-in-out;
|
|
606
|
+
}
|
|
607
|
+
.mint-chatbot .mint-input button:hover {
|
|
608
|
+
background: rgb(25.5, 25.5, 25.5) !important;
|
|
609
|
+
color: rgb(229.5, 229.5, 229.5);
|
|
610
|
+
}
|
|
611
|
+
.mint-chatbot .mint-input button:focus-visible {
|
|
612
|
+
background: rgb(25.5, 25.5, 25.5) !important;
|
|
613
|
+
color: rgb(229.5, 229.5, 229.5);
|
|
614
|
+
}
|
|
615
|
+
|
|
565
616
|
.mint-section-full {
|
|
566
617
|
display: flex;
|
|
567
618
|
flex-direction: column;
|
|
@@ -942,6 +993,8 @@
|
|
|
942
993
|
font-size: 4rem;
|
|
943
994
|
}
|
|
944
995
|
.mint-btn-icon i {
|
|
996
|
+
display: inline-flex;
|
|
997
|
+
align-items: center;
|
|
945
998
|
margin: 0 !important;
|
|
946
999
|
color: var(--mint-brand-4);
|
|
947
1000
|
font-size: 1.5rem;
|
|
@@ -1306,6 +1359,77 @@ p .mint-pill, p .mint-btn, :root:root p [amplify-button], p .mint-select {
|
|
|
1306
1359
|
width: 100%;
|
|
1307
1360
|
}
|
|
1308
1361
|
|
|
1362
|
+
.mint-panel.mint-right .mint-panel-wrapper {
|
|
1363
|
+
top: var(--mint-header-height);
|
|
1364
|
+
right: -100%;
|
|
1365
|
+
left: unset;
|
|
1366
|
+
}
|
|
1367
|
+
.mint-panel.mint-right .mint-panel-wrapper.mint-open {
|
|
1368
|
+
right: 0;
|
|
1369
|
+
}
|
|
1370
|
+
.mint-panel.mint-bottom .mint-panel-wrapper {
|
|
1371
|
+
top: unset;
|
|
1372
|
+
bottom: -100%;
|
|
1373
|
+
}
|
|
1374
|
+
.mint-panel.mint-bottom .mint-panel-wrapper.mint-open {
|
|
1375
|
+
top: unset;
|
|
1376
|
+
bottom: 0;
|
|
1377
|
+
}
|
|
1378
|
+
.mint-panel.mint-left .mint-panel-wrapper {
|
|
1379
|
+
top: var(--mint-header-height);
|
|
1380
|
+
left: -100%;
|
|
1381
|
+
}
|
|
1382
|
+
.mint-panel.mint-left .mint-panel-wrapper.mint-open {
|
|
1383
|
+
left: 0;
|
|
1384
|
+
}
|
|
1385
|
+
.mint-panel.mint-tray .mint-panel-wrapper {
|
|
1386
|
+
gap: 1.5rem;
|
|
1387
|
+
}
|
|
1388
|
+
@media (min-width: 768px) {
|
|
1389
|
+
.mint-panel.mint-tray .mint-panel-wrapper {
|
|
1390
|
+
max-width: 512px;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
.mint-panel .mint-panel-wrapper {
|
|
1394
|
+
display: flex;
|
|
1395
|
+
flex-direction: column;
|
|
1396
|
+
position: fixed;
|
|
1397
|
+
top: -100%;
|
|
1398
|
+
left: 0;
|
|
1399
|
+
width: 100%;
|
|
1400
|
+
height: calc(100vh - var(--mint-header-height));
|
|
1401
|
+
height: calc(100dvh - var(--mint-header-height));
|
|
1402
|
+
z-index: -2;
|
|
1403
|
+
background: var(--mint-header-back);
|
|
1404
|
+
transition-duration: var(--mint-delay-default);
|
|
1405
|
+
transition-property: top, right, bottom, left;
|
|
1406
|
+
overflow: auto;
|
|
1407
|
+
}
|
|
1408
|
+
.mint-panel .mint-panel-wrapper.mint-open {
|
|
1409
|
+
top: var(--mint-header-height);
|
|
1410
|
+
}
|
|
1411
|
+
.mint-panel .mint-panel-wrapper nav {
|
|
1412
|
+
flex-grow: 1;
|
|
1413
|
+
height: auto;
|
|
1414
|
+
overflow: visible;
|
|
1415
|
+
background: var(--mint-back);
|
|
1416
|
+
}
|
|
1417
|
+
@media (min-width: 1440px) {
|
|
1418
|
+
.mint-panel .mint-panel-wrapper nav {
|
|
1419
|
+
display: flex;
|
|
1420
|
+
align-items: center;
|
|
1421
|
+
justify-content: center;
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
.mint-panel .mint-panel-wrapper nav > :last-child {
|
|
1425
|
+
margin-bottom: 0;
|
|
1426
|
+
}
|
|
1427
|
+
.mint-panel .mint-title {
|
|
1428
|
+
display: flex;
|
|
1429
|
+
align-items: flex-start;
|
|
1430
|
+
justify-content: space-between;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1309
1433
|
.mint-table-wrap {
|
|
1310
1434
|
max-height: 50vh;
|
|
1311
1435
|
overflow-y: auto;
|
|
@@ -1546,7 +1670,7 @@ main {
|
|
|
1546
1670
|
width: 100%;
|
|
1547
1671
|
min-height: calc(100vh - var(--mint-header-height));
|
|
1548
1672
|
overflow: hidden;
|
|
1549
|
-
z-index:
|
|
1673
|
+
z-index: 999;
|
|
1550
1674
|
}
|
|
1551
1675
|
main > router-outlet {
|
|
1552
1676
|
flex-grow: 0;
|