unika-components 1.0.16 → 1.0.20
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/src/components/UniCountdown/UniCountdown.vue.d.ts +17 -0
- package/dist/src/components/UniCountdown/index.d.ts +2 -0
- package/dist/src/defaultProps.d.ts +42 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/unika-components.css +208 -73
- package/dist/unika-components.esm.js +6395 -255
- package/dist/unika-components.umd.js +6410 -266
- package/package.json +4 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
deadline: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
styleProps: import("vue").ComputedRef<Pick<any, string>>;
|
|
8
|
+
handleClick: () => void;
|
|
9
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
deadline: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
}>>, {
|
|
15
|
+
deadline: string;
|
|
16
|
+
}, {}>;
|
|
17
|
+
export default _default;
|
|
@@ -254,6 +254,26 @@ export declare const calendarDefaultProps: {
|
|
|
254
254
|
top: string;
|
|
255
255
|
right: string;
|
|
256
256
|
};
|
|
257
|
+
export declare const countdownDefaultProps: {
|
|
258
|
+
actionType: string;
|
|
259
|
+
url: string;
|
|
260
|
+
height: string;
|
|
261
|
+
width: string;
|
|
262
|
+
paddingLeft: string;
|
|
263
|
+
paddingRight: string;
|
|
264
|
+
paddingTop: string;
|
|
265
|
+
paddingBottom: string;
|
|
266
|
+
borderStyle: string;
|
|
267
|
+
borderColor: string;
|
|
268
|
+
borderWidth: string;
|
|
269
|
+
borderRadius: string;
|
|
270
|
+
boxShadow: string;
|
|
271
|
+
opacity: number;
|
|
272
|
+
position: string;
|
|
273
|
+
left: string;
|
|
274
|
+
top: string;
|
|
275
|
+
right: string;
|
|
276
|
+
};
|
|
257
277
|
export declare const componentsDefaultProps: {
|
|
258
278
|
'uni-text': {
|
|
259
279
|
props: {
|
|
@@ -417,6 +437,28 @@ export declare const componentsDefaultProps: {
|
|
|
417
437
|
right: string;
|
|
418
438
|
};
|
|
419
439
|
};
|
|
440
|
+
'uni-countdown': {
|
|
441
|
+
props: {
|
|
442
|
+
actionType: string;
|
|
443
|
+
url: string;
|
|
444
|
+
height: string;
|
|
445
|
+
width: string;
|
|
446
|
+
paddingLeft: string;
|
|
447
|
+
paddingRight: string;
|
|
448
|
+
paddingTop: string;
|
|
449
|
+
paddingBottom: string;
|
|
450
|
+
borderStyle: string;
|
|
451
|
+
borderColor: string;
|
|
452
|
+
borderWidth: string;
|
|
453
|
+
borderRadius: string;
|
|
454
|
+
boxShadow: string;
|
|
455
|
+
opacity: number;
|
|
456
|
+
position: string;
|
|
457
|
+
left: string;
|
|
458
|
+
top: string;
|
|
459
|
+
right: string;
|
|
460
|
+
};
|
|
461
|
+
};
|
|
420
462
|
};
|
|
421
463
|
export declare const isEditingProp: {
|
|
422
464
|
isEditing: {
|
package/dist/src/index.d.ts
CHANGED
|
@@ -8,8 +8,9 @@ import UniBackground from './components/UniBackground';
|
|
|
8
8
|
import UniMusic from './components/UniMusic';
|
|
9
9
|
import UniVideo from './components/UniVideo';
|
|
10
10
|
import UniCalendar from './components/UniCalendar';
|
|
11
|
+
import UniCountdown from './components/UniCountdown';
|
|
11
12
|
declare const install: (app: App) => void;
|
|
12
|
-
export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, UniVideo, UniCalendar, install };
|
|
13
|
+
export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, UniMusic, UniVideo, UniCalendar, UniCountdown, install };
|
|
13
14
|
declare const _default: {
|
|
14
15
|
install: (app: App<any>) => void;
|
|
15
16
|
};
|
|
@@ -1,56 +1,4 @@
|
|
|
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
|
-
|
|
18
|
-
.uni-background-component {
|
|
19
|
-
width: 100%;
|
|
20
|
-
}
|
|
21
|
-
.bg-img {
|
|
22
|
-
width: 100%;
|
|
23
|
-
height: 100%;
|
|
24
|
-
object-fit: cover;
|
|
25
|
-
z-index:1;
|
|
26
|
-
}
|
|
27
|
-
.watermark {
|
|
28
|
-
height: 100%;
|
|
29
|
-
position: absolute;
|
|
30
|
-
top: 0;
|
|
31
|
-
left: 0;
|
|
32
|
-
right: 0;
|
|
33
|
-
bottom: 0;
|
|
34
|
-
}
|
|
35
|
-
.watermark-div {
|
|
36
|
-
height: 100%;
|
|
37
|
-
width:100%;
|
|
38
|
-
position:absolute;
|
|
39
|
-
z-index:99999999;
|
|
40
|
-
}
|
|
41
|
-
body:before{
|
|
42
|
-
content: '';
|
|
43
|
-
position: fixed;
|
|
44
|
-
top: 0;
|
|
45
|
-
bottom: 0;
|
|
46
|
-
left: 0;
|
|
47
|
-
right: 0;
|
|
48
|
-
z-index: -1;
|
|
49
|
-
/* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
|
|
50
|
-
background-position: center;
|
|
51
|
-
opacity: 0.1;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
2
|
.slide-guide {
|
|
55
3
|
position: absolute;
|
|
56
4
|
bottom: 90px;
|
|
@@ -123,6 +71,79 @@ body, html {
|
|
|
123
71
|
transform: translate3d(-50%, -50%, 0);
|
|
124
72
|
}
|
|
125
73
|
}
|
|
74
|
+
|
|
75
|
+
.uni-image-component {
|
|
76
|
+
max-width: 100%;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
h2.uni-text-component, p.uni-text-component {
|
|
80
|
+
margin-bottom: 0;
|
|
81
|
+
}
|
|
82
|
+
button.uni-text-component {
|
|
83
|
+
padding: 5px 10px;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
.uni-text-component {
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
white-space: pre-wrap;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.uni-background-component {
|
|
92
|
+
width: 100%;
|
|
93
|
+
}
|
|
94
|
+
.bg-img {
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: 100%;
|
|
97
|
+
object-fit: cover;
|
|
98
|
+
z-index:1;
|
|
99
|
+
}
|
|
100
|
+
.watermark {
|
|
101
|
+
height: 100%;
|
|
102
|
+
position: absolute;
|
|
103
|
+
top: 0;
|
|
104
|
+
left: 0;
|
|
105
|
+
right: 0;
|
|
106
|
+
bottom: 0;
|
|
107
|
+
}
|
|
108
|
+
.watermark-div {
|
|
109
|
+
height: 100%;
|
|
110
|
+
width:100%;
|
|
111
|
+
position:absolute;
|
|
112
|
+
z-index:99999999;
|
|
113
|
+
}
|
|
114
|
+
body:before{
|
|
115
|
+
content: '';
|
|
116
|
+
position: fixed;
|
|
117
|
+
top: 0;
|
|
118
|
+
bottom: 0;
|
|
119
|
+
left: 0;
|
|
120
|
+
right: 0;
|
|
121
|
+
z-index: -1;
|
|
122
|
+
/* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
|
|
123
|
+
background-position: center;
|
|
124
|
+
opacity: 0.1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.uni-video-component {
|
|
128
|
+
position: relative;
|
|
129
|
+
text-align: center;
|
|
130
|
+
}
|
|
131
|
+
.play-pause-button {
|
|
132
|
+
position: absolute;
|
|
133
|
+
top: 50%;
|
|
134
|
+
left: 50%;
|
|
135
|
+
transform: translate(-50%, -50%);
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
font-size: 2rem;
|
|
138
|
+
color: #fff;
|
|
139
|
+
background: rgba(0, 0, 0, 0.6);
|
|
140
|
+
border-radius: 50%;
|
|
141
|
+
padding: 10px;
|
|
142
|
+
transition: background 0.3s;
|
|
143
|
+
}
|
|
144
|
+
.play-pause-button:hover {
|
|
145
|
+
background: rgba(0, 0, 0, 0.8);
|
|
146
|
+
}
|
|
126
147
|
|
|
127
148
|
#audio {
|
|
128
149
|
position: absolute;
|
|
@@ -226,27 +247,6 @@ body, html {
|
|
|
226
247
|
font-size: 12px;
|
|
227
248
|
color: #666
|
|
228
249
|
}
|
|
229
|
-
|
|
230
|
-
.uni-video-component {
|
|
231
|
-
position: relative;
|
|
232
|
-
text-align: center;
|
|
233
|
-
}
|
|
234
|
-
.play-pause-button {
|
|
235
|
-
position: absolute;
|
|
236
|
-
top: 50%;
|
|
237
|
-
left: 50%;
|
|
238
|
-
transform: translate(-50%, -50%);
|
|
239
|
-
cursor: pointer;
|
|
240
|
-
font-size: 2rem;
|
|
241
|
-
color: #fff;
|
|
242
|
-
background: rgba(0, 0, 0, 0.6);
|
|
243
|
-
border-radius: 50%;
|
|
244
|
-
padding: 10px;
|
|
245
|
-
transition: background 0.3s;
|
|
246
|
-
}
|
|
247
|
-
.play-pause-button:hover {
|
|
248
|
-
background: rgba(0, 0, 0, 0.8);
|
|
249
|
-
}
|
|
250
250
|
/**
|
|
251
251
|
* Swiper 6.8.4
|
|
252
252
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
@@ -883,3 +883,138 @@ button.swiper-pagination-bullet {
|
|
|
883
883
|
.unika-calendar-row > *:not(:first-child) {
|
|
884
884
|
margin-left: 10px;
|
|
885
885
|
}
|
|
886
|
+
|
|
887
|
+
.no-animation__card {
|
|
888
|
+
font-weight: 500;
|
|
889
|
+
font-size: 2rem;
|
|
890
|
+
line-height: 1.5;
|
|
891
|
+
display: block;
|
|
892
|
+
color: var(--main-color);
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
.flip-clock {
|
|
896
|
+
text-align: center;
|
|
897
|
+
perspective: 600px;
|
|
898
|
+
margin: 0 auto;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
.flip-clock *,
|
|
902
|
+
.flip-clock *:before,
|
|
903
|
+
.flip-clock *:after {
|
|
904
|
+
box-sizing: border-box;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
.flip-clock__piece {
|
|
908
|
+
display: inline-block;
|
|
909
|
+
margin: 0 0.2vw;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
@media (min-width: 1000px) {
|
|
913
|
+
.flip-clock__piece {
|
|
914
|
+
margin: 0 5px;
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
.flip-clock__slot {
|
|
919
|
+
font-size: 1rem;
|
|
920
|
+
line-height: 1.5;
|
|
921
|
+
display: block;
|
|
922
|
+
color: var(--label-color);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.flip-card {
|
|
926
|
+
display: block;
|
|
927
|
+
position: relative;
|
|
928
|
+
padding-bottom: 0.72em;
|
|
929
|
+
font-size: 2.25rem;
|
|
930
|
+
line-height: 0.95;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
@media (min-width: 1000px) {
|
|
934
|
+
.flip-clock__slot {
|
|
935
|
+
font-size: 1.2rem;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
.flip-card {
|
|
939
|
+
font-size: 2rem;
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
.flip-card__top,
|
|
944
|
+
.flip-card__bottom,
|
|
945
|
+
.flip-card__back-bottom,
|
|
946
|
+
.flip-card__back::before,
|
|
947
|
+
.flip-card__back::after {
|
|
948
|
+
display: block;
|
|
949
|
+
height: 0.72em;
|
|
950
|
+
color: var(--main-color);
|
|
951
|
+
background: var(--main-flip-background-color);
|
|
952
|
+
padding: 0.23em 0.15em 0.4em;
|
|
953
|
+
border-radius: 0.15em 0.15em 0 0;
|
|
954
|
+
backface-visibility: hidden;
|
|
955
|
+
-webkit-backface-visibility: hidden;
|
|
956
|
+
transform-style: preserve-3d;
|
|
957
|
+
width: 2.1em;
|
|
958
|
+
height: 0.72em;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
.flip-card__back,
|
|
962
|
+
.flip-card__back-4digits {
|
|
963
|
+
position: absolute;
|
|
964
|
+
top: 0;
|
|
965
|
+
height: 100%;
|
|
966
|
+
left: 0%;
|
|
967
|
+
pointer-events: none;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
.flip-card__back::before,
|
|
971
|
+
.flip-card__back-4digits::before {
|
|
972
|
+
position: relative;
|
|
973
|
+
overflow: hidden;
|
|
974
|
+
z-index: -1;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.flip .flip-card__back::before,
|
|
978
|
+
.flip .flip-card__back-4digits::before {
|
|
979
|
+
z-index: 1;
|
|
980
|
+
animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
|
|
981
|
+
animation-fill-mode: both;
|
|
982
|
+
transform-origin: center bottom;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
.flip .flip-card__bottom,
|
|
986
|
+
.flip .flip-card__bottom-4digits {
|
|
987
|
+
transform-origin: center top;
|
|
988
|
+
animation-fill-mode: both;
|
|
989
|
+
animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
@keyframes flipTop {
|
|
993
|
+
0% {
|
|
994
|
+
transform: rotateX(0deg);
|
|
995
|
+
z-index: 2;
|
|
996
|
+
}
|
|
997
|
+
0%, 99% {
|
|
998
|
+
opacity: 1;
|
|
999
|
+
}
|
|
1000
|
+
100% {
|
|
1001
|
+
transform: rotateX(-90deg);
|
|
1002
|
+
opacity: 0;
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
@keyframes flipBottom {
|
|
1007
|
+
0%, 50% {
|
|
1008
|
+
z-index: -1;
|
|
1009
|
+
transform: rotateX(90deg);
|
|
1010
|
+
opacity: 0;
|
|
1011
|
+
}
|
|
1012
|
+
51% {
|
|
1013
|
+
opacity: 1;
|
|
1014
|
+
}
|
|
1015
|
+
100% {
|
|
1016
|
+
opacity: 1;
|
|
1017
|
+
transform: rotateX(0deg);
|
|
1018
|
+
z-index: 5;
|
|
1019
|
+
}
|
|
1020
|
+
}
|