@burh/nuxt-core 1.0.170 → 1.0.171

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,63 +1,105 @@
1
1
  <template>
2
- <card class="card-app card-app--training" :class="icon ? 'card--icon' : '' " @click.native="$emit('course-click')">
3
- <base-dropdown @click.native.stop class="top-right custom" v-if="showMenu">
4
- <i slot="title-container"
5
- class="fa fa-ellipsis-h custom"
6
- aria-hidden="true"
7
- />
8
- <li v-for="actions in dropdownActions" class="dropdown-item d-flex align-items-center w-100" @click="$emit(actions.action)" :key="actions.name">
9
- <i :class="actions.icon ? actions.icon : 'fa fa-paper-plane'" aria-hidden="true" />
10
- <span>
11
- {{actions.name}}
12
- </span>
13
- </li>
14
- <li v-if="defaultAction" class="dropdown-item d-flex align-items-center w-100" @click="$emit(defaultAction.action)">
15
- <i :class="defaultAction.icon ? defaultAction.icon : 'fa fa-clone'" aria-hidden="true" />
16
- <span>
17
- {{defaultAction.name}}
18
- </span>
19
- </li>
20
- </base-dropdown>
21
- <img v-if="image" slot="image" class="card-img-top" :src="image" alt="Card image cap">
2
+ <card
3
+ class="card-app card-app--training"
4
+ :class="icon ? 'card--icon' : ''"
5
+ @click.native="$emit('course-click')"
6
+ >
7
+ <base-dropdown
8
+ @click.native.stop
9
+ class="top-right custom"
10
+ v-if="showMenu"
11
+ >
12
+ <i
13
+ slot="title-container"
14
+ class="fa fa-ellipsis-h custom"
15
+ aria-hidden="true"
16
+ />
17
+ <li
18
+ v-for="actions in dropdownActions"
19
+ class="dropdown-item d-flex align-items-center w-100"
20
+ @click="$emit(actions.action)"
21
+ :key="actions.name"
22
+ >
23
+ <i
24
+ :class="actions.icon ? actions.icon : 'fa fa-paper-plane'"
25
+ aria-hidden="true"
26
+ />
27
+ <span>
28
+ {{ actions.name }}
29
+ </span>
30
+ </li>
31
+ <li
32
+ v-if="defaultAction"
33
+ class="dropdown-item d-flex align-items-center w-100"
34
+ @click="$emit(defaultAction.action)"
35
+ >
36
+ <i
37
+ :class="
38
+ defaultAction.icon ? defaultAction.icon : 'fa fa-clone'
39
+ "
40
+ aria-hidden="true"
41
+ />
42
+ <span>
43
+ {{ defaultAction.name }}
44
+ </span>
45
+ </li>
46
+ </base-dropdown>
47
+ <img
48
+ v-if="image"
49
+ slot="image"
50
+ class="card-img-top"
51
+ :src="image"
52
+ alt="Card image cap"
53
+ />
22
54
 
23
- <i v-if="icon" slot="image" :class="icon" class="card-img-top card__icon"/>
24
- <!-- title -->
25
- <h3 class="h6 title mb-2">{{title}}</h3>
26
- <!-- descrição -->
27
- <p v-if="description" class="card-title mb-2">{{description}}</p>
28
- <!-- another information -->
29
- <p v-if="info" class="card-title"><small class="text-muted">{{info}}</small></p>
30
- </card>
55
+ <i
56
+ v-if="icon"
57
+ slot="image"
58
+ :class="icon"
59
+ class="card-img-top card__icon"
60
+ />
61
+ <!-- title -->
62
+ <h3 class="h6 title mb-2">{{ title }}</h3>
63
+ <!-- descrição -->
64
+ <p v-if="description" class="card-title mb-2">{{ description }}</p>
65
+ <!-- another information -->
66
+ <p v-if="info" class="card-title">
67
+ <small class="text-muted">{{ info }}</small>
68
+ </p>
69
+ </card>
31
70
  </template>
32
71
 
33
72
  <script>
34
73
  export default {
35
- name: 'training-card',
36
- data(){
37
- return{
38
- };
39
- },
40
- props: {
41
- id: Number,
42
- icon: String,
43
- link: String,
44
- image: String,
45
- title: String,
46
- description: String,
47
- info: String,
48
- showMenu: {
49
- type: Boolean,
50
- default: false,
51
- description: 'Defines if option menu is visible'
52
- },
53
- dropdownActions: null,
54
- defaultAction: null
55
- }
74
+ name: 'training-card',
75
+ data() {
76
+ return {};
77
+ },
78
+ props: {
79
+ id: Number,
80
+ icon: String,
81
+ link: String,
82
+ image: String,
83
+ title: String,
84
+ description: String,
85
+ info: String,
86
+ showMenu: {
87
+ type: Boolean,
88
+ default: false,
89
+ description: 'Defines if option menu is visible'
90
+ },
91
+ dropdownActions: null,
92
+ defaultAction: null
93
+ }
56
94
  };
57
95
  </script>
58
96
 
59
- <style lang="scss">
60
- .title{
97
+ <style lang="scss" scoped>
98
+ .card-app--training {
99
+ height: 15.8rem !important;
100
+ }
101
+
102
+ .title {
61
103
  margin-bottom: 0px !important;
62
104
  }
63
105
 
@@ -75,7 +117,7 @@ export default {
75
117
  background-color: #8192a6;
76
118
  border-radius: 15%;
77
119
  font-size: 1.25rem;
78
- padding: .25rem .5rem;
120
+ padding: 0.25rem 0.5rem;
79
121
  display: none;
80
122
  &:hover {
81
123
  cursor: pointer;
@@ -83,14 +125,14 @@ export default {
83
125
  }
84
126
 
85
127
  .top-right {
86
- right: .5rem;
128
+ right: 0.5rem;
87
129
  position: absolute;
88
- top: .5rem;
130
+ top: 0.5rem;
89
131
  z-index: 100;
90
132
  }
91
133
 
92
134
  .fa-plus::before {
93
- content: "\f067";
135
+ content: '\f067';
94
136
  position: relative;
95
137
  top: 25%;
96
138
  transform: translateY(-50%);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.170",
3
+ "version": "1.0.171",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {