@awes-io/ui 2.142.3 → 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.
Files changed (236) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/assets/css/components/_index.css +7 -1
  3. package/assets/css/components/animation.css +38 -32
  4. package/assets/css/components/content-placeholder.css +103 -0
  5. package/assets/css/components/empty-container.css +69 -1
  6. package/assets/css/components/filter-chosen.css +6 -0
  7. package/assets/css/components/filter-date-range.css +17 -1
  8. package/assets/css/components/filter-month.css +23 -17
  9. package/assets/css/components/filter-select.css +11 -0
  10. package/assets/css/components/layout.css +1 -32
  11. package/assets/css/components/modal.css +1 -1
  12. package/assets/css/components/number.css +12 -0
  13. package/assets/css/components/page-aside.css +54 -0
  14. package/assets/js/css.js +1 -1
  15. package/assets/js/icons/mono.js +59 -91
  16. package/assets/js/icons/multicolor.js +1 -31
  17. package/components/1_atoms/AwContentPlaceholder.vue +60 -0
  18. package/components/1_atoms/AwFlow.vue +21 -48
  19. package/components/1_atoms/AwLabel.vue +1 -1
  20. package/components/2_molecules/AwButton.vue +1 -1
  21. package/components/2_molecules/AwEmptyContainer.vue +74 -72
  22. package/components/2_molecules/AwNumber.vue +180 -0
  23. package/components/2_molecules/AwSelect.vue +11 -4
  24. package/components/3_organisms/AwFilterChosen.vue +73 -0
  25. package/components/3_organisms/AwFilterDateRange.vue +177 -0
  26. package/components/3_organisms/AwFilterMonth.vue +37 -40
  27. package/components/3_organisms/AwFilterSelect.vue +368 -0
  28. package/components/3_organisms/AwMultiBlockBuilder.vue +1 -1
  29. package/components/3_organisms/AwTable/AwTableBuilder.vue +12 -60
  30. package/components/4_pages/AwPageAside.vue +108 -0
  31. package/components/5_layouts/AwLayoutCenter.vue +3 -8
  32. package/components/5_layouts/_AwUserMenu.vue +1 -1
  33. package/dist/css/aw-icons.css +26 -0
  34. package/dist/fonts/aw-icons.svg +18 -0
  35. package/dist/fonts/aw-icons.ttf +0 -0
  36. package/dist/fonts/aw-icons.woff +0 -0
  37. package/dist/fonts/aw-icons.woff2 +0 -0
  38. package/docs/_template.md +80 -0
  39. package/docs/components/atoms/aw-accordion-fold.md +91 -0
  40. package/docs/components/atoms/aw-action-card-body.md +67 -0
  41. package/docs/components/atoms/aw-action-card.md +94 -0
  42. package/docs/components/atoms/aw-action-icon.md +88 -0
  43. package/docs/components/atoms/aw-avatar.md +106 -0
  44. package/docs/components/atoms/aw-card.md +112 -0
  45. package/docs/components/atoms/aw-checkbox.md +112 -0
  46. package/docs/components/atoms/aw-content-placeholder.md +116 -0
  47. package/docs/components/atoms/aw-description.md +83 -0
  48. package/docs/components/atoms/aw-dock.md +84 -0
  49. package/docs/components/atoms/aw-dropdown-button.md +94 -0
  50. package/docs/components/atoms/aw-dropdown.md +128 -0
  51. package/docs/components/atoms/aw-file.md +73 -0
  52. package/docs/components/atoms/aw-flow.md +92 -0
  53. package/docs/components/atoms/aw-grid.md +91 -0
  54. package/docs/components/atoms/aw-headline.md +71 -0
  55. package/docs/components/atoms/aw-icon-system-color.md +121 -0
  56. package/docs/components/atoms/aw-icon-system-mono.md +205 -0
  57. package/docs/components/atoms/aw-icon.md +235 -0
  58. package/docs/components/atoms/aw-info.md +85 -0
  59. package/docs/components/atoms/aw-input.md +120 -0
  60. package/docs/components/atoms/aw-label.md +83 -0
  61. package/docs/components/atoms/aw-link.md +99 -0
  62. package/docs/components/atoms/aw-list.md +88 -0
  63. package/docs/components/atoms/aw-progress.md +70 -0
  64. package/docs/components/atoms/aw-radio.md +109 -0
  65. package/docs/components/atoms/aw-refresh-wrapper.md +81 -0
  66. package/docs/components/atoms/aw-select-native.md +106 -0
  67. package/docs/components/atoms/aw-slider.md +82 -0
  68. package/docs/components/atoms/aw-sub-headline.md +73 -0
  69. package/docs/components/atoms/aw-switcher.md +115 -0
  70. package/docs/components/atoms/aw-tag.md +80 -0
  71. package/docs/components/atoms/aw-title.md +70 -0
  72. package/docs/components/atoms/aw-toggler.md +69 -0
  73. package/docs/components/layouts/aw-layout-center.md +168 -0
  74. package/docs/components/layouts/aw-layout-error.md +153 -0
  75. package/docs/components/layouts/aw-layout-provider.md +238 -0
  76. package/docs/components/layouts/aw-layout.md +88 -0
  77. package/docs/components/molecules/aw-action-button.md +91 -0
  78. package/docs/components/molecules/aw-alert.md +96 -0
  79. package/docs/components/molecules/aw-badge.md +108 -0
  80. package/docs/components/molecules/aw-banner-text.md +90 -0
  81. package/docs/components/molecules/aw-button-nav.md +46 -0
  82. package/docs/components/molecules/aw-button.md +123 -0
  83. package/docs/components/molecules/aw-description-input.md +67 -0
  84. package/docs/components/molecules/aw-empty-container.md +86 -0
  85. package/docs/components/molecules/aw-island.md +234 -0
  86. package/docs/components/molecules/aw-number.md +138 -0
  87. package/docs/components/molecules/aw-select-object.md +401 -0
  88. package/docs/components/molecules/aw-select.md +215 -0
  89. package/docs/components/molecules/aw-tab-nav.md +108 -0
  90. package/docs/components/molecules/aw-tel.md +129 -0
  91. package/docs/components/molecules/aw-textarea.md +83 -0
  92. package/docs/components/molecules/aw-userpic.md +115 -0
  93. package/docs/components/organisms/aw-address-block.md +64 -0
  94. package/docs/components/organisms/aw-address.md +132 -0
  95. package/docs/components/organisms/aw-birthday-picker.md +73 -0
  96. package/docs/components/organisms/aw-bottom-bar.md +66 -0
  97. package/docs/components/organisms/aw-calendar-days.md +115 -0
  98. package/docs/components/organisms/aw-calendar-nav.md +98 -0
  99. package/docs/components/organisms/aw-calendar-view.md +98 -0
  100. package/docs/components/organisms/aw-calendar.md +166 -0
  101. package/docs/components/organisms/aw-chart.md +154 -0
  102. package/docs/components/organisms/aw-chip-select.md +164 -0
  103. package/docs/components/organisms/aw-chip.md +126 -0
  104. package/docs/components/organisms/aw-code-snippet.md +94 -0
  105. package/docs/components/organisms/aw-code.md +132 -0
  106. package/docs/components/organisms/aw-context-menu.md +117 -0
  107. package/docs/components/organisms/aw-cropper.md +151 -0
  108. package/docs/components/organisms/aw-date.md +161 -0
  109. package/docs/components/organisms/aw-display-date.md +33 -0
  110. package/docs/components/organisms/aw-download-link.md +46 -0
  111. package/docs/components/organisms/aw-fetch-data.md +161 -0
  112. package/docs/components/organisms/aw-filter-chosen.md +226 -0
  113. package/docs/components/organisms/aw-filter-date-range.md +205 -0
  114. package/docs/components/organisms/aw-filter-month.md +43 -0
  115. package/docs/components/organisms/aw-filter-select.md +225 -0
  116. package/docs/components/organisms/aw-form.md +174 -0
  117. package/docs/components/organisms/aw-gmap-marker.md +86 -0
  118. package/docs/components/organisms/aw-gmap.md +90 -0
  119. package/docs/components/organisms/aw-image-upload.md +56 -0
  120. package/docs/components/organisms/aw-island-avatar.md +87 -0
  121. package/docs/components/organisms/aw-markdown-editor.md +104 -0
  122. package/docs/components/organisms/aw-modal-buttons.md +57 -0
  123. package/docs/components/organisms/aw-modal.md +246 -0
  124. package/docs/components/organisms/aw-model-edit.md +74 -0
  125. package/docs/components/organisms/aw-money.md +53 -0
  126. package/docs/components/organisms/aw-multi-block-builder.md +165 -0
  127. package/docs/components/organisms/aw-pagination.md +121 -0
  128. package/docs/components/organisms/aw-password.md +103 -0
  129. package/docs/components/organisms/aw-preview-card.md +45 -0
  130. package/docs/components/organisms/aw-search.md +116 -0
  131. package/docs/components/organisms/aw-subnav.md +122 -0
  132. package/docs/components/organisms/aw-table-builder.md +165 -0
  133. package/docs/components/organisms/aw-table-col.md +123 -0
  134. package/docs/components/organisms/aw-table-head.md +92 -0
  135. package/docs/components/organisms/aw-table-row.md +91 -0
  136. package/docs/components/organisms/aw-table.md +172 -0
  137. package/docs/components/organisms/aw-tags.md +54 -0
  138. package/docs/components/organisms/aw-toggle-show-aside.md +43 -0
  139. package/docs/components/organisms/aw-uploader-files.md +125 -0
  140. package/docs/components/organisms/aw-uploader.md +163 -0
  141. package/docs/components/organisms/aw-user-menu.md +87 -0
  142. package/docs/components/pages/aw-page-aside.md +296 -0
  143. package/docs/components/pages/aw-page-menu-buttons.md +172 -0
  144. package/docs/components/pages/aw-page-modal.md +198 -0
  145. package/docs/components/pages/aw-page-single.md +253 -0
  146. package/docs/components/pages/aw-page.md +194 -0
  147. package/docs/configuration.md +493 -0
  148. package/docs/cookbook/advanced-patterns.md +1388 -0
  149. package/docs/cookbook/common-patterns.md +965 -0
  150. package/docs/cookbook/index.md +786 -0
  151. package/docs/getting-started.md +596 -0
  152. package/docs/guides/best-practices.md +1106 -0
  153. package/docs/guides/data-fetching.md +852 -0
  154. package/docs/guides/error-handling.md +1172 -0
  155. package/docs/guides/forms-guide.md +1329 -0
  156. package/docs/guides/mobile-subnavigation.md +359 -0
  157. package/docs/guides/page-patterns/aside-pages.md +1418 -0
  158. package/docs/guides/page-patterns/dashboard-pages.md +990 -0
  159. package/docs/guides/page-patterns/detail-pages.md +1493 -0
  160. package/docs/guides/page-patterns/list-pages.md +1094 -0
  161. package/docs/index.md +263 -1
  162. package/docs/integrations.md +870 -0
  163. package/docs/reference/menu.md +462 -0
  164. package/docs/reference/plugins.md +970 -0
  165. package/docs/reference/troubleshooting.md +945 -0
  166. package/nuxt/awes.config.js +9 -8
  167. package/nuxt/icons.css +26 -0
  168. package/nuxt/index.js +2 -2
  169. package/nuxt/pages/more.vue +1 -1
  170. package/package.json +5 -3
  171. package/readme.md +171 -1
  172. package/docs/aw-accordion-fold.md +0 -46
  173. package/docs/aw-address.md +0 -44
  174. package/docs/aw-avatar.md +0 -51
  175. package/docs/aw-badge.md +0 -32
  176. package/docs/aw-button-nav.md +0 -44
  177. package/docs/aw-button.md +0 -50
  178. package/docs/aw-calendar-days.md +0 -46
  179. package/docs/aw-calendar-nav.md +0 -25
  180. package/docs/aw-calendar-view.md +0 -12
  181. package/docs/aw-calendar.md +0 -59
  182. package/docs/aw-card.md +0 -48
  183. package/docs/aw-chart.md +0 -51
  184. package/docs/aw-checkbox.md +0 -56
  185. package/docs/aw-chip-select.md +0 -46
  186. package/docs/aw-chip.md +0 -53
  187. package/docs/aw-code-snippet.md +0 -18
  188. package/docs/aw-code.md +0 -56
  189. package/docs/aw-content-wrapper.md +0 -40
  190. package/docs/aw-context-menu.md +0 -31
  191. package/docs/aw-cropper.md +0 -60
  192. package/docs/aw-dashboard-card.md +0 -37
  193. package/docs/aw-dashboard-donut.md +0 -30
  194. package/docs/aw-dashboard-line.md +0 -20
  195. package/docs/aw-dashboard-progress.md +0 -33
  196. package/docs/aw-dashboard-section.md +0 -32
  197. package/docs/aw-dashboard-speed.md +0 -30
  198. package/docs/aw-date.md +0 -52
  199. package/docs/aw-dropdown-button.md +0 -31
  200. package/docs/aw-dropdown.md +0 -69
  201. package/docs/aw-fetch-data.md +0 -45
  202. package/docs/aw-form.md +0 -52
  203. package/docs/aw-grid.md +0 -48
  204. package/docs/aw-icon.md +0 -50
  205. package/docs/aw-info.md +0 -53
  206. package/docs/aw-input.md +0 -55
  207. package/docs/aw-layout-default.md +0 -30
  208. package/docs/aw-layout-frame-center.md +0 -29
  209. package/docs/aw-layout-simple.md +0 -49
  210. package/docs/aw-link.md +0 -54
  211. package/docs/aw-markdown-editor.md +0 -51
  212. package/docs/aw-modal.md +0 -63
  213. package/docs/aw-multi-block-builder.md +0 -66
  214. package/docs/aw-page.md +0 -36
  215. package/docs/aw-pagination.md +0 -54
  216. package/docs/aw-password.md +0 -48
  217. package/docs/aw-radio.md +0 -54
  218. package/docs/aw-search.md +0 -49
  219. package/docs/aw-select.md +0 -93
  220. package/docs/aw-slider.md +0 -40
  221. package/docs/aw-svg-image.md +0 -19
  222. package/docs/aw-switcher.md +0 -51
  223. package/docs/aw-tab-nav.md +0 -55
  224. package/docs/aw-table-builder.md +0 -58
  225. package/docs/aw-table-col.md +0 -33
  226. package/docs/aw-table-head.md +0 -28
  227. package/docs/aw-table-row.md +0 -33
  228. package/docs/aw-table.md +0 -59
  229. package/docs/aw-tel.md +0 -47
  230. package/docs/aw-textarea.md +0 -47
  231. package/docs/aw-toggler.md +0 -41
  232. package/docs/aw-uploader-files.md +0 -20
  233. package/docs/aw-uploader.md +0 -60
  234. package/docs/aw-user-menu.md +0 -34
  235. package/docs/aw-userpic.md +0 -34
  236. /package/components/{3_organisms → 2_molecules}/AwTel.vue +0 -0
@@ -0,0 +1,82 @@
1
+ ---
2
+ metaTitle: Slider component | AwesCode UI
3
+ meta:
4
+ - name: description
5
+ content: The <AwSlider /> component is used to render Slider - UI Vue component for AwesCode UI.
6
+ title: Slider
7
+ ---
8
+
9
+ # Slider
10
+
11
+ **Category:** Atom | **Import:** Global
12
+
13
+ The `AwSlider` component provides a horizontal scrollable container with drag support and shadow indicators.
14
+
15
+ ## Overview
16
+
17
+ `AwSlider` creates a horizontal scrolling container that supports mouse and touch drag gestures. It shows shadow indicators on the left and right edges when content can be scrolled, and prevents click events during drag operations.
18
+
19
+ ## Usage
20
+
21
+ ### Basic Example
22
+
23
+ ```markup
24
+ <AwSlider>
25
+ <div class="flex gap-4">
26
+ <div>Item 1</div>
27
+ <div>Item 2</div>
28
+ <div>Item 3</div>
29
+ </div>
30
+ </AwSlider>
31
+ ```
32
+
33
+ ### Custom Tag
34
+
35
+ ```markup
36
+ <AwSlider tag="section">
37
+ <div>Scrollable content</div>
38
+ </AwSlider>
39
+ ```
40
+
41
+ ## API
42
+
43
+ ### Props
44
+
45
+ | Name | Description | Type | Required | Default |
46
+ |------|-------------|------|----------|---------|
47
+ | tag | HTML tag for container | `String` | `false` | `'div'` |
48
+
49
+ ### Slots
50
+
51
+ | Name | Description | Props | Default Slot Content |
52
+ |------|-------------|-------|---------------------|
53
+ | default | Scrollable content | - | - |
54
+
55
+ ### Events
56
+
57
+ | Name | Payload | Description |
58
+ |------|---------|-------------|
59
+ | resized | - | Emitted when container is resized |
60
+
61
+ ### Methods
62
+
63
+ | Name | Parameters | Description |
64
+ |------|-----------|-------------|
65
+ | scrollTo | `element` | Scrolls to the specified child element |
66
+
67
+ ## Related Components
68
+
69
+ - `AwFlow` - Flow layout component
70
+ - `AwGrid` - Grid layout component
71
+
72
+ ## Notes
73
+
74
+ - **Import Method:** Global - Available as atom component
75
+ - Supports mouse and touch drag gestures
76
+ - Shows shadow indicators when content is scrollable
77
+ - Prevents click events during drag operations
78
+ - Automatically handles resize events
79
+ - Use `scrollTo(element)` method to programmatically scroll to a child element
80
+ - Click threshold: 300ms or 5px movement to detect drag vs click
81
+
82
+
@@ -0,0 +1,73 @@
1
+ ---
2
+ metaTitle: Sub Headline component | AwesCode UI
3
+ meta:
4
+ - name: description
5
+ content: The &lt;AwSubHeadline /&gt; component is used to render Sub Headline - UI Vue component for AwesCode UI.
6
+ title: Sub Headline
7
+ ---
8
+
9
+ # Sub Headline
10
+
11
+ **Category:** Atom | **Import:** Global
12
+
13
+ The `AwSubHeadline` component is a semantic sub-heading wrapper with consistent styling.
14
+
15
+ ## Overview
16
+
17
+ `AwSubHeadline` provides a styled sub-heading component that can render as different HTML heading tags (h4-h6). It applies consistent typography and spacing for secondary headings.
18
+
19
+ ## Usage
20
+
21
+ ### Basic Example
22
+
23
+ ```markup
24
+ <AwSubHeadline>Sub Heading</AwSubHeadline>
25
+ ```
26
+
27
+ ### With Custom Tag
28
+
29
+ ```markup
30
+ <AwSubHeadline tag="h5">Section Subtitle</AwSubHeadline>
31
+ ```
32
+
33
+ ### In Cards
34
+
35
+ ```markup
36
+ <AwCard>
37
+ <AwHeadline>Main Title</AwHeadline>
38
+ <AwSubHeadline>Subtitle</AwSubHeadline>
39
+ <p>Content</p>
40
+ </AwCard>
41
+ ```
42
+
43
+ ## API
44
+
45
+ ### Props
46
+
47
+ | Name | Description | Type | Required | Default |
48
+ |------|-------------|------|----------|---------|
49
+ | tag | HTML heading tag (h4-h6) | `String` | `false` | `'h4'` |
50
+
51
+ ### Slots
52
+
53
+ | Name | Description | Props | Default Slot Content |
54
+ |------|-------------|-------|---------------------|
55
+ | default | Sub-heading text content | - | - |
56
+
57
+ ### Events
58
+
59
+ No events are emitted by this component.
60
+
61
+ ## Related Components
62
+
63
+ - `AwHeadline` - Main heading component
64
+ - `AwTitle` - Title component
65
+ - `AwCard` - Card component that uses sub-headlines
66
+
67
+ ## Notes
68
+
69
+ - **Import Method:** Global - Available as atom component
70
+ - Default tag is `h4`
71
+ - Use for secondary headings and section subtitles
72
+ - Maintains semantic HTML structure with appropriate heading levels
73
+
@@ -0,0 +1,115 @@
1
+ ---
2
+ metaTitle: Switcher component | AwesCode UI
3
+ meta:
4
+ - name: description
5
+ content: The &lt;AwSwitcher /&gt; component is used to render Switcher - UI Vue component for AwesCode UI.
6
+ title: Switcher
7
+ ---
8
+
9
+ # Switcher
10
+
11
+ **Category:** Atom | **Import:** Global
12
+
13
+ The `AwSwitcher` component is a toggle switch with smooth animations and optional icons.
14
+
15
+ ## Overview
16
+
17
+ `AwSwitcher` provides a styled toggle switch component that extends `AwCheckbox`. It supports drag gestures, custom colors, icons, and multiple sizes. The switch can be toggled by clicking or dragging.
18
+
19
+ ## Usage
20
+
21
+ ### Basic Example
22
+
23
+ ```markup
24
+ <AwSwitcher v-model="enabled" label="Enable feature" />
25
+ ```
26
+
27
+ ### Different Sizes
28
+
29
+ ```markup
30
+ <AwSwitcher v-model="enabled" size="sm" label="Small" />
31
+ <AwSwitcher v-model="enabled" size="md" label="Medium" />
32
+ <AwSwitcher v-model="enabled" size="lg" label="Large" />
33
+ ```
34
+
35
+ ### With Custom Colors
36
+
37
+ ```markup
38
+ <AwSwitcher
39
+ v-model="enabled"
40
+ active-color="success"
41
+ inactive-color="mono-400"
42
+ label="Custom colors"
43
+ />
44
+ ```
45
+
46
+ ### With Icons
47
+
48
+ ```markup
49
+ <AwSwitcher
50
+ v-model="enabled"
51
+ icon="awesio/check"
52
+ off-icon="awesio/close"
53
+ label="With icons"
54
+ />
55
+ ```
56
+
57
+ ### Icon in Toggle Circle
58
+
59
+ ```markup
60
+ <AwSwitcher
61
+ v-model="enabled"
62
+ icon="awesio/check"
63
+ icon-place-in
64
+ label="Icon in circle"
65
+ />
66
+ ```
67
+
68
+ ## API
69
+
70
+ ### Props
71
+
72
+ | Name | Description | Type | Required | Default |
73
+ |------|-------------|------|----------|---------|
74
+ | value | Value emitted when checked | `String` / `Number` / `Boolean` / `Object` | `false` | `'on'` |
75
+ | checked | Checked state | `Array` / `Boolean` / `Number` | `false` | `false` |
76
+ | size | Switch size (sm, md, lg) | `String` | `false` | `'md'` | Must be: sm, md, lg |
77
+ | activeColor | Background color when active | `String` | `false` | `'success'` |
78
+ | inactiveColor | Background color when inactive | `String` | `false` | `''` |
79
+ | icon | Icon name when active | `String` | `false` | `''` |
80
+ | offIcon | Icon name when inactive | `String` | `false` | `''` |
81
+ | iconColor | Icon color | `String` | `false` | `''` |
82
+ | hideIcon | Hide icons completely | `Boolean` | `false` | `false` |
83
+ | iconPlaceIn | Place icon inside toggle circle | `Boolean` | `false` | `false` |
84
+
85
+ All props from `AwCheckbox` are also supported.
86
+
87
+ ### Slots
88
+
89
+ | Name | Description | Props | Default Slot Content |
90
+ |------|-------------|-------|---------------------|
91
+ | default | Custom switch element | `{ id, checked, onChange, setError, value }` | Default switch input |
92
+ | label | Custom label content | `{ label, value, isChecked }` | Label text |
93
+ | toggler-icon | Custom icon in toggle circle | - | Default icon |
94
+
95
+ ### Events
96
+
97
+ | Name | Payload | Description |
98
+ |------|---------|-------------|
99
+ | change | `value` | Emitted when switch state changes |
100
+
101
+ ## Related Components
102
+
103
+ - `AwCheckbox` - Checkbox component (extended by switcher)
104
+ - `AwRadio` - Radio button component
105
+ - `AwIcon` - Icon component
106
+
107
+ ## Notes
108
+
109
+ - **Import Method:** Global - Available as atom component
110
+ - Extends `AwCheckbox` for checkbox functionality
111
+ - Supports drag gestures (mouse and touch) for toggling
112
+ - Icons are only shown for md and lg sizes
113
+ - Icon size adapts based on switch size (22px for lg, 12px for md)
114
+ - Drag threshold is 5 pixels to prevent accidental toggles
115
+ - Supports partial/indeterminate state from checkbox
@@ -0,0 +1,80 @@
1
+ ---
2
+ metaTitle: Tag component | AwesCode UI
3
+ meta:
4
+ - name: description
5
+ content: The &lt;AwTag /&gt; component is used to render Tag - UI Vue component for AwesCode UI.
6
+ title: Tag
7
+ ---
8
+
9
+ # Tag
10
+
11
+ **Category:** Atom | **Import:** Global
12
+
13
+ The `AwTag` component displays a styled tag/badge with optional icon and customizable colors.
14
+
15
+ ## Overview
16
+
17
+ `AwTag` provides a small badge-like component for displaying tags, labels, or status indicators. It supports custom colors, icons, and can render as different HTML tags.
18
+
19
+ ## Usage
20
+
21
+ ### Basic Example
22
+
23
+ ```markup
24
+ <AwTag text="New" />
25
+ ```
26
+
27
+ ### With Icon
28
+
29
+ ```markup
30
+ <AwTag text="Featured" icon="star" />
31
+ ```
32
+
33
+ ### With Custom Colors
34
+
35
+ ```markup
36
+ <AwTag text="Success" color="success-500" />
37
+ <AwTag text="Warning" color="warning-500" on-color="white" />
38
+ ```
39
+
40
+ ### As Link
41
+
42
+ ```markup
43
+ <AwTag text="Tag" tag="a" href="/tagged" />
44
+ ```
45
+
46
+ ## API
47
+
48
+ ### Props
49
+
50
+ | Name | Description | Type | Required | Default |
51
+ |------|-------------|------|----------|---------|
52
+ | tag | HTML tag to render | `String` | `false` | `'span'` |
53
+ | color | Background color | `String` | `false` | `'mono-100'` |
54
+ | onColor | Text/icon color | `String` | `false` | `''` |
55
+ | text | Tag text content | `String` | `true` | - |
56
+ | icon | Icon name | `String` | `false` | `null` |
57
+
58
+ ### Slots
59
+
60
+ No slots are available for this component.
61
+
62
+ ### Events
63
+
64
+ No events are emitted by this component.
65
+
66
+ ## Related Components
67
+
68
+ - `AwLabel` - Label component with similar functionality
69
+ - `AwBadge` - Badge component
70
+ - `AwTags` - Multiple tags component
71
+
72
+ ## Notes
73
+
74
+ - **Import Method:** Global - Available as atom component
75
+ - Default background color is `mono-100`
76
+ - Text color is automatically calculated from background color if `onColor` not provided
77
+ - Supports custom colors via theme color system
78
+ - Icon is displayed before the text
79
+ - Can be rendered as any HTML tag (e.g., `a` for links)
80
+
@@ -0,0 +1,70 @@
1
+ ---
2
+ metaTitle: Title component | AwesCode UI
3
+ meta:
4
+ - name: description
5
+ content: The &lt;AwTitle /&gt; component is used to render Title - UI Vue component for AwesCode UI.
6
+ title: Title
7
+ ---
8
+
9
+ # Title
10
+
11
+ **Category:** Atom | **Import:** Global
12
+
13
+ The `AwTitle` component is a semantic title wrapper with consistent styling.
14
+
15
+ ## Overview
16
+
17
+ `AwTitle` provides a styled title component that can render as different HTML heading tags (h1-h6). It applies consistent typography and spacing for page or section titles.
18
+
19
+ ## Usage
20
+
21
+ ### Basic Example
22
+
23
+ ```markup
24
+ <AwTitle>Page Title</AwTitle>
25
+ ```
26
+
27
+ ### With Custom Tag
28
+
29
+ ```markup
30
+ <AwTitle tag="h1">Main Title</AwTitle>
31
+ ```
32
+
33
+ ### Different Heading Levels
34
+
35
+ ```markup
36
+ <AwTitle tag="h1">Level 1 Title</AwTitle>
37
+ <AwTitle tag="h2">Level 2 Title</AwTitle>
38
+ ```
39
+
40
+ ## API
41
+
42
+ ### Props
43
+
44
+ | Name | Description | Type | Required | Default |
45
+ |------|-------------|------|----------|---------|
46
+ | tag | HTML heading tag (h1-h6) | `String` | `false` | `'h2'` |
47
+
48
+ ### Slots
49
+
50
+ | Name | Description | Props | Default Slot Content |
51
+ |------|-------------|-------|---------------------|
52
+ | default | Title text content | - | - |
53
+
54
+ ### Events
55
+
56
+ No events are emitted by this component.
57
+
58
+ ## Related Components
59
+
60
+ - `AwHeadline` - Headline component
61
+ - `AwSubHeadline` - Sub-headline component
62
+ - `AwPage` - Page component that uses titles
63
+
64
+ ## Notes
65
+
66
+ - **Import Method:** Global - Available as atom component
67
+ - Default tag is `h2`
68
+ - Use for page titles and main section headings
69
+ - Maintains semantic HTML structure with appropriate heading levels
70
+
@@ -0,0 +1,69 @@
1
+ ---
2
+ metaTitle: Toggler component | AwesCode UI
3
+ meta:
4
+ - name: description
5
+ content: The &lt;AwToggler /&gt; component is used to render Toggler - UI Vue component for AwesCode UI.
6
+ title: Toggler
7
+ ---
8
+
9
+ # Toggler
10
+
11
+ **Category:** Atom | **Import:** Global
12
+
13
+ The `AwToggler` component is a collapsible content wrapper with a styled container.
14
+
15
+ ## Overview
16
+
17
+ `AwToggler` provides a toggleable content section that can be expanded or collapsed. It wraps `AwAccordionFold` with additional styling for a content container.
18
+
19
+ ## Usage
20
+
21
+ ### Basic Example
22
+
23
+ ```markup
24
+ <AwToggler>
25
+ <p>Toggled content</p>
26
+ </AwToggler>
27
+ ```
28
+
29
+ ### With Show Prop
30
+
31
+ ```markup
32
+ <AwToggler :show="isOpen">
33
+ <div>Content that is open by default</div>
34
+ </AwToggler>
35
+ ```
36
+
37
+ ## API
38
+
39
+ ### Props
40
+
41
+ All props from `AwAccordionFold` are supported via `$attrs`:
42
+
43
+ | Name | Description | Type | Required | Default |
44
+ |------|-------------|------|----------|---------|
45
+ | show | Whether content is visible | `Boolean` | `false` | `false` |
46
+ | tag | HTML tag for wrapper | `String` | `false` | `'div'` |
47
+
48
+ ### Slots
49
+
50
+ | Name | Description | Props | Default Slot Content |
51
+ |------|-------------|-------|---------------------|
52
+ | default | Toggled content | - | - |
53
+
54
+ ### Events
55
+
56
+ All events from `AwAccordionFold` are supported via `$listeners`.
57
+
58
+ ## Related Components
59
+
60
+ - `AwAccordionFold` - Base accordion component
61
+ - `AwCard` - Card component that may use togglers
62
+
63
+ ## Notes
64
+
65
+ - **Import Method:** Global - Available as atom component
66
+ - Wraps `AwAccordionFold` with styled content container
67
+ - Content container has background, padding, and rounded corners
68
+ - All props and events are passed through to `AwAccordionFold`
69
+ - Use for collapsible sections with styled content areas
@@ -0,0 +1,168 @@
1
+ ---
2
+ metaTitle: LayoutCenter component | AwesCode UI
3
+ meta:
4
+ - name: description
5
+ content: The &lt;AwLayoutCenter /&gt; is a centered layout for authentication and standalone pages for AwesCode UI.
6
+ title: LayoutCenter
7
+ ---
8
+
9
+ # AwLayoutCenter
10
+
11
+ **Category:** Layout | **Import:** Dynamic
12
+
13
+ The `AwLayoutCenter` component is a centered layout designed for authentication pages, standalone forms, and centered content. It provides a centered frame with optional logo and background.
14
+
15
+ ## Overview
16
+
17
+ `AwLayoutCenter` provides a centered layout with:
18
+ - Centered content frame
19
+ - Optional logo display
20
+ - Background image support
21
+ - Dark theme support
22
+ - Footer copyright text
23
+ - Responsive design
24
+
25
+ ## Usage
26
+
27
+ ### Nuxt Page (Recommended)
28
+
29
+ For Nuxt pages, use the `layout` property in your component options:
30
+
31
+ ```markup
32
+ <template>
33
+ <AwCard class="max-w-md mx-auto">
34
+ <template #title>
35
+ <AwHeadline>Sign In</AwHeadline>
36
+ </template>
37
+
38
+ <form @submit.prevent="onLogin">
39
+ <AwGrid>
40
+ <AwInput
41
+ v-model="formData.email"
42
+ name="email"
43
+ label="Email"
44
+ type="email"
45
+ required
46
+ />
47
+
48
+ <AwPassword
49
+ v-model="formData.password"
50
+ name="password"
51
+ label="Password"
52
+ required
53
+ />
54
+
55
+ <AwButton type="submit" size="lg" class="w-full">
56
+ Sign In
57
+ </AwButton>
58
+ </AwGrid>
59
+ </form>
60
+ </AwCard>
61
+ </template>
62
+
63
+ <script>
64
+ export default {
65
+ layout: 'center',
66
+
67
+ data() {
68
+ return {
69
+ formData: {
70
+ email: '',
71
+ password: ''
72
+ }
73
+ }
74
+ },
75
+
76
+ methods: {
77
+ onLogin() {
78
+ // Handle login
79
+ }
80
+ }
81
+ }
82
+ </script>
83
+ ```
84
+
85
+ ### Component Usage
86
+
87
+ For non-Nuxt contexts or custom layouts, use the component directly:
88
+
89
+ ```markup
90
+ <AwLayoutCenter>
91
+ <AwCard>
92
+ <h1>Login</h1>
93
+ <AwForm url="/api/login">
94
+ <!-- form fields -->
95
+ </AwForm>
96
+ </AwCard>
97
+ </AwLayoutCenter>
98
+ ```
99
+
100
+ ### With Custom Container
101
+
102
+ ```markup
103
+ <AwLayoutCenter>
104
+ <template #container>
105
+ <div class="custom-container">
106
+ <slot />
107
+ </div>
108
+ </template>
109
+ </AwLayoutCenter>
110
+ ```
111
+
112
+ ## API
113
+
114
+ ### Props
115
+
116
+ This component does not have props. Logo and background are managed via Vuex store and config.
117
+
118
+ ### Slots
119
+
120
+ | Name | Description | Props | Default Slot Content |
121
+ |------|-------------|-------|---------------------|
122
+ | default | Main content | - | - |
123
+ | container | Custom container wrapper | - | Default centered container |
124
+
125
+ ### Events
126
+
127
+ This component does not emit custom events.
128
+
129
+ ### Config Options
130
+
131
+ Background and logo can be configured in `awes.config.js`:
132
+
133
+ ```javascript
134
+ export default {
135
+ _config: {
136
+ default: {
137
+ background: {
138
+ src: '/path/to/background.jpg',
139
+ // ... other background styles
140
+ }
141
+ },
142
+ dark: {
143
+ background: {
144
+ src: '/path/to/dark-background.jpg'
145
+ }
146
+ }
147
+ }
148
+ }
149
+ ```
150
+
151
+ ## Related Components
152
+
153
+ - `AwLayoutProvider` - Layout provider component (used internally)
154
+ - `AwLayout` - Default layout with sidebar
155
+
156
+ ## Notes
157
+
158
+ - **Import Method:** Dynamic - Component is loaded on-demand as a layout
159
+ - **For Nuxt pages:** Use `layout: 'center'` in component options instead of wrapping with `<AwLayoutCenter>`
160
+ - The Nuxt layout system automatically wraps your page content with `AwLayoutCenter`
161
+ - Logo is retrieved from Vuex store (`awesIo` module)
162
+ - Background image is configured via `$awes._config`
163
+ - Background changes based on dark theme state
164
+ - Logo is hidden on mobile (`hidden sm:block`)
165
+ - Footer copyright text is automatically displayed
166
+ - Content frame is centered with max-width
167
+ - Component uses `AwLayoutProvider` for layout structure
168
+ - Suitable for login, registration, and standalone pages