@burh/nuxt-core 1.0.341 → 1.0.342

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,71 +1,91 @@
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
- min-height: 200px;
46
- &__footer {
47
- display: flex;
48
- align-items: center;
49
- justify-content: space-between;
50
- .base__filter__button {
51
- background: transparent;
52
- border: none;
53
- color: #32325d;
54
- padding: 10px 20px;
55
- border-radius: 4px;
56
- transition: background 0.5s, color 0.5s;
57
- &:focus {
58
- outline: none;
59
- }
60
- &.clear:hover {
61
- background: rgba(222, 33, 75, 0.1);
62
- color: #de214b;
63
- }
64
- &.apply:hover {
65
- background: rgba(88, 101, 242, 0.1);
66
- color: #5865F2;
67
- }
68
- }
69
- }
70
- }
71
- </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="$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>
@@ -12,7 +12,7 @@
12
12
  >
13
13
  <button
14
14
  class="filter__item"
15
- :class="{'filter__item--active': (shouldOpenDropdown) ? isDropdownOpen : isActive}"
15
+ :class="{'filter__item--active': isDropdownOpen || isActive}"
16
16
  @click="handleFilterClick()"
17
17
  >
18
18
  <div
@@ -81,7 +81,7 @@ export default {
81
81
  }
82
82
  }
83
83
  }
84
- }
84
+ },
85
85
  },
86
86
  methods: {
87
87
  handleFilterClick() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.341",
3
+ "version": "1.0.342",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {