@materializecss/materialize 2.2.1 → 2.3.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.
Files changed (57) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +94 -94
  3. package/dist/css/materialize.colors.min.css +6 -0
  4. package/dist/css/materialize.css +9624 -8820
  5. package/dist/css/materialize.min.css +6 -8
  6. package/dist/css/materialize.min.css.map +1 -1
  7. package/dist/js/materialize.cjs.js +8370 -7926
  8. package/dist/js/materialize.d.ts +2552 -2491
  9. package/dist/js/materialize.js +8375 -7931
  10. package/dist/js/materialize.min.js +6 -6
  11. package/dist/js/materialize.mjs +8342 -7898
  12. package/package.json +95 -79
  13. package/sass/{components/_color-variables.scss → _colors.scss} +403 -370
  14. package/sass/{components/_global.scss → _global.scss} +490 -558
  15. package/sass/{components/_grid.scss → _grid.scss} +172 -170
  16. package/sass/{components/_table_of_contents.scss → _table_of_contents.scss} +28 -32
  17. package/sass/{components/_tapTarget.scss → _tapTarget.scss} +102 -103
  18. package/sass/{components/_typography.scss → _typography.scss} +59 -62
  19. package/sass/{components/_variables.scss → _variables.scss} +57 -56
  20. package/sass/components/forms/_forms.scss +19 -24
  21. package/sass/materialize.scss +48 -47
  22. package/sass/mixins.module.scss +168 -0
  23. package/sass/components/_badges.scss +0 -75
  24. package/sass/components/_buttons.scss +0 -455
  25. package/sass/components/_cards.scss +0 -210
  26. package/sass/components/_carousel.scss +0 -95
  27. package/sass/components/_chips.scss +0 -148
  28. package/sass/components/_collapsible.scss +0 -80
  29. package/sass/components/_collection.scss +0 -115
  30. package/sass/components/_color-classes.scss +0 -32
  31. package/sass/components/_datepicker.scss +0 -216
  32. package/sass/components/_dropdown.scss +0 -78
  33. package/sass/components/_icons-material-design.scss +0 -6
  34. package/sass/components/_materialbox.scss +0 -43
  35. package/sass/components/_modal.scss +0 -68
  36. package/sass/components/_navbar.scss +0 -231
  37. package/sass/components/_normalize.scss +0 -349
  38. package/sass/components/_preloader.scss +0 -418
  39. package/sass/components/_pulse.scss +0 -35
  40. package/sass/components/_sidenav.scss +0 -249
  41. package/sass/components/_slider.scss +0 -121
  42. package/sass/components/_tabs.scss +0 -155
  43. package/sass/components/_timepicker.scss +0 -279
  44. package/sass/components/_toast.scss +0 -65
  45. package/sass/components/_tooltip.scss +0 -48
  46. package/sass/components/_transitions.scss +0 -13
  47. package/sass/components/colors.module.scss +0 -74
  48. package/sass/components/forms/_checkboxes.scss +0 -200
  49. package/sass/components/forms/_file-input.scss +0 -43
  50. package/sass/components/forms/_input-fields.scss +0 -350
  51. package/sass/components/forms/_radio-buttons.scss +0 -112
  52. package/sass/components/forms/_range.scss +0 -153
  53. package/sass/components/forms/_select.scss +0 -195
  54. package/sass/components/forms/_switches.scss +0 -122
  55. package/sass/components/theme.module.scss +0 -140
  56. package/sass/components/tokens.module.scss +0 -272
  57. package/sass/components/typography.module.scss +0 -150
@@ -1,95 +0,0 @@
1
- .carousel {
2
- --carousel-height: 400px;
3
-
4
- &.carousel-slider {
5
- top: 0;
6
- left: 0;
7
-
8
- .carousel-fixed-item {
9
- &.with-indicators {
10
- bottom: 68px;
11
- }
12
-
13
- position: absolute;
14
- left: 0;
15
- right: 0;
16
- bottom: 20px;
17
- z-index: 1;
18
- }
19
-
20
- .carousel-item {
21
- width: 100%;
22
- height: 100%;
23
- min-height: var(--carousel-height);
24
- position: absolute;
25
- top: 0;
26
- left: 0;
27
-
28
- h2 {
29
- font-size: 24px;
30
- font-weight: 500;
31
- line-height: 32px;
32
- }
33
-
34
- p {
35
- font-size: 15px;
36
- }
37
- }
38
- }
39
-
40
- overflow: hidden;
41
- position: relative;
42
- width: 100%;
43
- height: var(--carousel-height);
44
- perspective: 500px;
45
- transform-style: preserve-3d;
46
- transform-origin: 0% 50%;
47
-
48
- .carousel-item {
49
- visibility: hidden;
50
- width: calc(var(--carousel-height) * 0.5);
51
- height: calc(var(--carousel-height) * 0.5);
52
- position: absolute;
53
- top: 0;
54
- left: 0;
55
-
56
- & > img {
57
- width: 100%;
58
- }
59
- }
60
-
61
- .indicators {
62
- padding-left: 0;
63
- list-style-type: none;
64
-
65
- position: absolute;
66
- text-align: center;
67
- left: 0;
68
- right: 0;
69
- bottom: 0;
70
- margin: 0;
71
-
72
- .indicator-item {
73
- &.active {
74
- background-color: var(--md-ref-palette-primary100);
75
- }
76
-
77
- display: inline-block;
78
- position: relative;
79
- cursor: pointer;
80
- height: 8px;
81
- width: 8px;
82
- margin: 24px 4px;
83
- background-color: rgba(255, 255, 255, 0.45);
84
-
85
- transition: background-color .3s;
86
- border-radius: 50%;
87
- }
88
- }
89
-
90
- // Materialbox compatibility
91
- &.scrolling .carousel-item .materialboxed,
92
- .carousel-item:not(.active) .materialboxed {
93
- pointer-events: none;
94
- }
95
- }
@@ -1,148 +0,0 @@
1
- .chip {
2
- --font-size: 14px;
3
- --font-size-icon: 18px;
4
- --padding: 8px;
5
-
6
- color: var(--md-sys-color-on-surface-variant);
7
- background-color: rgba(0, 0, 0, 0.09);
8
-
9
- display: inline-flex;
10
- white-space: nowrap;
11
- gap: 8px;
12
-
13
- margin: 0;
14
- height: 32px;
15
-
16
- padding-left: var(--padding);
17
- padding-right: var(--padding);
18
-
19
- font-size: var(--font-size);
20
- font-weight: 500;
21
-
22
- border-radius: 8px;
23
-
24
- align-items: center;
25
- user-select: none;
26
- vertical-align: top;
27
-
28
- &:focus {
29
- outline: none;
30
- background-color: var(--md-sys-color-primary);
31
- color: var(--md-sys-color-on-primary);
32
- }
33
- }
34
-
35
- .chip.outlined {
36
- background-color: transparent;
37
- border-color: var(--md-sys-color-outline);
38
- border-width: 1px;
39
- border-style: solid;
40
- }
41
-
42
- .chip > img {
43
- margin: 0;
44
- width: 24px;
45
- height: 24px;
46
- object-fit: cover;
47
- border-radius: 12px;
48
- }
49
-
50
- .chip > .material-icons {
51
- font-size: var(--font-size-icon);
52
- @extend .on-surface-variant-text;
53
- }
54
-
55
- .chip .close {
56
- border-radius: 50%;
57
- height: 24px;
58
- width: 24px;
59
- padding: 0;
60
- display: grid;
61
- justify-content: center;
62
- align-content: center;
63
- cursor: pointer;
64
- }
65
-
66
- .chip .close:hover {
67
- background-color: #8888;
68
- }
69
-
70
- //--------------------------
71
-
72
- .chips {
73
- display: flex;
74
- gap: 4px;
75
- flex-wrap: wrap;
76
-
77
- border: none;
78
- box-shadow: none;
79
- margin: 0 0 8px 0;
80
-
81
- padding: 4px;
82
- // min-height: 45px;
83
-
84
- outline: none;
85
- transition: all .3s;
86
-
87
- &.focus {
88
- border-bottom: 1px solid var(--md-sys-color-primary);
89
- box-shadow: 0 1px 0 0 var(--md-sys-color-primary);
90
- }
91
-
92
- &.input-field {
93
- border-bottom: 1px solid var(--md-sys-color-on-surface-variant);
94
-
95
- &:hover {
96
- cursor: text;
97
- }
98
- }
99
-
100
- input:not([type]):not(.browser-default).input {
101
- background: none;
102
- border: 0;
103
- color: var(--md-sys-color-on-background);
104
- display: inline-block;
105
- font-size: 16px;
106
-
107
- // height: 32px;
108
- // line-height: 32px;
109
- height: 32px;
110
-
111
- outline: 0;
112
- margin: 0;
113
- padding: 0;
114
- width: 120px;
115
- width: fit-content;
116
- min-width: 100px;
117
- max-width: 200px;
118
-
119
-
120
- &:focus {
121
- border: 0;
122
- box-shadow: none;
123
- }
124
- }
125
-
126
- // Autocomplete
127
- .autocomplete-content {
128
- margin-top: 0;
129
- margin-bottom: 0;
130
- }
131
- }
132
-
133
- // Form prefix
134
- .prefix ~ .chips {
135
- margin-left: 3rem;
136
- width: 92%;
137
- width: calc(100% - 3rem);
138
- }
139
- // Form suffix
140
- .suffix ~ .chips {
141
- margin-right: 3rem;
142
- width: 92%;
143
- width: calc(100% - 3rem);
144
- }
145
- .chips:empty ~ label {
146
- font-size: 0.8rem;
147
- transform: translateY(-140%);
148
- }
@@ -1,80 +0,0 @@
1
- .collapsible {
2
- padding-left: 0;
3
- list-style-type: none;
4
-
5
- border-top: 1px solid var(--md-sys-color-outline-variant);
6
- border-right: 1px solid var(--md-sys-color-outline-variant);
7
- border-left: 1px solid var(--md-sys-color-outline-variant);
8
- margin: $element-top-margin 0 $element-bottom-margin 0;
9
- @extend .z-depth-1;
10
- }
11
-
12
- .collapsible-header {
13
- &:focus {
14
- outline: 0
15
- }
16
-
17
- display: flex;
18
- cursor: pointer;
19
- -webkit-tap-highlight-color: transparent;
20
- line-height: 1.5;
21
- padding: 1rem;
22
- border-bottom: 1px solid var(--md-sys-color-outline-variant);
23
-
24
- i {
25
- width: 2rem;
26
- font-size: 1.6rem;
27
- display: inline-block;
28
- text-align: center;
29
- margin-right: 1rem;
30
- }
31
- }
32
-
33
- .collapsible-header::after {
34
- content: '\e5cf';
35
- margin-left: .5rem;
36
- font-family: 'Material Symbols Outlined', 'Material Symbols Rounded', 'Material Symbols Sharp', 'Material Icons';
37
- font-size: 25px;
38
- line-height: .9;
39
- -webkit-font-smoothing: antialiased;
40
- }
41
-
42
- .active .collapsible-header::after {
43
- content: '\e5ce';
44
- }
45
-
46
- .keyboard-focused .collapsible-header:focus {
47
- background-color: rgba(0, 0, 0, 0.12);
48
- }
49
-
50
- .collapsible-header-content {
51
- flex-grow: 1;
52
- }
53
-
54
- .collapsible-body {
55
- max-height: 0;
56
- border-bottom: 1px solid var(--md-sys-color-outline-variant);
57
- box-sizing: border-box;
58
- padding: 0 2rem;
59
- overflow: hidden;
60
- }
61
-
62
- // Popout Collapsible
63
-
64
- .collapsible.popout {
65
- border: none;
66
- box-shadow: none;
67
-
68
- > li {
69
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
70
- // transform: scaleX(.92);
71
- margin: 0 24px;
72
- transition: margin .35s cubic-bezier(0.250, 0.460, 0.450, 0.940);
73
- }
74
-
75
- > li.active {
76
- box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
77
- margin: 16px 0;
78
- // transform: scaleX(1);
79
- }
80
- }
@@ -1,115 +0,0 @@
1
- // Collections
2
- .collection {
3
- padding-left: 0;
4
- list-style-type: none;
5
- margin: $element-top-margin 0 $element-bottom-margin 0;
6
- border: 1px solid var(--md-sys-color-outline-variant);
7
- border-radius: 2px;
8
- overflow: hidden;
9
- position: relative;
10
-
11
- .collection-item {
12
- background-color: transparent;
13
- line-height: 1.5rem;
14
- padding: 10px 20px;
15
- margin: 0;
16
- border-bottom: 1px solid var(--md-sys-color-outline-variant);
17
-
18
- // Avatar Collection
19
- &.avatar {
20
- min-height: 84px;
21
- padding-left: 72px;
22
- position: relative;
23
-
24
- // Don't style circles inside preloader classes.
25
- &:not(.circle-clipper) > .circle,
26
- :not(.circle-clipper) > .circle {
27
- position: absolute;
28
- width: 42px;
29
- height: 42px;
30
- overflow: hidden;
31
- left: 15px;
32
- display: inline-block;
33
- vertical-align: middle;
34
- }
35
-
36
- i.circle {
37
- font-size: 18px;
38
- line-height: 42px;
39
- color: #fff;
40
- background-color: var(--md-sys-color-shadow-light);
41
- text-align: center;
42
- }
43
-
44
-
45
- .title {
46
- font-size: 16px;
47
- }
48
-
49
- p {
50
- margin: 0;
51
- }
52
-
53
- .secondary-content {
54
- position: absolute;
55
- top: 16px;
56
- right: 16px;
57
- }
58
-
59
- }
60
-
61
-
62
- &:last-child {
63
- border-bottom: none;
64
- }
65
-
66
- &.active {
67
- background-color: var(--md-sys-color-primary);
68
- color: var(--md-sys-color-on-primary);
69
-
70
- .secondary-content {
71
- color: var(--md-sys-color-on-primary);
72
- }
73
- }
74
- }
75
-
76
- a.collection-item {
77
- display: block;
78
- transition: .25s;
79
- color: var(--md-sys-color-primary);
80
-
81
- &:not(.active) {
82
- &:hover {
83
- background-color: rgba(0, 0, 0, 0.04);
84
- }
85
- }
86
- }
87
-
88
- &.with-header {
89
- .collection-header {
90
- background-color: transparent;
91
- border-bottom: 1px solid var(--md-sys-color-outline-variant);
92
- padding: 10px 20px;
93
- }
94
-
95
- .collection-item {
96
- padding-left: 30px;
97
- }
98
-
99
- .collection-item.avatar {
100
- padding-left: 72px;
101
- }
102
- }
103
-
104
- }
105
-
106
- // Made less specific to allow easier overriding
107
- .secondary-content {
108
- float: right;
109
- color: var(--md-sys-color-primary);
110
- }
111
-
112
- .collapsible .collection {
113
- margin: 0;
114
- border: none;
115
- }
@@ -1,32 +0,0 @@
1
- // Color Classes
2
-
3
- @each $color_name, $color in $colors {
4
- @each $color_type, $color_value in $color {
5
- @if $color_type == "base" {
6
- .#{$color_name} {
7
- background-color: $color_value !important;
8
- }
9
- .#{$color_name}-text {
10
- color: $color_value !important;
11
- }
12
- }
13
- @else if $color_name != "shades" {
14
- .#{$color_name}.#{$color_type} {
15
- background-color: $color_value !important;
16
- }
17
- .#{$color_name}-text.text-#{$color_type} {
18
- color: $color_value !important;
19
- }
20
- }
21
- }
22
- }
23
-
24
- // Shade classes
25
- @each $color, $color_value in $shades {
26
- .#{$color} {
27
- background-color: $color_value !important;
28
- }
29
- .#{$color}-text {
30
- color: $color_value !important;
31
- }
32
- }
@@ -1,216 +0,0 @@
1
- /* Modal */
2
- .datepicker-modal {
3
- max-width: 325px;
4
- min-width: 300px;
5
- max-height: none;
6
- }
7
-
8
- .datepicker-container.modal-content {
9
- display: flex;
10
- flex-direction: column;
11
- padding: 0;
12
- background-color: var(--md-sys-color-surface);
13
- }
14
-
15
- .datepicker-controls {
16
- display: flex;
17
- justify-content: space-between;
18
- width: 280px;
19
- margin: 0 auto;
20
-
21
- .selects-container {
22
- display: flex;
23
- }
24
-
25
- .select-wrapper {
26
- input {
27
- &:focus {
28
- border-bottom: none;
29
- }
30
-
31
- border-bottom: none;
32
- text-align: center;
33
- margin: 0;
34
- }
35
-
36
- .caret {
37
- display: none;
38
- }
39
- }
40
-
41
- .select-dropdown {
42
- padding: 0;
43
- vertical-align: middle;
44
- }
45
-
46
- .select-year input {
47
- width: 50px;
48
- }
49
-
50
- .select-month input {
51
- width: 80px;
52
- }
53
-
54
- .month-prev,
55
- .month-next {
56
- display: inline-flex;
57
- align-items: center;
58
- }
59
-
60
- .month-prev > svg,
61
- .month-next > svg {
62
- fill: var(--md-sys-color-on-surface-variant);
63
- }
64
- }
65
-
66
- .month-prev, .month-next {
67
- height: 49px;
68
- margin-top: 4px;
69
- cursor: pointer;
70
- background-color: transparent;
71
- border: none;
72
- }
73
-
74
-
75
- /* Date Display */
76
- .datepicker-date-display {
77
- flex: 1 auto;
78
- background-color: var(--md-sys-color-primary);
79
- color: var(--md-sys-color-on-primary);
80
- padding: 20px 22px;
81
- font-weight: 500;
82
-
83
- .year-text {
84
- display: block;
85
- font-size: 1.5rem;
86
- line-height: 25px;
87
- color: var(--md-sys-color-on-primary);
88
- }
89
-
90
- .date-text {
91
- display: block;
92
- font-size: 2.8rem;
93
- line-height: 47px;
94
- font-weight: 500;
95
- }
96
- }
97
-
98
-
99
- /* Calendar */
100
- .datepicker-calendar-container {
101
- flex: 2.5 auto;
102
- }
103
-
104
- .datepicker-table {
105
- width: 280px;
106
- font-size: 1rem;
107
- margin: 0 auto;
108
-
109
- thead {
110
- border-bottom: none;
111
- }
112
-
113
- th {
114
- padding: 10px 5px;
115
- text-align: center;
116
- }
117
-
118
- tr {
119
- border: none;
120
- }
121
-
122
- abbr {
123
- text-decoration: none;
124
- color: var(--md-sys-color-on-surface-variant);
125
- }
126
-
127
- td {
128
- color: var(--md-sys-color-on-background);
129
-
130
- &.is-today {
131
- color: var(--md-sys-color-primary);
132
- }
133
-
134
- &.is-selected {
135
- background-color: var(--md-sys-color-primary);
136
- color: var(--md-sys-color-on-primary);
137
- }
138
-
139
- &.is-outside-current-month,
140
- &.is-disabled {
141
- color: var(--md-sys-color-on-surface);
142
- pointer-events: none;
143
- }
144
-
145
- border-radius: 50%;
146
- padding: 0;
147
- }
148
- }
149
-
150
- .datepicker-day-button {
151
- background-color: transparent;
152
- border: none;
153
- line-height: 38px;
154
- display: block;
155
- width: 100%;
156
- border-radius: 50%;
157
- padding: 0 5px;
158
- cursor: pointer;
159
- color: inherit;
160
-
161
- &:hover {
162
- background-color: rgba(var(--md-sys-color-primary-numeric), 0.06);
163
- }
164
-
165
- &:focus {
166
- background-color: rgba(var(--md-sys-color-primary-numeric), 0.18);
167
- }
168
- }
169
-
170
-
171
- /* Footer */
172
- .datepicker-footer {
173
- width: 280px;
174
- margin: 0 auto;
175
- padding-bottom: 5px;
176
- display: flex;
177
- justify-content: space-between;
178
- }
179
-
180
- .datepicker-cancel,
181
- .datepicker-clear,
182
- .datepicker-today,
183
- .datepicker-done {
184
- color: var(--md-sys-color-primary);
185
- padding: 0 1rem;
186
- }
187
-
188
- .datepicker-clear {
189
- color: var(--md-sys-color-error);
190
- }
191
-
192
-
193
- /* Media Queries */
194
- @media #{$medium-and-up} {
195
- .datepicker-modal {
196
- max-width: 625px;
197
- }
198
-
199
- .datepicker-container.modal-content {
200
- flex-direction: row;
201
- }
202
-
203
- .datepicker-date-display {
204
- flex: 0 1 270px;
205
- }
206
-
207
- .datepicker-controls,
208
- .datepicker-table,
209
- .datepicker-footer {
210
- width: 320px;
211
- }
212
-
213
- .datepicker-day-button {
214
- line-height: 44px;
215
- }
216
- }