@awes-io/ui 2.143.0 → 2.144.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/assets/css/components/action-card.css +1 -0
- package/assets/css/components/action-icon.css +2 -2
- package/assets/css/components/alert.css +28 -22
- package/assets/css/components/animation.css +14 -0
- package/assets/css/components/badge.css +1 -0
- package/assets/css/components/banner-text.css +15 -4
- package/assets/css/components/card.css +0 -1
- package/assets/css/components/content-placeholder.css +4 -3
- package/assets/css/components/dropdown.css +20 -7
- package/assets/css/components/icon-menu-item.css +12 -7
- package/assets/css/components/mobile-menu-nav.css +8 -4
- package/assets/css/components/text-field.css +4 -0
- package/components/1_atoms/AwActionIcon.vue +11 -2
- package/components/1_atoms/AwFlow.vue +26 -11
- package/components/1_atoms/AwGrid.vue +11 -3
- package/components/1_atoms/AwIcon/AwIcon.vue +5 -3
- package/components/1_atoms/AwIcon/AwIconSystemMono.vue +3 -2
- package/components/1_atoms/AwInput.vue +2 -2
- package/components/1_atoms/AwList.vue +3 -1
- package/components/1_atoms/AwRadio.vue +1 -1
- package/components/1_atoms/AwSlider.vue +15 -1
- package/components/1_atoms/AwTag.vue +6 -1
- package/components/2_molecules/AwAlert.vue +63 -42
- package/components/2_molecules/AwBadge.vue +1 -1
- package/components/2_molecules/AwBannerText.vue +8 -2
- package/components/2_molecules/AwDescriptionInput.vue +19 -1
- package/components/3_organisms/AwBottomBar.vue +22 -4
- package/components/3_organisms/AwSubnav.vue +11 -1
- package/components/3_organisms/AwTable/AwTableBuilder.vue +8 -0
- package/components/3_organisms/AwTable/_AwTableCellDropdown.vue +6 -1
- package/components/3_organisms/AwTable/_AwTableRow.vue +2 -1
- package/components/4_pages/AwPage.vue +1 -0
- package/components/5_layouts/_AwMenuItemIcon.vue +9 -2
- package/components/5_layouts/_AwMobileMenuItem.vue +5 -3
- package/components/_config.js +26 -1
- package/docs/components/atoms/aw-accordion-fold.md +55 -17
- package/docs/components/atoms/aw-action-card-body.md +37 -5
- package/docs/components/atoms/aw-action-card.md +47 -11
- package/docs/components/atoms/aw-action-icon.md +50 -12
- package/docs/components/atoms/aw-card.md +35 -10
- package/docs/components/atoms/aw-checkbox.md +176 -0
- package/docs/components/atoms/aw-content-placeholder.md +33 -2
- package/docs/components/atoms/aw-dock.md +20 -14
- package/docs/components/atoms/aw-dropdown.md +72 -22
- package/docs/components/atoms/aw-flow.md +71 -23
- package/docs/components/atoms/aw-grid.md +30 -12
- package/docs/components/atoms/aw-icon-system-color.md +1 -0
- package/docs/components/atoms/aw-icon-system-mono.md +1 -0
- package/docs/components/atoms/aw-icon.md +3 -3
- package/docs/components/atoms/aw-info.md +38 -0
- package/docs/components/atoms/aw-input.md +94 -2
- package/docs/components/atoms/aw-label.md +62 -9
- package/docs/components/atoms/aw-link.md +61 -9
- package/docs/components/atoms/aw-list.md +68 -4
- package/docs/components/atoms/aw-progress.md +52 -3
- package/docs/components/atoms/aw-radio.md +73 -0
- package/docs/components/atoms/aw-select-native.md +128 -0
- package/docs/components/atoms/aw-slider.md +114 -7
- package/docs/components/atoms/aw-switcher.md +77 -0
- package/docs/components/atoms/aw-tag.md +67 -3
- package/docs/components/atoms/aw-toggler.md +22 -1
- package/docs/components/molecules/aw-action-button.md +58 -11
- package/docs/components/molecules/aw-alert.md +122 -27
- package/docs/components/molecules/aw-badge.md +31 -10
- package/docs/components/molecules/aw-banner-text.md +84 -18
- package/docs/components/molecules/aw-button-nav.md +65 -0
- package/docs/components/molecules/aw-button.md +76 -6
- package/docs/components/molecules/aw-description-input.md +63 -6
- package/docs/components/molecules/aw-empty-container.md +172 -23
- package/docs/components/molecules/aw-island.md +282 -10
- package/docs/components/organisms/aw-filter-select.md +14 -0
- package/docs/components/pages/aw-page-single.md +47 -0
- package/docs/guides/page-patterns/detail-pages.md +89 -26
- package/docs/guides/page-patterns/list-pages.md +158 -10
- package/docs/reference/colors.md +232 -0
- package/docs/reference/icons.md +163 -0
- package/docs/reference/troubleshooting.md +19 -0
- package/package.json +2 -2
- package/store/awesIo.js +11 -0
- package/CHANGELOG.md +0 -4544
- package/dist/css/aw-icons.css +0 -26
- package/dist/fonts/aw-icons.svg +0 -18
- package/dist/fonts/aw-icons.ttf +0 -0
- package/dist/fonts/aw-icons.woff +0 -0
- package/dist/fonts/aw-icons.woff2 +0 -0
- package/nuxt/icons.css +0 -26
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
---
|
|
2
|
+
metaTitle: Built-in Colors | AwesCode UI
|
|
3
|
+
meta:
|
|
4
|
+
- name: description
|
|
5
|
+
content: Complete list of built-in colors available in AwesCode UI components.
|
|
6
|
+
title: Built-in Colors
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Built-in Colors
|
|
10
|
+
|
|
11
|
+
AwesCode UI provides a comprehensive color system including semantic colors, mono scale, and named colors for use across all components.
|
|
12
|
+
|
|
13
|
+
## Color Categories
|
|
14
|
+
|
|
15
|
+
### Semantic Colors
|
|
16
|
+
|
|
17
|
+
Semantic colors convey meaning and should be used according to their intended purpose:
|
|
18
|
+
|
|
19
|
+
| Color | Purpose | Use Cases |
|
|
20
|
+
|-------|---------|-----------|
|
|
21
|
+
| `accent` | Primary brand color | Primary actions, highlights, brand elements |
|
|
22
|
+
| `success` | Positive outcomes | Success messages, completed states, confirmations |
|
|
23
|
+
| `info` | Informational content | Help text, tips, neutral notifications |
|
|
24
|
+
| `notify` | Notifications | Alerts, announcements, attention-grabbing elements |
|
|
25
|
+
| `warning` | Cautionary states | Warnings, pending actions, important notes |
|
|
26
|
+
| `error` | Error states | Error messages, validation failures, critical issues |
|
|
27
|
+
|
|
28
|
+
### Mono Scale
|
|
29
|
+
|
|
30
|
+
Grayscale colors from lightest to darkest, useful for backgrounds, borders, and text:
|
|
31
|
+
|
|
32
|
+
| Color | Lightness | Common Uses |
|
|
33
|
+
|-------|-----------|-------------|
|
|
34
|
+
| `mono-0` | Lightest (white) | Backgrounds, cards |
|
|
35
|
+
| `mono-50` | Very light gray | Subtle backgrounds |
|
|
36
|
+
| `mono-100` | Light gray | Hover states, disabled backgrounds |
|
|
37
|
+
| `mono-200` | Light-medium gray | Borders, dividers |
|
|
38
|
+
| `mono-300` | Medium-light gray | Subtle borders |
|
|
39
|
+
| `mono-400` | Medium gray | Placeholder text |
|
|
40
|
+
| `mono-500` | Neutral gray | Secondary text |
|
|
41
|
+
| `mono-600` | Medium-dark gray | Body text |
|
|
42
|
+
| `mono-700` | Dark gray | Headings |
|
|
43
|
+
| `mono-800` | Darker gray | Emphasized text |
|
|
44
|
+
| `mono-900` | Darkest (black) | Primary text, strong emphasis |
|
|
45
|
+
|
|
46
|
+
### Named Colors
|
|
47
|
+
|
|
48
|
+
Additional colors for specific design needs:
|
|
49
|
+
|
|
50
|
+
| Color | Description |
|
|
51
|
+
|-------|-------------|
|
|
52
|
+
| `red` | Standard red |
|
|
53
|
+
| `peach` | Soft peachy orange |
|
|
54
|
+
| `yellow` | Bright yellow |
|
|
55
|
+
| `magenta` | Vibrant magenta/pink |
|
|
56
|
+
| `purple` | Standard purple |
|
|
57
|
+
| `light-blue` | Light blue shade |
|
|
58
|
+
| `blue` | Standard blue |
|
|
59
|
+
| `green` | Standard green |
|
|
60
|
+
| `lime` | Bright lime green |
|
|
61
|
+
| `grey` | Standard gray |
|
|
62
|
+
| `light-grey` | Light gray variant |
|
|
63
|
+
| `black` | Pure black |
|
|
64
|
+
| `forest` | Deep forest green |
|
|
65
|
+
| `brown` | Earthy brown |
|
|
66
|
+
|
|
67
|
+
## Usage Examples
|
|
68
|
+
|
|
69
|
+
### In Components with Color Prop
|
|
70
|
+
|
|
71
|
+
```markup
|
|
72
|
+
<!-- AwLink -->
|
|
73
|
+
<AwLink href="/page" color="accent">Accent Link</AwLink>
|
|
74
|
+
<AwLink href="/page" color="success">Success Link</AwLink>
|
|
75
|
+
<AwLink href="/page" color="error">Error Link</AwLink>
|
|
76
|
+
|
|
77
|
+
<!-- AwLabel -->
|
|
78
|
+
<AwLabel label="Active" color="success" />
|
|
79
|
+
<AwLabel label="Pending" color="warning" />
|
|
80
|
+
<AwLabel label="Error" color="error" />
|
|
81
|
+
|
|
82
|
+
<!-- AwButton -->
|
|
83
|
+
<AwButton color="accent">Primary Action</AwButton>
|
|
84
|
+
<AwButton color="success">Confirm</AwButton>
|
|
85
|
+
<AwButton color="error">Delete</AwButton>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### With Text Utilities
|
|
89
|
+
|
|
90
|
+
```markup
|
|
91
|
+
<!-- Using semantic colors -->
|
|
92
|
+
<span class="text-success">Success message</span>
|
|
93
|
+
<span class="text-error">Error message</span>
|
|
94
|
+
<span class="text-warning">Warning message</span>
|
|
95
|
+
|
|
96
|
+
<!-- Using mono scale -->
|
|
97
|
+
<span class="text-mono-600">Body text</span>
|
|
98
|
+
<span class="text-mono-400">Placeholder text</span>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### With Background Utilities
|
|
102
|
+
|
|
103
|
+
```markup
|
|
104
|
+
<!-- Semantic backgrounds -->
|
|
105
|
+
<div class="bg-success">Success background</div>
|
|
106
|
+
<div class="bg-warning">Warning background</div>
|
|
107
|
+
|
|
108
|
+
<!-- Mono backgrounds -->
|
|
109
|
+
<div class="bg-mono-0">White background</div>
|
|
110
|
+
<div class="bg-mono-100">Light gray background</div>
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Design Guidelines
|
|
114
|
+
|
|
115
|
+
### Semantic Color Usage
|
|
116
|
+
|
|
117
|
+
- **accent**: Use for primary calls-to-action, active states, and brand elements
|
|
118
|
+
- **success**: Confirmations, completed tasks, positive status indicators
|
|
119
|
+
- **info**: Neutral information, help text, general notifications
|
|
120
|
+
- **notify**: Important announcements, new features, attention-needed items
|
|
121
|
+
- **warning**: Cautions, pending reviews, items requiring attention
|
|
122
|
+
- **error**: Errors, validation failures, destructive actions
|
|
123
|
+
|
|
124
|
+
### Mono Scale Usage
|
|
125
|
+
|
|
126
|
+
- **Text**: Use mono-600 to mono-900 for readable text
|
|
127
|
+
- **Borders**: Use mono-200 to mono-400 for subtle borders
|
|
128
|
+
- **Backgrounds**: Use mono-0 to mono-200 for backgrounds
|
|
129
|
+
- **Disabled States**: Use mono-100 to mono-300 for disabled elements
|
|
130
|
+
|
|
131
|
+
### Accessibility
|
|
132
|
+
|
|
133
|
+
- Ensure sufficient contrast between text and background colors
|
|
134
|
+
- Semantic colors (success, error, warning) should be paired with icons or text for colorblind users
|
|
135
|
+
- Use mono-600 or darker for body text to meet WCAG AA standards
|
|
136
|
+
- Avoid using color as the only means of conveying information
|
|
137
|
+
|
|
138
|
+
## Color System Architecture
|
|
139
|
+
|
|
140
|
+
### Paired Colors (Color + OnColor)
|
|
141
|
+
|
|
142
|
+
AwesCode UI uses a **paired color system** where every background color has a corresponding foreground color optimized for contrast and readability. This ensures text and icons remain readable on any background.
|
|
143
|
+
|
|
144
|
+
#### How Paired Colors Work
|
|
145
|
+
|
|
146
|
+
Each color in the system has two variants:
|
|
147
|
+
- **Background color** - Used for backgrounds, fills, and surfaces
|
|
148
|
+
- **OnColor** - The contrasting foreground color for text and icons on that background
|
|
149
|
+
|
|
150
|
+
For example:
|
|
151
|
+
- `accent` background (#56af40 green) → `on-accent` foreground (#fff white)
|
|
152
|
+
- `error` background (#FF4931 red) → `on-error` foreground (#fff white)
|
|
153
|
+
- `mono-900` background (#f3f5f7 light gray) → `on-mono-900` foreground (#14171d dark)
|
|
154
|
+
|
|
155
|
+
#### Named Color Backgrounds
|
|
156
|
+
|
|
157
|
+
Named colors have special light/dark background variants for use in surfaces:
|
|
158
|
+
- **Light backgrounds** (CUSTOM_COLORS_BG_LIGHT) - Soft, pastel versions for light mode
|
|
159
|
+
- **Dark backgrounds** (CUSTOM_COLORS_BG_DARK) - Muted, darker versions for dark mode
|
|
160
|
+
- **OnColor** - The original vibrant color used for text/icons on the backgrounds
|
|
161
|
+
|
|
162
|
+
Example for `red`:
|
|
163
|
+
- Background in light mode: `#fed9d9` (soft pink)
|
|
164
|
+
- Background in dark mode: `#583433` (dark red)
|
|
165
|
+
- OnColor: `#fa0000` (bright red for text/icons)
|
|
166
|
+
|
|
167
|
+
### Color Utility Functions
|
|
168
|
+
|
|
169
|
+
#### `toColor(color)`
|
|
170
|
+
|
|
171
|
+
Converts a color name to a CSS custom property reference. Used for background colors.
|
|
172
|
+
|
|
173
|
+
```javascript
|
|
174
|
+
toColor('accent') // → 'var(--c-accent)'
|
|
175
|
+
toColor('mono-600') // → 'var(--c-mono-600)'
|
|
176
|
+
toColor('#fa0000') // → '#fa0000' (CSS colors passed through)
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
**Behavior:**
|
|
180
|
+
- If the input is a CSS color (hex, rgb, rgba, hsl, hsla), returns it as-is
|
|
181
|
+
- Otherwise, converts to CSS custom property format: `var(--c-{color})`
|
|
182
|
+
- Color names are automatically lowercased
|
|
183
|
+
|
|
184
|
+
#### `toOnColor(color)`
|
|
185
|
+
|
|
186
|
+
Converts a color name to its paired foreground color. Used for text and icons.
|
|
187
|
+
|
|
188
|
+
```javascript
|
|
189
|
+
toOnColor('accent') // → 'var(--c-on-accent)'
|
|
190
|
+
toOnColor('error') // → 'var(--c-on-error)'
|
|
191
|
+
toOnColor('on-success') // → 'var(--c-on-success)' (strips 'on-' prefix)
|
|
192
|
+
toOnColor('#fa0000') // → '#fa0000' (CSS colors passed through)
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
**Behavior:**
|
|
196
|
+
- If the input starts with `#`, returns it as-is (CSS color)
|
|
197
|
+
- Strips any `on-` prefix from the color name
|
|
198
|
+
- Converts to CSS custom property format: `var(--c-on-{color})`
|
|
199
|
+
- Automatically ensures proper contrast for accessibility
|
|
200
|
+
|
|
201
|
+
#### Usage in Components
|
|
202
|
+
|
|
203
|
+
Components use these utilities to maintain paired colors:
|
|
204
|
+
|
|
205
|
+
```vue
|
|
206
|
+
<template>
|
|
207
|
+
<div :style="{
|
|
208
|
+
backgroundColor: toColor(color),
|
|
209
|
+
color: toOnColor(color)
|
|
210
|
+
}">
|
|
211
|
+
Content with proper contrast
|
|
212
|
+
</div>
|
|
213
|
+
</template>
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Theme Support
|
|
217
|
+
|
|
218
|
+
The color system supports light and dark themes:
|
|
219
|
+
- **Light theme** (default) - Uses bright backgrounds with dark text
|
|
220
|
+
- **Dark theme** - Uses dark backgrounds with light text
|
|
221
|
+
- All paired colors automatically adapt to the active theme
|
|
222
|
+
- Custom properties ensure consistency across theme switches
|
|
223
|
+
|
|
224
|
+
## Notes
|
|
225
|
+
|
|
226
|
+
- All colors support CSS custom property fallbacks
|
|
227
|
+
- Color names are case-insensitive in component props
|
|
228
|
+
- Semantic colors adapt to light/dark theme modes
|
|
229
|
+
- The mono scale provides consistent grayscale values across the system
|
|
230
|
+
- Named colors are fixed but their background variants change with themes
|
|
231
|
+
- Always use paired colors (color + onColor) for accessible contrast
|
|
232
|
+
- The `toOnColor` utility automatically provides the correct foreground color
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
---
|
|
2
|
+
metaTitle: Built-in Icons | AwesCode UI
|
|
3
|
+
meta:
|
|
4
|
+
- name: description
|
|
5
|
+
content: Complete list of built-in icons available in AwesCode UI components.
|
|
6
|
+
title: Built-in Icons
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Built-in Icons
|
|
10
|
+
|
|
11
|
+
AwesCode UI includes a comprehensive set of mono icons available for use in components like `AwIcon`, `AwButton`, and other components with icon support.
|
|
12
|
+
|
|
13
|
+
## Icon Naming
|
|
14
|
+
|
|
15
|
+
All built-in icons use the `awesio/` prefix followed by the icon name. For example:
|
|
16
|
+
- `awesio/check`
|
|
17
|
+
- `awesio/settings`
|
|
18
|
+
- `awesio/user`
|
|
19
|
+
|
|
20
|
+
## Available Icons
|
|
21
|
+
|
|
22
|
+
### Navigation & UI
|
|
23
|
+
|
|
24
|
+
| Icon Name | Description |
|
|
25
|
+
|-----------|-------------|
|
|
26
|
+
| `awesio/angle` | Angle/chevron arrow |
|
|
27
|
+
| `awesio/arrow` | Standard arrow |
|
|
28
|
+
| `awesio/back` | Back navigation |
|
|
29
|
+
| `awesio/close` | Close/dismiss icon |
|
|
30
|
+
| `awesio/close-circle` | Close icon in circle |
|
|
31
|
+
| `awesio/exit` | Exit/logout icon |
|
|
32
|
+
| `awesio/external` | External link indicator |
|
|
33
|
+
| `awesio/menu` | Hamburger menu |
|
|
34
|
+
| `awesio/menu-dots` | Three dots menu |
|
|
35
|
+
| `awesio/more` | More options (horizontal) |
|
|
36
|
+
| `awesio/more-v` | More options (vertical) |
|
|
37
|
+
|
|
38
|
+
### Actions & Controls
|
|
39
|
+
|
|
40
|
+
| Icon Name | Description |
|
|
41
|
+
|-----------|-------------|
|
|
42
|
+
| `awesio/check` | Checkmark |
|
|
43
|
+
| `awesio/check-circle` | Checkmark in circle |
|
|
44
|
+
| `awesio/circle` | Circle outline |
|
|
45
|
+
| `awesio/delete` | Delete/trash icon |
|
|
46
|
+
| `awesio/download` | Download arrow |
|
|
47
|
+
| `awesio/drag` | Drag handle |
|
|
48
|
+
| `awesio/edit` | Edit/pencil icon |
|
|
49
|
+
| `awesio/minus` | Minus sign |
|
|
50
|
+
| `awesio/plus` | Plus sign |
|
|
51
|
+
| `awesio/plus-circle` | Plus in circle |
|
|
52
|
+
| `awesio/plus-fill-square` | Plus in filled square |
|
|
53
|
+
| `awesio/save` | Save/floppy disk |
|
|
54
|
+
| `awesio/search` | Search/magnifying glass |
|
|
55
|
+
| `awesio/undo` | Undo action |
|
|
56
|
+
| `awesio/upload` | Upload arrow |
|
|
57
|
+
|
|
58
|
+
### Status & Info
|
|
59
|
+
|
|
60
|
+
| Icon Name | Description |
|
|
61
|
+
|-----------|-------------|
|
|
62
|
+
| `awesio/ban` | Ban/prohibited sign |
|
|
63
|
+
| `awesio/bell` | Notification bell |
|
|
64
|
+
| `awesio/info-circle` | Information in circle |
|
|
65
|
+
| `awesio/question-circle` | Question mark in circle |
|
|
66
|
+
| `awesio/spinner` | Loading spinner |
|
|
67
|
+
| `awesio/triangle` | Triangle warning |
|
|
68
|
+
| `awesio/warning` | Warning/alert icon |
|
|
69
|
+
|
|
70
|
+
### Content & Files
|
|
71
|
+
|
|
72
|
+
| Icon Name | Description |
|
|
73
|
+
|-----------|-------------|
|
|
74
|
+
| `awesio/box` | Box/package |
|
|
75
|
+
| `awesio/empty-box` | Empty box |
|
|
76
|
+
| `awesio/copy` | Copy/document icon |
|
|
77
|
+
| `awesio/file-csv` | CSV file |
|
|
78
|
+
| `awesio/file-excel` | Excel file |
|
|
79
|
+
| `awesio/file-image` | Image file |
|
|
80
|
+
| `awesio/file-pdf` | PDF file |
|
|
81
|
+
| `awesio/file-word` | Word document |
|
|
82
|
+
| `awesio/image` | Image/picture icon |
|
|
83
|
+
|
|
84
|
+
### User & Social
|
|
85
|
+
|
|
86
|
+
| Icon Name | Description |
|
|
87
|
+
|-----------|-------------|
|
|
88
|
+
| `awesio/gift` | Gift/present |
|
|
89
|
+
| `awesio/heart` | Heart outline |
|
|
90
|
+
| `awesio/heart-fill` | Filled heart |
|
|
91
|
+
| `awesio/mail` | Email/envelope |
|
|
92
|
+
| `awesio/phone` | Phone/call icon |
|
|
93
|
+
| `awesio/star` | Star outline |
|
|
94
|
+
| `awesio/star-fill` | Filled star |
|
|
95
|
+
| `awesio/user` | User/person icon |
|
|
96
|
+
|
|
97
|
+
### Location & Maps
|
|
98
|
+
|
|
99
|
+
| Icon Name | Description |
|
|
100
|
+
|-----------|-------------|
|
|
101
|
+
| `awesio/home` | Home icon |
|
|
102
|
+
| `awesio/location` | Location/map marker |
|
|
103
|
+
| `awesio/pin` | Pin/thumbtack |
|
|
104
|
+
| `awesio/pin-no` | Unpin icon |
|
|
105
|
+
|
|
106
|
+
### Security & Privacy
|
|
107
|
+
|
|
108
|
+
| Icon Name | Description |
|
|
109
|
+
|-----------|-------------|
|
|
110
|
+
| `awesio/eye` | Visible/show |
|
|
111
|
+
| `awesio/eye-no` | Hidden/hide |
|
|
112
|
+
| `awesio/lock` | Lock/secured |
|
|
113
|
+
| `awesio/lock-fill` | Filled lock |
|
|
114
|
+
| `awesio/unlock` | Unlock/unsecured |
|
|
115
|
+
|
|
116
|
+
### Tools & Settings
|
|
117
|
+
|
|
118
|
+
| Icon Name | Description |
|
|
119
|
+
|-----------|-------------|
|
|
120
|
+
| `awesio/chart` | Chart/analytics |
|
|
121
|
+
| `awesio/filter` | Filter funnel |
|
|
122
|
+
| `awesio/light` | Light bulb/idea |
|
|
123
|
+
| `awesio/link` | Link/chain icon |
|
|
124
|
+
| `awesio/magic` | Magic wand |
|
|
125
|
+
| `awesio/settings` | Settings/gear icon |
|
|
126
|
+
| `awesio/tag` | Tag outline |
|
|
127
|
+
| `awesio/tag-fill` | Filled tag |
|
|
128
|
+
|
|
129
|
+
## Usage Examples
|
|
130
|
+
|
|
131
|
+
### In AwIcon Component
|
|
132
|
+
|
|
133
|
+
```markup
|
|
134
|
+
<AwIcon name="awesio/check" />
|
|
135
|
+
<AwIcon name="awesio/settings" size="24" />
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### In AwButton Component
|
|
139
|
+
|
|
140
|
+
```markup
|
|
141
|
+
<AwButton icon="awesio/plus" text="Add Item" />
|
|
142
|
+
<AwButton icon="awesio/download">Download</AwButton>
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### In Custom Components
|
|
146
|
+
|
|
147
|
+
```markup
|
|
148
|
+
<AwList :items="items">
|
|
149
|
+
<template #item="{ item }">
|
|
150
|
+
<AwFlow :gap="2" align-items="center">
|
|
151
|
+
<AwIcon :name="item.icon" size="16" />
|
|
152
|
+
<span>{{ item.title }}</span>
|
|
153
|
+
</AwFlow>
|
|
154
|
+
</template>
|
|
155
|
+
</AwList>
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Notes
|
|
159
|
+
|
|
160
|
+
- All icons are mono (single-color) and inherit the current text color
|
|
161
|
+
- Icon size can be customized using the `size` prop in components that support it
|
|
162
|
+
- Icons are SVG-based for crisp rendering at any size
|
|
163
|
+
- The `awesio/` prefix is required when using built-in icons
|
|
@@ -406,6 +406,25 @@ if (Object.keys(this.customer.errors).length > 0) {
|
|
|
406
406
|
|
|
407
407
|
## Table Issues
|
|
408
408
|
|
|
409
|
+
### Rows Not Reactive When Using vue-mc Models
|
|
410
|
+
|
|
411
|
+
**Problem:** Table rows (for example in `AwTableBuilder`) update only for the first row or only after calling `$forceUpdate` when using `@awes-io/vue-mc` models.
|
|
412
|
+
|
|
413
|
+
**Cause:** The project uses different Vue versions for `@awes-io/ui` and `@awes-io/vue-mc`, so models are created in one Vue instance and rendered in another, breaking reactivity.
|
|
414
|
+
|
|
415
|
+
**Solution:** Ensure the project has a single Vue version by configuring root `resolutions`:
|
|
416
|
+
|
|
417
|
+
```json
|
|
418
|
+
// package.json (root of monorepo)
|
|
419
|
+
"resolutions": {
|
|
420
|
+
"vue": "2.7.16",
|
|
421
|
+
"vue-template-compiler": "2.7.16",
|
|
422
|
+
"vue-server-renderer": "2.7.16"
|
|
423
|
+
}
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
Remove any Vue-specific `overrides` / `resolutions` from package-level configs (for example `packages/vue-mc/package.json`), reinstall dependencies, and verify a single Vue version with `yarn why vue`.
|
|
427
|
+
|
|
409
428
|
### @click:row and #dropdown Conflict
|
|
410
429
|
|
|
411
430
|
**Problem:** Row click doesn't work when dropdown is present.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awes-io/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.144.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": "
|
|
119
|
+
"gitHead": "bbe43e6419007e0b50b286c01f05b2ce733701cb"
|
|
120
120
|
}
|
package/store/awesIo.js
CHANGED
|
@@ -42,6 +42,7 @@ export const state = () => ({
|
|
|
42
42
|
beforeMobileMenu: null,
|
|
43
43
|
beforeProfileButton: null,
|
|
44
44
|
userMenuAvatar: null,
|
|
45
|
+
bottomBarMoreMenuItem: null,
|
|
45
46
|
afterMobileMenu: null,
|
|
46
47
|
bottomBarAction: null,
|
|
47
48
|
|
|
@@ -142,6 +143,10 @@ export const getters = {
|
|
|
142
143
|
return state.userMenuAvatar
|
|
143
144
|
},
|
|
144
145
|
|
|
146
|
+
bottomBarMoreMenuItemComponent(state) {
|
|
147
|
+
return state.bottomBarMoreMenuItem
|
|
148
|
+
},
|
|
149
|
+
|
|
145
150
|
afterMobileMenuComponent(state) {
|
|
146
151
|
return state.afterMobileMenu
|
|
147
152
|
},
|
|
@@ -255,6 +260,12 @@ export const mutations = {
|
|
|
255
260
|
}
|
|
256
261
|
},
|
|
257
262
|
|
|
263
|
+
SET_BOTTOM_BAR_MORE_MENU_ITEM(state, payload) {
|
|
264
|
+
if (payload && payload.component) {
|
|
265
|
+
state.bottomBarMoreMenuItem = payload.component
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
|
|
258
269
|
SET_AFTER_MOBILE_MENU(state, payload) {
|
|
259
270
|
if (payload && payload.component) {
|
|
260
271
|
state.afterMobileMenu = payload.component
|