@bildvitta/quasar-ui-asteroid 3.11.0-beta.0 → 3.11.0-beta.2

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bildvitta/quasar-ui-asteroid",
3
3
  "description": "Asteroid",
4
- "version": "3.11.0-beta.0",
4
+ "version": "3.11.0-beta.2",
5
5
  "author": "Bild & Vitta <systemteam@bild.com.br>",
6
6
  "license": "MIT",
7
7
  "main": "dist/asteroid.cjs.min.js",
@@ -7,6 +7,12 @@
7
7
  </template>
8
8
 
9
9
  <script>
10
+ const AvatarColors = {
11
+ Primary: 'primary',
12
+ SecondaryContrast: 'secondary-contrast',
13
+ Grey4: 'grey-4'
14
+ }
15
+
10
16
  export default {
11
17
  name: 'QasAvatar',
12
18
 
@@ -15,8 +21,12 @@ export default {
15
21
  props: {
16
22
  color: {
17
23
  type: String,
18
- default: 'primary',
19
- validator: value => ['primary', 'secondary-contrast'].includes(value)
24
+ default: AvatarColors.Primary,
25
+ validator: value => {
26
+ const availableColors = Object.values(AvatarColors)
27
+
28
+ return availableColors.includes(value)
29
+ }
20
30
  },
21
31
 
22
32
  size: {
@@ -69,8 +79,9 @@ export default {
69
79
  } = this.$attrs
70
80
 
71
81
  const colors = {
72
- primary: 'white',
73
- 'secondary-contrast': 'primary'
82
+ [AvatarColors.Primary]: 'white',
83
+ [AvatarColors.SecondaryContrast]: 'primary',
84
+ [AvatarColors.Grey4]: 'grey-8'
74
85
  }
75
86
 
76
87
  return {
@@ -10,7 +10,7 @@ props:
10
10
  color:
11
11
  desc: Cor de fundo (background-color).
12
12
  type: String
13
- examples: ['primary', 'secondary-contrast']
13
+ examples: ['primary', 'secondary-contrast', 'grey-4']
14
14
 
15
15
  size:
16
16
  desc: Tamanho do avatar.
@@ -10,17 +10,7 @@ export default function () {
10
10
  QasComponent,
11
11
 
12
12
  initializeComponent (app) {
13
- return initializeComponent({
14
- app,
15
-
16
- async onBefore () {
17
- await import('@fawmi/vue-google-maps').then(({ default: VueGoogleMaps }) => {
18
- app.use(VueGoogleMaps, {
19
- load: { libraries: 'places', key: process.env.MAPS_API_KEY }
20
- })
21
- })
22
- }
23
- })
13
+ return initializeComponent({ app })
24
14
  }
25
15
  }
26
16
  }