@materializecss/materialize 2.0.3-beta → 2.0.4
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 +1 -1
- package/README.md +16 -18
- package/dist/css/materialize.css +73 -26
- package/dist/css/materialize.min.css +3 -3
- package/dist/js/materialize.js +560 -2015
- package/dist/js/materialize.min.js +3 -3
- package/dist/js/materialize.min.js.map +1 -1
- package/dist/src/buttons.d.ts.map +1 -1
- package/dist/src/cards.d.ts.map +1 -1
- package/dist/src/collapsible.d.ts +1 -0
- package/dist/src/collapsible.d.ts.map +1 -1
- package/dist/src/dropdown.d.ts +1 -0
- package/dist/src/dropdown.d.ts.map +1 -1
- package/dist/src/global.d.ts.map +1 -1
- package/dist/src/materialbox.d.ts +14 -10
- package/dist/src/materialbox.d.ts.map +1 -1
- package/dist/src/modal.d.ts.map +1 -1
- package/dist/src/range.d.ts.map +1 -1
- package/dist/src/scrollspy.d.ts.map +1 -1
- package/dist/src/sidenav.d.ts +25 -25
- package/dist/src/sidenav.d.ts.map +1 -1
- package/dist/src/slider.d.ts +12 -12
- package/dist/src/slider.d.ts.map +1 -1
- package/dist/src/tabs.d.ts +1 -1
- package/dist/src/tabs.d.ts.map +1 -1
- package/dist/src/toasts.d.ts +7 -2
- package/dist/src/toasts.d.ts.map +1 -1
- package/dist/src/tooltip.d.ts.map +1 -1
- package/package.json +29 -44
- package/sass/components/_collapsible.scss +14 -2
- package/sass/components/_materialbox.scss +2 -2
- package/sass/components/_modal.scss +0 -1
- package/sass/components/_tooltip.scss +18 -8
- package/sass/components/_variables.scss +2 -2
- package/Gruntfile.js +0 -385
- package/src/autocomplete.ts +0 -553
- package/src/bounding.ts +0 -6
- package/src/buttons.ts +0 -260
- package/src/cards.ts +0 -53
- package/src/carousel.ts +0 -676
- package/src/characterCounter.ts +0 -117
- package/src/chips.ts +0 -439
- package/src/collapsible.ts +0 -249
- package/src/component.ts +0 -120
- package/src/datepicker.ts +0 -1076
- package/src/dropdown.ts +0 -644
- package/src/edges.ts +0 -6
- package/src/forms.ts +0 -132
- package/src/global.ts +0 -114
- package/src/index.ts +0 -26
- package/src/materialbox.ts +0 -404
- package/src/modal.ts +0 -341
- package/src/parallax.ts +0 -149
- package/src/pushpin.ts +0 -165
- package/src/range.ts +0 -198
- package/src/scrollspy.ts +0 -263
- package/src/select.ts +0 -484
- package/src/sidenav.ts +0 -543
- package/src/slider.ts +0 -474
- package/src/tabs.ts +0 -347
- package/src/tapTarget.ts +0 -273
- package/src/timepicker.ts +0 -832
- package/src/toasts.ts +0 -290
- package/src/tooltip.ts +0 -366
- package/src/utils.ts +0 -271
- package/src/waves.ts +0 -70
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://
|
|
3
|
-
<img src="https://
|
|
2
|
+
<a href="https://materializeweb.com" target="_blank">
|
|
3
|
+
<img src="https://materializeweb.com/images/materialize.svg" width="200">
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
Materialize, a CSS Framework based on Material Design.
|
|
11
11
|
<br>
|
|
12
|
-
<a href="https://
|
|
12
|
+
<a target="_blank" href="https://materializeweb.com"><strong>[ Browse the docs ]</strong></a>
|
|
13
13
|
<br>
|
|
14
14
|
<br>
|
|
15
15
|
<a href="https://github.com/materializecss/materialize/actions/">
|
|
@@ -30,33 +30,31 @@
|
|
|
30
30
|
</p>
|
|
31
31
|
|
|
32
32
|
## Quickstart
|
|
33
|
-
Read the [getting started guide](https://
|
|
33
|
+
Read the [getting started guide](https://materializeweb.com/getting-started.html) for more information on how to use materialize.
|
|
34
34
|
|
|
35
35
|
- [Download the latest release](https://github.com/materializecss/materialize/releases/latest) of materialize directly from GitHub. ([Beta](https://github.com/materializecss/materialize/releases/))
|
|
36
36
|
- Clone the repo: `git clone https://github.com/materializecss/materialize.git`
|
|
37
37
|
- Include the files via [jsDelivr](https://www.jsdelivr.com/package/npm/@materializecss/materialize).
|
|
38
38
|
- Install with [npm](https://www.npmjs.com): `npm install @materializecss/materialize` (Beta: `npm install @materializecss/materialize@next`)
|
|
39
39
|
|
|
40
|
-
##
|
|
41
|
-
The documentation can be found at <https://
|
|
40
|
+
## Development
|
|
41
|
+
The documentation can be found at <https://materializeweb.com>. To run the documentation locally on your machine, you need [Node.js](https://nodejs.org) installed on your computer.
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
git clone https://github.com/materializecss/materialize
|
|
48
|
-
cd materialize
|
|
43
|
+
This is the core project with all the components. To see how they are used we recommend using an example project or go to the documentation.
|
|
44
|
+
Otherwise, if you want to develop the components itself, the dev process of this core-repo works like this:
|
|
45
|
+
```sh
|
|
49
46
|
npm install
|
|
47
|
+
npm run dev
|
|
50
48
|
```
|
|
51
49
|
|
|
52
|
-
|
|
50
|
+
### Running documentation locally
|
|
51
|
+
See [Materialize Docs Repo](https://github.com/materializecss/materialize-docs) to see Materialize in Action.
|
|
53
52
|
|
|
54
53
|
### Documentation for previous releases
|
|
55
|
-
Previous releases
|
|
56
|
-
|
|
57
|
-
## Build
|
|
58
|
-
If you want to build `materialize.css` or `materialize.js` from the latest commit, you can build the files with the following command after `npm install`. See `package.json` to check the current version like `1.0.0`.
|
|
54
|
+
Previous releases are available [here](https://github.com/materializecss/materialize/releases).
|
|
59
55
|
|
|
56
|
+
## Release
|
|
57
|
+
If you want to release `materialize.css` or `materialize.js` from the latest commit, you can build the files with the following command after `npm install`. See `package.json` to check the current version like `1.0.0`.
|
|
60
58
|
```sh
|
|
61
59
|
npm run release -- --oldver=<current_version> --newver=<new_version>
|
|
62
60
|
```
|
|
@@ -100,4 +98,4 @@ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com
|
|
|
100
98
|
[](https://opencollective.com/materialize#backers)
|
|
101
99
|
|
|
102
100
|
## Copyright and license
|
|
103
|
-
Code Copyright
|
|
101
|
+
Code Copyright 2024 Materialize. Code released under the MIT license.
|
package/dist/css/materialize.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Materialize v2.0.
|
|
3
|
-
* Copyright 2014-
|
|
2
|
+
* Materialize v2.0.4 (https://materializeweb.com)
|
|
3
|
+
* Copyright 2014-2024 Materialize
|
|
4
4
|
* MIT License (https://raw.githubusercontent.com/materializecss/materialize/master/LICENSE)
|
|
5
5
|
*/
|
|
6
6
|
@charset "UTF-8";
|
|
@@ -3457,7 +3457,7 @@ video.responsive-video {
|
|
|
3457
3457
|
width: 100%;
|
|
3458
3458
|
}
|
|
3459
3459
|
.pagination li.prev,
|
|
3460
|
-
.pagination li.next {
|
|
3460
|
+
.pagination li.next {
|
|
3461
3461
|
width: 10%;
|
|
3462
3462
|
}
|
|
3463
3463
|
.pagination li.pages {
|
|
@@ -3716,7 +3716,7 @@ td, th {
|
|
|
3716
3716
|
content: " ";
|
|
3717
3717
|
}
|
|
3718
3718
|
table.responsive-table th,
|
|
3719
|
-
table.responsive-table td {
|
|
3719
|
+
table.responsive-table td {
|
|
3720
3720
|
margin: 0;
|
|
3721
3721
|
vertical-align: top;
|
|
3722
3722
|
}
|
|
@@ -5564,23 +5564,33 @@ small {
|
|
|
5564
5564
|
}
|
|
5565
5565
|
}
|
|
5566
5566
|
.material-tooltip {
|
|
5567
|
-
padding:
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
line-height:
|
|
5567
|
+
padding: 0 8px;
|
|
5568
|
+
border-radius: 4px;
|
|
5569
|
+
background-color: var(--md-sys-color-inverse-surface);
|
|
5570
|
+
color: var(--md-sys-color-inverse-on-surface);
|
|
5571
|
+
font-family: var(--md-sys-typescale-body-small-font-family-name);
|
|
5572
|
+
font-size: var(--md-sys-typescale-body-small-font-size);
|
|
5573
|
+
line-height: var(--md-sys-typescale-body-small-line-height);
|
|
5574
|
+
font-weight: var(--md-sys-typescale-body-small-font-weight);
|
|
5575
|
+
min-height: 24px;
|
|
5574
5576
|
opacity: 0;
|
|
5575
|
-
position: absolute;
|
|
5576
5577
|
text-align: center;
|
|
5578
|
+
position: absolute;
|
|
5577
5579
|
max-width: calc(100% - 4px);
|
|
5578
5580
|
overflow: hidden;
|
|
5579
5581
|
left: 0;
|
|
5580
5582
|
top: 0;
|
|
5581
5583
|
pointer-events: none;
|
|
5584
|
+
display: -webkit-box;
|
|
5585
|
+
display: -webkit-flex;
|
|
5586
|
+
display: -ms-flexbox;
|
|
5587
|
+
display: flex;
|
|
5588
|
+
-webkit-box-align: center;
|
|
5589
|
+
-webkit-align-items: center;
|
|
5590
|
+
-ms-flex-align: center;
|
|
5591
|
+
align-items: center;
|
|
5582
5592
|
visibility: hidden;
|
|
5583
|
-
|
|
5593
|
+
z-index: 2000;
|
|
5584
5594
|
}
|
|
5585
5595
|
|
|
5586
5596
|
.backdrop {
|
|
@@ -5589,7 +5599,7 @@ small {
|
|
|
5589
5599
|
height: 7px;
|
|
5590
5600
|
width: 14px;
|
|
5591
5601
|
border-radius: 0 0 50% 50%;
|
|
5592
|
-
background-color: var(--
|
|
5602
|
+
background-color: var(--md-sys-color-inverse-surface);
|
|
5593
5603
|
z-index: -1;
|
|
5594
5604
|
-webkit-transform-origin: 50% 0;
|
|
5595
5605
|
transform-origin: 50% 0;
|
|
@@ -6157,16 +6167,28 @@ body.keyboard-focused .dropdown-content li:focus {
|
|
|
6157
6167
|
margin-right: 1rem;
|
|
6158
6168
|
}
|
|
6159
6169
|
|
|
6170
|
+
.collapsible-header::after {
|
|
6171
|
+
content: "▾";
|
|
6172
|
+
text-align: right;
|
|
6173
|
+
margin-right: 0.25rem;
|
|
6174
|
+
width: 100%;
|
|
6175
|
+
}
|
|
6176
|
+
|
|
6177
|
+
.active .collapsible-header::after {
|
|
6178
|
+
content: "▴";
|
|
6179
|
+
}
|
|
6180
|
+
|
|
6160
6181
|
.keyboard-focused .collapsible-header:focus {
|
|
6161
6182
|
background-color: var(--focus-color);
|
|
6162
6183
|
}
|
|
6163
6184
|
|
|
6164
6185
|
.collapsible-body {
|
|
6165
|
-
|
|
6186
|
+
max-height: 0;
|
|
6166
6187
|
border-bottom: 1px solid var(--separator-color);
|
|
6167
6188
|
-webkit-box-sizing: border-box;
|
|
6168
6189
|
box-sizing: border-box;
|
|
6169
|
-
padding: 2rem;
|
|
6190
|
+
padding: 0 2rem;
|
|
6191
|
+
overflow: hidden;
|
|
6170
6192
|
background-color: var(--surface-color);
|
|
6171
6193
|
}
|
|
6172
6194
|
|
|
@@ -6353,7 +6375,7 @@ body.keyboard-focused .dropdown-content li:focus {
|
|
|
6353
6375
|
right: 0;
|
|
6354
6376
|
bottom: 0;
|
|
6355
6377
|
left: 0;
|
|
6356
|
-
background-color:
|
|
6378
|
+
background-color: var(--md-sys-color-background);
|
|
6357
6379
|
z-index: 1000;
|
|
6358
6380
|
will-change: opacity;
|
|
6359
6381
|
}
|
|
@@ -6361,7 +6383,7 @@ body.keyboard-focused .dropdown-content li:focus {
|
|
|
6361
6383
|
.materialbox-caption {
|
|
6362
6384
|
position: fixed;
|
|
6363
6385
|
display: none;
|
|
6364
|
-
color:
|
|
6386
|
+
color: var(--font-color-main);
|
|
6365
6387
|
line-height: 50px;
|
|
6366
6388
|
bottom: 0;
|
|
6367
6389
|
left: 0;
|
|
@@ -6396,6 +6418,9 @@ label {
|
|
|
6396
6418
|
::-moz-placeholder {
|
|
6397
6419
|
color: var(--font-color-medium);
|
|
6398
6420
|
}
|
|
6421
|
+
:-ms-input-placeholder {
|
|
6422
|
+
color: var(--font-color-medium);
|
|
6423
|
+
}
|
|
6399
6424
|
::-ms-input-placeholder {
|
|
6400
6425
|
color: var(--font-color-medium);
|
|
6401
6426
|
}
|
|
@@ -6464,6 +6489,14 @@ textarea.materialize-textarea {
|
|
|
6464
6489
|
.input-field input:focus:not([readonly]) + label, .input-field textarea:focus:not([readonly]) + label {
|
|
6465
6490
|
color: var(--primary-color);
|
|
6466
6491
|
}
|
|
6492
|
+
.input-field input:not(:-moz-placeholder-shown) + label, .input-field textarea:not(:-moz-placeholder-shown) + label {
|
|
6493
|
+
transform: scale(0.75);
|
|
6494
|
+
top: 8px;
|
|
6495
|
+
}
|
|
6496
|
+
.input-field input:not(:-ms-input-placeholder) + label, .input-field textarea:not(:-ms-input-placeholder) + label {
|
|
6497
|
+
transform: scale(0.75);
|
|
6498
|
+
top: 8px;
|
|
6499
|
+
}
|
|
6467
6500
|
.input-field input:focus:not([readonly]) + label, .input-field input:not([placeholder=" "]) + label, .input-field input:not(:placeholder-shown) + label, .input-field textarea:focus:not([readonly]) + label, .input-field textarea:not([placeholder=" "]) + label, .input-field textarea:not(:placeholder-shown) + label {
|
|
6468
6501
|
-webkit-transform: scale(0.75);
|
|
6469
6502
|
transform: scale(0.75);
|
|
@@ -6480,6 +6513,10 @@ textarea.materialize-textarea {
|
|
|
6480
6513
|
-moz-user-select: none;
|
|
6481
6514
|
user-select: none;
|
|
6482
6515
|
}
|
|
6516
|
+
.input-field input:-ms-input-placeholder {
|
|
6517
|
+
-ms-user-select: none;
|
|
6518
|
+
user-select: none;
|
|
6519
|
+
}
|
|
6483
6520
|
.input-field input::-ms-input-placeholder {
|
|
6484
6521
|
-ms-user-select: none;
|
|
6485
6522
|
user-select: none;
|
|
@@ -6569,6 +6606,20 @@ textarea.materialize-textarea {
|
|
|
6569
6606
|
.input-field.outlined input:focus:not([readonly]) + label, .input-field.outlined textarea:focus:not([readonly]) + label {
|
|
6570
6607
|
color: var(--primary-color);
|
|
6571
6608
|
}
|
|
6609
|
+
.input-field.outlined input:not(:-moz-placeholder-shown) + label, .input-field.outlined textarea:not(:-moz-placeholder-shown) + label {
|
|
6610
|
+
top: -8px;
|
|
6611
|
+
left: 16px;
|
|
6612
|
+
margin-left: -4px;
|
|
6613
|
+
padding: 0 4px;
|
|
6614
|
+
background-color: var(--background-color);
|
|
6615
|
+
}
|
|
6616
|
+
.input-field.outlined input:not(:-ms-input-placeholder) + label, .input-field.outlined textarea:not(:-ms-input-placeholder) + label {
|
|
6617
|
+
top: -8px;
|
|
6618
|
+
left: 16px;
|
|
6619
|
+
margin-left: -4px;
|
|
6620
|
+
padding: 0 4px;
|
|
6621
|
+
background-color: var(--background-color);
|
|
6622
|
+
}
|
|
6572
6623
|
.input-field.outlined input:focus:not([readonly]) + label, .input-field.outlined input:not([placeholder=" "]) + label, .input-field.outlined input:not(:placeholder-shown) + label, .input-field.outlined textarea:focus:not([readonly]) + label, .input-field.outlined textarea:not([placeholder=" "]) + label, .input-field.outlined textarea:not(:placeholder-shown) + label {
|
|
6573
6624
|
top: -8px;
|
|
6574
6625
|
left: 16px;
|
|
@@ -7429,10 +7480,8 @@ input[type=range]::-moz-range-thumb {
|
|
|
7429
7480
|
width: 14px;
|
|
7430
7481
|
border-radius: 50%;
|
|
7431
7482
|
background: var(--primary-color);
|
|
7432
|
-
-
|
|
7433
|
-
transition: -webkit-box-shadow 0.3s;
|
|
7483
|
+
-moz-transition: box-shadow 0.3s;
|
|
7434
7484
|
transition: box-shadow 0.3s;
|
|
7435
|
-
transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
|
|
7436
7485
|
margin-top: -5px;
|
|
7437
7486
|
}
|
|
7438
7487
|
|
|
@@ -7470,10 +7519,8 @@ input[type=range]::-ms-thumb {
|
|
|
7470
7519
|
width: 14px;
|
|
7471
7520
|
border-radius: 50%;
|
|
7472
7521
|
background: var(--primary-color);
|
|
7473
|
-
-
|
|
7474
|
-
transition: -webkit-box-shadow 0.3s;
|
|
7522
|
+
-ms-transition: box-shadow 0.3s;
|
|
7475
7523
|
transition: box-shadow 0.3s;
|
|
7476
|
-
transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
|
|
7477
7524
|
}
|
|
7478
7525
|
|
|
7479
7526
|
.keyboard-focused input[type=range]:focus:not(.active)::-ms-thumb {
|
|
@@ -8871,8 +8918,8 @@ input[type=range]::-ms-thumb {
|
|
|
8871
8918
|
flex: 0 1 270px;
|
|
8872
8919
|
}
|
|
8873
8920
|
.datepicker-controls,
|
|
8874
|
-
.datepicker-table,
|
|
8875
|
-
.datepicker-footer {
|
|
8921
|
+
.datepicker-table,
|
|
8922
|
+
.datepicker-footer {
|
|
8876
8923
|
width: 320px;
|
|
8877
8924
|
}
|
|
8878
8925
|
.datepicker-day-button {
|