@dcrackel/meyersquaredui 1.0.52 → 1.0.56

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcrackel/meyersquaredui",
3
3
  "private": false,
4
- "version": "1.0.52",
4
+ "version": "1.0.56",
5
5
  "type": "module",
6
6
  "main": "dist/meyersquaredui.cjs.js",
7
7
  "module": "dist/meyersquaredui.esm.js",
@@ -6,7 +6,7 @@
6
6
  color="primary"
7
7
  size="xs md"
8
8
  tag="p"
9
- weight="normal"
9
+ :weight="boldText ? 'bold' : 'normal'"
10
10
  >
11
11
  {{ selectedItem }}
12
12
  </BaseText>
@@ -45,6 +45,10 @@ export default {
45
45
  defaultSelectedItem: {
46
46
  type: String,
47
47
  default: ''
48
+ },
49
+ boldText: {
50
+ type: Boolean,
51
+ default: false
48
52
  }
49
53
  },
50
54
  data() {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <section class="flex flex-col md:bg-white w-full border-b pb-2 mb-2 pt-1 cursor-pointer last:border-b-0">
2
+ <section class="flex flex-col md:bg-white w-full border-b pb-2 mb-2 pt-1 cursor-pointer last:border-b-0" @click="handleCardClick">
3
3
  <div class="flex">
4
4
  <img :src="tournamentImage" :alt="imageAltText" class="w-24 h-16 md:w-32 md:h-20 object-cover rounded mr-2 md:mr-4 flex-shrink-0" />
5
5
  <div class="flex flex-col">
@@ -98,6 +98,9 @@ export default {
98
98
  const date = new Date(dateString);
99
99
  return date.toLocaleDateString(undefined, options);
100
100
  },
101
+ handleCardClick() {
102
+ this.$emit('grid-card-click', this.data);
103
+ },
101
104
  },
102
105
  };
103
106
  </script>
@@ -11,7 +11,7 @@
11
11
  :data="item"
12
12
  :index="index"
13
13
  :isLoading="isLoading"
14
- @grid-card-click="handleCardClick"
14
+ @grid-card-click="handleTournamentCardClick"
15
15
  />
16
16
  </div>
17
17
  </section>
@@ -125,7 +125,7 @@ export default {
125
125
  onClick() {
126
126
  this.$emit('grid-click');
127
127
  },
128
- handleCardClick(itemData) {
128
+ handleTournamentCardClick(itemData) {
129
129
  this.$emit('grid-card-click', itemData);
130
130
  },
131
131
  },
@@ -24,7 +24,8 @@
24
24
  <!-- Weapon Dropdown Component -->
25
25
  <BasicDropDown
26
26
  :weapons="weapons"
27
- :selectedWeapon="selectedWeapon"
27
+ :defaultSelectedItem="selectedWeapon"
28
+ :boldText="true"
28
29
  @weapon-select="onWeaponSelect"
29
30
  class="hidden md:block pl-4 pr-8 md:p-0"
30
31
  />
@@ -46,7 +47,7 @@ export default {
46
47
  props: {
47
48
  filters: {
48
49
  type: Array,
49
- default: () => ['Top Ranked', 'All Time', 'Regional', 'Club Members'],
50
+ default: () => ['Upcoming', 'Past', 'Bookmarked','Attending'],
50
51
  },
51
52
  weapons: {
52
53
  type: Array,
@@ -2,7 +2,7 @@
2
2
  <div class="m-0 w-full bg-secondary">
3
3
  <Header />
4
4
  <TournamentBanner :title="title" :description="description" :imageSrc="imageSrc" />
5
- <TournamentHeader />
5
+ <TournamentHeader :weapons="['All Weapons', 'Longsword', 'Saber', 'Rapier', 'Smallsword', 'Sword and Buckler']" />
6
6
 
7
7
  <div class="w-full flex justify-center">
8
8
  <section class="w-full md:w-2/3 mb-20 flex">
@@ -14,6 +14,7 @@
14
14
  :whiteStyle="true"
15
15
  moreButtonLabel="See All Tournaments"
16
16
  :title="formattedDate"
17
+ @grid-card-click="changePage"
17
18
  />
18
19
  <Calendar :tournaments="tournaments" class="hidden md:block mt-32" />
19
20
  </section>
@@ -85,6 +86,11 @@ export default {
85
86
  return {
86
87
  cardComponent: markRaw(TournamentListCard),
87
88
  }
89
+ },
90
+ methods: {
91
+ changePage(item) {
92
+ console.log('changePage', item);
93
+ }
88
94
  }
89
95
  }
90
96