@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.
- package/CHANGELOG.md +23 -0
- package/assets/css/components/action-button.css +83 -13
- package/assets/css/components/alert.css +5 -0
- package/assets/css/components/button-nav.css +87 -0
- package/assets/css/components/button.css +16 -0
- package/assets/css/components/card.css +29 -0
- package/assets/css/components/icon-menu-item.css +1 -1
- package/assets/css/components/nav.css +6 -0
- package/assets/css/components/page-header.css +16 -0
- package/assets/css/components/page.css +9 -0
- package/assets/css/components/progress.css +22 -0
- package/assets/css/components/switch-field.css +36 -0
- package/assets/css/components/tags.css +31 -2
- package/assets/css/components/text-field.css +16 -0
- package/assets/css/fonts.css +44 -0
- package/assets/css/main.css +1 -0
- package/components/1_atoms/AwActionIcon.vue +2 -2
- package/components/1_atoms/AwCard.vue +14 -3
- package/components/1_atoms/AwProgress.vue +9 -0
- package/components/1_atoms/AwSwitcher.vue +4 -1
- package/components/1_atoms/AwTag.vue +44 -2
- package/components/2_molecules/AwActionButton.vue +39 -11
- package/components/2_molecules/AwButton.vue +9 -1
- package/components/4_pages/AwPage.vue +66 -22
- package/components/5_layouts/AwLayoutProvider.vue +1 -1
- package/components/5_layouts/_AwNav.vue +15 -0
- package/docs/components/atoms/aw-action-icon.md +1 -1
- package/docs/components/atoms/aw-card.md +11 -0
- package/docs/components/atoms/aw-input.md +1 -0
- package/docs/components/atoms/aw-progress.md +9 -0
- package/docs/components/atoms/aw-tag.md +23 -2
- package/docs/components/layouts/aw-layout-provider.md +2 -1
- package/docs/components/molecules/aw-action-button.md +41 -1
- package/docs/components/molecules/aw-button.md +14 -0
- package/docs/components/pages/aw-page.md +10 -0
- package/docs/configuration.md +15 -6
- package/nuxt/awes.config.js +0 -1
- package/package.json +2 -2
- package/tailwind.config.js +2 -2
package/docs/configuration.md
CHANGED
|
@@ -82,17 +82,28 @@ export default {
|
|
|
82
82
|
|
|
83
83
|
**Default:** `'https://static.awes.io/demo/awes-background.svg'`
|
|
84
84
|
|
|
85
|
-
####
|
|
85
|
+
#### Fonts
|
|
86
86
|
|
|
87
|
-
|
|
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/
|
|
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:**
|
|
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
|
|
package/nuxt/awes.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.
|
|
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": "
|
|
119
|
+
"gitHead": "04f448d000159959051c8db238775b79326627e2"
|
|
120
120
|
}
|
package/tailwind.config.js
CHANGED
|
@@ -107,8 +107,8 @@ module.exports = {
|
|
|
107
107
|
unset: 'unset'
|
|
108
108
|
},
|
|
109
109
|
fontFamily: {
|
|
110
|
-
heading: ['
|
|
111
|
-
body: ['
|
|
110
|
+
heading: ['Inter', 'sans-serif'],
|
|
111
|
+
body: ['Inter', 'sans-serif']
|
|
112
112
|
},
|
|
113
113
|
fontSize: {
|
|
114
114
|
xxs: '0.5rem',
|