@burh/nuxt-core 1.0.438 → 1.0.439

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,91 +1,143 @@
1
- <template>
2
- <div class="base__filter">
3
- <div class="base__filter__content">
4
- <slot />
5
- </div>
6
-
7
- <div v-if="showFooter" class="base__filter__footer">
8
- <div>
9
- <button
10
- @click="$emit('filter-clear')"
11
- class="base__filter__button clear"
12
- >
13
- <span>Limpar</span>
14
- </button>
15
- </div>
16
- <div>
17
- <button
18
- @click="$emit('filter-apply')"
19
- class="base__filter__button apply"
20
- >
21
- <span>Filtrar</span>
22
- </button>
23
- </div>
24
- </div>
25
- </div>
26
- </template>
27
-
28
- <script>
29
- export default {
30
- name: 'base-filter-container',
31
- props: {
32
- showFooter: {
33
- type: Boolean,
34
- default: true
35
- }
36
- }
37
- };
38
- </script>
39
-
40
- <style lang="scss" scoped>
41
- .base__filter {
42
- display: flex;
43
- flex-direction: column;
44
- justify-content: space-between;
45
- max-height: 350px;
46
- &__content {
47
- max-height: calc(350px - 44px);
48
- overflow: hidden;
49
- overflow-y: auto;
50
- &::-webkit-scrollbar-track {
51
- border-radius: 10px;
52
- background-color: #f5f5f5;
53
- }
54
-
55
- &::-webkit-scrollbar {
56
- width: 4px;
57
- background-color: #f5f5f5;
58
- }
59
-
60
- &::-webkit-scrollbar-thumb {
61
- border-radius: 10px;
62
- background-color: #e9e8e8;
63
- }
64
- }
65
- &__footer {
66
- display: flex;
67
- align-items: center;
68
- justify-content: space-between;
69
- margin-top: 20px;
70
- .base__filter__button {
71
- background: transparent;
72
- border: none;
73
- color: #32325d;
74
- padding: 10px 20px;
75
- border-radius: 4px;
76
- transition: background 0.5s, color 0.5s;
77
- &:focus {
78
- outline: none;
79
- }
80
- &.clear:hover {
81
- background: rgba(222, 33, 75, 0.1);
82
- color: #de214b;
83
- }
84
- &.apply:hover {
85
- background: rgba(88, 101, 242, 0.1);
86
- color: #5865F2;
87
- }
88
- }
89
- }
90
- }
91
- </style>
1
+ <template>
2
+ <div class="base__filter">
3
+ <div class="base__filter__content">
4
+ <slot />
5
+ </div>
6
+
7
+ <div v-if="showFooter" class="base__filter__footer">
8
+ <div>
9
+ <button
10
+ @click="$emit('filter-clear')"
11
+ class="base__filter__button clear"
12
+ >
13
+ <span>Limpar</span>
14
+ </button>
15
+ </div>
16
+ <div>
17
+ <button
18
+ @click="!isLocked ? $emit('filter-apply') : $emit('open-plan-modal')"
19
+ class="base__filter__button apply"
20
+ :class="{ 'disabled': isLocked }"
21
+ >
22
+ <template v-if="isLocked">
23
+ <span class="mr-1 custom__icon">
24
+ <i class="fas fa-lock lock"></i>
25
+ <i class="fas fa-rocket rocket"></i>
26
+ </span>
27
+ </template>
28
+ <span>Filtrar</span>
29
+ </button>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </template>
34
+
35
+ <script>
36
+ export default {
37
+ name: 'base-filter-container',
38
+ props: {
39
+ showFooter: {
40
+ type: Boolean,
41
+ default: true
42
+ },
43
+ isLocked: {
44
+ type: Boolean,
45
+ default: false
46
+ }
47
+ }
48
+ };
49
+ </script>
50
+
51
+ <style lang="scss" scoped>
52
+ @keyframes fadeInDown {
53
+ from {
54
+ opacity: 0;
55
+ transform: translateY(-20px);
56
+ }
57
+ to {
58
+ opacity: 1;
59
+ transform: translateY(0);
60
+ }
61
+ }
62
+
63
+ .base__filter {
64
+ display: flex;
65
+ flex-direction: column;
66
+ justify-content: space-between;
67
+ max-height: 350px;
68
+ &__content {
69
+ max-height: calc(350px - 44px);
70
+ overflow: hidden;
71
+ overflow-y: auto;
72
+ &::-webkit-scrollbar-track {
73
+ border-radius: 10px;
74
+ background-color: #f5f5f5;
75
+ }
76
+
77
+ &::-webkit-scrollbar {
78
+ width: 4px;
79
+ background-color: #f5f5f5;
80
+ }
81
+
82
+ &::-webkit-scrollbar-thumb {
83
+ border-radius: 10px;
84
+ background-color: #e9e8e8;
85
+ }
86
+ }
87
+ &__footer {
88
+ display: flex;
89
+ align-items: center;
90
+ justify-content: space-between;
91
+ margin-top: 20px;
92
+ .base__filter__button {
93
+ cursor: pointer;
94
+ background: transparent;
95
+ border: none;
96
+ color: #32325d;
97
+ padding: 10px 20px;
98
+ border-radius: 4px;
99
+ transition: background 0.5s, color 0.5s;
100
+ &:focus {
101
+ outline: none;
102
+ }
103
+ &.clear:hover {
104
+ background: rgba(222, 33, 75, 0.1);
105
+ color: #de214b;
106
+ }
107
+ &.apply:hover {
108
+ background: rgba(88, 101, 242, 0.1);
109
+ color: #5865F2;
110
+ }
111
+ &.disabled {
112
+ background: #e9e9e9;
113
+ display: flex;
114
+ .custom__icon {
115
+ width: 24px;
116
+ height: 24px;
117
+ overflow: hidden;
118
+ i {
119
+ padding: 5px;
120
+ }
121
+ .lock {
122
+ animation: fadeInDown 0.5s;
123
+ }
124
+ .rocket {
125
+ display: none;
126
+ }
127
+ }
128
+ &:hover {
129
+ .custom__icon {
130
+ .lock {
131
+ display: none;
132
+ }
133
+ .rocket {
134
+ display: block;
135
+ animation: fadeInDown 0.5s;
136
+ }
137
+ }
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+ </style>
@@ -87,7 +87,10 @@ export default {
87
87
  components: {},
88
88
  props: {
89
89
  isActive: Boolean,
90
- cover: String
90
+ cover: {
91
+ type: String,
92
+ default: '/img/plans_cover.png'
93
+ }
91
94
  },
92
95
  data() {
93
96
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.438",
3
+ "version": "1.0.439",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {