@santi020k/lumen-elements 4.0.0 → 4.2.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 +30 -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 +66 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@santi020k/lumen-elements",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.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.2.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;
|
|
@@ -820,6 +837,10 @@
|
|
|
820
837
|
width: min(100%, 34rem);
|
|
821
838
|
}
|
|
822
839
|
|
|
840
|
+
lumen-date-picker.ui-date-picker-field {
|
|
841
|
+
display: block;
|
|
842
|
+
}
|
|
843
|
+
|
|
823
844
|
.ui-combobox > .ui-input {
|
|
824
845
|
width: 100%;
|
|
825
846
|
}
|
|
@@ -1007,7 +1028,9 @@
|
|
|
1007
1028
|
}
|
|
1008
1029
|
|
|
1009
1030
|
.ui-skeleton {
|
|
1010
|
-
|
|
1031
|
+
/* A default height, not a minimum, lets explicit styles and classes size placeholders below 1rem. */
|
|
1032
|
+
width: var(--ui-skeleton-width, auto);
|
|
1033
|
+
height: var(--ui-skeleton-height, 1rem);
|
|
1011
1034
|
border-radius: var(--ui-radius-sm);
|
|
1012
1035
|
background: linear-gradient(
|
|
1013
1036
|
90deg,
|
|
@@ -1019,6 +1042,42 @@
|
|
|
1019
1042
|
animation: ui-shimmer 2.2s linear infinite;
|
|
1020
1043
|
}
|
|
1021
1044
|
|
|
1045
|
+
.ui-skeleton:where(:not(:empty)) {
|
|
1046
|
+
height: var(--ui-skeleton-height, auto);
|
|
1047
|
+
min-height: 1rem;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
lumen-skeleton.ui-skeleton,
|
|
1051
|
+
lumen-progress.ui-progress {
|
|
1052
|
+
display: block;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
.ui-skeleton--text {
|
|
1056
|
+
height: var(--ui-skeleton-height, 0.75rem);
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
.ui-skeleton--circle {
|
|
1060
|
+
flex: 0 0 auto;
|
|
1061
|
+
width: var(--ui-skeleton-width, var(--ui-skeleton-height, 2.5rem));
|
|
1062
|
+
height: var(--ui-skeleton-height, var(--ui-skeleton-width, 2.5rem));
|
|
1063
|
+
border-radius: 50%;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
.ui-skeleton--pulse {
|
|
1067
|
+
background: hsl(var(--surface-strong));
|
|
1068
|
+
animation: ui-skeleton-pulse 1.6s ease-in-out infinite;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
.ui-skeleton--static {
|
|
1072
|
+
animation: none;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1076
|
+
.ui-skeleton {
|
|
1077
|
+
animation: none;
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1022
1081
|
.ui-spinner {
|
|
1023
1082
|
box-sizing: border-box;
|
|
1024
1083
|
display: inline-block;
|
|
@@ -1586,7 +1645,9 @@ lumen-dialog.ui-dialog:not([hidden]):has(> [data-slot="dialog-body"]) {
|
|
|
1586
1645
|
|
|
1587
1646
|
.ui-input-otp__native[data-ui-enhanced="true"] {
|
|
1588
1647
|
position: absolute;
|
|
1589
|
-
|
|
1648
|
+
inset-block-start: 0;
|
|
1649
|
+
inset-inline-start: 0;
|
|
1650
|
+
width: 100%;
|
|
1590
1651
|
height: 1px;
|
|
1591
1652
|
overflow: hidden;
|
|
1592
1653
|
clip-path: inset(50%);
|