@burh/nuxt-core 1.0.410 → 1.0.412

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,96 +1,121 @@
1
- <template>
2
- <div
3
- class="skeleton skeleton--animate"
4
- :class="[
5
- { 'rounded': rounded },
6
- { 'img': img }
7
- ]"
8
- :style="`--skeleton-w: ${width}px; --skeleton-h: ${height}px;`"
9
- ></div>
10
- </template>
11
-
12
- <script>
13
- export default {
14
- name: 'skeleton-animate',
15
- props: {
16
- width: {
17
- type: Number,
18
- default: 200
19
- },
20
- height: {
21
- type: Number,
22
- default: 15
23
- },
24
- rounded: {
25
- type: Boolean,
26
- default: false
27
- },
28
- img: {
29
- type: Boolean,
30
- default: false
31
- }
32
- }
33
- };
34
- </script>
35
-
36
- <style lang="scss" scoped>
37
- @-webkit-keyframes placeholderSkeleton {
38
- 0% {
39
- background-position: -468px 0;
40
- }
41
- 100% {
42
- background-position: 468px 0;
43
- }
44
- }
45
-
46
- @-webkit-keyframes skeletonAnimate {
47
- from {
48
- background-position: top left;
49
- }
50
- to {
51
- background-position: top right;
52
- }
53
- }
54
-
55
- .skeleton {
56
- width: var(--skeleton-w);
57
- height: var(--skeleton-h);
58
- border-radius: 2px;
59
- &.rounded {
60
- border-radius: 4px;
61
- }
62
- &.img {
63
- border-radius: 1000px;
64
- }
65
- }
66
-
67
- $skeletonBaseColor: #e0e3e6;
68
- $skeletonBaseLineColor: #edeef1;
69
-
70
- .skeleton--animate {
71
- -webkit-animation-duration: 1s;
72
- -webkit-animation-fill-mode: forwards;
73
- -webkit-animation-iteration-count: infinite;
74
- -webkit-animation-name: placeholderSkeleton;
75
- -webkit-animation-timing-function: linear;
76
- background: $skeletonBaseColor;
77
- background-image: -webkit-gradient(
78
- linear,
79
- left center,
80
- right center,
81
- from($skeletonBaseColor),
82
- color-stop(0.2, $skeletonBaseLineColor),
83
- color-stop(0.4, $skeletonBaseColor),
84
- to($skeletonBaseColor)
85
- );
86
- background-image: -webkit-linear-gradient(
87
- left,
88
- $skeletonBaseColor 0%,
89
- $skeletonBaseLineColor 20%,
90
- $skeletonBaseColor 40%,
91
- $skeletonBaseColor 100%
92
- );
93
- background-repeat: no-repeat;
94
- background-size: 800px 104px;
95
- }
96
- </style>
1
+ <template>
2
+ <div
3
+ class="skeleton skeleton--animate"
4
+ :class="[
5
+ { 'rounded': rounded },
6
+ { 'img': img }
7
+ ]"
8
+ :style="`--skeleton-w: ${width}px; --skeleton-h: ${height}px;`"
9
+ ></div>
10
+ </template>
11
+
12
+ <script>
13
+ export default {
14
+ name: 'skeleton-animate',
15
+ props: {
16
+ width: {
17
+ type: Number,
18
+ default: 200
19
+ },
20
+ height: {
21
+ type: Number,
22
+ default: 15
23
+ },
24
+ rounded: {
25
+ type: Boolean,
26
+ default: false
27
+ },
28
+ img: {
29
+ type: Boolean,
30
+ default: false
31
+ }
32
+ }
33
+ };
34
+ </script>
35
+
36
+ <style lang="scss" scoped>
37
+ @keyframes placeholderSkeleton {
38
+ 0% {
39
+ background-position: -468px 0;
40
+ }
41
+ 100% {
42
+ background-position: 468px 0;
43
+ }
44
+ }
45
+
46
+ @keyframes skeletonAnimate {
47
+ from {
48
+ background-position: top left;
49
+ }
50
+ to {
51
+ background-position: top right;
52
+ }
53
+ }
54
+
55
+ @-webkit-keyframes placeholderSkeleton {
56
+ 0% {
57
+ background-position: -468px 0;
58
+ }
59
+ 100% {
60
+ background-position: 468px 0;
61
+ }
62
+ }
63
+
64
+ @-webkit-keyframes skeletonAnimate {
65
+ from {
66
+ background-position: top left;
67
+ }
68
+ to {
69
+ background-position: top right;
70
+ }
71
+ }
72
+
73
+ .skeleton {
74
+ width: var(--skeleton-w);
75
+ height: var(--skeleton-h);
76
+ border-radius: 2px;
77
+ &.rounded {
78
+ border-radius: 4px;
79
+ }
80
+ &.img {
81
+ border-radius: 1000px;
82
+ }
83
+ }
84
+
85
+ $skeletonBaseColor: #e0e3e6;
86
+ $skeletonBaseLineColor: #edeef1;
87
+
88
+ .skeleton--animate {
89
+ -webkit-animation-duration: 1s;
90
+ -webkit-animation-fill-mode: forwards;
91
+ -webkit-animation-iteration-count: infinite;
92
+ -webkit-animation-name: placeholderSkeleton;
93
+ -webkit-animation-timing-function: linear;
94
+
95
+ animation-duration: 1s;
96
+ animation-fill-mode: forwards;
97
+ animation-iteration-count: infinite;
98
+ animation-name: placeholderSkeleton;
99
+ animation-timing-function: linear;
100
+
101
+ background: $skeletonBaseColor;
102
+ background-image: -webkit-gradient(
103
+ linear,
104
+ left center,
105
+ right center,
106
+ from($skeletonBaseColor),
107
+ color-stop(0.2, $skeletonBaseLineColor),
108
+ color-stop(0.4, $skeletonBaseColor),
109
+ to($skeletonBaseColor)
110
+ );
111
+ background-image: -webkit-linear-gradient(
112
+ left,
113
+ $skeletonBaseColor 0%,
114
+ $skeletonBaseLineColor 20%,
115
+ $skeletonBaseColor 40%,
116
+ $skeletonBaseColor 100%
117
+ );
118
+ background-repeat: no-repeat;
119
+ background-size: 800px 104px;
120
+ }
121
+ </style>
@@ -1,108 +1,108 @@
1
- <template>
2
- <li class="custom__tab tab tab-primary" :class="active && 'tab--active'"
3
- @click="$emit('tab-click')">
4
- <span class="tab__title" :class="tabTitleClass">{{title}}</span>
5
- <span v-if="icon > 0" class="tab__icon" :class="tabIconClass">{{icon}}</span>
6
- </li>
7
- </template>
8
- <script>
9
- export default {
10
- name: 'teste-tab',
11
- props: {
12
- title: {
13
- type: String,
14
- default: 'Testes',
15
- description: 'Title for tab',
16
- },
17
- icon: {
18
- type: Number,
19
- default: 0,
20
- description: 'Number for tab icon',
21
- },
22
- active: {
23
- type: Boolean,
24
- default: false,
25
- description: 'Define if tab is active',
26
- },
27
- tabIconClass: {
28
- type: String,
29
- default: '',
30
- description: 'Define css class for tab\'s icon',
31
- },
32
- tabTitleClass: {
33
- type: String,
34
- default: '',
35
- description: 'Define css class for tab\'s title',
36
- },
37
- link: {
38
- type: String,
39
- default: '/',
40
- description: 'Define nuxt-link link',
41
- }
42
- },
43
- methods: {
44
- redirect(link){
45
- this.$router.push(link);
46
- }
47
- }
48
- };
49
- </script>
50
- <style lang="scss" scoped>
51
- @import "@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss";
52
-
53
- .custom__tab {
54
- &.tab {
55
- position: relative;
56
- padding: .75rem 2rem;
57
- margin: 0 1rem;
58
-
59
- &:hover {
60
- cursor: pointer;
61
- .tab__title, .tab__icon {
62
- color: $primary;
63
- }
64
- }
65
-
66
- &__title {
67
- color: #3C4858;
68
- font-weight: 600;
69
- }
70
-
71
- &__icon {
72
- color: #ffffff;
73
- border-radius: 50% !important;
74
- background-color: #3C4858;;
75
- padding: 0 .4rem;
76
- font-weight: bold;
77
- }
78
-
79
- @media screen and (min-width: 992px){
80
- &.tab{
81
- padding: .75 2rem;
82
- }
83
- }
84
-
85
- &.tab--active {
86
- .tab__title {
87
- color:$primary;
88
- }
89
-
90
- .tab__icon {
91
- background-color: $primary;
92
- color: #FFF
93
- }
94
- }
95
-
96
- &.tab--active::after {
97
- content:'';
98
- position:absolute;
99
- bottom:0;
100
- left:0;
101
- right:0;
102
- background: $primary;
103
- height: 5px;
104
- border-radius:5px 5px 0px 0px;
105
- }
106
- }
107
- }
108
- </style>
1
+ <template>
2
+ <li class="custom__tab tab tab-primary" :class="active && 'tab--active'"
3
+ @click="$emit('tab-click')">
4
+ <span class="tab__title" :class="tabTitleClass">{{title}}</span>
5
+ <span v-if="icon > 0" class="tab__icon" :class="tabIconClass">{{icon}}</span>
6
+ </li>
7
+ </template>
8
+ <script>
9
+ export default {
10
+ name: 'teste-tab',
11
+ props: {
12
+ title: {
13
+ type: String,
14
+ default: 'Testes',
15
+ description: 'Title for tab',
16
+ },
17
+ icon: {
18
+ type: Number,
19
+ default: 0,
20
+ description: 'Number for tab icon',
21
+ },
22
+ active: {
23
+ type: Boolean,
24
+ default: false,
25
+ description: 'Define if tab is active',
26
+ },
27
+ tabIconClass: {
28
+ type: String,
29
+ default: '',
30
+ description: 'Define css class for tab\'s icon',
31
+ },
32
+ tabTitleClass: {
33
+ type: String,
34
+ default: '',
35
+ description: 'Define css class for tab\'s title',
36
+ },
37
+ link: {
38
+ type: String,
39
+ default: '/',
40
+ description: 'Define nuxt-link link',
41
+ }
42
+ },
43
+ methods: {
44
+ redirect(link){
45
+ this.$router.push(link);
46
+ }
47
+ }
48
+ };
49
+ </script>
50
+ <style lang="scss" scoped>
51
+ @import "@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss";
52
+
53
+ .custom__tab {
54
+ &.tab {
55
+ position: relative;
56
+ padding: .75rem 2rem;
57
+ margin: 0 1rem;
58
+
59
+ &:hover {
60
+ cursor: pointer;
61
+ .tab__title, .tab__icon {
62
+ color: $primary;
63
+ }
64
+ }
65
+
66
+ &__title {
67
+ color: #3C4858;
68
+ font-weight: 600;
69
+ }
70
+
71
+ &__icon {
72
+ color: #ffffff;
73
+ border-radius: 50% !important;
74
+ background-color: #3C4858;;
75
+ padding: 0 .4rem;
76
+ font-weight: bold;
77
+ }
78
+
79
+ @media screen and (min-width: 992px){
80
+ &.tab{
81
+ padding: .75 2rem;
82
+ }
83
+ }
84
+
85
+ &.tab--active {
86
+ .tab__title {
87
+ color:$primary;
88
+ }
89
+
90
+ .tab__icon {
91
+ background-color: $primary;
92
+ color: #FFF
93
+ }
94
+ }
95
+
96
+ &.tab--active::after {
97
+ content:'';
98
+ position:absolute;
99
+ bottom:0;
100
+ left:0;
101
+ right:0;
102
+ background: $primary;
103
+ height: 5px;
104
+ border-radius:5px 5px 0px 0px;
105
+ }
106
+ }
107
+ }
108
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.410",
3
+ "version": "1.0.412",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {