@dcrackel/hematournamentui 1.0.0

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 (43) hide show
  1. package/.storybook/main.js +17 -0
  2. package/.storybook/preview-head.html +1 -0
  3. package/.storybook/preview.js +17 -0
  4. package/HemaTournamentUI/.gitattributes +2 -0
  5. package/HemaTournamentUI/LICENSE +21 -0
  6. package/README.md +83 -0
  7. package/dist/my-library.es.js +723 -0
  8. package/dist/my-library.umd.js +1 -0
  9. package/index.html +12 -0
  10. package/package.json +42 -0
  11. package/postcss.config.js +6 -0
  12. package/src/assets/default-tournament.png +0 -0
  13. package/src/index.js +15 -0
  14. package/src/main.js +2 -0
  15. package/src/mocks/fileMock.js +1 -0
  16. package/src/mocks/tournamentMock.js +34 -0
  17. package/src/stories/Base/Button/BaseButton.stories.js +69 -0
  18. package/src/stories/Base/Button/BaseButton.vue +141 -0
  19. package/src/stories/Base/Input/BaseInput.stories.js +28 -0
  20. package/src/stories/Base/Input/BaseInput.vue +44 -0
  21. package/src/stories/Base/Tag/BaseTag.stories.js +29 -0
  22. package/src/stories/Base/Tag/BaseTag.vue +57 -0
  23. package/src/stories/Base/Text/BaseText.stories.js +77 -0
  24. package/src/stories/Base/Text/BaseText.vue +162 -0
  25. package/src/stories/Cards/TournamentCard/Detail/TournamentCardDetail.stories.js +33 -0
  26. package/src/stories/Cards/TournamentCard/Detail/TournamentCardDetail.vue +38 -0
  27. package/src/stories/Cards/TournamentCard/Header/TournamentCardHeader.stories.js +48 -0
  28. package/src/stories/Cards/TournamentCard/Header/TournamentCardHeader.vue +40 -0
  29. package/src/stories/Cards/TournamentCard/TournamentCard.stories.js +37 -0
  30. package/src/stories/Cards/TournamentCard/TournamentCard.vue +35 -0
  31. package/src/stories/Configure.mdx +320 -0
  32. package/src/stories/Containers/Grid/GridContainer.stories.js +27 -0
  33. package/src/stories/Containers/Grid/GridContainer.vue +36 -0
  34. package/src/stories/Filters/FilterAndSortBar/FilterAndSortBar.stories.js +36 -0
  35. package/src/stories/Filters/FilterAndSortBar/FilterAndSortBar.vue +39 -0
  36. package/src/stories/Menu/Admin/AdminLeftMenu.stories.js +23 -0
  37. package/src/stories/Menu/Admin/AdminLeftMenu.vue +57 -0
  38. package/src/stories/Menu/DropDown/DropDownMenu.stories.js +34 -0
  39. package/src/stories/Menu/DropDown/DropDownMenu.vue +49 -0
  40. package/tailwind/output.css +1047 -0
  41. package/tailwind/tailwind.css +4 -0
  42. package/tailwind.config.js +25 -0
  43. package/vite.config.js +20 -0
@@ -0,0 +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');
@@ -0,0 +1,25 @@
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
+ colors: {
13
+ primary: '#141B33',
14
+ primaryHighlight: '#52586C',
15
+ secondary: '#2B324B',
16
+ tertiary: '#F6FAFD',
17
+ quaternary: '#8991AC',
18
+ dropdownSelect: '#D5E4EE',
19
+ neutral: '#FFFFFF',
20
+ bright: '#A0B1EC'
21
+ }
22
+ },
23
+ },
24
+ plugins: [],
25
+ }
package/vite.config.js ADDED
@@ -0,0 +1,20 @@
1
+ import { defineConfig } from 'vite'
2
+ import vue from '@vitejs/plugin-vue'
3
+ export default defineConfig({
4
+ plugins: [vue()],
5
+ build: {
6
+ lib: {
7
+ entry: 'src/index.js', // this will be your entry point file where you export components
8
+ name: 'MyLibrary', // this is the name of your library
9
+ fileName: (format) => `my-library.${format}.js`
10
+ },
11
+ rollupOptions: {
12
+ external: ['vue'], // add external dependencies here
13
+ output: {
14
+ globals: {
15
+ vue: 'Vue'
16
+ }
17
+ }
18
+ }
19
+ }
20
+ })