@awes-io/ui 2.146.0 → 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 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.147.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.146.0...@awes-io/ui@2.147.0) (2026-12-03)
7
+
8
+
9
+ ### Features
10
+
11
+ * **ui:** title size of card, new look of button nav (EW-1433) ([d07c573](https://github.com/awes-io/client/commit/d07c5731b8cc2d322f1b4ce7f2d1e0427f95fb8f))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.146.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.145.9...@awes-io/ui@2.146.0) (2026-12-03)
7
18
 
8
19
 
@@ -241,3 +241,90 @@
241
241
  }
242
242
  }
243
243
  }
244
+
245
+ .aw-slider.aw-button-nav {
246
+ border-radius: 0.75rem;
247
+ }
248
+
249
+ :where(.aw-slider) .aw-button-nav__toggler {
250
+ padding: 0.1875rem 0.0625rem;
251
+
252
+ border: 0;
253
+ background-color: rgba(var(--c-mono-100-rgb), 0.05);
254
+
255
+ font-size: 0.84375rem;
256
+ font-weight: 500;
257
+
258
+ &:first-child {
259
+ padding-left: 0.1875rem;
260
+
261
+ border: 0;
262
+ border-radius: 0.75rem 0 0 0.75rem;
263
+ }
264
+
265
+ &:last-child {
266
+ padding-right: 0.1875rem;
267
+
268
+ border: 0;
269
+ border-radius: 0 0.75rem 0.75rem 0;
270
+ }
271
+
272
+ &:only-child {
273
+ border-radius: 0.75rem;
274
+ }
275
+
276
+ & > span {
277
+ min-width: 0;
278
+ min-height: 2.125rem;
279
+ padding-left: 0.75rem;
280
+ padding-right: 0.75rem;
281
+
282
+ border-radius: 0.5625rem;
283
+
284
+ color: var(--c-mono-300);
285
+ }
286
+
287
+ & .aw-icon.mr-1 {
288
+ margin-right: 0;
289
+ margin-inline-end: 0.375rem;
290
+ }
291
+ }
292
+
293
+ :where(.aw-slider) .aw-button-nav__toggler_no_text > span {
294
+ padding-left: 0.625rem;
295
+ padding-right: 0.625rem;
296
+
297
+ font-size: 1rem;
298
+ }
299
+
300
+ :where(.aw-slider) .aw-button-nav__toggler_active > span {
301
+ border-radius: 0.5625rem;
302
+ box-shadow: none;
303
+
304
+ color: var(--c-on-surface);
305
+ font-weight: 600;
306
+ }
307
+
308
+ :where(.aw-slider).aw-button-nav--without-min-with .aw-button-nav__toggler > span {
309
+ min-width: 2.375rem;
310
+ padding-left: 0.5rem;
311
+ padding-right: 0.5rem;
312
+ }
313
+
314
+ [dir='rtl'] :where(.aw-slider) .aw-button-nav__toggler:first-child {
315
+ padding-left: 0.0625rem;
316
+ padding-right: 0.1875rem;
317
+
318
+ border-radius: 0 0.75rem 0.75rem 0;
319
+ }
320
+
321
+ [dir='rtl'] :where(.aw-slider) .aw-button-nav__toggler:last-child {
322
+ padding-left: 0.1875rem;
323
+ padding-right: 0.0625rem;
324
+
325
+ border-radius: 0.75rem 0 0 0.75rem;
326
+ }
327
+
328
+ [dir='rtl'] :where(.aw-slider) .aw-button-nav__toggler:only-child {
329
+ border-radius: 0.75rem;
330
+ }
@@ -21,6 +21,14 @@
21
21
  line-height: 1.5;
22
22
  }
23
23
 
24
+ &__heading {
25
+ margin: 0;
26
+
27
+ font-size: inherit;
28
+ font-weight: 700;
29
+ line-height: inherit;
30
+ }
31
+
24
32
  &__header {
25
33
  display: flex;
26
34
  flex-direction: column;
@@ -31,6 +39,20 @@
31
39
  }
32
40
  }
33
41
 
42
+ &__header--title-sm &__title {
43
+ font-size: 0.875rem;
44
+ line-height: 1.4285;
45
+ color: var(--c-mono-300);
46
+ }
47
+
48
+ &__header--title-sm &__heading {
49
+ font-weight: 600;
50
+ }
51
+
52
+ &__header--title-sm&__header--offset {
53
+ margin-bottom: 0.75rem;
54
+ }
55
+
34
56
  &__header-badge {
35
57
  flex-shrink: 0;
36
58
  align-self: flex-start;
@@ -4,13 +4,16 @@
4
4
  <div
5
5
  v-if="showHeader"
6
6
  class="aw-card__header"
7
- :class="{ 'aw-card__header--offset': hasContent }"
7
+ :class="[
8
+ `aw-card__header--title-${titleSize}`,
9
+ { 'aw-card__header--offset': hasContent }
10
+ ]"
8
11
  >
9
12
  <div class="aw-card__title">
10
13
  <slot name="title">
11
- <div class="font-bold" :tag="titleTag">
14
+ <Component :is="titleTag" class="aw-card__heading">
12
15
  {{ title }}
13
- </div>
16
+ </Component>
14
17
  </slot>
15
18
 
16
19
  <div class="aw-card__header-badge">
@@ -32,6 +35,7 @@
32
35
 
33
36
  <script>
34
37
  import AwDescription from '@AwAtoms/AwDescription.vue'
38
+ import { conf } from '@AwUtils/component'
35
39
 
36
40
  export default {
37
41
  name: 'AwCard',
@@ -56,6 +60,13 @@ export default {
56
60
  default: ''
57
61
  },
58
62
 
63
+ titleSize: {
64
+ type: String,
65
+ default() {
66
+ return conf(this, 'titleSize', 'md')
67
+ }
68
+ },
69
+
59
70
  description: {
60
71
  type: String,
61
72
  default: ''
@@ -87,6 +87,16 @@ The `AwCard` component is a flexible container with optional header, title, desc
87
87
  </AwCard>
88
88
  ```
89
89
 
90
+ ### Small Title
91
+
92
+ A muted 14px title for cards that group the fields of one form:
93
+
94
+ ```markup
95
+ <AwCard title="Languages" title-size="sm">
96
+ <AwInput label="Language" />
97
+ </AwCard>
98
+ ```
99
+
90
100
  ### Custom Tag
91
101
 
92
102
  ```markup
@@ -103,6 +113,7 @@ The `AwCard` component is a flexible container with optional header, title, desc
103
113
  |------|-------------|------|----------|---------|
104
114
  | tag | HTML tag for card element | `String` | `false` | `'div'` |
105
115
  | titleTag | HTML tag for title | `String` | `false` | `'h3'` |
116
+ | titleSize | Size of the title: `md` (16px, bold) or `sm` (14px, muted). The default is set with `titleSize` in the `AwCard` config | `String` | `false` | `'md'` |
106
117
  | title | Card title text | `String` | `false` | `''` |
107
118
  | description | Card description text | `String` | `false` | `''` |
108
119
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.146.0",
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": "330d17ea4d92b165311c06410f29d82cc7b5fd72"
119
+ "gitHead": "04f448d000159959051c8db238775b79326627e2"
120
120
  }