@d0rich/esprit-design 0.2.2 → 0.2.3

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 (46) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/index.html +13 -0
  3. package/package.json +1 -4
  4. package/plugins/shadows.js +87 -0
  5. package/src/components/DChip.vue +32 -0
  6. package/src/components/DPagination.vue +91 -0
  7. package/src/components/DStats.vue +502 -0
  8. package/src/components/animations/DAnimationAccordion.vue +103 -0
  9. package/src/components/animations/DAnimationDefLetterD.vue +11 -0
  10. package/src/components/animations/DAnimationFloatingLetter.vue +58 -0
  11. package/src/components/animations/DAnimationHypnosis.vue +102 -0
  12. package/src/components/animations/DAnimationSpinner.vue +114 -0
  13. package/src/components/animations/index.ts +11 -0
  14. package/src/components/buttons/DBigBangButton.vue +70 -0
  15. package/src/components/buttons/DBigBangButtonAnimation.vue +117 -0
  16. package/src/components/buttons/DBtn.vue +106 -0
  17. package/src/components/buttons/index.ts +5 -0
  18. package/src/components/cards/DCard.vue +98 -0
  19. package/src/components/cards/DCardTitle.vue +67 -0
  20. package/src/components/cards/index.ts +4 -0
  21. package/src/components/content/DAlert.vue +112 -0
  22. package/src/components/content/DQuote.vue +71 -0
  23. package/src/components/content/index.ts +4 -0
  24. package/src/components/index.ts +12 -0
  25. package/src/components/lists/DActionsFan.vue +153 -0
  26. package/src/components/lists/DActionsList.vue +100 -0
  27. package/src/components/lists/index.ts +4 -0
  28. package/src/components/utils/DWrapBackground.vue +76 -0
  29. package/src/components/utils/DWrapFocusHighlight.vue +241 -0
  30. package/src/components/utils/DWrapShape.vue +170 -0
  31. package/src/components/utils/index.ts +7 -0
  32. package/src/composables/big-bang-button-utils.ts +7 -0
  33. package/src/composables/index.ts +2 -0
  34. package/src/composables/router.ts +66 -0
  35. package/src/composables/utils.ts +5 -0
  36. package/src/index.ts +3 -0
  37. package/src/style.css +3 -0
  38. package/src/utils/boundings.ts +35 -0
  39. package/src/utils/index.ts +3 -0
  40. package/src/utils/pagination.ts +4 -0
  41. package/src/utils/polygon-animation.ts +139 -0
  42. package/src/vite-env.d.ts +1 -0
  43. package/tailwind.config.js +22 -0
  44. package/tsconfig.json +25 -0
  45. package/tsconfig.node.json +10 -0
  46. package/vite.config.ts +35 -0
@@ -0,0 +1,22 @@
1
+ /* eslint-disable @typescript-eslint/no-var-requires */
2
+ const defaultTheme = require('tailwindcss/defaultTheme')
3
+
4
+ /** @type {import('tailwindcss').Config} */
5
+ module.exports = {
6
+ darkMode: 'class',
7
+ content: ['./src/**/*.{vue,js,ts,jsx,tsx}'],
8
+ theme: {
9
+ fontFamily: {
10
+ sans: ['Roboto', ...defaultTheme.fontFamily.sans],
11
+ serif: ['"Roboto Slab"', ...defaultTheme.fontFamily.sans],
12
+ mono: ['"JetBrains Mono"', ...defaultTheme.fontFamily.mono],
13
+ dialog: ['Arsenal']
14
+ },
15
+ extend: {
16
+ screens: {
17
+ print: { raw: 'print' }
18
+ }
19
+ }
20
+ },
21
+ plugins: [require('./plugins/shadows')]
22
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "useDefineForClassFields": true,
5
+ "module": "ESNext",
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
+ "skipLibCheck": true,
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "bundler",
11
+ "resolveJsonModule": true,
12
+ "isolatedModules": true,
13
+ "jsx": "preserve",
14
+ "outDir": "dist",
15
+ "declaration": true,
16
+
17
+ /* Linting */
18
+ "strict": true,
19
+ "noUnusedLocals": true,
20
+ "noUnusedParameters": true,
21
+ "noFallthroughCasesInSwitch": true
22
+ },
23
+ "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
24
+ "references": [{ "path": "./tsconfig.node.json" }]
25
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true,
4
+ "skipLibCheck": true,
5
+ "module": "ESNext",
6
+ "moduleResolution": "bundler",
7
+ "allowSyntheticDefaultImports": true
8
+ },
9
+ "include": ["vite.config.ts"]
10
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,35 @@
1
+ import { resolve } from 'path'
2
+ import { defineConfig, splitVendorChunkPlugin } from 'vite'
3
+ import dts from 'vite-plugin-dts'
4
+ import vue from '@vitejs/plugin-vue'
5
+
6
+ // https://vitejs.dev/config/
7
+ export default defineConfig({
8
+ plugins: [
9
+ vue(),
10
+ splitVendorChunkPlugin(),
11
+ dts({
12
+ insertTypesEntry: true
13
+ })
14
+ ],
15
+ build: {
16
+ lib: {
17
+ // src/indext.ts is where we have exported the component(s)
18
+ entry: resolve(__dirname, 'src'),
19
+ name: 'EspritDesign',
20
+ fileName: 'esprit-design'
21
+ },
22
+ rollupOptions: {
23
+ // make sure to externalize deps that shouldn't be bundled
24
+ // into your library
25
+ external: ['vue'],
26
+ output: {
27
+ // Provide global variables to use in the UMD build
28
+ // for externalized deps
29
+ globals: {
30
+ vue: 'Vue'
31
+ }
32
+ }
33
+ }
34
+ }
35
+ })