@appartmint/mint 2.4.4 → 2.6.0
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 +187 -50
- 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 +26 -0
- package/dist/js/imports/abstract/attaches-events.d.ts.map +1 -0
- package/dist/js/imports/abstract/index.d.ts +5 -0
- package/dist/js/imports/abstract/index.d.ts.map +1 -0
- 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 +2 -0
- package/dist/js/imports/components/index.d.ts.map +1 -1
- package/dist/js/imports/components/menu.d.ts +92 -0
- package/dist/js/imports/components/menu.d.ts.map +1 -0
- package/dist/js/imports/components/panel.d.ts +66 -0
- package/dist/js/imports/components/panel.d.ts.map +1 -0
- package/dist/js/imports/index.d.ts +2 -1
- package/dist/js/imports/index.d.ts.map +1 -1
- package/dist/js/imports/models/event.d.ts +9 -0
- package/dist/js/imports/models/event.d.ts.map +1 -0
- package/dist/js/imports/models/index.d.ts +1 -0
- package/dist/js/imports/models/index.d.ts.map +1 -1
- package/dist/js/imports/util/selectors.d.ts +1 -1
- package/dist/js/imports/util/selectors.d.ts.map +1 -1
- package/dist/js/index.js +455 -227
- 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 +6 -61
- 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 +95 -0
package/dist/css/mint.css
CHANGED
|
@@ -171,29 +171,6 @@
|
|
|
171
171
|
z-index: 10000;
|
|
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,15 +278,6 @@
|
|
|
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
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;
|
|
@@ -378,8 +346,14 @@
|
|
|
378
346
|
white-space: nowrap;
|
|
379
347
|
}
|
|
380
348
|
#mint-header .mint-logo span {
|
|
349
|
+
display: none;
|
|
381
350
|
margin: 0;
|
|
382
351
|
}
|
|
352
|
+
@media (min-width: 480px) {
|
|
353
|
+
#mint-header .mint-logo span {
|
|
354
|
+
display: inline;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
383
357
|
#mint-header .mint-logo img {
|
|
384
358
|
max-height: var(--mint-header-height);
|
|
385
359
|
width: auto;
|
|
@@ -431,24 +405,6 @@
|
|
|
431
405
|
#mint-header [aria-controls=mint-wrapper][aria-expanded=true] .mint-menu-icon::after {
|
|
432
406
|
transform: translate(-50%, 0) rotate(-45deg);
|
|
433
407
|
}
|
|
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
408
|
#mint-header #mint-wrapper nav {
|
|
453
409
|
flex-grow: 1;
|
|
454
410
|
height: auto;
|
|
@@ -562,6 +518,118 @@
|
|
|
562
518
|
margin: 0;
|
|
563
519
|
}
|
|
564
520
|
|
|
521
|
+
.mint-chatbot {
|
|
522
|
+
display: flex;
|
|
523
|
+
flex-direction: column;
|
|
524
|
+
flex-grow: 1;
|
|
525
|
+
justify-content: flex-end;
|
|
526
|
+
position: relative;
|
|
527
|
+
gap: 1rem;
|
|
528
|
+
padding: 1rem;
|
|
529
|
+
background: rgba(0, 0, 0, 0.8);
|
|
530
|
+
min-height: calc(100vh - 4rem);
|
|
531
|
+
min-height: calc(100dvh - 4rem);
|
|
532
|
+
}
|
|
533
|
+
@media (min-width: 480px) {
|
|
534
|
+
.mint-chatbot {
|
|
535
|
+
min-height: unset;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
.mint-chatbot .mint-output {
|
|
539
|
+
display: flex;
|
|
540
|
+
position: absolute;
|
|
541
|
+
top: 0;
|
|
542
|
+
left: 0;
|
|
543
|
+
width: 100%;
|
|
544
|
+
height: calc(100% - 75px);
|
|
545
|
+
padding: 1rem;
|
|
546
|
+
overflow-y: auto;
|
|
547
|
+
}
|
|
548
|
+
.mint-chatbot .mint-chat {
|
|
549
|
+
display: flex;
|
|
550
|
+
flex-direction: column;
|
|
551
|
+
gap: 0;
|
|
552
|
+
width: 100%;
|
|
553
|
+
min-height: 100%;
|
|
554
|
+
padding: 1rem;
|
|
555
|
+
font-size: 1.125rem;
|
|
556
|
+
overflow-x: hidden;
|
|
557
|
+
}
|
|
558
|
+
.mint-chatbot .mint-chat::before {
|
|
559
|
+
content: "";
|
|
560
|
+
flex-grow: 1;
|
|
561
|
+
}
|
|
562
|
+
.mint-chatbot .mint-chat p {
|
|
563
|
+
align-self: flex-start;
|
|
564
|
+
margin: 0;
|
|
565
|
+
color: #000;
|
|
566
|
+
}
|
|
567
|
+
@media (min-width: 480px) {
|
|
568
|
+
.mint-chatbot .mint-chat p {
|
|
569
|
+
max-width: 75%;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
.mint-chatbot .mint-chat p:nth-child(even) {
|
|
573
|
+
align-self: flex-end;
|
|
574
|
+
}
|
|
575
|
+
.mint-chatbot .mint-chat p:nth-child(even) span {
|
|
576
|
+
background-color: var(--mint-brand-1);
|
|
577
|
+
}
|
|
578
|
+
.mint-chatbot .mint-chat p:nth-child(even) span::before {
|
|
579
|
+
left: unset;
|
|
580
|
+
right: 0;
|
|
581
|
+
transform: translate(-5%, 90%) skew(50deg, 10deg);
|
|
582
|
+
border-color: var(--mint-brand-1) transparent transparent transparent;
|
|
583
|
+
}
|
|
584
|
+
.mint-chatbot .mint-chat p span {
|
|
585
|
+
display: block;
|
|
586
|
+
position: relative;
|
|
587
|
+
padding: 1rem;
|
|
588
|
+
margin-bottom: 2rem;
|
|
589
|
+
background-color: #e1e5e6;
|
|
590
|
+
border-radius: 0.5rem;
|
|
591
|
+
}
|
|
592
|
+
.mint-chatbot .mint-chat p span::before {
|
|
593
|
+
content: "";
|
|
594
|
+
position: absolute;
|
|
595
|
+
bottom: 0;
|
|
596
|
+
left: 0;
|
|
597
|
+
transform: translate(5%, 90%) skew(-50deg, 10deg);
|
|
598
|
+
width: 0;
|
|
599
|
+
height: 0;
|
|
600
|
+
border: 0.5rem solid;
|
|
601
|
+
border-color: #e1e5e6 transparent transparent transparent;
|
|
602
|
+
}
|
|
603
|
+
.mint-chatbot .mint-input {
|
|
604
|
+
position: relative;
|
|
605
|
+
width: 100%;
|
|
606
|
+
max-width: 550px;
|
|
607
|
+
margin: 0 auto;
|
|
608
|
+
}
|
|
609
|
+
.mint-chatbot .mint-input input {
|
|
610
|
+
font-size: 1.25rem;
|
|
611
|
+
padding-right: 47px;
|
|
612
|
+
}
|
|
613
|
+
.mint-chatbot .mint-input button {
|
|
614
|
+
position: absolute;
|
|
615
|
+
top: 0;
|
|
616
|
+
right: 0;
|
|
617
|
+
height: 100%;
|
|
618
|
+
padding: 0 1rem;
|
|
619
|
+
border-top-right-radius: 1rem;
|
|
620
|
+
border-bottom-right-radius: 1rem;
|
|
621
|
+
border: none;
|
|
622
|
+
transition: all 0.3s ease-in-out;
|
|
623
|
+
}
|
|
624
|
+
.mint-chatbot .mint-input button:hover {
|
|
625
|
+
background: rgb(25.5, 25.5, 25.5) !important;
|
|
626
|
+
color: rgb(229.5, 229.5, 229.5);
|
|
627
|
+
}
|
|
628
|
+
.mint-chatbot .mint-input button:focus-visible {
|
|
629
|
+
background: rgb(25.5, 25.5, 25.5) !important;
|
|
630
|
+
color: rgb(229.5, 229.5, 229.5);
|
|
631
|
+
}
|
|
632
|
+
|
|
565
633
|
.mint-section-full {
|
|
566
634
|
display: flex;
|
|
567
635
|
flex-direction: column;
|
|
@@ -942,6 +1010,8 @@
|
|
|
942
1010
|
font-size: 4rem;
|
|
943
1011
|
}
|
|
944
1012
|
.mint-btn-icon i {
|
|
1013
|
+
display: inline-flex;
|
|
1014
|
+
align-items: center;
|
|
945
1015
|
margin: 0 !important;
|
|
946
1016
|
color: var(--mint-brand-4);
|
|
947
1017
|
font-size: 1.5rem;
|
|
@@ -1306,6 +1376,73 @@ p .mint-pill, p .mint-btn, :root:root p [amplify-button], p .mint-select {
|
|
|
1306
1376
|
width: 100%;
|
|
1307
1377
|
}
|
|
1308
1378
|
|
|
1379
|
+
.mint-panel.mint-right .mint-panel-wrapper {
|
|
1380
|
+
top: var(--mint-header-height);
|
|
1381
|
+
right: -100%;
|
|
1382
|
+
left: unset;
|
|
1383
|
+
}
|
|
1384
|
+
.mint-panel.mint-right .mint-panel-wrapper.mint-open {
|
|
1385
|
+
right: 0;
|
|
1386
|
+
}
|
|
1387
|
+
.mint-panel.mint-bottom .mint-panel-wrapper {
|
|
1388
|
+
top: unset;
|
|
1389
|
+
bottom: -100%;
|
|
1390
|
+
}
|
|
1391
|
+
.mint-panel.mint-bottom .mint-panel-wrapper.mint-open {
|
|
1392
|
+
top: unset;
|
|
1393
|
+
bottom: 0;
|
|
1394
|
+
}
|
|
1395
|
+
.mint-panel.mint-left .mint-panel-wrapper {
|
|
1396
|
+
top: var(--mint-header-height);
|
|
1397
|
+
left: -100%;
|
|
1398
|
+
}
|
|
1399
|
+
.mint-panel.mint-left .mint-panel-wrapper.mint-open {
|
|
1400
|
+
left: 0;
|
|
1401
|
+
}
|
|
1402
|
+
.mint-panel.mint-tray .mint-panel-wrapper {
|
|
1403
|
+
gap: 1.5rem;
|
|
1404
|
+
font-size: 0.5em;
|
|
1405
|
+
}
|
|
1406
|
+
@media (min-width: 768px) {
|
|
1407
|
+
.mint-panel.mint-tray .mint-panel-wrapper {
|
|
1408
|
+
max-width: 512px;
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
.mint-panel .mint-panel-wrapper {
|
|
1412
|
+
display: flex;
|
|
1413
|
+
flex-direction: column;
|
|
1414
|
+
position: fixed;
|
|
1415
|
+
top: -100%;
|
|
1416
|
+
left: 0;
|
|
1417
|
+
width: 100%;
|
|
1418
|
+
height: calc(100vh - var(--mint-header-height));
|
|
1419
|
+
height: calc(100dvh - var(--mint-header-height));
|
|
1420
|
+
z-index: -2;
|
|
1421
|
+
background: var(--mint-header-back);
|
|
1422
|
+
transition-duration: var(--mint-delay-default);
|
|
1423
|
+
transition-property: top, right, bottom, left;
|
|
1424
|
+
overflow: auto;
|
|
1425
|
+
}
|
|
1426
|
+
.mint-panel .mint-panel-wrapper.mint-open {
|
|
1427
|
+
top: var(--mint-header-height);
|
|
1428
|
+
}
|
|
1429
|
+
.mint-panel .mint-panel-wrapper nav {
|
|
1430
|
+
flex-grow: 1;
|
|
1431
|
+
height: auto;
|
|
1432
|
+
overflow: visible;
|
|
1433
|
+
background: var(--mint-back);
|
|
1434
|
+
}
|
|
1435
|
+
@media (min-width: 1440px) {
|
|
1436
|
+
.mint-panel .mint-panel-wrapper nav {
|
|
1437
|
+
display: flex;
|
|
1438
|
+
align-items: center;
|
|
1439
|
+
justify-content: center;
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
.mint-panel .mint-panel-wrapper nav > :last-child {
|
|
1443
|
+
margin-bottom: 0;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1309
1446
|
.mint-table-wrap {
|
|
1310
1447
|
max-height: 50vh;
|
|
1311
1448
|
overflow-y: auto;
|