mithril-materialized 3.16.0 → 3.17.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/README.md +32 -2
- package/dist/advanced.css +92 -1
- package/dist/button.d.ts +3 -1
- package/dist/circular-progress.d.ts +2 -2
- package/dist/combobox.d.ts +35 -0
- package/dist/components.css +127 -14
- package/dist/core.css +278 -3
- package/dist/floating-action-button.d.ts +2 -1
- package/dist/form-section.d.ts +35 -0
- package/dist/forms.css +280 -5
- package/dist/index.css +340 -19
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js +698 -296
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +711 -295
- package/dist/index.js.map +1 -0
- package/dist/index.min.css +2 -2
- package/dist/index.umd.js +711 -295
- package/dist/index.umd.js.map +1 -0
- package/dist/input-options.d.ts +4 -1
- package/dist/likert-scale.d.ts +2 -1
- package/dist/linear-progress.d.ts +2 -2
- package/dist/material-icon.d.ts +2 -1
- package/dist/radio.d.ts +9 -0
- package/dist/range-slider.d.ts +3 -2
- package/dist/rating.d.ts +2 -1
- package/dist/search-select.d.ts +15 -2
- package/dist/select.d.ts +14 -1
- package/dist/sidenav.d.ts +6 -0
- package/dist/treeview.d.ts +2 -2
- package/dist/types.d.ts +5 -0
- package/dist/utilities.css +93 -2
- package/dist/utils.d.ts +30 -1
- package/package.json +16 -19
- package/sass/components/_badge-component.scss +8 -0
- package/sass/components/_buttons.scss +9 -9
- package/sass/components/_global.scss +93 -0
- package/sass/components/_likert-scale.scss +24 -0
- package/sass/components/_theme-variables.scss +22 -1
- package/sass/components/_toggle-group.scss +3 -0
- package/sass/components/forms/_form-groups.scss +1 -1
- package/sass/components/forms/_form-section.scss +63 -0
- package/sass/components/forms/_forms.scss +1 -0
- package/sass/components/forms/_input-fields.scss +55 -0
- package/sass/components/forms/_range-enhanced.scss +3 -3
- package/sass/components/forms/_select.scss +85 -0
package/dist/forms.css
CHANGED
|
@@ -3,6 +3,31 @@ html {
|
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
/* Default themed scrollbar styling for all scroll containers */
|
|
7
|
+
* {
|
|
8
|
+
scrollbar-width: thin;
|
|
9
|
+
scrollbar-color: var(--mm-scrollbar-thumb-color, rgba(128, 128, 128, 0.35)) var(--mm-scrollbar-track-color, transparent);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
*::-webkit-scrollbar {
|
|
13
|
+
width: 10px;
|
|
14
|
+
height: 10px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
*::-webkit-scrollbar-track {
|
|
18
|
+
background: var(--mm-scrollbar-track-color, transparent);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
*::-webkit-scrollbar-thumb {
|
|
22
|
+
background-color: var(--mm-scrollbar-thumb-color, rgba(128, 128, 128, 0.35));
|
|
23
|
+
border-radius: 8px;
|
|
24
|
+
border: 2px solid var(--mm-scrollbar-track-color, transparent);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
*::-webkit-scrollbar-thumb:hover {
|
|
28
|
+
background-color: var(--mm-scrollbar-thumb-hover-color, rgba(128, 128, 128, 0.5));
|
|
29
|
+
}
|
|
30
|
+
|
|
6
31
|
*, *:before, *:after {
|
|
7
32
|
box-sizing: inherit;
|
|
8
33
|
}
|
|
@@ -495,7 +520,7 @@ td, th {
|
|
|
495
520
|
}
|
|
496
521
|
.collection .collection-item.active {
|
|
497
522
|
background-color: #26a69a;
|
|
498
|
-
color: rgb(
|
|
523
|
+
color: rgb(91.862745098%, 98.137254902%, 97.5490196078%);
|
|
499
524
|
}
|
|
500
525
|
.collection .collection-item.active .secondary-content {
|
|
501
526
|
color: var(--mm-text-on-primary, #fff);
|
|
@@ -624,6 +649,72 @@ td, th {
|
|
|
624
649
|
/*******************
|
|
625
650
|
Utility Classes
|
|
626
651
|
*******************/
|
|
652
|
+
.mm-layout-row {
|
|
653
|
+
display: flex;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.mm-layout-row--center {
|
|
657
|
+
align-items: center;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
.mm-layout-row--align-end {
|
|
661
|
+
align-items: flex-end;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.mm-layout-row--wrap {
|
|
665
|
+
flex-wrap: wrap;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.mm-layout-row--justify-start {
|
|
669
|
+
justify-content: flex-start;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.mm-layout-row--justify-end {
|
|
673
|
+
justify-content: flex-end;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.mm-layout-row--justify-between {
|
|
677
|
+
justify-content: space-between;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
.mm-layout-stack {
|
|
681
|
+
display: flex;
|
|
682
|
+
flex-direction: column;
|
|
683
|
+
gap: var(--mm-layout-gap, 0);
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.mm-layout-cluster {
|
|
687
|
+
display: flex;
|
|
688
|
+
align-items: center;
|
|
689
|
+
flex-wrap: wrap;
|
|
690
|
+
gap: var(--mm-layout-gap, 8px);
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.mm-layout-grow {
|
|
694
|
+
flex: 1 1 auto;
|
|
695
|
+
min-width: 0;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.mm-layout-ml-auto {
|
|
699
|
+
margin-left: auto;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.mm-layout-ml-8 {
|
|
703
|
+
margin-left: var(--mm-layout-inline-gap, 8px);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.mm-layout-mr-8 {
|
|
707
|
+
margin-right: var(--mm-layout-inline-gap, 8px);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
.mm-layout-item-icon {
|
|
711
|
+
margin-right: var(--mm-layout-icon-gap, 32px);
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.mm-layout-gap-sm {
|
|
715
|
+
gap: var(--mm-layout-gap-sm, 8px);
|
|
716
|
+
}
|
|
717
|
+
|
|
627
718
|
.hide {
|
|
628
719
|
display: none !important;
|
|
629
720
|
}
|
|
@@ -927,6 +1018,51 @@ textarea.materialize-textarea::-ms-input-placeholder {
|
|
|
927
1018
|
color: var(--mm-text-hint, #d1d1d1) !important;
|
|
928
1019
|
}
|
|
929
1020
|
|
|
1021
|
+
.input-field input.number-input:not(.browser-default) {
|
|
1022
|
+
-moz-appearance: textfield;
|
|
1023
|
+
padding-right: 2rem;
|
|
1024
|
+
}
|
|
1025
|
+
.input-field input.number-input:not(.browser-default)::-webkit-inner-spin-button, .input-field input.number-input:not(.browser-default)::-webkit-outer-spin-button {
|
|
1026
|
+
-webkit-appearance: none;
|
|
1027
|
+
margin: 0;
|
|
1028
|
+
}
|
|
1029
|
+
.input-field .number-input-controls {
|
|
1030
|
+
position: absolute;
|
|
1031
|
+
top: 0;
|
|
1032
|
+
right: 0;
|
|
1033
|
+
display: flex;
|
|
1034
|
+
flex-direction: column;
|
|
1035
|
+
justify-content: center;
|
|
1036
|
+
height: 3rem;
|
|
1037
|
+
}
|
|
1038
|
+
.input-field .number-input-control {
|
|
1039
|
+
display: flex;
|
|
1040
|
+
align-items: center;
|
|
1041
|
+
justify-content: center;
|
|
1042
|
+
width: 1.75rem;
|
|
1043
|
+
height: 1.5rem;
|
|
1044
|
+
padding: 0;
|
|
1045
|
+
border: 0;
|
|
1046
|
+
border-radius: 2px;
|
|
1047
|
+
background: transparent;
|
|
1048
|
+
color: var(--mm-button-flat-text, #ee6e73);
|
|
1049
|
+
cursor: pointer;
|
|
1050
|
+
line-height: 1;
|
|
1051
|
+
}
|
|
1052
|
+
.input-field .number-input-control:hover {
|
|
1053
|
+
background-color: var(--mm-primary-color-alpha-10, rgba(38, 166, 154, 0.1));
|
|
1054
|
+
}
|
|
1055
|
+
.input-field .number-input-control:focus-visible {
|
|
1056
|
+
outline: 2px solid var(--mm-primary-color, #ee6e73);
|
|
1057
|
+
outline-offset: -2px;
|
|
1058
|
+
}
|
|
1059
|
+
.input-field .number-input-control svg {
|
|
1060
|
+
font-size: 1.25rem;
|
|
1061
|
+
line-height: 1;
|
|
1062
|
+
width: 1.25rem;
|
|
1063
|
+
height: 1.25rem;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
930
1066
|
/* Validation Sass Placeholders */
|
|
931
1067
|
.select-wrapper.valid > input.select-dropdown, input:not([type]):not(.browser-default).valid:not([readonly]):not([disabled]), input:not([type]):not(.browser-default):focus.valid:not([readonly]):not([disabled]),
|
|
932
1068
|
input[type=text]:not(.browser-default).valid:not([readonly]):not([disabled]),
|
|
@@ -1403,6 +1539,63 @@ select:disabled {
|
|
|
1403
1539
|
user-select: none;
|
|
1404
1540
|
}
|
|
1405
1541
|
|
|
1542
|
+
.input-field.select-space.select-appearance-outlined {
|
|
1543
|
+
position: relative;
|
|
1544
|
+
}
|
|
1545
|
+
.input-field.select-space.select-appearance-outlined > i.prefix.material-icons {
|
|
1546
|
+
position: absolute;
|
|
1547
|
+
left: 24px;
|
|
1548
|
+
top: 50%;
|
|
1549
|
+
transform: translateY(-50%);
|
|
1550
|
+
margin: 0;
|
|
1551
|
+
z-index: 2;
|
|
1552
|
+
pointer-events: none;
|
|
1553
|
+
}
|
|
1554
|
+
.input-field.select-space.select-appearance-outlined > i.prefix.material-icons + .select-wrapper {
|
|
1555
|
+
padding-left: 54px;
|
|
1556
|
+
}
|
|
1557
|
+
.input-field.select-space.select-appearance-outlined > i.prefix ~ .select-wrapper {
|
|
1558
|
+
margin-left: 0;
|
|
1559
|
+
width: 100%;
|
|
1560
|
+
}
|
|
1561
|
+
.input-field.select-space.select-appearance-outlined .select-wrapper {
|
|
1562
|
+
border: 1px solid var(--mm-input-border, #9e9e9e);
|
|
1563
|
+
border-radius: 8px;
|
|
1564
|
+
background-color: var(--mm-surface-color, transparent);
|
|
1565
|
+
padding: 0 12px;
|
|
1566
|
+
min-height: var(--mm-input-height, 3rem);
|
|
1567
|
+
display: flex;
|
|
1568
|
+
align-items: center;
|
|
1569
|
+
overflow: visible;
|
|
1570
|
+
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
|
1571
|
+
}
|
|
1572
|
+
.input-field.select-space.select-appearance-outlined .select-wrapper:focus-within {
|
|
1573
|
+
border-color: var(--mm-primary-color, #2196f3);
|
|
1574
|
+
box-shadow: 0 0 0 1px var(--mm-primary-color, #2196f3);
|
|
1575
|
+
}
|
|
1576
|
+
.input-field.select-space.select-appearance-outlined .select-wrapper input.select-dropdown {
|
|
1577
|
+
border-bottom: none;
|
|
1578
|
+
margin: 0;
|
|
1579
|
+
width: auto;
|
|
1580
|
+
flex: 1 1 auto;
|
|
1581
|
+
height: var(--mm-input-height, 3rem);
|
|
1582
|
+
line-height: var(--mm-input-height, 3rem);
|
|
1583
|
+
padding-right: 24px;
|
|
1584
|
+
}
|
|
1585
|
+
.input-field.select-space.select-appearance-outlined .select-wrapper .select-inline-label {
|
|
1586
|
+
color: var(--mm-text-hint, #9e9e9e);
|
|
1587
|
+
font-size: 16px;
|
|
1588
|
+
margin-right: 8px;
|
|
1589
|
+
white-space: nowrap;
|
|
1590
|
+
flex: 0 0 auto;
|
|
1591
|
+
pointer-events: none;
|
|
1592
|
+
}
|
|
1593
|
+
.input-field.select-space.select-appearance-outlined .select-wrapper .caret {
|
|
1594
|
+
right: 10px;
|
|
1595
|
+
z-index: 2;
|
|
1596
|
+
pointer-events: none;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1406
1599
|
.select-wrapper i {
|
|
1407
1600
|
color: var(--mm-text-primary, rgba(0, 0, 0, 0.87));
|
|
1408
1601
|
}
|
|
@@ -1518,6 +1711,24 @@ body.keyboard-focused .select-dropdown.dropdown-content li:focus {
|
|
|
1518
1711
|
cursor: default;
|
|
1519
1712
|
}
|
|
1520
1713
|
|
|
1714
|
+
.search-select-loading-info,
|
|
1715
|
+
.search-select-error-info {
|
|
1716
|
+
padding: 8px 16px;
|
|
1717
|
+
color: var(--mm-text-hint, #9e9e9e);
|
|
1718
|
+
font-style: italic;
|
|
1719
|
+
text-align: center;
|
|
1720
|
+
border-bottom: none;
|
|
1721
|
+
}
|
|
1722
|
+
.search-select-loading-info:hover,
|
|
1723
|
+
.search-select-error-info:hover {
|
|
1724
|
+
background-color: transparent;
|
|
1725
|
+
cursor: default;
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
.dropdown-content li.search-select-error-info {
|
|
1729
|
+
color: var(--mm-error-color, #f44336) !important;
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1521
1732
|
.search-select-option-label {
|
|
1522
1733
|
display: flex;
|
|
1523
1734
|
align-items: center;
|
|
@@ -1891,7 +2102,7 @@ body.keyboard-focused .select-dropdown.dropdown-content li:focus {
|
|
|
1891
2102
|
height: 0;
|
|
1892
2103
|
}
|
|
1893
2104
|
.switch label input[type=checkbox]:checked + .lever {
|
|
1894
|
-
background-color: var(--mm-switch-checked-track, rgb(
|
|
2105
|
+
background-color: var(--mm-switch-checked-track, rgb(51.7892156863%, 78.2107843137%, 75.7337622549%));
|
|
1895
2106
|
}
|
|
1896
2107
|
.switch label input[type=checkbox]:checked + .lever:before, .switch label input[type=checkbox]:checked + .lever:after {
|
|
1897
2108
|
left: 18px;
|
|
@@ -2215,7 +2426,7 @@ input[type=range]::-ms-thumb {
|
|
|
2215
2426
|
.single-range-slider .thumb .value-tooltip {
|
|
2216
2427
|
position: absolute;
|
|
2217
2428
|
background: var(--mm-primary-color, #26a69a);
|
|
2218
|
-
color:
|
|
2429
|
+
color: var(--mm-range-value-text, #000);
|
|
2219
2430
|
padding: 4px 8px;
|
|
2220
2431
|
border-radius: 4px;
|
|
2221
2432
|
font-size: 12px;
|
|
@@ -2370,7 +2581,7 @@ input[type=range]::-ms-thumb {
|
|
|
2370
2581
|
.double-range-slider .thumb .value {
|
|
2371
2582
|
position: absolute;
|
|
2372
2583
|
background: var(--mm-primary-color, #26a69a);
|
|
2373
|
-
color:
|
|
2584
|
+
color: var(--mm-range-value-text, #000);
|
|
2374
2585
|
padding: 2px 6px;
|
|
2375
2586
|
border-radius: 4px;
|
|
2376
2587
|
font-size: 12px;
|
|
@@ -2480,7 +2691,7 @@ input[type=range]::-ms-thumb {
|
|
|
2480
2691
|
/* Create columns that are at least 150px wide and fill the available space */
|
|
2481
2692
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
2482
2693
|
/* Add space between grid items */
|
|
2483
|
-
gap: 15px;
|
|
2694
|
+
gap: var(--mm-layout-gap-form, 15px);
|
|
2484
2695
|
padding-top: 10px;
|
|
2485
2696
|
padding-bottom: 20px;
|
|
2486
2697
|
}
|
|
@@ -2499,6 +2710,70 @@ input[type=range]::-ms-thumb {
|
|
|
2499
2710
|
text-align: initial;
|
|
2500
2711
|
}
|
|
2501
2712
|
|
|
2713
|
+
.mm-fieldset {
|
|
2714
|
+
border: 1px solid var(--mm-border-color);
|
|
2715
|
+
border-radius: 4px;
|
|
2716
|
+
margin: 0 0 1.5rem;
|
|
2717
|
+
padding: 1rem;
|
|
2718
|
+
}
|
|
2719
|
+
|
|
2720
|
+
.mm-fieldset__legend {
|
|
2721
|
+
font-size: 1rem;
|
|
2722
|
+
font-weight: 500;
|
|
2723
|
+
padding: 0 0.35rem;
|
|
2724
|
+
}
|
|
2725
|
+
|
|
2726
|
+
.mm-fieldset__required,
|
|
2727
|
+
.mm-fieldset__error,
|
|
2728
|
+
.mm-validation-summary {
|
|
2729
|
+
color: var(--mm-error-color);
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2732
|
+
.mm-fieldset__description,
|
|
2733
|
+
.mm-form-section__description {
|
|
2734
|
+
color: var(--mm-text-secondary);
|
|
2735
|
+
margin: 0 0 1rem;
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2738
|
+
.mm-fieldset__error {
|
|
2739
|
+
margin: 0.75rem 0 0;
|
|
2740
|
+
}
|
|
2741
|
+
|
|
2742
|
+
.mm-form-section {
|
|
2743
|
+
margin-bottom: 2rem;
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
.mm-form-section__header {
|
|
2747
|
+
margin-bottom: 1rem;
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
.mm-form-section__title {
|
|
2751
|
+
font-size: 1.3rem;
|
|
2752
|
+
margin: 0 0 0.4rem;
|
|
2753
|
+
}
|
|
2754
|
+
|
|
2755
|
+
.mm-validation-summary {
|
|
2756
|
+
background: color-mix(in srgb, var(--mm-error-color) 10%, transparent);
|
|
2757
|
+
border-left: 4px solid var(--mm-error-color);
|
|
2758
|
+
margin: 0 0 1.25rem;
|
|
2759
|
+
padding: 0.8rem 1rem;
|
|
2760
|
+
}
|
|
2761
|
+
|
|
2762
|
+
.mm-validation-summary__title {
|
|
2763
|
+
font-weight: 600;
|
|
2764
|
+
margin: 0 0 0.4rem;
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
.mm-validation-summary__list {
|
|
2768
|
+
margin: 0;
|
|
2769
|
+
padding-left: 1.2rem;
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
.mm-validation-summary a {
|
|
2773
|
+
color: inherit;
|
|
2774
|
+
text-decoration: underline;
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2502
2777
|
.file-upload-container {
|
|
2503
2778
|
margin-bottom: 1rem;
|
|
2504
2779
|
}
|