unika-components 1.0.252 → 1.0.253

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.
@@ -1,4 +1,44 @@
1
1
 
2
+ h2.uni-text-component, p.uni-text-component {
3
+ margin-bottom: 0;
4
+ }
5
+ button.uni-text-component {
6
+ padding: 5px 10px;
7
+ cursor: pointer;
8
+ }
9
+ .uni-text-component {
10
+ box-sizing: border-box;
11
+ white-space: pre-wrap;
12
+ }
13
+
14
+ .uni-image-component {
15
+ max-width: 100%;
16
+ }
17
+ .uni-image-mask-wrapper {
18
+ display: inline-block;
19
+ }
20
+
21
+ .uni-video-component {
22
+ position: relative;
23
+ text-align: center;
24
+ }
25
+ .play-pause-button {
26
+ position: absolute;
27
+ top: 50%;
28
+ left: 50%;
29
+ transform: translate(-50%, -50%);
30
+ cursor: pointer;
31
+ font-size: 2rem;
32
+ color: #fff;
33
+ background: rgba(0, 0, 0, 0.6);
34
+ border-radius: 50%;
35
+ padding: 10px;
36
+ transition: background 0.3s;
37
+ }
38
+ .play-pause-button:hover {
39
+ background: rgba(0, 0, 0, 0.8);
40
+ }
41
+
2
42
  .slide-guide {
3
43
  position: absolute;
4
44
  bottom: 90px;
@@ -71,48 +111,20 @@ body, html {
71
111
  transform: translate3d(-50%, -50%, 0);
72
112
  }
73
113
  }
74
-
75
- .uni-image-component {
76
- max-width: 100%;
77
- }
78
- .uni-image-mask-wrapper {
79
- display: inline-block;
80
- }
81
-
82
- h2.uni-text-component, p.uni-text-component {
83
- margin-bottom: 0;
84
- }
85
- button.uni-text-component {
86
- padding: 5px 10px;
87
- cursor: pointer;
88
- }
89
- .uni-text-component {
90
- box-sizing: border-box;
91
- white-space: pre-wrap;
92
- }
93
114
 
94
- .uni-video-component {
95
- position: relative;
96
- text-align: center;
97
- }
98
- .play-pause-button {
99
- position: absolute;
100
- top: 50%;
101
- left: 50%;
102
- transform: translate(-50%, -50%);
103
- cursor: pointer;
104
- font-size: 2rem;
105
- color: #fff;
106
- background: rgba(0, 0, 0, 0.6);
107
- border-radius: 50%;
108
- padding: 10px;
109
- transition: background 0.3s;
110
- }
111
- .play-pause-button:hover {
112
- background: rgba(0, 0, 0, 0.8);
113
- }
114
115
 
115
- .uni-lotties-component {
116
+ .uni-calendar-component {
117
+
118
+ }
119
+ .slot-number {
120
+ position: absolute;
121
+ bottom: 2px;
122
+ left: 7px;
123
+ font-size: 12px;
124
+ color: #666
125
+ }
126
+
127
+ .effect {
116
128
  width: 100%;
117
129
  height: 100%;
118
130
  }
@@ -139,18 +151,6 @@ button.uni-text-component {
139
151
  color: #333;
140
152
  }
141
153
 
142
-
143
- .uni-calendar-component {
144
-
145
- }
146
- .slot-number {
147
- position: absolute;
148
- bottom: 2px;
149
- left: 7px;
150
- font-size: 12px;
151
- color: #666
152
- }
153
-
154
154
  .ant-input-number {
155
155
  box-sizing: border-box;
156
156
  margin: 0;
@@ -186,6 +186,15 @@ button.uni-text-component {
186
186
  vertical-align: top;
187
187
  }
188
188
 
189
+ .uni-lotties-component {
190
+ width: 100%;
191
+ height: 100%;
192
+ }
193
+
194
+ .uni-svg-component {
195
+ display: inline-block;
196
+ }
197
+
189
198
  .swiper-warp {
190
199
  width: 100%;
191
200
  height: 100%;
@@ -202,15 +211,6 @@ button.uni-text-component {
202
211
 
203
212
  .uni-build-up-component {
204
213
  }
205
-
206
- .uni-svg-component {
207
- display: inline-block;
208
- }
209
-
210
- .effect {
211
- width: 100%;
212
- height: 100%;
213
- }
214
214
  /**
215
215
  * Swiper 6.8.4
216
216
  * Most modern mobile touch slider and framework with hardware accelerated transitions
@@ -759,193 +759,6 @@ button.swiper-pagination-bullet {
759
759
  backface-visibility: hidden;
760
760
  }
761
761
 
762
-
763
- .no-animation__card {
764
- font-weight: 500;
765
- font-size: var(--countdown-size, 2rem);
766
- line-height: 1.5;
767
- display: block;
768
- color: var(--main-color, #EC685C);
769
- }
770
-
771
- .flip-clock {
772
- text-align: center;
773
- perspective: 600px;
774
- margin: 0 auto;
775
- }
776
-
777
- .flip-clock *,
778
- .flip-clock *:before,
779
- .flip-clock *:after {
780
- box-sizing: border-box;
781
- }
782
-
783
- .flip-clock__piece {
784
- display: inline-block;
785
- margin: 0 0.2vw;
786
- }
787
-
788
- @media (min-width: 1000px) {
789
- .flip-clock__piece {
790
- margin: 0 5px;
791
- }
792
- }
793
-
794
- .flip-clock__slot {
795
- font-size: var(--label-size, 1rem);
796
- line-height: 1.5;
797
- display: block;
798
- color: var(--label-color, #222222);
799
- }
800
-
801
- .flip-card {
802
- display: block;
803
- position: relative;
804
- padding-bottom: 0.72em; /* halfHeight */
805
- font-size: var(--countdown-size, 2.25rem);
806
- line-height: 0.95;
807
- }
808
-
809
- @media (min-width: 1000px) {
810
- .flip-clock__slot {
811
- font-size: 1.2rem;
812
- }
813
-
814
- .flip-card {
815
- font-size: 3rem;
816
- }
817
- }
818
-
819
- .flip-card__top,
820
- .flip-card__bottom,
821
- .flip-card__back-bottom,
822
- .flip-card__back::before,
823
- .flip-card__back::after{
824
- display: block;
825
- height: 0.72em; /* halfHeight */
826
- color: var(--main-color, #EC685C);
827
- background: var(--main-flip-background-color, #222222);
828
- padding: 0.23em 0.15em 0.4em;
829
- border-radius: 0.15em 0.15em 0 0; /* borderRadius */
830
- backface-visibility: hidden;
831
- -webkit-backface-visibility: hidden;
832
- transform-style: preserve-3d;
833
- width: 2.1em;
834
- }
835
-
836
- .flip-card__top-4digits,
837
- .flip-card__bottom-4digits,
838
- .flip-card__back-bottom-4digits,
839
- .flip-card__back-4digits::before,
840
- .flip-card__back-4digits::after {
841
- display: block;
842
- height: 0.72em; /* halfHeight */
843
- color: var(--main-color, #EC685C);
844
- background: var(--main-flip-background-color, #222222);
845
- padding: 0.23em 0.15em 0.4em;
846
- border-radius: 0.15em 0.15em 0 0; /* borderRadius */
847
- backface-visibility: hidden;
848
- -webkit-backface-visibility: hidden;
849
- transform-style: preserve-3d;
850
- width: 2.65em;
851
- }
852
-
853
- .flip-card__bottom,
854
- .flip-card__back-bottom,
855
- .flip-card__bottom-4digits,
856
- .flip-card__back-bottom-4digits {
857
- color: var(--second-flip-color, #EC685C);
858
- position: absolute;
859
- top: 50%;
860
- left: 0;
861
- border-top: solid 1px var(--second-flip-background-color, #000);
862
- background: var(--second-flip-background-color, #393939);
863
- border-radius: 0 0 0.15em 0.15em; /* borderRadius */
864
- pointer-events: none;
865
- overflow: hidden;
866
- z-index: 2;
867
- }
868
-
869
- .flip-card__back-bottom,
870
- .flip-card__back-bottom-4digits {
871
- z-index: 1;
872
- }
873
-
874
- .flip-card__bottom::after,
875
- .flip-card__back-bottom::after,
876
- .flip-card__bottom-4digits::after,
877
- .flip-card__back-bottom-4digits::after {
878
- display: block;
879
- margin-top: -0.72em; /* Negative halfHeight */
880
- }
881
- .flip-card__back::before,
882
- .flip-card__bottom::after,
883
- .flip-card__back-bottom::after,
884
- .flip-card__back-4digits::before,
885
- .flip-card__bottom-4digits::after,
886
- .flip-card__back-bottom-4digits::after {
887
- content: attr(data-value);
888
- }
889
-
890
- .flip-card__back,
891
- .flip-card__back-4digits {
892
- position: absolute;
893
- top: 0;
894
- height: 100%;
895
- left: 0%;
896
- pointer-events: none;
897
- }
898
- .flip-card__back::before,
899
- .flip-card__back-4digits::before {
900
- position: relative;
901
- overflow: hidden;
902
- z-index: -1;
903
- }
904
-
905
- .flip .flip-card__back::before,
906
- .flip .flip-card__back-4digits::before {
907
- z-index: 1;
908
- animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
909
- animation-fill-mode: both;
910
- transform-origin: center bottom;
911
- }
912
-
913
- .flip .flip-card__bottom,
914
- .flip .flip-card__bottom-4digits {
915
- transform-origin: center top;
916
- animation-fill-mode: both;
917
- animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
918
- }
919
- @keyframes flipTop {
920
- 0% {
921
- transform: rotateX(0deg);
922
- z-index: 2;
923
- }
924
- 0%, 99% {
925
- opacity: 1;
926
- }
927
- 100% {
928
- transform: rotateX(-90deg);
929
- opacity: 0;
930
- }
931
- }
932
-
933
- @keyframes flipBottom {
934
- 0%, 50% {
935
- z-index: -1;
936
- transform: rotateX(90deg);
937
- opacity: 0;
938
- }
939
- 51% {
940
- opacity: 1;
941
- }
942
- 100% {
943
- opacity: 1;
944
- transform: rotateX(0deg);
945
- z-index: 5;
946
- }
947
- }
948
-
949
762
  .unika-calendar-box {
950
763
  position: relative;
951
764
  width: 325px !important;
@@ -1205,3 +1018,190 @@ button.swiper-pagination-bullet {
1205
1018
  padding: 0 0px;
1206
1019
  border-bottom: 1px solid
1207
1020
  }
1021
+
1022
+
1023
+ .no-animation__card {
1024
+ font-weight: 500;
1025
+ font-size: var(--countdown-size, 2rem);
1026
+ line-height: 1.5;
1027
+ display: block;
1028
+ color: var(--main-color, #EC685C);
1029
+ }
1030
+
1031
+ .flip-clock {
1032
+ text-align: center;
1033
+ perspective: 600px;
1034
+ margin: 0 auto;
1035
+ }
1036
+
1037
+ .flip-clock *,
1038
+ .flip-clock *:before,
1039
+ .flip-clock *:after {
1040
+ box-sizing: border-box;
1041
+ }
1042
+
1043
+ .flip-clock__piece {
1044
+ display: inline-block;
1045
+ margin: 0 0.2vw;
1046
+ }
1047
+
1048
+ @media (min-width: 1000px) {
1049
+ .flip-clock__piece {
1050
+ margin: 0 5px;
1051
+ }
1052
+ }
1053
+
1054
+ .flip-clock__slot {
1055
+ font-size: var(--label-size, 1rem);
1056
+ line-height: 1.5;
1057
+ display: block;
1058
+ color: var(--label-color, #222222);
1059
+ }
1060
+
1061
+ .flip-card {
1062
+ display: block;
1063
+ position: relative;
1064
+ padding-bottom: 0.72em; /* halfHeight */
1065
+ font-size: var(--countdown-size, 2.25rem);
1066
+ line-height: 0.95;
1067
+ }
1068
+
1069
+ @media (min-width: 1000px) {
1070
+ .flip-clock__slot {
1071
+ font-size: 1.2rem;
1072
+ }
1073
+
1074
+ .flip-card {
1075
+ font-size: 3rem;
1076
+ }
1077
+ }
1078
+
1079
+ .flip-card__top,
1080
+ .flip-card__bottom,
1081
+ .flip-card__back-bottom,
1082
+ .flip-card__back::before,
1083
+ .flip-card__back::after{
1084
+ display: block;
1085
+ height: 0.72em; /* halfHeight */
1086
+ color: var(--main-color, #EC685C);
1087
+ background: var(--main-flip-background-color, #222222);
1088
+ padding: 0.23em 0.15em 0.4em;
1089
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1090
+ backface-visibility: hidden;
1091
+ -webkit-backface-visibility: hidden;
1092
+ transform-style: preserve-3d;
1093
+ width: 2.1em;
1094
+ }
1095
+
1096
+ .flip-card__top-4digits,
1097
+ .flip-card__bottom-4digits,
1098
+ .flip-card__back-bottom-4digits,
1099
+ .flip-card__back-4digits::before,
1100
+ .flip-card__back-4digits::after {
1101
+ display: block;
1102
+ height: 0.72em; /* halfHeight */
1103
+ color: var(--main-color, #EC685C);
1104
+ background: var(--main-flip-background-color, #222222);
1105
+ padding: 0.23em 0.15em 0.4em;
1106
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1107
+ backface-visibility: hidden;
1108
+ -webkit-backface-visibility: hidden;
1109
+ transform-style: preserve-3d;
1110
+ width: 2.65em;
1111
+ }
1112
+
1113
+ .flip-card__bottom,
1114
+ .flip-card__back-bottom,
1115
+ .flip-card__bottom-4digits,
1116
+ .flip-card__back-bottom-4digits {
1117
+ color: var(--second-flip-color, #EC685C);
1118
+ position: absolute;
1119
+ top: 50%;
1120
+ left: 0;
1121
+ border-top: solid 1px var(--second-flip-background-color, #000);
1122
+ background: var(--second-flip-background-color, #393939);
1123
+ border-radius: 0 0 0.15em 0.15em; /* borderRadius */
1124
+ pointer-events: none;
1125
+ overflow: hidden;
1126
+ z-index: 2;
1127
+ }
1128
+
1129
+ .flip-card__back-bottom,
1130
+ .flip-card__back-bottom-4digits {
1131
+ z-index: 1;
1132
+ }
1133
+
1134
+ .flip-card__bottom::after,
1135
+ .flip-card__back-bottom::after,
1136
+ .flip-card__bottom-4digits::after,
1137
+ .flip-card__back-bottom-4digits::after {
1138
+ display: block;
1139
+ margin-top: -0.72em; /* Negative halfHeight */
1140
+ }
1141
+ .flip-card__back::before,
1142
+ .flip-card__bottom::after,
1143
+ .flip-card__back-bottom::after,
1144
+ .flip-card__back-4digits::before,
1145
+ .flip-card__bottom-4digits::after,
1146
+ .flip-card__back-bottom-4digits::after {
1147
+ content: attr(data-value);
1148
+ }
1149
+
1150
+ .flip-card__back,
1151
+ .flip-card__back-4digits {
1152
+ position: absolute;
1153
+ top: 0;
1154
+ height: 100%;
1155
+ left: 0%;
1156
+ pointer-events: none;
1157
+ }
1158
+ .flip-card__back::before,
1159
+ .flip-card__back-4digits::before {
1160
+ position: relative;
1161
+ overflow: hidden;
1162
+ z-index: -1;
1163
+ }
1164
+
1165
+ .flip .flip-card__back::before,
1166
+ .flip .flip-card__back-4digits::before {
1167
+ z-index: 1;
1168
+ animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
1169
+ animation-fill-mode: both;
1170
+ transform-origin: center bottom;
1171
+ }
1172
+
1173
+ .flip .flip-card__bottom,
1174
+ .flip .flip-card__bottom-4digits {
1175
+ transform-origin: center top;
1176
+ animation-fill-mode: both;
1177
+ animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
1178
+ }
1179
+ @keyframes flipTop {
1180
+ 0% {
1181
+ transform: rotateX(0deg);
1182
+ z-index: 2;
1183
+ }
1184
+ 0%, 99% {
1185
+ opacity: 1;
1186
+ }
1187
+ 100% {
1188
+ transform: rotateX(-90deg);
1189
+ opacity: 0;
1190
+ }
1191
+ }
1192
+
1193
+ @keyframes flipBottom {
1194
+ 0%, 50% {
1195
+ z-index: -1;
1196
+ transform: rotateX(90deg);
1197
+ opacity: 0;
1198
+ }
1199
+ 51% {
1200
+ opacity: 1;
1201
+ }
1202
+ 100% {
1203
+ opacity: 1;
1204
+ transform: rotateX(0deg);
1205
+ z-index: 5;
1206
+ }
1207
+ }
@@ -13154,8 +13154,8 @@ var script$h = defineComponent({
13154
13154
  upArrow.value = true;
13155
13155
  }
13156
13156
  swiperAnimate(swiper);
13157
- const currentPage = props.work?.pages[currentIndex];
13158
- currentPage?.components.forEach((component) => {
13157
+ const currentPage = props.work && props.work.pages[currentIndex];
13158
+ currentPage && currentPage.components.forEach((component) => {
13159
13159
  if (component.name === 'uni-lotties') {
13160
13160
  reloadAnimation(component.id);
13161
13161
  }
@@ -13161,8 +13161,8 @@
13161
13161
  upArrow.value = true;
13162
13162
  }
13163
13163
  swiperAnimate(swiper);
13164
- const currentPage = props.work?.pages[currentIndex];
13165
- currentPage?.components.forEach((component) => {
13164
+ const currentPage = props.work && props.work.pages[currentIndex];
13165
+ currentPage && currentPage.components.forEach((component) => {
13166
13166
  if (component.name === 'uni-lotties') {
13167
13167
  reloadAnimation(component.id);
13168
13168
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.252",
3
+ "version": "1.0.253",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",