@burh/nuxt-core 1.0.241 → 1.0.243

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.
@@ -170,7 +170,6 @@ export default {
170
170
  width: 100%;
171
171
  height: 100vh;
172
172
  z-index: -1;
173
- pointer-events: none;
174
173
  > button {
175
174
  width: 42px;
176
175
  height: 42px;
@@ -0,0 +1,64 @@
1
+ <template>
2
+ <div class="input__container__icon">
3
+ <label for="search">
4
+ <i class="fas fa-search"></i>
5
+ </label>
6
+ <input type="text" name="search" id="search" :placeholder="placeholder" v-model="searchModel" @change="$emit('change')">
7
+ </div>
8
+ </template>
9
+
10
+ <script>
11
+ export default {
12
+ name: 'search-input',
13
+ props: {
14
+ search: String,
15
+ placeholder: {
16
+ type: String,
17
+ default: 'Busque por vaga'
18
+ }
19
+ },
20
+ data() {
21
+ return {
22
+ searchModel: null
23
+ };
24
+ },
25
+ mounted() {
26
+ this.searchModel = this.search;
27
+ },
28
+ watch: {
29
+ search(value) {
30
+ this.searchModel = value;
31
+ },
32
+ searchModel(value) {
33
+ this.$emit('search', value);
34
+ }
35
+ }
36
+ };
37
+ </script>
38
+
39
+ <style lang="scss" scoped>
40
+ .input__container__icon {
41
+ position: relative;
42
+ display: flex;
43
+ align-items: center;
44
+ border-radius: 100px;
45
+ max-width: 270px;
46
+ overflow: hidden;
47
+ border: 1px solid #E9ECEF;
48
+ input {
49
+ background: transparent;
50
+ border: 0;
51
+ outline: none;
52
+ padding: 5px 0;
53
+ width: 100%;
54
+ }
55
+ label {
56
+ margin: 0;
57
+ display: block;
58
+ }
59
+ i {
60
+ padding: 0 10px;
61
+ color: #AEB6BE;
62
+ }
63
+ }
64
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.241",
3
+ "version": "1.0.243",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {