@awes-io/ui 2.145.9 → 2.147.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 (39) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/assets/css/components/action-button.css +83 -13
  3. package/assets/css/components/alert.css +5 -0
  4. package/assets/css/components/button-nav.css +87 -0
  5. package/assets/css/components/button.css +16 -0
  6. package/assets/css/components/card.css +29 -0
  7. package/assets/css/components/icon-menu-item.css +1 -1
  8. package/assets/css/components/nav.css +6 -0
  9. package/assets/css/components/page-header.css +16 -0
  10. package/assets/css/components/page.css +9 -0
  11. package/assets/css/components/progress.css +22 -0
  12. package/assets/css/components/switch-field.css +36 -0
  13. package/assets/css/components/tags.css +31 -2
  14. package/assets/css/components/text-field.css +16 -0
  15. package/assets/css/fonts.css +44 -0
  16. package/assets/css/main.css +1 -0
  17. package/components/1_atoms/AwActionIcon.vue +2 -2
  18. package/components/1_atoms/AwCard.vue +14 -3
  19. package/components/1_atoms/AwProgress.vue +9 -0
  20. package/components/1_atoms/AwSwitcher.vue +4 -1
  21. package/components/1_atoms/AwTag.vue +44 -2
  22. package/components/2_molecules/AwActionButton.vue +39 -11
  23. package/components/2_molecules/AwButton.vue +9 -1
  24. package/components/4_pages/AwPage.vue +66 -22
  25. package/components/5_layouts/AwLayoutProvider.vue +1 -1
  26. package/components/5_layouts/_AwNav.vue +15 -0
  27. package/docs/components/atoms/aw-action-icon.md +1 -1
  28. package/docs/components/atoms/aw-card.md +11 -0
  29. package/docs/components/atoms/aw-input.md +1 -0
  30. package/docs/components/atoms/aw-progress.md +9 -0
  31. package/docs/components/atoms/aw-tag.md +23 -2
  32. package/docs/components/layouts/aw-layout-provider.md +2 -1
  33. package/docs/components/molecules/aw-action-button.md +41 -1
  34. package/docs/components/molecules/aw-button.md +14 -0
  35. package/docs/components/pages/aw-page.md +10 -0
  36. package/docs/configuration.md +15 -6
  37. package/nuxt/awes.config.js +0 -1
  38. package/package.json +2 -2
  39. package/tailwind.config.js +2 -2
@@ -82,17 +82,28 @@ export default {
82
82
 
83
83
  **Default:** `'https://static.awes.io/demo/awes-background.svg'`
84
84
 
85
- #### Google Fonts
85
+ #### Fonts
86
86
 
87
- Load custom fonts from Google Fonts:
87
+ The default font is Inter. The library loads it from our CDN (`https://storage2.easyweek.io/fonts/inter/`), so an app has nothing to connect.
88
+
89
+ To use another font, set `style.fontFamily` and load the font: declare `@font-face` in the app styles, or set the optional `googleFont`:
88
90
 
89
91
  ```javascript
90
92
  export default {
91
- googleFont: 'https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap'
93
+ googleFont: 'https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap',
94
+
95
+ style: {
96
+ fontFamily: {
97
+ heading: ['Roboto', 'sans-serif'],
98
+ body: ['Roboto', 'sans-serif']
99
+ }
100
+ }
92
101
  }
93
102
  ```
94
103
 
95
- **Default:** `null` (no custom font)
104
+ **Default values:**
105
+ - `googleFont`: `null` (Google Fonts are off)
106
+ - `style.fontFamily.heading`, `style.fontFamily.body`: `['Inter', 'sans-serif']`
96
107
 
97
108
  #### Custom Styles
98
109
 
@@ -365,8 +376,6 @@ export default {
365
376
  src: '/background.svg'
366
377
  },
367
378
 
368
- googleFont: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap',
369
-
370
379
  style: styles.default
371
380
  }
372
381
 
@@ -16,7 +16,6 @@ export default {
16
16
  },
17
17
 
18
18
  googleFont: null,
19
- // 'https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap',
20
19
 
21
20
  style: styles.default
22
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.145.9",
3
+ "version": "2.147.0",
4
4
  "description": "User Interface (UI) components",
5
5
  "keywords": [
6
6
  "ui",
@@ -116,5 +116,5 @@
116
116
  "peerDependencies": {
117
117
  "nuxt": "^2.18.1"
118
118
  },
119
- "gitHead": "6ac7859ef3e2f2c3637e97c21a253ecdde2d15e8"
119
+ "gitHead": "04f448d000159959051c8db238775b79326627e2"
120
120
  }
@@ -107,8 +107,8 @@ module.exports = {
107
107
  unset: 'unset'
108
108
  },
109
109
  fontFamily: {
110
- heading: ['Roboto', 'sans-serif'],
111
- body: ['Roboto', 'sans-serif']
110
+ heading: ['Inter', 'sans-serif'],
111
+ body: ['Inter', 'sans-serif']
112
112
  },
113
113
  fontSize: {
114
114
  xxs: '0.5rem',