@usssa/component-library 1.0.0-alpha.129 → 1.0.0-alpha.130

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.129
1
+ # Component Library v1.0.0-alpha.130
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.129",
3
+ "version": "1.0.0-alpha.130",
4
4
  "description": "A Quasar component library project",
5
5
  "productName": "Quasar component library App",
6
6
  "author": "Troy Moreland <troy.moreland@usssa.com>",
@@ -35,6 +35,10 @@ const props = defineProps({
35
35
  type: Array,
36
36
  default: () => [4, 4],
37
37
  },
38
+ outline: {
39
+ type: Boolean,
40
+ default: true,
41
+ },
38
42
  selectedCountry: {
39
43
  type: Object,
40
44
  },
@@ -60,9 +64,6 @@ const props = defineProps({
60
64
  const handleClick = () => {
61
65
  return emit('onClick')
62
66
  }
63
- const selectCountry = (country) => {
64
- emit('update-country', country)
65
- }
66
67
  const toLowerCase = (str) => str.toLowerCase()
67
68
  </script>
68
69
 
@@ -81,13 +82,14 @@ const toLowerCase = (str) => str.toLowerCase()
81
82
  >
82
83
  <template #label>
83
84
  <q-icon v-if="iconClass" :class="iconClass" size="sm" />
84
- <div class="text-body-md q-ml-xs">{{ label }}</div>
85
+ <div class="text-body-md q-ml-xs label">{{ label }}</div>
85
86
  </template>
86
87
  <slot name="menu" />
87
88
  </q-btn-dropdown>
88
89
 
89
90
  <!-- 2. Menu button Icon state -->
90
91
  <UBtnIcon
92
+ v-bind="$attrs"
91
93
  v-if="states === 'Icon'"
92
94
  class="u-mb-icon"
93
95
  :anchor="anchor"
@@ -109,13 +111,14 @@ const toLowerCase = (str) => str.toLowerCase()
109
111
 
110
112
  <!-- 3. Menu button Button state -->
111
113
  <UBtnStd
114
+ v-bind="$attrs"
112
115
  v-if="states === 'Button'"
113
116
  class="u-mb-btn"
114
117
  :color="color"
115
118
  :dataTestId="dataTestId"
116
119
  :label="label"
117
120
  :left-icon="iconClass"
118
- outline
121
+ :outline="outline"
119
122
  :size="size"
120
123
  >
121
124
  <template v-slot:menu>
@@ -127,8 +130,8 @@ const toLowerCase = (str) => str.toLowerCase()
127
130
  <q-btn-dropdown
128
131
  v-if="states === 'Avatar'"
129
132
  :class="`u-mb-avatar size-${size}`"
130
- :color="color"
131
133
  content-class="u-options-menu"
134
+ :color="color"
132
135
  :dataTestId="dataTestId"
133
136
  :menu-offset="menuOffset"
134
137
  no-caps
@@ -156,7 +159,7 @@ const toLowerCase = (str) => str.toLowerCase()
156
159
  />
157
160
  </q-item-section>
158
161
  <q-item-section v-if="displayName">
159
- <q-item-label class="text-body-md">
162
+ <q-item-label class="text-body-md text-dark">
160
163
  {{ displayName }}
161
164
  </q-item-label>
162
165
  </q-item-section>
@@ -193,13 +196,15 @@ const toLowerCase = (str) => str.toLowerCase()
193
196
  .u-mb-basic
194
197
  .q-icon
195
198
  font-size: 1.875rem
199
+ .label
200
+ text-wrap: wrap
201
+ overflow-wrap: anywhere
196
202
 
197
203
  .u-mb-avatar
198
204
  padding: 0rem $xs
199
205
  align-items: center
200
206
  &:hover::before
201
207
  background-color: $neutral-3
202
- gap: $xs
203
208
  .account-drop-down
204
209
  padding: 0
205
210
  min-height: 0
@@ -225,13 +230,13 @@ const toLowerCase = (str) => str.toLowerCase()
225
230
  background-color: $neutral-3
226
231
  &.size-sm
227
232
  min-height: $md
228
- padding: 0 $sm !important
233
+ padding: $xs $sm !important
229
234
  &.size-md
230
235
  min-height: $lg
231
- padding: 0 $ba !important
236
+ padding: $xs $ba !important
232
237
  &.size-lg
233
238
  min-height: $xl
234
- padding: 0 $ba !important
239
+ padding: $xs $ba !important
235
240
 
236
241
  .u-mb-avatar
237
242
  &.size-sm