@usssa/component-library 1.0.0-alpha.211 → 1.0.0-alpha.213
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
package/package.json
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="46" height="32" viewBox="0 0 46 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M11.8001 0H45.4001L34.2001 32H0.600098L11.8001 0Z" fill="#CB2A3D"/>
|
|
3
|
+
<path d="M15.1951 16.8368L16.1599 10.3384H12.1279L10.3999 22.1538H15.2671L23.9647 10.3384H19.9327L15.1951 16.8368Z" fill="white"/>
|
|
4
|
+
<path d="M27.432 15.0645L28.1088 13.2922H35.7552L36.9072 10.3384H27.2304C26.6256 10.3384 26.064 10.5255 25.5456 10.8996C25.0272 11.2639 24.6528 11.7365 24.4224 12.3175L23.2272 15.4338C23.1504 15.6208 23.112 15.8178 23.112 16.0245C23.112 16.4184 23.2512 16.7531 23.5296 17.0288C23.808 17.2947 24.1152 17.4276 24.4512 17.4276H30.6864L29.9952 19.1999H21.7584L20.6064 22.1538H30.6C31.2048 22.1538 31.7664 21.9716 32.2848 21.6073C32.8032 21.243 33.1776 20.7704 33.408 20.1895L34.6032 17.0731C34.6704 16.8959 34.704 16.7138 34.704 16.5267C34.704 16.1328 34.5648 15.7931 34.2864 15.5076C34.0176 15.2122 33.7104 15.0645 33.3648 15.0645H27.432Z" fill="white"/>
|
|
5
|
+
</svg>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed, ref } from 'vue'
|
|
3
3
|
|
|
4
|
+
import defaultImage from '../../assets/no-result.svg'
|
|
4
5
|
import { useScreenType } from '../../composables/useScreenType'
|
|
5
6
|
import { trimmedLabel } from '../../utils/data'
|
|
6
7
|
import UBtnStd from './UBtnStd.vue'
|
|
7
8
|
import UChip from './UChip.vue'
|
|
8
|
-
import defaultImage from '../../assets/no-result.svg'
|
|
9
9
|
import UTooltip from './UTooltip.vue'
|
|
10
10
|
|
|
11
11
|
const emit = defineEmits(['onRegister', 'onView'])
|
|
@@ -102,8 +102,9 @@ const viewClick = () => {
|
|
|
102
102
|
<q-card
|
|
103
103
|
v-if="!isMobile"
|
|
104
104
|
class="flex event-card no-wrap"
|
|
105
|
-
:aria-label="props.eventName
|
|
105
|
+
:aria-label="`${props.eventName} ${props.eventDate}`"
|
|
106
106
|
:data-testid="dataTestId"
|
|
107
|
+
tabindex="0"
|
|
107
108
|
>
|
|
108
109
|
<!-- Column 1: Rotated Text -->
|
|
109
110
|
<div class="flex items-center justify-center q-py-sm q-px-xs">
|
|
@@ -145,11 +146,18 @@ const viewClick = () => {
|
|
|
145
146
|
<UTooltip
|
|
146
147
|
v-if="eventDate.isTrimmed"
|
|
147
148
|
:description="props.eventDate"
|
|
148
|
-
/>
|
|
149
|
+
/>
|
|
150
|
+
</span>
|
|
151
|
+
|
|
|
152
|
+
<span v-if="props.eventPrice" class="q-px-xxs">
|
|
149
153
|
{{ eventPrice.text }}
|
|
150
154
|
<UTooltip
|
|
151
155
|
v-if="eventPrice.isTrimmed"
|
|
152
|
-
:description="props.eventPrice"
|
|
156
|
+
:description="props.eventPrice"
|
|
157
|
+
/>
|
|
158
|
+
</span>
|
|
159
|
+
|
|
|
160
|
+
<UChip
|
|
153
161
|
v-model="eventChip"
|
|
154
162
|
iconClass="fa-kit-duotone fa-users"
|
|
155
163
|
:chipLabel="eventPlayersMax.text"
|
|
@@ -175,11 +183,18 @@ const viewClick = () => {
|
|
|
175
183
|
<UTooltip
|
|
176
184
|
v-if="eventAgeGroup.isTrimmed"
|
|
177
185
|
:description="props.eventAgeGroup"
|
|
178
|
-
/>
|
|
179
|
-
|
|
186
|
+
/>
|
|
187
|
+
</span>
|
|
188
|
+
|
|
|
189
|
+
<span v-if="props.eventLocation" class="q-px-xxs">
|
|
190
|
+
{{ eventLocation.text }}
|
|
180
191
|
<UTooltip
|
|
181
192
|
v-if="eventLocation.isTrimmed"
|
|
182
|
-
:description="props.eventLocation"
|
|
193
|
+
:description="props.eventLocation"
|
|
194
|
+
/>
|
|
195
|
+
</span>
|
|
196
|
+
|
|
|
197
|
+
<span v-if="props.eventHost" class="q-ml-xxs">
|
|
183
198
|
{{ eventHost.text }}
|
|
184
199
|
<UTooltip
|
|
185
200
|
v-if="eventHost.isTrimmed"
|
|
@@ -273,15 +288,15 @@ const viewClick = () => {
|
|
|
273
288
|
<div class="event-item-mobile text-caption-md text-description q-mt-xs">
|
|
274
289
|
<span v-if="props.eventDate" class="q-px-xxs">
|
|
275
290
|
{{ eventDate.text }}
|
|
276
|
-
<UTooltip
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
291
|
+
<UTooltip v-if="eventDate.isTrimmed" :description="props.eventDate" />
|
|
292
|
+
</span>
|
|
293
|
+
|
|
|
294
|
+
<span v-if="props.eventPrice" class="q-px-xxs">
|
|
280
295
|
{{ eventPrice.text }}
|
|
281
|
-
<UTooltip
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
296
|
+
<UTooltip v-if="eventPrice.isTrimmed" :description="props.eventPrice" />
|
|
297
|
+
</span>
|
|
298
|
+
|
|
|
299
|
+
<UChip
|
|
285
300
|
v-model="eventChip"
|
|
286
301
|
iconClass="fa-kit-duotone fa-users"
|
|
287
302
|
:chipLabel="eventPlayersMax.text"
|
|
@@ -297,12 +312,18 @@ const viewClick = () => {
|
|
|
297
312
|
<UTooltip
|
|
298
313
|
v-if="eventAgeGroup.isTrimmed"
|
|
299
314
|
:description="props.eventAgeGroup"
|
|
300
|
-
/>
|
|
315
|
+
/>
|
|
316
|
+
</span>
|
|
317
|
+
|
|
|
318
|
+
<span v-if="props.eventLocation" class="q-px-xxs">
|
|
301
319
|
{{ eventLocation.text }}
|
|
302
320
|
<UTooltip
|
|
303
321
|
v-if="eventLocation.isTrimmed"
|
|
304
322
|
:description="props.eventLocation"
|
|
305
|
-
/>
|
|
323
|
+
/>
|
|
324
|
+
</span>
|
|
325
|
+
|
|
|
326
|
+
<span v-if="props.eventHost" class="q-ml-xxs">
|
|
306
327
|
{{ eventHost.text }}
|
|
307
328
|
<UTooltip v-if="eventHost.isTrimmed" :description="props.eventHost" />
|
|
308
329
|
</span>
|
|
@@ -397,6 +418,7 @@ const viewClick = () => {
|
|
|
397
418
|
font-size: 0.875rem
|
|
398
419
|
line-height: 1.0625rem
|
|
399
420
|
letter-spacing: 0
|
|
421
|
+
font-weight: 700
|
|
400
422
|
|
|
401
423
|
.event-action, .event-action-mobile
|
|
402
424
|
.action-buttons
|
|
@@ -6,6 +6,14 @@ const filterOptions = defineModel('filterOptions', {
|
|
|
6
6
|
type: Array,
|
|
7
7
|
})
|
|
8
8
|
const props = defineProps({
|
|
9
|
+
collapsedAriaLabel: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: '',
|
|
12
|
+
},
|
|
13
|
+
expandAriaLabel: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: '',
|
|
16
|
+
},
|
|
9
17
|
dataTestId: {
|
|
10
18
|
type: String,
|
|
11
19
|
default: 'u-expansion-filter',
|
|
@@ -42,7 +50,9 @@ const props = defineProps({
|
|
|
42
50
|
<UExpansionStd
|
|
43
51
|
v-model="filter.isExpanded"
|
|
44
52
|
class="expansion-filter-item-wrapper"
|
|
53
|
+
:collapsed-aria-label="filter.collapsedAriaLabel"
|
|
45
54
|
:disabled="filter.disabled"
|
|
55
|
+
:expand-aria-label="filter.expandAriaLabel"
|
|
46
56
|
expansion-icon="fa-kit fa-chevron-right rotate-0"
|
|
47
57
|
:id="`filter-expansion-item-${filter.type}`"
|
|
48
58
|
:label="filter.label"
|
|
@@ -3,6 +3,7 @@ import { ref } from "vue";
|
|
|
3
3
|
import UAvatar from "./UAvatar.vue";
|
|
4
4
|
import UBtnStd from "./UBtnStd.vue";
|
|
5
5
|
import { useScreenType } from "../../composables/useScreenType";
|
|
6
|
+
import VsImg from "../../assets/VS.svg"
|
|
6
7
|
|
|
7
8
|
const body = defineModel("body", {
|
|
8
9
|
type: Object,
|
|
@@ -109,6 +110,7 @@ function isEmpty(obj) {
|
|
|
109
110
|
|
|
110
111
|
<template>
|
|
111
112
|
<q-card
|
|
113
|
+
v-bind="$attrs"
|
|
112
114
|
:class="[
|
|
113
115
|
'u-game-object-std ',
|
|
114
116
|
$screen.isMobile || direction === 'vertical' ? 'vertical-view' : 'full-width',
|
|
@@ -241,8 +243,9 @@ function isEmpty(obj) {
|
|
|
241
243
|
class="fa-kit-duotone fa-share cursor-pointer icon-secondary-opacity"
|
|
242
244
|
:aria-label="body.team1.link.ariaLabel"
|
|
243
245
|
:color="body.team1.link.color"
|
|
246
|
+
role="button"
|
|
244
247
|
size="1rem"
|
|
245
|
-
tabindex="
|
|
248
|
+
tabindex="0"
|
|
246
249
|
@click="body.team1.link.onClick"
|
|
247
250
|
/>
|
|
248
251
|
</div>
|
|
@@ -259,7 +262,7 @@ function isEmpty(obj) {
|
|
|
259
262
|
<!-- Team 1 -->
|
|
260
263
|
|
|
261
264
|
<div class="logo-section">
|
|
262
|
-
<q-img class="vs-logo" alt="vs logo" :src="
|
|
265
|
+
<q-img class="vs-logo" alt="vs logo" :src="VsImg" />
|
|
263
266
|
</div>
|
|
264
267
|
|
|
265
268
|
<!-- Team 2 -->
|
|
@@ -311,8 +314,9 @@ function isEmpty(obj) {
|
|
|
311
314
|
class="fa-kit-duotone fa-share cursor-pointer icon-secondary-opacity"
|
|
312
315
|
:aria-label="body.team2.link.ariaLabel"
|
|
313
316
|
:color="body.team2.link.color"
|
|
317
|
+
role="button"
|
|
314
318
|
size="1rem"
|
|
315
|
-
tabindex="
|
|
319
|
+
tabindex="0"
|
|
316
320
|
@click="body.team2.link.onClick"
|
|
317
321
|
/>
|
|
318
322
|
</div>
|
|
@@ -354,7 +358,6 @@ function isEmpty(obj) {
|
|
|
354
358
|
<!-- Body -->
|
|
355
359
|
</q-card>
|
|
356
360
|
</template>
|
|
357
|
-
|
|
358
361
|
<style lang="sass">
|
|
359
362
|
.u-game-object-std
|
|
360
363
|
border-radius: $xs
|
|
@@ -424,7 +427,7 @@ function isEmpty(obj) {
|
|
|
424
427
|
height: $md
|
|
425
428
|
|
|
426
429
|
.u-game-object-std.vertical-view
|
|
427
|
-
max-width:
|
|
430
|
+
max-width: 100%
|
|
428
431
|
|
|
429
432
|
.u-game-object-std-header
|
|
430
433
|
gap: $xs
|