@awes-io/ui 2.94.1 → 2.95.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,20 @@
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.95.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.94.1...@awes-io/ui@2.95.0) (2024-02-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * add border radius for mobile modal ([23f00cc](https://github.com/awes-io/client/commit/23f00ccaf6970f601b60e57dbc3fd0a54d97cb01))
12
+ * add border radius for more page and new design for bottom bar ([1d236fd](https://github.com/awes-io/client/commit/1d236fd98863837ad879317ec69f1a8bdf924352))
13
+ * add new mono color for dark mobile ([2dcb05c](https://github.com/awes-io/client/commit/2dcb05c40263aabcf808207b08472d4c7103ba61))
14
+ * add width for mobile menu icon ([58268e7](https://github.com/awes-io/client/commit/58268e74230e4e801703d205960460c071dcfe52))
15
+
16
+
17
+
18
+
19
+
6
20
  ## [2.94.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.94.0...@awes-io/ui@2.94.1) (2024-02-12)
7
21
 
8
22
 
@@ -9,12 +9,12 @@
9
9
 
10
10
  position: fixed;
11
11
  bottom: 0;
12
- min-height: 4rem;
12
+ min-height: 4.5rem;
13
13
  width: 100%;
14
14
  z-index: 2;
15
15
 
16
16
  & > * {
17
- flex-basis: theme('spacing.20', 5rem);
17
+ flex-basis: theme('spacing.16', 4rem);
18
18
  flex-grow: 1;
19
19
  flex-shrink: 1;
20
20
  }
@@ -15,7 +15,7 @@
15
15
  .aw-select__dropdown {
16
16
  box-shadow: 0px 20px 40px rgba(var(--c-overlay-rgb), 0.1);
17
17
  border-radius: 10px;
18
- min-width: 250px;
18
+ min-width: 160px;
19
19
  border: 1px solid var(--c-mono-900);
20
20
  }
21
21
 
@@ -24,6 +24,18 @@
24
24
  color: var(--c-mono-100);
25
25
  }
26
26
  }
27
+
28
+ &:before {
29
+ border-radius: 0.625rem;
30
+ position: absolute;
31
+ top: 50%;
32
+ left: 50%;
33
+ transform: translate(-50%, -50%);
34
+ width: 3.5rem;
35
+ height: 3rem;
36
+ content: '';
37
+ background-color: var(--c-mono-800);
38
+ }
27
39
  }
28
40
 
29
41
  &__icon {
@@ -39,7 +51,7 @@
39
51
 
40
52
  padding: 0.515625rem 0.75rem;
41
53
 
42
- width: 100%;
54
+ width: 4.5rem;
43
55
  position: relative;
44
56
  }
45
57
  }
@@ -96,15 +108,14 @@
96
108
 
97
109
  &--active {
98
110
  &:before {
99
- border-radius: 0.625rem;
100
- position: absolute;
101
- top: 50%;
102
- left: 50%;
103
- transform: translate(-50%, -50%);
104
111
  width: 4rem;
105
112
  height: 3.0625rem;
106
- content: '';
107
- background-color: var(--c-mono-800);
113
+ }
114
+ }
115
+
116
+ &__icon {
117
+ &-block {
118
+ width: 100%;
108
119
  }
109
120
  }
110
121
  }
@@ -21,6 +21,9 @@ $modal-aside-width-large: 75vw;
21
21
 
22
22
  &__dialog {
23
23
  @apply relative max-w-full mx-auto bg-surface;
24
+
25
+ border-top-left-radius: 0.9375rem;
26
+ border-top-right-radius: 0.9375rem;
24
27
  }
25
28
 
26
29
  &__header {
@@ -120,6 +123,12 @@ $modal-aside-width-large: 75vw;
120
123
  }
121
124
  }
122
125
 
126
+ &[class*='is-aside'] & {
127
+ &__dialog {
128
+ border-radius: 0;
129
+ }
130
+ }
131
+
123
132
  &[class*='is-aside'] {
124
133
  left: auto;
125
134
  min-width: $modal-aside-width;
@@ -220,6 +229,12 @@ $modal-aside-width-large: 75vw;
220
229
  width: calc(100% + 4rem);
221
230
  }
222
231
 
232
+ &[class*='is-fullscreen'] &, &[class*='is-overlay-aside'] & {
233
+ &__dialog {
234
+ border-radius: 0;
235
+ }
236
+ }
237
+
223
238
  &:not(.is-aside):not([class*='is-overlay-aside']) &__header {
224
239
  @apply items-center justify-center px-8;
225
240
  }
@@ -234,7 +249,7 @@ $modal-aside-width-large: 75vw;
234
249
 
235
250
  &:not(.is-aside):not([class*='is-overlay-aside']) &__title,
236
251
  &:not(.is-aside):not([class*='is-overlay-aside']) &__subtitle {
237
- @apply text-center;
252
+ @apply text-center mx-auto;
238
253
  }
239
254
 
240
255
  &:not(.is-aside):not([class*='is-overlay-aside']) &__subtitle {
@@ -352,6 +367,10 @@ $modal-aside-width-large: 75vw;
352
367
  max-width: 580px;
353
368
  }
354
369
 
370
+ &.is-fullscreen &__dialog, &.is-overlay-aside &__dialog {
371
+ border-radius: 0;
372
+ }
373
+
355
374
  &.is-fullscreen &__header {
356
375
  @apply pt-16;
357
376
  }
@@ -2,7 +2,7 @@
2
2
  @apply bg-page-bg;
3
3
  width: 100%;
4
4
  min-height: 100vh;
5
- padding-bottom: calc(5rem + var(--page-buttons-bottom, 0px));
5
+ padding-bottom: 9.5rem;
6
6
 
7
7
  &__profile {
8
8
  display: flex;
@@ -11,7 +11,7 @@
11
11
  flex-direction: column;
12
12
 
13
13
  background: var(--c-surface);
14
- border-radius: 0 0 0.9375rem 0.9375rem;
14
+ border-radius: 0.9375rem;
15
15
  padding: 1.9375rem 1.5rem 1.5rem;
16
16
  }
17
17
 
@@ -30,6 +30,7 @@
30
30
  * Prism highlight
31
31
  */
32
32
  @import 'prismjs/themes/prism.css';
33
+
33
34
  [data-dark="true"] {
34
35
  pre[class*="language-"] {
35
36
  background-color: theme('darkTheme.colors.surface');
@@ -43,6 +44,45 @@
43
44
  }
44
45
  }
45
46
  }
47
+
48
+ @screen lg {
49
+ :root[data-dark='true'] {
50
+ --c-surface: #313236;
51
+
52
+ --c-page-bg: #1e1e21;
53
+
54
+ --c-mono-0: #ffffff;
55
+ --c-mono-50: #f3f5f7;
56
+ --c-mono-100: #eaeaeb;
57
+ --c-mono-200: #d5d5d6;
58
+ --c-mono-300: #c0c1c2;
59
+ --c-mono-400: #abacad;
60
+ --c-mono-500: #979799;
61
+ --c-mono-600: #828285;
62
+ --c-mono-700: #6d6d70;
63
+ --c-mono-800: #46474a;
64
+ --c-mono-900: #434447;
65
+ --c-mono-1000: #2e2f33;
66
+
67
+ --c-surface-rgb: 49,50,54;
68
+
69
+ --c-page-bg-rgb: 30,30,33;
70
+
71
+ --c-mono-0-rgb: 255,255,255;
72
+ --c-mono-50-rgb: 243,245,247;
73
+ --c-mono-100-rgb: 234,234,235;
74
+ --c-mono-200-rgb: 213,213,214;
75
+ --c-mono-300-rgb: 192,193,194;
76
+ --c-mono-400-rgb: 171,172,173;
77
+ --c-mono-500-rgb: 151,151,153;
78
+ --c-mono-600-rgb: 130,130,133;
79
+ --c-mono-700-rgb: 109,109,112;
80
+ --c-mono-800-rgb: 70,71,74;
81
+ --c-mono-900-rgb: 67,68,71;
82
+ --c-mono-1000-rgb: 46,47,51;
83
+ }
84
+ }
85
+
46
86
  pre[class*="language-"] {
47
87
  margin-top: 0;
48
88
  margin-bottom: 0;
@@ -1,4 +1,4 @@
1
- import { keys } from "rambdax"
1
+ import { keys } from 'rambdax'
2
2
 
3
3
  export const CUSTOM_COLORS = {
4
4
  red: '#fa0000',
@@ -115,22 +115,22 @@ export default {
115
115
  error: '#FF4931',
116
116
  'error-hover': '#E6422C',
117
117
 
118
- surface: '#313236',
119
- 'page-bg': '#1E1E21',
118
+ surface: '#141414',
119
+ 'page-bg': '#010101',
120
120
  overlay: 'rgba(0, 0, 0, 0.5)',
121
121
 
122
- 'mono-0': '#fff',
123
- 'mono-50': '#f3f5f7',
124
- 'mono-100': '#EAEAEB',
125
- 'mono-200': '#D5D5D6',
126
- 'mono-300': '#C0C1C2',
122
+ 'mono-0': '#FFFFFF',
123
+ 'mono-50': '#DBDDDE',
124
+ 'mono-100': '#D3D3D4',
125
+ 'mono-200': '#C0C0C1',
126
+ 'mono-300': '#9A9B9C',
127
127
  'mono-400': '#ABACAD',
128
- 'mono-500': '#979799',
129
- 'mono-600': '#828285',
130
- 'mono-700': '#6D6D70',
131
- 'mono-800': '#46474A',
128
+ 'mono-500': '#88888A',
129
+ 'mono-600': '#757578',
130
+ 'mono-700': '#626265',
131
+ 'mono-800': '#3C3D40',
132
132
  'mono-900': '#434447',
133
- 'mono-1000': '#2E2F33',
133
+ 'mono-1000': '#292A2E',
134
134
 
135
135
  ...CUSTOM_COLORS_BG_DARK
136
136
  },
@@ -169,12 +169,10 @@ const CSS_COLOR_RE = /(#(?:[0-9a-f]{2}){2,4}|#[0-9a-f]{3}|(?:rgba?|hsla?)\((?:\d
169
169
 
170
170
  export const isCssColor = (color) => CSS_COLOR_RE.test(color)
171
171
 
172
- export const isCustomColor = color => CUSTOM_COLORS_KEYS.includes(color)
172
+ export const isCustomColor = (color) => CUSTOM_COLORS_KEYS.includes(color)
173
173
 
174
174
  export const toColor = (color) =>
175
- isCssColor(color || '')
176
- ? color
177
- : `var(--c-${(color || '').toLowerCase()})`
175
+ isCssColor(color || '') ? color : `var(--c-${(color || '').toLowerCase()})`
178
176
 
179
177
  export const toOnColor = (color) =>
180
178
  (color || '').startsWith('#')
@@ -45,7 +45,7 @@ import AwMenuItemIcon from '@AwLayouts/_AwMenuItemIcon.vue'
45
45
 
46
46
  export const VISIBLE_ITEMS_COUNT = 4
47
47
 
48
- const ICON_SIZE = 28
48
+ const ICON_SIZE = 18
49
49
 
50
50
  const ACTION_ICON_SIZE = 36
51
51
 
@@ -9,7 +9,9 @@
9
9
  <slot name="heading" v-bind="{ titleTag, title, breadcrumb }">
10
10
  <AwPageHeadline
11
11
  :style="{
12
- '--page-buttons-bottom': _hideBottomBar ? null : '4rem'
12
+ '--page-buttons-bottom': _hideBottomBar
13
+ ? null
14
+ : '4.5rem'
13
15
  }"
14
16
  :title="_title"
15
17
  :breadcrumb="breadcrumb"
@@ -48,7 +50,7 @@
48
50
  'aw-page__content_fake-fullscreen': isFakeFullscreen
49
51
  }"
50
52
  :style="{
51
- '--page-buttons-bottom': _hideBottomBar ? null : '4rem'
53
+ '--page-buttons-bottom': _hideBottomBar ? null : '4.5rem'
52
54
  }"
53
55
  >
54
56
  <!-- eslint-disable prettier/prettier -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.94.1",
3
+ "version": "2.95.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": "83f5cd91ba1e5447dcabd88201f143a656fffc27"
117
+ "gitHead": "5370f6445c32f26d9f569f4d5e1109caebbb9e1a"
118
118
  }