@awes-io/ui 2.83.0 → 2.84.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 CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.84.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.83.0...@awes-io/ui@2.84.0) (2023-11-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * **vue-mc:** injectable system added ([98a6cb6](https://github.com/awes-io/client/commit/98a6cb6542122e4404817d63fa198e160dcc99b1))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.83.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.82.0...@awes-io/ui@2.83.0) (2023-11-15)
7
18
 
8
19
 
@@ -137,8 +137,8 @@
137
137
  &__content_lg {
138
138
  @apply px-10 text-base;
139
139
 
140
- padding-top: 1.25rem;
141
- padding-bottom: 1.25rem;
140
+ padding-top: 1rem;
141
+ padding-bottom: 1rem;
142
142
  }
143
143
 
144
144
  &.theme-icon &__content_lg,
@@ -61,8 +61,8 @@
61
61
  color: var(--c-on-surface);
62
62
  border-bottom-width: 1px;
63
63
 
64
- &-icon {
65
- margin-right: 1rem;
64
+ &-icon--mono {
65
+ color: var(--c-mono-400);
66
66
  }
67
67
 
68
68
  &-text {
@@ -126,6 +126,10 @@
126
126
  background-color: var(--c-mono-900);
127
127
  }
128
128
 
129
+ &--icon-mono svg {
130
+ color: var(--c-mono-400);
131
+ }
132
+
129
133
  &-text {
130
134
  text-overflow: ellipsis;
131
135
  overflow: hidden;
@@ -15,7 +15,7 @@
15
15
  <div class="aw-page-header__buttons">
16
16
  <slot />
17
17
 
18
- <AwUserMenu v-if="!hideMenu" outline vertical caret />
18
+ <AwUserMenu v-if="!hideMenu" outline vertical caret mono-icons />
19
19
 
20
20
  <slot name="after-menu" />
21
21
  </div>
@@ -54,6 +54,11 @@
54
54
  <AwIconSystemMono
55
55
  :size="24"
56
56
  class="aw-user-menu__theme-icon"
57
+ :class="{
58
+ 'aw-user-menu__theme-icon--mono': monoIcons,
59
+ 'mr-2': vertical ,
60
+ 'mr-4': !vertical
61
+ }"
57
62
  name="light"
58
63
  />
59
64
 
@@ -78,6 +83,7 @@
78
83
  v-bind="_pickButtonProps(item)"
79
84
  :class="[
80
85
  {
86
+ 'aw-user-menu__nav-item--icon-mono': monoIcons,
81
87
  'aw-user-menu__nav-item--active':
82
88
  item === activeMenu
83
89
  },
@@ -90,7 +96,7 @@
90
96
  <AwIcon
91
97
  v-if="item.icon"
92
98
  :name="item.icon"
93
- class="mr-2"
99
+ :class="{ 'mr-2': vertical , 'mr-4': !vertical }"
94
100
  />
95
101
 
96
102
  <span
@@ -130,7 +136,9 @@ export default {
130
136
 
131
137
  outline: Boolean,
132
138
 
133
- caret: Boolean
139
+ caret: Boolean,
140
+
141
+ monoIcons: Boolean
134
142
  },
135
143
 
136
144
  inject: {
@@ -16,7 +16,7 @@ export default {
16
16
  },
17
17
 
18
18
  googleFont:
19
- 'https://fonts.googleapis.com/css?family=Roboto:400,700|Ubuntu:400,500&display=swap',
19
+ 'https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap',
20
20
 
21
21
  style: styles.default
22
22
  }
@@ -22,3 +22,36 @@ export default ({ app }, inject) => {
22
22
  app.$awes = $awes
23
23
  inject('awes', $awes)
24
24
  }
25
+
26
+ // const wrapAuthHandler = (fn, context, redirect) => {
27
+ // return async (...args) => {
28
+ // try {
29
+ // return await fn.apply(context, args)
30
+ // } catch (e) {
31
+ // console.log(e)
32
+
33
+ // if (e.name === 'ExpiredAuthSessionError') {
34
+ // redirect('/login')
35
+ // } else {
36
+ // throw e
37
+ // }
38
+ // }
39
+ // }
40
+ // }
41
+
42
+ // export default ({ $axios, $dayjs, store, app, redirect }) => {
43
+ // // request overwrite to handle expired auth error
44
+ // const modelRequest = BaseModel.prototype.request
45
+ // const collectionRequest = BaseCollection.prototype.request
46
+
47
+ // BaseModel.prototype.request = wrapAuthHandler(
48
+ // modelRequest,
49
+ // BaseModel.prototype,
50
+ // redirect
51
+ // )
52
+ // BaseCollection.prototype.request = wrapAuthHandler(
53
+ // collectionRequest,
54
+ // BaseCollection.prototype,
55
+ // redirect
56
+ // )
57
+ // }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.83.0",
3
+ "version": "2.84.0",
4
4
  "description": "User Interface (UI) components",
5
5
  "keywords": [
6
6
  "ui",
@@ -113,5 +113,5 @@
113
113
  "rollup-plugin-visualizer": "^2.6.0",
114
114
  "rollup-plugin-vue": "^5.0.1"
115
115
  },
116
- "gitHead": "ea4f770f2aa8cd95e2ea082b2a03887a766d772c"
116
+ "gitHead": "078158dae22db6592008e4fc37c34e08ccfeb618"
117
117
  }
@@ -105,7 +105,7 @@ module.exports = {
105
105
  unset: 'unset'
106
106
  },
107
107
  fontFamily: {
108
- heading: ['Ubuntu', 'sans-serif'],
108
+ heading: ['Roboto', 'sans-serif'],
109
109
  body: ['Roboto', 'sans-serif']
110
110
  },
111
111
  fontSize: {