@awes-io/ui 2.145.9 → 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.
Files changed (39) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/assets/css/components/action-button.css +83 -13
  3. package/assets/css/components/alert.css +5 -0
  4. package/assets/css/components/button-nav.css +87 -0
  5. package/assets/css/components/button.css +16 -0
  6. package/assets/css/components/card.css +29 -0
  7. package/assets/css/components/icon-menu-item.css +1 -1
  8. package/assets/css/components/nav.css +6 -0
  9. package/assets/css/components/page-header.css +16 -0
  10. package/assets/css/components/page.css +9 -0
  11. package/assets/css/components/progress.css +22 -0
  12. package/assets/css/components/switch-field.css +36 -0
  13. package/assets/css/components/tags.css +31 -2
  14. package/assets/css/components/text-field.css +16 -0
  15. package/assets/css/fonts.css +44 -0
  16. package/assets/css/main.css +1 -0
  17. package/components/1_atoms/AwActionIcon.vue +2 -2
  18. package/components/1_atoms/AwCard.vue +14 -3
  19. package/components/1_atoms/AwProgress.vue +9 -0
  20. package/components/1_atoms/AwSwitcher.vue +4 -1
  21. package/components/1_atoms/AwTag.vue +44 -2
  22. package/components/2_molecules/AwActionButton.vue +39 -11
  23. package/components/2_molecules/AwButton.vue +9 -1
  24. package/components/4_pages/AwPage.vue +66 -22
  25. package/components/5_layouts/AwLayoutProvider.vue +1 -1
  26. package/components/5_layouts/_AwNav.vue +15 -0
  27. package/docs/components/atoms/aw-action-icon.md +1 -1
  28. package/docs/components/atoms/aw-card.md +11 -0
  29. package/docs/components/atoms/aw-input.md +1 -0
  30. package/docs/components/atoms/aw-progress.md +9 -0
  31. package/docs/components/atoms/aw-tag.md +23 -2
  32. package/docs/components/layouts/aw-layout-provider.md +2 -1
  33. package/docs/components/molecules/aw-action-button.md +41 -1
  34. package/docs/components/molecules/aw-button.md +14 -0
  35. package/docs/components/pages/aw-page.md +10 -0
  36. package/docs/configuration.md +15 -6
  37. package/nuxt/awes.config.js +0 -1
  38. package/package.json +2 -2
  39. package/tailwind.config.js +2 -2
@@ -134,6 +134,7 @@ export default {
134
134
  data() {
135
135
  return {
136
136
  startPos: null,
137
+ isRtl: false,
137
138
  isTouch: false,
138
139
  isSwitched: false,
139
140
  isInternalChecked: this.isChecked
@@ -187,6 +188,7 @@ export default {
187
188
  return
188
189
 
189
190
  this.startPos = $event.screenX
191
+ this.isRtl = getComputedStyle(this.$el).direction === 'rtl'
190
192
  this.isTouch = $event.type === 'touchstart'
191
193
  this.isSwitched = false
192
194
 
@@ -195,7 +197,8 @@ export default {
195
197
 
196
198
  _onPointerMove($event) {
197
199
  const el = this.$refs.element
198
- const diff = $event.screenX - this.startPos
200
+ const shift = $event.screenX - this.startPos
201
+ const diff = this.isRtl ? -shift : shift
199
202
 
200
203
  if (el.checked && diff < -1 * THRESHOLD) {
201
204
  this.isInternalChecked = false
@@ -1,12 +1,23 @@
1
1
  <template>
2
- <Component :is="tag" :style="tagStyle" class="aw-tag">
3
- <AwIcon v-if="icon" :name="icon" size="16" :class="iconClass" />
2
+ <Component :is="tag" :style="tagStyle" class="aw-tag" :class="[`aw-tag--size-${size}`, `aw-tag--theme-${theme}`]">
3
+ <slot name="icon">
4
+ <AwIcon v-if="icon" :name="icon" :size="iconSize" :class="iconClass" />
5
+ </slot>
4
6
  {{ text }}
5
7
  </Component>
6
8
  </template>
7
9
 
8
10
  <script>
9
11
  import { toColor, toOnColor, isCustomColor } from '@AwUtils/styles'
12
+ import { conf } from '@AwUtils/component'
13
+
14
+ const ICON_SIZES = { xs: 12, sm: 14, md: 16, lg: 16 }
15
+
16
+ const SOFT_COLORS = {
17
+ green: { on: 'on-forest' },
18
+ yellow: { on: 'on-brown' },
19
+ grey: { bg: 'mono-900', on: 'mono-300', dark: 'mono-300' }
20
+ }
10
21
 
11
22
  export default {
12
23
  name: 'AwTag',
@@ -40,11 +51,42 @@ export default {
40
51
  iconClass: {
41
52
  type: [String, Array, Object],
42
53
  default: null
54
+ },
55
+
56
+ size: {
57
+ type: String,
58
+ default() {
59
+ return conf(this, 'size', 'md')
60
+ }
61
+ },
62
+
63
+ theme: {
64
+ type: String,
65
+ default() {
66
+ return conf(this, 'theme', 'solid')
67
+ }
43
68
  }
44
69
  },
45
70
 
46
71
  computed: {
72
+ iconSize() {
73
+ return ICON_SIZES[this.size] || ICON_SIZES.md
74
+ },
75
+
47
76
  tagStyle() {
77
+ if (isCustomColor(this.color) && this.theme === 'soft') {
78
+ const onColor = `on-${this.color}`
79
+ const { bg, on, dark } = SOFT_COLORS[this.color] || {}
80
+
81
+ return {
82
+ '--tag-bg-color': toColor(bg || this.color),
83
+ '--tag-color': this.onColor
84
+ ? toOnColor(this.onColor)
85
+ : toColor(on || onColor),
86
+ '--tag-dark-color': toColor(dark || onColor)
87
+ }
88
+ }
89
+
48
90
  if (isCustomColor(this.color)) {
49
91
  return {
50
92
  '--tag-bg-color': toOnColor(this.color),
@@ -1,13 +1,15 @@
1
1
  <template>
2
2
  <Component
3
- :is="_linkComponent"
3
+ :is="tag || _linkComponent"
4
4
  class="aw-action-button"
5
5
  v-bind="{
6
- ..._linkAttrs,
6
+ ...(tag ? $attrs : _linkAttrs),
7
7
  class: {
8
+ [`aw-action-button--size-${size}`]: true,
8
9
  'aw-animated-icon-parent': isAnimatedIcon,
9
10
  'aw-action-button--outline': modifiers.includes('outline'),
10
- 'aw-action-button--narrow': modifiers.includes('narrow')
11
+ 'aw-action-button--narrow': modifiers.includes('narrow'),
12
+ 'aw-action-button--active': modifiers.includes('active')
11
13
  }
12
14
  }"
13
15
  v-on="$listeners"
@@ -35,18 +37,26 @@
35
37
  </AwDescription>
36
38
  </span>
37
39
 
38
- <AwActionIcon
39
- v-if="iconRight"
40
- :icon="iconRight"
41
- size="sm"
42
- :color="modifiers.includes('outline') ? 'mono-800' : 'mono-900'"
43
- />
40
+ <slot name="icon-right-wrapper">
41
+ <AwActionIcon
42
+ v-if="iconRight && iconRightColor"
43
+ :icon="iconRight"
44
+ size="sm"
45
+ :color="iconRightColor"
46
+ />
47
+ <AwIcon
48
+ v-else-if="iconRight"
49
+ :name="iconRight"
50
+ size="16"
51
+ class="aw-action-button__icon-right"
52
+ />
53
+ </slot>
44
54
 
45
55
  <AwDescription
46
- v-if="subdescription"
56
+ v-if="subdescription || $scopedSlots.subdescription"
47
57
  class="aw-action-button__subdescription"
48
58
  >
49
- {{ subdescription }}
59
+ <slot name="subdescription">{{ subdescription }}</slot>
50
60
  </AwDescription>
51
61
  </Component>
52
62
  </template>
@@ -54,6 +64,7 @@
54
64
  <script>
55
65
  import { isAnimatedIcon } from '@AwUtils/icons/animated'
56
66
  import linkMixin from '@AwMixins/link'
67
+ import { conf } from '@AwUtils/component'
57
68
 
58
69
  export default {
59
70
  name: 'AwActionButton',
@@ -61,6 +72,11 @@ export default {
61
72
  mixins: [linkMixin],
62
73
 
63
74
  props: {
75
+ tag: {
76
+ type: String,
77
+ default: ''
78
+ },
79
+
64
80
  icon: {
65
81
  type: String,
66
82
  default: ''
@@ -101,9 +117,21 @@ export default {
101
117
  default: 'arrow-animated'
102
118
  },
103
119
 
120
+ iconRightColor: {
121
+ type: String,
122
+ default: ''
123
+ },
124
+
104
125
  modifiers: {
105
126
  type: [String, Array],
106
127
  default: ''
128
+ },
129
+
130
+ size: {
131
+ type: String,
132
+ default() {
133
+ return conf(this, 'size', 'md')
134
+ }
107
135
  }
108
136
  },
109
137
 
@@ -24,7 +24,8 @@
24
24
  'aw-animated-icon-parent': !isDisabled && isAnimatedIcon
25
25
  },
26
26
  isCustomTheme ? `aw-button--theme-${theme}` : '',
27
- isCustomColor ? `aw-button--color-${color}` : ''
27
+ isCustomColor ? `aw-button--color-${color}` : '',
28
+ `aw-button--corners-${corners}`
28
29
  ]"
29
30
  :disabled="isDisabled"
30
31
  :aria-label="$attrs['aria-label'] || text || null"
@@ -125,6 +126,13 @@ export default {
125
126
  }
126
127
  },
127
128
 
129
+ corners: {
130
+ type: String,
131
+ default() {
132
+ return conf(this, 'corners', 'rounded')
133
+ }
134
+ },
135
+
128
136
  // Name of icon in button. Icon placed before text
129
137
  icon: {
130
138
  type: String,
@@ -45,25 +45,42 @@
45
45
  </template>
46
46
 
47
47
  <template #title="{ title, titleShowable, hideTitle }">
48
- <slot
49
- name="title"
50
- :title="title"
51
- :titleShowable="titleShowable"
52
- :hideTitle="hideTitle"
48
+ <div
49
+ class="aw-page-header__heading"
50
+ :class="{
51
+ 'aw-page-header__heading--described':
52
+ hasDescription && isDesktop
53
+ }"
53
54
  >
54
- <h1
55
- v-if="title"
56
- class="aw-page-header__title"
57
- :class="{
58
- 'sr-only': !titleShowable && hideTitle,
59
- 'aw-page-header__title--showable': titleShowable,
60
- 'aw-page-header__title--visible': !hideTitle
61
- }"
55
+ <slot
56
+ name="title"
57
+ :title="title"
58
+ :titleShowable="titleShowable"
59
+ :hideTitle="hideTitle"
62
60
  >
63
- {{ title }}
64
- <slot name="after-title"></slot>
65
- </h1>
66
- </slot>
61
+ <h1
62
+ v-if="title"
63
+ class="aw-page-header__title"
64
+ :class="{
65
+ 'sr-only': !titleShowable && hideTitle,
66
+ 'aw-page-header__title--showable': titleShowable,
67
+ 'aw-page-header__title--visible': !hideTitle
68
+ }"
69
+ >
70
+ {{ title }}
71
+ <slot name="after-title"></slot>
72
+ </h1>
73
+ </slot>
74
+
75
+ <slot
76
+ v-if="hasDescription && isDesktop"
77
+ name="description"
78
+ >
79
+ <AwDescription tag="div">
80
+ {{ description }}
81
+ </AwDescription>
82
+ </slot>
83
+ </div>
67
84
  </template>
68
85
 
69
86
  <template #default>
@@ -99,12 +116,30 @@
99
116
  <!-- eslint-disable prettier/prettier -->
100
117
  <div :class="[containerClass, { 'aw-page__grid': hasAside }]">
101
118
  <div
102
- v-if="_title"
103
- class="aw-page__mobile-title"
104
- aria-hidden="true"
119
+ v-if="_title || (hasDescription && !isDesktop)"
120
+ class="aw-page__mobile-heading"
121
+ :class="{
122
+ 'aw-page__mobile-heading--described':
123
+ hasDescription && !isDesktop
124
+ }"
105
125
  >
106
- <slot name="mobile-title" :title="_title">
107
- {{ _title }}
126
+ <div
127
+ v-if="_title"
128
+ class="aw-page__mobile-title"
129
+ aria-hidden="true"
130
+ >
131
+ <slot name="mobile-title" :title="_title">
132
+ {{ _title }}
133
+ </slot>
134
+ </div>
135
+
136
+ <slot
137
+ v-if="hasDescription && !isDesktop"
138
+ name="description"
139
+ >
140
+ <AwDescription tag="div">
141
+ {{ description }}
142
+ </AwDescription>
108
143
  </slot>
109
144
  </div>
110
145
 
@@ -188,6 +223,11 @@ export default {
188
223
  default: null
189
224
  },
190
225
 
226
+ description: {
227
+ type: String,
228
+ default: ''
229
+ },
230
+
191
231
  // Subnavigation for the page
192
232
  subnav: {
193
233
  type: Array,
@@ -265,6 +305,10 @@ export default {
265
305
  : this.hideBottomBar
266
306
  },
267
307
 
308
+ hasDescription() {
309
+ return !!(this.description || this.$scopedSlots.description)
310
+ },
311
+
268
312
  hasAside() {
269
313
  return !!this.$scopedSlots.aside
270
314
  },
@@ -229,7 +229,7 @@ export default {
229
229
 
230
230
  return acc.concat({
231
231
  ...pick(
232
- 'icon,iconBg,iconActive,class,expanded,target,rel,listeners,abstract,key,badge,switcher,back,isDivide,arrow,hideText',
232
+ 'icon,iconBg,iconActive,class,expanded,target,rel,listeners,abstract,key,badge,after,switcher,back,isDivide,arrow,hideText',
233
233
  props
234
234
  ),
235
235
  text,
@@ -28,6 +28,12 @@
28
28
  >
29
29
  {{ item.text }}
30
30
  </span>
31
+ <div v-if="item.after" class="aw-nav__child-after">
32
+ <Component
33
+ :is="item.after.is"
34
+ v-bind="item.after.props"
35
+ />
36
+ </div>
31
37
  <AwBadge
32
38
  v-if="item.badge"
33
39
  v-bind="item.badge"
@@ -74,6 +80,15 @@
74
80
  >
75
81
  {{ subchild.text }}
76
82
  </span>
83
+ <div
84
+ v-if="subchild.after"
85
+ class="aw-nav__child-after"
86
+ >
87
+ <Component
88
+ :is="subchild.after.is"
89
+ v-bind="subchild.after.props"
90
+ />
91
+ </div>
77
92
  <AwBadge
78
93
  v-if="subchild.badge"
79
94
  v-bind="subchild.badge"
@@ -77,7 +77,7 @@ The `AwActionIcon` component displays an icon with optional text, with customiza
77
77
 
78
78
  ### Custom Size (px)
79
79
 
80
- You can provide a numeric value for the `size` prop to set a custom size in pixels.
80
+ You can provide a numeric value for the `size` prop to set a custom size in pixels. The glyph takes half of it, the corner radius 0.28 of it.
81
81
 
82
82
  ```markup
83
83
  <AwActionIcon icon="awesio/settings" :size="30" />
@@ -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
 
@@ -153,6 +153,7 @@ export default {
153
153
  - `theme` prop accepts comma-separated modifiers
154
154
  - Each modifier adds `aw-text-field--{modifier}` class
155
155
  - Example: `theme="compact,bordered"` → `aw-text-field--compact aw-text-field--bordered`
156
+ - Built-in: `filled` (grey ground without a border), `page`, `uncolor-prefix`, `uncolor-postfix`
156
157
 
157
158
  ### Structure
158
159
  ```
@@ -30,6 +30,14 @@ The `AwProgress` component displays an animated progress bar with customizable c
30
30
  <AwProgress :progress="50" color="success" />
31
31
  ```
32
32
 
33
+ ### Sizes
34
+
35
+ ```markup
36
+ <AwProgress :progress="50" />
37
+ <AwProgress :progress="50" size="md" />
38
+ <AwProgress :progress="50" size="lg" />
39
+ ```
40
+
33
41
  ### With Initial Value from URL
34
42
 
35
43
  ```markup
@@ -46,6 +54,7 @@ The `AwProgress` component displays an animated progress bar with customizable c
46
54
  | progress | Progress value (0-100) | `Number` | `false` | `0` |
47
55
  | prevValueParam | URL query parameter name for initial value | `String` | `false` | `'prev_progress'` |
48
56
  | color | Progress bar color - see [Built-in Colors](/reference/colors) | `String` | `false` | `'accent'` |
57
+ | size | `sm` (2px line over the content), `md` (6px rounded bar), `lg` (10px rounded bar) | `String` | `false` | `'sm'` |
49
58
 
50
59
  ### Slots
51
60
 
@@ -43,6 +43,23 @@ The `AwTag` component displays a styled tag/badge with optional icon and customi
43
43
  <AwTag text="Warning" color="warning" />
44
44
  ```
45
45
 
46
+ ### Sizes
47
+
48
+ ```markup
49
+ <AwTag text="xs" size="xs" />
50
+ <AwTag text="sm" size="sm" />
51
+ <AwTag text="md" />
52
+ <AwTag text="lg" size="lg" />
53
+ ```
54
+
55
+ ### Soft Theme
56
+
57
+ ```markup
58
+ <AwTag text="Active" theme="soft" color="green" size="sm" />
59
+ <AwTag text="Draft" theme="soft" color="yellow" size="sm" />
60
+ <AwTag text="Not connected" theme="soft" color="grey" size="sm" />
61
+ ```
62
+
46
63
  ### As Link
47
64
 
48
65
  ```markup
@@ -61,10 +78,14 @@ The `AwTag` component displays a styled tag/badge with optional icon and customi
61
78
  | text | Tag text content | `String` | `true` | - |
62
79
  | icon | Icon name | `String` | `false` | `null` |
63
80
  | iconClass | CSS classes for icon | `String` / `Array` / `Object` | `false` | `null` |
81
+ | size | Tag size: `xs` (18px), `sm` (26px), `md` (32px), `lg` (36px) | `String` | `false` | `'md'` |
82
+ | theme | `solid` or `soft` (light ground, text of the paired dark color) | `String` | `false` | `'solid'` |
64
83
 
65
84
  ### Slots
66
85
 
67
- No slots are available for this component.
86
+ | Name | Description | Props | Default Slot Content |
87
+ |------|-------------|-------|---------------------|
88
+ | icon | Custom content before the text | - | Icon from the `icon` prop |
68
89
 
69
90
  ### Events
70
91
 
@@ -96,7 +117,7 @@ For a complete list of available colors, see [Built-in Colors](/reference/colors
96
117
  ### Icon Display
97
118
 
98
119
  Icons are displayed before the text when provided:
99
- - Icon size is fixed at 16px
120
+ - Icon size follows the tag size: 12px for `xs`, 14px for `sm`, 16px for `md` and `lg`
100
121
  - Icon color matches the text color (calculated from background)
101
122
  - Use `iconClass` prop to add custom CSS classes (e.g., `animate-spin` for loading states)
102
123
 
@@ -117,7 +117,8 @@ Menu items are transformed from Vuex store with this structure:
117
117
  listeners: Object, // Event listeners
118
118
  abstract: Boolean, // Abstract menu item (no link)
119
119
  key: String, // Unique key
120
- badge: String/Number, // Badge value
120
+ badge: Object, // Badge props
121
+ after: Object, // Component after the text in the submenu: { is, props }
121
122
  switcher: Boolean, // Switcher toggle
122
123
  back: Boolean, // Back button
123
124
  isDivide: Boolean, // Divider
@@ -45,6 +45,35 @@ The `AwActionButton` component is a button-like component with icon, text, and o
45
45
  />
46
46
  ```
47
47
 
48
+ ### Compact Row
49
+
50
+ ```markup
51
+ <AwActionButton
52
+ size="sm"
53
+ modifiers="outline narrow"
54
+ text="Own domain"
55
+ description="Not connected"
56
+ icon="lucide/link"
57
+ icon-color="light-blue"
58
+ href="/domain"
59
+ />
60
+ ```
61
+
62
+ ### As a Choice
63
+
64
+ ```markup
65
+ <AwActionButton
66
+ tag="label"
67
+ size="sm"
68
+ :modifiers="['outline', 'narrow', value === 'a' ? 'active' : '']"
69
+ text="Option A"
70
+ >
71
+ <template #icon-right-wrapper>
72
+ <AwRadio :checked="value" value="a" name="choice" @change="value = $event" />
73
+ </template>
74
+ </AwActionButton>
75
+ ```
76
+
48
77
  ### As Links
49
78
 
50
79
  ```markup
@@ -78,7 +107,10 @@ The `AwActionButton` component is a button-like component with icon, text, and o
78
107
  | description | Description text below main text | `String` | `false` | `''` |
79
108
  | subdescription | Subdescription text | `String` | `false` | `''` |
80
109
  | iconRight | Trailing icon name | `String` | `false` | `'arrow-animated'` |
81
- | modifiers | CSS modifiers (e.g., 'outline', 'narrow') | `String` / `Array` | `false` | `''` |
110
+ | iconRightColor | Ground color of the trailing icon; without it the icon has no ground | `String` | `false` | `''` |
111
+ | size | `md` or `sm` (smaller text, 40px icon, tighter paddings with `narrow`) | `String` | `false` | `'md'` |
112
+ | tag | HTML tag to render instead of a link or a button (e.g., `label`, `div`); attributes go to it as is | `String` | `false` | `''` |
113
+ | modifiers | CSS modifiers: 'outline', 'narrow', 'active' | `String` / `Array` | `false` | `''` |
82
114
  | href | Link URL (for both internal and external links) | `String` | `false` | `undefined` |
83
115
  | target | Link target (e.g., `_blank` for external links) | `String` | `false` | `undefined` |
84
116
 
@@ -94,6 +126,8 @@ The `AwActionButton` component is a button-like component with icon, text, and o
94
126
  |------|-------------|-------|---------------------|
95
127
  | default | Custom text content | `{ text }` | Text prop value |
96
128
  | icon-wrapper | Custom icon wrapper | - | Default icon wrapper |
129
+ | icon-right-wrapper | Custom trailing content, e.g. `AwRadio` or `AwSwitcher` | - | Trailing icon |
130
+ | subdescription | Custom subdescription content | - | Subdescription prop value |
97
131
 
98
132
  ### Events
99
133
 
@@ -122,11 +156,17 @@ The component extends the link mixin, providing intelligent link handling:
122
156
  - **Trailing Icon:** Defaults to `arrow-animated`, can be customized with `iconRight` prop
123
157
  - **Animated Icons:** Automatically detected and styled (e.g., `arrow-animated`)
124
158
 
159
+ ### Hover and Expanded State
160
+
161
+ - Only links, buttons and labels react to hover (darker outline); with `tag="div"` the row is static
162
+ - With `aria-expanded="true"` the trailing icon turns upside down
163
+
125
164
  ### Visual Modifiers
126
165
 
127
166
  Available modifiers for different styles:
128
167
  - `outline` - Outlined button style
129
168
  - `narrow` - Reduced padding for compact layouts
169
+ - `active` - Dark 2px outline of the chosen option
130
170
  - Multiple modifiers can be combined using an array: `:modifiers="['outline', 'narrow']"`
131
171
 
132
172
  ## Notes
@@ -46,6 +46,19 @@ The `AwButton` component is a versatile button with multiple themes, sizes, colo
46
46
  <AwButton size="lg">Large</AwButton>
47
47
  ```
48
48
 
49
+ ### Corners
50
+
51
+ ```markup
52
+ <AwButton corners="pill">Pill</AwButton>
53
+ ```
54
+
55
+ ### Surface Color
56
+
57
+ ```markup
58
+ <AwButton color="surface">On a tinted ground</AwButton>
59
+ <AwButton color="surface" theme="outline">With an outline</AwButton>
60
+ ```
61
+
49
62
  ### With Loading State
50
63
 
51
64
  ```markup
@@ -68,6 +81,7 @@ The `AwButton` component is a versatile button with multiple themes, sizes, colo
68
81
  | size | Button size (xs, sm, md, lg) | `String` | `false` | `'md'` |
69
82
  | color | Button color - see [Built-in Colors](/reference/colors) | `String` | `false` | `'accent'` |
70
83
  | theme | Button theme (solid, outline, icon) | `String` | `false` | `'solid'` |
84
+ | corners | Corner shape: `rounded` or `pill`; adds the class `aw-button--corners-{value}` | `String` | `false` | `'rounded'` |
71
85
  | icon | Leading icon name - see [Built-in Icons](/reference/icons) | `String` | `false` | `''` |
72
86
  | iconRight | Trailing icon name - see [Built-in Icons](/reference/icons) | `String` | `false` | `''` |
73
87
  | loading | Show loading spinner | `Boolean` / `String` | `false` | `false` |
@@ -34,6 +34,14 @@ The `AwPage` component is a top-level page container that provides a structured
34
34
  </AwPage>
35
35
  ```
36
36
 
37
+ ### With Description
38
+
39
+ ```markup
40
+ <AwPage title="Page Title" description="What the page is for">
41
+ <p>Page content</p>
42
+ </AwPage>
43
+ ```
44
+
37
45
  ### With Breadcrumb
38
46
 
39
47
  ```markup
@@ -114,6 +122,7 @@ The `AwPage` component is a top-level page container that provides a structured
114
122
  |------|-------------|------|----------|---------|
115
123
  | title | Main headline on the page | `String` | `false` | `''` |
116
124
  | metaTitle | Meta title for SEO (uses `title` if not provided) | `String` | `false` | `''` |
125
+ | description | Text under the title: in the header on desktop, under the mobile title on phones | `String` | `false` | `''` |
117
126
  | titleTag | HTML tag for title element | `String` | `false` | `'h1'` |
118
127
  | breadcrumb | Breadcrumb object with `href` and `title` | `Object` | `false` | `null` |
119
128
  | subnav | Subnavigation items array | `Array` | `false` | `[]` |
@@ -148,6 +157,7 @@ The `AwPage` component is a top-level page container that provides a structured
148
157
  | aside | Sidebar content (enables aside layout) | - | - |
149
158
  | heading | Custom header (replaces default) | `{ titleTag, title, breadcrumb }` | Default header |
150
159
  | title | Custom title content | `{ title, titleShowable, hideTitle }` | Default title |
160
+ | description | Custom content under the title | - | Description prop value |
151
161
  | buttons | Header buttons area | - | - |
152
162
  | subnav | Custom subnavigation | `{ subnav }` | Default `AwTabNav` component |
153
163
  | headline-breadcrumb | Custom breadcrumb button | - | Default back button |