@bildvitta/quasar-ui-asteroid 3.14.0-beta.5 → 3.14.0-beta.7

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.14.0-beta.5",
4
+ "version": "3.14.0-beta.7",
5
5
  "author": "Bild & Vitta <systemteam@bild.com.br>",
6
6
  "license": "MIT",
7
7
  "main": "dist/asteroid.cjs.min.js",
@@ -449,7 +449,6 @@ function onNavigation (date) {
449
449
 
450
450
  color: $primary;
451
451
  font-size: 10px !important;
452
- width: 100%;
453
452
  line-height: 1;
454
453
  transition: color var(--qas-generic-transition);
455
454
 
@@ -562,7 +561,7 @@ function onNavigation (date) {
562
561
  box-shadow: none;
563
562
  height: auto !important;
564
563
  line-height: 1;
565
- width: 26px !important;
564
+ min-width: min-content;
566
565
  transition: color var(--qas-generic-transition);
567
566
 
568
567
  .q-ripple,
@@ -50,7 +50,7 @@ const props = defineProps({
50
50
 
51
51
  maxWidth: {
52
52
  type: String,
53
- default: ''
53
+ default: '60%'
54
54
  },
55
55
 
56
56
  position: {
@@ -74,15 +74,16 @@ const emit = defineEmits(['update:modelValue'])
74
74
  const attrs = useAttrs()
75
75
  const screen = useScreen()
76
76
 
77
+ // computed
78
+ const normalizedMaxWidth = computed(() => screen.isSmall ? '100%' : props.maxWidth)
79
+
77
80
  const loadingStyle = computed(() => {
78
81
  return {
79
- right: `calc(100% - ${props.maxWidth})`
82
+ right: `calc(100% - ${normalizedMaxWidth.value})`
80
83
  }
81
84
  })
82
85
 
83
86
  const attributes = computed(() => {
84
- const maxWidth = screen.isSmall ? '100%' : props.maxWidth
85
-
86
87
  const { modelValue } = attrs
87
88
 
88
89
  return {
@@ -92,7 +93,7 @@ const attributes = computed(() => {
92
93
  ...props.dialogProps,
93
94
 
94
95
  cancel: false,
95
- maxWidth,
96
+ maxWidth: normalizedMaxWidth.value,
96
97
  maximized: true,
97
98
  ok: false,
98
99
  position: props.position,
@@ -11,6 +11,7 @@ props:
11
11
 
12
12
  max-width:
13
13
  desc: Tamanho máximo do dialog.
14
+ default: 60%
14
15
  type: String
15
16
 
16
17
  model-value:
@@ -89,7 +89,6 @@ const model = computed({
89
89
  const drawerProps = computed(() => {
90
90
  return {
91
91
  loading: isMarkingNotificationsAsRead.value,
92
- maxWidth: '60%',
93
92
  title: 'Notificações'
94
93
  }
95
94
  })