@dcrackel/hematournamentui 1.0.21 → 1.0.22
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/dist/HemaTouranmentUI-lib.es.js +8 -4
- package/dist/HemaTouranmentUI-lib.umd.js +2 -2
- package/package.json +3 -1
- package/src/index.js +1 -1
- package/src/stories/Atoms/Icon/BaseIcon.test.js +91 -0
- package/src/stories/Atoms/Icon/BaseIcon.vue +1 -0
- package/src/stories/Atoms/RadioGroup/BaseRadioGroup.test.js +49 -0
- package/src/stories/Molecules/Breadcrumb/Admin/Breadcrumb.test.js +80 -0
- package/src/stories/Molecules/Breadcrumb/Admin/Breadcrumb.vue +2 -2
- package/src/stories/Templates/Forms/AddTournamentPageOne/AddTournamentPageOne.vue +2 -1
- package/package/.eslintrc.js +0 -18
- package/package/.gitattributes +0 -2
- package/package/.prettierignore +0 -1
- package/package/.storybook/main.js +0 -18
- package/package/.storybook/mockRoutes.js +0 -9
- package/package/.storybook/preview-head.html +0 -1
- package/package/.storybook/preview.js +0 -17
- package/package/LICENSE +0 -21
- package/package/README.md +0 -83
- package/package/index.html +0 -12
- package/package/package.json +0 -49
- package/package/postcss.config.js +0 -6
- package/package/prettier.config.js +0 -10
- package/package/src/assets/default-tournament.png +0 -0
- package/package/src/index.js +0 -15
- package/package/src/main.js +0 -2
- package/package/src/mocks/fileMock.js +0 -1
- package/package/src/mocks/tournamentMock.js +0 -34
- package/package/src/stories/Base/Button/BaseButton.stories.js +0 -69
- package/package/src/stories/Base/Button/BaseButton.test.js +0 -146
- package/package/src/stories/Base/Button/BaseButton.vue +0 -126
- package/package/src/stories/Base/Input/BaseInput.stories.js +0 -28
- package/package/src/stories/Base/Input/BaseInput.test.js +0 -46
- package/package/src/stories/Base/Input/BaseInput.vue +0 -45
- package/package/src/stories/Base/Tag/BaseTag.stories.js +0 -29
- package/package/src/stories/Base/Tag/BaseTag.test.js +0 -42
- package/package/src/stories/Base/Tag/BaseTag.vue +0 -57
- package/package/src/stories/Base/Text/BaseText.stories.js +0 -77
- package/package/src/stories/Base/Text/BaseText.test.js +0 -153
- package/package/src/stories/Base/Text/BaseText.vue +0 -163
- package/package/src/stories/Breadcrumb/Admin/Breadcrumb.stories.js +0 -41
- package/package/src/stories/Breadcrumb/Admin/Breadcrumb.vue +0 -31
- package/package/src/stories/Cards/TournamentCard/Detail/TournamentCardDetail.stories.js +0 -33
- package/package/src/stories/Cards/TournamentCard/Detail/TournamentCardDetail.vue +0 -38
- package/package/src/stories/Cards/TournamentCard/Header/TournamentCardHeader.stories.js +0 -48
- package/package/src/stories/Cards/TournamentCard/Header/TournamentCardHeader.vue +0 -40
- package/package/src/stories/Cards/TournamentCard/TournamentCard.stories.js +0 -37
- package/package/src/stories/Cards/TournamentCard/TournamentCard.vue +0 -35
- package/package/src/stories/Configure.mdx +0 -320
- package/package/src/stories/Containers/Grid/GridContainer.stories.js +0 -47
- package/package/src/stories/Containers/Grid/GridContainer.vue +0 -108
- package/package/src/stories/Filters/FilterAndSortBar/FilterAndSortBar.stories.js +0 -36
- package/package/src/stories/Filters/FilterAndSortBar/FilterAndSortBar.vue +0 -48
- package/package/src/stories/Filters/FilterUpcomingPast/FilterUpcomingPast.stories.js +0 -32
- package/package/src/stories/Filters/FilterUpcomingPast/FilterUpcomingPast.vue +0 -46
- package/package/src/stories/Menu/Admin/AdminLeftMenu.stories.js +0 -28
- package/package/src/stories/Menu/Admin/AdminLeftMenu.vue +0 -57
- package/package/src/stories/Menu/DropDown/DropDownMenu.stories.js +0 -34
- package/package/src/stories/Menu/DropDown/DropDownMenu.vue +0 -51
- package/package/tailwind/output.css +0 -1072
- package/package/tailwind/tailwind.css +0 -4
- package/package/tailwind.config.js +0 -25
- package/package/vite.config.js +0 -23
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="bg-secondary w-64 h-screen flex flex-col justify-between">
|
|
3
|
-
<section class="h-28 border-b border-neutral">
|
|
4
|
-
<div class="flex flex-col justify-center h-28">
|
|
5
|
-
<div class="ml-8">
|
|
6
|
-
<img class="w-32" src="https://ferrotas.com/assets/ferrotas-white-small-720502db.png" alt="logo"/>
|
|
7
|
-
</div>
|
|
8
|
-
</div>
|
|
9
|
-
</section>
|
|
10
|
-
<section class="flex flex-col p-2 h-full">
|
|
11
|
-
<BaseButton
|
|
12
|
-
v-for="button in buttons"
|
|
13
|
-
:label="button.label"
|
|
14
|
-
iconClass="fa-solid fa-trophy text-white"
|
|
15
|
-
type="admin"
|
|
16
|
-
hover="admin"
|
|
17
|
-
@click="handleButtonClick(button)"
|
|
18
|
-
/>
|
|
19
|
-
</section>
|
|
20
|
-
<section class="flex flex-col justify-end p-2 flex-grow">
|
|
21
|
-
<div class="border-t border-neutral pt-2">
|
|
22
|
-
<BaseButton
|
|
23
|
-
iconClass="fa-solid fa-circle-user text-textSecondary"
|
|
24
|
-
label="Account"
|
|
25
|
-
type="adminSecondary"
|
|
26
|
-
@click="handleButtonClick(button)"
|
|
27
|
-
/>
|
|
28
|
-
<BaseButton
|
|
29
|
-
iconClass="fa-solid fa-right-to-bracket fa-rotate-180 text-textSecondary"
|
|
30
|
-
label="Log Out"
|
|
31
|
-
type="adminSecondary"
|
|
32
|
-
@click="handleButtonClick(button)"
|
|
33
|
-
/>
|
|
34
|
-
</div>
|
|
35
|
-
</section>
|
|
36
|
-
</div>
|
|
37
|
-
</template>
|
|
38
|
-
|
|
39
|
-
<script>
|
|
40
|
-
import BaseButton from "../../Base/Button/BaseButton.vue";
|
|
41
|
-
|
|
42
|
-
export default {
|
|
43
|
-
name: 'AdminLeftMenu',
|
|
44
|
-
components: { BaseButton },
|
|
45
|
-
props: {
|
|
46
|
-
buttons: {
|
|
47
|
-
type: Array,
|
|
48
|
-
default: () => []
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
methods: {
|
|
52
|
-
handleButtonClick(button) {
|
|
53
|
-
this.$emit('button-click', button);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
</script>
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import DropDownMenu from './DropDownMenu.vue';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Menu/DropDown/DropDownMenu',
|
|
4
|
-
component: DropDownMenu,
|
|
5
|
-
tags: ['autodocs']
|
|
6
|
-
};
|
|
7
|
-
const Template = args => ({
|
|
8
|
-
components: { DropDownMenu },
|
|
9
|
-
setup() {
|
|
10
|
-
return {
|
|
11
|
-
args: {
|
|
12
|
-
label: 'default',
|
|
13
|
-
items: []
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
methods: {
|
|
18
|
-
onMenuClick(index) {
|
|
19
|
-
alert(`Button ${index + 1} clicked!`);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export const Default = {
|
|
25
|
-
args: {
|
|
26
|
-
label: 'Sort By',
|
|
27
|
-
items: [
|
|
28
|
-
{text: 'Text1', link: '/link1'},
|
|
29
|
-
{text: 'Text2', link: '/link2'},
|
|
30
|
-
{text: 'Text3', link: '/link3'}
|
|
31
|
-
],
|
|
32
|
-
selectedItem: {text: 'Text1', link: '/link1'}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="flex flex-row">
|
|
3
|
-
<span>
|
|
4
|
-
<div class="z-10 rounded-lg shadow px-2 py-2 w-32 flex flex-row justify-between" @click="handleDropDown()">
|
|
5
|
-
<BaseText :text="label" color="quaternary" size="sm" weight="normal" />
|
|
6
|
-
<BaseText :text="selectedItem.text" color="secondary" size="sm" weight="normal" />
|
|
7
|
-
<i class="fa-solid fa-chevron-down text-xs" />
|
|
8
|
-
</div>
|
|
9
|
-
<div v-if="isDropDownOpen" class="flex flex-col w-32 shadow mt-2 z-10 rounded-xl py-1 absolute bg-neutral">
|
|
10
|
-
<a v-for="item in items" :key="item.id" @click="handleClick(item)" class="hover:bg-dropdownSelect py-1 px-2 border-b border-dropdownSelect last:border-0">
|
|
11
|
-
<BaseText :text="item.text" color="primary" size="xs" weight="normal" />
|
|
12
|
-
</a>
|
|
13
|
-
</div>
|
|
14
|
-
</span>
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<script>
|
|
19
|
-
import BaseText from "../../Base/Text/BaseText.vue";
|
|
20
|
-
|
|
21
|
-
export default {
|
|
22
|
-
name: 'DropDownMenu',
|
|
23
|
-
components: {BaseText},
|
|
24
|
-
props: {
|
|
25
|
-
label: {
|
|
26
|
-
type: String,
|
|
27
|
-
},
|
|
28
|
-
items: {
|
|
29
|
-
type: Array,
|
|
30
|
-
validator: (itemsArray) => itemsArray.every(item => typeof item.text === 'string')
|
|
31
|
-
},
|
|
32
|
-
selectedItem: {
|
|
33
|
-
type: Object,
|
|
34
|
-
default: () => ({ text: '' }),
|
|
35
|
-
validator: (obj) => typeof obj.text === 'string'
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
data: () => ({
|
|
39
|
-
isDropDownOpen: false
|
|
40
|
-
}),
|
|
41
|
-
methods: {
|
|
42
|
-
handleClick(item) {
|
|
43
|
-
this.isDropDownOpen = false;
|
|
44
|
-
this.$emit('update:selectedItem', item);
|
|
45
|
-
},
|
|
46
|
-
handleDropDown() {
|
|
47
|
-
this.isDropDownOpen = !this.isDropDownOpen;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
</script>
|