@lancom/shared 0.0.454 → 0.0.456

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.
@@ -3,7 +3,8 @@ import debounce from 'lodash.debounce';
3
3
 
4
4
  class Breakpoints {
5
5
  screens = {
6
- mini: 448,
6
+ mini: 449,
7
+ xs: 450,
7
8
  sm: 768,
8
9
  md: 1024,
9
10
  lg: 1280,
@@ -48,7 +49,7 @@ class Breakpoints {
48
49
 
49
50
 
50
51
  isMini(val) {
51
- return val < this.screens.mini;
52
+ return val <= this.screens.mini;
52
53
  }
53
54
 
54
55
  isXs(val) {
@@ -451,7 +451,7 @@ export default {
451
451
  this.removeTemplateLayer(this.selectedLayer);
452
452
  },
453
453
  onOutsideClick() {
454
- if (this.addedFromCanvas && this.selectedLayer?.type === 'text' && !this.selectedLayer.copy) {
454
+ if (this.addedFromCanvas && this.selectedLayer?.type === 'text' && !this.selectedLayer.copy) {
455
455
  this.removeTemplateLayer(this.selectedLayer);
456
456
  }
457
457
  this.addedFromCanvas = false;
@@ -8,6 +8,13 @@
8
8
  background: white;
9
9
  left: 0;
10
10
  right: 0;
11
+ // min-height: 64px;
12
+ box-shadow: none !important;
13
+ border-radius: 0;
14
+ border: none;
15
+ .EditorPricing__clearance-messages {
16
+ display: none;
17
+ }
11
18
  }
12
19
  &__menu {
13
20
  position: fixed;
@@ -117,4 +124,4 @@
117
124
  overflow-y: auto;
118
125
  overflow-x: hidden;
119
126
  }
120
- }
127
+ }
@@ -79,7 +79,7 @@
79
79
  style="margin-top: 40px;" />
80
80
  <editor-layers
81
81
  v-show="currentTab === 'layers'"
82
- :hasPricing="false" />
82
+ :has-pricing="false" />
83
83
  </div>
84
84
  </div>
85
85
  </div>
@@ -101,6 +101,12 @@ const { mapMutations, mapGetters } = createNamespacedHelpers('product');
101
101
  export default {
102
102
  name: 'MobileEditorProductDetails',
103
103
  mixins: [addToCartMixin],
104
+ props: {
105
+ isEditMode: {
106
+ type: Boolean,
107
+ default: true
108
+ }
109
+ },
104
110
  components: {
105
111
  EditorWorkspace,
106
112
  EditorLayers,
@@ -156,14 +162,14 @@ export default {
156
162
 
157
163
  const prevTab = this.currentTab;
158
164
 
159
- if (this.isOpen) {
165
+ if (this.isOpen && this.isEditMode) {
160
166
  this.hide(true);
161
167
  }
162
168
 
163
169
  this.$nextTick(() => {
164
170
  this.isOpen = true;
165
171
 
166
- if(tab === 'layers') {
172
+ if (!this.isEditMode && tab === 'layers') {
167
173
  this.setEditModeSelectedLayer(false);
168
174
  }
169
175
 
@@ -1,3 +1,5 @@
1
+ @import "@/assets/scss/variables";
2
+
1
3
  .ProductPricingTiers {
2
4
  &__title {
3
5
  color: #0A0A0A;
@@ -21,6 +23,9 @@
21
23
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -2px rgba(0, 0, 0, 0.10);
22
24
  cursor: pointer;
23
25
  transition: all 0.3s ease;
26
+ @media (max-width: $bp-extra-small-max) {
27
+ width: 132px;
28
+ }
24
29
  &:hover {
25
30
  transform: translateY(-3px);
26
31
  box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.30), 0 2px 4px -2px rgba(0, 0, 0, 0.30);
@@ -35,11 +40,20 @@
35
40
  font-weight: 600;
36
41
  line-height: 28px;
37
42
  text-align: center;
43
+ @media (max-width: $bp-extra-small-max) {
44
+ padding: 8px 0;
45
+ font-size: 12px;
46
+ line-height: 20px;
47
+ }
38
48
  span {
39
49
  color: #194BB3;
40
50
  font-size: 18px;
41
51
  font-weight: 700;
42
52
  line-height: 28px;
53
+ @media (max-width: $bp-extra-small-max) {
54
+ font-size: 14px;
55
+ line-height: 20px;
56
+ }
43
57
  }
44
58
  }
45
59
  &-price {
@@ -50,11 +64,21 @@
50
64
  margin-top: 6px;
51
65
  padding: 4px;
52
66
  text-align: center;
67
+ @media (max-width: $bp-extra-small-max) {
68
+ font-size: 10px;
69
+ line-height: 16px;
70
+ margin-top: 4px;
71
+ padding: 2px;
72
+ }
53
73
  span {
54
74
  color: #194BB3;
55
75
  font-size: 12px;
56
76
  font-weight: 700;
57
77
  line-height: 20px;
78
+ @media (max-width: $bp-extra-small-max) {
79
+ font-size: 10px;
80
+ line-height: 16px;
81
+ }
58
82
  }
59
83
  }
60
84
  }
@@ -34,6 +34,13 @@
34
34
  z-index: 200;
35
35
  transition: opacity .16s cubic-bezier(0.23, 1, 0.32, 1);
36
36
  }
37
+ &__close {
38
+ position: absolute;
39
+ right: 10px;
40
+ top: 40px;
41
+ font-weight: bold;
42
+ font-size: 20px;
43
+ }
37
44
  }
38
45
 
39
46
  .TheAside__container,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.454",
3
+ "version": "0.0.456",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {