@webitel/ui-sdk 2.0.13-2 → 2.0.13-3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "2.0.13-2",
3
+ "version": "2.0.13-3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -1,5 +1,8 @@
1
1
  <template>
2
- <aside class="wt-player">
2
+ <aside
3
+ class="wt-player"
4
+ :class="[`wt-player--position-${position}`]"
5
+ >
3
6
  <component
4
7
  :is="playerType"
5
8
  class="wt-player__player"
@@ -12,6 +15,7 @@
12
15
 
13
16
  <!-- The "wt-icon-btn" component is append in to "audio" element by "setCloseIcon" method-->
14
17
  <wt-icon-btn
18
+ v-if="closable"
15
19
  class="wt-player__close-icon"
16
20
  ref="close-icon"
17
21
  icon="close"
@@ -57,6 +61,14 @@ export default {
57
61
  type: Boolean,
58
62
  default: false,
59
63
  },
64
+ closable: {
65
+ type: Boolean,
66
+ default: true,
67
+ },
68
+ position: {
69
+ type: String,
70
+ default: 'sticky',
71
+ },
60
72
  },
61
73
  data: () => ({
62
74
  player: null,
@@ -142,8 +154,19 @@ export default {
142
154
 
143
155
  .wt-player {
144
156
  @extend %typo-body-2;
145
- position: sticky;
146
- bottom: 60px;
157
+
158
+ &--position {
159
+ &-sticky {
160
+ position: sticky;
161
+ bottom: 60px;
162
+ }
163
+ &-relative {
164
+ position: relative;
165
+ }
166
+ &-static {
167
+ position: static;
168
+ }
169
+ }
147
170
 
148
171
  .plyr {
149
172
  max-width: 100%; // prevents <video> container overflow