@dcrackel/meyersquaredui 1.0.99 → 1.0.101

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.99",
4
+ "version": "1.0.101",
5
5
  "type": "module",
6
6
  "main": "dist/meyersquaredui.cjs.js",
7
7
  "module": "dist/meyersquaredui.esm.js",
package/src/index.js CHANGED
@@ -6,6 +6,7 @@ export { default as InputField } from './stories/Atoms/InputField/InputField.vue
6
6
  export { default as SearchBox } from './stories/Molecules/Searchbox/SearchBox.vue';
7
7
  export { default as Calendar } from './stories/Molecules/Calendar/Calendar.vue';
8
8
  export { default as Mapbox } from './stories/Molecules/Mapbox/Mapbox.vue';
9
+ export { default as ProgressTracker } from './stories/Molecules/ProgressTracker/ProgressTracker.vue';
9
10
 
10
11
  export { default as PageHeader } from './stories/Organisms/Headers/PageHeader/PageHeader.vue'
11
12
  export { default as HostColumn } from './stories/Organisms/Column/HostColumn.vue'
@@ -21,6 +21,13 @@ ActiveEvent.args = {
21
21
 
22
22
  export const CompletedEvent = Template.bind({});
23
23
  CompletedEvent.args = {
24
- currentPhase: 3, // All phases are complete
24
+ currentPhase: 3,
25
+ phases: [
26
+ { label: 'Registration', icon: 'fa-solid fa-file-alt' },
27
+ { label: 'Demo Pools', icon: 'fa-kit fa-longsword' },
28
+ { label: 'Pool Results', icon: 'fa-solid fa-clipboard-check' },
29
+ { label: 'Bracket', icon: 'fa-solid fa-sitemap' },
30
+ { label: 'Final Result', icon: 'fa-solid fa-trophy' },
31
+ ],
25
32
  isEventComplete: true,
26
33
  };
@@ -1,9 +1,9 @@
1
1
  <template>
2
- <div class="flex items-center justify-between">
2
+ <div class="flex items-center justify-between w-full">
3
3
  <div
4
4
  v-for="(phase, index) in phases"
5
5
  :key="index"
6
- class="flex items-center flex-grow"
6
+ class="flex w-full items-center flex-grow"
7
7
  @mouseover="handleMouseOver(index)"
8
8
  @mouseout="handleMouseOut"
9
9
  @click="handlePhaseClick(index)"
@@ -66,7 +66,18 @@ export default {
66
66
  isEventComplete: {
67
67
  type: Boolean,
68
68
  default: false,
69
- }
69
+ },
70
+ phases: {
71
+ type: Array,
72
+ required: true,
73
+ default: () => [
74
+ { label: 'Registration', icon: 'fa-solid fa-file-alt' },
75
+ { label: 'Pools', icon: 'fa-kit fa-longsword' },
76
+ { label: 'Pool Results', icon: 'fa-solid fa-clipboard-check' },
77
+ { label: 'Bracket', icon: 'fa-solid fa-sitemap' },
78
+ { label: 'Final Result', icon: 'fa-solid fa-trophy' },
79
+ ],
80
+ },
70
81
  },
71
82
  data() {
72
83
  return {
@@ -74,15 +85,6 @@ export default {
74
85
  };
75
86
  },
76
87
  computed: {
77
- phases() {
78
- return [
79
- { label: 'Registration', icon: 'fa-solid fa-file-alt' },
80
- { label: 'Pools', icon: 'fa-kit fa-longsword' },
81
- { label: 'Pool Results', icon: 'fa-solid fa-clipboard-check' },
82
- { label: 'Bracket', icon: 'fa-solid fa-sitemap' },
83
- { label: 'Final Result', icon: 'fa-solid fa-trophy' },
84
- ];
85
- },
86
88
  },
87
89
  methods: {
88
90
  isPhaseActive(index) {