mithril-materialized 1.4.2 → 2.0.0-beta.10

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.
Files changed (103) hide show
  1. package/README.md +286 -306
  2. package/dist/advanced.css +1888 -0
  3. package/dist/autocomplete.d.ts +12 -4
  4. package/dist/breadcrumb.d.ts +53 -0
  5. package/dist/button.d.ts +10 -10
  6. package/dist/carousel.d.ts +26 -7
  7. package/dist/chip.d.ts +2 -2
  8. package/dist/code-block.d.ts +2 -3
  9. package/dist/collapsible.d.ts +12 -7
  10. package/dist/collection.d.ts +8 -8
  11. package/dist/components.css +2310 -0
  12. package/dist/core.css +3402 -0
  13. package/dist/datepicker.d.ts +66 -0
  14. package/dist/dropdown.d.ts +5 -5
  15. package/dist/file-upload.d.ts +34 -0
  16. package/dist/floating-action-button.d.ts +9 -5
  17. package/dist/forms.css +2284 -0
  18. package/dist/icon.d.ts +2 -2
  19. package/dist/index.css +9284 -2
  20. package/dist/index.d.ts +13 -3
  21. package/dist/index.esm.js +6188 -2
  22. package/dist/index.js +6263 -2
  23. package/dist/index.min.css +8 -0
  24. package/dist/index.umd.js +6267 -2
  25. package/dist/input-options.d.ts +3 -1
  26. package/dist/input.d.ts +17 -12
  27. package/dist/label.d.ts +6 -5
  28. package/dist/material-box.d.ts +22 -4
  29. package/dist/material-icon.d.ts +14 -0
  30. package/dist/modal.d.ts +23 -7
  31. package/dist/option.d.ts +12 -11
  32. package/dist/pagination.d.ts +5 -9
  33. package/dist/parallax.d.ts +8 -6
  34. package/dist/pickers.css +487 -0
  35. package/dist/pushpin.d.ts +32 -0
  36. package/dist/radio.d.ts +10 -6
  37. package/dist/select.d.ts +5 -5
  38. package/dist/sidenav.d.ts +76 -0
  39. package/dist/switch.d.ts +4 -5
  40. package/dist/tabs.d.ts +18 -7
  41. package/dist/theme-switcher.d.ts +49 -0
  42. package/dist/timepicker.d.ts +42 -0
  43. package/dist/toast.d.ts +45 -0
  44. package/dist/tooltip.d.ts +59 -0
  45. package/dist/utilities.css +3197 -0
  46. package/dist/utils.d.ts +17 -0
  47. package/dist/wizard.d.ts +58 -0
  48. package/package.json +47 -14
  49. package/sass/components/_badges.scss +59 -0
  50. package/sass/components/_breadcrumb.scss +248 -0
  51. package/sass/components/_buttons.scss +327 -0
  52. package/sass/components/_cards.scss +197 -0
  53. package/sass/components/_carousel.scss +92 -0
  54. package/sass/components/_chips.scss +92 -0
  55. package/sass/components/_collapsible.scss +94 -0
  56. package/sass/components/_color-classes.scss +34 -0
  57. package/sass/components/_color-variables.scss +371 -0
  58. package/sass/components/_datepicker.scss +282 -0
  59. package/sass/components/_dropdown.scss +90 -0
  60. package/sass/components/_file-upload.scss +228 -0
  61. package/sass/components/_global.scss +777 -0
  62. package/sass/components/_grid.scss +160 -0
  63. package/sass/components/_icons-material-design.scss +5 -0
  64. package/sass/components/_materialbox.scss +43 -0
  65. package/sass/components/_modal.scss +100 -0
  66. package/sass/components/_navbar.scss +219 -0
  67. package/sass/components/_normalize.scss +447 -0
  68. package/sass/components/_preloader.scss +336 -0
  69. package/sass/components/_pulse.scss +34 -0
  70. package/sass/components/_sidenav.scss +370 -0
  71. package/sass/components/_slider.scss +94 -0
  72. package/sass/components/_table_of_contents.scss +36 -0
  73. package/sass/components/_tabs.scss +103 -0
  74. package/sass/components/_tapTarget.scss +105 -0
  75. package/sass/components/_theme-switcher.scss +120 -0
  76. package/sass/components/_theme-variables.scss +205 -0
  77. package/sass/components/_timepicker.scss +262 -0
  78. package/sass/components/_toast.scss +61 -0
  79. package/sass/components/_tooltip.scss +32 -0
  80. package/sass/components/_transitions.scss +13 -0
  81. package/sass/components/_typography.scss +61 -0
  82. package/sass/components/_variables.scss +352 -0
  83. package/sass/components/_waves.scss +114 -0
  84. package/sass/components/_wizard.scss +416 -0
  85. package/sass/components/forms/_checkboxes.scss +203 -0
  86. package/sass/components/forms/_file-input.scss +50 -0
  87. package/sass/components/forms/_form-groups.scss +28 -0
  88. package/sass/components/forms/_forms.scss +24 -0
  89. package/sass/components/forms/_input-fields.scss +383 -0
  90. package/sass/components/forms/_radio-buttons.scss +118 -0
  91. package/sass/components/forms/_range.scss +164 -0
  92. package/sass/components/forms/_select.scss +193 -0
  93. package/sass/components/forms/_switches.scss +92 -0
  94. package/sass/materialize.scss +48 -0
  95. package/dist/index.css.map +0 -1
  96. package/dist/index.esm.js.map +0 -1
  97. package/dist/index.js.map +0 -1
  98. package/dist/index.modern.js +0 -2
  99. package/dist/index.modern.js.map +0 -1
  100. package/dist/index.umd.js.map +0 -1
  101. package/dist/map-editor.d.ts +0 -63
  102. package/dist/pickers.d.ts +0 -6
  103. package/dist/timeline.d.ts +0 -24
@@ -0,0 +1,160 @@
1
+ @use "sass:string";
2
+ @use 'sass:math';
3
+ @use "variables";
4
+
5
+ .container {
6
+ margin: 0 auto;
7
+ max-width: 1280px;
8
+ width: 90%;
9
+ }
10
+ @media #{variables.$medium-and-up} {
11
+ .container {
12
+ width: 85%;
13
+ }
14
+ }
15
+ @media #{variables.$large-and-up} {
16
+ .container {
17
+ width: 70%;
18
+ }
19
+ }
20
+ .col .row {
21
+ margin-left: math.div(-1 * variables.$gutter-width, 2);
22
+ margin-right: math.div(-1 * variables.$gutter-width, 2);
23
+ }
24
+
25
+ .section {
26
+ padding-top: 1rem;
27
+ padding-bottom: 1rem;
28
+
29
+ &.no-pad {
30
+ padding: 0;
31
+ }
32
+ &.no-pad-bot {
33
+ padding-bottom: 0;
34
+ }
35
+ &.no-pad-top {
36
+ padding-top: 0;
37
+ }
38
+ }
39
+
40
+
41
+ // Mixins to eliminate code repitition
42
+ @mixin reset-offset {
43
+ margin-left: auto;
44
+ left: auto;
45
+ right: auto;
46
+ }
47
+ @mixin grid-classes($size, $i, $perc) {
48
+ &.offset-#{$size}#{$i} {
49
+ margin-left: $perc;
50
+ }
51
+ &.pull-#{$size}#{$i} {
52
+ right: $perc;
53
+ }
54
+ &.push-#{$size}#{$i} {
55
+ left: $perc;
56
+ }
57
+ }
58
+
59
+
60
+ .row {
61
+ margin-left: auto;
62
+ margin-right: auto;
63
+ margin-bottom: 20px;
64
+
65
+ // Clear floating children
66
+ &:after {
67
+ content: "";
68
+ display: table;
69
+ clear: both;
70
+ }
71
+
72
+ .col {
73
+ float: left;
74
+ box-sizing: border-box;
75
+ padding: 0 math.div(variables.$gutter-width, 2);
76
+ min-height: 1px;
77
+
78
+ &[class*="push-"],
79
+ &[class*="pull-"] {
80
+ position: relative;
81
+ }
82
+
83
+ $i: 1;
84
+ @while $i <= variables.$num-cols {
85
+ $perc: string.unquote(math.div(100, math.div(variables.$num-cols, $i)) + "%");
86
+ &.s#{$i} {
87
+ width: $perc;
88
+ @include reset-offset;
89
+ }
90
+ $i: $i + 1;
91
+ }
92
+
93
+ $i: 1;
94
+ @while $i <= variables.$num-cols {
95
+ $perc: string.unquote(math.div(100, math.div(variables.$num-cols, $i)) + "%");
96
+ @include grid-classes("s", $i, $perc);
97
+ $i: $i + 1;
98
+ }
99
+
100
+ @media #{variables.$medium-and-up} {
101
+
102
+ $i: 1;
103
+ @while $i <= variables.$num-cols {
104
+ $perc: string.unquote(math.div(100, math.div(variables.$num-cols, $i)) + "%");
105
+ &.m#{$i} {
106
+ width: $perc;
107
+ @include reset-offset;
108
+ }
109
+ $i: $i + 1
110
+ }
111
+
112
+ $i: 1;
113
+ @while $i <= variables.$num-cols {
114
+ $perc: string.unquote(math.div(100, math.div(variables.$num-cols, $i)) + "%");
115
+ @include grid-classes("m", $i, $perc);
116
+ $i: $i + 1;
117
+ }
118
+ }
119
+
120
+ @media #{variables.$large-and-up} {
121
+
122
+ $i: 1;
123
+ @while $i <= variables.$num-cols {
124
+ $perc: string.unquote(math.div(100, math.div(variables.$num-cols, $i)) + "%");
125
+ &.l#{$i} {
126
+ width: $perc;
127
+ @include reset-offset;
128
+ }
129
+ $i: $i + 1;
130
+ }
131
+
132
+ $i: 1;
133
+ @while $i <= variables.$num-cols {
134
+ $perc: string.unquote(math.div(100, math.div(variables.$num-cols, $i)) + "%");
135
+ @include grid-classes("l", $i, $perc);
136
+ $i: $i + 1;
137
+ }
138
+ }
139
+
140
+ @media #{variables.$extra-large-and-up} {
141
+
142
+ $i: 1;
143
+ @while $i <= variables.$num-cols {
144
+ $perc: string.unquote(math.div(100, math.div(variables.$num-cols, $i)) + "%");
145
+ &.xl#{$i} {
146
+ width: $perc;
147
+ @include reset-offset;
148
+ }
149
+ $i: $i + 1;
150
+ }
151
+
152
+ $i: 1;
153
+ @while $i <= variables.$num-cols {
154
+ $perc: string.unquote(math.div(100, math.div(variables.$num-cols, $i)) + "%");
155
+ @include grid-classes("xl", $i, $perc);
156
+ $i: $i + 1;
157
+ }
158
+ }
159
+ }
160
+ }
@@ -0,0 +1,5 @@
1
+ /* This is needed for some mobile phones to display the Google Icon font properly */
2
+ .material-icons {
3
+ text-rendering: optimizeLegibility;
4
+ font-feature-settings: 'liga';
5
+ }
@@ -0,0 +1,43 @@
1
+ .materialboxed {
2
+ &:hover {
3
+ &:not(.active) {
4
+ opacity: .8;
5
+ }
6
+ }
7
+
8
+ display: block;
9
+ cursor: zoom-in;
10
+ position: relative;
11
+ transition: opacity .4s;
12
+ -webkit-backface-visibility: hidden;
13
+
14
+ &.active {
15
+ cursor: zoom-out;
16
+ }
17
+ }
18
+
19
+ #materialbox-overlay {
20
+ position:fixed;
21
+ top: 0;
22
+ right: 0;
23
+ bottom: 0;
24
+ left: 0;
25
+ background-color: #292929;
26
+ z-index: 1000;
27
+ will-change: opacity;
28
+ }
29
+
30
+ .materialbox-caption {
31
+ position: fixed;
32
+ display: none;
33
+ color: #fff;
34
+ line-height: 50px;
35
+ bottom: 0;
36
+ left: 0;
37
+ width: 100%;
38
+ text-align: center;
39
+ padding: 0% 15%;
40
+ height: 50px;
41
+ z-index: 1000;
42
+ -webkit-font-smoothing: antialiased;
43
+ }
@@ -0,0 +1,100 @@
1
+ @use "variables";
2
+ @use "global";
3
+
4
+ .modal {
5
+ &:focus {
6
+ outline: none;
7
+ }
8
+
9
+ @extend .z-depth-5 !optional;
10
+
11
+ display: none;
12
+ position: fixed;
13
+ left: 0;
14
+ right: 0;
15
+ background-color: var(--mm-modal-background, #fafafa);
16
+ color: var(--mm-text-primary, rgba(0, 0, 0, 0.87));
17
+ padding: 0;
18
+ max-height: 70%;
19
+ width: 55%;
20
+ margin: auto;
21
+ overflow-y: auto;
22
+
23
+ border-radius: 2px;
24
+ will-change: top, opacity;
25
+
26
+ @media #{variables.$medium-and-down} {
27
+ width: 80%;
28
+ }
29
+
30
+ h1,h2,h3,h4 {
31
+ margin-top: 0;
32
+ }
33
+
34
+ .modal-content {
35
+ padding: 24px;
36
+ background-color: var(--mm-modal-background, #fafafa);
37
+ color: var(--mm-text-primary, rgba(0, 0, 0, 0.87));
38
+ }
39
+ .modal-close {
40
+ cursor: pointer;
41
+ }
42
+
43
+ .modal-footer {
44
+ border-radius: 0 0 2px 2px;
45
+ background-color: var(--mm-modal-background, #fafafa);
46
+ padding: 4px 6px;
47
+ height: 56px;
48
+ width: 100%;
49
+ text-align: right;
50
+
51
+ .btn, .btn-flat {
52
+ margin: 6px 0;
53
+ }
54
+ }
55
+ }
56
+ .modal-overlay {
57
+ position: fixed;
58
+ z-index: 999;
59
+ top: -25%;
60
+ left: 0;
61
+ bottom: 0;
62
+ right: 0;
63
+ height: 125%;
64
+ width: 100%;
65
+ background: #000;
66
+ display: none;
67
+
68
+ will-change: opacity;
69
+ }
70
+
71
+ // Modal with fixed action footer
72
+ .modal.modal-fixed-footer {
73
+ padding: 0;
74
+ height: 70%;
75
+
76
+ .modal-content {
77
+ position: absolute;
78
+ height: calc(100% - 56px);
79
+ max-height: 100%;
80
+ width: 100%;
81
+ overflow-y: auto;
82
+ }
83
+
84
+ .modal-footer {
85
+ border-top: 1px solid rgba(0,0,0,.1);
86
+ position: absolute;
87
+ bottom: 0;
88
+ }
89
+ }
90
+
91
+ // Modal Bottom Sheet Style
92
+ .modal.bottom-sheet {
93
+ top: auto;
94
+ bottom: -100%;
95
+ margin: 0;
96
+ width: 100%;
97
+ max-height: 45%;
98
+ border-radius: 0;
99
+ will-change: bottom, opacity;
100
+ }
@@ -0,0 +1,219 @@
1
+ @use "variables";
2
+ @use "global";
3
+
4
+ nav {
5
+ &.nav-extended {
6
+ height: auto;
7
+
8
+ .nav-wrapper {
9
+ min-height: variables.$navbar-height-mobile;
10
+ height: auto;
11
+ }
12
+
13
+ .nav-content {
14
+ position: relative;
15
+ line-height: normal;
16
+ }
17
+ }
18
+
19
+ color: var(--mm-nav-text, variables.$navbar-font-color);
20
+ @extend .z-depth-1 !optional;
21
+ background-color: var(--mm-nav-background, variables.$primary-color);
22
+ width: 100%;
23
+ height: variables.$navbar-height-mobile;
24
+ line-height: variables.$navbar-line-height-mobile;
25
+
26
+ a { color: var(--mm-nav-text, variables.$navbar-font-color); }
27
+
28
+ i,
29
+ [class^="mdi-"], [class*="mdi-"],
30
+ i.material-icons {
31
+ display: block;
32
+ font-size: 24px;
33
+ height: variables.$navbar-height-mobile;
34
+ line-height: variables.$navbar-line-height-mobile;
35
+ }
36
+
37
+ .nav-wrapper {
38
+ position: relative;
39
+ height: 100%;
40
+ }
41
+
42
+ @media #{variables.$large-and-up} {
43
+ a.sidenav-trigger { display: none; }
44
+ }
45
+
46
+
47
+ // Collapse button
48
+ .sidenav-trigger {
49
+ float: left;
50
+ position: relative;
51
+ z-index: 1;
52
+ height: variables.$navbar-height-mobile;
53
+ margin: 0 18px;
54
+
55
+ i {
56
+ height: variables.$navbar-height-mobile;
57
+ line-height: variables.$navbar-line-height-mobile;
58
+ }
59
+ }
60
+
61
+
62
+ // Logo
63
+ .brand-logo {
64
+ position: absolute;
65
+ color: variables.$navbar-font-color;
66
+ display: inline-block;
67
+ font-size: variables.$navbar-brand-font-size;
68
+ padding: 0;
69
+
70
+ &.center {
71
+ left: 50%;
72
+ transform: translateX(-50%);
73
+ }
74
+
75
+ @media #{variables.$medium-and-down} {
76
+ left: 50%;
77
+ transform: translateX(-50%);
78
+
79
+ &.left, &.right {
80
+ padding: 0;
81
+ transform: none;
82
+ }
83
+
84
+ &.left { left: 0.5rem; }
85
+ &.right {
86
+ right: 0.5rem;
87
+ left: auto;
88
+ }
89
+ }
90
+
91
+ &.right {
92
+ right: 0.5rem;
93
+ padding: 0;
94
+ }
95
+
96
+ i,
97
+ [class^="mdi-"], [class*="mdi-"],
98
+ i.material-icons {
99
+ float: left;
100
+ margin-right: 15px;
101
+ }
102
+ }
103
+
104
+
105
+ // Title
106
+ .nav-title {
107
+ display: inline-block;
108
+ font-size: 32px;
109
+ padding: 28px 0;
110
+ }
111
+
112
+
113
+ // Navbar Links
114
+ ul {
115
+ margin: 0;
116
+
117
+ li {
118
+ transition: background-color .3s;
119
+ float: left;
120
+ padding: 0;
121
+
122
+ &.active {
123
+ background-color: var(--mm-primary-color-light, rgba(0,0,0,.1));
124
+
125
+ a {
126
+ color: var(--mm-nav-active-text, variables.$navbar-font-color);
127
+ }
128
+
129
+ i, .material-icons {
130
+ color: var(--mm-nav-active-text, variables.$navbar-font-color);
131
+ }
132
+ }
133
+ }
134
+ a {
135
+ transition: background-color .3s;
136
+ font-size: variables.$navbar-font-size;
137
+ color: variables.$navbar-font-color;
138
+ display: block;
139
+ padding: 0 15px;
140
+ cursor: pointer;
141
+
142
+ &.btn, &.btn-large, &.btn-flat, &.btn-floating {
143
+ margin-top: -2px;
144
+ margin-left: 15px;
145
+ margin-right: 15px;
146
+
147
+ & > .material-icons {
148
+ height: inherit;
149
+ line-height: inherit;
150
+ }
151
+ }
152
+
153
+ &:hover {
154
+ background-color: rgba(0,0,0,.1);
155
+ }
156
+ }
157
+
158
+ &.left {
159
+ float: left;
160
+ }
161
+ }
162
+
163
+ // Navbar Search Form
164
+ form {
165
+ height: 100%;
166
+ }
167
+
168
+ .input-field {
169
+ margin: 0;
170
+ height: 100%;
171
+
172
+ input {
173
+ height: 100%;
174
+ font-size: 1.2rem;
175
+ border: none;
176
+ padding-left: 2rem;
177
+
178
+ &:focus, &[type=text]:valid, &[type=password]:valid,
179
+ &[type=email]:valid, &[type=url]:valid, &[type=date]:valid {
180
+ border: none;
181
+ box-shadow: none;
182
+ }
183
+ }
184
+
185
+ label {
186
+ top: 0;
187
+ left: 0;
188
+
189
+ i {
190
+ color: rgba(255,255,255,.7);
191
+ transition: color .3s;
192
+ }
193
+ &.active i { color: var(--mm-nav-text, variables.$navbar-font-color); }
194
+ }
195
+ }
196
+ }
197
+
198
+ // Fixed Navbar
199
+ .navbar-fixed {
200
+ position: relative;
201
+ height: variables.$navbar-height-mobile;
202
+ z-index: 997;
203
+
204
+ nav {
205
+ position: fixed;
206
+ }
207
+ }
208
+ @media #{variables.$medium-and-up} {
209
+ nav.nav-extended .nav-wrapper {
210
+ min-height: variables.$navbar-height;
211
+ }
212
+ nav, nav .nav-wrapper i, nav a.sidenav-trigger, nav a.sidenav-trigger i {
213
+ height: variables.$navbar-height;
214
+ line-height: variables.$navbar-line-height;
215
+ }
216
+ .navbar-fixed {
217
+ height: variables.$navbar-height;
218
+ }
219
+ }