kmaterialize 2.0.0 → 2.3.3-1.0.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/LICENSE +21 -21
- package/README.md +55 -91
- package/components/appbar/_navbar.old.scss +223 -0
- package/components/appbar/appbar.css +235 -0
- package/components/appbar/appbar.mjs +54 -0
- package/components/appbar/appbar.test.mjs +9 -0
- package/components/atomic/atomic.mjs +19 -0
- package/components/atomic/component.mjs +67 -0
- package/components/badge/_badges.scss +75 -0
- package/components/badge/badge.mjs +11 -0
- package/components/breadcrumb/_breadcrumb.scss +27 -0
- package/components/button/_buttons.scss +352 -0
- package/components/button/button.mjs +11 -0
- package/components/button/buttons.stories.ts +150 -0
- package/components/button/buttons.ts +282 -0
- package/components/button/examples.iso.js +18 -0
- package/components/button/fabSpec.js +65 -0
- package/components/button/test-button.mjs +16 -0
- package/components/card/_cards.scss +229 -0
- package/components/card/card.mjs +10 -0
- package/components/card/cards.ts +185 -0
- package/components/card/cardsSpec.js +269 -0
- package/components/carousel/_carousel.scss +93 -0
- package/components/carousel/_slider.scss +119 -0
- package/components/carousel/carousel.ts +693 -0
- package/components/carousel/carouselSpec.js +61 -0
- package/components/carousel/slider.ts +431 -0
- package/components/carousel/sliderSpec.js +99 -0
- package/components/checkbox/_checkboxes.scss +281 -0
- package/components/checkbox/checkbox.mdx +24 -0
- package/components/checkbox/checkbox.stories.ts +120 -0
- package/components/chip/chip.mjs +37 -0
- package/components/chip/chip.test.mjs +10 -0
- package/components/chip/chips.css +126 -0
- package/components/chip/chips.mdx +33 -0
- package/components/chip/chips.ts +440 -0
- package/components/chip/chipsSpec.js +165 -0
- package/components/chip/readme.md +323 -0
- package/components/collapsible/_collapsible.scss +82 -0
- package/components/collapsible/collapsible.ts +230 -0
- package/components/collapsible/collapsibleSpec.js +240 -0
- package/components/datepicker/_datepicker.scss +268 -0
- package/components/datepicker/datepicker.ts +1450 -0
- package/components/datepicker/datepickerSpec.js +162 -0
- package/components/dialog/_materialbox.scss +42 -0
- package/components/dialog/_modal.scss +79 -0
- package/components/dialog/materialbox.ts +446 -0
- package/components/dialog/materialboxSpec.js +37 -0
- package/components/dialog/modal.ts +111 -0
- package/components/dialog/modalSpec.js +83 -0
- package/components/dialog/readme.md +5 -0
- package/components/divider/readme.md +15 -0
- package/components/dropdown/_dropdown.scss +83 -0
- package/components/dropdown/dropdown.ts +653 -0
- package/components/dropdown/dropdownSpec.js +108 -0
- package/components/list/_collection.scss +114 -0
- package/components/list/_list.scss +6 -0
- package/components/list/list.mjs +58 -0
- package/components/list/list.test.mjs +16 -0
- package/components/loading/loading.mjs +26 -0
- package/components/loading/loading.test.mjs +10 -0
- package/components/navigation-bar/_old +582 -0
- package/components/navigation-bar/navigation-bar.mdx +20 -0
- package/components/navigation-bar/navigation-bar.stories.ts +39 -0
- package/components/navigation-drawer/_sidenav.scss +247 -0
- package/components/navigation-drawer/sidenav.ts +546 -0
- package/components/navigation-drawer/sidenavSpec.js +124 -0
- package/components/pagination/_pagination.scss +47 -0
- package/components/progress/_preloader.scss +416 -0
- package/components/radio-button/_radio-buttons.scss +112 -0
- package/components/radio-button/radio-buttons.mdx +28 -0
- package/components/radio-button/radio-buttons.stories.ts +51 -0
- package/components/search/autocomplete.ts +620 -0
- package/components/search/autocompleteSpec.js +321 -0
- package/components/slider/_range.scss +157 -0
- package/components/slider/range.ts +216 -0
- package/components/snackbar/_toast.scss +68 -0
- package/components/snackbar/toastSpec.js +132 -0
- package/components/snackbar/toasts.ts +312 -0
- package/components/switch/_switches.scss +121 -0
- package/components/tabs/_tabs.scss +171 -0
- package/components/tabs/tabs.mjs +31 -0
- package/components/tabs/tabs.ts +358 -0
- package/components/tabs/tabsSpec.js +180 -0
- package/components/textfield/_file-input.scss +41 -0
- package/components/textfield/_input-fields.scss +368 -0
- package/components/textfield/_select.scss +104 -0
- package/components/textfield/formfields.css +311 -0
- package/components/textfield/forms.ts +182 -0
- package/components/textfield/formsSpec.js +142 -0
- package/components/textfield/select.ts +472 -0
- package/components/textfield/selectSpec.js +390 -0
- package/components/textfield/textfield.mjs +29 -0
- package/components/textfield/textfield.test.mjs +10 -0
- package/components/timepicker/_timepicker.scss +362 -0
- package/components/timepicker/timepicker.ts +905 -0
- package/components/tooltip/_tooltip.scss +40 -0
- package/components/tooltip/tooltip.ts +380 -0
- package/components/tooltip/tooltipSpec.js +145 -0
- package/dist/css/materialize.colors.min.css +6 -0
- package/dist/css/materialize.css +7578 -6326
- package/dist/css/materialize.min.css +6 -13
- package/dist/css/materialize.min.css.map +1 -0
- package/dist/js/materialize.cjs.js +8410 -0
- package/dist/js/materialize.d.ts +2625 -0
- package/dist/js/materialize.js +8415 -12374
- package/dist/js/materialize.min.js +6 -6
- package/dist/js/materialize.mjs +8382 -0
- package/package.json +82 -47
- package/sass/_colors.scss +417 -0
- package/sass/_global.scss +490 -0
- package/sass/_grid.scss +172 -0
- package/sass/_table_of_contents.scss +28 -0
- package/sass/_tapTarget.scss +102 -0
- package/sass/_typography.scss +58 -0
- package/sass/_variables.scss +56 -0
- package/sass/materialize.scss +51 -0
- package/sass/mixins.module.scss +168 -0
- package/extras/noUiSlider/nouislider.css +0 -406
- package/extras/noUiSlider/nouislider.js +0 -2147
- package/extras/noUiSlider/nouislider.min.js +0 -1
- package/js/anime.min.js +0 -34
- package/js/autocomplete.js +0 -448
- package/js/buttons.js +0 -354
- package/js/cards.js +0 -40
- package/js/carousel.js +0 -717
- package/js/cash.js +0 -960
- package/js/characterCounter.js +0 -136
- package/js/chips.js +0 -481
- package/js/collapsible.js +0 -275
- package/js/component.js +0 -44
- package/js/datepicker.js +0 -975
- package/js/dropdown.js +0 -635
- package/js/forms.js +0 -275
- package/js/global.js +0 -444
- package/js/materialbox.js +0 -453
- package/js/modal.js +0 -382
- package/js/parallax.js +0 -138
- package/js/pushpin.js +0 -148
- package/js/range.js +0 -263
- package/js/scrollspy.js +0 -295
- package/js/select.js +0 -450
- package/js/sidenav.js +0 -580
- package/js/slider.js +0 -359
- package/js/tabs.js +0 -402
- package/js/tapTarget.js +0 -314
- package/js/timepicker.js +0 -647
- package/js/toasts.js +0 -310
- package/js/tooltip.js +0 -303
- package/js/waves.js +0 -335
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
@use '../../sass/variables' as *;
|
|
2
|
+
|
|
3
|
+
.timepicker-container {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
max-width: 325px;
|
|
7
|
+
padding: 0;
|
|
8
|
+
background-color: var(--md-sys-color-inverse-on-surface);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.text-primary {
|
|
12
|
+
color: var(--md-sys-color-on-primary);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Clock Digital Display */
|
|
16
|
+
.timepicker-digital-display {
|
|
17
|
+
width: auto;
|
|
18
|
+
flex: 1 auto;
|
|
19
|
+
// background-color: var(--md-sys-color-surface);
|
|
20
|
+
padding: 2rem .71rem .67rem .71rem;
|
|
21
|
+
font-weight: 300;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.timepicker-text-container {
|
|
25
|
+
display: flex;
|
|
26
|
+
font-size: 4rem;
|
|
27
|
+
text-align: left;
|
|
28
|
+
color: var(--font-on-primary-color-medium);
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
/*position: relative;*/
|
|
31
|
+
user-select: none;
|
|
32
|
+
padding: 1rem 1rem 1.3rem 1rem;
|
|
33
|
+
|
|
34
|
+
input[type=text]{
|
|
35
|
+
height: 4rem;
|
|
36
|
+
color: var(--md-sys-color-secondary);
|
|
37
|
+
border-bottom: 0px;
|
|
38
|
+
font-size: 4rem;
|
|
39
|
+
direction: ltr;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.timepicker-display-column {
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.timepicker-display-digital-clock {
|
|
48
|
+
flex-grow: 1;
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.timepicker-input-hours-wrapper,
|
|
53
|
+
.timepicker-input-minutes-wrapper {
|
|
54
|
+
width: 6.85rem;
|
|
55
|
+
height: 5.75rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.timepicker-input-hours,
|
|
59
|
+
.timepicker-input-minutes,
|
|
60
|
+
.timepicker-span-am-pm div {
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
input[type=text].timepicker-input-hours,
|
|
65
|
+
input[type=text].timepicker-input-minutes {
|
|
66
|
+
height: 100%;
|
|
67
|
+
padding: 1.33rem .8rem;
|
|
68
|
+
border: 0;
|
|
69
|
+
text-align: center;
|
|
70
|
+
color: var(--md-sys-color-on-background);
|
|
71
|
+
background-color: var(--md-sys-color-surface-variant);
|
|
72
|
+
|
|
73
|
+
&:focus {
|
|
74
|
+
background-color: var(--md-sys-color-primary-container);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.timepicker-input-divider-wrapper {
|
|
79
|
+
width: 1.6rem;
|
|
80
|
+
text-align: center;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/*input[type=text].text-primary {
|
|
84
|
+
color: var(--md-sys-color-on-background);
|
|
85
|
+
}*/
|
|
86
|
+
|
|
87
|
+
.timepicker-display-am-pm {
|
|
88
|
+
font-size: 1.3rem;
|
|
89
|
+
/*position: absolute;
|
|
90
|
+
top: 1rem;
|
|
91
|
+
right: 1rem;*/
|
|
92
|
+
font-weight: 400;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.timepicker-span-am-pm {
|
|
96
|
+
height: 5.75rem;
|
|
97
|
+
max-width: 3.5rem;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.timepicker-container .am-btn,
|
|
101
|
+
.timepicker-container .pm-btn {
|
|
102
|
+
width: 3.6rem;
|
|
103
|
+
height: 50%;
|
|
104
|
+
padding-left: calc(var(--btn-padding) / 1.8);
|
|
105
|
+
padding-right: calc(var(--btn-padding) / 1.8);
|
|
106
|
+
line-height: 2rem;
|
|
107
|
+
vertical-align: middle;
|
|
108
|
+
text-align: center;
|
|
109
|
+
// background-color: transparent;
|
|
110
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.timepicker-container .am-btn {
|
|
114
|
+
border-bottom-right-radius: 0;
|
|
115
|
+
border-bottom-left-radius: 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.timepicker-container .pm-btn {
|
|
119
|
+
border-top: 0;
|
|
120
|
+
border-top-left-radius: 0;
|
|
121
|
+
border-top-right-radius: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Analog Clock Display */
|
|
125
|
+
.timepicker-analog-display {
|
|
126
|
+
flex: 2.5 auto;
|
|
127
|
+
padding: .67rem;
|
|
128
|
+
// background-color: var(--md-sys-color-surface);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.timepicker-plate {
|
|
132
|
+
background-color: var(--md-sys-color-surface-variant);
|
|
133
|
+
border-radius: 50%;
|
|
134
|
+
width: 260px;
|
|
135
|
+
height: 260px;
|
|
136
|
+
overflow: visible;
|
|
137
|
+
position: relative;
|
|
138
|
+
margin: 0 1.6rem 1.6rem 1.6rem;
|
|
139
|
+
user-select: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.timepicker-canvas,
|
|
143
|
+
.timepicker-dial {
|
|
144
|
+
position: absolute;
|
|
145
|
+
left: 0;
|
|
146
|
+
right: 0;
|
|
147
|
+
top: 0;
|
|
148
|
+
bottom: 0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.timepicker-minutes {
|
|
152
|
+
visibility: hidden;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.timepicker-tick {
|
|
156
|
+
border-radius: 50%;
|
|
157
|
+
color: var(--md-sys-color-on-background);
|
|
158
|
+
line-height: 40px;
|
|
159
|
+
text-align: center;
|
|
160
|
+
width: 40px;
|
|
161
|
+
height: 40px;
|
|
162
|
+
position: absolute;
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
font-size: 15px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.timepicker-tick.active,
|
|
168
|
+
.timepicker-tick:hover {
|
|
169
|
+
background-color: color-mix(in srgb, transparent, var(--md-sys-color-primary) 6%);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.timepicker-dial {
|
|
173
|
+
transition: transform 350ms, opacity 350ms;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.timepicker-dial-out {
|
|
177
|
+
opacity: 0;
|
|
178
|
+
|
|
179
|
+
&.timepicker-hours {
|
|
180
|
+
transform: scale(1.1, 1.1);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&.timepicker-minutes {
|
|
184
|
+
transform: scale(.8, .8);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.timepicker-canvas {
|
|
189
|
+
transition: opacity 175ms;
|
|
190
|
+
|
|
191
|
+
line {
|
|
192
|
+
stroke: var(--md-sys-color-primary);
|
|
193
|
+
stroke-width: 4;
|
|
194
|
+
stroke-linecap: round;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.timepicker-canvas-out {
|
|
199
|
+
opacity: 0.25;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.timepicker-canvas-bearing {
|
|
203
|
+
stroke: none;
|
|
204
|
+
fill: var(--md-sys-color-primary);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.timepicker-canvas-bg {
|
|
208
|
+
stroke: none;
|
|
209
|
+
fill: var(--md-sys-color-primary);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
/* Footer */
|
|
214
|
+
.timepicker-footer {
|
|
215
|
+
margin: 0 auto;
|
|
216
|
+
padding: 5px 1rem;
|
|
217
|
+
display: flex;
|
|
218
|
+
justify-content: space-between;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.timepicker-clear {
|
|
222
|
+
color: var(--md-sys-color-error);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.timepicker-close {
|
|
226
|
+
color: var(--md-sys-color-primary);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.timepicker-clear,
|
|
230
|
+
.timepicker-close {
|
|
231
|
+
padding: 0 20px;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* Display modes */
|
|
235
|
+
.timepicker-modal {
|
|
236
|
+
max-width: 326px;
|
|
237
|
+
max-height: none;
|
|
238
|
+
background-color: var(--md-sys-color-inverse-on-surface);
|
|
239
|
+
overflow-x: hidden;
|
|
240
|
+
|
|
241
|
+
// Reset margins and paddings since they are defined by the modal instance
|
|
242
|
+
.timepicker-container {
|
|
243
|
+
margin-left: calc(-1 * var(--modal-padding));
|
|
244
|
+
margin-right: calc(-1 * var(--modal-padding));
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.modal-header + .modal-content {
|
|
248
|
+
.timepicker-digital-display {
|
|
249
|
+
padding-top: 0;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.timepicker-text-container {
|
|
253
|
+
padding-top: 4px;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.timepicker-analog-display {
|
|
258
|
+
padding-bottom: 0;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.timepicker-plate {
|
|
262
|
+
margin-bottom: 0;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* Media Queries */
|
|
267
|
+
@media #{$large-and-up} {
|
|
268
|
+
.timepicker-container {
|
|
269
|
+
width: auto;
|
|
270
|
+
max-width: 620px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.timepicker-container {
|
|
274
|
+
flex-direction: row;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.timepicker-digital-display {
|
|
278
|
+
padding: .67rem;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.timepicker-text-container {
|
|
282
|
+
/*top: 31%;*/
|
|
283
|
+
flex-direction: column;
|
|
284
|
+
margin-top: 4.8rem;
|
|
285
|
+
text-align: center;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.timepicker-display-column {
|
|
289
|
+
padding: 0 3%;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.timepicker-display-am-pm {
|
|
293
|
+
margin-top: 1.1rem;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.timepicker-span-am-pm {
|
|
297
|
+
display: flex;
|
|
298
|
+
flex-grow: 1;
|
|
299
|
+
max-width: unset;
|
|
300
|
+
/*width: 100%;
|
|
301
|
+
padding: 0 4%;
|
|
302
|
+
flex-wrap: wrap;
|
|
303
|
+
flex-direction: row;
|
|
304
|
+
display: flex;*/
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.timepicker-container .am-btn,
|
|
308
|
+
.timepicker-container .pm-btn {
|
|
309
|
+
flex-grow: 1;
|
|
310
|
+
/*width: auto;*/
|
|
311
|
+
padding-left: calc(var(--btn-padding) / .565);
|
|
312
|
+
padding-right: calc(var(--btn-padding) / .565);
|
|
313
|
+
border-radius: var(--btn-border-radius);
|
|
314
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.timepicker-container .am-btn {
|
|
318
|
+
border-top-right-radius: 0;
|
|
319
|
+
border-bottom-right-radius: 0;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.timepicker-container .pm-btn {
|
|
323
|
+
border-left: 0;
|
|
324
|
+
border-bottom-left-radius: 0;
|
|
325
|
+
border-top-left-radius: 0;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.timepicker-plate {
|
|
329
|
+
margin-top: 1.6rem;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/* Display modes */
|
|
333
|
+
.timepicker-modal {
|
|
334
|
+
width: 65%;
|
|
335
|
+
max-width: 605px;
|
|
336
|
+
|
|
337
|
+
.modal-header + .modal-content {
|
|
338
|
+
.timepicker-digital-display,
|
|
339
|
+
.timepicker-analog-display {
|
|
340
|
+
padding-top: 0;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.timepicker-text-container {
|
|
344
|
+
margin-top: 2.4rem;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.timepicker-plate {
|
|
348
|
+
margin-top: 4px;
|
|
349
|
+
margin-bottom: 0;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.timepicker-digital-display,
|
|
354
|
+
.timepicker-analog-display {
|
|
355
|
+
padding-bottom: 0;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.timepicker-plate {
|
|
359
|
+
margin-bottom: 0;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|