@usssa/component-library 1.0.0-alpha.212 → 1.0.0-alpha.214

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.212
1
+ # Component Library v1.0.0-alpha.214
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.212",
3
+ "version": "1.0.0-alpha.214",
4
4
  "description": "A Quasar component library project",
5
5
  "productName": "Quasar component library App",
6
6
  "author": "Engineering Team <engineering@usssa.com>",
@@ -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>
@@ -99,6 +99,7 @@ const viewClick = () => {
99
99
 
100
100
  <template>
101
101
  <!-- Event Card for Desktop and Tab devices -->
102
+
102
103
  <q-card
103
104
  v-if="!isMobile"
104
105
  class="flex event-card no-wrap"
@@ -107,19 +108,17 @@ const viewClick = () => {
107
108
  tabindex="0"
108
109
  >
109
110
  <!-- Column 1: Rotated Text -->
110
- <div class="flex items-center justify-center q-py-sm q-px-xs">
111
- <div
112
- class="rotated-text text-dark text-italic text-center cornero-font-family ellipsis"
113
- data-testid="eventCategory"
114
- ref="textECategory"
115
- @mouseenter="checkOverflow"
116
- >
117
- {{ props.eventCategory }}
118
- <UTooltip
119
- v-if="isCategoryOverflowing"
120
- :description="props.eventCategory"
121
- />
122
- </div>
111
+ <div
112
+ class="flex items-center justify-center q-py-sm q-px-xs rotated-text text-dark text-italic text-display-xxxs text-center cornero-font-family ellipsis"
113
+ data-testid="eventCategory"
114
+ ref="textECategory"
115
+ @mouseenter="checkOverflow"
116
+ >
117
+ {{ props.eventCategory }}
118
+ <UTooltip
119
+ v-if="isCategoryOverflowing"
120
+ :description="props.eventCategory"
121
+ />
123
122
  </div>
124
123
  <!-- Right Column: Nested 3-column layout -->
125
124
  <div
@@ -139,7 +138,7 @@ const viewClick = () => {
139
138
  </div>
140
139
 
141
140
  <!-- Column 3: Grid Text -->
142
- <div class="flex column justify-center q-mr-auto">
141
+ <div class="flex column justify-center event-text-col-wrapper">
143
142
  <div class="event-item text-caption-lg text-description">
144
143
  <span v-if="props.eventDate" class="q-mr-xxs">
145
144
  {{ eventDate.text }}
@@ -159,7 +158,8 @@ const viewClick = () => {
159
158
  |
160
159
  <UChip
161
160
  v-model="eventChip"
162
- iconClass="fa-kit-duotone fa-users"
161
+ class="event-team-users-count"
162
+ iconClass="fa-kit-duotone fa-users icon-secondary-opacity"
163
163
  :chipLabel="eventPlayersMax.text"
164
164
  dense
165
165
  :removable="false"
@@ -169,7 +169,7 @@ const viewClick = () => {
169
169
 
170
170
  <div
171
171
  v-if="props.eventName"
172
- class="text-dark text-heading-lg event-name text-no-wrap ellipsis q-pt-xs q-pb-ba"
172
+ class="text-dark text-heading-lg event-name ellipsis q-pt-xs q-pb-ba"
173
173
  data-testid="eventName"
174
174
  ref="textEName"
175
175
  @mouseenter="checkOverflow"
@@ -205,7 +205,9 @@ const viewClick = () => {
205
205
  </div>
206
206
 
207
207
  <!-- Column 4: Buttons -->
208
- <div class="flex column justify-center items-end event-action no-wrap">
208
+ <div
209
+ class="flex column justify-center items-end event-action no-wrap shrink"
210
+ >
209
211
  <u-btn-std
210
212
  class="border-radius-sm full-width text-no-wrap ellipsis"
211
213
  :aria-label="props.eventRegisterText || 'Register Event'"
@@ -249,7 +251,7 @@ const viewClick = () => {
249
251
  <!-- Left Ribbon -->
250
252
  <div class="event-item-mobile">
251
253
  <div
252
- class="text-dark text-italic cornero-font-family text-no-wrap ellipsis event-category-mobile"
254
+ class="text-dark text-display-xxxs text-italic cornero-font-family text-no-wrap ellipsis"
253
255
  data-testid="eventCategory"
254
256
  ref="textECategory"
255
257
  @mouseenter="checkOverflow"
@@ -298,7 +300,8 @@ const viewClick = () => {
298
300
  |
299
301
  <UChip
300
302
  v-model="eventChip"
301
- iconClass="fa-kit-duotone fa-users"
303
+ class="event-team-users-count"
304
+ iconClass="fa-kit-duotone fa-users icon-secondary-opacity"
302
305
  :chipLabel="eventPlayersMax.text"
303
306
  dense
304
307
  :removable="false"
@@ -364,48 +367,28 @@ const viewClick = () => {
364
367
  border-radius: $xs
365
368
  box-shadow: none !important
366
369
  overflow: hidden
370
+ justify-content: space-between
371
+ box-sizing: border-box
367
372
 
368
373
  .rotated-text
369
- height: 10rem
370
374
  writing-mode: vertical-rl
371
375
  transform: rotate(180deg)
372
- font-weight: 700
373
- font-size: 0.6875rem
374
- line-height: 1.0625rem
375
- letter-spacing: 0.0625rem
376
+ text-orientation: mixed
377
+ max-width: 100%
376
378
 
377
379
  .event-details
378
380
  flex-direction: row !important
379
381
  align-items: stretch !important
380
382
  flex: 1 !important
381
383
  gap: $ms
382
-
383
- .event-name
384
- max-width: 36rem
385
-
386
- @media (min-width: 600px) and (max-width: 990px)
387
- .event-details
388
- flex-direction: column
389
- align-items: stretch
390
- .event-action
391
- align-items: flex-start
392
- .event-name
393
- max-width: 14rem
394
- @media (min-width: 771px) and (max-width: 1024px)
395
- .event-details
396
- flex-direction: column
397
- align-items: stretch
398
- .event-action
399
- align-items: flex-start
400
- .event-name
401
- max-width: 20rem
384
+ min-width: 0
402
385
 
403
386
  .event-logo
404
387
  border-radius: 0
405
388
 
406
389
  .event-action
407
- max-width: 12rem
408
390
  gap: $ba
391
+ flex-shrink: 0
409
392
 
410
393
  .full-width-actions
411
394
  width: 100%
@@ -414,12 +397,6 @@ const viewClick = () => {
414
397
  .event-row-mobile
415
398
  gap: $ba
416
399
 
417
- .event-category-mobile
418
- font-size: 0.875rem
419
- line-height: 1.0625rem
420
- letter-spacing: 0
421
- font-weight: 700
422
-
423
400
  .event-action, .event-action-mobile
424
401
  .action-buttons
425
402
  padding: 0
@@ -438,4 +415,16 @@ const viewClick = () => {
438
415
  .q-chip__content
439
416
  gap: $xxs
440
417
  padding: $xxs
418
+
419
+ .event-text-col-wrapper
420
+ flex: 1
421
+ min-width: 0
422
+ overflow: hidden
423
+
424
+ .event-name
425
+ max-width: 100%
426
+
427
+ .event-team-users-count
428
+ .iconLeft
429
+ padding: 0 $xxs 0 0 !important
441
430
  </style>
@@ -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="1"
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="`${vsLogo}`" />
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="1"
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: 20.125rem
430
+ max-width: 100%
428
431
 
429
432
  .u-game-object-std-header
430
433
  gap: $xs
@@ -98,8 +98,9 @@ $display-md: (size: 1.5rem, line-height: 1.5rem, letter-spacing: .00714rem, weig
98
98
  $display-sm: (size: 1.25rem, line-height: 1.5rem, letter-spacing: 0rem, weight: 500) !default
99
99
  $display-xs: (size: 1.125rem, line-height: 1.313rem, letter-spacing: .0125rem, weight: 500) !default
100
100
  $display-xxs: (size: 1.0rem, line-height: 1.313rem, letter-spacing: .0125rem, weight: 500) !default
101
+ $display-xxxs: (size: 0.75rem, line-height: 1.313rem, letter-spacing: .0125rem, weight: 500) !default
101
102
 
102
- $headings: ('h1': $h1, 'h1-md': $h1-md, 'h1-sm': $h1-sm, 'h2': $h2, 'h2-md': $h2-md, 'h2-sm': $h2-sm, 'h3': $h3, 'h3-md': $h3-md, 'h3-sm': $h3-sm, 'h4': $h4, 'h4-md': $h4-md, 'h4-sm': $h4-sm, 'h5': $h5, 'h6': $h6, 'body-xl': $body-xl, 'body-lg': $body-lg, 'body-md': $body-md, 'body-sm': $body-sm, 'body-xs': $body-xs, 'body-xxs': $body-xxs, 'overline-lg': $overline-lg, 'overline-md': $overline-md, 'overline-sm': $overline-sm,'overline-xs': $overline-xs, 'caption-lg': $caption-lg, 'caption-md': $caption-md, 'caption-sm': $caption-sm, 'caption-xs': $caption-xs, 'heading-xxxl': $heading-xxxl, 'heading-xxl':$heading-xxl,'heading-xl':$heading-xl,'heading-lg':$heading-lg,'heading-md':$heading-md,'heading-sm':$heading-sm,'heading-xs':$heading-xs,'heading-xxs': $heading-xxs, 'display-xxxl': $display-xxxl, 'display-xxl':$display-xxl,'display-xl':$display-xl,'display-lg':$display-lg,'display-md':$display-md,'display-sm':$display-sm,'display-xs':$display-xs,'display-xxs': $display-xxs) !default
103
+ $headings: ('h1': $h1, 'h1-md': $h1-md, 'h1-sm': $h1-sm, 'h2': $h2, 'h2-md': $h2-md, 'h2-sm': $h2-sm, 'h3': $h3, 'h3-md': $h3-md, 'h3-sm': $h3-sm, 'h4': $h4, 'h4-md': $h4-md, 'h4-sm': $h4-sm, 'h5': $h5, 'h6': $h6, 'body-xl': $body-xl, 'body-lg': $body-lg, 'body-md': $body-md, 'body-sm': $body-sm, 'body-xs': $body-xs, 'body-xxs': $body-xxs, 'overline-lg': $overline-lg, 'overline-md': $overline-md, 'overline-sm': $overline-sm,'overline-xs': $overline-xs, 'caption-lg': $caption-lg, 'caption-md': $caption-md, 'caption-sm': $caption-sm, 'caption-xs': $caption-xs, 'heading-xxxl': $heading-xxxl, 'heading-xxl':$heading-xxl,'heading-xl':$heading-xl,'heading-lg':$heading-lg,'heading-md':$heading-md,'heading-sm':$heading-sm,'heading-xs':$heading-xs,'heading-xxs': $heading-xxs, 'display-xxxl': $display-xxxl, 'display-xxl':$display-xxl,'display-xl':$display-xl,'display-lg':$display-lg,'display-md':$display-md,'display-sm':$display-sm,'display-xs':$display-xs,'display-xxs': $display-xxs,'display-xxxs': $display-xxxs) !default
103
104
 
104
105
  // SPACING BASE
105
106
  $space-base: 1rem !default