@usssa/component-library 1.0.0-alpha.136 → 1.0.0-alpha.137

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Component Library v1.0.0-alpha.136
1
+ # Component Library v1.0.0-alpha.137
2
2
 
3
3
  **This library provides custom UI components for USSSA applications.**
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usssa/component-library",
3
- "version": "1.0.0-alpha.136",
3
+ "version": "1.0.0-alpha.137",
4
4
  "description": "A Quasar component library project",
5
5
  "productName": "Quasar component library App",
6
6
  "author": "Troy Moreland <troy.moreland@usssa.com>",
@@ -1,4 +1,7 @@
1
1
  <script setup>
2
+ import { computed } from 'vue'
3
+ import { useScreenType } from '../../composables/useScreenType'
4
+
2
5
  const selectedTab = defineModel({
3
6
  required: true,
4
7
  type: [Boolean, String, Number],
@@ -15,12 +18,18 @@ const props = defineProps({
15
18
  required: true,
16
19
  },
17
20
  })
21
+
22
+ const $screen = useScreenType()
23
+
24
+ const isMobile = computed(() => $screen.value.isMobile)
18
25
  </script>
19
26
 
20
27
  <template>
21
28
  <q-tabs
22
29
  v-model="selectedTab"
23
- class="u-tabs-std text-caption-md"
30
+ :class="`u-tabs-std text-caption-md${
31
+ isMobile ? ' mobile-tabs remove-actions' : ''
32
+ }`"
24
33
  active-color="primary"
25
34
  :align="align"
26
35
  :dataTestId="dataTestId"
@@ -88,6 +97,8 @@ const props = defineProps({
88
97
  .u-tabs-std
89
98
  color: $dark
90
99
  font-weight: 500
100
+ .q-tabs__content
101
+ overflow: auto
91
102
 
92
103
  & .q-tab__content
93
104
  & .q-icon
@@ -106,11 +117,22 @@ const props = defineProps({
106
117
 
107
118
  .q-tab--inactive, .q-tab--active
108
119
  min-width: 5.5rem
120
+ height: $lg
109
121
 
110
122
  .q-tab--inactive
111
123
  border-bottom: 2px solid $neutral-3
112
124
  opacity: 1
113
125
 
114
126
  .q-tab--inactive:hover
115
- color: $primary
127
+ color: inherit
128
+
129
+ .mobile-tabs
130
+ .q-tab--inactive, .q-tab--active
131
+ min-width: auto !important
132
+
133
+ .remove-actions
134
+ .q-tabs__arrow
135
+ display: none
136
+ padding-left: 0px !important
137
+ padding-right: 0px !important
116
138
  </style>