mithril-materialized 0.19.6 → 1.0.0-beta.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 +6 -2
- package/dist/autocomplete.d.ts +14 -7
- package/dist/button.d.ts +40 -40
- package/dist/carousel.d.ts +38 -18
- package/dist/chip.d.ts +31 -11
- package/dist/code-block.d.ts +8 -9
- package/dist/collapsible.d.ts +26 -22
- package/dist/collection.d.ts +49 -49
- package/dist/dropdown.d.ts +45 -46
- package/dist/floating-action-button.d.ts +37 -34
- package/dist/icon.d.ts +11 -11
- package/dist/index.css +7968 -2
- package/dist/index.d.ts +26 -28
- package/dist/index.esm.js +4211 -2
- package/dist/index.js +4265 -2
- package/dist/index.umd.js +4269 -2
- package/dist/input-options.d.ts +85 -81
- package/dist/input.d.ts +47 -42
- package/dist/label.d.ts +21 -22
- package/dist/material-box.d.ts +38 -21
- package/dist/material-icon.d.ts +14 -0
- package/dist/modal.d.ts +41 -26
- package/dist/option.d.ts +61 -52
- package/dist/pagination.d.ts +16 -20
- package/dist/parallax.d.ts +14 -13
- package/dist/pickers.d.ts +130 -8
- package/dist/radio.d.ts +41 -37
- package/dist/search-select.d.ts +41 -0
- package/dist/select.d.ts +46 -45
- package/dist/switch.d.ts +12 -13
- package/dist/tabs.d.ts +57 -45
- package/dist/utils.d.ts +43 -70
- package/package.json +55 -16
- package/sass/components/_badges.scss +59 -0
- package/sass/components/_buttons.scss +327 -0
- package/sass/components/_cards.scss +197 -0
- package/sass/components/_carousel.scss +92 -0
- package/sass/components/_chips.scss +92 -0
- package/sass/components/_collapsible.scss +94 -0
- package/sass/components/_color-classes.scss +34 -0
- package/sass/components/_color-variables.scss +371 -0
- package/sass/components/_datepicker.scss +251 -0
- package/sass/components/_dropdown.scss +90 -0
- package/sass/components/_global.scss +775 -0
- package/sass/components/_grid.scss +160 -0
- package/sass/components/_icons-material-design.scss +5 -0
- package/sass/components/_materialbox.scss +43 -0
- package/sass/components/_modal.scss +97 -0
- package/sass/components/_navbar.scss +211 -0
- package/sass/components/_normalize.scss +447 -0
- package/sass/components/_preloader.scss +336 -0
- package/sass/components/_pulse.scss +34 -0
- package/sass/components/_sidenav.scss +213 -0
- package/sass/components/_slider.scss +94 -0
- package/sass/components/_table_of_contents.scss +36 -0
- package/sass/components/_tabs.scss +102 -0
- package/sass/components/_tapTarget.scss +105 -0
- package/sass/components/_timepicker.scss +170 -0
- package/sass/components/_toast.scss +61 -0
- package/sass/components/_tooltip.scss +32 -0
- package/sass/components/_transitions.scss +13 -0
- package/sass/components/_typography.scss +61 -0
- package/sass/components/_variables.scss +352 -0
- package/sass/components/_waves.scss +114 -0
- package/sass/components/forms/_checkboxes.scss +203 -0
- package/sass/components/forms/_file-input.scss +50 -0
- package/sass/components/forms/_form-groups.scss +28 -0
- package/sass/components/forms/_forms.scss +24 -0
- package/sass/components/forms/_input-fields.scss +361 -0
- package/sass/components/forms/_radio-buttons.scss +118 -0
- package/sass/components/forms/_range.scss +164 -0
- package/sass/components/forms/_select.scss +193 -0
- package/sass/components/forms/_switches.scss +92 -0
- package/sass/materialize.scss +41 -0
- package/dist/index.css.map +0 -1
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.modern.js +0 -2
- package/dist/index.modern.js.map +0 -1
- package/dist/index.umd.js.map +0 -1
- package/dist/kanban.d.ts +0 -47
- package/dist/layout-form-generator.d.ts +0 -75
- package/dist/map-editor.d.ts +0 -63
- package/dist/timeline.d.ts +0 -24
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
/* Modal */
|
|
2
|
+
.datepicker-modal {
|
|
3
|
+
max-width: 325px;
|
|
4
|
+
min-width: 300px;
|
|
5
|
+
max-height: none;
|
|
6
|
+
overflow: visible;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.datepicker-container.modal-content {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
padding: 0;
|
|
13
|
+
overflow: visible;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.datepicker-controls {
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
width: 280px;
|
|
20
|
+
margin: 0 auto;
|
|
21
|
+
overflow: visible;
|
|
22
|
+
|
|
23
|
+
.selects-container {
|
|
24
|
+
display: flex;
|
|
25
|
+
overflow: visible;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.select-wrapper {
|
|
29
|
+
position: relative;
|
|
30
|
+
overflow: visible;
|
|
31
|
+
|
|
32
|
+
input {
|
|
33
|
+
&:focus {
|
|
34
|
+
border-bottom: none;
|
|
35
|
+
}
|
|
36
|
+
border-bottom: none;
|
|
37
|
+
text-align: center;
|
|
38
|
+
margin: 0;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.caret {
|
|
43
|
+
position: absolute;
|
|
44
|
+
right: 0;
|
|
45
|
+
top: 50%;
|
|
46
|
+
transform: translateY(-50%);
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
width: 16px;
|
|
49
|
+
height: 16px;
|
|
50
|
+
fill: rgba(0, 0, 0, 0.54);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.dropdown-content {
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: 100%;
|
|
56
|
+
left: 0;
|
|
57
|
+
right: 0;
|
|
58
|
+
background-color: white;
|
|
59
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
|
60
|
+
z-index: 20000;
|
|
61
|
+
border: 1px solid #ddd;
|
|
62
|
+
border-radius: 2px;
|
|
63
|
+
display: block;
|
|
64
|
+
opacity: 1;
|
|
65
|
+
|
|
66
|
+
.dropdown-item {
|
|
67
|
+
padding: 8px 16px;
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
transition: background-color 0.2s;
|
|
71
|
+
|
|
72
|
+
&:hover {
|
|
73
|
+
background-color: #f5f5f5;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&.selected {
|
|
77
|
+
background-color: #f5f5f5;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.select-year {
|
|
84
|
+
input {
|
|
85
|
+
width: 50px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.dropdown-content {
|
|
89
|
+
max-height: 60vh;
|
|
90
|
+
overflow-y: auto;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.select-month {
|
|
95
|
+
input {
|
|
96
|
+
width: 80px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.dropdown-content {
|
|
100
|
+
width: auto;
|
|
101
|
+
min-width: 120px;
|
|
102
|
+
left: auto;
|
|
103
|
+
right: 0;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.month-prev, .month-next {
|
|
109
|
+
margin-top: 4px;
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
background-color: transparent;
|
|
112
|
+
border: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
/* Date Display */
|
|
117
|
+
.datepicker-date-display {
|
|
118
|
+
flex: 1 auto;
|
|
119
|
+
background-color: #26a69a;
|
|
120
|
+
color: #fff;
|
|
121
|
+
padding: 20px 22px;
|
|
122
|
+
font-weight: 500;
|
|
123
|
+
|
|
124
|
+
.year-text {
|
|
125
|
+
display: block;
|
|
126
|
+
font-size: 1.5rem;
|
|
127
|
+
line-height: 25px;
|
|
128
|
+
color: rgba(255, 255, 255, 0.7);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.date-text {
|
|
132
|
+
display: block;
|
|
133
|
+
font-size: 2.8rem;
|
|
134
|
+
line-height: 47px;
|
|
135
|
+
font-weight: 500;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
/* Calendar */
|
|
141
|
+
.datepicker-calendar-container {
|
|
142
|
+
flex: 2.5 auto;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.datepicker-table {
|
|
146
|
+
width: 280px;
|
|
147
|
+
font-size: 1rem;
|
|
148
|
+
margin: 0 auto;
|
|
149
|
+
|
|
150
|
+
thead {
|
|
151
|
+
border-bottom: none;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
th {
|
|
155
|
+
padding: 10px 5px;
|
|
156
|
+
text-align: center;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
tr {
|
|
160
|
+
border: none;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
abbr {
|
|
164
|
+
text-decoration: none;
|
|
165
|
+
color: rgba(0, 0, 0, 0.54);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
td {
|
|
169
|
+
&.is-today {
|
|
170
|
+
color: #26a69a;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&.is-selected {
|
|
174
|
+
background-color: #26a69a;
|
|
175
|
+
color: #fff;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&.is-outside-current-month,
|
|
179
|
+
&.is-disabled {
|
|
180
|
+
color: rgba(0, 0, 0, 0.3);
|
|
181
|
+
pointer-events: none;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
border-radius: 50%;
|
|
185
|
+
padding: 0;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.datepicker-day-button {
|
|
190
|
+
&:focus {
|
|
191
|
+
background-color: #eee;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
background-color: transparent;
|
|
195
|
+
border: none;
|
|
196
|
+
line-height: 38px;
|
|
197
|
+
display: block;
|
|
198
|
+
width: 100%;
|
|
199
|
+
border-radius: 50%;
|
|
200
|
+
padding: 0 5px;
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
color: inherit;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
/* Footer */
|
|
207
|
+
.datepicker-footer {
|
|
208
|
+
width: 280px;
|
|
209
|
+
margin: 0 auto;
|
|
210
|
+
padding-bottom: 5px;
|
|
211
|
+
display: flex;
|
|
212
|
+
justify-content: space-between;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.datepicker-cancel,
|
|
216
|
+
.datepicker-clear,
|
|
217
|
+
.datepicker-today,
|
|
218
|
+
.datepicker-done {
|
|
219
|
+
color: #26a69a;
|
|
220
|
+
padding: 0 1rem;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.datepicker-clear {
|
|
224
|
+
color: #f44336;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
/* Media Queries */
|
|
229
|
+
@media only screen and (min-width: 601px) {
|
|
230
|
+
.datepicker-modal {
|
|
231
|
+
max-width: 625px;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.datepicker-container.modal-content {
|
|
235
|
+
flex-direction: row;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.datepicker-date-display {
|
|
239
|
+
flex: 0 1 270px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.datepicker-controls,
|
|
243
|
+
.datepicker-table,
|
|
244
|
+
.datepicker-footer {
|
|
245
|
+
width: 320px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.datepicker-day-button {
|
|
249
|
+
line-height: 44px;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use 'sass:math';
|
|
3
|
+
@use "variables";
|
|
4
|
+
@use "global";
|
|
5
|
+
|
|
6
|
+
.dropdown-content {
|
|
7
|
+
&:focus {
|
|
8
|
+
outline: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@extend .z-depth-1 !optional;
|
|
13
|
+
background-color: variables.$dropdown-bg-color;
|
|
14
|
+
margin: 0;
|
|
15
|
+
display: none;
|
|
16
|
+
min-width: 100px;
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
opacity: 0;
|
|
19
|
+
position: absolute;
|
|
20
|
+
left: 0;
|
|
21
|
+
top: 0;
|
|
22
|
+
z-index: 9999; // TODO: Check if this doesn't break other things
|
|
23
|
+
transform-origin: 0 0;
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
li {
|
|
27
|
+
&:hover, &.active {
|
|
28
|
+
background-color: variables.$dropdown-hover-bg-color;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:focus {
|
|
32
|
+
outline: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.divider {
|
|
36
|
+
min-height: 0;
|
|
37
|
+
height: 1px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
& > a, & > span {
|
|
41
|
+
font-size: 16px;
|
|
42
|
+
color: variables.$dropdown-color;
|
|
43
|
+
display: block;
|
|
44
|
+
line-height: 22px;
|
|
45
|
+
padding: math.div((variables.$dropdown-item-height - 22px), 2) 16px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
& > span > label {
|
|
49
|
+
top: 1px;
|
|
50
|
+
left: 0;
|
|
51
|
+
height: 18px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Icon alignment override
|
|
55
|
+
& > a > i {
|
|
56
|
+
height: inherit;
|
|
57
|
+
line-height: inherit;
|
|
58
|
+
float: left;
|
|
59
|
+
margin: 0 24px 0 0;
|
|
60
|
+
width: 24px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
clear: both;
|
|
65
|
+
color: variables.$off-black;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
min-height: variables.$dropdown-item-height;
|
|
68
|
+
line-height: 1.5rem;
|
|
69
|
+
width: 100%;
|
|
70
|
+
text-align: left;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
body.keyboard-focused {
|
|
75
|
+
.dropdown-content li:focus {
|
|
76
|
+
background-color: color.adjust(variables.$dropdown-hover-bg-color, $lightness: -8%);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Input field specificity bugfix
|
|
81
|
+
.input-field.col .dropdown-content [type="checkbox"] + label {
|
|
82
|
+
top: 1px;
|
|
83
|
+
left: 0;
|
|
84
|
+
height: 18px;
|
|
85
|
+
transform: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.dropdown-trigger {
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
}
|