unika-components 1.0.41 → 1.0.43

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.
@@ -69,9 +69,9 @@ declare const _default: import("vue").DefineComponent<{
69
69
  valueOf: number;
70
70
  }[]>;
71
71
  currentDate: import("vue").ComputedRef<string>;
72
- afterStyle: {
72
+ afterStyle: import("vue").ComputedRef<{
73
73
  '--after-haert-color': string;
74
- };
74
+ }>;
75
75
  dayTexts: import("vue").ComputedRef<unknown[]>;
76
76
  getHeart: (db: {
77
77
  currentMonth: number;
@@ -1,4 +1,20 @@
1
1
 
2
+ .uni-image-component {
3
+ max-width: 100%;
4
+ }
5
+
6
+ h2.uni-text-component, p.uni-text-component {
7
+ margin-bottom: 0;
8
+ }
9
+ button.uni-text-component {
10
+ padding: 5px 10px;
11
+ cursor: pointer;
12
+ }
13
+ .uni-text-component {
14
+ box-sizing: border-box;
15
+ white-space: pre-wrap;
16
+ }
17
+
2
18
  .slide-guide {
3
19
  position: absolute;
4
20
  bottom: 90px;
@@ -71,22 +87,27 @@ body, html {
71
87
  transform: translate3d(-50%, -50%, 0);
72
88
  }
73
89
  }
74
-
75
- h2.uni-text-component, p.uni-text-component {
76
- margin-bottom: 0;
77
- }
78
- button.uni-text-component {
79
- padding: 5px 10px;
80
- cursor: pointer;
81
- }
82
- .uni-text-component {
83
- box-sizing: border-box;
84
- white-space: pre-wrap;
85
- }
86
-
87
- .uni-image-component {
88
- max-width: 100%;
89
- }
90
+
91
+ .uni-video-component {
92
+ position: relative;
93
+ text-align: center;
94
+ }
95
+ .play-pause-button {
96
+ position: absolute;
97
+ top: 50%;
98
+ left: 50%;
99
+ transform: translate(-50%, -50%);
100
+ cursor: pointer;
101
+ font-size: 2rem;
102
+ color: #fff;
103
+ background: rgba(0, 0, 0, 0.6);
104
+ border-radius: 50%;
105
+ padding: 10px;
106
+ transition: background 0.3s;
107
+ }
108
+ .play-pause-button:hover {
109
+ background: rgba(0, 0, 0, 0.8);
110
+ }
90
111
 
91
112
  .uni-background-component {
92
113
  width: 100%;
@@ -124,12 +145,26 @@ button.uni-text-component {
124
145
  opacity: 0.1;
125
146
  }
126
147
 
127
- .slot-number {
128
- position: absolute;
129
- bottom: 2px;
130
- left: 7px;
131
- font-size: 12px;
132
- color: #666
148
+ .like-button {
149
+ display: flex;
150
+ flex-direction: column;
151
+ align-items: center;
152
+ cursor: pointer;
153
+ }
154
+
155
+ .icon-heart {
156
+ font-size: 24px;
157
+ color: #e74c3c;
158
+ }
159
+
160
+ .liked {
161
+ color: #f00; /* 更改颜色以示已赞 */
162
+ }
163
+
164
+ .like-count {
165
+ margin-top: 4px;
166
+ font-size: 16px;
167
+ color: #333;
133
168
  }
134
169
 
135
170
  #audio {
@@ -227,69 +262,18 @@ button.uni-text-component {
227
262
  }
228
263
  }
229
264
 
230
- #app1 {
231
- position: relative;
232
- }
233
- .snowflake {
234
- position: absolute;
235
- top: 0;
236
- left: 0;
237
- width: 10px;
238
- height: 10px;
239
- background: red;
240
- border-radius: 50%;
241
- animation: falling 10s linear infinite;
242
- }
243
- @keyframes falling {
244
- from {
245
- transform: translateY(0) rotate(0deg);
246
- }
247
- to {
248
- transform: translateY(100vh) rotate(360deg);
249
- }
250
- }
251
-
252
- .uni-video-component {
253
- position: relative;
254
- text-align: center;
255
- }
256
- .play-pause-button {
257
- position: absolute;
258
- top: 50%;
259
- left: 50%;
260
- transform: translate(-50%, -50%);
261
- cursor: pointer;
262
- font-size: 2rem;
263
- color: #fff;
264
- background: rgba(0, 0, 0, 0.6);
265
- border-radius: 50%;
266
- padding: 10px;
267
- transition: background 0.3s;
268
- }
269
- .play-pause-button:hover {
270
- background: rgba(0, 0, 0, 0.8);
271
- }
272
-
273
- .like-button {
274
- display: flex;
275
- flex-direction: column;
276
- align-items: center;
277
- cursor: pointer;
278
- }
279
-
280
- .icon-heart {
281
- font-size: 24px;
282
- color: #e74c3c;
265
+ .swiper-container {
266
+ width: 100%;
267
+ height: 300px;
283
268
  }
284
269
 
285
- .liked {
286
- color: #f00; /* 更改颜色以示已赞 */
270
+ .swiper-slide {
271
+ text-align: center;
287
272
  }
288
273
 
289
- .like-count {
290
- margin-top: 4px;
291
- font-size: 16px;
292
- color: #333;
274
+ .swiper-slide img {
275
+ max-width: 100%;
276
+ max-height: 100%;
293
277
  }
294
278
 
295
279
  .video-player {
@@ -313,18 +297,34 @@ button.uni-text-component {
313
297
  background: rgba(0, 0, 0, 0.8);
314
298
  }
315
299
 
316
- .swiper-container {
317
- width: 100%;
318
- height: 300px;
300
+ .slot-number {
301
+ position: absolute;
302
+ bottom: 2px;
303
+ left: 7px;
304
+ font-size: 12px;
305
+ color: #666
319
306
  }
320
307
 
321
- .swiper-slide {
322
- text-align: center;
308
+ #app1 {
309
+ position: relative;
323
310
  }
324
-
325
- .swiper-slide img {
326
- max-width: 100%;
327
- max-height: 100%;
311
+ .snowflake {
312
+ position: absolute;
313
+ top: 0;
314
+ left: 0;
315
+ width: 10px;
316
+ height: 10px;
317
+ background: red;
318
+ border-radius: 50%;
319
+ animation: falling 10s linear infinite;
320
+ }
321
+ @keyframes falling {
322
+ from {
323
+ transform: translateY(0) rotate(0deg);
324
+ }
325
+ to {
326
+ transform: translateY(100vh) rotate(360deg);
327
+ }
328
328
  }
329
329
  /**
330
330
  * Swiper 6.8.4
@@ -874,62 +874,249 @@ button.swiper-pagination-bullet {
874
874
  backface-visibility: hidden;
875
875
  }
876
876
 
877
- .unika-calendar-title {
878
- font-size: 25px;
879
- padding-bottom: 4px;
880
- }
881
- .unika-calendar-header {
882
- display: -webkit-box;
883
- display: -ms-flexbox;
884
- display: flex;
885
- -webkit-box-pack: justify;
886
- -ms-flex-pack: justify;
887
- justify-content: space-between;
888
- -webkit-box-align: end;
889
- -ms-flex-align: end;
890
- align-items: flex-end;
891
- line-height: 1;
892
- padding: 0 47px 20px;
893
- }
894
- .unika-calendar-header .disabled {
895
- pointer-events: none;
896
- color: #f0f0f0;
897
- }
898
- .unika-calendar-th {
899
- display: -webkit-box;
900
- display: -ms-flexbox;
901
- display: flex;
902
- -webkit-box-pack: start;
903
- -ms-flex-pack: start;
904
- justify-content: flex-start;
905
- height: 25px;
906
- line-height: 25px;
907
- padding: 0 10px;
908
- border-radius: 13px
877
+
878
+ .no-animation__card {
879
+ font-weight: 500;
880
+ font-size: var(--countdown-size, 2rem);
881
+ line-height: 1.5;
882
+ display: block;
883
+ color: var(--main-color, #EC685C);
909
884
  }
910
- .unika-calendar-th > * {
911
- width: 14.2%;
885
+
886
+ .flip-clock {
912
887
  text-align: center;
913
- color: #fff;
914
- font-size: 15px;
915
- }
916
- .unika-calendar-th > *:not(:first-child) {
917
- margin-left: 10px;
888
+ perspective: 600px;
889
+ margin: 0 auto;
918
890
  }
919
- .unika-calendar-body {
920
- padding: 0;
921
- margin: 0;
922
- font-size: 0;
923
- padding: 5px 10px 0;
924
- text-align: left;
891
+
892
+ .flip-clock *,
893
+ .flip-clock *:before,
894
+ .flip-clock *:after {
895
+ box-sizing: border-box;
925
896
  }
926
- .unika-calendar-editor {
927
- font-size: 25px;
897
+
898
+ .flip-clock__piece {
899
+ display: inline-block;
900
+ margin: 0 0.2vw;
928
901
  }
929
- .unika-calendar-editor span {
930
- position: relative;
931
- top: 2px;
932
- font-size: 57px;
902
+
903
+ @media (min-width: 1000px) {
904
+ .flip-clock__piece {
905
+ margin: 0 5px;
906
+ }
907
+ }
908
+
909
+ .flip-clock__slot {
910
+ font-size: var(--label-size, 1rem);
911
+ line-height: 1.5;
912
+ display: block;
913
+ color: var(--label-color, #222222);
914
+ }
915
+
916
+ .flip-card {
917
+ display: block;
918
+ position: relative;
919
+ padding-bottom: 0.72em; /* halfHeight */
920
+ font-size: var(--countdown-size, 2.25rem);
921
+ line-height: 0.95;
922
+ }
923
+
924
+ @media (min-width: 1000px) {
925
+ .flip-clock__slot {
926
+ font-size: 1.2rem;
927
+ }
928
+
929
+ .flip-card {
930
+ font-size: 3rem;
931
+ }
932
+ }
933
+
934
+ .flip-card__top,
935
+ .flip-card__bottom,
936
+ .flip-card__back-bottom,
937
+ .flip-card__back::before,
938
+ .flip-card__back::after{
939
+ display: block;
940
+ height: 0.72em; /* halfHeight */
941
+ color: var(--main-color, #EC685C);
942
+ background: var(--main-flip-background-color, #222222);
943
+ padding: 0.23em 0.15em 0.4em;
944
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
945
+ backface-visibility: hidden;
946
+ -webkit-backface-visibility: hidden;
947
+ transform-style: preserve-3d;
948
+ width: 2.1em;
949
+ }
950
+
951
+ .flip-card__top-4digits,
952
+ .flip-card__bottom-4digits,
953
+ .flip-card__back-bottom-4digits,
954
+ .flip-card__back-4digits::before,
955
+ .flip-card__back-4digits::after {
956
+ display: block;
957
+ height: 0.72em; /* halfHeight */
958
+ color: var(--main-color, #EC685C);
959
+ background: var(--main-flip-background-color, #222222);
960
+ padding: 0.23em 0.15em 0.4em;
961
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
962
+ backface-visibility: hidden;
963
+ -webkit-backface-visibility: hidden;
964
+ transform-style: preserve-3d;
965
+ width: 2.65em;
966
+ }
967
+
968
+ .flip-card__bottom,
969
+ .flip-card__back-bottom,
970
+ .flip-card__bottom-4digits,
971
+ .flip-card__back-bottom-4digits {
972
+ color: var(--second-flip-color, #EC685C);
973
+ position: absolute;
974
+ top: 50%;
975
+ left: 0;
976
+ border-top: solid 1px #000;
977
+ background: var(--second-flip-background-color, #393939);
978
+ border-radius: 0 0 0.15em 0.15em; /* borderRadius */
979
+ pointer-events: none;
980
+ overflow: hidden;
981
+ z-index: 2;
982
+ }
983
+
984
+ .flip-card__back-bottom,
985
+ .flip-card__back-bottom-4digits {
986
+ z-index: 1;
987
+ }
988
+
989
+ .flip-card__bottom::after,
990
+ .flip-card__back-bottom::after,
991
+ .flip-card__bottom-4digits::after,
992
+ .flip-card__back-bottom-4digits::after {
993
+ display: block;
994
+ margin-top: -0.72em; /* Negative halfHeight */
995
+ }
996
+ .flip-card__back::before,
997
+ .flip-card__bottom::after,
998
+ .flip-card__back-bottom::after,
999
+ .flip-card__back-4digits::before,
1000
+ .flip-card__bottom-4digits::after,
1001
+ .flip-card__back-bottom-4digits::after {
1002
+ content: attr(data-value);
1003
+ }
1004
+
1005
+ .flip-card__back,
1006
+ .flip-card__back-4digits {
1007
+ position: absolute;
1008
+ top: 0;
1009
+ height: 100%;
1010
+ left: 0%;
1011
+ pointer-events: none;
1012
+ }
1013
+ .flip-card__back::before,
1014
+ .flip-card__back-4digits::before {
1015
+ position: relative;
1016
+ overflow: hidden;
1017
+ z-index: -1;
1018
+ }
1019
+
1020
+ .flip .flip-card__back::before,
1021
+ .flip .flip-card__back-4digits::before {
1022
+ z-index: 1;
1023
+ animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
1024
+ animation-fill-mode: both;
1025
+ transform-origin: center bottom;
1026
+ }
1027
+
1028
+ .flip .flip-card__bottom,
1029
+ .flip .flip-card__bottom-4digits {
1030
+ transform-origin: center top;
1031
+ animation-fill-mode: both;
1032
+ animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
1033
+ }
1034
+ @keyframes flipTop {
1035
+ 0% {
1036
+ transform: rotateX(0deg);
1037
+ z-index: 2;
1038
+ }
1039
+ 0%, 99% {
1040
+ opacity: 1;
1041
+ }
1042
+ 100% {
1043
+ transform: rotateX(-90deg);
1044
+ opacity: 0;
1045
+ }
1046
+ }
1047
+
1048
+ @keyframes flipBottom {
1049
+ 0%, 50% {
1050
+ z-index: -1;
1051
+ transform: rotateX(90deg);
1052
+ opacity: 0;
1053
+ }
1054
+ 51% {
1055
+ opacity: 1;
1056
+ }
1057
+ 100% {
1058
+ opacity: 1;
1059
+ transform: rotateX(0deg);
1060
+ z-index: 5;
1061
+ }
1062
+ }
1063
+
1064
+ .unika-calendar-title {
1065
+ font-size: 25px;
1066
+ padding-bottom: 4px;
1067
+ }
1068
+ .unika-calendar-header {
1069
+ display: -webkit-box;
1070
+ display: -ms-flexbox;
1071
+ display: flex;
1072
+ -webkit-box-pack: justify;
1073
+ -ms-flex-pack: justify;
1074
+ justify-content: space-between;
1075
+ -webkit-box-align: end;
1076
+ -ms-flex-align: end;
1077
+ align-items: flex-end;
1078
+ line-height: 1;
1079
+ padding: 0 47px 20px;
1080
+ }
1081
+ .unika-calendar-header .disabled {
1082
+ pointer-events: none;
1083
+ color: #f0f0f0;
1084
+ }
1085
+ .unika-calendar-th {
1086
+ display: -webkit-box;
1087
+ display: -ms-flexbox;
1088
+ display: flex;
1089
+ -webkit-box-pack: start;
1090
+ -ms-flex-pack: start;
1091
+ justify-content: flex-start;
1092
+ height: 25px;
1093
+ line-height: 25px;
1094
+ padding: 0 10px;
1095
+ border-radius: 13px
1096
+ }
1097
+ .unika-calendar-th > * {
1098
+ width: 14.2%;
1099
+ text-align: center;
1100
+ color: #fff;
1101
+ font-size: 15px;
1102
+ }
1103
+ .unika-calendar-th > *:not(:first-child) {
1104
+ margin-left: 10px;
1105
+ }
1106
+ .unika-calendar-body {
1107
+ padding: 0;
1108
+ margin: 0;
1109
+ font-size: 0;
1110
+ padding: 5px 10px 0;
1111
+ text-align: left;
1112
+ }
1113
+ .unika-calendar-editor {
1114
+ font-size: 25px;
1115
+ }
1116
+ .unika-calendar-editor span {
1117
+ position: relative;
1118
+ top: 2px;
1119
+ font-size: 57px;
933
1120
  }
934
1121
  .unika-calendar-day {
935
1122
  display: inline-block;
@@ -1125,190 +1312,3 @@ button.swiper-pagination-bullet {
1125
1312
  padding: 0 0px;
1126
1313
  border-bottom: 1px solid
1127
1314
  }
1128
-
1129
-
1130
- .no-animation__card {
1131
- font-weight: 500;
1132
- font-size: var(--countdown-size, 2rem);
1133
- line-height: 1.5;
1134
- display: block;
1135
- color: var(--main-color, #EC685C);
1136
- }
1137
-
1138
- .flip-clock {
1139
- text-align: center;
1140
- perspective: 600px;
1141
- margin: 0 auto;
1142
- }
1143
-
1144
- .flip-clock *,
1145
- .flip-clock *:before,
1146
- .flip-clock *:after {
1147
- box-sizing: border-box;
1148
- }
1149
-
1150
- .flip-clock__piece {
1151
- display: inline-block;
1152
- margin: 0 0.2vw;
1153
- }
1154
-
1155
- @media (min-width: 1000px) {
1156
- .flip-clock__piece {
1157
- margin: 0 5px;
1158
- }
1159
- }
1160
-
1161
- .flip-clock__slot {
1162
- font-size: var(--label-size, 1rem);
1163
- line-height: 1.5;
1164
- display: block;
1165
- color: var(--label-color, #222222);
1166
- }
1167
-
1168
- .flip-card {
1169
- display: block;
1170
- position: relative;
1171
- padding-bottom: 0.72em; /* halfHeight */
1172
- font-size: var(--countdown-size, 2.25rem);
1173
- line-height: 0.95;
1174
- }
1175
-
1176
- @media (min-width: 1000px) {
1177
- .flip-clock__slot {
1178
- font-size: 1.2rem;
1179
- }
1180
-
1181
- .flip-card {
1182
- font-size: 3rem;
1183
- }
1184
- }
1185
-
1186
- .flip-card__top,
1187
- .flip-card__bottom,
1188
- .flip-card__back-bottom,
1189
- .flip-card__back::before,
1190
- .flip-card__back::after{
1191
- display: block;
1192
- height: 0.72em; /* halfHeight */
1193
- color: var(--main-color, #EC685C);
1194
- background: var(--main-flip-background-color, #222222);
1195
- padding: 0.23em 0.15em 0.4em;
1196
- border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1197
- backface-visibility: hidden;
1198
- -webkit-backface-visibility: hidden;
1199
- transform-style: preserve-3d;
1200
- width: 2.1em;
1201
- }
1202
-
1203
- .flip-card__top-4digits,
1204
- .flip-card__bottom-4digits,
1205
- .flip-card__back-bottom-4digits,
1206
- .flip-card__back-4digits::before,
1207
- .flip-card__back-4digits::after {
1208
- display: block;
1209
- height: 0.72em; /* halfHeight */
1210
- color: var(--main-color, #EC685C);
1211
- background: var(--main-flip-background-color, #222222);
1212
- padding: 0.23em 0.15em 0.4em;
1213
- border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1214
- backface-visibility: hidden;
1215
- -webkit-backface-visibility: hidden;
1216
- transform-style: preserve-3d;
1217
- width: 2.65em;
1218
- }
1219
-
1220
- .flip-card__bottom,
1221
- .flip-card__back-bottom,
1222
- .flip-card__bottom-4digits,
1223
- .flip-card__back-bottom-4digits {
1224
- color: var(--second-flip-color, #EC685C);
1225
- position: absolute;
1226
- top: 50%;
1227
- left: 0;
1228
- border-top: solid 1px #000;
1229
- background: var(--second-flip-background-color, #393939);
1230
- border-radius: 0 0 0.15em 0.15em; /* borderRadius */
1231
- pointer-events: none;
1232
- overflow: hidden;
1233
- z-index: 2;
1234
- }
1235
-
1236
- .flip-card__back-bottom,
1237
- .flip-card__back-bottom-4digits {
1238
- z-index: 1;
1239
- }
1240
-
1241
- .flip-card__bottom::after,
1242
- .flip-card__back-bottom::after,
1243
- .flip-card__bottom-4digits::after,
1244
- .flip-card__back-bottom-4digits::after {
1245
- display: block;
1246
- margin-top: -0.72em; /* Negative halfHeight */
1247
- }
1248
- .flip-card__back::before,
1249
- .flip-card__bottom::after,
1250
- .flip-card__back-bottom::after,
1251
- .flip-card__back-4digits::before,
1252
- .flip-card__bottom-4digits::after,
1253
- .flip-card__back-bottom-4digits::after {
1254
- content: attr(data-value);
1255
- }
1256
-
1257
- .flip-card__back,
1258
- .flip-card__back-4digits {
1259
- position: absolute;
1260
- top: 0;
1261
- height: 100%;
1262
- left: 0%;
1263
- pointer-events: none;
1264
- }
1265
- .flip-card__back::before,
1266
- .flip-card__back-4digits::before {
1267
- position: relative;
1268
- overflow: hidden;
1269
- z-index: -1;
1270
- }
1271
-
1272
- .flip .flip-card__back::before,
1273
- .flip .flip-card__back-4digits::before {
1274
- z-index: 1;
1275
- animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
1276
- animation-fill-mode: both;
1277
- transform-origin: center bottom;
1278
- }
1279
-
1280
- .flip .flip-card__bottom,
1281
- .flip .flip-card__bottom-4digits {
1282
- transform-origin: center top;
1283
- animation-fill-mode: both;
1284
- animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
1285
- }
1286
- @keyframes flipTop {
1287
- 0% {
1288
- transform: rotateX(0deg);
1289
- z-index: 2;
1290
- }
1291
- 0%, 99% {
1292
- opacity: 1;
1293
- }
1294
- 100% {
1295
- transform: rotateX(-90deg);
1296
- opacity: 0;
1297
- }
1298
- }
1299
-
1300
- @keyframes flipBottom {
1301
- 0%, 50% {
1302
- z-index: -1;
1303
- transform: rotateX(90deg);
1304
- opacity: 0;
1305
- }
1306
- 51% {
1307
- opacity: 1;
1308
- }
1309
- 100% {
1310
- opacity: 1;
1311
- transform: rotateX(0deg);
1312
- z-index: 5;
1313
- }
1314
- }
@@ -14682,9 +14682,9 @@ var script$a = defineComponent({
14682
14682
  }
14683
14683
  return false;
14684
14684
  };
14685
- const afterStyle = {
14686
- '--after-haert-color': props.heartColor
14687
- };
14685
+ const afterStyle = computed(() => {
14686
+ return { '--after-haert-color': props.heartColor };
14687
+ });
14688
14688
  const dayTexts = computed(() => {
14689
14689
  if (props.language == 'en') {
14690
14690
  return props.dayTextsEn;
@@ -14689,9 +14689,9 @@
14689
14689
  }
14690
14690
  return false;
14691
14691
  };
14692
- const afterStyle = {
14693
- '--after-haert-color': props.heartColor
14694
- };
14692
+ const afterStyle = vue.computed(() => {
14693
+ return { '--after-haert-color': props.heartColor };
14694
+ });
14695
14695
  const dayTexts = vue.computed(() => {
14696
14696
  if (props.language == 'en') {
14697
14697
  return props.dayTextsEn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",