@santi020k/lumen-elements 4.0.0 → 4.1.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/README.md +21 -0
- package/dist/components/button.d.ts +6 -2
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/button.js +43 -14
- package/dist/components/foundations.d.ts +28 -16
- package/dist/components/foundations.d.ts.map +1 -1
- package/dist/components/foundations.js +133 -7
- package/dist/define.d.ts.map +1 -1
- package/dist/define.js +1 -1
- package/package.json +3 -3
- package/styles/critical.css +62 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@santi020k/lumen-elements",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"lumen": "./bin/lumen.mjs"
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@santi020k/lumen": "^4.
|
|
94
|
-
"@santi020k/lumen-core": "^4.
|
|
93
|
+
"@santi020k/lumen": "^4.1.0",
|
|
94
|
+
"@santi020k/lumen-core": "^4.1.0"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@vitest/coverage-v8": "^5.0.3",
|
package/styles/critical.css
CHANGED
|
@@ -172,6 +172,17 @@
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
@keyframes ui-skeleton-pulse {
|
|
176
|
+
0%,
|
|
177
|
+
100% {
|
|
178
|
+
opacity: 1;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
50% {
|
|
182
|
+
opacity: 0.55;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
175
186
|
@keyframes ui-spin {
|
|
176
187
|
to {
|
|
177
188
|
transform: rotate(360deg);
|
|
@@ -790,15 +801,21 @@
|
|
|
790
801
|
background-image:
|
|
791
802
|
linear-gradient(45deg, transparent 50%, hsl(var(--ink-muted)) 50%),
|
|
792
803
|
linear-gradient(135deg, hsl(var(--ink-muted)) 50%, transparent 50%);
|
|
793
|
-
background-position:
|
|
794
|
-
calc(100% - 1rem) 50%,
|
|
795
|
-
calc(100% - 0.72rem) 50%;
|
|
804
|
+
background-position: var(--_ui-select-chevron, calc(100% - 1rem) 50%, calc(100% - 0.72rem) 50%);
|
|
796
805
|
background-size:
|
|
797
806
|
0.32rem 0.32rem,
|
|
798
807
|
0.32rem 0.32rem;
|
|
799
808
|
background-repeat: no-repeat;
|
|
800
809
|
}
|
|
801
810
|
|
|
811
|
+
[dir="rtl"] {
|
|
812
|
+
--_ui-select-chevron: 0.72rem 50%, 1rem 50%;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
[dir="ltr"] {
|
|
816
|
+
--_ui-select-chevron: calc(100% - 1rem) 50%, calc(100% - 0.72rem) 50%;
|
|
817
|
+
}
|
|
818
|
+
|
|
802
819
|
.ui-label {
|
|
803
820
|
color: hsl(var(--ink));
|
|
804
821
|
font-size: 0.875rem;
|
|
@@ -1007,7 +1024,9 @@
|
|
|
1007
1024
|
}
|
|
1008
1025
|
|
|
1009
1026
|
.ui-skeleton {
|
|
1010
|
-
|
|
1027
|
+
/* A default height, not a minimum, lets explicit styles and classes size placeholders below 1rem. */
|
|
1028
|
+
width: var(--ui-skeleton-width, auto);
|
|
1029
|
+
height: var(--ui-skeleton-height, 1rem);
|
|
1011
1030
|
border-radius: var(--ui-radius-sm);
|
|
1012
1031
|
background: linear-gradient(
|
|
1013
1032
|
90deg,
|
|
@@ -1019,6 +1038,42 @@
|
|
|
1019
1038
|
animation: ui-shimmer 2.2s linear infinite;
|
|
1020
1039
|
}
|
|
1021
1040
|
|
|
1041
|
+
.ui-skeleton:where(:not(:empty)) {
|
|
1042
|
+
height: var(--ui-skeleton-height, auto);
|
|
1043
|
+
min-height: 1rem;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
lumen-skeleton.ui-skeleton,
|
|
1047
|
+
lumen-progress.ui-progress {
|
|
1048
|
+
display: block;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
.ui-skeleton--text {
|
|
1052
|
+
height: var(--ui-skeleton-height, 0.75rem);
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
.ui-skeleton--circle {
|
|
1056
|
+
flex: 0 0 auto;
|
|
1057
|
+
width: var(--ui-skeleton-width, var(--ui-skeleton-height, 2.5rem));
|
|
1058
|
+
height: var(--ui-skeleton-height, var(--ui-skeleton-width, 2.5rem));
|
|
1059
|
+
border-radius: 50%;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
.ui-skeleton--pulse {
|
|
1063
|
+
background: hsl(var(--surface-strong));
|
|
1064
|
+
animation: ui-skeleton-pulse 1.6s ease-in-out infinite;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
.ui-skeleton--static {
|
|
1068
|
+
animation: none;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1072
|
+
.ui-skeleton {
|
|
1073
|
+
animation: none;
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1022
1077
|
.ui-spinner {
|
|
1023
1078
|
box-sizing: border-box;
|
|
1024
1079
|
display: inline-block;
|
|
@@ -1586,7 +1641,9 @@ lumen-dialog.ui-dialog:not([hidden]):has(> [data-slot="dialog-body"]) {
|
|
|
1586
1641
|
|
|
1587
1642
|
.ui-input-otp__native[data-ui-enhanced="true"] {
|
|
1588
1643
|
position: absolute;
|
|
1589
|
-
|
|
1644
|
+
inset-block-start: 0;
|
|
1645
|
+
inset-inline-start: 0;
|
|
1646
|
+
width: 100%;
|
|
1590
1647
|
height: 1px;
|
|
1591
1648
|
overflow: hidden;
|
|
1592
1649
|
clip-path: inset(50%);
|