@awes-io/ui 2.142.0 → 2.143.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 +58 -0
- package/assets/css/components/_index.css +7 -1
- package/assets/css/components/animation.css +38 -32
- package/assets/css/components/content-placeholder.css +103 -0
- package/assets/css/components/empty-container.css +69 -1
- package/assets/css/components/filter-chosen.css +6 -0
- package/assets/css/components/filter-date-range.css +17 -1
- package/assets/css/components/filter-month.css +23 -17
- package/assets/css/components/filter-select.css +11 -0
- package/assets/css/components/layout.css +1 -32
- package/assets/css/components/modal.css +1 -1
- package/assets/css/components/number.css +12 -0
- package/assets/css/components/page-aside.css +54 -0
- package/assets/js/css.js +1 -1
- package/assets/js/icons/mono.js +59 -91
- package/assets/js/icons/multicolor.js +1 -31
- package/components/1_atoms/AwContentPlaceholder.vue +60 -0
- package/components/1_atoms/AwFlow.vue +21 -48
- package/components/1_atoms/AwLabel.vue +1 -1
- package/components/2_molecules/AwButton.vue +1 -1
- package/components/2_molecules/AwEmptyContainer.vue +74 -72
- package/components/2_molecules/AwNumber.vue +180 -0
- package/components/2_molecules/AwSelect.vue +11 -4
- package/components/3_organisms/AwFilterChosen.vue +73 -0
- package/components/3_organisms/AwFilterDateRange.vue +177 -0
- package/components/3_organisms/AwFilterMonth.vue +37 -40
- package/components/3_organisms/AwFilterSelect.vue +368 -0
- package/components/3_organisms/AwImageUpload.vue +1 -1
- package/components/3_organisms/AwMarkdownEditor.vue +0 -0
- package/components/3_organisms/AwMultiBlockBuilder.vue +1 -1
- package/components/3_organisms/AwTable/AwTableBuilder.vue +12 -60
- package/components/4_pages/AwPageAside.vue +108 -0
- package/components/5_layouts/AwLayoutCenter.vue +3 -8
- package/components/5_layouts/_AwUserMenu.vue +1 -1
- package/dist/css/aw-icons.css +26 -0
- package/dist/fonts/aw-icons.svg +18 -0
- 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/docs/_template.md +80 -0
- package/docs/components/atoms/aw-accordion-fold.md +91 -0
- package/docs/components/atoms/aw-action-card-body.md +67 -0
- package/docs/components/atoms/aw-action-card.md +94 -0
- package/docs/components/atoms/aw-action-icon.md +88 -0
- package/docs/components/atoms/aw-avatar.md +106 -0
- package/docs/components/atoms/aw-card.md +112 -0
- package/docs/components/atoms/aw-checkbox.md +112 -0
- package/docs/components/atoms/aw-content-placeholder.md +116 -0
- package/docs/components/atoms/aw-description.md +83 -0
- package/docs/components/atoms/aw-dock.md +84 -0
- package/docs/components/atoms/aw-dropdown-button.md +94 -0
- package/docs/components/atoms/aw-dropdown.md +128 -0
- package/docs/components/atoms/aw-file.md +73 -0
- package/docs/components/atoms/aw-flow.md +92 -0
- package/docs/components/atoms/aw-grid.md +91 -0
- package/docs/components/atoms/aw-headline.md +71 -0
- package/docs/components/atoms/aw-icon-system-color.md +121 -0
- package/docs/components/atoms/aw-icon-system-mono.md +205 -0
- package/docs/components/atoms/aw-icon.md +235 -0
- package/docs/components/atoms/aw-info.md +85 -0
- package/docs/components/atoms/aw-input.md +120 -0
- package/docs/components/atoms/aw-label.md +83 -0
- package/docs/components/atoms/aw-link.md +99 -0
- package/docs/components/atoms/aw-list.md +88 -0
- package/docs/components/atoms/aw-progress.md +70 -0
- package/docs/components/atoms/aw-radio.md +109 -0
- package/docs/components/atoms/aw-refresh-wrapper.md +81 -0
- package/docs/components/atoms/aw-select-native.md +106 -0
- package/docs/components/atoms/aw-slider.md +82 -0
- package/docs/components/atoms/aw-sub-headline.md +73 -0
- package/docs/components/atoms/aw-switcher.md +115 -0
- package/docs/components/atoms/aw-tag.md +80 -0
- package/docs/components/atoms/aw-title.md +70 -0
- package/docs/components/atoms/aw-toggler.md +69 -0
- package/docs/components/layouts/aw-layout-center.md +168 -0
- package/docs/components/layouts/aw-layout-error.md +153 -0
- package/docs/components/layouts/aw-layout-provider.md +238 -0
- package/docs/components/layouts/aw-layout.md +88 -0
- package/docs/components/molecules/aw-action-button.md +91 -0
- package/docs/components/molecules/aw-alert.md +96 -0
- package/docs/components/molecules/aw-badge.md +108 -0
- package/docs/components/molecules/aw-banner-text.md +90 -0
- package/docs/components/molecules/aw-button-nav.md +46 -0
- package/docs/components/molecules/aw-button.md +123 -0
- package/docs/components/molecules/aw-description-input.md +67 -0
- package/docs/components/molecules/aw-empty-container.md +86 -0
- package/docs/components/molecules/aw-island.md +234 -0
- package/docs/components/molecules/aw-number.md +138 -0
- package/docs/components/molecules/aw-select-object.md +401 -0
- package/docs/components/molecules/aw-select.md +215 -0
- package/docs/components/molecules/aw-tab-nav.md +108 -0
- package/docs/components/molecules/aw-tel.md +129 -0
- package/docs/components/molecules/aw-textarea.md +83 -0
- package/docs/components/molecules/aw-userpic.md +115 -0
- package/docs/components/organisms/aw-address-block.md +64 -0
- package/docs/components/organisms/aw-address.md +132 -0
- package/docs/components/organisms/aw-birthday-picker.md +73 -0
- package/docs/components/organisms/aw-bottom-bar.md +66 -0
- package/docs/components/organisms/aw-calendar-days.md +115 -0
- package/docs/components/organisms/aw-calendar-nav.md +98 -0
- package/docs/components/organisms/aw-calendar-view.md +98 -0
- package/docs/components/organisms/aw-calendar.md +166 -0
- package/docs/components/organisms/aw-chart.md +154 -0
- package/docs/components/organisms/aw-chip-select.md +164 -0
- package/docs/components/organisms/aw-chip.md +126 -0
- package/docs/components/organisms/aw-code-snippet.md +94 -0
- package/docs/components/organisms/aw-code.md +132 -0
- package/docs/components/organisms/aw-context-menu.md +117 -0
- package/docs/components/organisms/aw-cropper.md +151 -0
- package/docs/components/organisms/aw-date.md +161 -0
- package/docs/components/organisms/aw-display-date.md +33 -0
- package/docs/components/organisms/aw-download-link.md +46 -0
- package/docs/components/organisms/aw-fetch-data.md +161 -0
- package/docs/components/organisms/aw-filter-chosen.md +226 -0
- package/docs/components/organisms/aw-filter-date-range.md +205 -0
- package/docs/components/organisms/aw-filter-month.md +43 -0
- package/docs/components/organisms/aw-filter-select.md +225 -0
- package/docs/components/organisms/aw-form.md +174 -0
- package/docs/components/organisms/aw-gmap-marker.md +86 -0
- package/docs/components/organisms/aw-gmap.md +90 -0
- package/docs/components/organisms/aw-image-upload.md +56 -0
- package/docs/components/organisms/aw-island-avatar.md +87 -0
- package/docs/components/organisms/aw-markdown-editor.md +104 -0
- package/docs/components/organisms/aw-modal-buttons.md +57 -0
- package/docs/components/organisms/aw-modal.md +246 -0
- package/docs/components/organisms/aw-model-edit.md +74 -0
- package/docs/components/organisms/aw-money.md +53 -0
- package/docs/components/organisms/aw-multi-block-builder.md +165 -0
- package/docs/components/organisms/aw-pagination.md +121 -0
- package/docs/components/organisms/aw-password.md +103 -0
- package/docs/components/organisms/aw-preview-card.md +45 -0
- package/docs/components/organisms/aw-search.md +116 -0
- package/docs/components/organisms/aw-subnav.md +122 -0
- package/docs/components/organisms/aw-table-builder.md +165 -0
- package/docs/components/organisms/aw-table-col.md +123 -0
- package/docs/components/organisms/aw-table-head.md +92 -0
- package/docs/components/organisms/aw-table-row.md +91 -0
- package/docs/components/organisms/aw-table.md +172 -0
- package/docs/components/organisms/aw-tags.md +54 -0
- package/docs/components/organisms/aw-toggle-show-aside.md +43 -0
- package/docs/components/organisms/aw-uploader-files.md +125 -0
- package/docs/components/organisms/aw-uploader.md +163 -0
- package/docs/components/organisms/aw-user-menu.md +87 -0
- package/docs/components/pages/aw-page-aside.md +296 -0
- package/docs/components/pages/aw-page-menu-buttons.md +172 -0
- package/docs/components/pages/aw-page-modal.md +198 -0
- package/docs/components/pages/aw-page-single.md +253 -0
- package/docs/components/pages/aw-page.md +194 -0
- package/docs/configuration.md +493 -0
- package/docs/cookbook/advanced-patterns.md +1388 -0
- package/docs/cookbook/common-patterns.md +965 -0
- package/docs/cookbook/index.md +786 -0
- package/docs/getting-started.md +596 -0
- package/docs/guides/best-practices.md +1106 -0
- package/docs/guides/data-fetching.md +852 -0
- package/docs/guides/error-handling.md +1172 -0
- package/docs/guides/forms-guide.md +1329 -0
- package/docs/guides/mobile-subnavigation.md +359 -0
- package/docs/guides/page-patterns/aside-pages.md +1418 -0
- package/docs/guides/page-patterns/dashboard-pages.md +990 -0
- package/docs/guides/page-patterns/detail-pages.md +1493 -0
- package/docs/guides/page-patterns/list-pages.md +1094 -0
- package/docs/index.md +263 -1
- package/docs/integrations.md +870 -0
- package/docs/reference/menu.md +462 -0
- package/docs/reference/plugins.md +970 -0
- package/docs/reference/troubleshooting.md +945 -0
- package/nuxt/awes.config.js +9 -8
- package/nuxt/icons.css +26 -0
- package/nuxt/index.js +2 -2
- package/nuxt/pages/more.vue +1 -1
- package/package.json +5 -3
- package/readme.md +171 -1
- package/docs/aw-accordion-fold.md +0 -46
- package/docs/aw-address.md +0 -44
- package/docs/aw-avatar.md +0 -51
- package/docs/aw-badge.md +0 -32
- package/docs/aw-button-nav.md +0 -44
- package/docs/aw-button.md +0 -50
- package/docs/aw-calendar-days.md +0 -46
- package/docs/aw-calendar-nav.md +0 -25
- package/docs/aw-calendar-view.md +0 -12
- package/docs/aw-calendar.md +0 -59
- package/docs/aw-card.md +0 -48
- package/docs/aw-chart.md +0 -51
- package/docs/aw-checkbox.md +0 -56
- package/docs/aw-chip-select.md +0 -46
- package/docs/aw-chip.md +0 -53
- package/docs/aw-code-snippet.md +0 -18
- package/docs/aw-code.md +0 -56
- package/docs/aw-content-wrapper.md +0 -40
- package/docs/aw-context-menu.md +0 -31
- package/docs/aw-cropper.md +0 -60
- package/docs/aw-dashboard-card.md +0 -37
- package/docs/aw-dashboard-donut.md +0 -30
- package/docs/aw-dashboard-line.md +0 -20
- package/docs/aw-dashboard-progress.md +0 -33
- package/docs/aw-dashboard-section.md +0 -32
- package/docs/aw-dashboard-speed.md +0 -30
- package/docs/aw-date.md +0 -52
- package/docs/aw-dropdown-button.md +0 -31
- package/docs/aw-dropdown.md +0 -69
- package/docs/aw-fetch-data.md +0 -45
- package/docs/aw-form.md +0 -52
- package/docs/aw-grid.md +0 -48
- package/docs/aw-icon.md +0 -50
- package/docs/aw-info.md +0 -53
- package/docs/aw-input.md +0 -55
- package/docs/aw-layout-default.md +0 -30
- package/docs/aw-layout-frame-center.md +0 -29
- package/docs/aw-layout-simple.md +0 -49
- package/docs/aw-link.md +0 -54
- package/docs/aw-markdown-editor.md +0 -51
- package/docs/aw-modal.md +0 -63
- package/docs/aw-multi-block-builder.md +0 -66
- package/docs/aw-page.md +0 -36
- package/docs/aw-pagination.md +0 -54
- package/docs/aw-password.md +0 -48
- package/docs/aw-radio.md +0 -54
- package/docs/aw-search.md +0 -49
- package/docs/aw-select.md +0 -93
- package/docs/aw-slider.md +0 -40
- package/docs/aw-svg-image.md +0 -19
- package/docs/aw-switcher.md +0 -51
- package/docs/aw-tab-nav.md +0 -55
- package/docs/aw-table-builder.md +0 -58
- package/docs/aw-table-col.md +0 -33
- package/docs/aw-table-head.md +0 -28
- package/docs/aw-table-row.md +0 -33
- package/docs/aw-table.md +0 -59
- package/docs/aw-tel.md +0 -47
- package/docs/aw-textarea.md +0 -47
- package/docs/aw-timeline-builder.md +0 -50
- package/docs/aw-toggler.md +0 -41
- package/docs/aw-uploader-files.md +0 -20
- package/docs/aw-uploader.md +0 -60
- package/docs/aw-user-menu.md +0 -34
- package/docs/aw-userpic.md +0 -34
- /package/components/{3_organisms → 2_molecules}/AwTel.vue +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
---
|
|
2
|
+
metaTitle: Badge component | AwesCode UI
|
|
3
|
+
meta:
|
|
4
|
+
- name: description
|
|
5
|
+
content: The <AwBadge /> component is used to render badges - UI Vue component for AwesCode UI.
|
|
6
|
+
title: Badge
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Badge
|
|
10
|
+
|
|
11
|
+
**Category:** Molecule | **Import:** Global
|
|
12
|
+
|
|
13
|
+
The `AwBadge` component displays a small badge with text, icon, or custom content.
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`AwBadge` provides a small badge component for displaying counts, labels, or status indicators. It supports text, icons, custom colors, and can automatically hide when empty.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
### Basic Example
|
|
22
|
+
|
|
23
|
+
```markup
|
|
24
|
+
<AwBadge text="5" />
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### With Icon
|
|
28
|
+
|
|
29
|
+
```markup
|
|
30
|
+
<AwBadge icon="notification" />
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### With Text and Icon
|
|
34
|
+
|
|
35
|
+
```markup
|
|
36
|
+
<AwBadge text="3" icon="message" />
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Custom Color
|
|
40
|
+
|
|
41
|
+
Valid color values: `''` (default), `'info'`, `'success'`, `'warning'`, `'error'`
|
|
42
|
+
|
|
43
|
+
```markup
|
|
44
|
+
<AwBadge text="New" color="info" />
|
|
45
|
+
<AwBadge text="Error" color="error" />
|
|
46
|
+
<AwBadge text="Success" color="success" />
|
|
47
|
+
<AwBadge text="Warning" color="warning" />
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Hide When Empty
|
|
51
|
+
|
|
52
|
+
```markup
|
|
53
|
+
<AwBadge :text="count" :hide-if-empty="true" />
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### With Pulse Animation
|
|
57
|
+
|
|
58
|
+
```markup
|
|
59
|
+
<AwBadge pulse />
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Custom Content
|
|
63
|
+
|
|
64
|
+
```markup
|
|
65
|
+
<AwBadge color="success">
|
|
66
|
+
<AwIcon name="awesio/check" />
|
|
67
|
+
</AwBadge>
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## API
|
|
71
|
+
|
|
72
|
+
### Props
|
|
73
|
+
|
|
74
|
+
| Name | Description | Type | Required | Default |
|
|
75
|
+
|------|-------------|------|----------|---------|
|
|
76
|
+
| text | Text or number inside badge | `String` / `Number` | `false` | `''` |
|
|
77
|
+
| icon | Icon name inside badge | `String` | `false` | `''` |
|
|
78
|
+
| color | Badge background color. Valid values: `''` (default), `'info'`, `'success'`, `'warning'`, `'error'` | `String` | `false` | `'page-bg'` |
|
|
79
|
+
| hideIfEmpty | Hide badge if text is empty or 0 | `Boolean` | `false` | `false` |
|
|
80
|
+
| pulse | Show pulse animation | `Boolean` | `false` | `false` |
|
|
81
|
+
|
|
82
|
+
### Slots
|
|
83
|
+
|
|
84
|
+
| Name | Description | Props | Default Slot Content |
|
|
85
|
+
|------|-------------|-------|---------------------|
|
|
86
|
+
| default | Custom badge content | - | Text and/or icon |
|
|
87
|
+
|
|
88
|
+
### Events
|
|
89
|
+
|
|
90
|
+
No events are emitted by this component.
|
|
91
|
+
|
|
92
|
+
## Related Components
|
|
93
|
+
|
|
94
|
+
- `AwTag` - Tag component
|
|
95
|
+
- `AwLabel` - Label component
|
|
96
|
+
- `AwIcon` - Icon component
|
|
97
|
+
|
|
98
|
+
## Notes
|
|
99
|
+
|
|
100
|
+
- **Import Method:** Global - Available as molecule component
|
|
101
|
+
- Functional component for better performance
|
|
102
|
+
- Uses CSS custom properties for colors with RGB support
|
|
103
|
+
- Text badge has padding, icon-only badge has no padding
|
|
104
|
+
- Pulse animation shows animated indicator
|
|
105
|
+
- When `hideIfEmpty` is true, badge hides when text is empty, 0, or null
|
|
106
|
+
- **Valid color values:** Only `''` (empty string for default), `'info'`, `'success'`, `'warning'`, and `'error'` are valid color values. Other values will not work correctly.
|
|
107
|
+
|
|
108
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
---
|
|
2
|
+
metaTitle: Banner Text component | AwesCode UI
|
|
3
|
+
meta:
|
|
4
|
+
- name: description
|
|
5
|
+
content: The <AwBannerText /> component is used to render Banner Text - UI Vue component for AwesCode UI.
|
|
6
|
+
title: Banner Text
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Banner Text
|
|
10
|
+
|
|
11
|
+
**Category:** Molecule | **Import:** Global
|
|
12
|
+
|
|
13
|
+
The `AwBannerText` component displays a banner with icon/image, title, and description text.
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`AwBannerText` provides a structured banner layout with an icon or image, title with arrow indicator, and description text. It's useful for informational banners and callouts.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
### Basic Example
|
|
22
|
+
|
|
23
|
+
```markup
|
|
24
|
+
<AwBannerText
|
|
25
|
+
title="Banner Title"
|
|
26
|
+
description="Banner description text"
|
|
27
|
+
icon="awesio/info-circle"
|
|
28
|
+
/>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### With Image
|
|
32
|
+
|
|
33
|
+
```markup
|
|
34
|
+
<AwBannerText
|
|
35
|
+
title="Title"
|
|
36
|
+
description="Description"
|
|
37
|
+
src="/path/to/image.png"
|
|
38
|
+
/>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### With Custom Icon Color
|
|
42
|
+
|
|
43
|
+
```markup
|
|
44
|
+
<AwBannerText
|
|
45
|
+
title="Warning"
|
|
46
|
+
description="Warning message"
|
|
47
|
+
icon="alert"
|
|
48
|
+
icon-color="warning-500"
|
|
49
|
+
/>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## API
|
|
53
|
+
|
|
54
|
+
### Props
|
|
55
|
+
|
|
56
|
+
| Name | Description | Type | Required | Default |
|
|
57
|
+
|------|-------------|------|----------|---------|
|
|
58
|
+
| src | Image source URL | `String` | `false` | `''` |
|
|
59
|
+
| icon | Icon name (when not using image) | `String` | `false` | `''` |
|
|
60
|
+
| iconColor | Icon color | `String` | `false` | `''` |
|
|
61
|
+
| title | Banner title | `String` | `false` | `''` |
|
|
62
|
+
| description | Banner description | `String` | `false` | `''` |
|
|
63
|
+
| rounded | Whether icon is rounded | `Boolean` | `false` | `true` |
|
|
64
|
+
|
|
65
|
+
### Slots
|
|
66
|
+
|
|
67
|
+
| Name | Description | Props | Default Slot Content |
|
|
68
|
+
|------|-------------|-------|---------------------|
|
|
69
|
+
| default | Custom description content | - | Description text |
|
|
70
|
+
| icon | Custom icon content | - | Icon or image |
|
|
71
|
+
| title | Custom title content | - | Title text |
|
|
72
|
+
|
|
73
|
+
### Events
|
|
74
|
+
|
|
75
|
+
No events are emitted by this component.
|
|
76
|
+
|
|
77
|
+
## Related Components
|
|
78
|
+
|
|
79
|
+
- `AwAlert` - Alert component
|
|
80
|
+
- `AwCard` - Card component
|
|
81
|
+
- `AwIcon` - Icon component
|
|
82
|
+
|
|
83
|
+
## Notes
|
|
84
|
+
|
|
85
|
+
- **Import Method:** Global - Available as molecule component
|
|
86
|
+
- Icon is displayed in a rounded container by default
|
|
87
|
+
- Title includes an arrow indicator
|
|
88
|
+
- When `src` is provided, image is used instead of icon
|
|
89
|
+
- Use for informational banners and callouts
|
|
90
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
metaTitle: Button nav component | AwesCode UI
|
|
3
|
+
meta:
|
|
4
|
+
- name: description
|
|
5
|
+
content: The <AwButtonNav /> component is used to render Button nav - UI Vue component for AwesCode UI.
|
|
6
|
+
title: Button Nav
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Button Nav
|
|
10
|
+
|
|
11
|
+
**Category:** Molecule | **Import:** Global
|
|
12
|
+
|
|
13
|
+
The `AwButtonNav` component is a navigation component that extends `AwTabNav` with button-style navigation.
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`AwButtonNav` provides button-style navigation tabs. It extends `AwTabNav` and uses the same API but with button-specific styling.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
### Basic Example
|
|
22
|
+
|
|
23
|
+
```markup
|
|
24
|
+
<AwButtonNav :items="navItems" v-model="activeTab" />
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
See `AwTabNav` documentation for complete usage examples and API details.
|
|
28
|
+
|
|
29
|
+
## API
|
|
30
|
+
|
|
31
|
+
`AwButtonNav` extends `AwTabNav` and supports all its props, slots, and events. See [AwTabNav documentation](aw-tab-nav.md) for complete API reference.
|
|
32
|
+
|
|
33
|
+
The component uses `aw-button-nav` as the base CSS class instead of `aw-tab-nav`.
|
|
34
|
+
|
|
35
|
+
## Related Components
|
|
36
|
+
|
|
37
|
+
- `AwTabNav` - Base tab navigation component
|
|
38
|
+
- `AwButton` - Button component
|
|
39
|
+
- `AwLink` - Link component
|
|
40
|
+
|
|
41
|
+
## Notes
|
|
42
|
+
|
|
43
|
+
- **Import Method:** Global - Available as molecule component
|
|
44
|
+
- Extends `AwTabNav` with button-specific styling
|
|
45
|
+
- Uses same API as `AwTabNav` - see that component's documentation for details
|
|
46
|
+
- Base CSS class is `aw-button-nav`
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
---
|
|
2
|
+
metaTitle: Button component | AwesCode UI
|
|
3
|
+
meta:
|
|
4
|
+
- name: description
|
|
5
|
+
content: The <AwButton /> component is used to render Button - UI Vue component for AwesCode UI.
|
|
6
|
+
title: Button
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Button
|
|
10
|
+
|
|
11
|
+
**Category:** Molecule | **Import:** Global
|
|
12
|
+
|
|
13
|
+
The `AwButton` component is a versatile button with multiple themes, sizes, colors, and states.
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`AwButton` provides a comprehensive button component that extends `AwLink` functionality, supporting routing, external links, and button actions. It includes loading states, icons, and various visual styles.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
### Basic Example
|
|
22
|
+
|
|
23
|
+
```markup
|
|
24
|
+
<AwButton>Click me</AwButton>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### With Icon
|
|
28
|
+
|
|
29
|
+
```markup
|
|
30
|
+
<AwButton icon="star">Favorite</AwButton>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Different Themes
|
|
34
|
+
|
|
35
|
+
```markup
|
|
36
|
+
<AwButton theme="solid">Solid</AwButton>
|
|
37
|
+
<AwButton theme="outline">Outline</AwButton>
|
|
38
|
+
<AwButton theme="icon" icon="settings" />
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Different Sizes
|
|
42
|
+
|
|
43
|
+
```markup
|
|
44
|
+
<AwButton size="sm">Small</AwButton>
|
|
45
|
+
<AwButton size="md">Medium</AwButton>
|
|
46
|
+
<AwButton size="lg">Large</AwButton>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### With Loading State
|
|
50
|
+
|
|
51
|
+
```markup
|
|
52
|
+
<AwButton :loading="isLoading">Submit</AwButton>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### As Link
|
|
56
|
+
|
|
57
|
+
```markup
|
|
58
|
+
<AwButton href="/page">Go to Page</AwButton>
|
|
59
|
+
<AwButton href="https://example.com">External Link</AwButton>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## API
|
|
63
|
+
|
|
64
|
+
### Props
|
|
65
|
+
|
|
66
|
+
| Name | Description | Type | Required | Default |
|
|
67
|
+
|------|-------------|------|----------|---------|
|
|
68
|
+
| size | Button size (xs, sm, md, lg) | `String` | `false` | `'md'` |
|
|
69
|
+
| color | Button color (accent, error, mono, dark) | `String` | `false` | `'accent'` |
|
|
70
|
+
| theme | Button theme (solid, outline, icon) | `String` | `false` | `'solid'` |
|
|
71
|
+
| icon | Leading icon name | `String` | `false` | `''` |
|
|
72
|
+
| iconRight | Trailing icon name | `String` | `false` | `''` |
|
|
73
|
+
| loading | Show loading spinner | `Boolean` / `String` | `false` | `false` |
|
|
74
|
+
| locked | Show lock icon and disable | `Boolean` | `false` | `false` |
|
|
75
|
+
| lockedTooltip | Tooltip when locked | `String` | `false` | `''` |
|
|
76
|
+
| hideText | Hide button text | `Boolean` | `false` | `false` |
|
|
77
|
+
| autoWidth | Auto width (no full width) | `Boolean` | `false` | `false` |
|
|
78
|
+
| highlightIcon | Highlight icon (lg size only) | `Boolean` | `false` | `false` |
|
|
79
|
+
|
|
80
|
+
All link-related props from `AwLink` are also supported (e.g., `href`, `to`, `text`).
|
|
81
|
+
|
|
82
|
+
### Slots
|
|
83
|
+
|
|
84
|
+
| Name | Description | Props | Default Slot Content |
|
|
85
|
+
|------|-------------|-------|---------------------|
|
|
86
|
+
| default | Button text content | `{ text }` | Text prop value |
|
|
87
|
+
| icon | Custom leading icon | `{ icon }` | Default icon |
|
|
88
|
+
| icon-right | Custom trailing icon | `{ iconRight }` | Default icon |
|
|
89
|
+
|
|
90
|
+
### Events
|
|
91
|
+
|
|
92
|
+
All standard button/link events are supported (e.g., `click`).
|
|
93
|
+
|
|
94
|
+
### Config Options
|
|
95
|
+
|
|
96
|
+
The component uses default configuration from `@AwConfig`:
|
|
97
|
+
|
|
98
|
+
```javascript
|
|
99
|
+
export default {
|
|
100
|
+
AwButton: {
|
|
101
|
+
routerComponent: 'router-link',
|
|
102
|
+
size: 'md',
|
|
103
|
+
color: 'accent',
|
|
104
|
+
theme: 'solid'
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Related Components
|
|
110
|
+
|
|
111
|
+
- `AwActionButton` - Action button with descriptions
|
|
112
|
+
- `AwButtonNav` - Navigation button
|
|
113
|
+
- `AwLink` - Basic link component
|
|
114
|
+
|
|
115
|
+
## Notes
|
|
116
|
+
|
|
117
|
+
- **Import Method:** Global - Available as molecule component
|
|
118
|
+
- Extends `AwLink` for routing and link functionality
|
|
119
|
+
- Supports animated icons (automatically detected)
|
|
120
|
+
- Icon highlighting only works with `size="lg"` and `theme="solid"`
|
|
121
|
+
- Loading state shows spinner and disables button
|
|
122
|
+
- Locked state shows lock icon and disables button
|
|
123
|
+
- Custom themes and colors are supported via CSS classes
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
metaTitle: Description Input component | AwesCode UI
|
|
3
|
+
meta:
|
|
4
|
+
- name: description
|
|
5
|
+
content: The <AwDescriptionInput /> component is used to render Description Input wrapper - UI Vue component for AwesCode UI.
|
|
6
|
+
title: Description Input
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Description Input
|
|
10
|
+
|
|
11
|
+
**Category:** Molecule | **Import:** Global
|
|
12
|
+
|
|
13
|
+
The `AwDescriptionInput` component wraps an input field with a description text below it.
|
|
14
|
+
|
|
15
|
+
## Overview
|
|
16
|
+
|
|
17
|
+
`AwDescriptionInput` provides a wrapper that combines an input field (via slot) with a description text that appears below it. It's useful for form fields that need helper text.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
### Basic Example
|
|
22
|
+
|
|
23
|
+
```markup
|
|
24
|
+
<AwDescriptionInput text="Enter your email address">
|
|
25
|
+
<AwInput v-model="email" label="Email" />
|
|
26
|
+
</AwDescriptionInput>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### With HTML Content
|
|
30
|
+
|
|
31
|
+
```markup
|
|
32
|
+
<AwDescriptionInput text="<strong>Required</strong> field">
|
|
33
|
+
<AwInput v-model="name" label="Name" />
|
|
34
|
+
</AwDescriptionInput>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## API
|
|
38
|
+
|
|
39
|
+
### Props
|
|
40
|
+
|
|
41
|
+
| Name | Description | Type | Required | Default |
|
|
42
|
+
|------|-------------|------|----------|---------|
|
|
43
|
+
| text | Description text (supports HTML) | `String` | `false` | `''` |
|
|
44
|
+
|
|
45
|
+
### Slots
|
|
46
|
+
|
|
47
|
+
| Name | Description | Props | Default Slot Content |
|
|
48
|
+
|------|-------------|-------|---------------------|
|
|
49
|
+
| default | Input field component | - | - |
|
|
50
|
+
|
|
51
|
+
### Events
|
|
52
|
+
|
|
53
|
+
No events are emitted by this component.
|
|
54
|
+
|
|
55
|
+
## Related Components
|
|
56
|
+
|
|
57
|
+
- `AwInput` - Input component
|
|
58
|
+
- `AwDescription` - Description component
|
|
59
|
+
- `AwForm` - Form component
|
|
60
|
+
|
|
61
|
+
## Notes
|
|
62
|
+
|
|
63
|
+
- **Import Method:** Global - Available as molecule component
|
|
64
|
+
- Description text supports HTML (rendered with `v-html`)
|
|
65
|
+
- Description only shows when `text` prop is not empty
|
|
66
|
+
- Use for form fields that need helper text or instructions
|
|
67
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
metaTitle: Empty Container component | AwesCode UI
|
|
3
|
+
meta:
|
|
4
|
+
- name: description
|
|
5
|
+
content: The <AwEmptyContainer /> component is used to render Empty Container - UI Vue component for AwesCode UI.
|
|
6
|
+
title: Empty Container
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Empty Container
|
|
10
|
+
|
|
11
|
+
**Category:** Molecule | **Import:** Global
|
|
12
|
+
|
|
13
|
+
`AwEmptyContainer` renders an animated empty state with icon or image, title, description, and an optional call-to-action button.
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
### Basic
|
|
18
|
+
|
|
19
|
+
```markup
|
|
20
|
+
<AwEmptyContainer
|
|
21
|
+
icon="awesio/empty-box"
|
|
22
|
+
title="Nothing here yet"
|
|
23
|
+
message="Start by adding your first item."
|
|
24
|
+
/>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Custom image and CTA prop
|
|
28
|
+
|
|
29
|
+
```markup
|
|
30
|
+
<AwEmptyContainer
|
|
31
|
+
theme="card"
|
|
32
|
+
image="/img/placeholders/empty.svg"
|
|
33
|
+
title="No projects"
|
|
34
|
+
message="Create your first project to get started."
|
|
35
|
+
:cta-button="{ label: 'Create project', variant: 'primary' }"
|
|
36
|
+
/>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Custom slots
|
|
40
|
+
|
|
41
|
+
```markup
|
|
42
|
+
<AwEmptyContainer
|
|
43
|
+
theme="empty"
|
|
44
|
+
title="No results"
|
|
45
|
+
message="Try adjusting your filters."
|
|
46
|
+
>
|
|
47
|
+
<template #image>
|
|
48
|
+
<AwIcon name="awesio/search" size="80" />
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<template #button>
|
|
52
|
+
<AwButton variant="ghost">Clear filters</AwButton>
|
|
53
|
+
</template>
|
|
54
|
+
</AwEmptyContainer>
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## API
|
|
58
|
+
|
|
59
|
+
### Props
|
|
60
|
+
|
|
61
|
+
| Name | Description | Type | Required | Default |
|
|
62
|
+
|------|-------------|------|----------|---------|
|
|
63
|
+
| image | Image URL | `String` | `false` | `''` |
|
|
64
|
+
| icon | Icon name | `String` | `false` | `''` |
|
|
65
|
+
| title | Empty state title | `String` | `false` | `''` |
|
|
66
|
+
| message | Description text (sanitized HTML) | `String` | `false` | `''` |
|
|
67
|
+
| theme | Layout style: `card`, `empty`, `transparent` | `String` | `false` | `'card'` |
|
|
68
|
+
| ctaButton | Props passed to `AwButton` | `Object` | `false` | `null` |
|
|
69
|
+
|
|
70
|
+
### Slots
|
|
71
|
+
|
|
72
|
+
| Name | Description | Props | Default Slot Content |
|
|
73
|
+
|------|-------------|-------|---------------------|
|
|
74
|
+
| image | Replace the image/icon | - | `img` or `AwIcon` |
|
|
75
|
+
| button | Replace the CTA button area | - | `AwButton` from `ctaButton` |
|
|
76
|
+
|
|
77
|
+
### Events
|
|
78
|
+
|
|
79
|
+
No events are emitted.
|
|
80
|
+
|
|
81
|
+
## Notes
|
|
82
|
+
|
|
83
|
+
- Elements animate in on mount with staggered delays.
|
|
84
|
+
- `theme="card"` applies padding and uses `AwCard`; `empty` and `transparent` remove card padding.
|
|
85
|
+
- Use `message` for short HTML-safe descriptions.
|
|
86
|
+
|