unika-components 1.0.244 → 1.0.247

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,8 +1,18 @@
1
+ export declare const defaultStyles: string[];
1
2
  declare const _default: import("vue").DefineComponent<{
2
3
  [x: string]: any;
3
4
  }, {
4
5
  styleProps: import("vue").ComputedRef<Pick<any, string>>;
5
6
  handleClick: () => void;
7
+ maskStyle: import("vue").ComputedRef<{
8
+ WebkitMaskImage: string;
9
+ WebkitMaskRepeat: string;
10
+ WebkitMaskSize: string;
11
+ } | {
12
+ WebkitMaskImage?: undefined;
13
+ WebkitMaskRepeat?: undefined;
14
+ WebkitMaskSize?: undefined;
15
+ }>;
6
16
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
7
17
  [x: string]: any;
8
18
  }>>, {
@@ -160,6 +160,7 @@ export declare const imageDefaultProps: {
160
160
  right: string;
161
161
  transform: string;
162
162
  imageSrc: string;
163
+ maskImage: string;
163
164
  };
164
165
  export declare const shapeDefaultProps: {
165
166
  actionType: string;
@@ -486,6 +487,7 @@ export declare const componentsDefaultProps: {
486
487
  right: string;
487
488
  transform: string;
488
489
  imageSrc: string;
490
+ maskImage: string;
489
491
  };
490
492
  };
491
493
  'uni-shape': {
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +1,32 @@
1
1
 
2
+ .uni-image-component {
3
+ max-width: 100%;
4
+ }
5
+ .uni-image-mask-wrapper {
6
+ display: inline-block;
7
+ }
8
+
9
+ .uni-video-component {
10
+ position: relative;
11
+ text-align: center;
12
+ }
13
+ .play-pause-button {
14
+ position: absolute;
15
+ top: 50%;
16
+ left: 50%;
17
+ transform: translate(-50%, -50%);
18
+ cursor: pointer;
19
+ font-size: 2rem;
20
+ color: #fff;
21
+ background: rgba(0, 0, 0, 0.6);
22
+ border-radius: 50%;
23
+ padding: 10px;
24
+ transition: background 0.3s;
25
+ }
26
+ .play-pause-button:hover {
27
+ background: rgba(0, 0, 0, 0.8);
28
+ }
29
+
2
30
  h2.uni-text-component, p.uni-text-component {
3
31
  margin-bottom: 0;
4
32
  }
@@ -84,22 +112,6 @@ body, html {
84
112
  }
85
113
  }
86
114
 
87
-
88
- .uni-calendar-component {
89
-
90
- }
91
- .slot-number {
92
- position: absolute;
93
- bottom: 2px;
94
- left: 7px;
95
- font-size: 12px;
96
- color: #666
97
- }
98
-
99
- .uni-image-component {
100
- max-width: 100%;
101
- }
102
-
103
115
  .like-button {
104
116
  display: flex;
105
117
  flex-direction: column;
@@ -122,6 +134,32 @@ body, html {
122
134
  color: #333;
123
135
  }
124
136
 
137
+
138
+ .uni-calendar-component {
139
+
140
+ }
141
+ .slot-number {
142
+ position: absolute;
143
+ bottom: 2px;
144
+ left: 7px;
145
+ font-size: 12px;
146
+ color: #666
147
+ }
148
+
149
+ .swiper-warp {
150
+ width: 100%;
151
+ height: 100%;
152
+ }
153
+
154
+ .swiper-slide-component {
155
+ text-align: center;
156
+ }
157
+
158
+ .swiper-slide img {
159
+ max-width: 100%;
160
+ max-height: 100%;
161
+ }
162
+
125
163
  .ant-input-number {
126
164
  box-sizing: border-box;
127
165
  margin: 0;
@@ -157,27 +195,6 @@ body, html {
157
195
  vertical-align: top;
158
196
  }
159
197
 
160
- .uni-video-component {
161
- position: relative;
162
- text-align: center;
163
- }
164
- .play-pause-button {
165
- position: absolute;
166
- top: 50%;
167
- left: 50%;
168
- transform: translate(-50%, -50%);
169
- cursor: pointer;
170
- font-size: 2rem;
171
- color: #fff;
172
- background: rgba(0, 0, 0, 0.6);
173
- border-radius: 50%;
174
- padding: 10px;
175
- transition: background 0.3s;
176
- }
177
- .play-pause-button:hover {
178
- background: rgba(0, 0, 0, 0.8);
179
- }
180
-
181
198
  .uni-build-up-component {
182
199
  }
183
200
 
@@ -189,20 +206,6 @@ body, html {
189
206
  .uni-svg-component {
190
207
  display: inline-block;
191
208
  }
192
-
193
- .swiper-warp {
194
- width: 100%;
195
- height: 100%;
196
- }
197
-
198
- .swiper-slide-component {
199
- text-align: center;
200
- }
201
-
202
- .swiper-slide img {
203
- max-width: 100%;
204
- max-height: 100%;
205
- }
206
209
  /**
207
210
  * Swiper 6.8.4
208
211
  * Most modern mobile touch slider and framework with hardware accelerated transitions
@@ -751,6 +754,193 @@ button.swiper-pagination-bullet {
751
754
  backface-visibility: hidden;
752
755
  }
753
756
 
757
+
758
+ .no-animation__card {
759
+ font-weight: 500;
760
+ font-size: var(--countdown-size, 2rem);
761
+ line-height: 1.5;
762
+ display: block;
763
+ color: var(--main-color, #EC685C);
764
+ }
765
+
766
+ .flip-clock {
767
+ text-align: center;
768
+ perspective: 600px;
769
+ margin: 0 auto;
770
+ }
771
+
772
+ .flip-clock *,
773
+ .flip-clock *:before,
774
+ .flip-clock *:after {
775
+ box-sizing: border-box;
776
+ }
777
+
778
+ .flip-clock__piece {
779
+ display: inline-block;
780
+ margin: 0 0.2vw;
781
+ }
782
+
783
+ @media (min-width: 1000px) {
784
+ .flip-clock__piece {
785
+ margin: 0 5px;
786
+ }
787
+ }
788
+
789
+ .flip-clock__slot {
790
+ font-size: var(--label-size, 1rem);
791
+ line-height: 1.5;
792
+ display: block;
793
+ color: var(--label-color, #222222);
794
+ }
795
+
796
+ .flip-card {
797
+ display: block;
798
+ position: relative;
799
+ padding-bottom: 0.72em; /* halfHeight */
800
+ font-size: var(--countdown-size, 2.25rem);
801
+ line-height: 0.95;
802
+ }
803
+
804
+ @media (min-width: 1000px) {
805
+ .flip-clock__slot {
806
+ font-size: 1.2rem;
807
+ }
808
+
809
+ .flip-card {
810
+ font-size: 3rem;
811
+ }
812
+ }
813
+
814
+ .flip-card__top,
815
+ .flip-card__bottom,
816
+ .flip-card__back-bottom,
817
+ .flip-card__back::before,
818
+ .flip-card__back::after{
819
+ display: block;
820
+ height: 0.72em; /* halfHeight */
821
+ color: var(--main-color, #EC685C);
822
+ background: var(--main-flip-background-color, #222222);
823
+ padding: 0.23em 0.15em 0.4em;
824
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
825
+ backface-visibility: hidden;
826
+ -webkit-backface-visibility: hidden;
827
+ transform-style: preserve-3d;
828
+ width: 2.1em;
829
+ }
830
+
831
+ .flip-card__top-4digits,
832
+ .flip-card__bottom-4digits,
833
+ .flip-card__back-bottom-4digits,
834
+ .flip-card__back-4digits::before,
835
+ .flip-card__back-4digits::after {
836
+ display: block;
837
+ height: 0.72em; /* halfHeight */
838
+ color: var(--main-color, #EC685C);
839
+ background: var(--main-flip-background-color, #222222);
840
+ padding: 0.23em 0.15em 0.4em;
841
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
842
+ backface-visibility: hidden;
843
+ -webkit-backface-visibility: hidden;
844
+ transform-style: preserve-3d;
845
+ width: 2.65em;
846
+ }
847
+
848
+ .flip-card__bottom,
849
+ .flip-card__back-bottom,
850
+ .flip-card__bottom-4digits,
851
+ .flip-card__back-bottom-4digits {
852
+ color: var(--second-flip-color, #EC685C);
853
+ position: absolute;
854
+ top: 50%;
855
+ left: 0;
856
+ border-top: solid 1px var(--second-flip-background-color, #000);
857
+ background: var(--second-flip-background-color, #393939);
858
+ border-radius: 0 0 0.15em 0.15em; /* borderRadius */
859
+ pointer-events: none;
860
+ overflow: hidden;
861
+ z-index: 2;
862
+ }
863
+
864
+ .flip-card__back-bottom,
865
+ .flip-card__back-bottom-4digits {
866
+ z-index: 1;
867
+ }
868
+
869
+ .flip-card__bottom::after,
870
+ .flip-card__back-bottom::after,
871
+ .flip-card__bottom-4digits::after,
872
+ .flip-card__back-bottom-4digits::after {
873
+ display: block;
874
+ margin-top: -0.72em; /* Negative halfHeight */
875
+ }
876
+ .flip-card__back::before,
877
+ .flip-card__bottom::after,
878
+ .flip-card__back-bottom::after,
879
+ .flip-card__back-4digits::before,
880
+ .flip-card__bottom-4digits::after,
881
+ .flip-card__back-bottom-4digits::after {
882
+ content: attr(data-value);
883
+ }
884
+
885
+ .flip-card__back,
886
+ .flip-card__back-4digits {
887
+ position: absolute;
888
+ top: 0;
889
+ height: 100%;
890
+ left: 0%;
891
+ pointer-events: none;
892
+ }
893
+ .flip-card__back::before,
894
+ .flip-card__back-4digits::before {
895
+ position: relative;
896
+ overflow: hidden;
897
+ z-index: -1;
898
+ }
899
+
900
+ .flip .flip-card__back::before,
901
+ .flip .flip-card__back-4digits::before {
902
+ z-index: 1;
903
+ animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
904
+ animation-fill-mode: both;
905
+ transform-origin: center bottom;
906
+ }
907
+
908
+ .flip .flip-card__bottom,
909
+ .flip .flip-card__bottom-4digits {
910
+ transform-origin: center top;
911
+ animation-fill-mode: both;
912
+ animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
913
+ }
914
+ @keyframes flipTop {
915
+ 0% {
916
+ transform: rotateX(0deg);
917
+ z-index: 2;
918
+ }
919
+ 0%, 99% {
920
+ opacity: 1;
921
+ }
922
+ 100% {
923
+ transform: rotateX(-90deg);
924
+ opacity: 0;
925
+ }
926
+ }
927
+
928
+ @keyframes flipBottom {
929
+ 0%, 50% {
930
+ z-index: -1;
931
+ transform: rotateX(90deg);
932
+ opacity: 0;
933
+ }
934
+ 51% {
935
+ opacity: 1;
936
+ }
937
+ 100% {
938
+ opacity: 1;
939
+ transform: rotateX(0deg);
940
+ z-index: 5;
941
+ }
942
+ }
943
+
754
944
  .unika-calendar-box {
755
945
  position: relative;
756
946
  width: 325px !important;
@@ -1010,190 +1200,3 @@ button.swiper-pagination-bullet {
1010
1200
  padding: 0 0px;
1011
1201
  border-bottom: 1px solid
1012
1202
  }
1013
-
1014
-
1015
- .no-animation__card {
1016
- font-weight: 500;
1017
- font-size: var(--countdown-size, 2rem);
1018
- line-height: 1.5;
1019
- display: block;
1020
- color: var(--main-color, #EC685C);
1021
- }
1022
-
1023
- .flip-clock {
1024
- text-align: center;
1025
- perspective: 600px;
1026
- margin: 0 auto;
1027
- }
1028
-
1029
- .flip-clock *,
1030
- .flip-clock *:before,
1031
- .flip-clock *:after {
1032
- box-sizing: border-box;
1033
- }
1034
-
1035
- .flip-clock__piece {
1036
- display: inline-block;
1037
- margin: 0 0.2vw;
1038
- }
1039
-
1040
- @media (min-width: 1000px) {
1041
- .flip-clock__piece {
1042
- margin: 0 5px;
1043
- }
1044
- }
1045
-
1046
- .flip-clock__slot {
1047
- font-size: var(--label-size, 1rem);
1048
- line-height: 1.5;
1049
- display: block;
1050
- color: var(--label-color, #222222);
1051
- }
1052
-
1053
- .flip-card {
1054
- display: block;
1055
- position: relative;
1056
- padding-bottom: 0.72em; /* halfHeight */
1057
- font-size: var(--countdown-size, 2.25rem);
1058
- line-height: 0.95;
1059
- }
1060
-
1061
- @media (min-width: 1000px) {
1062
- .flip-clock__slot {
1063
- font-size: 1.2rem;
1064
- }
1065
-
1066
- .flip-card {
1067
- font-size: 3rem;
1068
- }
1069
- }
1070
-
1071
- .flip-card__top,
1072
- .flip-card__bottom,
1073
- .flip-card__back-bottom,
1074
- .flip-card__back::before,
1075
- .flip-card__back::after{
1076
- display: block;
1077
- height: 0.72em; /* halfHeight */
1078
- color: var(--main-color, #EC685C);
1079
- background: var(--main-flip-background-color, #222222);
1080
- padding: 0.23em 0.15em 0.4em;
1081
- border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1082
- backface-visibility: hidden;
1083
- -webkit-backface-visibility: hidden;
1084
- transform-style: preserve-3d;
1085
- width: 2.1em;
1086
- }
1087
-
1088
- .flip-card__top-4digits,
1089
- .flip-card__bottom-4digits,
1090
- .flip-card__back-bottom-4digits,
1091
- .flip-card__back-4digits::before,
1092
- .flip-card__back-4digits::after {
1093
- display: block;
1094
- height: 0.72em; /* halfHeight */
1095
- color: var(--main-color, #EC685C);
1096
- background: var(--main-flip-background-color, #222222);
1097
- padding: 0.23em 0.15em 0.4em;
1098
- border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1099
- backface-visibility: hidden;
1100
- -webkit-backface-visibility: hidden;
1101
- transform-style: preserve-3d;
1102
- width: 2.65em;
1103
- }
1104
-
1105
- .flip-card__bottom,
1106
- .flip-card__back-bottom,
1107
- .flip-card__bottom-4digits,
1108
- .flip-card__back-bottom-4digits {
1109
- color: var(--second-flip-color, #EC685C);
1110
- position: absolute;
1111
- top: 50%;
1112
- left: 0;
1113
- border-top: solid 1px var(--second-flip-background-color, #000);
1114
- background: var(--second-flip-background-color, #393939);
1115
- border-radius: 0 0 0.15em 0.15em; /* borderRadius */
1116
- pointer-events: none;
1117
- overflow: hidden;
1118
- z-index: 2;
1119
- }
1120
-
1121
- .flip-card__back-bottom,
1122
- .flip-card__back-bottom-4digits {
1123
- z-index: 1;
1124
- }
1125
-
1126
- .flip-card__bottom::after,
1127
- .flip-card__back-bottom::after,
1128
- .flip-card__bottom-4digits::after,
1129
- .flip-card__back-bottom-4digits::after {
1130
- display: block;
1131
- margin-top: -0.72em; /* Negative halfHeight */
1132
- }
1133
- .flip-card__back::before,
1134
- .flip-card__bottom::after,
1135
- .flip-card__back-bottom::after,
1136
- .flip-card__back-4digits::before,
1137
- .flip-card__bottom-4digits::after,
1138
- .flip-card__back-bottom-4digits::after {
1139
- content: attr(data-value);
1140
- }
1141
-
1142
- .flip-card__back,
1143
- .flip-card__back-4digits {
1144
- position: absolute;
1145
- top: 0;
1146
- height: 100%;
1147
- left: 0%;
1148
- pointer-events: none;
1149
- }
1150
- .flip-card__back::before,
1151
- .flip-card__back-4digits::before {
1152
- position: relative;
1153
- overflow: hidden;
1154
- z-index: -1;
1155
- }
1156
-
1157
- .flip .flip-card__back::before,
1158
- .flip .flip-card__back-4digits::before {
1159
- z-index: 1;
1160
- animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
1161
- animation-fill-mode: both;
1162
- transform-origin: center bottom;
1163
- }
1164
-
1165
- .flip .flip-card__bottom,
1166
- .flip .flip-card__bottom-4digits {
1167
- transform-origin: center top;
1168
- animation-fill-mode: both;
1169
- animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
1170
- }
1171
- @keyframes flipTop {
1172
- 0% {
1173
- transform: rotateX(0deg);
1174
- z-index: 2;
1175
- }
1176
- 0%, 99% {
1177
- opacity: 1;
1178
- }
1179
- 100% {
1180
- transform: rotateX(-90deg);
1181
- opacity: 0;
1182
- }
1183
- }
1184
-
1185
- @keyframes flipBottom {
1186
- 0%, 50% {
1187
- z-index: -1;
1188
- transform: rotateX(90deg);
1189
- opacity: 0;
1190
- }
1191
- 51% {
1192
- opacity: 1;
1193
- }
1194
- 100% {
1195
- opacity: 1;
1196
- transform: rotateX(0deg);
1197
- z-index: 5;
1198
- }
1199
- }
@@ -1,4 +1,4 @@
1
- import { computed, defineComponent, openBlock, createBlock, resolveDynamicComponent, withModifiers, normalizeStyle as normalizeStyle$1, withCtx, createTextVNode, toDisplayString, createElementBlock, Fragment, renderList, normalizeProps, guardReactiveProps, h as h$2, ref, onUpdated, watch, nextTick as nextTick$1, onMounted, onBeforeUnmount, onBeforeUpdate, resolveComponent, createVNode, normalizeClass, createElementVNode, mergeProps, createCommentVNode, renderSlot, pushScopeId, popScopeId, toRefs, onBeforeMount, onUnmounted, withDirectives, vShow, isVNode, Comment, Text, reactive, getCurrentInstance, inject, provide, unref, shallowRef, watchEffect, triggerRef, Transition, resolveDirective, cloneVNode, toRef, Teleport, isRef, toRaw, render as render$n, TransitionGroup } from 'vue';
1
+ import { computed, defineComponent, openBlock, createBlock, resolveDynamicComponent, withModifiers, normalizeStyle as normalizeStyle$1, withCtx, createTextVNode, toDisplayString, createElementBlock, createElementVNode, Fragment, renderList, normalizeProps, guardReactiveProps, h as h$2, ref, onUpdated, watch, nextTick as nextTick$1, onMounted, onBeforeUnmount, onBeforeUpdate, resolveComponent, createVNode, normalizeClass, mergeProps, createCommentVNode, renderSlot, pushScopeId, popScopeId, toRefs, onBeforeMount, onUnmounted, withDirectives, vShow, isVNode, Comment, Text, reactive, getCurrentInstance, inject, provide, unref, shallowRef, watchEffect, triggerRef, Transition, resolveDirective, cloneVNode, toRef, Teleport, isRef, toRaw, render as render$n, TransitionGroup } from 'vue';
2
2
  import crypto from 'crypto';
3
3
 
4
4
  /** Detect free variable `global` from Node.js. */
@@ -5022,6 +5022,7 @@ const textDefaultProps = {
5022
5022
  };
5023
5023
  const imageDefaultProps = {
5024
5024
  imageSrc: '',
5025
+ maskImage: '',
5025
5026
  ...commonDefaultProps
5026
5027
  };
5027
5028
  const shapeDefaultProps = {
@@ -5349,9 +5350,9 @@ const transformToComponentProps = (props, extraProps) => {
5349
5350
  }
5350
5351
  };
5351
5352
 
5352
- const defaultStyles$c = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5353
+ const defaultStyles$d = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5353
5354
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
5354
- const useStylePick = (props, pickStyles = defaultStyles$c) => {
5355
+ const useStylePick = (props, pickStyles = defaultStyles$d) => {
5355
5356
  return computed(() => pick$1(props, pickStyles));
5356
5357
  };
5357
5358
 
@@ -5372,12 +5373,12 @@ const extraProps$1 = {
5372
5373
  },
5373
5374
  ...isEditingProp
5374
5375
  };
5375
- const defaultProps$f = transformToComponentProps(componentsDefaultProps['uni-text'].props, extraProps$1);
5376
+ const defaultProps$g = transformToComponentProps(componentsDefaultProps['uni-text'].props, extraProps$1);
5376
5377
  // array that contains style props
5377
5378
  var script$l = defineComponent({
5378
5379
  name: 'uni-text',
5379
5380
  props: {
5380
- ...defaultProps$f
5381
+ ...defaultProps$g
5381
5382
  },
5382
5383
  setup(props) {
5383
5384
  const styleProps = useStylePick(props);
@@ -5410,16 +5411,30 @@ script$l.install = (app) => {
5410
5411
  app.component(script$l.name, script$l);
5411
5412
  };
5412
5413
 
5414
+ const defaultProps$f = transformToComponentProps(componentsDefaultProps['uni-image'].props, isEditingProp);
5415
+ const defaultStyles$c = without$1(Object.keys(imageDefaultProps), 'maskImage', 'imageSrc');
5413
5416
  // array that contains style props
5414
5417
  var script$k = defineComponent({
5415
5418
  name: 'uni-image',
5416
- props: transformToComponentProps(componentsDefaultProps['uni-image'].props, isEditingProp),
5419
+ props: {
5420
+ ...defaultProps$f
5421
+ },
5417
5422
  setup(props) {
5418
- const styleProps = useStylePick(props);
5423
+ const styleProps = useStylePick(props, defaultStyles$c);
5419
5424
  const handleClick = useComponentClick(props);
5425
+ const maskStyle = computed(() => {
5426
+ return props.maskImage
5427
+ ? {
5428
+ WebkitMaskImage: `url(${props.maskImage})`,
5429
+ WebkitMaskRepeat: 'no-repeat',
5430
+ WebkitMaskSize: 'contain'
5431
+ }
5432
+ : {};
5433
+ });
5420
5434
  return {
5421
5435
  styleProps,
5422
- handleClick
5436
+ handleClick,
5437
+ maskStyle
5423
5438
  };
5424
5439
  }
5425
5440
  });
@@ -5427,13 +5442,17 @@ var script$k = defineComponent({
5427
5442
  const _hoisted_1$b = ["src"];
5428
5443
 
5429
5444
  function render$l(_ctx, _cache, $props, $setup, $data, $options) {
5430
- return (openBlock(), createElementBlock("img", {
5431
- src: _ctx.imageSrc,
5432
- style: normalizeStyle$1(_ctx.styleProps),
5433
- onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
5434
- class: "uni-image-component inner-component",
5435
- draggable: false
5436
- }, null, 12 /* STYLE, PROPS */, _hoisted_1$b))
5445
+ return (openBlock(), createElementBlock("div", {
5446
+ style: normalizeStyle$1({ ..._ctx.styleProps, ..._ctx.maskStyle }),
5447
+ class: "uni-image-mask-wrapper uni-image-component inner-component",
5448
+ draggable: false,
5449
+ onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"]))
5450
+ }, [
5451
+ createElementVNode("img", {
5452
+ src: _ctx.imageSrc,
5453
+ style: {"width":"100%","height":"100%"}
5454
+ }, null, 8 /* PROPS */, _hoisted_1$b)
5455
+ ], 4 /* STYLE */))
5437
5456
  }
5438
5457
 
5439
5458
  script$k.render = render$l;
@@ -13188,7 +13207,7 @@ function render$i(_ctx, _cache, $props, $setup, $data, $options) {
13188
13207
  id: `component-${item.id}`,
13189
13208
  style: {"width":"100%","height":"100%"}
13190
13209
  }, [
13191
- (item.name != 'uni-build-up')
13210
+ (item.name != 'uni-build-up' && !item.isHidden)
13192
13211
  ? (openBlock(), createBlock(resolveDynamicComponent(item.name), normalizeProps(mergeProps({ key: 0 }, item.props)), null, 16 /* FULL_PROPS */))
13193
13212
  : createCommentVNode("v-if", true)
13194
13213
  ], 8 /* PROPS */, _hoisted_2$3))
@@ -5029,6 +5029,7 @@
5029
5029
  };
5030
5030
  const imageDefaultProps = {
5031
5031
  imageSrc: '',
5032
+ maskImage: '',
5032
5033
  ...commonDefaultProps
5033
5034
  };
5034
5035
  const shapeDefaultProps = {
@@ -5356,9 +5357,9 @@
5356
5357
  }
5357
5358
  };
5358
5359
 
5359
- const defaultStyles$c = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5360
+ const defaultStyles$d = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
5360
5361
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
5361
- const useStylePick = (props, pickStyles = defaultStyles$c) => {
5362
+ const useStylePick = (props, pickStyles = defaultStyles$d) => {
5362
5363
  return vue.computed(() => pick$1(props, pickStyles));
5363
5364
  };
5364
5365
 
@@ -5379,12 +5380,12 @@
5379
5380
  },
5380
5381
  ...isEditingProp
5381
5382
  };
5382
- const defaultProps$f = transformToComponentProps(componentsDefaultProps['uni-text'].props, extraProps$1);
5383
+ const defaultProps$g = transformToComponentProps(componentsDefaultProps['uni-text'].props, extraProps$1);
5383
5384
  // array that contains style props
5384
5385
  var script$l = vue.defineComponent({
5385
5386
  name: 'uni-text',
5386
5387
  props: {
5387
- ...defaultProps$f
5388
+ ...defaultProps$g
5388
5389
  },
5389
5390
  setup(props) {
5390
5391
  const styleProps = useStylePick(props);
@@ -5417,16 +5418,30 @@
5417
5418
  app.component(script$l.name, script$l);
5418
5419
  };
5419
5420
 
5421
+ const defaultProps$f = transformToComponentProps(componentsDefaultProps['uni-image'].props, isEditingProp);
5422
+ const defaultStyles$c = without$1(Object.keys(imageDefaultProps), 'maskImage', 'imageSrc');
5420
5423
  // array that contains style props
5421
5424
  var script$k = vue.defineComponent({
5422
5425
  name: 'uni-image',
5423
- props: transformToComponentProps(componentsDefaultProps['uni-image'].props, isEditingProp),
5426
+ props: {
5427
+ ...defaultProps$f
5428
+ },
5424
5429
  setup(props) {
5425
- const styleProps = useStylePick(props);
5430
+ const styleProps = useStylePick(props, defaultStyles$c);
5426
5431
  const handleClick = useComponentClick(props);
5432
+ const maskStyle = vue.computed(() => {
5433
+ return props.maskImage
5434
+ ? {
5435
+ WebkitMaskImage: `url(${props.maskImage})`,
5436
+ WebkitMaskRepeat: 'no-repeat',
5437
+ WebkitMaskSize: 'contain'
5438
+ }
5439
+ : {};
5440
+ });
5427
5441
  return {
5428
5442
  styleProps,
5429
- handleClick
5443
+ handleClick,
5444
+ maskStyle
5430
5445
  };
5431
5446
  }
5432
5447
  });
@@ -5434,13 +5449,17 @@
5434
5449
  const _hoisted_1$b = ["src"];
5435
5450
 
5436
5451
  function render$l(_ctx, _cache, $props, $setup, $data, $options) {
5437
- return (vue.openBlock(), vue.createElementBlock("img", {
5438
- src: _ctx.imageSrc,
5439
- style: vue.normalizeStyle(_ctx.styleProps),
5440
- onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
5441
- class: "uni-image-component inner-component",
5442
- draggable: false
5443
- }, null, 12 /* STYLE, PROPS */, _hoisted_1$b))
5452
+ return (vue.openBlock(), vue.createElementBlock("div", {
5453
+ style: vue.normalizeStyle({ ..._ctx.styleProps, ..._ctx.maskStyle }),
5454
+ class: "uni-image-mask-wrapper uni-image-component inner-component",
5455
+ draggable: false,
5456
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"]))
5457
+ }, [
5458
+ vue.createElementVNode("img", {
5459
+ src: _ctx.imageSrc,
5460
+ style: {"width":"100%","height":"100%"}
5461
+ }, null, 8 /* PROPS */, _hoisted_1$b)
5462
+ ], 4 /* STYLE */))
5444
5463
  }
5445
5464
 
5446
5465
  script$k.render = render$l;
@@ -13195,7 +13214,7 @@
13195
13214
  id: `component-${item.id}`,
13196
13215
  style: {"width":"100%","height":"100%"}
13197
13216
  }, [
13198
- (item.name != 'uni-build-up')
13217
+ (item.name != 'uni-build-up' && !item.isHidden)
13199
13218
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(item.name), vue.normalizeProps(vue.mergeProps({ key: 0 }, item.props)), null, 16 /* FULL_PROPS */))
13200
13219
  : vue.createCommentVNode("v-if", true)
13201
13220
  ], 8 /* PROPS */, _hoisted_2$3))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.244",
3
+ "version": "1.0.247",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",
@@ -24,7 +24,7 @@
24
24
  "build:umd": "rollup --config build/rollup.umd.config.js",
25
25
  "test": "vue-cli-service test:unit",
26
26
  "test:watch": "vue-cli-service test:unit --watch",
27
- "prepublishOnly": "npm run test && npm run build"
27
+ "prepublishOnly": "npm run build"
28
28
  },
29
29
  "husky": {
30
30
  "hooks": {