@awes-io/ui 2.94.1 → 2.96.1

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,42 @@
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.96.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.96.0...@awes-io/ui@2.96.1) (2024-02-17)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * updated versions ([72b7aef](https://github.com/awes-io/client/commit/72b7aeffccb6789009703d4008569d4b079be9c8))
12
+
13
+
14
+
15
+
16
+
17
+ # [2.96.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.95.0...@awes-io/ui@2.96.0) (2024-02-17)
18
+
19
+
20
+ ### Features
21
+
22
+ * some changes in style and logic in mobile menu ([0153aed](https://github.com/awes-io/client/commit/0153aed8c1d68593210f965c532d48581f03a0f2))
23
+
24
+
25
+
26
+
27
+
28
+ # [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)
29
+
30
+
31
+ ### Features
32
+
33
+ * add border radius for mobile modal ([23f00cc](https://github.com/awes-io/client/commit/23f00ccaf6970f601b60e57dbc3fd0a54d97cb01))
34
+ * add border radius for more page and new design for bottom bar ([1d236fd](https://github.com/awes-io/client/commit/1d236fd98863837ad879317ec69f1a8bdf924352))
35
+ * add new mono color for dark mobile ([2dcb05c](https://github.com/awes-io/client/commit/2dcb05c40263aabcf808207b08472d4c7103ba61))
36
+ * add width for mobile menu icon ([58268e7](https://github.com/awes-io/client/commit/58268e74230e4e801703d205960460c071dcfe52))
37
+
38
+
39
+
40
+
41
+
6
42
  ## [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
43
 
8
44
 
@@ -3,18 +3,17 @@
3
3
  --icon-color-active: var(--c-accent, currentColor);
4
4
  @apply bg-surface;
5
5
  display: flex;
6
- padding-bottom: env(safe-area-inset-bottom, 0);
7
6
  box-shadow: none;
8
7
  border-top: 1px solid rgba(var(--c-on-surface-rgb), .1);
9
8
 
10
9
  position: fixed;
11
10
  bottom: 0;
12
- min-height: 4rem;
11
+ min-height: 3.5rem;
13
12
  width: 100%;
14
13
  z-index: 2;
15
14
 
16
15
  & > * {
17
- flex-basis: theme('spacing.20', 5rem);
16
+ flex-basis: 9rem;
18
17
  flex-grow: 1;
19
18
  flex-shrink: 1;
20
19
  }
@@ -23,8 +22,7 @@
23
22
  &:after {
24
23
  content: '';
25
24
  display: block;
26
- flex-basis: 50%;
27
- flex-grow: 20;
25
+ flex-grow: 1;
28
26
  flex-shrink: 10;
29
27
  }
30
28
  }
@@ -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
 
@@ -5,6 +5,7 @@
5
5
  align-items: center;
6
6
  color: inherit;
7
7
  width: 100%;
8
+ max-width: 144px;
8
9
 
9
10
  position: relative;
10
11
 
@@ -37,10 +38,10 @@
37
38
  justify-content: center;
38
39
  flex-direction: column;
39
40
 
40
- padding: 0.515625rem 0.75rem;
41
+ padding: 0.5rem 0.125rem;
41
42
 
42
- width: 100%;
43
43
  position: relative;
44
+ max-width: 100%;
44
45
  }
45
46
  }
46
47
 
@@ -107,5 +108,12 @@
107
108
  background-color: var(--c-mono-800);
108
109
  }
109
110
  }
111
+
112
+ &__icon {
113
+ &-block {
114
+ padding: 0.515625rem 0.75rem;
115
+ width: 100%;
116
+ }
117
+ }
110
118
  }
111
119
  }
@@ -56,7 +56,7 @@
56
56
 
57
57
  &--island {
58
58
  padding: 1.5rem;
59
- border-radius: 1.25rem;
59
+ border-radius: 0.9375rem;
60
60
 
61
61
  .aw-mobile-menu-item {
62
62
  &__icon-bg {
@@ -15,7 +15,7 @@
15
15
  list-style: none;
16
16
  padding: 0;
17
17
  margin: 0;
18
- border-radius: 1.25rem;
18
+ border-radius: 0.9375rem;
19
19
  }
20
20
 
21
21
  li + li .aw-mobile-menu-nav__item--divide {
@@ -37,7 +37,7 @@
37
37
 
38
38
  li + li .aw-mobile-menu-item--island {
39
39
  position: relative;
40
- margin-top: 0.125rem;
40
+ margin-top: 0.25rem;
41
41
  }
42
42
  }
43
43
 
@@ -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;
@@ -58,7 +58,7 @@ export const ICONS = {
58
58
  'M4.58 3h14.85A3.57 3.57 0 0 1 23 6.37v10.66a3.57 3.57 0 0 1-3.37 3.56l-.2.01H4.58a3.57 3.57 0 0 1-3.57-3.37V6.58A3.58 3.58 0 0 1 4.37 3l.2-.01Zm16.77 5.91-8.96 4.72a.82.82 0 0 1-.66.05l-.1-.05-8.98-4.72v8.12a1.92 1.92 0 0 0 1.77 1.91l.16.01h14.85a1.93 1.93 0 0 0 1.92-1.77V8.91Zm-1.92-4.26H4.58a1.93 1.93 0 0 0-1.92 1.77v.63L12 11.97l9.35-4.92v-.47a1.93 1.93 0 0 0-1.76-1.92l-.16-.01Z',
59
59
  menu: 'M1 4h22v1.7H1zM1 18.3h22V20H1zM1 11.15h22v1.7H1z',
60
60
  'menu-dots':
61
- 'M6.11 8.23a2.115 2.115 0 0 0 2.28-2.112 2.12 2.12 0 0 0-2.28-2.112 2.116 2.116 0 0 0-1.953 2.112A2.12 2.12 0 0 0 6.11 8.23Zm2.117 9.488A2.12 2.12 0 0 1 6.117 20a2.116 2.116 0 0 1-2.11-2.282 2.119 2.119 0 0 1 2.11-1.954 2.115 2.115 0 0 1 2.11 1.954ZM17.72 8.23A2.115 2.115 0 0 0 20 6.118a2.119 2.119 0 0 0-2.28-2.112 2.116 2.116 0 0 0-1.953 2.112A2.119 2.119 0 0 0 17.72 8.23Zm2.104 9.488a2.122 2.122 0 0 1-1.263 2.105 2.116 2.116 0 0 1-2.958-2.105 2.119 2.119 0 0 1 2.11-1.954 2.115 2.115 0 0 1 2.11 1.954Z',
61
+ 'M4.83 7.33a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm15.34 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM7.83 19.67a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm12.34 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z',
62
62
  more:
63
63
  'M4.5 14.25a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5ZM12 14.25a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5ZM19.5 14.25a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5Z',
64
64
  'more-v':
@@ -69,6 +69,8 @@ export const ICONS = {
69
69
  'M12 3a1.35 1.35 0 0 1 1.35 1.35v6.3h6.3a1.35 1.35 0 1 1 0 2.7h-6.3v6.3a1.35 1.35 0 1 1-2.7 0v-6.3h-6.3a1.35 1.35 0 0 1 0-2.7h6.3v-6.3A1.35 1.35 0 0 1 12 3Z',
70
70
  'plus-circle':
71
71
  'M17.7 11.7v.6a.5.5 0 0 1-.6.5h-4.3v4.3a.5.5 0 0 1-.5.6h-.6a.5.5 0 0 1-.5-.6v-4.3H6.9a.5.5 0 0 1-.6-.5v-.6a.5.5 0 0 1 .6-.5h4.3V6.9a.5.5 0 0 1 .5-.6h.6a.5.5 0 0 1 .5.6v4.3h4.3a.5.5 0 0 1 .6.5Zm5.3.3a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-1.4 0a9.6 9.6 0 1 0-19.2 0 9.6 9.6 0 0 0 19.2 0Z',
72
+ 'plus-fill-square':
73
+ 'M6 0a6 6 0 0 0-6 6v12a6 6 0 0 0 6 6h12a6 6 0 0 0 6-6V6a6 6 0 0 0-6-6H6Zm6.38 8.56a.54.54 0 0 0-.92.38v2.52H8.94a.54.54 0 0 0 0 1.08h2.52v2.52a.54.54 0 1 0 1.08 0v-2.52h2.52a.54.54 0 1 0 0-1.08h-2.52V8.94a.54.54 0 0 0-.16-.38Z',
72
74
  save:
73
75
  'M2 5.06A3.06 3.06 0 0 1 5.06 2h11.07a3.61 3.61 0 0 1 2.55 1.06l2.26 2.26C21.62 6 22 6.92 22 7.87v11.07A3.06 3.06 0 0 1 18.94 22H5.06A3.06 3.06 0 0 1 2 18.94V5.06Zm3.06-1.4c-.77 0-1.4.63-1.4 1.4v13.88c0 .77.63 1.4 1.4 1.4h.27V14.5a2.5 2.5 0 0 1 2.5-2.5h8.34a2.5 2.5 0 0 1 2.5 2.5v5.83h.27c.77 0 1.4-.62 1.4-1.39V7.87c0-.51-.21-1-.58-1.37L17.5 4.24a1.94 1.94 0 0 0-1.06-.55v3.03a2.5 2.5 0 0 1-2.5 2.5h-5a2.5 2.5 0 0 1-2.5-2.5V3.67H5.06ZM17 20.34V14.5a.83.83 0 0 0-.83-.83H7.83a.83.83 0 0 0-.83.83v5.83h10ZM8.11 3.67v3.05c0 .46.37.84.83.84h5a.83.83 0 0 0 .84-.84V3.67H8.1Z',
74
76
  search:
@@ -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,9 +45,9 @@ 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 = 24
49
49
 
50
- const ACTION_ICON_SIZE = 36
50
+ const ACTION_ICON_SIZE = 40
51
51
 
52
52
  export default {
53
53
  name: 'AwBottomBar',
@@ -123,7 +123,9 @@ export default {
123
123
  _pickItemProps(props) {
124
124
  return {
125
125
  ...omit('children,listeners', props),
126
- size: props.hideText ? ACTION_ICON_SIZE : ICON_SIZE
126
+ size: props.hideText ? ACTION_ICON_SIZE : ICON_SIZE,
127
+ icon: props.hideText ? 'awesio/plus-fill-square' : props.icon,
128
+ class: props.hideText ? 'aw-icon-menu-item--active' : ''
127
129
  }
128
130
  }
129
131
  }
@@ -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
+ : '3.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 : '3.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.96.1",
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": "2923cbb7535243156f99d358df5613ba85f9db6e"
118
118
  }
package/readme.md CHANGED
@@ -1 +1 @@
1
- Awes.io/Ui 424
1
+ Awes.io/Ui 321