@dcrackel/hematournamentui 1.0.280 → 1.0.281

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/hematournamentui",
3
3
  "private": false,
4
- "version": "1.0.280",
4
+ "version": "1.0.281",
5
5
  "type": "module",
6
6
  "main": "dist/HemaTournamentUI-lib.umd.js",
7
7
  "module": "dist/HemaTournamentUI-lib.es.js",
@@ -68,7 +68,7 @@ export default {
68
68
  tertiary: `px-2.5 py-0.5 items-center gap-2.5 rounded-md text-center justify-center border border-dropdownSelect hover:bg-dropdownSelect ${props.selected ? 'bg-primary' : 'bg-tertiary'}`,
69
69
  bright: `px-3 py-1 items-center gap-2.5 rounded-md text-center justify-center hover:bg-primary text-neutral ${props.selected ? 'bg-primary' : 'bg-bright'}`,
70
70
  admin: `px-2.5 py-2 items-center rounded-md gap-2.5 text-center my-1 text-neutral hover:bg-primaryHighlight ${props.selected ? 'bg-primary' : 'bg-primary'}`,
71
- adminSecondary: `px-2.5 py-2 rounded-xl items-center gap-2.5 text-center my-1 pb-2 border-b border-secondary hover:bg-bright w-11/12 text-neutral ${props.selected ? 'bg-primary' : 'bg-primary'}`,
71
+ adminSecondary: `px-2.5 py-2 rounded-xl items-center gap-2.5 text-center my-1 pb-2 border-b border-secondary hover:bg-bright w-full text-neutral ${props.selected ? 'bg-primary' : 'bg-primary'}`,
72
72
  iconOnly: `px-0.5 items-center rounded-full text-center text-tertiary shadow border border-dropdownSelect justify-center bg-primaryHighlight`,
73
73
  editor: `px-1 items-center rounded-md text-center justify-center hover:bg-tertiary`,
74
74
  square: `p-8 my-3 items-center gap-2.5 rounded-md text-center shadow border border-dropdownSelect justify-center hover:bg-tertiary ${props.selected ? 'bg-dropdownSelect' : 'bg-neutral'}`,
@@ -10,7 +10,7 @@
10
10
  <div class="mt-1 w-10 mr-3">
11
11
  <BaseIcon icon-name="fa-chart-simple-horizontal" size="3xl" color="quaternary" class="" />
12
12
  </div>
13
- <div v-if="event.Status === 'results' || event.Status === 'de' || event.Status === 'completed'" class="w-full">
13
+ <div v-if="event.Status === 'live' || event.Status === 'results' || event.Status === 'de' || event.Status === 'completed'" class="w-full">
14
14
  <BaseText text="Pool Standings and Results" size="lg" color="quaternary" weight="bold" class="" />
15
15
  <div class="grid grid-cols-3">
16
16
  <div class="flex">
@@ -19,10 +19,10 @@ const Template = args => ({
19
19
 
20
20
  export const Default = {
21
21
  args: {
22
- items: [
23
- {text: 'Home', link: '/'},
24
- {text: 'Category', link: '/category'},
25
- {text: 'Product', link: ''}
22
+ buttons: [
23
+ { label: 'Tournaments', iconName: 'fa-trophy' },
24
+ { label: 'Clubs', iconName: 'fa-users' },
25
+ { label: 'People', iconName: 'fa-user-group' }
26
26
  ]
27
27
  }
28
28
  };
@@ -7,29 +7,33 @@
7
7
  </div>
8
8
  </div>
9
9
  </section>
10
- <section class="flex flex-col p-2 h-full">
10
+
11
+ <section class="flex flex-col p-2 h-full w-full px-4">
11
12
  <BaseButton
12
13
  v-for="button in buttons"
13
14
  :label="button.label"
14
- iconClass="fa-solid fa-trophy text-white"
15
- type="admin"
16
- hover="admin"
15
+ :iconName="button.iconName"
16
+ type="adminSecondary"
17
+ size="md"
17
18
  @click="handleButtonClick(button)"
18
19
  />
19
20
  </section>
20
- <section class="flex flex-col justify-end p-2 flex-grow">
21
- <div class="border-t border-neutral pt-2">
21
+
22
+ <section class="flex flex-col justify-end flex-grow">
23
+ <div class="border-t border-neutral p-4 ">
22
24
  <BaseButton
23
- iconClass="fa-solid fa-circle-user text-textSecondary"
25
+ iconName="fa-user"
24
26
  label="Account"
25
27
  type="adminSecondary"
26
- @click="handleButtonClick(button)"
28
+ size="md"
29
+ @click="handleAccount()"
27
30
  />
28
31
  <BaseButton
29
- iconClass="fa-solid fa-right-to-bracket fa-rotate-180 text-textSecondary"
32
+ iconName="fa-right-to-bracket"
30
33
  label="Log Out"
31
34
  type="adminSecondary"
32
- @click="handleButtonClick(button)"
35
+ size="md"
36
+ @click="handleLogOut()"
33
37
  />
34
38
  </div>
35
39
  </section>
@@ -56,7 +60,13 @@ export default {
56
60
  },
57
61
  methods: {
58
62
  handleButtonClick(button) {
59
- this.$emit('button-click', button);
63
+ this.$emit('button:Click', button);
64
+ },
65
+ handleAccount() {
66
+ this.$emit('button:Account');
67
+ },
68
+ handleLogOut() {
69
+ this.$emit('button:Logout');
60
70
  }
61
71
  }
62
72
  };