@lancom/shared 0.0.329 → 0.0.331

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.
@@ -57,6 +57,9 @@ body {
57
57
  max-width: 1440px;
58
58
  }
59
59
  }
60
+ &.full {
61
+ max-width: none;
62
+ }
60
63
  }
61
64
  .invalidate {
62
65
  pointer-events: none;
@@ -1,15 +1,29 @@
1
1
  <template>
2
- <span>
3
- <i
2
+ <span
3
+ class="wrapper"
4
+ :class="{
5
+ 'wrapper--label': !!label
6
+ }">
7
+ <span
4
8
  v-if="icon"
5
- class="icon-smartphone">
6
- </i>
7
- <a
8
- :href="`tel:${contacts.phone}`"
9
- :style="{ color }"
10
- @click="onClick">
11
- {{contacts.phone}}
12
- </a>
9
+ class="icon">
10
+ <i class="icon-smartphone"></i>
11
+ </span>
12
+ <span>
13
+ <span
14
+ v-if="label"
15
+ class="label">
16
+ {{ label }}
17
+ </span>
18
+ <span class="phone">
19
+ <a
20
+ :href="`tel:${contacts.phone}`"
21
+ :style="{ color }"
22
+ @click="onClick">
23
+ {{contacts.phone}}
24
+ </a>
25
+ </span>
26
+ </span>
13
27
  </span>
14
28
  </template>
15
29
 
@@ -27,6 +41,9 @@ export default {
27
41
  color: {
28
42
  type: String,
29
43
  default: '#303030'
44
+ },
45
+ label: {
46
+ type: String
30
47
  }
31
48
  },
32
49
  computed: {
@@ -42,5 +59,20 @@ export default {
42
59
  }
43
60
  };
44
61
  </script>
62
+
63
+
64
+ <style lang="scss" scoped>
65
+ @import "@/assets/scss/variables";
66
+ .wrapper {
67
+ &--label {
68
+ display: flex;
69
+ align-items: center;
70
+ .label, .phone {
71
+ display: block;
72
+ }
73
+ }
74
+ }
75
+ </style>
76
+
45
77
 
46
78
 
@@ -1,9 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  class="EditorWorkspaceSide__wrapper"
4
- :style="{
5
- 'background-color': backgroundColor
6
- }"
4
+ :style="backgroundColor"
7
5
  :class="{
8
6
  'EditorWorkspaceSide__wrapper--zoom-in': isZoomed
9
7
  }"
@@ -86,6 +84,7 @@ import { COLORS_IMAGES_TYPES } from '@lancom/shared/assets/js/constants/colors';
86
84
  import FabricHelper from '@lancom/shared/assets/js/utils/fabric-helper';
87
85
  import { findParentByPredicate } from '@lancom/shared/assets/js/utils/dom';
88
86
  import Breakpoints from '@lancom/shared/assets/js/utils/breakpoints';
87
+ import { getColorBackgroundStyle } from '@lancom/shared/assets/js/utils/colors';
89
88
 
90
89
  export default {
91
90
  name: 'EditorWorkspaceSide',
@@ -182,7 +181,7 @@ export default {
182
181
  return code === 'rect10';
183
182
  },
184
183
  backgroundColor() {
185
- return this.backgroundImageLoaded && this.editableColor?.rgb;
184
+ return this.backgroundImageLoaded && getColorBackgroundStyle(this.editableColor);
186
185
  },
187
186
  isZoomed() {
188
187
  return !!this.zoomSize;
@@ -2,16 +2,18 @@
2
2
  <div
3
3
  data-aos="aosFadeUp"
4
4
  class="Subscribe__wrapper">
5
- <slot name="header">
6
- <div class="Subscribe__title lc_h2">
7
- Subscribe to our news letter
8
- </div>
9
- </slot>
10
- <slot name="description">
11
- <div class="Subscribe__description lc_regular16">
12
- Sign up for new product relesses, free design rescurrces, and a chance to win 36 free custom printed shirts.
13
- </div>
14
- </slot>
5
+ <div class="Subscribe__info">
6
+ <slot name="header">
7
+ <div class="Subscribe__title lc_h2">
8
+ Subscribe to our <span>news letter</span>
9
+ </div>
10
+ </slot>
11
+ <slot name="description">
12
+ <div class="Subscribe__description lc_regular16">
13
+ Sign up for new product relesses, free design rescurrces, and a chance to win 36 free custom printed shirts.
14
+ </div>
15
+ </slot>
16
+ </div>
15
17
  <div v-if="isSubscribed">
16
18
  <div class="Subscribe__success lc_h5 mt-5">
17
19
  Subscribed successfully
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.329",
3
+ "version": "0.0.331",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {