@awes-io/ui 2.142.3 → 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.
Files changed (264) hide show
  1. package/assets/css/components/_index.css +7 -1
  2. package/assets/css/components/action-card.css +1 -0
  3. package/assets/css/components/action-icon.css +2 -2
  4. package/assets/css/components/alert.css +28 -22
  5. package/assets/css/components/animation.css +52 -32
  6. package/assets/css/components/badge.css +1 -0
  7. package/assets/css/components/banner-text.css +15 -4
  8. package/assets/css/components/card.css +0 -1
  9. package/assets/css/components/content-placeholder.css +104 -0
  10. package/assets/css/components/dropdown.css +20 -7
  11. package/assets/css/components/empty-container.css +69 -1
  12. package/assets/css/components/filter-chosen.css +6 -0
  13. package/assets/css/components/filter-date-range.css +17 -1
  14. package/assets/css/components/filter-month.css +23 -17
  15. package/assets/css/components/filter-select.css +11 -0
  16. package/assets/css/components/icon-menu-item.css +12 -7
  17. package/assets/css/components/layout.css +1 -32
  18. package/assets/css/components/mobile-menu-nav.css +8 -4
  19. package/assets/css/components/modal.css +1 -1
  20. package/assets/css/components/number.css +12 -0
  21. package/assets/css/components/page-aside.css +54 -0
  22. package/assets/css/components/text-field.css +4 -0
  23. package/assets/js/css.js +1 -1
  24. package/assets/js/icons/mono.js +59 -91
  25. package/assets/js/icons/multicolor.js +1 -31
  26. package/components/1_atoms/AwActionIcon.vue +11 -2
  27. package/components/1_atoms/AwContentPlaceholder.vue +60 -0
  28. package/components/1_atoms/AwFlow.vue +37 -49
  29. package/components/1_atoms/AwGrid.vue +11 -3
  30. package/components/1_atoms/AwIcon/AwIcon.vue +5 -3
  31. package/components/1_atoms/AwIcon/AwIconSystemMono.vue +3 -2
  32. package/components/1_atoms/AwInput.vue +2 -2
  33. package/components/1_atoms/AwLabel.vue +1 -1
  34. package/components/1_atoms/AwList.vue +3 -1
  35. package/components/1_atoms/AwRadio.vue +1 -1
  36. package/components/1_atoms/AwSlider.vue +15 -1
  37. package/components/1_atoms/AwTag.vue +6 -1
  38. package/components/2_molecules/AwAlert.vue +63 -42
  39. package/components/2_molecules/AwBadge.vue +1 -1
  40. package/components/2_molecules/AwBannerText.vue +8 -2
  41. package/components/2_molecules/AwButton.vue +1 -1
  42. package/components/2_molecules/AwDescriptionInput.vue +19 -1
  43. package/components/2_molecules/AwEmptyContainer.vue +74 -72
  44. package/components/2_molecules/AwNumber.vue +180 -0
  45. package/components/2_molecules/AwSelect.vue +11 -4
  46. package/components/3_organisms/AwBottomBar.vue +22 -4
  47. package/components/3_organisms/AwFilterChosen.vue +73 -0
  48. package/components/3_organisms/AwFilterDateRange.vue +177 -0
  49. package/components/3_organisms/AwFilterMonth.vue +37 -40
  50. package/components/3_organisms/AwFilterSelect.vue +368 -0
  51. package/components/3_organisms/AwMultiBlockBuilder.vue +1 -1
  52. package/components/3_organisms/AwSubnav.vue +11 -1
  53. package/components/3_organisms/AwTable/AwTableBuilder.vue +20 -60
  54. package/components/3_organisms/AwTable/_AwTableCellDropdown.vue +6 -1
  55. package/components/3_organisms/AwTable/_AwTableRow.vue +2 -1
  56. package/components/4_pages/AwPage.vue +1 -0
  57. package/components/4_pages/AwPageAside.vue +108 -0
  58. package/components/5_layouts/AwLayoutCenter.vue +3 -8
  59. package/components/5_layouts/_AwMenuItemIcon.vue +9 -2
  60. package/components/5_layouts/_AwMobileMenuItem.vue +5 -3
  61. package/components/5_layouts/_AwUserMenu.vue +1 -1
  62. package/components/_config.js +26 -1
  63. package/docs/_template.md +80 -0
  64. package/docs/components/atoms/aw-accordion-fold.md +129 -0
  65. package/docs/components/atoms/aw-action-card-body.md +99 -0
  66. package/docs/components/atoms/aw-action-card.md +130 -0
  67. package/docs/components/atoms/aw-action-icon.md +126 -0
  68. package/docs/components/atoms/aw-avatar.md +106 -0
  69. package/docs/components/atoms/aw-card.md +137 -0
  70. package/docs/components/atoms/aw-checkbox.md +288 -0
  71. package/docs/components/atoms/aw-content-placeholder.md +147 -0
  72. package/docs/components/atoms/aw-description.md +83 -0
  73. package/docs/components/atoms/aw-dock.md +90 -0
  74. package/docs/components/atoms/aw-dropdown-button.md +94 -0
  75. package/docs/components/atoms/aw-dropdown.md +178 -0
  76. package/docs/components/atoms/aw-file.md +73 -0
  77. package/docs/components/atoms/aw-flow.md +140 -0
  78. package/docs/components/atoms/aw-grid.md +109 -0
  79. package/docs/components/atoms/aw-headline.md +71 -0
  80. package/docs/components/atoms/aw-icon-system-color.md +122 -0
  81. package/docs/components/atoms/aw-icon-system-mono.md +206 -0
  82. package/docs/components/atoms/aw-icon.md +235 -0
  83. package/docs/components/atoms/aw-info.md +123 -0
  84. package/docs/components/atoms/aw-input.md +212 -0
  85. package/docs/components/atoms/aw-label.md +136 -0
  86. package/docs/components/atoms/aw-link.md +151 -0
  87. package/docs/components/atoms/aw-list.md +152 -0
  88. package/docs/components/atoms/aw-progress.md +119 -0
  89. package/docs/components/atoms/aw-radio.md +182 -0
  90. package/docs/components/atoms/aw-refresh-wrapper.md +81 -0
  91. package/docs/components/atoms/aw-select-native.md +234 -0
  92. package/docs/components/atoms/aw-slider.md +189 -0
  93. package/docs/components/atoms/aw-sub-headline.md +73 -0
  94. package/docs/components/atoms/aw-switcher.md +192 -0
  95. package/docs/components/atoms/aw-tag.md +144 -0
  96. package/docs/components/atoms/aw-title.md +70 -0
  97. package/docs/components/atoms/aw-toggler.md +90 -0
  98. package/docs/components/layouts/aw-layout-center.md +168 -0
  99. package/docs/components/layouts/aw-layout-error.md +153 -0
  100. package/docs/components/layouts/aw-layout-provider.md +238 -0
  101. package/docs/components/layouts/aw-layout.md +88 -0
  102. package/docs/components/molecules/aw-action-button.md +138 -0
  103. package/docs/components/molecules/aw-alert.md +191 -0
  104. package/docs/components/molecules/aw-badge.md +129 -0
  105. package/docs/components/molecules/aw-banner-text.md +156 -0
  106. package/docs/components/molecules/aw-button-nav.md +111 -0
  107. package/docs/components/molecules/aw-button.md +193 -0
  108. package/docs/components/molecules/aw-description-input.md +124 -0
  109. package/docs/components/molecules/aw-empty-container.md +235 -0
  110. package/docs/components/molecules/aw-island.md +506 -0
  111. package/docs/components/molecules/aw-number.md +138 -0
  112. package/docs/components/molecules/aw-select-object.md +401 -0
  113. package/docs/components/molecules/aw-select.md +215 -0
  114. package/docs/components/molecules/aw-tab-nav.md +108 -0
  115. package/docs/components/molecules/aw-tel.md +129 -0
  116. package/docs/components/molecules/aw-textarea.md +83 -0
  117. package/docs/components/molecules/aw-userpic.md +115 -0
  118. package/docs/components/organisms/aw-address-block.md +64 -0
  119. package/docs/components/organisms/aw-address.md +132 -0
  120. package/docs/components/organisms/aw-birthday-picker.md +73 -0
  121. package/docs/components/organisms/aw-bottom-bar.md +66 -0
  122. package/docs/components/organisms/aw-calendar-days.md +115 -0
  123. package/docs/components/organisms/aw-calendar-nav.md +98 -0
  124. package/docs/components/organisms/aw-calendar-view.md +98 -0
  125. package/docs/components/organisms/aw-calendar.md +166 -0
  126. package/docs/components/organisms/aw-chart.md +154 -0
  127. package/docs/components/organisms/aw-chip-select.md +164 -0
  128. package/docs/components/organisms/aw-chip.md +126 -0
  129. package/docs/components/organisms/aw-code-snippet.md +94 -0
  130. package/docs/components/organisms/aw-code.md +132 -0
  131. package/docs/components/organisms/aw-context-menu.md +117 -0
  132. package/docs/components/organisms/aw-cropper.md +151 -0
  133. package/docs/components/organisms/aw-date.md +161 -0
  134. package/docs/components/organisms/aw-display-date.md +33 -0
  135. package/docs/components/organisms/aw-download-link.md +46 -0
  136. package/docs/components/organisms/aw-fetch-data.md +161 -0
  137. package/docs/components/organisms/aw-filter-chosen.md +226 -0
  138. package/docs/components/organisms/aw-filter-date-range.md +205 -0
  139. package/docs/components/organisms/aw-filter-month.md +43 -0
  140. package/docs/components/organisms/aw-filter-select.md +239 -0
  141. package/docs/components/organisms/aw-form.md +174 -0
  142. package/docs/components/organisms/aw-gmap-marker.md +86 -0
  143. package/docs/components/organisms/aw-gmap.md +90 -0
  144. package/docs/components/organisms/aw-image-upload.md +56 -0
  145. package/docs/components/organisms/aw-island-avatar.md +87 -0
  146. package/docs/components/organisms/aw-markdown-editor.md +104 -0
  147. package/docs/components/organisms/aw-modal-buttons.md +57 -0
  148. package/docs/components/organisms/aw-modal.md +246 -0
  149. package/docs/components/organisms/aw-model-edit.md +74 -0
  150. package/docs/components/organisms/aw-money.md +53 -0
  151. package/docs/components/organisms/aw-multi-block-builder.md +165 -0
  152. package/docs/components/organisms/aw-pagination.md +121 -0
  153. package/docs/components/organisms/aw-password.md +103 -0
  154. package/docs/components/organisms/aw-preview-card.md +45 -0
  155. package/docs/components/organisms/aw-search.md +116 -0
  156. package/docs/components/organisms/aw-subnav.md +122 -0
  157. package/docs/components/organisms/aw-table-builder.md +165 -0
  158. package/docs/components/organisms/aw-table-col.md +123 -0
  159. package/docs/components/organisms/aw-table-head.md +92 -0
  160. package/docs/components/organisms/aw-table-row.md +91 -0
  161. package/docs/components/organisms/aw-table.md +172 -0
  162. package/docs/components/organisms/aw-tags.md +54 -0
  163. package/docs/components/organisms/aw-toggle-show-aside.md +43 -0
  164. package/docs/components/organisms/aw-uploader-files.md +125 -0
  165. package/docs/components/organisms/aw-uploader.md +163 -0
  166. package/docs/components/organisms/aw-user-menu.md +87 -0
  167. package/docs/components/pages/aw-page-aside.md +296 -0
  168. package/docs/components/pages/aw-page-menu-buttons.md +172 -0
  169. package/docs/components/pages/aw-page-modal.md +198 -0
  170. package/docs/components/pages/aw-page-single.md +300 -0
  171. package/docs/components/pages/aw-page.md +194 -0
  172. package/docs/configuration.md +493 -0
  173. package/docs/cookbook/advanced-patterns.md +1388 -0
  174. package/docs/cookbook/common-patterns.md +965 -0
  175. package/docs/cookbook/index.md +786 -0
  176. package/docs/getting-started.md +596 -0
  177. package/docs/guides/best-practices.md +1106 -0
  178. package/docs/guides/data-fetching.md +852 -0
  179. package/docs/guides/error-handling.md +1172 -0
  180. package/docs/guides/forms-guide.md +1329 -0
  181. package/docs/guides/mobile-subnavigation.md +359 -0
  182. package/docs/guides/page-patterns/aside-pages.md +1418 -0
  183. package/docs/guides/page-patterns/dashboard-pages.md +990 -0
  184. package/docs/guides/page-patterns/detail-pages.md +1556 -0
  185. package/docs/guides/page-patterns/list-pages.md +1242 -0
  186. package/docs/index.md +263 -1
  187. package/docs/integrations.md +870 -0
  188. package/docs/reference/colors.md +232 -0
  189. package/docs/reference/icons.md +163 -0
  190. package/docs/reference/menu.md +462 -0
  191. package/docs/reference/plugins.md +970 -0
  192. package/docs/reference/troubleshooting.md +964 -0
  193. package/nuxt/awes.config.js +9 -8
  194. package/nuxt/index.js +2 -2
  195. package/nuxt/pages/more.vue +1 -1
  196. package/package.json +5 -3
  197. package/readme.md +171 -1
  198. package/store/awesIo.js +11 -0
  199. package/CHANGELOG.md +0 -4520
  200. package/docs/aw-accordion-fold.md +0 -46
  201. package/docs/aw-address.md +0 -44
  202. package/docs/aw-avatar.md +0 -51
  203. package/docs/aw-badge.md +0 -32
  204. package/docs/aw-button-nav.md +0 -44
  205. package/docs/aw-button.md +0 -50
  206. package/docs/aw-calendar-days.md +0 -46
  207. package/docs/aw-calendar-nav.md +0 -25
  208. package/docs/aw-calendar-view.md +0 -12
  209. package/docs/aw-calendar.md +0 -59
  210. package/docs/aw-card.md +0 -48
  211. package/docs/aw-chart.md +0 -51
  212. package/docs/aw-checkbox.md +0 -56
  213. package/docs/aw-chip-select.md +0 -46
  214. package/docs/aw-chip.md +0 -53
  215. package/docs/aw-code-snippet.md +0 -18
  216. package/docs/aw-code.md +0 -56
  217. package/docs/aw-content-wrapper.md +0 -40
  218. package/docs/aw-context-menu.md +0 -31
  219. package/docs/aw-cropper.md +0 -60
  220. package/docs/aw-dashboard-card.md +0 -37
  221. package/docs/aw-dashboard-donut.md +0 -30
  222. package/docs/aw-dashboard-line.md +0 -20
  223. package/docs/aw-dashboard-progress.md +0 -33
  224. package/docs/aw-dashboard-section.md +0 -32
  225. package/docs/aw-dashboard-speed.md +0 -30
  226. package/docs/aw-date.md +0 -52
  227. package/docs/aw-dropdown-button.md +0 -31
  228. package/docs/aw-dropdown.md +0 -69
  229. package/docs/aw-fetch-data.md +0 -45
  230. package/docs/aw-form.md +0 -52
  231. package/docs/aw-grid.md +0 -48
  232. package/docs/aw-icon.md +0 -50
  233. package/docs/aw-info.md +0 -53
  234. package/docs/aw-input.md +0 -55
  235. package/docs/aw-layout-default.md +0 -30
  236. package/docs/aw-layout-frame-center.md +0 -29
  237. package/docs/aw-layout-simple.md +0 -49
  238. package/docs/aw-link.md +0 -54
  239. package/docs/aw-markdown-editor.md +0 -51
  240. package/docs/aw-modal.md +0 -63
  241. package/docs/aw-multi-block-builder.md +0 -66
  242. package/docs/aw-page.md +0 -36
  243. package/docs/aw-pagination.md +0 -54
  244. package/docs/aw-password.md +0 -48
  245. package/docs/aw-radio.md +0 -54
  246. package/docs/aw-search.md +0 -49
  247. package/docs/aw-select.md +0 -93
  248. package/docs/aw-slider.md +0 -40
  249. package/docs/aw-svg-image.md +0 -19
  250. package/docs/aw-switcher.md +0 -51
  251. package/docs/aw-tab-nav.md +0 -55
  252. package/docs/aw-table-builder.md +0 -58
  253. package/docs/aw-table-col.md +0 -33
  254. package/docs/aw-table-head.md +0 -28
  255. package/docs/aw-table-row.md +0 -33
  256. package/docs/aw-table.md +0 -59
  257. package/docs/aw-tel.md +0 -47
  258. package/docs/aw-textarea.md +0 -47
  259. package/docs/aw-toggler.md +0 -41
  260. package/docs/aw-uploader-files.md +0 -20
  261. package/docs/aw-uploader.md +0 -60
  262. package/docs/aw-user-menu.md +0 -34
  263. package/docs/aw-userpic.md +0 -34
  264. /package/components/{3_organisms → 2_molecules}/AwTel.vue +0 -0
@@ -0,0 +1,144 @@
1
+ ---
2
+ metaTitle: Tag component | AwesCode UI
3
+ meta:
4
+ - name: description
5
+ content: The <AwTag /> 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="awesio/star" />
31
+ ```
32
+
33
+ ### With Animated Icon
34
+
35
+ ```markup
36
+ <AwTag text="Pending" icon="awesio/spinner" icon-class="animate-spin" color="warning" />
37
+ ```
38
+
39
+ ### With Custom Colors
40
+
41
+ ```markup
42
+ <AwTag text="Success" color="success" />
43
+ <AwTag text="Warning" color="warning" />
44
+ ```
45
+
46
+ ### As Link
47
+
48
+ ```markup
49
+ <AwTag text="Tag" tag="a" href="/tagged" />
50
+ ```
51
+
52
+ ## API
53
+
54
+ ### Props
55
+
56
+ | Name | Description | Type | Required | Default |
57
+ |------|-------------|------|----------|---------|
58
+ | tag | HTML tag to render | `String` | `false` | `'span'` |
59
+ | color | Background color | `String` | `false` | `'mono-100'` |
60
+ | onColor | Text/icon color | `String` | `false` | `''` |
61
+ | text | Tag text content | `String` | `true` | - |
62
+ | icon | Icon name | `String` | `false` | `null` |
63
+ | iconClass | CSS classes for icon | `String` / `Array` / `Object` | `false` | `null` |
64
+
65
+ ### Slots
66
+
67
+ No slots are available for this component.
68
+
69
+ ### Events
70
+
71
+ No events are emitted by this component.
72
+
73
+ ## Component Behavior
74
+
75
+ ### Color System
76
+
77
+ The component uses the AwesCode UI color system with automatic text color calculation:
78
+
79
+ **Background color:**
80
+ - Set via `color` prop (default: `'mono-100'`)
81
+ - Accepts any valid color from the color system
82
+ - Uses `toColor()` utility to convert color name to CSS variable
83
+
84
+ **Text/icon color:**
85
+ - Automatically calculated using `toOnColor()` for optimal contrast
86
+ - Can be overridden with `onColor` prop
87
+ - Ensures accessibility by using paired colors
88
+
89
+ **Custom colors:**
90
+ - Custom colors are detected via `isCustomColor()` utility
91
+ - Uses special overlay color for custom color backgrounds
92
+ - Ensures consistent appearance across themes
93
+
94
+ For a complete list of available colors, see [Built-in Colors](/reference/colors).
95
+
96
+ ### Icon Display
97
+
98
+ Icons are displayed before the text when provided:
99
+ - Icon size is fixed at 16px
100
+ - Icon color matches the text color (calculated from background)
101
+ - Use `iconClass` prop to add custom CSS classes (e.g., `animate-spin` for loading states)
102
+
103
+ **Common icon use cases:**
104
+ ```markup
105
+ <!-- Status with spinning icon -->
106
+ <AwTag text="Loading" icon="awesio/spinner" icon-class="animate-spin" />
107
+
108
+ <!-- Static status icon -->
109
+ <AwTag text="Complete" icon="awesio/check-circle" color="success" />
110
+ ```
111
+
112
+ For a complete list of available icons, see [Built-in Icons](/reference/icons).
113
+
114
+ ### HTML Tag Rendering
115
+
116
+ The component can render as any HTML element:
117
+ - Default: `<span>` - Inline element for text flow
118
+ - Link: `<a>` - Interactive link element
119
+ - Other: Any valid HTML tag name
120
+
121
+ **Example:**
122
+ ```markup
123
+ <!-- As link -->
124
+ <AwTag text="View all" tag="a" href="/tags/featured" />
125
+
126
+ <!-- As div -->
127
+ <AwTag text="Block tag" tag="div" />
128
+ ```
129
+
130
+ ## Related Components
131
+
132
+ - `AwLabel` - Label component with similar functionality
133
+ - `AwBadge` - Badge component
134
+ - `AwTags` - Multiple tags component
135
+
136
+ ## Notes
137
+
138
+ - **Import Method:** Global - Available as atom component
139
+ - Default background color is `mono-100`
140
+ - Text color is automatically calculated from background color if `onColor` not provided
141
+ - Supports custom colors via theme color system
142
+ - Icon is displayed before the text
143
+ - Can be rendered as any HTML tag (e.g., `a` for links)
144
+
@@ -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,90 @@
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 | **Status:** ⚠️ Deprecated
12
+
13
+ The `AwToggler` component is a collapsible content wrapper with a styled container.
14
+
15
+ > **⚠️ Deprecated:** This component is deprecated and should not be used in new projects. Use `AwAccordionFold` directly instead.
16
+
17
+ ## Overview
18
+
19
+ `AwToggler` provides a toggleable content section that can be expanded or collapsed. It wraps `AwAccordionFold` with additional styling for a content container.
20
+
21
+ ## Usage
22
+
23
+ ### Basic Example
24
+
25
+ ```markup
26
+ <AwToggler>
27
+ <p>Toggled content</p>
28
+ </AwToggler>
29
+ ```
30
+
31
+ ### With Show Prop
32
+
33
+ ```markup
34
+ <AwToggler :show="isOpen">
35
+ <div>Content that is open by default</div>
36
+ </AwToggler>
37
+ ```
38
+
39
+ ## API
40
+
41
+ ### Props
42
+
43
+ All props from `AwAccordionFold` are supported via `$attrs`:
44
+
45
+ | Name | Description | Type | Required | Default |
46
+ |------|-------------|------|----------|---------|
47
+ | show | Whether content is visible | `Boolean` | `false` | `false` |
48
+ | tag | HTML tag for wrapper | `String` | `false` | `'div'` |
49
+
50
+ ### Slots
51
+
52
+ | Name | Description | Props | Default Slot Content |
53
+ |------|-------------|-------|---------------------|
54
+ | default | Toggled content | - | - |
55
+
56
+ ### Events
57
+
58
+ All events from `AwAccordionFold` are supported via `$listeners`.
59
+
60
+ ## Related Components
61
+
62
+ - `AwAccordionFold` - Base accordion component
63
+ - `AwCard` - Card component that may use togglers
64
+
65
+ ## Migration Guide
66
+
67
+ **Instead of:**
68
+ ```markup
69
+ <AwToggler :show="isOpen">
70
+ <p>Content here</p>
71
+ </AwToggler>
72
+ ```
73
+
74
+ **Use:**
75
+ ```markup
76
+ <AwAccordionFold :show="isOpen">
77
+ <div class="bg-mono-800 rounded p-4 mt-3">
78
+ <p>Content here</p>
79
+ </div>
80
+ </AwAccordionFold>
81
+ ```
82
+
83
+ ## Notes
84
+
85
+ - **Import Method:** Global - Available as atom component
86
+ - **Status:** Deprecated - Use `AwAccordionFold` instead
87
+ - Wraps `AwAccordionFold` with styled content container
88
+ - Content container has background, padding, and rounded corners
89
+ - All props and events are passed through to `AwAccordionFold`
90
+ - 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
@@ -0,0 +1,153 @@
1
+ ---
2
+ metaTitle: LayoutError component | AwesCode UI
3
+ meta:
4
+ - name: description
5
+ content: The &lt;AwLayoutError /&gt; is an error page layout for displaying error states (403, 404, 500) for AwesCode UI.
6
+ title: LayoutError
7
+ ---
8
+
9
+ # AwLayoutError
10
+
11
+ **Category:** Layout | **Import:** Dynamic
12
+
13
+ The `AwLayoutError` component is a dedicated error page layout for displaying error states such as 403 Forbidden, 404 Not Found, and 500 Server Error. It provides a clean, centered error display with custom graphics for different error types.
14
+
15
+ ## Overview
16
+
17
+ `AwLayoutError` provides an error page layout with:
18
+ - Custom SVG illustrations for 403 and 404 errors
19
+ - Error status code display
20
+ - Translated error messages
21
+ - Close button to return to homepage
22
+ - Back button to return to homepage
23
+ - Dark theme support
24
+ - Responsive design
25
+ - No navigation or header (standalone error page)
26
+
27
+ ## Usage
28
+
29
+ ### Basic Example
30
+
31
+ ```markup
32
+ <AwLayoutError :error="error" />
33
+ ```
34
+
35
+ ### In Nuxt Error Page
36
+
37
+ ```markup
38
+ <template>
39
+ <AwLayoutError :error="error" />
40
+ </template>
41
+
42
+ <script>
43
+ export default {
44
+ layout: 'empty', // or no layout
45
+ props: {
46
+ error: {
47
+ type: Object,
48
+ default: null
49
+ }
50
+ }
51
+ }
52
+ </script>
53
+ ```
54
+
55
+ ### With Custom Error Object
56
+
57
+ ```markup
58
+ <AwLayoutError
59
+ :error="{
60
+ statusCode: 404,
61
+ message: 'The page you are looking for does not exist'
62
+ }"
63
+ />
64
+ ```
65
+
66
+ ### Different Error Codes
67
+
68
+ ```markup
69
+ <!-- 403 Forbidden -->
70
+ <AwLayoutError :error="{ statusCode: 403 }" />
71
+
72
+ <!-- 404 Not Found -->
73
+ <AwLayoutError :error="{ statusCode: 404 }" />
74
+
75
+ <!-- 500 Server Error -->
76
+ <AwLayoutError :error="{ statusCode: 500, message: 'Internal server error' }" />
77
+ ```
78
+
79
+ ## API
80
+
81
+ ### Props
82
+
83
+ | Name | Description | Type | Required | Default |
84
+ |------|-------------|------|----------|---------|
85
+ | error | Error object with statusCode and message | `Object` | `false` | `null` |
86
+
87
+ **Error Object Structure:**
88
+ ```javascript
89
+ {
90
+ statusCode: 403 | 404 | 500, // Error status code
91
+ message: String // Custom error message
92
+ }
93
+ ```
94
+
95
+ ### Slots
96
+
97
+ This component does not have slots.
98
+
99
+ ### Events
100
+
101
+ This component does not emit custom events.
102
+
103
+ ## Error Types
104
+
105
+ ### 403 Forbidden
106
+
107
+ Shows a lock/security icon and displays:
108
+ - Translated title from `error_status_403_title`
109
+ - Translated description from `error_status_403_description`
110
+ - Error code message
111
+
112
+ ### 404 Not Found
113
+
114
+ Shows a search/magnifying glass icon and displays:
115
+ - Translated title from `error_status_404_title`
116
+ - Translated description from `error_status_404_description`
117
+ - Error code message
118
+
119
+ ### Other Errors (500, etc.)
120
+
121
+ Shows generic error display:
122
+ - Error code message
123
+ - Custom message from error object or "Something is wrong."
124
+
125
+ ## Translation Keys
126
+
127
+ The component uses the following translation keys:
128
+ - `error_status__code` - "Error {code}"
129
+ - `error_status_403_title` - Title for 403 errors
130
+ - `error_status_403_description` - Description for 403 errors
131
+ - `error_status_404_title` - Title for 404 errors
132
+ - `error_status_404_description` - Description for 404 errors
133
+ - `Back` - Back button text
134
+
135
+ ## Related Components
136
+
137
+ - `AwLayout` - Default layout with navigation
138
+ - `AwLayoutCenter` - Centered layout for auth pages
139
+ - `AwButton` - Used for close and back buttons
140
+
141
+ ## Notes
142
+
143
+ - **Import Method:** Dynamic - Component is loaded on-demand as a layout
144
+ - Different SVG illustrations for 403 (security) and 404 (not found) errors
145
+ - Close button in top-right corner returns to homepage (href="/")
146
+ - Back button at bottom returns to homepage (href="/")
147
+ - Status code defaults to 500 if not provided
148
+ - Custom error messages can be provided via error.message
149
+ - Uses CSS custom properties for theming (`--c-mono-900`, `--c-on-surface`)
150
+ - Fully responsive with mobile-first design
151
+ - Back button is full-width on mobile, auto-width on desktop
152
+ - No sidebar or header navigation (standalone error page)
153
+ - Suitable for Nuxt error.vue layouts