@dcrackel/hematournamentui 1.0.21 → 1.0.23

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 (127) hide show
  1. package/.eslintrc.js +18 -18
  2. package/.gitattributes +2 -2
  3. package/.prettierignore +1 -1
  4. package/.storybook/main.js +18 -18
  5. package/.storybook/mockRoutes.js +9 -9
  6. package/.storybook/preview-head.html +3 -3
  7. package/.storybook/preview.js +17 -17
  8. package/LICENSE +21 -21
  9. package/README.md +83 -83
  10. package/dist/HemaTouranmentUI-lib.es.js +7060 -6916
  11. package/dist/HemaTouranmentUI-lib.umd.js +27 -27
  12. package/dist/style.css +1 -1
  13. package/index.html +12 -12
  14. package/package.json +58 -56
  15. package/postcss.config.js +6 -6
  16. package/prettier.config.js +10 -10
  17. package/src/index.js +25 -25
  18. package/src/main.js +2 -2
  19. package/src/mocks/fileMock.js +1 -1
  20. package/src/mocks/tournamentMock.js +34 -34
  21. package/src/stories/Atoms/Icon/BaseIcon.stories.js +54 -54
  22. package/src/stories/Atoms/Icon/BaseIcon.test.js +91 -0
  23. package/src/stories/Atoms/Icon/BaseIcon.vue +48 -47
  24. package/src/stories/Atoms/Input/BaseInput.stories.js +29 -28
  25. package/src/stories/Atoms/Input/BaseInput.test.js +87 -87
  26. package/src/stories/Atoms/Input/BaseInput.vue +85 -73
  27. package/src/stories/Atoms/RadioGroup/BaseRadioGroup.stories.js +31 -31
  28. package/src/stories/Atoms/RadioGroup/BaseRadioGroup.test.js +49 -0
  29. package/src/stories/Atoms/RadioGroup/BaseRadioGroup.vue +49 -49
  30. package/src/stories/Atoms/Tag/BaseTag.stories.js +29 -29
  31. package/src/stories/Atoms/Tag/BaseTag.test.js +42 -42
  32. package/src/stories/Atoms/Tag/BaseTag.vue +57 -57
  33. package/src/stories/Atoms/Text/BaseText.stories.js +77 -77
  34. package/src/stories/Atoms/Text/BaseText.test.js +172 -172
  35. package/src/stories/Atoms/Text/BaseText.vue +170 -170
  36. package/src/stories/Configure.mdx +320 -320
  37. package/src/stories/Molecules/Breadcrumb/Admin/Breadcrumb.stories.js +41 -41
  38. package/src/stories/Molecules/Breadcrumb/Admin/Breadcrumb.test.js +80 -0
  39. package/src/stories/Molecules/Breadcrumb/Admin/Breadcrumb.vue +31 -31
  40. package/src/stories/Molecules/Button/BaseButton.stories.js +93 -76
  41. package/src/stories/Molecules/Button/BaseButton.test.js +147 -147
  42. package/src/stories/Molecules/Button/BaseButton.vue +116 -125
  43. package/src/stories/Molecules/Cards/Detail/TournamentCardDetail.stories.js +33 -33
  44. package/src/stories/Molecules/Cards/Detail/TournamentCardDetail.vue +38 -38
  45. package/src/stories/Molecules/Cards/Header/TournamentCardHeader.stories.js +48 -48
  46. package/src/stories/Molecules/Cards/Header/TournamentCardHeader.vue +40 -40
  47. package/src/stories/Molecules/Filters/FilterAndSortBar/FilterAndSortBar.stories.js +36 -36
  48. package/src/stories/Molecules/Filters/FilterAndSortBar/FilterAndSortBar.vue +49 -49
  49. package/src/stories/Molecules/Filters/FilterUpcomingPast/FilterUpcomingPast.stories.js +32 -32
  50. package/src/stories/Molecules/Filters/FilterUpcomingPast/FilterUpcomingPast.vue +46 -46
  51. package/src/stories/Organisms/AddressAutocomplete/AddressAutocomplete.stories.js +25 -25
  52. package/src/stories/Organisms/AddressAutocomplete/AddressAutocomplete.vue +51 -51
  53. package/src/stories/Organisms/DatePicker/DatePicker.stories.js +25 -25
  54. package/src/stories/Organisms/DatePicker/DatePicker.vue +62 -62
  55. package/src/stories/Organisms/DropDown/DropDownMenu.stories.js +34 -34
  56. package/src/stories/Organisms/DropDown/DropDownMenu.vue +51 -51
  57. package/src/stories/Organisms/Grid/GridContainer.stories.js +47 -47
  58. package/src/stories/Organisms/Grid/GridContainer.vue +108 -108
  59. package/src/stories/Organisms/ImageCropper/ImageCropper.stories.js +28 -28
  60. package/src/stories/Organisms/ImageCropper/ImageCropper.vue +86 -86
  61. package/src/stories/Organisms/TextBoxEditor/TextBoxEditor.stories.js +28 -28
  62. package/src/stories/Organisms/TextBoxEditor/TextBoxEditor.vue +97 -97
  63. package/src/stories/Organisms/TournamentCard/TournamentCard.stories.js +37 -37
  64. package/src/stories/Organisms/TournamentCard/TournamentCard.vue +35 -35
  65. package/src/stories/Templates/Forms/AddTournamentPageOne/AddTournamentPageOne.stories.js +25 -25
  66. package/src/stories/Templates/Forms/AddTournamentPageOne/AddTournamentPageOne.vue +138 -136
  67. package/src/stories/Templates/Forms/AddTournamentPageTwo/AddTournamentPageTwo.stories.js +35 -0
  68. package/src/stories/Templates/Forms/AddTournamentPageTwo/AddTournamentPageTwo.vue +121 -0
  69. package/src/stories/Templates/Menu/Admin/AdminLeftMenu.stories.js +28 -28
  70. package/src/stories/Templates/Menu/Admin/AdminLeftMenu.vue +57 -57
  71. package/tailwind/output.css +1247 -1212
  72. package/tailwind/tailwind.css +4 -4
  73. package/tailwind.config.js +50 -50
  74. package/vite.config.js +23 -23
  75. package/package/.eslintrc.js +0 -18
  76. package/package/.gitattributes +0 -2
  77. package/package/.prettierignore +0 -1
  78. package/package/.storybook/main.js +0 -18
  79. package/package/.storybook/mockRoutes.js +0 -9
  80. package/package/.storybook/preview-head.html +0 -1
  81. package/package/.storybook/preview.js +0 -17
  82. package/package/LICENSE +0 -21
  83. package/package/README.md +0 -83
  84. package/package/index.html +0 -12
  85. package/package/package.json +0 -49
  86. package/package/postcss.config.js +0 -6
  87. package/package/prettier.config.js +0 -10
  88. package/package/src/assets/default-tournament.png +0 -0
  89. package/package/src/index.js +0 -15
  90. package/package/src/main.js +0 -2
  91. package/package/src/mocks/fileMock.js +0 -1
  92. package/package/src/mocks/tournamentMock.js +0 -34
  93. package/package/src/stories/Base/Button/BaseButton.stories.js +0 -69
  94. package/package/src/stories/Base/Button/BaseButton.test.js +0 -146
  95. package/package/src/stories/Base/Button/BaseButton.vue +0 -126
  96. package/package/src/stories/Base/Input/BaseInput.stories.js +0 -28
  97. package/package/src/stories/Base/Input/BaseInput.test.js +0 -46
  98. package/package/src/stories/Base/Input/BaseInput.vue +0 -45
  99. package/package/src/stories/Base/Tag/BaseTag.stories.js +0 -29
  100. package/package/src/stories/Base/Tag/BaseTag.test.js +0 -42
  101. package/package/src/stories/Base/Tag/BaseTag.vue +0 -57
  102. package/package/src/stories/Base/Text/BaseText.stories.js +0 -77
  103. package/package/src/stories/Base/Text/BaseText.test.js +0 -153
  104. package/package/src/stories/Base/Text/BaseText.vue +0 -163
  105. package/package/src/stories/Breadcrumb/Admin/Breadcrumb.stories.js +0 -41
  106. package/package/src/stories/Breadcrumb/Admin/Breadcrumb.vue +0 -31
  107. package/package/src/stories/Cards/TournamentCard/Detail/TournamentCardDetail.stories.js +0 -33
  108. package/package/src/stories/Cards/TournamentCard/Detail/TournamentCardDetail.vue +0 -38
  109. package/package/src/stories/Cards/TournamentCard/Header/TournamentCardHeader.stories.js +0 -48
  110. package/package/src/stories/Cards/TournamentCard/Header/TournamentCardHeader.vue +0 -40
  111. package/package/src/stories/Cards/TournamentCard/TournamentCard.stories.js +0 -37
  112. package/package/src/stories/Cards/TournamentCard/TournamentCard.vue +0 -35
  113. package/package/src/stories/Configure.mdx +0 -320
  114. package/package/src/stories/Containers/Grid/GridContainer.stories.js +0 -47
  115. package/package/src/stories/Containers/Grid/GridContainer.vue +0 -108
  116. package/package/src/stories/Filters/FilterAndSortBar/FilterAndSortBar.stories.js +0 -36
  117. package/package/src/stories/Filters/FilterAndSortBar/FilterAndSortBar.vue +0 -48
  118. package/package/src/stories/Filters/FilterUpcomingPast/FilterUpcomingPast.stories.js +0 -32
  119. package/package/src/stories/Filters/FilterUpcomingPast/FilterUpcomingPast.vue +0 -46
  120. package/package/src/stories/Menu/Admin/AdminLeftMenu.stories.js +0 -28
  121. package/package/src/stories/Menu/Admin/AdminLeftMenu.vue +0 -57
  122. package/package/src/stories/Menu/DropDown/DropDownMenu.stories.js +0 -34
  123. package/package/src/stories/Menu/DropDown/DropDownMenu.vue +0 -51
  124. package/package/tailwind/output.css +0 -1072
  125. package/package/tailwind/tailwind.css +0 -4
  126. package/package/tailwind.config.js +0 -25
  127. package/package/vite.config.js +0 -23
@@ -1,4 +1,4 @@
1
- @import 'tailwindcss/base';
2
- @import 'tailwindcss/components';
3
- @import 'tailwindcss/utilities';
4
- @import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600;700&display=swap');
1
+ @import 'tailwindcss/base';
2
+ @import 'tailwindcss/components';
3
+ @import 'tailwindcss/utilities';
4
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600;700&display=swap');
@@ -1,50 +1,50 @@
1
- /** @type {import('tailwindcss').Config} */
2
- export default {
3
- content: [
4
- "./index.html",
5
- "./src/**/*.{vue,js,ts,jsx,tsx}",
6
- ],
7
- theme: {
8
- extend: {
9
- fontFamily: {
10
- sans: ['Inter', 'system-ui', '-apple-system', 'BlinkMacSystemFont']
11
- },
12
- lineHeight: {
13
- 'h1': '1.25',
14
- 'h2': '1.5',
15
- 'h3': '1.75'
16
- },
17
- colors: {
18
- primary: '#141B33',
19
- primaryHighlight: '#52586C',
20
- secondary: '#2B324B',
21
- quaternary: '#8991AC',
22
- tertiary: '#F6FAFD',
23
- dropdownSelect: '#D5E4EE',
24
- neutral: '#FFFFFF',
25
- bright: '#6190f2',
26
- alarm: '#FD546F',
27
- alarmText: '#F90229',
28
- alert: '#FFD255'
29
- }
30
- },
31
- },
32
- plugins: [
33
- function ({ addBase, theme }) {
34
- addBase({
35
- h1: {
36
- fontSize: theme('fontSize.3xl'),
37
- lineHeight: theme('lineHeight.leading-h1'),
38
- },
39
- h2: {
40
- fontSize: theme('fontSize.2xl'),
41
- lineHeight: theme('lineHeight.h2'),
42
- },
43
- h3: {
44
- fontSize: theme('fontSize.xl'),
45
- lineHeight: theme('lineHeight.h3'),
46
- },
47
- });
48
- },
49
- ],
50
- }
1
+ /** @type {import('tailwindcss').Config} */
2
+ export default {
3
+ content: [
4
+ "./index.html",
5
+ "./src/**/*.{vue,js,ts,jsx,tsx}",
6
+ ],
7
+ theme: {
8
+ extend: {
9
+ fontFamily: {
10
+ sans: ['Inter', 'system-ui', '-apple-system', 'BlinkMacSystemFont']
11
+ },
12
+ lineHeight: {
13
+ 'h1': '1.25',
14
+ 'h2': '1.5',
15
+ 'h3': '1.75'
16
+ },
17
+ colors: {
18
+ primary: '#141B33',
19
+ primaryHighlight: '#52586C',
20
+ secondary: '#2B324B',
21
+ quaternary: '#8991AC',
22
+ tertiary: '#F6FAFD',
23
+ dropdownSelect: '#D5E4EE',
24
+ neutral: '#FFFFFF',
25
+ bright: '#6190f2',
26
+ alarm: '#FD546F',
27
+ alarmText: '#F90229',
28
+ alert: '#FFD255'
29
+ }
30
+ },
31
+ },
32
+ plugins: [
33
+ function ({ addBase, theme }) {
34
+ addBase({
35
+ h1: {
36
+ fontSize: theme('fontSize.3xl'),
37
+ lineHeight: theme('lineHeight.leading-h1'),
38
+ },
39
+ h2: {
40
+ fontSize: theme('fontSize.2xl'),
41
+ lineHeight: theme('lineHeight.h2'),
42
+ },
43
+ h3: {
44
+ fontSize: theme('fontSize.xl'),
45
+ lineHeight: theme('lineHeight.h3'),
46
+ },
47
+ });
48
+ },
49
+ ],
50
+ }
package/vite.config.js CHANGED
@@ -1,23 +1,23 @@
1
- import { defineConfig } from 'vite'
2
- import vue from '@vitejs/plugin-vue'
3
- export default defineConfig({
4
- plugins: [vue()],
5
- test: {
6
- environment: "happy-dom",
7
- },
8
- build: {
9
- lib: {
10
- entry: 'src/index.js', // this will be your entry point file where you export components
11
- name: 'HemaTournamentUI', // this is the name of your library
12
- fileName: (format) => `HemaTouranmentUI-lib.${format}.js`
13
- },
14
- rollupOptions: {
15
- external: ['vue'], // add external dependencies here
16
- output: {
17
- globals: {
18
- vue: 'Vue'
19
- }
20
- }
21
- }
22
- }
23
- })
1
+ import { defineConfig } from 'vite'
2
+ import vue from '@vitejs/plugin-vue'
3
+ export default defineConfig({
4
+ plugins: [vue()],
5
+ test: {
6
+ environment: "happy-dom",
7
+ },
8
+ build: {
9
+ lib: {
10
+ entry: 'src/index.js', // this will be your entry point file where you export components
11
+ name: 'HemaTournamentUI', // this is the name of your library
12
+ fileName: (format) => `HemaTouranmentUI-lib.${format}.js`
13
+ },
14
+ rollupOptions: {
15
+ external: ['vue'], // add external dependencies here
16
+ output: {
17
+ globals: {
18
+ vue: 'Vue'
19
+ }
20
+ }
21
+ }
22
+ }
23
+ })
@@ -1,18 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- node: true,
5
- 'jest/globals': true
6
- },
7
- extends: ['plugin:vue/vue3-recommended', 'eslint:recommended', 'plugin:jest/recommended', 'prettier', 'plugin:storybook/recommended'],
8
- parserOptions: {
9
- parser: 'babel-eslint'
10
- },
11
- rules: {
12
- 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
13
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
14
- },
15
- plugins: [
16
- 'jest'
17
- ]
18
- }
@@ -1,2 +0,0 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
@@ -1 +0,0 @@
1
- node_modules/
@@ -1,18 +0,0 @@
1
- /** @type { import('@storybook/vue3-vite').StorybookConfig } */
2
- const config = {
3
- stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
4
- addons: [
5
- "@storybook/addon-links",
6
- "@storybook/addon-essentials",
7
- "@storybook/addon-interactions",
8
- "@storybook/addon-mdx-gfm"
9
- ],
10
- framework: {
11
- name: "@storybook/vue3-vite",
12
- options: {},
13
- },
14
- docs: {
15
- autodocs: "tag",
16
- },
17
- };
18
- export default config;
@@ -1,9 +0,0 @@
1
- // .storybook/mockRoutes.js
2
- import config from "./main.js";
3
-
4
- export const routes = [
5
- { path: '/', component: { template: '<div>Home</div>' } },
6
- { path: '/event', component: { template: '<div>Event</div>' } },
7
- ];
8
-
9
- export default routes;
@@ -1 +0,0 @@
1
- <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
@@ -1,17 +0,0 @@
1
- /** @type { import('@storybook/vue3').Preview } */
2
- import '../tailwind/output.css';
3
- import 'font-awesome/css/font-awesome.min.css';
4
-
5
- const preview = {
6
- parameters: {
7
- actions: { argTypesRegex: "^on[A-Z].*" },
8
- controls: {
9
- matchers: {
10
- color: /(background|color)$/i,
11
- date: /Date$/,
12
- },
13
- },
14
- },
15
- };
16
-
17
- export default preview;
package/package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Dwain Crackel
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/package/README.md DELETED
@@ -1,83 +0,0 @@
1
- # Vue 3 + Vite
2
-
3
- This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
-
5
- ## Recommended IDE Setup
6
-
7
- - [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
8
-
9
-
10
-
11
-
12
-
13
- ## Publishing a Storybook Library to NPM
14
- Follow this guide to publish your Storybook library to NPM, making it available for others to easily npm install.
15
-
16
- # 1. Setup & Prerequisites
17
- Ensure you have an account on npm. If not, you can create one for free.
18
- Verify node and npm installations:
19
- ```
20
- Copy code
21
- node -v
22
- npm -v
23
- ```
24
-
25
- # 2. Preparing Your Storybook Library
26
- a. Building the Library
27
- Compile your library with Vite or your bundler:
28
-
29
- ```
30
- vite build
31
- ```
32
-
33
- b. Update package.json
34
- Ensure the following fields are set:
35
-
36
- name: Name of your package.
37
- version: Version number.
38
- main: Main entry file (e.g., dist/index.js).
39
- files: Files to include, e.g., ["dist"].
40
-
41
- # 3. Logging in to NPM
42
- Login to npm (if you haven't already):
43
-
44
- ```
45
- npm login
46
- ```
47
- Provide your username, password, and email.
48
-
49
- # 4. Publishing to NPM
50
- a. Default (Private Package)
51
- For scoped private packages (@username/project-name):
52
-
53
- ```
54
- npm publish
55
- ```
56
- b. Public Package
57
- For public packages:
58
-
59
- ```
60
- npm publish --access=public
61
- ```
62
-
63
- # 5. Verifying Your Package
64
- Check on the npm website to verify your package's publication.
65
-
66
- Check the registry name
67
- ```
68
- npm get registry
69
- ```
70
-
71
- # 6. Installing and Using the Library
72
- To install the library:
73
-
74
- ```
75
- npm install your-library-name
76
- ```
77
-
78
- Users can then import and utilize your library's components.
79
-
80
- Notes:
81
-
82
- Always update the version in package.json before republishing.
83
- Ensure only necessary files are bundled to prevent package bloat.
@@ -1,12 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>StoryBookLib !!!!!</title>
7
- </head>
8
- <body>
9
- <div id="app"></div>
10
- <script type="module" src="/src/main.js"></script>
11
- </body>
12
- </html>
@@ -1,49 +0,0 @@
1
- {
2
- "name": "@dcrackel/hematournamentui",
3
- "private": false,
4
- "version": "1.0.7",
5
- "type": "module",
6
- "main": "dist/HemaTouranmentUI-lib.umd.js",
7
- "module": "dist/HemaTouranmentUI-lib.es.js",
8
- "scripts": {
9
- "dev": "vite",
10
- "build": "npm version patch && vite build",
11
- "publish:package": "npm publish",
12
- "preview": "vite preview",
13
- "build-storybook": "npm run build:tailwind && storybook build",
14
- "build:tailwind": "tailwindcss build ./tailwind/tailwind.css -o ./tailwind/output.css",
15
- "storybook": "concurrently \"npm run watch:tailwind\" \"npm run watch:storybook\"",
16
- "watch:storybook": "storybook dev -p 6006",
17
- "watch:tailwind": "tailwindcss build ./tailwind/tailwind.css -o ./tailwind/output.css --watch",
18
- "test": "vitest",
19
- "coverage": "vitest run --coverage"
20
- },
21
- "dependencies": {
22
- "@storybook/addon-actions": "^7.4.5",
23
- "concurrently": "^8.2.1",
24
- "font-awesome": "^4.7.0",
25
- "happy-dom": "^12.8.0",
26
- "vue": "^3.3.4"
27
- },
28
- "devDependencies": {
29
- "@storybook/addon-docs": "^7.4.5",
30
- "@storybook/addon-essentials": "^7.4.5",
31
- "@storybook/addon-interactions": "^7.4.5",
32
- "@storybook/addon-links": "^7.4.5",
33
- "@storybook/addon-mdx-gfm": "^7.4.5",
34
- "@storybook/blocks": "^7.4.5",
35
- "@storybook/testing-library": "^0.2.2",
36
- "@storybook/vue3": "^7.4.5",
37
- "@storybook/vue3-vite": "^7.4.5",
38
- "@vitejs/plugin-vue": "^4.2.3",
39
- "@vitest/coverage-v8": "^0.34.6",
40
- "@vue/cli-plugin-babel": "^5.0.8",
41
- "@vue/test-utils": "^2.4.0-alpha.2",
42
- "autoprefixer": "^10.4.16",
43
- "storybook": "^7.4.5",
44
- "storybook-vue3-router": "^4.0.1",
45
- "tailwindcss": "^3.3.3",
46
- "vite": "^4.4.5",
47
- "vitest": "^0.34.6"
48
- }
49
- }
@@ -1,6 +0,0 @@
1
- export default {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- }
@@ -1,10 +0,0 @@
1
- module.exports = {
2
- semi: true, // Remove semicolons
3
- trailingComma: 'none', // No trailing commas
4
- singleQuote: true, // Use single quotes instead of double quotes
5
- printWidth: 120, // Wrap lines at 120 characters
6
- tabWidth: 2, // Use 2 spaces for indentation
7
- useTabs: false, // Use spaces instead of tabs
8
- bracketSpacing: true, // Space between object literals
9
- arrowParens: 'avoid' // Avoid parentheses around single arrow function parameters
10
- };
@@ -1,15 +0,0 @@
1
- export { default as BaseInput } from './stories/Base/Input/BaseInput.vue';
2
- export { default as BaseButton } from './stories/Base/Button/BaseButton.vue';
3
- export { default as BaseTag } from './stories/Base/Tag/BaseTag.vue';
4
- export { default as BaseText } from './stories/Base/Text/BaseText.vue';
5
-
6
- export { default as TournamentCard } from './stories/Cards/TournamentCard/TournamentCard.vue';
7
- export { default as TournamentCardDetails } from './stories/Cards/TournamentCard/Detail/TournamentCardDetail.vue';
8
- export { default as TournamentCardHeader } from './stories/Cards/TournamentCard/Header/TournamentCardHeader.vue';
9
-
10
- export { default as GridContainer } from './stories/Containers/Grid/GridContainer.vue';
11
-
12
- export { default as FilterAndSortBar } from './stories/Filters/FilterAndSortBar/FilterAndSortBar.vue';
13
- export { default as AdminLeftMenu } from './stories/Menu/Admin/AdminLeftMenu.vue';
14
- export { default as DropDownMenu } from './stories/Menu/DropDown/DropDownMenu.vue';
15
-
@@ -1,2 +0,0 @@
1
- import '../tailwind/output.css'
2
-
@@ -1 +0,0 @@
1
- module.exports = 'test-file-stub';
@@ -1,34 +0,0 @@
1
- const mockTournaments = [
2
- {
3
- id: 1,
4
- artwork: 'https://node.ferrotas.com:5000/uploads/t-450.png',
5
- tags: ['Tag1', 'Tag2'],
6
- name: 'Summer Slam 2023',
7
- description: 'Join us for the hottest tournament this summer!',
8
- date: '15 June 2023',
9
- closes: 'Status Line',
10
- location: 'Amber Arena, Miami, FL'
11
- },
12
- {
13
- id: 2,
14
- artwork: 'https://node.ferrotas.com:5000/uploads/t-196.png',
15
- tags: ['Tag3', 'Tag4', 'Tag5'],
16
- name: 'Winter Showdown 2023',
17
- description: 'Cold weather, hot competition!',
18
- date: '10 December 2023',
19
- closes: 'Registration Closes 1 December 2023',
20
- location: 'Snowy Mountain Stadium, Denver, CO'
21
- },
22
- {
23
- id: 3,
24
- artwork: 'https://usahema.org/img/tournaments/usahema-tournament-45.jpg',
25
- tags: ['Tag6'],
26
- name: 'Autumn Cup 2023',
27
- description: 'Celebrate fall with intense matches!',
28
- date: '20 October 2023',
29
- closes: 'Registration Closes 18th October 2023',
30
- location: 'Withers Field, Portland, OR'
31
- }
32
- ];
33
-
34
- export default mockTournaments;
@@ -1,69 +0,0 @@
1
- import BaseButton from './BaseButton.vue';
2
-
3
- export default {
4
- title: 'Base/BaseButton',
5
- component: BaseButton,
6
- tags: ['autodocs'],
7
- argTypes: {
8
- onClick: {},
9
- size: {
10
- control: {
11
- type: 'select'
12
- },
13
- options: ['small', 'medium', 'large']
14
- },
15
- iconClass: {
16
- control: {
17
- type: 'text'
18
- },
19
- defaultValue: ''
20
- },
21
- type: {
22
- control: {
23
- type: 'select'
24
- },
25
- options: ['primary', 'secondary', 'tertiary', 'bright', 'admin']
26
- }
27
- }
28
- };
29
- export const Primary = {
30
- args: {
31
- type: 'primary',
32
- label: 'Button'
33
- }
34
- };
35
- export const PrimaryButtonWithIcon = {
36
- args: {
37
- type: 'primary',
38
- label: 'Button',
39
- iconClass: 'fas fa-check'
40
- }
41
- };
42
- export const Secondary = {
43
- args: {
44
- label: 'Button'
45
- }
46
- };
47
- export const HighlightedButton = {
48
- args: {
49
- type: 'bright',
50
- size: 'large',
51
- label: 'Button'
52
- }
53
- };
54
- export const SmallTertiary = {
55
- args: {
56
- type: 'tertiary',
57
- size: 'small',
58
- label: 'Button'
59
- }
60
- };
61
-
62
- export const AdminMunuButton = {
63
- args: {
64
- type: 'admin',
65
- size: 'small',
66
- label: 'Admin Button',
67
- hoverColor: 'highlightPrimary'
68
- }
69
- };