@bildvitta/quasar-ui-asteroid 3.5.0 → 3.6.0-beta.1

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.
Files changed (61) hide show
  1. package/package.json +1 -1
  2. package/src/assets/big-shoes-hero.svg +1 -0
  3. package/src/assets/big-shoes-sitting-on-rock.svg +1 -0
  4. package/src/assets/big-shoes-walking-the-dog.svg +1 -0
  5. package/src/components/actions/QasActions.vue +1 -1
  6. package/src/components/actions-menu/QasActionsMenu.vue +5 -3
  7. package/src/components/alert/QasAlert.vue +1 -1
  8. package/src/components/app-bar/QasAppBar.vue +1 -1
  9. package/src/components/app-menu/QasAppMenu.vue +2 -2
  10. package/src/components/badge/QasBadge.vue +40 -0
  11. package/src/components/badge/QasBadge.yml +28 -0
  12. package/src/components/btn/QasBtn.vue +87 -2
  13. package/src/components/btn/QasBtn.yml +18 -0
  14. package/src/components/card/QasCard.vue +1 -1
  15. package/src/components/copy/QasCopy.vue +1 -6
  16. package/src/components/copy/QasCopy.yml +0 -6
  17. package/src/components/date-time-input/QasDateTimeInput.vue +27 -6
  18. package/src/components/delete/QasDelete.vue +14 -1
  19. package/src/components/dialog/QasDialog.vue +4 -4
  20. package/src/components/filters/QasFilters.vue +80 -65
  21. package/src/components/form-view/QasFormView.vue +22 -20
  22. package/src/components/gallery/QasGallery.vue +2 -4
  23. package/src/components/gallery/private/PvGalleryCarouselDialog.vue +33 -16
  24. package/src/components/list-items/QasListItems.vue +4 -6
  25. package/src/components/list-items/QasListItems.yml +4 -4
  26. package/src/components/list-view/QasListView.vue +1 -1
  27. package/src/components/nested-fields/QasNestedFields.vue +9 -10
  28. package/src/components/pagination/QasPagination.vue +36 -3
  29. package/src/components/search-box/QasSearchBox.vue +2 -3
  30. package/src/components/search-box/QasSearchBox.yml +1 -1
  31. package/src/components/select/QasSelect.vue +0 -1
  32. package/src/components/select/QasSelect.yml +1 -1
  33. package/src/components/select-list/QasSelectList.vue +3 -6
  34. package/src/components/signature-pad/QasSignaturePad.vue +1 -1
  35. package/src/components/signature-uploader/QasSignatureUploader.vue +1 -1
  36. package/src/components/{tabs-generator/private/PvTabsGeneratorStatus.vue → status/QasStatus.vue} +4 -4
  37. package/src/components/status/QasStatus.yml +10 -0
  38. package/src/components/tabs-generator/QasTabsGenerator.vue +3 -3
  39. package/src/components/text-truncate/QasTextTruncate.vue +32 -10
  40. package/src/components/transfer/QasTransfer.vue +2 -2
  41. package/src/components/tree-generator/QasTreeGenerator.vue +2 -1
  42. package/src/components/uploader/QasUploader.vue +7 -5
  43. package/src/css/components/button.scss +101 -0
  44. package/src/css/components/index.scss +1 -0
  45. package/src/css/mixins/index.scss +1 -0
  46. package/src/css/mixins/set-button.scss +16 -0
  47. package/src/css/plugins/notify.scss +21 -0
  48. package/src/css/variables/button.scss +2 -1
  49. package/src/css/variables/spacing.scss +40 -27
  50. package/src/css/variables/typography.scss +11 -11
  51. package/src/index.scss +1 -1
  52. package/src/mixins/view.js +1 -1
  53. package/src/pages/ErrorComponent.vue +33 -14
  54. package/src/pages/Forbidden.vue +2 -1
  55. package/src/pages/NotFound.vue +2 -1
  56. package/src/pages/ServerError.vue +6 -2
  57. package/src/pages/Unauthorized.vue +3 -2
  58. package/src/plugins/notify-error/NotifyError.js +2 -1
  59. package/src/plugins/notify-success/NotifySuccess.js +2 -1
  60. package/src/vue-plugin.js +6 -0
  61. package/src/assets/gear.svg +0 -27
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div ref="signatureContainer" class="qas-signature-pad relative-position">
3
3
  <canvas :id="canvasId" :ref="$attrs.ref" class="qas-signature-pad__canvas rounded-borders vertical-bottom" :height="height" />
4
- <qas-btn v-if="!empty" class="absolute-bottom-right q-mb-sm q-mr-sm" color="primary" dense icon="sym_r_delete" round @click="clearSignature" />
4
+ <qas-btn v-if="!empty" class="absolute-bottom-right q-mb-sm q-mr-sm" icon="sym_r_delete" variant="primary" @click="clearSignature" />
5
5
  </div>
6
6
 
7
7
  <div>
@@ -7,7 +7,7 @@
7
7
  <div v-if="uploadLabel" class="q-uploader__title">{{ uploadLabel }}</div>
8
8
  </div>
9
9
 
10
- <qas-btn v-if="!readonly" color="white" dense flat icon="sym_r_add" round @click="openDialog" />
10
+ <qas-btn v-if="!readonly" color="white" icon="sym_r_add" :use-hover-on-white-color="false" variant="tertiary" @click="openDialog" />
11
11
 
12
12
  <qas-btn ref="forceUpload" class="hidden" @click="upload(scope)" />
13
13
  <qas-btn ref="buttonCleanFiles" class="hidden" @click="scope.removeUploadedFiles" />
@@ -1,17 +1,17 @@
1
1
  <template>
2
- <div class="pv-tabs-generator-status" :class="backgroundClass" />
2
+ <div aria-live="polite" class="qas-status" :class="backgroundClass" role="status" />
3
3
  </template>
4
4
 
5
5
  <script>
6
6
  export default {
7
- name: 'PvTabsGeneratorStatus',
7
+ name: 'QasStatus',
8
8
 
9
9
  inheritAttrs: false,
10
10
 
11
11
  props: {
12
12
  color: {
13
13
  type: String,
14
- default: ''
14
+ default: 'light-blue-2'
15
15
  }
16
16
  },
17
17
 
@@ -24,7 +24,7 @@ export default {
24
24
  </script>
25
25
 
26
26
  <style lang="scss">
27
- .pv-tabs-generator-status {
27
+ .qas-status {
28
28
  border-radius: 100%;
29
29
  height: 16px;
30
30
  width: 16px;
@@ -0,0 +1,10 @@
1
+ type: component
2
+
3
+ meta:
4
+ desc: Componente que gera um status circular com a cor do status.
5
+
6
+ props:
7
+ color:
8
+ desc: cor dos status.
9
+ default: light-blue-2
10
+ type: String
@@ -6,7 +6,7 @@
6
6
  <slot :item="tab" :name="`tab-after-${tab.value}`">
7
7
  <q-icon v-if="tab.icon" :name="tab.icon" size="sm" />
8
8
 
9
- <pv-tabs-generator-status v-if="tab.status" :color="tab.status" />
9
+ <qas-status v-if="tab.status" :color="tab.status" />
10
10
 
11
11
  <div class="q-ml-xs">
12
12
  {{ getFormattedLabel(tab) }}
@@ -19,7 +19,7 @@
19
19
  </template>
20
20
 
21
21
  <script>
22
- import PvTabsGeneratorStatus from './private/PvTabsGeneratorStatus.vue'
22
+ import QasStatus from '../status/QasStatus.vue'
23
23
 
24
24
  import { extend } from 'quasar'
25
25
 
@@ -27,7 +27,7 @@ export default {
27
27
  name: 'QasTabsGenerator',
28
28
 
29
29
  components: {
30
- PvTabsGeneratorStatus
30
+ QasStatus
31
31
  },
32
32
 
33
33
  props: {
@@ -4,16 +4,13 @@
4
4
  <div ref="truncate" :class="truncateTextClass">
5
5
  <slot>{{ text }}</slot>
6
6
  </div>
7
- <div v-if="isTruncated" class="cursor-pointer text-primary" @click.stop="toggleDialog">{{ seeMoreLabel }}</div>
7
+
8
+ <div v-if="isTruncated" class="cursor-pointer text-primary" @click.stop="toggleDialog">
9
+ {{ seeMoreLabel }}
10
+ </div>
8
11
  </div>
9
12
 
10
- <qas-dialog v-model="showDialog" v-bind="defaultDialogProps">
11
- <template #description>
12
- <slot>
13
- <div>{{ text }}</div>
14
- </slot>
15
- </template>
16
- </qas-dialog>
13
+ <qas-dialog v-model="showDialog" v-bind="defaultDialogProps" aria-label="Diálogo de texto completo" role="dialog" />
17
14
  </div>
18
15
  </template>
19
16
 
@@ -60,11 +57,17 @@ export default {
60
57
  return {
61
58
  maxPossibleWidth: '',
62
59
  showDialog: false,
63
- textWidth: ''
60
+ textWidth: '',
61
+ textContent: '',
62
+ observer: null
64
63
  }
65
64
  },
66
65
 
67
66
  computed: {
67
+ description () {
68
+ return this.text || this.textContent
69
+ },
70
+
68
71
  truncateTextClass () {
69
72
  return (this.isTruncated || this.$qas.screen.isSmall) && 'ellipsis q-pr-sm'
70
73
  },
@@ -84,7 +87,7 @@ export default {
84
87
  ...this.dialogProps,
85
88
  card: {
86
89
  title: this.dialogTitle,
87
- description: this.text
90
+ description: this.description
88
91
  }
89
92
  }
90
93
  }
@@ -98,18 +101,37 @@ export default {
98
101
 
99
102
  mounted () {
100
103
  this.truncateText()
104
+ this.observeContentChange()
105
+ },
106
+
107
+ unmounted () {
108
+ this.observer.disconnect()
101
109
  },
102
110
 
103
111
  methods: {
104
112
  truncateText () {
105
113
  this.$refs.parent.style.maxWidth = '100%'
106
114
  this.textWidth = this.$refs.truncate.clientWidth
115
+ this.textContent = this.$refs.truncate?.innerHTML
116
+
107
117
  this.maxPossibleWidth = this.maxWidth || this.$refs.truncate.parentElement.clientWidth * 0.90
108
118
  this.$refs.parent.style.maxWidth = `${this.maxPossibleWidth}px`
109
119
  },
110
120
 
111
121
  toggleDialog () {
112
122
  this.showDialog = !this.showDialog
123
+ },
124
+
125
+ observeContentChange () {
126
+ const element = this.$refs.truncate
127
+ const config = { childList: true, subtree: true, characterData: true }
128
+
129
+ const callback = mutationList => {
130
+ mutationList.forEach(() => this.truncateText())
131
+ }
132
+
133
+ this.observer = new MutationObserver(callback)
134
+ this.observer.observe(element, config)
113
135
  }
114
136
  }
115
137
  }
@@ -19,12 +19,12 @@
19
19
 
20
20
  <div class="col-12 col-sm-auto items-center justify-center q-col-gutter-md row" :class="actionsClass">
21
21
  <div>
22
- <qas-btn :class="iconClass" dense :disabled="!firstQueue.length" flat icon="sym_r_arrow_circle_down" rounded @click="setSelectedFromClick(true)" />
22
+ <qas-btn :class="iconClass" color="primary" :disabled="!firstQueue.length" icon="sym_r_arrow_circle_down" variant="tertiary" @click="setSelectedFromClick(true)" />
23
23
  <q-tooltip anchor="top middle" self="center middle">Selecionar</q-tooltip>
24
24
  </div>
25
25
  <div>
26
26
  <div>
27
- <qas-btn :class="iconClass" dense :disabled="!secondQueue.length" flat icon="sym_r_arrow_circle_up" rounded @click="setSelectedFromClick()" />
27
+ <qas-btn :class="iconClass" color="primary" :disabled="!secondQueue.length" icon="sym_r_arrow_circle_up" variant="tertiary" @click="setSelectedFromClick()" />
28
28
  <q-tooltip anchor="bottom middle" self="center middle">Remover</q-tooltip>
29
29
  </div>
30
30
  </div>
@@ -8,7 +8,8 @@
8
8
  </span>
9
9
 
10
10
  <span v-if="hasMenuButton(node)" class="q-ml-sm">
11
- <qas-btn dense flat icon="sym_r_more_vert" round @click.stop>
11
+ <!-- TODO: rever para o uso QasActionsMenu -->
12
+ <qas-btn color="grey-9" icon="sym_r_more_vert" variant="tertiary" @click.stop>
12
13
  <q-menu auto-close>
13
14
  <q-list separator>
14
15
  <q-item v-if="useAddButton" v-ripple class="qas-tree-generator__item" clickable @click="handleTreeFormDialog(node, true, tree)">
@@ -13,13 +13,15 @@
13
13
  </div>
14
14
  </div>
15
15
 
16
- <qas-btn v-if="showAddFile" ref="buttonUpload" color="white" dense flat icon="sym_r_add" round @click="$refs.hiddenInput.click()" />
16
+ <qas-btn v-if="showAddFile" ref="buttonUpload" color="white" icon="sym_r_add" :use-hover-on-white-color="false" variant="tertiary" @click="$refs.hiddenInput.click()" />
17
17
 
18
18
  <input ref="hiddenInput" :accept="attributes.accept" class="qas-uploader__input" :multiple="isMultiple" type="file">
19
19
 
20
- <qas-btn ref="buttonCleanFiles" class="hidden" color="white" @click="scope.removeUploadedFiles" />
21
- <qas-btn v-if="scope.canUpload" color="white" dense flat icon="sym_r_cloud_upload" round @click="scope.upload" />
22
- <qas-btn v-if="scope.isUploading" color="white" dense flat icon="sym_r_clear" round @click="scope.abort" />
20
+ <qas-btn ref="buttonCleanFiles" class="hidden" @click="scope.removeUploadedFiles" />
21
+
22
+ <qas-btn v-if="scope.canUpload" color="white" icon="sym_r_cloud_upload" :use-hover-on-white-color="false" variant="tertiary" @click="scope.upload" />
23
+
24
+ <qas-btn v-if="scope.isUploading" color="white" icon="sym_r_clear" :use-hover-on-white-color="false" variant="tertiary" @click="scope.abort" />
23
25
  </div>
24
26
  </slot>
25
27
  </template>
@@ -37,7 +39,7 @@
37
39
  </div>
38
40
  <div class="items-center q-ml-sm row">
39
41
  <q-icon v-if="file.isFailed" color="negative" name="sym_r_warning" size="20px" />
40
- <qas-btn v-if="!scope.readonly" dense flat icon="sym_r_delete" round @click="removeItem(index, scope, file)" />
42
+ <qas-btn v-if="!scope.readonly" color="grey-9" icon="sym_r_delete" variant="tertiary" @click="removeItem(index, scope, file)" />
41
43
  </div>
42
44
  </div>
43
45
  </div>
@@ -0,0 +1,101 @@
1
+ .qas-btn {
2
+ $root: &;
3
+
4
+ min-height: 48px !important;
5
+ padding: var(--qas-spacing-xs) var(--qas-spacing-lg) !important;
6
+ text-transform: initial !important;
7
+ transition: color var(--qas-generic-transition), background-color var(--qas-generic-transition);
8
+
9
+ .q-icon {
10
+ font-size: 24px !important;
11
+ }
12
+
13
+ &:disabled {
14
+ opacity: 1 !important;
15
+ }
16
+
17
+ &:not(&--primary):not(:disabled):not(&--no-hover-on-white.qas-btn--tertiary-white):hover {
18
+ color: var(--q-primary-contrast) !important;
19
+ }
20
+
21
+ &--primary {
22
+ background-color: var(--q-primary) !important;
23
+ color: white !important;
24
+
25
+ &:disabled {
26
+ background-color: $grey-4 !important;
27
+ color: $grey-8 !important;
28
+ }
29
+
30
+ &:not(:disabled):hover {
31
+ background-color: var(--q-primary-contrast) !important;
32
+ }
33
+ }
34
+
35
+ &--secondary {
36
+ border: 1px solid currentColor !important;
37
+ color: var(--q-primary) !important;
38
+ position: relative;
39
+
40
+ &:disabled {
41
+ color: $grey-8 !important;
42
+ }
43
+ }
44
+
45
+ &--primary,
46
+ &--secondary {
47
+ &-icon-only {
48
+ height: 48px !important;
49
+ min-width: auto !important;
50
+ padding: 0 !important;
51
+ width: 48px !important;
52
+ }
53
+ }
54
+
55
+ &--tertiary {
56
+ min-height: 24px !important;
57
+ padding: 0 !important;
58
+
59
+ &:disabled {
60
+ color: $grey-8 !important;
61
+ }
62
+
63
+ &-grey-9 {
64
+ color: $grey-9 !important;
65
+ }
66
+
67
+ &-primary {
68
+ color: var(--q-primary) !important;
69
+ }
70
+
71
+ &-white {
72
+ color: white !important;
73
+ }
74
+
75
+ &-icon-only {
76
+ height: 24px !important;
77
+ min-width: auto !important;
78
+ padding: 0 !important;
79
+ width: 24px !important;
80
+ }
81
+ }
82
+
83
+ &.q-btn {
84
+ &::before {
85
+ display: none;
86
+ }
87
+ }
88
+
89
+ .q-icon.on-left {
90
+ margin-right: var(--qas-spacing-xs);
91
+ }
92
+
93
+ .q-icon.on-right {
94
+ margin-left: var(--qas-spacing-xs);
95
+ }
96
+
97
+ .q-ripple,
98
+ .q-focus-helper {
99
+ display: none;
100
+ }
101
+ }
@@ -1,4 +1,5 @@
1
1
  @import './base';
2
+ @import './button';
2
3
  @import './field';
3
4
  @import './item';
4
5
  @import './radio';
@@ -1,2 +1,3 @@
1
+ @import './set-button';
1
2
  @import './set-brand';
2
3
  @import './set-typography';
@@ -0,0 +1,16 @@
1
+ @mixin set-button($variant, $icon-only: false, $no-hover-on-white: false, $color: false) {
2
+ @extend .qas-btn;
3
+ @extend .qas-btn--#{$variant};
4
+
5
+ @if $variant == tertiary and $color {
6
+ @extend .qas-btn--tertiary-#{$color};
7
+ }
8
+
9
+ @if $icon-only {
10
+ @extend .qas-btn--#{$variant}-icon-only;
11
+ }
12
+
13
+ @if $no-hover-on-white {
14
+ @extend .qas-btn--no-hover-on-white;
15
+ }
16
+ }
@@ -2,6 +2,27 @@
2
2
  margin-top: 80px;
3
3
  max-width: 560px;
4
4
 
5
+ &.qas-notification {
6
+ &--error::before,
7
+ &--success::before {
8
+ border-radius: var(--qas-generic-border-radius) 0 0 var(--qas-generic-border-radius);
9
+ bottom: 0;
10
+ content: '';
11
+ left: calc(var(--qas-spacing-md) * -1);
12
+ position: relative;
13
+ top: 0;
14
+ width: 4px;
15
+ }
16
+
17
+ &--error::before {
18
+ background-color: var(--q-negative);
19
+ }
20
+
21
+ &--success::before {
22
+ background-color: var(--q-positive);
23
+ }
24
+ }
25
+
5
26
  &__content {
6
27
  .q-icon {
7
28
  margin-right: var(--qas-spacing-sm);
@@ -1,3 +1,4 @@
1
1
  $button-font-size: 1rem;
2
- $button-line-height: 1.5rem;
2
+ $button-line-height: 16px;
3
3
  $button-font-weight: 600;
4
+ $button-border-radius: 32px;
@@ -1,11 +1,8 @@
1
1
  @use 'sass:map';
2
2
 
3
- /*
4
- * O único valor que de fato é alterado diferente do padrão do Quasar é o tamanho "lg"
5
- */
6
3
  $space-base : 16px;
7
- $space-x-base : $space-base;
8
- $space-y-base : $space-base;
4
+ $space-x-base : $space-base; // 16px
5
+ $space-y-base : $space-base; // 16px
9
6
 
10
7
  $space-none : (
11
8
  x: 0,
@@ -13,38 +10,50 @@ $space-none : (
13
10
  );
14
11
 
15
12
  $space-xs: (
16
- x: ($space-x-base * 0.25),
17
- y: ($space-y-base * 0.25)
13
+ x: ($space-x-base * 0.25), // 4px
14
+ y: ($space-y-base * 0.25) // 4px
18
15
  );
19
16
 
20
17
  $space-sm: (
21
- x: ($space-x-base * 0.5),
22
- y: ($space-y-base * 0.5)
18
+ x: ($space-x-base * 0.5), // 8px
19
+ y: ($space-y-base * 0.5) // 8px
23
20
  );
24
21
 
25
22
  $space-md: (
26
- x: $space-x-base,
27
- y: $space-y-base
23
+ x: $space-x-base, // 16px
24
+ y: $space-y-base // 16px
28
25
  );
29
26
 
30
27
  $space-lg: (
31
- x: ($space-x-base * 1.5),
32
- y: ($space-y-base * 1.5)
28
+ x: ($space-x-base * 1.5), // 24px
29
+ y: ($space-y-base * 1.5) // 24px
33
30
  );
34
31
 
35
32
  // O tamanho original seria "16px * 3" ou "48px", alterado para ter "32px"
36
33
  $space-xl: (
37
- x: ($space-x-base * 2),
38
- y: ($space-y-base * 2)
34
+ x: ($space-x-base * 2), // 32px
35
+ y: ($space-y-base * 2) // 32px
36
+ );
37
+
38
+ $space-2xl: (
39
+ x: ($space-x-base * 2.5), // 40px
40
+ y: ($space-y-base * 2.5) // 40px
41
+ );
42
+
43
+ $space-3xl: (
44
+ x: ($space-x-base * 3), // 48px
45
+ y: ($space-y-base * 3) // 48px
39
46
  );
40
47
 
41
48
  $spaces: (
42
- none: $space-none,
43
- xs: $space-xs,
44
- sm: $space-sm,
45
- md: $space-md,
46
- lg: $space-lg,
47
- xl: $space-xl
49
+ none: $space-none, // 0px
50
+ xs: $space-xs, // 4px
51
+ sm: $space-sm, // 8px
52
+ md: $space-md, // 16px
53
+ lg: $space-lg, // 24px
54
+ xl: $space-xl, // 32px
55
+ 2xl: $space-2xl, // 40px
56
+ 3xl: $space-3xl // 48px
48
57
  );
49
58
 
50
59
  $flex-gutter-xs : map.get($space-xs, 'x');
@@ -52,14 +61,18 @@ $flex-gutter-sm : map.get($space-sm, 'x');
52
61
  $flex-gutter-md : map.get($space-md, 'x');
53
62
  $flex-gutter-lg : map.get($space-lg, 'x');
54
63
  $flex-gutter-xl : map.get($space-xl, 'x');
64
+ $flex-gutter-2xl : map.get($space-2xl, 'x');
65
+ $flex-gutter-3xl : map.get($space-3xl, 'x');
55
66
 
56
67
  $flex-gutter: (
57
- none: 0,
58
- xs: $flex-gutter-xs,
59
- sm: $flex-gutter-sm,
60
- md: $flex-gutter-md,
61
- lg: $flex-gutter-lg,
62
- xl: $flex-gutter-xl
68
+ none: 0, // 0px
69
+ xs: $flex-gutter-xs, // 4px
70
+ sm: $flex-gutter-sm, // 8px
71
+ md: $flex-gutter-md, // 16px
72
+ lg: $flex-gutter-lg, // 24px
73
+ xl: $flex-gutter-xl, // 32px
74
+ 2xl: $flex-gutter-2xl, // 48px
75
+ 3xl: $flex-gutter-3xl // 40px
63
76
  );
64
77
 
65
78
  :root {
@@ -10,7 +10,7 @@
10
10
  // headings
11
11
  $h1: (
12
12
  size: 3rem,
13
- line-height: 1.5rem,
13
+ line-height: 3rem,
14
14
  letter-spacing: 0,
15
15
  weight: 800,
16
16
  margin: 0
@@ -18,7 +18,7 @@ $h1: (
18
18
 
19
19
  $h2: (
20
20
  size: 2rem,
21
- line-height: 1.5rem,
21
+ line-height: 2rem,
22
22
  letter-spacing: 0,
23
23
  weight: 700,
24
24
  margin: 0
@@ -34,7 +34,7 @@ $h3: (
34
34
 
35
35
  $h4: (
36
36
  size: 1.125rem,
37
- line-height: 1.5rem,
37
+ line-height: 1.125rem,
38
38
  letter-spacing: 0,
39
39
  weight: 600,
40
40
  margin: 0
@@ -42,7 +42,7 @@ $h4: (
42
42
 
43
43
  $h5: (
44
44
  size: 1rem,
45
- line-height: 1.5rem,
45
+ line-height: 1rem,
46
46
  letter-spacing: 0,
47
47
  weight: 600,
48
48
  margin: 0
@@ -50,7 +50,7 @@ $h5: (
50
50
 
51
51
  $h6: (
52
52
  size: 0.875rem,
53
- line-height: 1.5rem,
53
+ line-height: 0.875rem,
54
54
  letter-spacing: 0,
55
55
  weight: 600,
56
56
  margin: 0
@@ -59,14 +59,14 @@ $h6: (
59
59
  // subtitles
60
60
  $subtitle1: (
61
61
  size: 1rem,
62
- line-height: 1.5rem,
62
+ line-height: 1rem,
63
63
  letter-spacing: 0,
64
64
  weight: 600
65
65
  );
66
66
 
67
67
  $subtitle2: (
68
68
  size: 0.875rem,
69
- line-height: 1.5rem,
69
+ line-height: 0.875rem,
70
70
  letter-spacing: 0,
71
71
  weight: 600
72
72
  );
@@ -74,14 +74,14 @@ $subtitle2: (
74
74
  // body
75
75
  $body1: (
76
76
  size: 1rem,
77
- line-height: 1.5rem,
77
+ line-height: 1rem,
78
78
  letter-spacing: 0,
79
79
  weight: 400
80
80
  );
81
81
 
82
82
  $body2: (
83
83
  size: 0.875rem,
84
- line-height: 1.5rem,
84
+ line-height: 0.875rem,
85
85
  letter-spacing: 0,
86
86
  weight: 400
87
87
  );
@@ -89,7 +89,7 @@ $body2: (
89
89
  // overline
90
90
  $overline: (
91
91
  size: 0.875rem,
92
- line-height: 1.5rem,
92
+ line-height: 0.875rem,
93
93
  letter-spacing: 0.25rem,
94
94
  weight: 600
95
95
  );
@@ -97,7 +97,7 @@ $overline: (
97
97
  // caption
98
98
  $caption: (
99
99
  size: 0.75rem,
100
- line-height: 1.5rem,
100
+ line-height: 0.75rem,
101
101
  letter-spacing: 0,
102
102
  weight: 400
103
103
  );
package/src/index.scss CHANGED
@@ -11,7 +11,7 @@ $accent: var(--q-accent);
11
11
  :root {
12
12
  --qas-background-color: #fbfbfb;
13
13
  --qas-border-grey: #{$grey-4};
14
- --qas-generic-border-radius: 8px;
14
+ --qas-generic-border-radius: 4px;
15
15
  --qas-generic-transition: 300ms;
16
16
  }
17
17
 
@@ -96,7 +96,7 @@ export default {
96
96
 
97
97
  const redirect = status >= 500
98
98
  ? 'ServerError'
99
- : ({ 401: 'Unauthorized', 403: 'Forbidden', 404: 'NotFound' })[status]
99
+ : ({ 403: 'Forbidden', 404: 'NotFound' })[status]
100
100
 
101
101
  // caso exista um desses status será redirecionado sem aparecer o "notify"
102
102
  if (redirect) {