@materializecss/materialize 2.2.2 → 2.3.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.
Files changed (58) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +94 -91
  3. package/dist/css/materialize.colors.min.css +6 -0
  4. package/dist/css/materialize.css +7988 -9470
  5. package/dist/css/materialize.min.css +6 -6
  6. package/dist/css/materialize.min.css.map +1 -1
  7. package/dist/js/materialize.cjs.js +8370 -8239
  8. package/dist/js/materialize.d.ts +2552 -2593
  9. package/dist/js/materialize.js +8375 -8244
  10. package/dist/js/materialize.min.js +6 -6
  11. package/dist/js/materialize.mjs +8342 -8211
  12. package/package.json +95 -81
  13. package/sass/{components/_color-variables.scss → _colors.scss} +403 -402
  14. package/sass/{components/_global.scss → _global.scss} +490 -469
  15. package/sass/{components/_grid.scss → _grid.scss} +172 -172
  16. package/sass/{components/_table_of_contents.scss → _table_of_contents.scss} +28 -32
  17. package/sass/{components/_tapTarget.scss → _tapTarget.scss} +102 -102
  18. package/sass/{components/_typography.scss → _typography.scss} +58 -62
  19. package/sass/{components/_variables.scss → _variables.scss} +56 -57
  20. package/sass/components/forms/_forms.scss +19 -18
  21. package/sass/materialize.scss +48 -43
  22. package/sass/{components/mixins.module.scss → mixins.module.scss} +168 -159
  23. package/sass/components/_badges.scss +0 -75
  24. package/sass/components/_breadcrumb.scss +0 -27
  25. package/sass/components/_buttons.scss +0 -348
  26. package/sass/components/_cards.scss +0 -229
  27. package/sass/components/_carousel.scss +0 -93
  28. package/sass/components/_chips.scss +0 -140
  29. package/sass/components/_collapsible.scss +0 -83
  30. package/sass/components/_collection.scss +0 -114
  31. package/sass/components/_datepicker.scss +0 -263
  32. package/sass/components/_dropdown.scss +0 -82
  33. package/sass/components/_icons-material-design.scss +0 -6
  34. package/sass/components/_materialbox.scss +0 -42
  35. package/sass/components/_modal.scss +0 -75
  36. package/sass/components/_navbar.scss +0 -232
  37. package/sass/components/_normalize.scss +0 -349
  38. package/sass/components/_pagination.scss +0 -47
  39. package/sass/components/_preloader.scss +0 -420
  40. package/sass/components/_pulse.scss +0 -35
  41. package/sass/components/_sidenav.scss +0 -247
  42. package/sass/components/_slider.scss +0 -119
  43. package/sass/components/_tabs.scss +0 -167
  44. package/sass/components/_timepicker.scss +0 -294
  45. package/sass/components/_toast.scss +0 -68
  46. package/sass/components/_tooltip.scss +0 -40
  47. package/sass/components/_transitions.scss +0 -12
  48. package/sass/components/colors.module.scss +0 -74
  49. package/sass/components/forms/_checkboxes.scss +0 -199
  50. package/sass/components/forms/_file-input.scss +0 -41
  51. package/sass/components/forms/_input-fields.scss +0 -356
  52. package/sass/components/forms/_radio-buttons.scss +0 -112
  53. package/sass/components/forms/_range.scss +0 -158
  54. package/sass/components/forms/_select.scss +0 -103
  55. package/sass/components/forms/_switches.scss +0 -124
  56. package/sass/components/theme.module.scss +0 -140
  57. package/sass/components/tokens.module.scss +0 -272
  58. package/sass/components/typography.module.scss +0 -150
@@ -1,140 +0,0 @@
1
- @use './colors.module.scss' as *;
2
-
3
- .chip {
4
- --font-size: 14px;
5
- --font-size-icon: 18px;
6
- --padding: 8px;
7
-
8
- color: var(--md-sys-color-on-surface-variant);
9
- background-color: rgba(0, 0, 0, 0.09);
10
- display: inline-flex;
11
- white-space: nowrap;
12
- gap: 8px;
13
- margin: 0;
14
- height: 32px;
15
- padding-left: var(--padding);
16
- padding-right: var(--padding);
17
- font-size: var(--font-size);
18
- font-weight: 500;
19
- border-radius: 8px;
20
- align-items: center;
21
- user-select: none;
22
- vertical-align: top;
23
-
24
- &:focus {
25
- outline: none;
26
- background-color: var(--md-sys-color-primary);
27
- color: var(--md-sys-color-on-primary);
28
- }
29
- }
30
-
31
- .chip.outlined {
32
- background-color: transparent;
33
- border-color: var(--md-sys-color-outline);
34
- border-width: 1px;
35
- border-style: solid;
36
- }
37
-
38
- .chip > img {
39
- margin: 0;
40
- width: 24px;
41
- height: 24px;
42
- object-fit: cover;
43
- border-radius: 12px;
44
- }
45
-
46
- .chip > .material-icons {
47
- font-size: var(--font-size-icon);
48
- @extend .on-surface-variant-text;
49
- }
50
-
51
- .chip .close {
52
- border-radius: 50%;
53
- height: 24px;
54
- width: 24px;
55
- padding: 0;
56
- display: grid;
57
- justify-content: center;
58
- align-content: center;
59
- cursor: pointer;
60
- }
61
-
62
- .chip .close:hover {
63
- background-color: #8888;
64
- }
65
-
66
- //--------------------------
67
-
68
- .chips {
69
- display: flex;
70
- gap: 4px;
71
- flex-wrap: wrap;
72
- border: none;
73
- box-shadow: none;
74
- margin: 0 0 8px 0;
75
- padding: 4px;
76
- // min-height: 45px;
77
- outline: none;
78
- transition: all .3s;
79
-
80
- &.focus {
81
- border-bottom: 1px solid var(--md-sys-color-primary);
82
- box-shadow: 0 1px 0 0 var(--md-sys-color-primary);
83
- }
84
-
85
- &.input-field {
86
- border-bottom: 1px solid var(--md-sys-color-on-surface-variant);
87
-
88
- &:hover {
89
- cursor: text;
90
- }
91
- }
92
-
93
- input:not([type]):not(.browser-default).input {
94
- background: none;
95
- border: 0;
96
- color: var(--md-sys-color-on-background);
97
- display: inline-block;
98
- font-size: 16px;
99
- // height: 32px;
100
- // line-height: 32px;
101
- height: 32px;
102
- outline: 0;
103
- margin: 0;
104
- padding: 0;
105
- width: 120px;
106
- width: fit-content;
107
- min-width: 100px;
108
- max-width: 200px;
109
-
110
- &:focus {
111
- border: 0;
112
- box-shadow: none;
113
- }
114
- }
115
-
116
- // Autocomplete
117
- .autocomplete-content {
118
- margin-top: 0;
119
- margin-bottom: 0;
120
- }
121
- }
122
-
123
- // Form prefix
124
- .prefix ~ .chips {
125
- margin-left: 3rem;
126
- width: 92%;
127
- width: calc(100% - 3rem);
128
- }
129
-
130
- // Form suffix
131
- .suffix ~ .chips {
132
- margin-right: 3rem;
133
- width: 92%;
134
- width: calc(100% - 3rem);
135
- }
136
-
137
- .chips:empty ~ label {
138
- font-size: 0.8rem;
139
- transform: translateY(-140%);
140
- }
@@ -1,83 +0,0 @@
1
- @use './variables' as *;
2
- @use './colors.module.scss' as *;
3
- @use './global' as *;
4
-
5
- .collapsible {
6
- padding-left: 0;
7
- list-style-type: none;
8
- border-top: 1px solid var(--md-sys-color-outline-variant);
9
- border-right: 1px solid var(--md-sys-color-outline-variant);
10
- border-left: 1px solid var(--md-sys-color-outline-variant);
11
- margin: $element-top-margin 0 $element-bottom-margin 0;
12
- @extend .z-depth-1;
13
- }
14
-
15
- .collapsible-header {
16
- display: flex;
17
- cursor: pointer;
18
- -webkit-tap-highlight-color: transparent;
19
- line-height: 1.5;
20
- padding: 1rem;
21
- border-bottom: 1px solid var(--md-sys-color-outline-variant);
22
-
23
- &:focus {
24
- outline: 0
25
- }
26
-
27
- i {
28
- width: 2rem;
29
- font-size: 1.6rem;
30
- display: inline-block;
31
- text-align: center;
32
- margin-right: 1rem;
33
- }
34
- }
35
-
36
- .collapsible-header::after {
37
- content: '\e5cf';
38
- margin-left: .5rem;
39
- font-family: 'Material Symbols Outlined', 'Material Symbols Rounded', 'Material Symbols Sharp', 'Material Icons';
40
- font-size: 25px;
41
- line-height: .9;
42
- -webkit-font-smoothing: antialiased;
43
- }
44
-
45
- .active .collapsible-header::after {
46
- content: '\e5ce';
47
- }
48
-
49
- .keyboard-focused .collapsible-header:focus {
50
- background-color: rgba(0, 0, 0, 0.12);
51
- }
52
-
53
- .collapsible-header-content {
54
- flex-grow: 1;
55
- }
56
-
57
- .collapsible-body {
58
- max-height: 0;
59
- border-bottom: 1px solid var(--md-sys-color-outline-variant);
60
- box-sizing: border-box;
61
- padding: 0 2rem;
62
- overflow: hidden;
63
- }
64
-
65
- // Popout Collapsible
66
-
67
- .collapsible.popout {
68
- border: none;
69
- box-shadow: none;
70
-
71
- > li {
72
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
73
- // transform: scaleX(.92);
74
- margin: 0 24px;
75
- transition: margin .35s cubic-bezier(0.250, 0.460, 0.450, 0.940);
76
- }
77
-
78
- > li.active {
79
- box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
80
- margin: 16px 0;
81
- // transform: scaleX(1);
82
- }
83
- }
@@ -1,114 +0,0 @@
1
- @use './variables' as *;
2
-
3
- .collection {
4
- padding-left: 0;
5
- list-style-type: none;
6
- margin: $element-top-margin 0 $element-bottom-margin 0;
7
- border: 1px solid var(--md-sys-color-outline-variant);
8
- border-radius: 2px;
9
- overflow: hidden;
10
- position: relative;
11
-
12
- .collection-item {
13
- background-color: transparent;
14
- line-height: 1.5rem;
15
- padding: 10px 20px;
16
- margin: 0;
17
- border-bottom: 1px solid var(--md-sys-color-outline-variant);
18
-
19
- // Avatar Collection
20
- &.avatar {
21
- min-height: 84px;
22
- padding-left: 72px;
23
- position: relative;
24
-
25
- // Don't style circles inside preloader classes.
26
- &:not(.circle-clipper) > .circle,
27
- :not(.circle-clipper) > .circle {
28
- position: absolute;
29
- width: 42px;
30
- height: 42px;
31
- overflow: hidden;
32
- left: 15px;
33
- display: inline-block;
34
- vertical-align: middle;
35
- }
36
-
37
- i.circle {
38
- font-size: 18px;
39
- line-height: 42px;
40
- color: #fff;
41
- background-color: var(--md-sys-color-shadow-light);
42
- text-align: center;
43
- }
44
-
45
-
46
- .title {
47
- font-size: 16px;
48
- }
49
-
50
- p {
51
- margin: 0;
52
- }
53
-
54
- .secondary-content {
55
- position: absolute;
56
- top: 16px;
57
- right: 16px;
58
- }
59
- }
60
-
61
- &:last-child {
62
- border-bottom: none;
63
- }
64
-
65
- &.active {
66
- background-color: var(--md-sys-color-primary);
67
- color: var(--md-sys-color-on-primary);
68
-
69
- .secondary-content {
70
- color: var(--md-sys-color-on-primary);
71
- }
72
- }
73
- }
74
-
75
- a.collection-item {
76
- display: block;
77
- transition: .25s;
78
- color: var(--md-sys-color-primary);
79
-
80
- &:not(.active) {
81
- &:hover {
82
- background-color: rgba(0, 0, 0, 0.04);
83
- }
84
- }
85
- }
86
-
87
- &.with-header {
88
- .collection-header {
89
- background-color: transparent;
90
- border-bottom: 1px solid var(--md-sys-color-outline-variant);
91
- padding: 10px 20px;
92
- }
93
-
94
- .collection-item {
95
- padding-left: 30px;
96
- }
97
-
98
- .collection-item.avatar {
99
- padding-left: 72px;
100
- }
101
- }
102
-
103
- }
104
-
105
- // Made less specific to allow easier overriding
106
- .secondary-content {
107
- float: right;
108
- color: var(--md-sys-color-primary);
109
- }
110
-
111
- .collapsible .collection {
112
- margin: 0;
113
- border: none;
114
- }
@@ -1,263 +0,0 @@
1
- /* Modal */
2
- // @removed since v2.2.1
3
- /*.datepicker-modal {
4
- max-width: 325px;
5
- // @removed since v2.2.1-dev regarding Material M3 standards
6
- min-width: 300px;
7
- max-height: none;
8
- }*/
9
-
10
- .datepicker-container {
11
- display: flex;
12
- flex-direction: column;
13
- max-width: 325px;
14
- padding: 0;
15
- background-color: var(--md-sys-color-surface);
16
- }
17
-
18
- .datepicker-controls {
19
- display: flex;
20
- justify-content: space-between;
21
- width: 280px;
22
- margin: 0 auto;
23
-
24
- .selects-container {
25
- display: flex;
26
- }
27
-
28
- .select-wrapper {
29
- input {
30
- height: 49px;
31
- margin: 4px 0 0 0;
32
- border-bottom: none;
33
- border-radius: 4px;
34
- text-align: center;
35
-
36
- &:focus {
37
- border-bottom: none;
38
- background-color: var(--md-sys-color-primary-container);
39
- }
40
-
41
- &::selection {
42
- background-color: transparent;
43
- }
44
- }
45
-
46
- .caret {
47
- display: none;
48
- }
49
- }
50
-
51
- .select-dropdown {
52
- padding: 0;
53
- vertical-align: middle;
54
- }
55
-
56
- .select-year input,
57
- .select-month input {
58
- background-color: transparent;
59
- }
60
-
61
- .select-year input {
62
- width: 50px;
63
- }
64
-
65
- .select-month input {
66
- width: 80px;
67
- }
68
-
69
- .month-prev,
70
- .month-next {
71
- display: inline-flex;
72
- align-items: center;
73
- }
74
-
75
- .month-prev > svg,
76
- .month-next > svg {
77
- fill: var(--md-sys-color-on-surface-variant);
78
- }
79
- }
80
-
81
- .month-prev, .month-next {
82
- height: 49px;
83
- margin-top: 4px;
84
- cursor: pointer;
85
- background-color: transparent;
86
- border: none;
87
- }
88
-
89
-
90
- /* Date Display */
91
- .datepicker-date-display {
92
- flex: 1 auto;
93
- // @removed since v2.2.1-dev regarding Material M3 standards
94
- // background-color: var(--md-sys-color-primary);
95
- // color: var(--md-sys-color-on-primary);
96
- padding: 20px 22px;
97
- border-bottom: 1px solid var(--md-sys-color-surface-variant-light);
98
- font-weight: 500;
99
-
100
- .year-text {
101
- display: block;
102
- font-size: 1.5rem;
103
- line-height: 25px;
104
- color: var(--md-sys-color-on-primary);
105
- }
106
-
107
- .date-text {
108
- display: block;
109
- font-size: 2.8rem;
110
- line-height: 47px;
111
- font-weight: 500;
112
- }
113
-
114
- .daterange & {
115
- .date-text {
116
- font-size: 1.8rem;
117
- }
118
- }
119
- }
120
-
121
-
122
- /* Calendar */
123
- .datepicker-calendar-container {
124
- flex: 2.5 auto;
125
- }
126
-
127
- .datepicker-table {
128
- width: 280px;
129
- font-size: 1rem;
130
- margin: 0 auto;
131
-
132
- thead {
133
- border-bottom: none;
134
- }
135
-
136
- th {
137
- padding: 10px 5px;
138
- text-align: center;
139
- }
140
-
141
- tr {
142
- border: none;
143
- }
144
-
145
- abbr {
146
- text-decoration: none;
147
- color: var(--md-sys-color-on-surface-variant);
148
- }
149
-
150
- .datepicker-day {
151
- padding: 0;
152
- color: var(--md-sys-color-on-background);
153
- // border-radius: 50%;
154
-
155
- &.is-today {
156
- color: var(--md-sys-color-primary);
157
- }
158
-
159
- /*&.is-selected button {
160
- background-color: var(--md-sys-color-primary);
161
- color: var(--md-sys-color-on-primary);
162
- }*/
163
- }
164
- }
165
-
166
- // @todo
167
- .datepicker-day.has-event {}
168
- // @todo
169
- .datepicker-day.is-inrange {}
170
- // @todo
171
- .datepicker-day.is-startrange {}
172
- // @todo
173
- .datepicker-day.is-endrange {}
174
-
175
- .datepicker-day.is-daterange-start,
176
- .datepicker-day.is-daterange-end,
177
- .datepicker-day.is-daterange {
178
- position: relative;
179
-
180
- &:before {
181
- position: absolute;
182
- top: 5px;
183
- width: 100%;
184
- height: 34px;
185
- content: '';
186
- background-color: var(--md-sys-color-primary-container);
187
- z-index: 0;
188
- }
189
- }
190
-
191
- .datepicker-day.is-daterange-start:before,
192
- .datepicker-day.is-daterange-end:before {
193
- width: 50%;
194
- }
195
-
196
- .datepicker-day.is-daterange-start:before {
197
- left: 50%;
198
- }
199
-
200
- .datepicker-day.is-daterange .datepicker-day-button:before {
201
- background-color: var(--md-sys-color-primary-container);
202
- }
203
-
204
- .datepicker-day-button {
205
- background-color: transparent;
206
- border: none;
207
- line-height: 34px;
208
- display: block;
209
- width: 34px;
210
- border-radius: 50%;
211
- margin: 5px;
212
- padding: 0 5px;
213
- cursor: pointer;
214
- color: inherit;
215
- position: relative;
216
- z-index: 1;
217
-
218
- &:hover {
219
- background-color: rgba(var(--md-sys-color-primary-numeric), 0.06);
220
- }
221
-
222
- &:focus {
223
- border-color: var(--md-sys-color-primary);
224
- }
225
-
226
- .is-selected & {
227
- background-color: var(--md-sys-color-primary);
228
- color: var(--md-sys-color-on-primary);
229
-
230
- &:focus {
231
- background-color: var(--md-sys-color-surface-variant);
232
- color: var(--md-sys-color-primary);
233
- }
234
- }
235
-
236
- &.is-outside-current-month button,
237
- &.is-disabled button {
238
- color: var(--md-sys-color-on-surface);
239
- pointer-events: none;
240
- }
241
- }
242
-
243
- /* Footer */
244
- .datepicker-footer {
245
- width: 280px;
246
- margin: 0 auto;
247
- padding-bottom: 5px;
248
- display: flex;
249
- justify-content: space-between;
250
- }
251
-
252
- .datepicker-cancel,
253
- .datepicker-clear,
254
- .datepicker-today,
255
- .datepicker-done {
256
- color: var(--md-sys-color-primary);
257
- padding: 0 1rem;
258
- }
259
-
260
- .datepicker-clear {
261
- color: var(--md-sys-color-error);
262
- }
263
-
@@ -1,82 +0,0 @@
1
- @use './variables' as *;
2
- @use './global' as *;
3
-
4
- [popover] {
5
- outline: none;
6
- padding: 0;
7
- border: none;
8
- }
9
-
10
- .dropdown-content {
11
- padding-left: 0;
12
- list-style-type: none;
13
- @extend .z-depth-1;
14
- background-color: var(--md-sys-color-surface);
15
- margin: 0;
16
- display: none;
17
- min-width: 100px;
18
- overflow-y: auto;
19
- opacity: 0;
20
- position: absolute;
21
- left: 0;
22
- top: 0;
23
- z-index: 9999; // TODO: Check if this doesn't break other things
24
- transform-origin: 0 0;
25
- user-select: none;
26
-
27
- li {
28
- clear: both;
29
- color: var(--md-sys-color-on-background);
30
- cursor: pointer;
31
- min-height: $dropdown-item-height;
32
- line-height: 1.5rem;
33
- width: 100%;
34
- text-align: left;
35
-
36
- &.divider {
37
- min-height: 0;
38
- height: 1px;
39
- }
40
- & > a, & > span {
41
- font-size: 16px;
42
- color: var(--md-sys-color-primary);
43
- display: block;
44
- line-height: 22px;
45
- padding: (($dropdown-item-height - 22) * 0.5) 16px;
46
- }
47
- & > span > label {
48
- top: 1px;
49
- left: 0;
50
- height: 18px;
51
- }
52
- // Icon alignment override
53
- & > a > i {
54
- height: inherit;
55
- line-height: inherit;
56
- float: left;
57
- margin: 0 24px 0 0;
58
- width: 24px;
59
- }
60
- }
61
- li:not(.disabled):hover, li.active {
62
- background-color: color-mix(in srgb, var(--md-sys-color-surface), var(--md-sys-color-on-surface) 8%);
63
- }
64
- }
65
-
66
- body.keyboard-focused {
67
- .dropdown-content li:focus {
68
- background-color: rgba(0, 0, 0, 0.12);
69
- }
70
- }
71
-
72
- // Input field specificity bugfix
73
- .input-field.col .dropdown-content [type="checkbox"] + label {
74
- top: 1px;
75
- left: 0;
76
- height: 18px;
77
- transform: none;
78
- }
79
-
80
- .dropdown-trigger {
81
- cursor: pointer;
82
- }
@@ -1,6 +0,0 @@
1
- /* This is needed for some mobile phones to display the Google Icon font properly */
2
- .material-icons, .material-symbols-outlined,
3
- .material-symbols-rounded, .material-symbols-sharp {
4
- text-rendering: optimizeLegibility;
5
- font-feature-settings: 'liga';
6
- }
@@ -1,42 +0,0 @@
1
- .materialboxed {
2
- display: block;
3
- cursor: zoom-in;
4
- position: relative;
5
- transition: opacity .4s;
6
- -webkit-backface-visibility: hidden;
7
-
8
- &:hover {
9
- &:not(.active) {
10
- opacity: .8;
11
- }
12
- }
13
- &.active {
14
- cursor: zoom-out;
15
- }
16
- }
17
-
18
- #materialbox-overlay {
19
- position:fixed;
20
- top: 0;
21
- right: 0;
22
- bottom: 0;
23
- left: 0;
24
- background-color: var(--md-sys-color-background);
25
- z-index: 1000;
26
- will-change: opacity;
27
- }
28
-
29
- .materialbox-caption {
30
- position: fixed;
31
- display: none;
32
- color: var(--md-sys-color-on-background);
33
- line-height: 50px;
34
- bottom: 0;
35
- left: 0;
36
- width: 100%;
37
- text-align: center;
38
- padding: 0% 15%;
39
- height: 50px;
40
- z-index: 1000;
41
- -webkit-font-smoothing: antialiased;
42
- }