mtrl-addons 0.3.2 → 0.3.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/dist/components/vlist/constants.d.ts +2 -0
- package/dist/index.js +89 -18
- package/dist/index.mjs +89 -18
- package/dist/styles.css +17 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/src/styles/components/_vlist.scss +26 -1
package/dist/styles.css
CHANGED
|
@@ -38,12 +38,28 @@
|
|
|
38
38
|
min-height: 100px;
|
|
39
39
|
background-color: var(--mtrl-sys-color-surface);
|
|
40
40
|
border: 2px solid var(--mtrl-sys-color-outline-variant);
|
|
41
|
-
border-radius: 3px;
|
|
42
41
|
transition: background-color 400ms cubic-bezier(0.2, 0, 0, 1);
|
|
43
42
|
contain: layout style paint;
|
|
44
43
|
transform: translateZ(0);
|
|
45
44
|
backface-visibility: hidden;
|
|
46
45
|
}
|
|
46
|
+
.mtrl-vlist::before {
|
|
47
|
+
content: "";
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: 0;
|
|
50
|
+
left: 0;
|
|
51
|
+
right: 0;
|
|
52
|
+
height: 3px;
|
|
53
|
+
background: linear-gradient(to bottom, rgba(var(--mtrl-sys-color-shadow-rgb), 0.2) 0%, transparent 100%);
|
|
54
|
+
opacity: 0;
|
|
55
|
+
transition: opacity 0.2s ease;
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
z-index: 5;
|
|
58
|
+
border-radius: 0;
|
|
59
|
+
}
|
|
60
|
+
.mtrl-vlist--scrolled::before {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
}
|
|
47
63
|
.mtrl-vlist--selection {
|
|
48
64
|
cursor: pointer;
|
|
49
65
|
}
|
package/dist/styles.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../mtrl/src/styles/abstract/_theme.scss","../src/styles/components/_vlist.scss"],"names":[],"mappings":"AAkDA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACpBA;EACI;IAEI;;EAEJ;IACI;;;AAIR;EACI;IACI;;EAEJ;IACI;;;AAIR;EACI;IACI;IACA;;EAEJ;IACI;IACA;;;AAQR;EACI;EACA;EACA;EACA;EACA;EACA;
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../mtrl/src/styles/abstract/_theme.scss","../src/styles/components/_vlist.scss"],"names":[],"mappings":"AAkDA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACpBA;EACI;IAEI;;EAEJ;IACI;;;AAIR;EACI;IACI;;EAEJ;IACI;;;AAIR;EACI;IACI;IACA;;EAEJ;IACI;IACA;;;AAQR;EACI;EACA;EACA;EACA;EACA;EACA;EAEA,YAjDY;EAoDZ;EACA;EACA;;AAGA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EAKA;EACA;EACA;EACA;EACA;;AAIJ;EACI;;AAIJ;EACI;;AACA;EACI;;AAGJ;AAAA;EAEI;EACA;EACA;;AASI;AAAA;AAAA;AAAA;AAAA;AAAA;EAKI;EACA,YA5GD;;AAmHf;EACI;EACA;EACA,YApHa;;;AA4HrB;EACI;EACA;EACA;EACA;;AAGA;EACI;EACA;EACA;EACA;EACA;;;AAIR;EACI;EACA;EACA,YA/IiB;EAgJjB;;AAEA;EACI;;AAGJ;EAEI;;AAIJ;EACI;;;AAIR;EACI;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;AAAA;EAEI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;;;AAGJ;EACI;;;AAGJ;EAEI;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;;;AAOJ;EACI;EACA;;AAGA;AAAA;AAAA;EAGI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIJ;AAAA;EAEI;;AAGJ;EACI;;AAIJ;AAAA;EAEI;;AAIJ;EACI;EACA;EACA;;;AAQR;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGA;EAGI;;AAGJ;EACI;;AAIJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI;;AAGJ;EAEI;EACA;EACA;;;AASZ;EACI;IACI;;EAEA;IACI;;EAEA;IACI;;EAGJ;IAEI;;;AAWhB;EACI;IACI;IACA;IACA","file":"styles.css"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mtrl-addons",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Additional components and utilities for the mtrl system, featuring forms, specialized elements, and extended functionality for modern applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -69,7 +69,7 @@ $opacity-transition: opacity $transition-duration $transition-easing;
|
|
|
69
69
|
min-height: 100px;
|
|
70
70
|
background-color: t.color("surface");
|
|
71
71
|
border: 2px solid var(--mtrl-sys-color-outline-variant);
|
|
72
|
-
border-radius: 3px;
|
|
72
|
+
// border-radius: 3px;
|
|
73
73
|
transition: $bg-transition;
|
|
74
74
|
|
|
75
75
|
// Performance optimizations
|
|
@@ -77,6 +77,31 @@ $opacity-transition: opacity $transition-duration $transition-easing;
|
|
|
77
77
|
transform: translateZ(0);
|
|
78
78
|
backface-visibility: hidden;
|
|
79
79
|
|
|
80
|
+
// Scroll indicator shadow (visible when scrolled)
|
|
81
|
+
&::before {
|
|
82
|
+
content: "";
|
|
83
|
+
position: absolute;
|
|
84
|
+
top: 0;
|
|
85
|
+
left: 0;
|
|
86
|
+
right: 0;
|
|
87
|
+
height: 3px;
|
|
88
|
+
background: linear-gradient(
|
|
89
|
+
to bottom,
|
|
90
|
+
t.alpha("shadow", 0.2) 0%,
|
|
91
|
+
transparent 100%
|
|
92
|
+
);
|
|
93
|
+
opacity: 0;
|
|
94
|
+
transition: opacity 0.2s ease;
|
|
95
|
+
pointer-events: none;
|
|
96
|
+
z-index: 5;
|
|
97
|
+
border-radius: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Scrolled state - show top shadow indicator
|
|
101
|
+
&--scrolled::before {
|
|
102
|
+
opacity: 1;
|
|
103
|
+
}
|
|
104
|
+
|
|
80
105
|
// Selection mode
|
|
81
106
|
&--selection {
|
|
82
107
|
cursor: pointer;
|