@dcrackel/hematournamentui 1.0.43 → 1.0.45

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.
Files changed (37) hide show
  1. package/.storybook/main.js +3 -4
  2. package/.storybook/preview.js +1 -2
  3. package/dist/HemaTouranmentUI-lib.es.js +1 -1
  4. package/dist/HemaTouranmentUI-lib.umd.js +1 -1
  5. package/package.json +20 -17
  6. package/postcss.config.js +1 -0
  7. package/src/assets/empty_desert_icon.png +0 -0
  8. package/src/mocks/EventQuestionsMock.js +59 -0
  9. package/src/stories/Molecules/Buttons/BaseButton/BaseButton.stories.js +9 -1
  10. package/src/stories/Molecules/Buttons/BaseButton/BaseButton.vue +8 -2
  11. package/src/stories/Molecules/Buttons/ButtonBar/ButtonBar.stories.js +42 -0
  12. package/src/stories/Molecules/Buttons/ButtonBar/ButtonBar.vue +50 -0
  13. package/src/stories/Molecules/Cards/AdminFencerCard/AdminFencerCard.js +29 -0
  14. package/src/stories/Molecules/Cards/AdminFencerCard/AdminFencerCard.vue +67 -0
  15. package/src/stories/Molecules/Cards/Detail/TournamentCardDetail.vue +7 -2
  16. package/src/stories/Molecules/CombinationInputs/TitledInput/TitledInput.vue +1 -1
  17. package/src/stories/Molecules/Menus/TabBar/TabBar.stories.js +26 -0
  18. package/src/stories/Molecules/Menus/TabBar/TabBar.vue +14 -0
  19. package/src/stories/Molecules/StepIndicator/BaseStepIndicator/StepIndicator.stories.js +20 -0
  20. package/src/stories/Molecules/StepIndicator/BaseStepIndicator/StepIndicator.vue +100 -0
  21. package/src/stories/Organisms/Cards/TournamentCard/TournamentCard.stories.js +1 -0
  22. package/src/stories/Organisms/Cards/TournamentCard/TournamentCard.vue +7 -2
  23. package/src/stories/Organisms/ComplexInputs/FindLocation/FindLocation.vue +38 -32
  24. package/src/stories/Organisms/Grids/GridContainer.vue +4 -1
  25. package/src/stories/Templates/Menus/Admin/AdminLeftMenu.stories.js +6 -6
  26. package/src/stories/Templates/Menus/EditTournamentMenu/EditTournamentMenu.stories.js +11 -0
  27. package/src/stories/Templates/Menus/EditTournamentMenu/EditTournamentMenu.vue +68 -0
  28. package/src/stories/Templates/TournamentManagement/AddTournament/PageOne/AddTournamentPageOne.vue +13 -10
  29. package/src/stories/Templates/TournamentManagement/EditTournament/EditEvents/EditEvents.stories.js +13 -0
  30. package/src/stories/Templates/TournamentManagement/EditTournament/EditEvents/EditEvents.vue +39 -0
  31. package/src/stories/{Organisms/Forms/EditTournamentForm1.stories.js → Templates/TournamentManagement/EditTournament/EditPageOne/EditTournamentPageOne.stories.js} +4 -3
  32. package/src/stories/Templates/TournamentManagement/EditTournament/EditPageOne/EditTournamentPageOne.vue +116 -0
  33. package/src/stories/Templates/TournamentManagement/EditTournament/EditPageTwo/EditTournamentPageTwo.stories.js +30 -0
  34. package/src/stories/Templates/TournamentManagement/EditTournament/EditPageTwo/EditTournamentPageTwo.vue +112 -0
  35. package/src/stories/Molecules/Menus/EditTournamentMenu/EditTournamentMenu.stories.js +0 -30
  36. package/src/stories/Molecules/Menus/EditTournamentMenu/EditTournamentMenu.vue +0 -31
  37. package/src/stories/Organisms/Forms/EditTournamentForm1.vue +0 -66
@@ -1,30 +0,0 @@
1
- import EditTournamentMenu from './EditTournamentMenu.vue';
2
- import {action} from "@storybook/addon-actions";
3
-
4
- export default {
5
- title: 'Molecules/Menus/EditTournamentMenu/EditTournamentMenu',
6
- component: EditTournamentMenu,
7
- tags: ['autodocs'],
8
- argTypes: {
9
- onClick: {},
10
- size: {}
11
- }
12
- }
13
-
14
- export const Primary = {
15
- args: {
16
- items: [
17
- {text: 'Details', link: ''},
18
- {text: 'Events', link: ''},
19
- {text: 'Payments', link: ''},
20
- {text: 'Staff', link: ''}
21
- ],
22
- selectedItem: {text: 'Details', link: ''},
23
- props: {
24
- onLinkClick: {
25
- default: () => action('link-clicked')
26
- }
27
- },
28
- selected: true
29
- }
30
- };
@@ -1,31 +0,0 @@
1
- <template>
2
- <nav class="flex flex-row w-full">
3
- <div v-for="(item, index) in items" :key="index" class="flex flex-row">
4
- <BaseText :text="item.text" class="mx-3" color="secondary"/>
5
- </div>
6
- </nav>
7
- </template>
8
-
9
- <script>
10
- import BaseText from "../../../Atoms/Text/BaseText.vue";
11
-
12
- export default {
13
- name: 'edit-tournament-menu',
14
- components: {BaseText},
15
- props: {
16
- items: {
17
- type: Array,
18
- default: () => []
19
- },
20
- selected: {
21
- type: Boolean,
22
- default: false
23
- },
24
- //
25
- // onLinkClick: {
26
- // type: Function,
27
- // default: () => {}
28
- // }
29
- }
30
- }
31
- </script>
@@ -1,66 +0,0 @@
1
- <template>
2
- <div class="w-full flex flex-col justify-center">
3
- <div class="mb-3">
4
- <BaseText :size="'sm'" :text="'Cover Image'" :weight="'normal'" class="mb-1" color="primary"/>
5
- <ImageCropper>Picture</ImageCropper>
6
- </div>
7
- <div class="mb-3">
8
- <TitledInput :inputValue="localTournament.name" :invalid="validation.name" :placeholder="localTournament.name"
9
- :title="'Tournament Name'" @update:value="value => localTournament.name = value"/>
10
- <BaseText :color="'primary'" :invalid="validation.address" :size="'sm'" :text="'Address'"
11
- :weight="'normal'" class="mb-1 ml-1" data-testid="text-address"/>
12
- <AddressAutocomplete :address="localTournament.address" :invalid="validation.address"
13
- :placeholder="localTournament.address"
14
- @update:address="handleAddressUpdate"/>
15
- </div>
16
- <div class="mt-3"/>
17
- <BaseText :color="'quaternary'" :size="'sm'" :text="'SOCIAL MEDIA AND CONTACT'" :weight="'normal'"
18
- class="mb-2 border-b border-quaternary"/>
19
- <!-- This titled input needs to be worked like the external links of add tournament page two
20
- <TitledInput :inputValue="localTournament.SocialMedia" :invalid="validation.name"-->
21
- <!-- :title="'Instagram'" @update:value="value => localTournament.SocialMedia = value"/>-->
22
- </div>
23
- </template>
24
-
25
- <script>
26
- import ImageCropper from "../ComplexInputs/ImageCropper/ImageCropper.vue";
27
- import BaseInput from "../../Atoms/Input/BaseInput.vue";
28
- import BaseText from "../../Atoms/Text/BaseText.vue";
29
- import AddressAutocomplete from "../ComplexInputs/AddressAutocomplete/AddressAutocomplete.vue";
30
- import BaseButton from "../../Molecules/Buttons/BaseButton/BaseButton.vue";
31
- import TitledInput from "../../Molecules/CombinationInputs/TitledInput/TitledInput.vue";
32
-
33
- export default {
34
- components: {
35
- TitledInput,
36
- AddressAutocomplete,
37
- ImageCropper,
38
- BaseInput,
39
- BaseText,
40
- BaseButton
41
- },
42
- props: {tournament: Object},
43
- data() {
44
- return {
45
- localTournament: JSON.parse(JSON.stringify(this.tournament)),
46
- validation: {
47
- name: false,
48
- imageLink: false,
49
- address: false,
50
- coordinates: false,
51
- startDate: false,
52
- totalDays: false,
53
- description: false,
54
- visibility: false
55
- },
56
- }
57
- },
58
- methods: {
59
- handleAddressUpdate(updatedAddress) {
60
- this.localTournament.address = updatedAddress.address;
61
- this.localTournament.coordinates = updatedAddress.coordinates;
62
- },
63
- }
64
- }
65
-
66
- </script>