asheeui 1.0.0 → 1.1.1

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 (287) hide show
  1. package/LICENSE +201 -21
  2. package/NOTICE +10 -0
  3. package/README.md +63 -166
  4. package/dist/components/accordion/Accordion.d.ts +1 -1
  5. package/dist/components/alert/Alert.d.ts.map +1 -1
  6. package/dist/components/alert/Alert.js +6 -6
  7. package/dist/components/auth-layout/AuthLayout.d.ts +79 -0
  8. package/dist/components/auth-layout/AuthLayout.d.ts.map +1 -0
  9. package/dist/components/auth-layout/AuthLayout.js +54 -0
  10. package/dist/components/auth-layout/auth-layout-config.d.ts +41 -0
  11. package/dist/components/auth-layout/auth-layout-config.d.ts.map +1 -0
  12. package/dist/components/auth-layout/auth-layout-config.js +18 -0
  13. package/dist/components/auth-layout/auth-layout-styles.d.ts +25 -0
  14. package/dist/components/auth-layout/auth-layout-styles.d.ts.map +1 -0
  15. package/dist/components/auth-layout/auth-layout-styles.js +11 -0
  16. package/dist/components/auth-layout/index.d.ts +3 -0
  17. package/dist/components/auth-layout/index.d.ts.map +1 -0
  18. package/dist/components/auth-layout/index.js +3 -0
  19. package/dist/components/autocomplete/Autocomplete.d.ts.map +1 -1
  20. package/dist/components/avatar/Avatar.d.ts.map +1 -1
  21. package/dist/components/avatar/Avatar.js +7 -7
  22. package/dist/components/badge/Badge.d.ts.map +1 -1
  23. package/dist/components/badge/Badge.js +3 -3
  24. package/dist/components/breadcrumb/Breadcrumb.d.ts.map +1 -1
  25. package/dist/components/breadcrumb/Breadcrumb.js +6 -6
  26. package/dist/components/calendar/Calendar.d.ts.map +1 -1
  27. package/dist/components/calendar/Calendar.js +4 -4
  28. package/dist/components/calendar/DateGrid.d.ts.map +1 -1
  29. package/dist/components/calendar/DateGrid.js +87 -87
  30. package/dist/components/clipboard/Clipboard.d.ts +75 -0
  31. package/dist/components/clipboard/Clipboard.d.ts.map +1 -0
  32. package/dist/components/clipboard/Clipboard.js +53 -0
  33. package/dist/components/clipboard/CopyButton.d.ts +64 -0
  34. package/dist/components/clipboard/CopyButton.d.ts.map +1 -0
  35. package/dist/components/clipboard/CopyButton.js +44 -0
  36. package/dist/components/clipboard/clipboard-config.d.ts +42 -0
  37. package/dist/components/clipboard/clipboard-config.d.ts.map +1 -0
  38. package/dist/components/clipboard/clipboard-config.js +23 -0
  39. package/dist/components/clipboard/clipboard-styles.d.ts +11 -0
  40. package/dist/components/clipboard/clipboard-styles.d.ts.map +1 -0
  41. package/dist/components/clipboard/clipboard-styles.js +5 -0
  42. package/dist/components/clipboard/index.d.ts +4 -0
  43. package/dist/components/clipboard/index.d.ts.map +1 -0
  44. package/dist/components/clipboard/index.js +4 -0
  45. package/dist/components/container/Container.d.ts +51 -0
  46. package/dist/components/container/Container.d.ts.map +1 -0
  47. package/dist/components/container/Container.js +21 -0
  48. package/dist/components/container/container-config.d.ts +61 -0
  49. package/dist/components/container/container-config.d.ts.map +1 -0
  50. package/dist/components/container/container-config.js +16 -0
  51. package/dist/components/container/container-styles.d.ts +18 -0
  52. package/dist/components/container/container-styles.d.ts.map +1 -0
  53. package/dist/components/container/container-styles.js +12 -0
  54. package/dist/components/container/index.d.ts +3 -0
  55. package/dist/components/container/index.d.ts.map +1 -0
  56. package/dist/components/container/index.js +3 -0
  57. package/dist/components/cta/CTA.d.ts +81 -0
  58. package/dist/components/cta/CTA.d.ts.map +1 -0
  59. package/dist/components/cta/CTA.js +60 -0
  60. package/dist/components/cta/cta-config.d.ts +69 -0
  61. package/dist/components/cta/cta-config.d.ts.map +1 -0
  62. package/dist/components/cta/cta-config.js +22 -0
  63. package/dist/components/cta/cta-styles.d.ts +8 -0
  64. package/dist/components/cta/cta-styles.d.ts.map +1 -0
  65. package/dist/components/cta/cta-styles.js +9 -0
  66. package/dist/components/cta/index.d.ts +3 -0
  67. package/dist/components/cta/index.d.ts.map +1 -0
  68. package/dist/components/cta/index.js +3 -0
  69. package/dist/components/dropmenu/Dropmenu.d.ts.map +1 -1
  70. package/dist/components/empty-state/EmptyState.d.ts +77 -0
  71. package/dist/components/empty-state/EmptyState.d.ts.map +1 -0
  72. package/dist/components/empty-state/EmptyState.js +46 -0
  73. package/dist/components/empty-state/empty-state-config.d.ts +44 -0
  74. package/dist/components/empty-state/empty-state-config.d.ts.map +1 -0
  75. package/dist/components/empty-state/empty-state-config.js +16 -0
  76. package/dist/components/empty-state/empty-state-styles.d.ts +13 -0
  77. package/dist/components/empty-state/empty-state-styles.d.ts.map +1 -0
  78. package/dist/components/empty-state/empty-state-styles.js +18 -0
  79. package/dist/components/empty-state/index.d.ts +3 -0
  80. package/dist/components/empty-state/index.d.ts.map +1 -0
  81. package/dist/components/empty-state/index.js +3 -0
  82. package/dist/components/feature-grid/FeatureGrid.d.ts +107 -0
  83. package/dist/components/feature-grid/FeatureGrid.d.ts.map +1 -0
  84. package/dist/components/feature-grid/FeatureGrid.js +94 -0
  85. package/dist/components/feature-grid/feature-grid-config.d.ts +80 -0
  86. package/dist/components/feature-grid/feature-grid-config.d.ts.map +1 -0
  87. package/dist/components/feature-grid/feature-grid-config.js +28 -0
  88. package/dist/components/feature-grid/feature-grid-styles.d.ts +11 -0
  89. package/dist/components/feature-grid/feature-grid-styles.d.ts.map +1 -0
  90. package/dist/components/feature-grid/feature-grid-styles.js +5 -0
  91. package/dist/components/feature-grid/index.d.ts +3 -0
  92. package/dist/components/feature-grid/index.d.ts.map +1 -0
  93. package/dist/components/feature-grid/index.js +3 -0
  94. package/dist/components/footer/Footer.d.ts +73 -0
  95. package/dist/components/footer/Footer.d.ts.map +1 -0
  96. package/dist/components/footer/Footer.js +112 -0
  97. package/dist/components/footer/footer-config.d.ts +40 -0
  98. package/dist/components/footer/footer-config.d.ts.map +1 -0
  99. package/dist/components/footer/footer-config.js +18 -0
  100. package/dist/components/footer/footer-styles.d.ts +22 -0
  101. package/dist/components/footer/footer-styles.d.ts.map +1 -0
  102. package/dist/components/footer/footer-styles.js +9 -0
  103. package/dist/components/footer/index.d.ts +3 -0
  104. package/dist/components/footer/index.d.ts.map +1 -0
  105. package/dist/components/footer/index.js +3 -0
  106. package/dist/components/form/Form.d.ts.map +1 -1
  107. package/dist/components/grid/Grid.d.ts +71 -0
  108. package/dist/components/grid/Grid.d.ts.map +1 -0
  109. package/dist/components/grid/Grid.js +23 -0
  110. package/dist/components/grid/grid-config.d.ts +63 -0
  111. package/dist/components/grid/grid-config.d.ts.map +1 -0
  112. package/dist/components/grid/grid-config.js +16 -0
  113. package/dist/components/grid/grid-styles.d.ts +12 -0
  114. package/dist/components/grid/grid-styles.d.ts.map +1 -0
  115. package/dist/components/grid/grid-styles.js +31 -0
  116. package/dist/components/grid/index.d.ts +3 -0
  117. package/dist/components/grid/index.d.ts.map +1 -0
  118. package/dist/components/grid/index.js +3 -0
  119. package/dist/components/hero/Hero.d.ts +90 -0
  120. package/dist/components/hero/Hero.d.ts.map +1 -0
  121. package/dist/components/hero/Hero.js +63 -0
  122. package/dist/components/hero/hero-config.d.ts +71 -0
  123. package/dist/components/hero/hero-config.d.ts.map +1 -0
  124. package/dist/components/hero/hero-config.js +22 -0
  125. package/dist/components/hero/hero-styles.d.ts +19 -0
  126. package/dist/components/hero/hero-styles.d.ts.map +1 -0
  127. package/dist/components/hero/hero-styles.js +5 -0
  128. package/dist/components/hero/index.d.ts +3 -0
  129. package/dist/components/hero/index.d.ts.map +1 -0
  130. package/dist/components/hero/index.js +3 -0
  131. package/dist/components/multi-select/MultiSelect.d.ts.map +1 -1
  132. package/dist/components/navbar/Navbar.d.ts +87 -0
  133. package/dist/components/navbar/Navbar.d.ts.map +1 -0
  134. package/dist/components/navbar/Navbar.js +117 -0
  135. package/dist/components/navbar/index.d.ts +3 -0
  136. package/dist/components/navbar/index.d.ts.map +1 -0
  137. package/dist/components/navbar/index.js +3 -0
  138. package/dist/components/navbar/navbar-config.d.ts +52 -0
  139. package/dist/components/navbar/navbar-config.d.ts.map +1 -0
  140. package/dist/components/navbar/navbar-config.js +20 -0
  141. package/dist/components/navbar/navbar-styles.d.ts +28 -0
  142. package/dist/components/navbar/navbar-styles.d.ts.map +1 -0
  143. package/dist/components/navbar/navbar-styles.js +9 -0
  144. package/dist/components/page/Page.d.ts +166 -0
  145. package/dist/components/page/Page.d.ts.map +1 -0
  146. package/dist/components/page/Page.js +90 -0
  147. package/dist/components/page/index.d.ts +3 -0
  148. package/dist/components/page/index.d.ts.map +1 -0
  149. package/dist/components/page/index.js +3 -0
  150. package/dist/components/page/page-config.d.ts +57 -0
  151. package/dist/components/page/page-config.d.ts.map +1 -0
  152. package/dist/components/page/page-config.js +20 -0
  153. package/dist/components/page/page-styles.d.ts +25 -0
  154. package/dist/components/page/page-styles.d.ts.map +1 -0
  155. package/dist/components/page/page-styles.js +5 -0
  156. package/dist/components/pagination/Pagination.d.ts.map +1 -1
  157. package/dist/components/pagination/Pagination.js +8 -8
  158. package/dist/components/pin-input/PinInput.d.ts +109 -0
  159. package/dist/components/pin-input/PinInput.d.ts.map +1 -0
  160. package/dist/components/pin-input/PinInput.js +124 -0
  161. package/dist/components/pin-input/index.d.ts +3 -0
  162. package/dist/components/pin-input/index.d.ts.map +1 -0
  163. package/dist/components/pin-input/index.js +3 -0
  164. package/dist/components/pin-input/pin-input-config.d.ts +82 -0
  165. package/dist/components/pin-input/pin-input-config.d.ts.map +1 -0
  166. package/dist/components/pin-input/pin-input-config.js +23 -0
  167. package/dist/components/pin-input/pin-input-styles.d.ts +16 -0
  168. package/dist/components/pin-input/pin-input-styles.d.ts.map +1 -0
  169. package/dist/components/pin-input/pin-input-styles.js +9 -0
  170. package/dist/components/pricing-card/PricingCard.d.ts +87 -0
  171. package/dist/components/pricing-card/PricingCard.d.ts.map +1 -0
  172. package/dist/components/pricing-card/PricingCard.js +79 -0
  173. package/dist/components/pricing-card/index.d.ts +3 -0
  174. package/dist/components/pricing-card/index.d.ts.map +1 -0
  175. package/dist/components/pricing-card/index.js +3 -0
  176. package/dist/components/pricing-card/pricing-card-config.d.ts +35 -0
  177. package/dist/components/pricing-card/pricing-card-config.d.ts.map +1 -0
  178. package/dist/components/pricing-card/pricing-card-config.js +16 -0
  179. package/dist/components/pricing-card/pricing-card-styles.d.ts +21 -0
  180. package/dist/components/pricing-card/pricing-card-styles.d.ts.map +1 -0
  181. package/dist/components/pricing-card/pricing-card-styles.js +5 -0
  182. package/dist/components/radio/RadioGroup.d.ts.map +1 -1
  183. package/dist/components/section/Section.d.ts +56 -0
  184. package/dist/components/section/Section.d.ts.map +1 -0
  185. package/dist/components/section/Section.js +27 -0
  186. package/dist/components/section/index.d.ts +3 -0
  187. package/dist/components/section/index.d.ts.map +1 -0
  188. package/dist/components/section/index.js +3 -0
  189. package/dist/components/section/section-config.d.ts +64 -0
  190. package/dist/components/section/section-config.d.ts.map +1 -0
  191. package/dist/components/section/section-config.js +20 -0
  192. package/dist/components/section/section-styles.d.ts +8 -0
  193. package/dist/components/section/section-styles.d.ts.map +1 -0
  194. package/dist/components/section/section-styles.js +9 -0
  195. package/dist/components/section-kit/ActionGroup.d.ts +47 -0
  196. package/dist/components/section-kit/ActionGroup.d.ts.map +1 -0
  197. package/dist/components/section-kit/ActionGroup.js +35 -0
  198. package/dist/components/section-kit/SectionHeading.d.ts +65 -0
  199. package/dist/components/section-kit/SectionHeading.d.ts.map +1 -0
  200. package/dist/components/section-kit/SectionHeading.js +34 -0
  201. package/dist/components/section-kit/index.d.ts +12 -0
  202. package/dist/components/section-kit/index.d.ts.map +1 -0
  203. package/dist/components/section-kit/index.js +2 -0
  204. package/dist/components/sidebar-layout/SidebarLayout.d.ts +67 -0
  205. package/dist/components/sidebar-layout/SidebarLayout.d.ts.map +1 -0
  206. package/dist/components/sidebar-layout/SidebarLayout.js +40 -0
  207. package/dist/components/sidebar-layout/index.d.ts +3 -0
  208. package/dist/components/sidebar-layout/index.d.ts.map +1 -0
  209. package/dist/components/sidebar-layout/index.js +3 -0
  210. package/dist/components/sidebar-layout/sidebar-layout-config.d.ts +49 -0
  211. package/dist/components/sidebar-layout/sidebar-layout-config.d.ts.map +1 -0
  212. package/dist/components/sidebar-layout/sidebar-layout-config.js +16 -0
  213. package/dist/components/sidebar-layout/sidebar-layout-styles.d.ts +21 -0
  214. package/dist/components/sidebar-layout/sidebar-layout-styles.d.ts.map +1 -0
  215. package/dist/components/sidebar-layout/sidebar-layout-styles.js +9 -0
  216. package/dist/components/skeleton/Skeleton.d.ts.map +1 -1
  217. package/dist/components/stack/Stack.d.ts +107 -0
  218. package/dist/components/stack/Stack.d.ts.map +1 -0
  219. package/dist/components/stack/Stack.js +36 -0
  220. package/dist/components/stack/index.d.ts +3 -0
  221. package/dist/components/stack/index.d.ts.map +1 -0
  222. package/dist/components/stack/index.js +3 -0
  223. package/dist/components/stack/stack-config.d.ts +68 -0
  224. package/dist/components/stack/stack-config.d.ts.map +1 -0
  225. package/dist/components/stack/stack-config.js +20 -0
  226. package/dist/components/stack/stack-styles.d.ts +10 -0
  227. package/dist/components/stack/stack-styles.d.ts.map +1 -0
  228. package/dist/components/stack/stack-styles.js +21 -0
  229. package/dist/components/testimonials/Testimonials.d.ts +78 -0
  230. package/dist/components/testimonials/Testimonials.d.ts.map +1 -0
  231. package/dist/components/testimonials/Testimonials.js +96 -0
  232. package/dist/components/testimonials/index.d.ts +3 -0
  233. package/dist/components/testimonials/index.d.ts.map +1 -0
  234. package/dist/components/testimonials/index.js +3 -0
  235. package/dist/components/testimonials/testimonials-config.d.ts +44 -0
  236. package/dist/components/testimonials/testimonials-config.d.ts.map +1 -0
  237. package/dist/components/testimonials/testimonials-config.js +28 -0
  238. package/dist/components/testimonials/testimonials-styles.d.ts +11 -0
  239. package/dist/components/testimonials/testimonials-styles.d.ts.map +1 -0
  240. package/dist/components/testimonials/testimonials-styles.js +5 -0
  241. package/dist/components/typography/typography-styles.d.ts.map +1 -1
  242. package/dist/config/validate-config.d.ts.map +1 -1
  243. package/dist/icons/CopyIcon.d.ts +3 -0
  244. package/dist/icons/CopyIcon.d.ts.map +1 -0
  245. package/dist/icons/CopyIcon.js +24 -0
  246. package/dist/index.d.ts +19 -2
  247. package/dist/index.d.ts.map +1 -1
  248. package/dist/index.js +107 -72
  249. package/dist/puck/adapters.d.ts +41 -0
  250. package/dist/puck/adapters.d.ts.map +1 -0
  251. package/dist/puck/adapters.js +30 -0
  252. package/dist/puck/blocks/content.d.ts +32 -0
  253. package/dist/puck/blocks/content.d.ts.map +1 -0
  254. package/dist/puck/blocks/content.js +54 -0
  255. package/dist/puck/blocks/layout.d.ts +44 -0
  256. package/dist/puck/blocks/layout.d.ts.map +1 -0
  257. package/dist/puck/blocks/layout.js +69 -0
  258. package/dist/puck/blocks/navigation.d.ts +66 -0
  259. package/dist/puck/blocks/navigation.d.ts.map +1 -0
  260. package/dist/puck/blocks/navigation.js +122 -0
  261. package/dist/puck/blocks/sections.d.ts +134 -0
  262. package/dist/puck/blocks/sections.d.ts.map +1 -0
  263. package/dist/puck/blocks/sections.js +232 -0
  264. package/dist/puck/blocks/utility.d.ts +22 -0
  265. package/dist/puck/blocks/utility.d.ts.map +1 -0
  266. package/dist/puck/blocks/utility.js +49 -0
  267. package/dist/puck/config.d.ts +63 -0
  268. package/dist/puck/config.d.ts.map +1 -0
  269. package/dist/puck/config.js +79 -0
  270. package/dist/puck/fields.d.ts +94 -0
  271. package/dist/puck/fields.d.ts.map +1 -0
  272. package/dist/puck/fields.js +116 -0
  273. package/dist/puck/index.d.ts +21 -0
  274. package/dist/puck/index.d.ts.map +1 -0
  275. package/dist/puck/index.js +10 -0
  276. package/dist/shared/action.d.ts +52 -0
  277. package/dist/shared/action.d.ts.map +1 -0
  278. package/dist/shared/index.d.ts +2 -0
  279. package/dist/shared/index.d.ts.map +1 -1
  280. package/dist/shared/spacing.d.ts +38 -0
  281. package/dist/shared/spacing.d.ts.map +1 -0
  282. package/dist/shared/spacing.js +29 -0
  283. package/dist/shared/typography.d.ts.map +1 -1
  284. package/dist/utils/resolve-token.d.ts +32 -7
  285. package/dist/utils/resolve-token.d.ts.map +1 -1
  286. package/dist/utils/resolve-token.js +9 -1
  287. package/package.json +18 -4
package/LICENSE CHANGED
@@ -1,21 +1,201 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Ashee Softworks
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Ashee Softworks
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,10 @@
1
+ AsheeUI
2
+ Copyright 2026 Ashee Softworks
3
+
4
+ This product includes software developed at Ashee Softworks
5
+ (https://github.com/AsheeSoftworks/AsheeUI).
6
+
7
+ The framework's design system, component contracts and development
8
+ methodology are documented in this repository. The AI Test Driven
9
+ Development methodology that the project is developed with is created by
10
+ Ashee Softworks and published openly.
package/README.md CHANGED
@@ -1,210 +1,107 @@
1
1
  # asheeui
2
2
 
3
- A config-driven React component library built on Tailwind CSS v4. Accessible, styled components with a unified configuration system — set defaults once, override them anywhere.
3
+ A React UI framework built on Tailwind CSS v4. Accessible, config-driven
4
+ components, a layout system, the sections a page is made of, and a Puck
5
+ integration behind their own entry point.
4
6
 
5
7
  ## Features
6
8
 
7
- - **Config-driven** — Define theme, variant, color, and radius defaults in one place (`asheeui.config.ts`) and override at the component or instance level.
8
- - **Tailwind CSS v4** — Built on the latest Tailwind with CSS-variable-driven theming.
9
- - **Light & dark themes** — Ships with built-in `light`, `dark`, and `system` themes, plus full support for custom themes.
10
- - **Accessible components** — Every component is designed with accessibility in mind.
11
- - **Runtime theming** — Switch themes on the fly with the `useTheme` hook; preferences persist via `localStorage`.
12
- - **TypeScript-first** — Fully typed config, theme registry, and component props.
9
+ - **Config-driven** — theme, variant, color, radius and spacing defaults resolve
10
+ through one cascade, so a value can be set globally, per component or per
11
+ instance.
12
+ - **A layout system** — `Container`, `Section`, `Stack`/`HStack`/`VStack`,
13
+ `Grid`, `Page`/`PageHeader`/`PageContent`/`PageFooter`, plus `SidebarLayout`
14
+ and `AuthLayout` for application pages.
15
+ - **Page sections** — `Navbar`, `Hero`, `FeatureGrid`, `CTA`, `Testimonials`,
16
+ `PricingCard` and `Footer`, each taking its actions as configuration.
17
+ - **Puck integration** — `asheeui/puck` exposes the same components as builder
18
+ blocks, so an application, an editor and a published page share one
19
+ implementation. `@puckeditor/core` is an optional peer dependency.
20
+ - **Tailwind CSS v4** — class names are static and complete, and colours resolve
21
+ through CSS custom properties.
22
+ - **Light and dark themes** — built-in `light`, `dark` and `system` themes, plus
23
+ custom themes.
24
+ - **Accessible** — landmarks, names, keyboard behaviour and announced state are
25
+ part of each component's contract, with tests that state them.
26
+ - **TypeScript-first** — fully typed configuration, theme registry and component
27
+ props, with JSDoc on every exported symbol.
13
28
 
14
29
  ## Requirements
15
30
 
16
31
  - React 18 or newer
17
32
  - Tailwind CSS v4
18
- - Node.js 18 or newer
33
+ - Node.js 22.12 or newer for development
19
34
 
20
35
  ## Installation
21
36
 
22
- The fastest way to get started is with the CLI. Run this in your project root:
23
-
24
- ```bash
25
- npx asheeui@latest init
26
- ```
27
-
28
- The CLI detects your framework, installs dependencies, adds the provider to your root layout, and configures Tailwind.
29
-
30
- ### Manual setup
31
-
32
- Install the package:
33
-
34
37
  ```bash
35
- npm install asheeui@latest
38
+ npm install asheeui
36
39
  ```
37
40
 
38
- Add the styles import to your global CSS file (must come **after** the Tailwind import):
41
+ Import the stylesheet once and wrap your root in the provider:
39
42
 
40
43
  ```css
41
44
  @import "tailwindcss";
42
45
  @import "asheeui/styles";
43
46
  ```
44
47
 
45
- Wrap your app with `AsheeUIProvider`:
46
-
47
- ```jsx
48
+ ```tsx
48
49
  import { AsheeUIProvider } from "asheeui";
49
-
50
- export default function RootLayout({ children }) {
51
- return (
52
- <html suppressHydrationWarning>
53
- <body>
54
- <AsheeUIProvider>{children}</AsheeUIProvider>
55
- </body>
56
- </html>
57
- );
58
- }
59
50
  ```
60
51
 
61
- > **Note:** `suppressHydrationWarning` is required on the `<html>` element to prevent hydration mismatches from theme switching.
52
+ The optional `@asheeui/cli` package can scaffold that setup and check it, but it
53
+ is not required: the two steps above are the whole setup.
62
54
 
63
- ### Framework guides
55
+ ## Documentation
64
56
 
65
- - [Next.js](/docs/installation/nextjs) — App Router and Pages Router
66
- - [TanStack Start](/docs/installation/tanstack-start) — Full-stack React with TanStack Router
67
- - [Vite + React](/docs/installation/vite) — Lightweight React SPA
57
+ The framework documentation lives in the repository:
68
58
 
69
- ## Quick start
70
-
71
- Render a component:
72
-
73
- ```jsx
74
- import { Button } from "asheeui";
75
-
76
- function App() {
77
- return <Button>Hello AsheeUI</Button>;
78
- }
79
- ```
59
+ - [Installation](https://github.com/AsheeSoftworks/AsheeUI/blob/main/docs/installation.md)
60
+ - [Configuration](https://github.com/AsheeSoftworks/AsheeUI/blob/main/docs/configuration.md)
61
+ - [Components](https://github.com/AsheeSoftworks/AsheeUI/blob/main/docs/components.md)
62
+ - [Puck](https://github.com/AsheeSoftworks/AsheeUI/blob/main/docs/puck.md)
63
+ - [Accessibility](https://github.com/AsheeSoftworks/AsheeUI/blob/main/docs/accessibility.md)
64
+ - [Migration](https://github.com/AsheeSoftworks/AsheeUI/blob/main/docs/migration.md)
80
65
 
81
- You should see a styled button using the default theme.
82
-
83
- ## Configuration
84
-
85
- AsheeUI is configured through an optional `asheeui.config.ts` file at your project root. Sensible defaults apply with no config at all.
86
-
87
- ```ts
88
- // asheeui.config.ts
89
- import type { ExternalConfig } from "asheeui";
90
-
91
- export const config: ExternalConfig = {
92
- defaultTheme: "system", // "light" | "dark" | "system"
93
- defaultVariant: "solid", // "solid" | "ghost" | "bordered" | "faded" | "underlined"
94
- defaultColor: "primary", // "none" | "default" | "primary" | "secondary" | "danger" | "warning" | "success"
95
- defaultRadius: "md", // "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full"
96
- };
97
- ```
98
-
99
- Values are resolved in this order (highest priority first):
100
-
101
- 1. **Instance prop** — `<Button variant="solid" />`
102
- 2. **Component config** — `components.button.variant`
103
- 3. **Theme default** — top-level `defaultVariant`, `defaultColor`, etc.
104
- 4. **Built-in fallback** — the library's internal default
105
-
106
- ### Per-component defaults
107
-
108
- Set defaults for specific components while keeping global defaults for everything else:
109
-
110
- ```ts
111
- export const config: ExternalConfig = {
112
- defaultVariant: "bordered", // applies to all components
113
- components: {
114
- button: { variant: "solid" }, // overrides for Button only
115
- input: { variant: "bordered", radius: "sm" },
116
- toast: { variant: "bordered", placement: "bottom-right" },
117
- },
118
- };
119
- ```
120
-
121
- See the [Configuration docs](/docs/configuration) for the full reference.
122
-
123
- ## Theming
124
-
125
- AsheeUI's theming system is CSS-variable-driven. It ships with `light`, `dark`, and `system` themes, and you can override tokens or define entirely custom themes.
126
-
127
- ### Switch themes at runtime
128
-
129
- ```jsx
130
- import { useTheme } from "asheeui";
66
+ ## Quick start
131
67
 
132
- function ThemeSwitcher() {
133
- const { theme, setTheme, toggleTheme } = useTheme();
68
+ ```tsx
69
+ import { Button, Page, PageContent, Hero } from "asheeui";
134
70
 
71
+ export function App() {
135
72
  return (
136
- <div>
137
- <p>Current theme: {theme}</p>
138
- <button onClick={() => setTheme("dark")}>Dark</button>
139
- <button onClick={() => setTheme("light")}>Light</button>
140
- <button onClick={toggleTheme}>Toggle</button>
141
- </div>
73
+ <Page>
74
+ <PageContent>
75
+ <Hero
76
+ title="Run your campaigns from one place"
77
+ primaryAction={{ label: "Start free", href: "/signup" }}
78
+ />
79
+ <Button>Hello AsheeUI</Button>
80
+ </PageContent>
81
+ </Page>
142
82
  );
143
83
  }
144
84
  ```
145
85
 
146
- `useTheme` returns:
147
-
148
- | Property | Type | Description |
149
- |---|---|---|
150
- | `theme` | `ThemeSelection` | Current selected theme (`"light"` \| `"dark"` \| `"system"`) |
151
- | `resolvedTheme` | `ThemeName` | Actual resolved theme (after system fallback) |
152
- | `setTheme` | `(theme: ThemeSelection) => void` | Set the active theme |
153
- | `toggleTheme` | `() => void` | Cycle to the next theme in sequence |
154
- | `availableThemes` | `readonly string[]` | All registered theme names |
86
+ A complete page is `Navbar`, a band or two, and `Footer`, all of them composing
87
+ through `Page`, `Section`, `Container` and `Grid`.
155
88
 
156
- Theme preference persists across page reloads via `localStorage`.
157
-
158
- ### Override a built-in theme
159
-
160
- ```ts
161
- export const config: ExternalConfig = {
162
- color: {
163
- light: { primary: "#7c3aed", background: "#faf5ff" },
164
- dark: { primary: "#8b5cf6", border: "#3b3b3b" },
165
- },
166
- };
167
- ```
168
-
169
- Only the tokens you specify are overridden — everything else stays at the built-in default.
170
-
171
- ### Add a custom theme
172
-
173
- Extend `light` or `dark` and override only what you need:
174
-
175
- ```ts
176
- export const config: ExternalConfig = {
177
- defaultTheme: "company-red",
178
- color: {
179
- "company-red": {
180
- extends: "dark",
181
- background: "#1a0505",
182
- foreground: "#fef2f2",
183
- primary: "#dc2626",
184
- // ...other tokens inherit from dark
185
- },
186
- },
187
- };
188
- ```
189
-
190
- > **TypeScript:** Register custom theme names so `useTheme` and `setTheme` recognize them:
191
- >
192
- > ```ts
193
- > declare module "asheeui" {
194
- > interface AsheeColorRegistry {
195
- > "company-red": true;
196
- > }
197
- > }
198
- > ```
89
+ ## Theming
199
90
 
200
- See the [Theming docs](/docs/theming) for the full token list.
91
+ Themes are CSS custom properties (`--ashee-background`, `--ashee-primary`, and
92
+ so on), applied by the provider before the first paint. `useTheme` switches the
93
+ theme at runtime and records the preference, `themeController` does the same
94
+ outside React, and a theme is defined as a block in the configuration.
201
95
 
202
96
  ## Links
203
97
 
204
- - [Documentation](/docs)
205
- - [Configuration reference](/docs/configuration)
206
- - [Theming reference](/docs/theming)
98
+ - Documentation: https://asheeui.com
99
+ - Repository: https://github.com/AsheeSoftworks/AsheeUI
100
+ - Issues: https://github.com/AsheeSoftworks/AsheeUI/issues
207
101
 
208
102
  ## License
209
103
 
210
- MIT
104
+ AsheeUI is licensed under the [Apache License 2.0](../../LICENSE). Copyright and
105
+ attribution notices are in the root [NOTICE](../../NOTICE) file; the repository's
106
+ [licensing guide](../../docs/licensing.md) explains what redistribution requires.
107
+
@@ -92,7 +92,7 @@ export interface AccordionProps extends BaseAccordionProps {
92
92
  * variant="separated"
93
93
  * items={[
94
94
  * { title: "What is AsheeUI?", content: "A React component library." },
95
- * { title: "Is it free?", content: "Yes, it is MIT licensed." },
95
+ * { title: "Is it free?", content: "Yes, it is Apache-2.0 licensed." },
96
96
  * ]}
97
97
  * />
98
98
  * );
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/Alert.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAc,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAmBxE,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,SAAS,EAEf,MAAM,gBAAgB,CAAC;AAExB,KAAK,cAAc,GAAG,WAAW,GAC/B,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD;;;;;OAKG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAqBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,KAAK,uGAwFjB,CAAC"}
1
+ {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/Alert.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAc,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAWxE,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,SAAS,EAEf,MAAM,gBAAgB,CAAC;AAUxB,KAAK,cAAc,GAAG,WAAW,GAC/B,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD;;;;;OAKG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAqBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,KAAK,uGAwFjB,CAAC"}
@@ -10,8 +10,8 @@ import { CloseIcon as s } from "../../icons/CloseIcon.js";
10
10
  import { ErrorIcon as c } from "../../icons/ErrorIcon.js";
11
11
  import { InfoIcon as l } from "../../icons/InfoIcon.js";
12
12
  import { WarningIcon as u } from "../../icons/WarningIcon.js";
13
- import { ALERT_BASE_CLASS as d, ALERT_ICON_CLASS as f, ALERT_TYPE_COLOR as p, ALERT_TYPE_ICON_CLASS as m, ALERT_TYPE_ROLE as h } from "./alert-styles.js";
14
- import { FALLBACK_ALERT_CONFIG as g } from "./alert-config.js";
13
+ import { FALLBACK_ALERT_CONFIG as d } from "./alert-config.js";
14
+ import { ALERT_BASE_CLASS as f, ALERT_ICON_CLASS as p, ALERT_TYPE_COLOR as m, ALERT_TYPE_ICON_CLASS as h, ALERT_TYPE_ROLE as g } from "./alert-styles.js";
15
15
  import { forwardRef as _ } from "react";
16
16
  import { jsx as v, jsxs as y } from "react/jsx-runtime";
17
17
  //#region src/components/alert/Alert.tsx
@@ -24,16 +24,16 @@ function b(e) {
24
24
  }
25
25
  }
26
26
  var x = _(({ type: o, variant: c, radius: l, title: u, children: _, icon: x, isClosable: S = !1, onClose: C, closeLabel: w = "Dismiss alert", role: T, className: E, ...D }, O) => {
27
- let k = r(), A = k.components?.alert, j = i(o, A?.type, void 0, g.type), M = i(c, A?.variant, k.defaultVariant, g.variant), N = M === "underlined" ? "bordered" : M, P = i(l, A?.radius, k.defaultRadius, g.radius), F = a(P, t, g.radius);
27
+ let k = r(), A = k.components?.alert, j = i(o, A?.type, void 0, d.type), M = i(c, A?.variant, k.defaultVariant, d.variant), N = M === "underlined" ? "bordered" : M, P = i(l, A?.radius, k.defaultRadius, d.radius), F = a(P, t, d.radius);
28
28
  return /* @__PURE__ */ y("div", {
29
29
  ref: O,
30
- role: T ?? h[j],
31
- className: e(d, F, n(N, p[j]), E),
30
+ role: T ?? g[j],
31
+ className: e(f, F, n(N, m[j]), E),
32
32
  ...D,
33
33
  children: [
34
34
  /* @__PURE__ */ v("span", {
35
35
  "aria-hidden": "true",
36
- className: e(f, m[j]),
36
+ className: e(p, h[j]),
37
37
  children: x ?? b(j)
38
38
  }),
39
39
  /* @__PURE__ */ y("div", {
@@ -0,0 +1,79 @@
1
+ import { ElementType, HTMLAttributes, ReactNode } from 'react';
2
+ import { AuthLayoutConfig } from './auth-layout-config';
3
+ type BaseAuthLayoutProps = AuthLayoutConfig & Omit<HTMLAttributes<HTMLDivElement>, "color" | "title">;
4
+ /**
5
+ * Props for the AuthLayout component.
6
+ */
7
+ export interface AuthLayoutProps extends BaseAuthLayoutProps {
8
+ /** Brand content above the heading, typically a logo and product name. */
9
+ brand?: ReactNode;
10
+ /** The heading of the page, for example "Sign in". */
11
+ title?: ReactNode;
12
+ /** Supporting sentence under the heading. */
13
+ description?: ReactNode;
14
+ /** The form itself. */
15
+ children: ReactNode;
16
+ /**
17
+ * Content under the form, typically the link to the other route.
18
+ * It is rendered inside the panel, under the form.
19
+ */
20
+ footer?: ReactNode;
21
+ /**
22
+ * Product media beside the form from the `lg` breakpoint upwards, such as a
23
+ * screenshot. On a narrow screen the media stacks above the form.
24
+ */
25
+ media?: ReactNode;
26
+ /**
27
+ * Element to render the shell as.
28
+ * Defaults to a `div`.
29
+ *
30
+ * @default "div"
31
+ */
32
+ as?: ElementType;
33
+ }
34
+ /**
35
+ * The shell of an authentication page.
36
+ *
37
+ * AuthLayout gives an authentication route the structure its content assumes: the
38
+ * form is vertically centred, it has a readable measure, it optionally sits on a
39
+ * panel, and it has somewhere to put the brand, the heading and the link to the
40
+ * other route. Everything the reader submits comes from the consumer, so no
41
+ * authentication behaviour lives in the framework.
42
+ *
43
+ * @param props - AuthLayout configuration options and element attributes.
44
+ * @param props.children - The form.
45
+ * @param props.brand - Brand content above the heading.
46
+ * @param props.title - The heading of the page.
47
+ * @param props.description - Supporting sentence under the heading.
48
+ * @param props.footer - Content under the form.
49
+ * @param props.media - Product media beside the form.
50
+ * @param props.panel - Draw the form on a panel. Defaults to true.
51
+ * @param props.align - Vertical alignment of the form column. Defaults to
52
+ * "center".
53
+ * @param props.mediaPosition - Side of the media column. Defaults to "end".
54
+ * @param props.contentSize - Maximum width of the form column. Defaults to
55
+ * "sm".
56
+ * @param props.as - Element to render. Defaults to "div".
57
+ * @returns The rendered shell.
58
+ *
59
+ * @example
60
+ * ```tsx
61
+ * <AuthLayout
62
+ * brand="Ashee SMS"
63
+ * title="Sign in"
64
+ * description="Use the email address your workspace knows."
65
+ * footer={<Link href="/reset">Forgot your password?</Link>}
66
+ * media={<Image src="/inbox.png" alt="" ratio="video" />}
67
+ * >
68
+ * <Form onSubmit={signIn}>
69
+ * <Input label="Email" type="email" name="email" required />
70
+ * <Button type="submit" fullWidth>Sign in</Button>
71
+ * </Form>
72
+ * </AuthLayout>
73
+ * ```
74
+ *
75
+ * @see Page - The shell for an authenticated page.
76
+ */
77
+ export declare const AuthLayout: import('react').ForwardRefExoticComponent<AuthLayoutProps & import('react').RefAttributes<HTMLDivElement>>;
78
+ export {};
79
+ //# sourceMappingURL=AuthLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthLayout.d.ts","sourceRoot":"","sources":["../../../src/components/auth-layout/AuthLayout.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAKf,OAAO,EACL,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAC;AAc9B,KAAK,mBAAmB,GAAG,gBAAgB,GACzC,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IAC1D,0EAA0E;IAC1E,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB,sDAAsD;IACtD,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,uBAAuB;IACvB,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;;;;OAKG;IACH,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAO,MAAM,UAAU,4GAkFtB,CAAC"}