@awes-io/ui 2.119.0 → 2.121.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,36 @@
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.121.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.120.0...@awes-io/ui@2.121.0) (2024-12-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * fix lint in page header style ([bf9c866](https://github.com/awes-io/client/commit/bf9c866a37e01398812f94c19deb9f6e6f20272a))
12
+ * fix style in dropdown ([83e3bd7](https://github.com/awes-io/client/commit/83e3bd74b46c0dfcffe6b22d9bd7fd3532810985))
13
+
14
+
15
+ ### Features
16
+
17
+ * change style for dropdown ([44cda8d](https://github.com/awes-io/client/commit/44cda8dc492630af310f0fdf25a6c49965931222))
18
+ * change style in header and mob menu ([3d4ae6f](https://github.com/awes-io/client/commit/3d4ae6f8ac3b988c28b6bb934910ad91f9b8ceea))
19
+
20
+
21
+
22
+
23
+
24
+ # [2.120.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.119.0...@awes-io/ui@2.120.0) (2024-12-06)
25
+
26
+
27
+ ### Features
28
+
29
+ * change style for header and header notification ([d9ba150](https://github.com/awes-io/client/commit/d9ba150a719410cb26e2fcd8a70a47f4b8b65a3c))
30
+ * change style place in header notification ([e56664e](https://github.com/awes-io/client/commit/e56664e735fcdeb0dc90e11341c1ad63e9c97c8b))
31
+
32
+
33
+
34
+
35
+
6
36
  # [2.119.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.118.1...@awes-io/ui@2.119.0) (2024-12-03)
7
37
 
8
38
 
@@ -20,7 +20,8 @@
20
20
  }
21
21
 
22
22
  &--mobile {
23
- padding: calc(env(safe-area-inset-top, 0px) + 0.5rem) theme('spacing.2', 0.5rem) calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
23
+ padding: calc(env(safe-area-inset-top, 0px) + 0.5rem) 1rem
24
+ calc(env(safe-area-inset-bottom, 0px) + 1rem);
24
25
 
25
26
  display: flex;
26
27
  flex-direction: column;
@@ -56,9 +57,9 @@
56
57
  border-radius: 0.625rem 0.625rem 0 0;
57
58
 
58
59
  & + .aw-dropdown__content--mobile {
59
- border-top-left-radius: 0;
60
- border-top-right-radius: 0;
61
- border-top: 1px solid var(--c-mono-900);
60
+ border-top-left-radius: 0;
61
+ border-top-right-radius: 0;
62
+ border-top: 1px solid var(--c-mono-900);
62
63
  }
63
64
  }
64
65
 
@@ -96,7 +97,7 @@
96
97
 
97
98
  &__close {
98
99
  width: 100%;
99
- margin-top: theme('spacing.2', 0.5rem);
100
+ margin-top: 1rem;
100
101
  padding-top: 0;
101
102
  padding-bottom: 0;
102
103
  flex-shrink: 0;
@@ -111,17 +112,17 @@
111
112
  }
112
113
 
113
114
  .caret {
114
- transition: 200ms transform ease-out
115
+ transition: 200ms transform ease-out;
115
116
  }
116
117
 
117
118
  .rotate-90 {
118
- transform: rotate(-90deg)
119
+ transform: rotate(-90deg);
119
120
  }
120
121
 
121
122
  .rotate-180 {
122
- transform: rotate(-180deg)
123
+ transform: rotate(-180deg);
123
124
  }
124
125
 
125
126
  .transition-200 {
126
- transition: 200ms transform
127
+ transition: 200ms transform;
127
128
  }
@@ -3,6 +3,24 @@
3
3
  align-items: flex-start;
4
4
  padding-top: env(safe-area-inset-top, 0px);
5
5
 
6
+ &__wrapper {
7
+ display: flex;
8
+ flex: auto;
9
+ flex-direction: column;
10
+ gap: 1rem;
11
+ padding: 1rem 0.5rem 1rem 1rem;
12
+
13
+ &-content {
14
+ display: flex;
15
+ gap: 0.5rem;
16
+ }
17
+
18
+ &-buttons {
19
+ display: flex;
20
+ gap: 1rem;
21
+ }
22
+ }
23
+
6
24
  &__content {
7
25
  flex-grow: 1;
8
26
 
@@ -32,3 +50,17 @@
32
50
  --header-padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-padding-bottom, 0.5rem));
33
51
  }
34
52
  }
53
+
54
+ @screen md {
55
+ .aw-header-notification {
56
+ &__wrapper {
57
+ flex-direction: row;
58
+ align-items: center;
59
+ justify-content: center;
60
+
61
+ &-content {
62
+ align-items: center;
63
+ }
64
+ }
65
+ }
66
+ }
@@ -1,6 +1,7 @@
1
1
  .aw-page-header {
2
2
  display: flex;
3
3
  align-items: center;
4
+ justify-content: space-between;
4
5
  gap: 1rem;
5
6
 
6
7
  padding: var(--header-padding-top) var(--header-padding-horizontal) var(--header-padding-bottom);
@@ -54,10 +55,14 @@
54
55
 
55
56
  margin: 0;
56
57
 
57
- font-size: 1.25rem;
58
- line-height: 1.4285;
58
+ font-size: 0.875rem;
59
+ line-height: 1.25rem;
59
60
  font-weight: 700;
60
- text-align: start;
61
+ text-align: center;
62
+ overflow: hidden;
63
+ text-overflow: ellipsis;
64
+ white-space: nowrap;
65
+ display: block;
61
66
 
62
67
  &--showable {
63
68
  opacity: 0;
@@ -77,10 +82,11 @@
77
82
 
78
83
  &__breadcrumbs,
79
84
  &__buttons {
80
- flex: 1 1 3rem;
85
+ flex: unset;
81
86
 
82
87
  display: flex;
83
88
  gap: 1rem;
89
+ min-width: 3rem;
84
90
  }
85
91
 
86
92
  &__buttons {
@@ -94,15 +100,6 @@
94
100
  &__title {
95
101
  flex: 1 1 max-content;
96
102
  }
97
-
98
- &__breadcrumbs,
99
- &__buttons {
100
- flex: 1 0 max-content;
101
- }
102
-
103
- &__buttons {
104
- min-width: max-content;
105
- }
106
103
  }
107
104
  }
108
105
 
@@ -117,29 +114,20 @@
117
114
 
118
115
  &__title {
119
116
  font-size: 1.25rem;
120
- line-height: 1.2;
117
+ line-height: 1.4285;
121
118
  }
122
119
 
123
120
  &--container {
124
- gap: 0;
125
-
126
121
  position: static;
127
122
  }
128
123
 
129
- :where(&--container) &__breadcrumbs {
130
- flex: 0 0 calc(50% - var(--header-container-width) / 2 + var(--header-padding-horizontal));
131
- }
132
-
133
- &:where(:not(&--container)) &__title {
134
- position: absolute;
135
- top: 50%;
136
- left: 50%;
137
- transform: translate(-50%, -50%);
138
- }
139
-
140
124
  :where(&--container) &__title {
141
125
  text-align: left;
142
- margin-right: 1rem;
126
+ }
127
+
128
+ &__breadcrumbs,
129
+ &__buttons {
130
+ min-width: 2.5rem;
143
131
  }
144
132
 
145
133
  /* :where(&--container) &__buttons {
@@ -56,7 +56,6 @@ export const CUSTOM_COLORS_BG_DARK = {
56
56
  export default {
57
57
  default: {
58
58
  colors: {
59
- white: '#ffffff',
60
59
  accent: '#56af40',
61
60
  'accent-hover': '#469E30',
62
61
  success: '#56af40',
@@ -115,7 +114,6 @@ export default {
115
114
  },
116
115
  dark: {
117
116
  colors: {
118
- white: '#ffffff',
119
117
  accent: '#56af40',
120
118
  success: '#56af40',
121
119
  info: '#4a7fe4',
@@ -7,22 +7,30 @@
7
7
  }"
8
8
  class="aw-header-notification"
9
9
  >
10
- <!-- conent -->
11
- <AwFlow
12
- :gap="2"
13
- tag="div"
14
- class="aw-header-notification__content container-fluid"
15
- >
16
- <AwIcon v-if="config.icon" :name="config.icon" />
17
- <span v-html="$sanitize(config.text)" class="text-center"></span>
18
- <AwButton
19
- v-for="({ listeners, ...props }, i) in config.buttons"
20
- :key="i"
21
- size="xs"
22
- v-bind="props"
23
- v-on="listeners"
24
- />
25
- </AwFlow>
10
+ <div class="aw-header-notification__wrapper">
11
+ <div class="aw-header-notification__wrapper-content">
12
+ <AwIcon
13
+ v-if="config.icon"
14
+ class="flex-none"
15
+ :name="config.icon"
16
+ />
17
+
18
+ <div v-html="$sanitize(config.text)" />
19
+ </div>
20
+
21
+ <div
22
+ v-if="config.buttons.length"
23
+ class="aw-header-notification__wrapper-buttons"
24
+ >
25
+ <AwButton
26
+ v-for="({ listeners, ...props }, i) in config.buttons"
27
+ :key="i"
28
+ size="xs"
29
+ v-bind="props"
30
+ v-on="listeners"
31
+ />
32
+ </div>
33
+ </div>
26
34
 
27
35
  <!-- close -->
28
36
  <AwButton
@@ -41,7 +41,13 @@
41
41
  size="112"
42
42
  />
43
43
 
44
- <AwAvatar v-else :src="user.src" :name="user.name" size="112" />
44
+ <AwAvatar
45
+ data-dark="false"
46
+ v-else
47
+ :src="user.src"
48
+ :name="user.name"
49
+ size="112"
50
+ />
45
51
 
46
52
  <AwHeadline tag="span" class="aw-more__profile-name mt-2">
47
53
  {{ user.name }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.119.0",
3
+ "version": "2.121.0",
4
4
  "description": "User Interface (UI) components",
5
5
  "keywords": [
6
6
  "ui",
@@ -114,5 +114,5 @@
114
114
  "rollup-plugin-visualizer": "^2.6.0",
115
115
  "rollup-plugin-vue": "^5.0.1"
116
116
  },
117
- "gitHead": "f9ac1c4a9f97c7786f5d25ff792d005ca23b8d75"
117
+ "gitHead": "8c460613dafa69173974783cdcd162510aefb9fe"
118
118
  }