asheeui 0.7.0 → 1.1.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 (521) hide show
  1. package/README.md +61 -166
  2. package/dist/AsheeUIProvider.d.ts.map +1 -1
  3. package/dist/AsheeUIProvider.js +22 -15
  4. package/dist/components/accordion/Accordion.d.ts.map +1 -1
  5. package/dist/components/accordion/Accordion.js +9 -7
  6. package/dist/components/alert/Alert.d.ts +88 -0
  7. package/dist/components/alert/Alert.d.ts.map +1 -0
  8. package/dist/components/alert/Alert.js +61 -0
  9. package/dist/components/alert/alert-config.d.ts +56 -0
  10. package/dist/components/alert/alert-config.d.ts.map +1 -0
  11. package/dist/components/alert/alert-config.js +14 -0
  12. package/dist/components/alert/alert-styles.d.ts +32 -0
  13. package/dist/components/alert/alert-styles.d.ts.map +1 -0
  14. package/dist/components/alert/alert-styles.js +20 -0
  15. package/dist/components/alert/index.d.ts +3 -0
  16. package/dist/components/alert/index.d.ts.map +1 -0
  17. package/dist/components/alert/index.js +3 -0
  18. package/dist/components/auth-layout/AuthLayout.d.ts +79 -0
  19. package/dist/components/auth-layout/AuthLayout.d.ts.map +1 -0
  20. package/dist/components/auth-layout/AuthLayout.js +54 -0
  21. package/dist/components/auth-layout/auth-layout-config.d.ts +41 -0
  22. package/dist/components/auth-layout/auth-layout-config.d.ts.map +1 -0
  23. package/dist/components/auth-layout/auth-layout-config.js +18 -0
  24. package/dist/components/auth-layout/auth-layout-styles.d.ts +25 -0
  25. package/dist/components/auth-layout/auth-layout-styles.d.ts.map +1 -0
  26. package/dist/components/auth-layout/auth-layout-styles.js +11 -0
  27. package/dist/components/auth-layout/index.d.ts +3 -0
  28. package/dist/components/auth-layout/index.d.ts.map +1 -0
  29. package/dist/components/auth-layout/index.js +3 -0
  30. package/dist/components/autocomplete/Autocomplete.d.ts +6 -6
  31. package/dist/components/autocomplete/Autocomplete.d.ts.map +1 -1
  32. package/dist/components/autocomplete/Autocomplete.js +94 -58
  33. package/dist/components/autocomplete/autocomplete-config.d.ts +1 -1
  34. package/dist/components/autocomplete/autocomplete-config.d.ts.map +1 -1
  35. package/dist/components/avatar/Avatar.d.ts +87 -0
  36. package/dist/components/avatar/Avatar.d.ts.map +1 -0
  37. package/dist/components/avatar/Avatar.js +43 -0
  38. package/dist/components/avatar/avatar-config.d.ts +48 -0
  39. package/dist/components/avatar/avatar-config.d.ts.map +1 -0
  40. package/dist/components/avatar/avatar-config.js +14 -0
  41. package/dist/components/avatar/avatar-styles.d.ts +21 -0
  42. package/dist/components/avatar/avatar-styles.d.ts.map +1 -0
  43. package/dist/components/avatar/avatar-styles.js +13 -0
  44. package/dist/components/avatar/avatar.helpers.d.ts +19 -0
  45. package/dist/components/avatar/avatar.helpers.d.ts.map +1 -0
  46. package/dist/components/avatar/avatar.helpers.js +11 -0
  47. package/dist/components/avatar/index.d.ts +3 -0
  48. package/dist/components/avatar/index.d.ts.map +1 -0
  49. package/dist/components/avatar/index.js +4 -0
  50. package/dist/components/badge/Badge.d.ts +69 -0
  51. package/dist/components/badge/Badge.d.ts.map +1 -0
  52. package/dist/components/badge/Badge.js +39 -0
  53. package/dist/components/badge/badge-config.d.ts +63 -0
  54. package/dist/components/badge/badge-config.d.ts.map +1 -0
  55. package/dist/components/badge/badge-config.js +15 -0
  56. package/dist/components/badge/badge-styles.d.ts +27 -0
  57. package/dist/components/badge/badge-styles.d.ts.map +1 -0
  58. package/dist/components/badge/badge-styles.js +25 -0
  59. package/dist/components/badge/index.d.ts +3 -0
  60. package/dist/components/badge/index.d.ts.map +1 -0
  61. package/dist/components/badge/index.js +3 -0
  62. package/dist/components/breadcrumb/Breadcrumb.d.ts +106 -0
  63. package/dist/components/breadcrumb/Breadcrumb.d.ts.map +1 -0
  64. package/dist/components/breadcrumb/Breadcrumb.js +52 -0
  65. package/dist/components/breadcrumb/breadcrumb-config.d.ts +41 -0
  66. package/dist/components/breadcrumb/breadcrumb-config.d.ts.map +1 -0
  67. package/dist/components/breadcrumb/breadcrumb-config.js +10 -0
  68. package/dist/components/breadcrumb/breadcrumb-styles.d.ts +28 -0
  69. package/dist/components/breadcrumb/breadcrumb-styles.d.ts.map +1 -0
  70. package/dist/components/breadcrumb/breadcrumb-styles.js +17 -0
  71. package/dist/components/breadcrumb/index.d.ts +3 -0
  72. package/dist/components/breadcrumb/index.d.ts.map +1 -0
  73. package/dist/components/breadcrumb/index.js +3 -0
  74. package/dist/components/button/Button.d.ts.map +1 -1
  75. package/dist/components/button/Button.js +10 -7
  76. package/dist/components/{date-picker/DatePicker.d.ts → calendar/Calendar.d.ts} +21 -21
  77. package/dist/components/calendar/Calendar.d.ts.map +1 -0
  78. package/dist/components/{date-picker/DatePicker.js → calendar/Calendar.js} +12 -12
  79. package/dist/components/{date-picker/Calendar.d.ts → calendar/DateGrid.d.ts} +7 -7
  80. package/dist/components/calendar/DateGrid.d.ts.map +1 -0
  81. package/dist/components/calendar/DateGrid.js +194 -0
  82. package/dist/components/calendar/TimeSpinner.d.ts.map +1 -0
  83. package/dist/components/{date-picker → calendar}/TimeSpinner.js +3 -3
  84. package/dist/components/{date-picker/date-picker-config.d.ts → calendar/calendar-config.d.ts} +17 -17
  85. package/dist/components/calendar/calendar-config.d.ts.map +1 -0
  86. package/dist/components/{date-picker/date-picker-config.js → calendar/calendar-config.js} +3 -3
  87. package/dist/components/{date-picker/date-picker-styles.d.ts → calendar/calendar-styles.d.ts} +1 -1
  88. package/dist/components/calendar/calendar-styles.d.ts.map +1 -0
  89. package/dist/components/{date-picker/date-picker-styles.js → calendar/calendar-styles.js} +1 -1
  90. package/dist/components/{date-picker/date-picker.helpers.d.ts → calendar/calendar.helpers.d.ts} +9 -9
  91. package/dist/components/calendar/calendar.helpers.d.ts.map +1 -0
  92. package/dist/components/{date-picker/date-picker.helpers.js → calendar/calendar.helpers.js} +4 -4
  93. package/dist/components/calendar/index.d.ts +3 -0
  94. package/dist/components/calendar/index.d.ts.map +1 -0
  95. package/dist/components/calendar/index.js +6 -0
  96. package/dist/components/card/Card.d.ts +6 -6
  97. package/dist/components/card/Card.d.ts.map +1 -1
  98. package/dist/components/card/Card.js +8 -8
  99. package/dist/components/carousel/Carousel.d.ts.map +1 -1
  100. package/dist/components/carousel/Carousel.js +85 -83
  101. package/dist/components/carousel/carousel-styles.d.ts +1 -20
  102. package/dist/components/carousel/carousel-styles.d.ts.map +1 -1
  103. package/dist/components/chip/Chip.js +5 -5
  104. package/dist/components/clipboard/Clipboard.d.ts +75 -0
  105. package/dist/components/clipboard/Clipboard.d.ts.map +1 -0
  106. package/dist/components/clipboard/Clipboard.js +53 -0
  107. package/dist/components/clipboard/CopyButton.d.ts +64 -0
  108. package/dist/components/clipboard/CopyButton.d.ts.map +1 -0
  109. package/dist/components/clipboard/CopyButton.js +44 -0
  110. package/dist/components/clipboard/clipboard-config.d.ts +42 -0
  111. package/dist/components/clipboard/clipboard-config.d.ts.map +1 -0
  112. package/dist/components/clipboard/clipboard-config.js +23 -0
  113. package/dist/components/clipboard/clipboard-styles.d.ts +11 -0
  114. package/dist/components/clipboard/clipboard-styles.d.ts.map +1 -0
  115. package/dist/components/clipboard/clipboard-styles.js +5 -0
  116. package/dist/components/clipboard/index.d.ts +4 -0
  117. package/dist/components/clipboard/index.d.ts.map +1 -0
  118. package/dist/components/clipboard/index.js +4 -0
  119. package/dist/components/container/Container.d.ts +51 -0
  120. package/dist/components/container/Container.d.ts.map +1 -0
  121. package/dist/components/container/Container.js +21 -0
  122. package/dist/components/container/container-config.d.ts +61 -0
  123. package/dist/components/container/container-config.d.ts.map +1 -0
  124. package/dist/components/container/container-config.js +16 -0
  125. package/dist/components/container/container-styles.d.ts +18 -0
  126. package/dist/components/container/container-styles.d.ts.map +1 -0
  127. package/dist/components/container/container-styles.js +12 -0
  128. package/dist/components/container/index.d.ts +3 -0
  129. package/dist/components/container/index.d.ts.map +1 -0
  130. package/dist/components/container/index.js +3 -0
  131. package/dist/components/cta/CTA.d.ts +81 -0
  132. package/dist/components/cta/CTA.d.ts.map +1 -0
  133. package/dist/components/cta/CTA.js +60 -0
  134. package/dist/components/cta/cta-config.d.ts +69 -0
  135. package/dist/components/cta/cta-config.d.ts.map +1 -0
  136. package/dist/components/cta/cta-config.js +22 -0
  137. package/dist/components/cta/cta-styles.d.ts +8 -0
  138. package/dist/components/cta/cta-styles.d.ts.map +1 -0
  139. package/dist/components/cta/cta-styles.js +9 -0
  140. package/dist/components/cta/index.d.ts +3 -0
  141. package/dist/components/cta/index.d.ts.map +1 -0
  142. package/dist/components/cta/index.js +3 -0
  143. package/dist/components/drawer/Drawer.d.ts +8 -4
  144. package/dist/components/drawer/Drawer.d.ts.map +1 -1
  145. package/dist/components/drawer/Drawer.js +54 -38
  146. package/dist/components/{select/Select.d.ts → dropmenu/Dropmenu.d.ts} +21 -21
  147. package/dist/components/{select/Select.d.ts.map → dropmenu/Dropmenu.d.ts.map} +1 -1
  148. package/dist/components/dropmenu/Dropmenu.js +102 -0
  149. package/dist/components/{select/select-config.d.ts → dropmenu/dropmenu-config.d.ts} +8 -8
  150. package/dist/components/dropmenu/dropmenu-config.d.ts.map +1 -0
  151. package/dist/components/{select/select-config.js → dropmenu/dropmenu-config.js} +3 -3
  152. package/dist/components/{select/select-styles.d.ts → dropmenu/dropmenu-styles.d.ts} +1 -1
  153. package/dist/components/dropmenu/dropmenu-styles.d.ts.map +1 -0
  154. package/dist/components/{select/select-styles.js → dropmenu/dropmenu-styles.js} +1 -1
  155. package/dist/components/dropmenu/index.d.ts +3 -0
  156. package/dist/components/dropmenu/index.d.ts.map +1 -0
  157. package/dist/components/dropmenu/index.js +3 -0
  158. package/dist/components/empty-state/EmptyState.d.ts +77 -0
  159. package/dist/components/empty-state/EmptyState.d.ts.map +1 -0
  160. package/dist/components/empty-state/EmptyState.js +46 -0
  161. package/dist/components/empty-state/empty-state-config.d.ts +44 -0
  162. package/dist/components/empty-state/empty-state-config.d.ts.map +1 -0
  163. package/dist/components/empty-state/empty-state-config.js +16 -0
  164. package/dist/components/empty-state/empty-state-styles.d.ts +13 -0
  165. package/dist/components/empty-state/empty-state-styles.d.ts.map +1 -0
  166. package/dist/components/empty-state/empty-state-styles.js +18 -0
  167. package/dist/components/empty-state/index.d.ts +3 -0
  168. package/dist/components/empty-state/index.d.ts.map +1 -0
  169. package/dist/components/empty-state/index.js +3 -0
  170. package/dist/components/feature-grid/FeatureGrid.d.ts +107 -0
  171. package/dist/components/feature-grid/FeatureGrid.d.ts.map +1 -0
  172. package/dist/components/feature-grid/FeatureGrid.js +94 -0
  173. package/dist/components/feature-grid/feature-grid-config.d.ts +80 -0
  174. package/dist/components/feature-grid/feature-grid-config.d.ts.map +1 -0
  175. package/dist/components/feature-grid/feature-grid-config.js +28 -0
  176. package/dist/components/feature-grid/feature-grid-styles.d.ts +11 -0
  177. package/dist/components/feature-grid/feature-grid-styles.d.ts.map +1 -0
  178. package/dist/components/feature-grid/feature-grid-styles.js +5 -0
  179. package/dist/components/feature-grid/index.d.ts +3 -0
  180. package/dist/components/feature-grid/index.d.ts.map +1 -0
  181. package/dist/components/feature-grid/index.js +3 -0
  182. package/dist/components/field/FieldShell.d.ts +13 -1
  183. package/dist/components/field/FieldShell.d.ts.map +1 -1
  184. package/dist/components/field/FieldShell.js +16 -15
  185. package/dist/components/footer/Footer.d.ts +73 -0
  186. package/dist/components/footer/Footer.d.ts.map +1 -0
  187. package/dist/components/footer/Footer.js +112 -0
  188. package/dist/components/footer/footer-config.d.ts +40 -0
  189. package/dist/components/footer/footer-config.d.ts.map +1 -0
  190. package/dist/components/footer/footer-config.js +18 -0
  191. package/dist/components/footer/footer-styles.d.ts +22 -0
  192. package/dist/components/footer/footer-styles.d.ts.map +1 -0
  193. package/dist/components/footer/footer-styles.js +9 -0
  194. package/dist/components/footer/index.d.ts +3 -0
  195. package/dist/components/footer/index.d.ts.map +1 -0
  196. package/dist/components/footer/index.js +3 -0
  197. package/dist/components/form/Form.d.ts +109 -0
  198. package/dist/components/form/Form.d.ts.map +1 -0
  199. package/dist/components/form/Form.js +42 -0
  200. package/dist/components/form/form-config.d.ts +57 -0
  201. package/dist/components/form/form-config.d.ts.map +1 -0
  202. package/dist/components/form/form-config.js +12 -0
  203. package/dist/components/form/form-styles.d.ts +27 -0
  204. package/dist/components/form/form-styles.d.ts.map +1 -0
  205. package/dist/components/form/form-styles.js +5 -0
  206. package/dist/components/form/index.d.ts +3 -0
  207. package/dist/components/form/index.d.ts.map +1 -0
  208. package/dist/components/form/index.js +3 -0
  209. package/dist/components/grid/Grid.d.ts +71 -0
  210. package/dist/components/grid/Grid.d.ts.map +1 -0
  211. package/dist/components/grid/Grid.js +23 -0
  212. package/dist/components/grid/grid-config.d.ts +63 -0
  213. package/dist/components/grid/grid-config.d.ts.map +1 -0
  214. package/dist/components/grid/grid-config.js +16 -0
  215. package/dist/components/grid/grid-styles.d.ts +12 -0
  216. package/dist/components/grid/grid-styles.d.ts.map +1 -0
  217. package/dist/components/grid/grid-styles.js +31 -0
  218. package/dist/components/grid/index.d.ts +3 -0
  219. package/dist/components/grid/index.d.ts.map +1 -0
  220. package/dist/components/grid/index.js +3 -0
  221. package/dist/components/hero/Hero.d.ts +90 -0
  222. package/dist/components/hero/Hero.d.ts.map +1 -0
  223. package/dist/components/hero/Hero.js +63 -0
  224. package/dist/components/hero/hero-config.d.ts +71 -0
  225. package/dist/components/hero/hero-config.d.ts.map +1 -0
  226. package/dist/components/hero/hero-config.js +22 -0
  227. package/dist/components/hero/hero-styles.d.ts +19 -0
  228. package/dist/components/hero/hero-styles.d.ts.map +1 -0
  229. package/dist/components/hero/hero-styles.js +5 -0
  230. package/dist/components/hero/index.d.ts +3 -0
  231. package/dist/components/hero/index.d.ts.map +1 -0
  232. package/dist/components/hero/index.js +3 -0
  233. package/dist/components/image/Image.d.ts +4 -5
  234. package/dist/components/image/Image.d.ts.map +1 -1
  235. package/dist/components/image/Image.js +5 -5
  236. package/dist/components/input/Input.js +5 -5
  237. package/dist/components/link/Link.d.ts +12 -10
  238. package/dist/components/link/Link.d.ts.map +1 -1
  239. package/dist/components/link/Link.js +1 -1
  240. package/dist/components/marquee/Marquee.d.ts.map +1 -1
  241. package/dist/components/marquee/Marquee.js +36 -33
  242. package/dist/components/{select-menu/SelectMenu.d.ts → menu/Menu.d.ts} +52 -19
  243. package/dist/components/menu/Menu.d.ts.map +1 -0
  244. package/dist/components/menu/Menu.js +161 -0
  245. package/dist/components/menu/index.d.ts +5 -0
  246. package/dist/components/menu/index.d.ts.map +1 -0
  247. package/dist/components/menu/index.js +4 -0
  248. package/dist/components/{select-menu/select-menu-config.d.ts → menu/menu-config.d.ts} +5 -5
  249. package/dist/components/menu/menu-config.d.ts.map +1 -0
  250. package/dist/components/{select-menu/select-menu-config.js → menu/menu-config.js} +2 -2
  251. package/dist/components/menu/menu-navigation.d.ts +38 -0
  252. package/dist/components/menu/menu-navigation.d.ts.map +1 -0
  253. package/dist/components/menu/menu-navigation.js +20 -0
  254. package/dist/components/{select-menu/use-select-floating.d.ts → menu/use-menu-floating.d.ts} +10 -10
  255. package/dist/components/menu/use-menu-floating.d.ts.map +1 -0
  256. package/dist/components/{select-menu/use-select-floating.js → menu/use-menu-floating.js} +2 -2
  257. package/dist/components/modal/Modal.d.ts +6 -1
  258. package/dist/components/modal/Modal.d.ts.map +1 -1
  259. package/dist/components/modal/Modal.js +62 -45
  260. package/dist/components/multi-select/MultiSelect.d.ts +11 -10
  261. package/dist/components/multi-select/MultiSelect.d.ts.map +1 -1
  262. package/dist/components/multi-select/MultiSelect.js +99 -86
  263. package/dist/components/multi-select/multi-select-config.d.ts +1 -1
  264. package/dist/components/multi-select/multi-select-config.d.ts.map +1 -1
  265. package/dist/components/navbar/Navbar.d.ts +87 -0
  266. package/dist/components/navbar/Navbar.d.ts.map +1 -0
  267. package/dist/components/navbar/Navbar.js +117 -0
  268. package/dist/components/navbar/index.d.ts +3 -0
  269. package/dist/components/navbar/index.d.ts.map +1 -0
  270. package/dist/components/navbar/index.js +3 -0
  271. package/dist/components/navbar/navbar-config.d.ts +52 -0
  272. package/dist/components/navbar/navbar-config.d.ts.map +1 -0
  273. package/dist/components/navbar/navbar-config.js +20 -0
  274. package/dist/components/navbar/navbar-styles.d.ts +28 -0
  275. package/dist/components/navbar/navbar-styles.d.ts.map +1 -0
  276. package/dist/components/navbar/navbar-styles.js +9 -0
  277. package/dist/components/page/Page.d.ts +166 -0
  278. package/dist/components/page/Page.d.ts.map +1 -0
  279. package/dist/components/page/Page.js +90 -0
  280. package/dist/components/page/index.d.ts +3 -0
  281. package/dist/components/page/index.d.ts.map +1 -0
  282. package/dist/components/page/index.js +3 -0
  283. package/dist/components/page/page-config.d.ts +57 -0
  284. package/dist/components/page/page-config.d.ts.map +1 -0
  285. package/dist/components/page/page-config.js +20 -0
  286. package/dist/components/page/page-styles.d.ts +25 -0
  287. package/dist/components/page/page-styles.d.ts.map +1 -0
  288. package/dist/components/page/page-styles.js +5 -0
  289. package/dist/components/pagination/Pagination.d.ts +91 -0
  290. package/dist/components/pagination/Pagination.d.ts.map +1 -0
  291. package/dist/components/pagination/Pagination.js +66 -0
  292. package/dist/components/pagination/index.d.ts +3 -0
  293. package/dist/components/pagination/index.d.ts.map +1 -0
  294. package/dist/components/pagination/index.js +4 -0
  295. package/dist/components/pagination/pagination-config.d.ts +66 -0
  296. package/dist/components/pagination/pagination-config.d.ts.map +1 -0
  297. package/dist/components/pagination/pagination-config.js +19 -0
  298. package/dist/components/pagination/pagination-styles.d.ts +19 -0
  299. package/dist/components/pagination/pagination-styles.d.ts.map +1 -0
  300. package/dist/components/pagination/pagination-styles.js +5 -0
  301. package/dist/components/pagination/pagination.helpers.d.ts +26 -0
  302. package/dist/components/pagination/pagination.helpers.d.ts.map +1 -0
  303. package/dist/components/pagination/pagination.helpers.js +12 -0
  304. package/dist/components/pin-input/PinInput.d.ts +109 -0
  305. package/dist/components/pin-input/PinInput.d.ts.map +1 -0
  306. package/dist/components/pin-input/PinInput.js +124 -0
  307. package/dist/components/pin-input/index.d.ts +3 -0
  308. package/dist/components/pin-input/index.d.ts.map +1 -0
  309. package/dist/components/pin-input/index.js +3 -0
  310. package/dist/components/pin-input/pin-input-config.d.ts +82 -0
  311. package/dist/components/pin-input/pin-input-config.d.ts.map +1 -0
  312. package/dist/components/pin-input/pin-input-config.js +23 -0
  313. package/dist/components/pin-input/pin-input-styles.d.ts +16 -0
  314. package/dist/components/pin-input/pin-input-styles.d.ts.map +1 -0
  315. package/dist/components/pin-input/pin-input-styles.js +9 -0
  316. package/dist/components/pricing-card/PricingCard.d.ts +87 -0
  317. package/dist/components/pricing-card/PricingCard.d.ts.map +1 -0
  318. package/dist/components/pricing-card/PricingCard.js +79 -0
  319. package/dist/components/pricing-card/index.d.ts +3 -0
  320. package/dist/components/pricing-card/index.d.ts.map +1 -0
  321. package/dist/components/pricing-card/index.js +3 -0
  322. package/dist/components/pricing-card/pricing-card-config.d.ts +35 -0
  323. package/dist/components/pricing-card/pricing-card-config.d.ts.map +1 -0
  324. package/dist/components/pricing-card/pricing-card-config.js +16 -0
  325. package/dist/components/pricing-card/pricing-card-styles.d.ts +21 -0
  326. package/dist/components/pricing-card/pricing-card-styles.d.ts.map +1 -0
  327. package/dist/components/pricing-card/pricing-card-styles.js +5 -0
  328. package/dist/components/radio/Radio.d.ts +53 -107
  329. package/dist/components/radio/Radio.d.ts.map +1 -1
  330. package/dist/components/radio/Radio.js +50 -36
  331. package/dist/components/radio/RadioGroup.d.ts +107 -53
  332. package/dist/components/radio/RadioGroup.d.ts.map +1 -1
  333. package/dist/components/radio/RadioGroup.js +43 -49
  334. package/dist/components/radio/index.d.ts +0 -1
  335. package/dist/components/radio/index.d.ts.map +1 -1
  336. package/dist/components/resizable-screen/ResizableScreen.d.ts +4 -4
  337. package/dist/components/scrollbar/index.js +1 -0
  338. package/dist/components/scrollbar/scrollbar-config.js +13 -0
  339. package/dist/components/section/Section.d.ts +56 -0
  340. package/dist/components/section/Section.d.ts.map +1 -0
  341. package/dist/components/section/Section.js +27 -0
  342. package/dist/components/section/index.d.ts +3 -0
  343. package/dist/components/section/index.d.ts.map +1 -0
  344. package/dist/components/section/index.js +3 -0
  345. package/dist/components/section/section-config.d.ts +64 -0
  346. package/dist/components/section/section-config.d.ts.map +1 -0
  347. package/dist/components/section/section-config.js +20 -0
  348. package/dist/components/section/section-styles.d.ts +8 -0
  349. package/dist/components/section/section-styles.d.ts.map +1 -0
  350. package/dist/components/section/section-styles.js +9 -0
  351. package/dist/components/section-kit/ActionGroup.d.ts +47 -0
  352. package/dist/components/section-kit/ActionGroup.d.ts.map +1 -0
  353. package/dist/components/section-kit/ActionGroup.js +35 -0
  354. package/dist/components/section-kit/SectionHeading.d.ts +65 -0
  355. package/dist/components/section-kit/SectionHeading.d.ts.map +1 -0
  356. package/dist/components/section-kit/SectionHeading.js +34 -0
  357. package/dist/components/section-kit/index.d.ts +12 -0
  358. package/dist/components/section-kit/index.d.ts.map +1 -0
  359. package/dist/components/section-kit/index.js +2 -0
  360. package/dist/components/sidebar/Sidebar.d.ts.map +1 -1
  361. package/dist/components/sidebar/Sidebar.js +92 -90
  362. package/dist/components/sidebar-layout/SidebarLayout.d.ts +67 -0
  363. package/dist/components/sidebar-layout/SidebarLayout.d.ts.map +1 -0
  364. package/dist/components/sidebar-layout/SidebarLayout.js +40 -0
  365. package/dist/components/sidebar-layout/index.d.ts +3 -0
  366. package/dist/components/sidebar-layout/index.d.ts.map +1 -0
  367. package/dist/components/sidebar-layout/index.js +3 -0
  368. package/dist/components/sidebar-layout/sidebar-layout-config.d.ts +49 -0
  369. package/dist/components/sidebar-layout/sidebar-layout-config.d.ts.map +1 -0
  370. package/dist/components/sidebar-layout/sidebar-layout-config.js +16 -0
  371. package/dist/components/sidebar-layout/sidebar-layout-styles.d.ts +21 -0
  372. package/dist/components/sidebar-layout/sidebar-layout-styles.d.ts.map +1 -0
  373. package/dist/components/sidebar-layout/sidebar-layout-styles.js +9 -0
  374. package/dist/components/skeleton/Skeleton.d.ts +65 -0
  375. package/dist/components/skeleton/Skeleton.d.ts.map +1 -0
  376. package/dist/components/skeleton/Skeleton.js +29 -0
  377. package/dist/components/skeleton/index.d.ts +3 -0
  378. package/dist/components/skeleton/index.d.ts.map +1 -0
  379. package/dist/components/skeleton/index.js +3 -0
  380. package/dist/components/skeleton/skeleton-config.d.ts +40 -0
  381. package/dist/components/skeleton/skeleton-config.d.ts.map +1 -0
  382. package/dist/components/skeleton/skeleton-config.js +13 -0
  383. package/dist/components/skeleton/skeleton-styles.d.ts +19 -0
  384. package/dist/components/skeleton/skeleton-styles.d.ts.map +1 -0
  385. package/dist/components/skeleton/skeleton-styles.js +5 -0
  386. package/dist/components/stack/Stack.d.ts +107 -0
  387. package/dist/components/stack/Stack.d.ts.map +1 -0
  388. package/dist/components/stack/Stack.js +36 -0
  389. package/dist/components/stack/index.d.ts +3 -0
  390. package/dist/components/stack/index.d.ts.map +1 -0
  391. package/dist/components/stack/index.js +3 -0
  392. package/dist/components/stack/stack-config.d.ts +68 -0
  393. package/dist/components/stack/stack-config.d.ts.map +1 -0
  394. package/dist/components/stack/stack-config.js +20 -0
  395. package/dist/components/stack/stack-styles.d.ts +10 -0
  396. package/dist/components/stack/stack-styles.d.ts.map +1 -0
  397. package/dist/components/stack/stack-styles.js +21 -0
  398. package/dist/components/switch/Switch.d.ts.map +1 -1
  399. package/dist/components/switch/Switch.js +7 -5
  400. package/dist/components/table/Table.js +3 -3
  401. package/dist/components/tabs/Tabs.js +3 -3
  402. package/dist/components/testimonials/Testimonials.d.ts +78 -0
  403. package/dist/components/testimonials/Testimonials.d.ts.map +1 -0
  404. package/dist/components/testimonials/Testimonials.js +96 -0
  405. package/dist/components/testimonials/index.d.ts +3 -0
  406. package/dist/components/testimonials/index.d.ts.map +1 -0
  407. package/dist/components/testimonials/index.js +3 -0
  408. package/dist/components/testimonials/testimonials-config.d.ts +44 -0
  409. package/dist/components/testimonials/testimonials-config.d.ts.map +1 -0
  410. package/dist/components/testimonials/testimonials-config.js +28 -0
  411. package/dist/components/testimonials/testimonials-styles.d.ts +11 -0
  412. package/dist/components/testimonials/testimonials-styles.d.ts.map +1 -0
  413. package/dist/components/testimonials/testimonials-styles.js +5 -0
  414. package/dist/components/textarea/Textarea.d.ts +10 -10
  415. package/dist/components/textarea/Textarea.js +7 -7
  416. package/dist/components/textarea/textarea-config.d.ts +2 -2
  417. package/dist/components/toast/ToastItem.d.ts.map +1 -1
  418. package/dist/components/toast/ToastItem.js +8 -7
  419. package/dist/components/tooltip/Tooltip.js +5 -5
  420. package/dist/components/typography/Typography.d.ts +60 -0
  421. package/dist/components/typography/Typography.d.ts.map +1 -0
  422. package/dist/components/typography/Typography.js +28 -0
  423. package/dist/components/typography/index.d.ts +3 -0
  424. package/dist/components/typography/index.d.ts.map +1 -0
  425. package/dist/components/typography/index.js +3 -0
  426. package/dist/components/typography/typography-config.d.ts +54 -0
  427. package/dist/components/typography/typography-config.d.ts.map +1 -0
  428. package/dist/components/typography/typography-config.js +12 -0
  429. package/dist/components/typography/typography-styles.d.ts +21 -0
  430. package/dist/components/typography/typography-styles.d.ts.map +1 -0
  431. package/dist/components/typography/typography-styles.js +19 -0
  432. package/dist/config/default-config.d.ts.map +1 -1
  433. package/dist/config/default-config.js +2 -2
  434. package/dist/config/index.js +1 -0
  435. package/dist/config/validate-config.d.ts +34 -0
  436. package/dist/config/validate-config.d.ts.map +1 -0
  437. package/dist/config/validate-config.js +190 -0
  438. package/dist/icons/CopyIcon.d.ts +3 -0
  439. package/dist/icons/CopyIcon.d.ts.map +1 -0
  440. package/dist/icons/CopyIcon.js +24 -0
  441. package/dist/index.d.ts +33 -18
  442. package/dist/index.d.ts.map +1 -1
  443. package/dist/index.js +110 -61
  444. package/dist/libs/index.js +3 -0
  445. package/dist/libs/use-body-scroll-lock.d.ts +21 -0
  446. package/dist/libs/use-body-scroll-lock.d.ts.map +1 -0
  447. package/dist/libs/use-body-scroll-lock.js +27 -0
  448. package/dist/libs/use-dialog-overlay.d.ts +21 -0
  449. package/dist/libs/use-dialog-overlay.d.ts.map +1 -0
  450. package/dist/libs/use-dialog-overlay.js +21 -0
  451. package/dist/libs/use-prefers-reduced-motion.d.ts +23 -0
  452. package/dist/libs/use-prefers-reduced-motion.d.ts.map +1 -0
  453. package/dist/libs/use-prefers-reduced-motion.js +19 -0
  454. package/dist/puck/adapters.d.ts +41 -0
  455. package/dist/puck/adapters.d.ts.map +1 -0
  456. package/dist/puck/adapters.js +30 -0
  457. package/dist/puck/blocks/content.d.ts +32 -0
  458. package/dist/puck/blocks/content.d.ts.map +1 -0
  459. package/dist/puck/blocks/content.js +54 -0
  460. package/dist/puck/blocks/layout.d.ts +44 -0
  461. package/dist/puck/blocks/layout.d.ts.map +1 -0
  462. package/dist/puck/blocks/layout.js +69 -0
  463. package/dist/puck/blocks/navigation.d.ts +66 -0
  464. package/dist/puck/blocks/navigation.d.ts.map +1 -0
  465. package/dist/puck/blocks/navigation.js +122 -0
  466. package/dist/puck/blocks/sections.d.ts +134 -0
  467. package/dist/puck/blocks/sections.d.ts.map +1 -0
  468. package/dist/puck/blocks/sections.js +232 -0
  469. package/dist/puck/blocks/utility.d.ts +22 -0
  470. package/dist/puck/blocks/utility.d.ts.map +1 -0
  471. package/dist/puck/blocks/utility.js +49 -0
  472. package/dist/puck/config.d.ts +63 -0
  473. package/dist/puck/config.d.ts.map +1 -0
  474. package/dist/puck/config.js +79 -0
  475. package/dist/puck/fields.d.ts +94 -0
  476. package/dist/puck/fields.d.ts.map +1 -0
  477. package/dist/puck/fields.js +116 -0
  478. package/dist/puck/index.d.ts +21 -0
  479. package/dist/puck/index.d.ts.map +1 -0
  480. package/dist/puck/index.js +10 -0
  481. package/dist/scripts/AsheeThemeScript.js +43 -8
  482. package/dist/shared/action.d.ts +52 -0
  483. package/dist/shared/action.d.ts.map +1 -0
  484. package/dist/shared/index.d.ts +3 -0
  485. package/dist/shared/index.d.ts.map +1 -1
  486. package/dist/shared/spacing.d.ts +38 -0
  487. package/dist/shared/spacing.d.ts.map +1 -0
  488. package/dist/shared/spacing.js +29 -0
  489. package/dist/shared/typography.d.ts +81 -0
  490. package/dist/shared/typography.d.ts.map +1 -0
  491. package/dist/shared/typography.js +137 -0
  492. package/dist/utils/resolve-token.d.ts +32 -7
  493. package/dist/utils/resolve-token.d.ts.map +1 -1
  494. package/dist/utils/resolve-token.js +9 -1
  495. package/dist/utils/stacking.d.ts +2 -2
  496. package/dist/utils/stacking.d.ts.map +1 -1
  497. package/package.json +26 -7
  498. package/dist/components/date-picker/Calendar.d.ts.map +0 -1
  499. package/dist/components/date-picker/Calendar.js +0 -143
  500. package/dist/components/date-picker/DatePicker.d.ts.map +0 -1
  501. package/dist/components/date-picker/TimeSpinner.d.ts.map +0 -1
  502. package/dist/components/date-picker/date-picker-config.d.ts.map +0 -1
  503. package/dist/components/date-picker/date-picker-styles.d.ts.map +0 -1
  504. package/dist/components/date-picker/date-picker.helpers.d.ts.map +0 -1
  505. package/dist/components/date-picker/index.d.ts +0 -3
  506. package/dist/components/date-picker/index.d.ts.map +0 -1
  507. package/dist/components/date-picker/index.js +0 -6
  508. package/dist/components/select/Select.js +0 -98
  509. package/dist/components/select/index.d.ts +0 -3
  510. package/dist/components/select/index.d.ts.map +0 -1
  511. package/dist/components/select/index.js +0 -3
  512. package/dist/components/select/select-config.d.ts.map +0 -1
  513. package/dist/components/select/select-styles.d.ts.map +0 -1
  514. package/dist/components/select-menu/SelectMenu.d.ts.map +0 -1
  515. package/dist/components/select-menu/SelectMenu.js +0 -104
  516. package/dist/components/select-menu/index.d.ts +0 -4
  517. package/dist/components/select-menu/index.d.ts.map +0 -1
  518. package/dist/components/select-menu/index.js +0 -3
  519. package/dist/components/select-menu/select-menu-config.d.ts.map +0 -1
  520. package/dist/components/select-menu/use-select-floating.d.ts.map +0 -1
  521. /package/dist/components/{date-picker → calendar}/TimeSpinner.d.ts +0 -0
@@ -0,0 +1,134 @@
1
+ import { ComponentConfig } from '@puckeditor/core';
2
+ import { ContainerSize } from '../../components/container/container-config';
3
+ import { SectionBackground } from '../../components/section/section-config';
4
+ import { BuilderAction } from '../adapters';
5
+ /**
6
+ * Configuration of the hero block.
7
+ */
8
+ export type HeroBlockProps = {
9
+ /** Short label above the headline. */
10
+ eyebrow?: string;
11
+ /** The headline. */
12
+ title?: string;
13
+ /** Supporting sentence under the headline. */
14
+ description?: string;
15
+ /** The emphasised action. */
16
+ primaryAction?: BuilderAction;
17
+ /** The supporting action. */
18
+ secondaryAction?: BuilderAction;
19
+ /** Alignment of the text column. */
20
+ align?: "start" | "center";
21
+ /** Background treatment of the band. */
22
+ background?: SectionBackground;
23
+ /** Maximum content width of the band. */
24
+ contentWidth?: ContainerSize;
25
+ };
26
+ /**
27
+ * The leading statement of a page.
28
+ */
29
+ export declare const heroBlock: ComponentConfig<HeroBlockProps>;
30
+ /**
31
+ * Configuration of the call-to-action block.
32
+ */
33
+ export type CtaBlockProps = {
34
+ /** Short label above the headline. */
35
+ eyebrow?: string;
36
+ /** The headline of the band. */
37
+ title?: string;
38
+ /** Supporting sentence under the headline. */
39
+ description?: string;
40
+ /** The emphasised action. */
41
+ primaryAction?: BuilderAction;
42
+ /** The supporting action. */
43
+ secondaryAction?: BuilderAction;
44
+ /** Alignment of the content. */
45
+ align?: "start" | "center";
46
+ /** Background treatment of the band. */
47
+ background?: SectionBackground;
48
+ /** Panel treatment of the content. */
49
+ panel?: "bordered" | "muted" | "plain";
50
+ };
51
+ /**
52
+ * The closing call to action of a page.
53
+ */
54
+ export declare const ctaBlock: ComponentConfig<CtaBlockProps>;
55
+ /**
56
+ * Configuration of the feature grid block.
57
+ */
58
+ export type FeatureGridBlockProps = {
59
+ /** Short label above the heading. */
60
+ eyebrow?: string;
61
+ /** Heading of the band. */
62
+ title?: string;
63
+ /** Supporting sentence under the heading. */
64
+ description?: string;
65
+ /** The features to show. */
66
+ items?: Array<{
67
+ title: string;
68
+ description: string;
69
+ }>;
70
+ /** Columns from the `md` breakpoint upwards. */
71
+ columnsMd?: string;
72
+ /** Columns from the `lg` breakpoint upwards. */
73
+ columnsLg?: string;
74
+ /** Alignment of the heading. */
75
+ align?: "start" | "center";
76
+ /** Background treatment of the band. */
77
+ background?: SectionBackground;
78
+ };
79
+ /**
80
+ * A band of features laid out in a responsive grid.
81
+ */
82
+ export declare const featureGridBlock: ComponentConfig<FeatureGridBlockProps>;
83
+ /**
84
+ * Configuration of the testimonials block.
85
+ */
86
+ export type TestimonialsBlockProps = {
87
+ /** Short label above the heading. */
88
+ eyebrow?: string;
89
+ /** Heading of the band. */
90
+ title?: string;
91
+ /** Supporting sentence under the heading. */
92
+ description?: string;
93
+ /** The quotes to show. */
94
+ items?: Array<{
95
+ quote: string;
96
+ name: string;
97
+ role: string;
98
+ }>;
99
+ /** Alignment of the heading. */
100
+ align?: "start" | "center";
101
+ };
102
+ /**
103
+ * A band of attributed customer quotes.
104
+ */
105
+ export declare const testimonialsBlock: ComponentConfig<TestimonialsBlockProps>;
106
+ /**
107
+ * Configuration of the pricing card block.
108
+ */
109
+ export type PricingCardBlockProps = {
110
+ /** Name of the plan. */
111
+ name?: string;
112
+ /** The amount. */
113
+ price?: string;
114
+ /** Billing period shown beside the amount. */
115
+ period?: string;
116
+ /** One sentence about the plan. */
117
+ description?: string;
118
+ /** Short label above the plan name. */
119
+ badge?: string;
120
+ /** The plan's feature lines. */
121
+ features?: Array<{
122
+ label: string;
123
+ included: boolean;
124
+ }>;
125
+ /** Whether the plan is the recommended one. */
126
+ highlighted?: boolean;
127
+ /** The emphasised action. */
128
+ primaryAction?: BuilderAction;
129
+ };
130
+ /**
131
+ * One plan in a pricing table.
132
+ */
133
+ export declare const pricingCardBlock: ComponentConfig<PricingCardBlockProps>;
134
+ //# sourceMappingURL=sections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sections.d.ts","sourceRoot":"","sources":["../../../src/puck/blocks/sections.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EA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;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,gCAAgC;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAEvD,+CAA+C;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,6BAA6B;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,eAAe,CAAC,qBAAqB,CA+DnE,CAAC"}
@@ -0,0 +1,232 @@
1
+ "use client";
2
+ import { CTA as e } from "../../components/cta/CTA.js";
3
+ import { FeatureGrid as t } from "../../components/feature-grid/FeatureGrid.js";
4
+ import { Hero as n } from "../../components/hero/Hero.js";
5
+ import { PricingCard as r } from "../../components/pricing-card/PricingCard.js";
6
+ import { Testimonials as i } from "../../components/testimonials/Testimonials.js";
7
+ import { toAction as a, toColumns as o } from "../adapters.js";
8
+ import { ACTION_FIELDS as s, ALIGNMENT_OPTIONS as c, BACKGROUND_OPTIONS as l, COLUMNS_OPTIONS as u, CONTAINER_SIZE_OPTIONS as d, FEATURE_ITEM_FIELD as f, PRICING_FEATURE_FIELD as p, TESTIMONIAL_ITEM_FIELD as m, selectField as h, textField as g, textareaField as _ } from "../fields.js";
9
+ import { jsx as v } from "react/jsx-runtime";
10
+ //#region src/puck/blocks/sections.tsx
11
+ var y = {
12
+ label: "Hero",
13
+ fields: {
14
+ eyebrow: g("Eyebrow"),
15
+ title: g("Headline", "Run your campaigns from one place"),
16
+ description: _("Description"),
17
+ primaryAction: s,
18
+ secondaryAction: s,
19
+ align: h("Alignment", c),
20
+ background: h("Background", l),
21
+ contentWidth: h("Content width", d)
22
+ },
23
+ defaultProps: {
24
+ eyebrow: "",
25
+ title: "Run your campaigns from one place",
26
+ description: "Messages, templates and results, without switching tools.",
27
+ primaryAction: {
28
+ label: "Start free",
29
+ href: "/signup",
30
+ variant: "solid"
31
+ },
32
+ secondaryAction: {
33
+ label: "Book a demo",
34
+ href: "/demo",
35
+ variant: "bordered"
36
+ },
37
+ align: "start",
38
+ background: "none",
39
+ contentWidth: "lg"
40
+ },
41
+ render: ({ eyebrow: e, title: t, description: r, primaryAction: i, secondaryAction: o, align: s, background: c, contentWidth: l }) => /* @__PURE__ */ v(n, {
42
+ eyebrow: e || void 0,
43
+ title: t ?? "",
44
+ description: r || void 0,
45
+ primaryAction: a(i),
46
+ secondaryAction: a(o),
47
+ align: s ?? "start",
48
+ background: c ?? "none",
49
+ containerSize: l ?? "lg"
50
+ })
51
+ }, b = {
52
+ label: "Call to action",
53
+ fields: {
54
+ eyebrow: g("Eyebrow"),
55
+ title: g("Headline", "Send your first campaign today"),
56
+ description: _("Description"),
57
+ primaryAction: s,
58
+ secondaryAction: s,
59
+ align: h("Alignment", c),
60
+ background: h("Background", l),
61
+ panel: h("Panel", [
62
+ "bordered",
63
+ "muted",
64
+ "plain"
65
+ ])
66
+ },
67
+ defaultProps: {
68
+ eyebrow: "",
69
+ title: "Send your first campaign today",
70
+ description: "No card required, and no setup call.",
71
+ primaryAction: {
72
+ label: "Create an account",
73
+ href: "/signup",
74
+ variant: "solid"
75
+ },
76
+ align: "center",
77
+ background: "none",
78
+ panel: "bordered"
79
+ },
80
+ render: ({ eyebrow: t, title: n, description: r, primaryAction: i, secondaryAction: o, align: s, background: c, panel: l }) => /* @__PURE__ */ v(e, {
81
+ eyebrow: t || void 0,
82
+ title: n ?? "",
83
+ description: r || void 0,
84
+ primaryAction: a(i),
85
+ secondaryAction: a(o),
86
+ align: s ?? "center",
87
+ background: c ?? "none",
88
+ panel: l ?? "bordered"
89
+ })
90
+ }, x = {
91
+ label: "Feature grid",
92
+ fields: {
93
+ eyebrow: g("Eyebrow"),
94
+ title: g("Heading", "Everything the campaign needs"),
95
+ description: _("Description"),
96
+ items: f,
97
+ columnsMd: h("Columns on tablet", u),
98
+ columnsLg: h("Columns on desktop", u),
99
+ align: h("Heading alignment", c),
100
+ background: h("Background", l)
101
+ },
102
+ defaultProps: {
103
+ eyebrow: "",
104
+ title: "Everything the campaign needs",
105
+ description: "",
106
+ items: [
107
+ {
108
+ title: "Templates",
109
+ description: "Reusable messages."
110
+ },
111
+ {
112
+ title: "Scheduling",
113
+ description: "Send at the right time."
114
+ },
115
+ {
116
+ title: "Reporting",
117
+ description: "See what landed."
118
+ }
119
+ ],
120
+ columnsMd: "2",
121
+ columnsLg: "3",
122
+ align: "center",
123
+ background: "none"
124
+ },
125
+ render: ({ eyebrow: e, title: n, description: r, items: i, columnsMd: a, columnsLg: s, align: c, background: l }) => /* @__PURE__ */ v(t, {
126
+ eyebrow: e || void 0,
127
+ title: n || void 0,
128
+ description: r || void 0,
129
+ align: c ?? "center",
130
+ background: l ?? "none",
131
+ columnsMd: o(a),
132
+ columnsLg: o(s),
133
+ items: (i ?? []).map((e, t) => ({
134
+ id: t,
135
+ title: e.title ?? "",
136
+ description: e.description || void 0
137
+ }))
138
+ })
139
+ }, S = {
140
+ label: "Testimonials",
141
+ fields: {
142
+ eyebrow: g("Eyebrow"),
143
+ title: g("Heading", "Teams send more with Ashee"),
144
+ description: _("Description"),
145
+ items: m,
146
+ align: h("Heading alignment", c)
147
+ },
148
+ defaultProps: {
149
+ eyebrow: "",
150
+ title: "Teams send more with Ashee",
151
+ description: "",
152
+ items: [{
153
+ quote: "We cut campaign setup from hours to minutes.",
154
+ name: "Ama Boateng",
155
+ role: "Head of Growth, Kora Retail"
156
+ }],
157
+ align: "center"
158
+ },
159
+ render: ({ eyebrow: e, title: t, description: n, items: r, align: a }) => /* @__PURE__ */ v(i, {
160
+ eyebrow: e || void 0,
161
+ title: t || void 0,
162
+ description: n || void 0,
163
+ align: a ?? "center",
164
+ items: (r ?? []).map((e, t) => ({
165
+ id: t,
166
+ quote: e.quote ?? "",
167
+ name: e.name ?? "",
168
+ role: e.role || void 0
169
+ }))
170
+ })
171
+ }, C = {
172
+ label: "Pricing card",
173
+ fields: {
174
+ badge: g("Badge", "Most popular"),
175
+ name: g("Plan", "Growth"),
176
+ price: g("Price", "$29"),
177
+ period: g("Period", "/month"),
178
+ description: _("Description"),
179
+ features: p,
180
+ highlighted: {
181
+ type: "radio",
182
+ label: "Recommended plan",
183
+ options: [{
184
+ label: "Yes",
185
+ value: !0
186
+ }, {
187
+ label: "No",
188
+ value: !1
189
+ }]
190
+ },
191
+ primaryAction: s
192
+ },
193
+ defaultProps: {
194
+ badge: "",
195
+ name: "Growth",
196
+ price: "$29",
197
+ period: "/month",
198
+ description: "For teams sending their first campaigns.",
199
+ features: [{
200
+ label: "10,000 messages",
201
+ included: !0
202
+ }, {
203
+ label: "Audit log",
204
+ included: !1
205
+ }],
206
+ highlighted: !1,
207
+ primaryAction: {
208
+ label: "Choose Growth",
209
+ href: "/signup",
210
+ variant: "solid"
211
+ }
212
+ },
213
+ render: ({ badge: e, name: t, price: n, period: i, description: o, features: s, highlighted: c, primaryAction: l }) => /* @__PURE__ */ v("div", {
214
+ className: "p-6",
215
+ children: /* @__PURE__ */ v(r, {
216
+ badge: e || void 0,
217
+ name: t ?? "",
218
+ price: n ?? "",
219
+ period: i || void 0,
220
+ description: o || void 0,
221
+ highlighted: c ?? !1,
222
+ features: (s ?? []).map((e, t) => ({
223
+ id: t,
224
+ label: e.label ?? "",
225
+ included: e.included !== !1
226
+ })),
227
+ primaryAction: a(l)
228
+ })
229
+ })
230
+ };
231
+ //#endregion
232
+ export { b as ctaBlock, x as featureGridBlock, y as heroBlock, C as pricingCardBlock, S as testimonialsBlock };
@@ -0,0 +1,22 @@
1
+ import { ComponentConfig } from '@puckeditor/core';
2
+ import { BuilderAction } from '../adapters';
3
+ /**
4
+ * Configuration of the empty state block.
5
+ */
6
+ export type EmptyStateBlockProps = {
7
+ /** What the region is. */
8
+ title?: string;
9
+ /** What the reader can do about it. */
10
+ description?: string;
11
+ /** Tone of the state. */
12
+ type?: "info" | "success" | "warning" | "error";
13
+ /** Whether the state is drawn as a panel. */
14
+ panel?: boolean;
15
+ /** The emphasised action. */
16
+ primaryAction?: BuilderAction;
17
+ };
18
+ /**
19
+ * A region with nothing in it.
20
+ */
21
+ export declare const emptyStateBlock: ComponentConfig<EmptyStateBlockProps>;
22
+ //# sourceMappingURL=utility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../../src/puck/blocks/utility.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,EAAE,KAAK,aAAa,EAAY,MAAM,aAAa,CAAC;AAQ3D;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAEhD,6CAA6C;IAC7C,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,6BAA6B;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,oBAAoB,CAiCjE,CAAC"}
@@ -0,0 +1,49 @@
1
+ "use client";
2
+ import { EmptyState as e } from "../../components/empty-state/EmptyState.js";
3
+ import { toAction as t } from "../adapters.js";
4
+ import { ACTION_FIELDS as n, selectField as r, textField as i, textareaField as a } from "../fields.js";
5
+ import { jsx as o } from "react/jsx-runtime";
6
+ //#region src/puck/blocks/utility.tsx
7
+ var s = {
8
+ label: "Empty state",
9
+ fields: {
10
+ title: i("Heading", "Nothing here yet"),
11
+ description: a("Description"),
12
+ type: r("Tone", [
13
+ "info",
14
+ "success",
15
+ "warning",
16
+ "error"
17
+ ]),
18
+ panel: {
19
+ type: "radio",
20
+ label: "Panel",
21
+ options: [{
22
+ label: "Yes",
23
+ value: !0
24
+ }, {
25
+ label: "No",
26
+ value: !1
27
+ }]
28
+ },
29
+ primaryAction: n
30
+ },
31
+ defaultProps: {
32
+ title: "Nothing here yet",
33
+ description: "Create the first item to see it here.",
34
+ type: "info",
35
+ panel: !0
36
+ },
37
+ render: ({ title: n, description: r, type: i, panel: a, primaryAction: s }) => /* @__PURE__ */ o("div", {
38
+ className: "p-6",
39
+ children: /* @__PURE__ */ o(e, {
40
+ title: n ?? "",
41
+ description: r || void 0,
42
+ type: i ?? "info",
43
+ panel: a ?? !1,
44
+ primaryAction: t(s)
45
+ })
46
+ })
47
+ };
48
+ //#endregion
49
+ export { s as emptyStateBlock };
@@ -0,0 +1,63 @@
1
+ import { Config } from '@puckeditor/core';
2
+ import { ReactNode } from 'react';
3
+ import { HeadingBlockProps, TextBlockProps } from './blocks/content';
4
+ import { ColumnsBlockProps, SectionBlockProps } from './blocks/layout';
5
+ import { FooterBlockProps, NavbarBlockProps } from './blocks/navigation';
6
+ import { CtaBlockProps, FeatureGridBlockProps, HeroBlockProps, PricingCardBlockProps, TestimonialsBlockProps } from './blocks/sections';
7
+ import { EmptyStateBlockProps } from './blocks/utility';
8
+ /**
9
+ * Every block the AsheeUI configuration offers, with its props.
10
+ */
11
+ export type AsheePuckComponents = {
12
+ /** A band with vertical rhythm and a background. */
13
+ Section: SectionBlockProps;
14
+ /** A two-column arrangement that stacks on a narrow screen. */
15
+ Columns: ColumnsBlockProps;
16
+ /** A section heading. */
17
+ Heading: HeadingBlockProps;
18
+ /** A paragraph of body text. */
19
+ Text: TextBlockProps;
20
+ /** The navigation bar of a page. */
21
+ Navbar: NavbarBlockProps;
22
+ /** The footer of a page. */
23
+ Footer: FooterBlockProps;
24
+ /** The leading statement of a page. */
25
+ Hero: HeroBlockProps;
26
+ /** The closing call to action of a page. */
27
+ CTA: CtaBlockProps;
28
+ /** A band of features in a responsive grid. */
29
+ FeatureGrid: FeatureGridBlockProps;
30
+ /** A band of attributed customer quotes. */
31
+ Testimonials: TestimonialsBlockProps;
32
+ /** One plan in a pricing table. */
33
+ PricingCard: PricingCardBlockProps;
34
+ /** A region with nothing in it. */
35
+ EmptyState: EmptyStateBlockProps;
36
+ };
37
+ /**
38
+ * The categories a block can be filed under.
39
+ * A block that appears in none of them is listed by the builder's own fallback
40
+ * category, which is why the list stays explicit rather than complete by
41
+ * accident.
42
+ */
43
+ export type AsheePuckCategory = "Layout" | "Navigation" | "Hero" | "Content" | "Features" | "CTA" | "Pricing" | "Testimonials" | "Utility";
44
+ /**
45
+ * Props of the published page's root, which is the framework's page shell.
46
+ */
47
+ export type AsheePuckRootProps = {
48
+ /** The page content the builder composed. */
49
+ children?: ReactNode;
50
+ };
51
+ /**
52
+ * The type of the AsheeUI Puck configuration.
53
+ */
54
+ export type AsheePuckConfig = Config<{
55
+ components: AsheePuckComponents;
56
+ root: AsheePuckRootProps;
57
+ categories: AsheePuckCategory[];
58
+ }>;
59
+ /**
60
+ * The AsheeUI blocks, filed under the categories the builder shows.
61
+ */
62
+ export declare const asheePuckConfig: AsheePuckConfig;
63
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/puck/config.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAGnD,OAAO,EACL,KAAK,iBAAiB,EAE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C/B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;IACnC,UAAU,EAAE,mBAAmB,CAAC;IAChC,IAAI,EAAE,kBAAkB,CAAC;IACzB,UAAU,EAAE,iBAAiB,EAAE,CAAC;CACjC,CAAC,CAAC;AAyBH;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,eAkC7B,CAAC"}
@@ -0,0 +1,79 @@
1
+ "use client";
2
+ import { AsheeConfigContext as e } from "../libs/context.js";
3
+ import { AsheeUIProvider as t } from "../AsheeUIProvider.js";
4
+ import { headingBlock as n, textBlock as r } from "./blocks/content.js";
5
+ import { columnsBlock as i, sectionBlock as a } from "./blocks/layout.js";
6
+ import { footerBlock as o, navbarBlock as s } from "./blocks/navigation.js";
7
+ import { ctaBlock as c, featureGridBlock as l, heroBlock as u, pricingCardBlock as d, testimonialsBlock as f } from "./blocks/sections.js";
8
+ import { emptyStateBlock as p } from "./blocks/utility.js";
9
+ import { useContext as m } from "react";
10
+ import { jsx as h } from "react/jsx-runtime";
11
+ //#region src/puck/config.tsx
12
+ function g({ children: n }) {
13
+ let r = m(e), i = /* @__PURE__ */ h("div", {
14
+ className: "flex min-h-dvh w-full flex-col bg-background text-foreground",
15
+ children: n
16
+ });
17
+ return r ? i : /* @__PURE__ */ h(t, { children: i });
18
+ }
19
+ var _ = {
20
+ components: {
21
+ Section: a,
22
+ Columns: i,
23
+ Heading: n,
24
+ Text: r,
25
+ Navbar: s,
26
+ Footer: o,
27
+ Hero: u,
28
+ CTA: c,
29
+ FeatureGrid: l,
30
+ Testimonials: f,
31
+ PricingCard: d,
32
+ EmptyState: p
33
+ },
34
+ categories: {
35
+ Layout: {
36
+ title: "Layout",
37
+ components: ["Section", "Columns"]
38
+ },
39
+ Navigation: {
40
+ title: "Navigation",
41
+ components: ["Navbar", "Footer"]
42
+ },
43
+ Hero: {
44
+ title: "Hero",
45
+ components: ["Hero"]
46
+ },
47
+ Content: {
48
+ title: "Content",
49
+ components: ["Heading", "Text"]
50
+ },
51
+ Features: {
52
+ title: "Features",
53
+ components: ["FeatureGrid"]
54
+ },
55
+ CTA: {
56
+ title: "CTA",
57
+ components: ["CTA"]
58
+ },
59
+ Pricing: {
60
+ title: "Pricing",
61
+ components: ["PricingCard"]
62
+ },
63
+ Testimonials: {
64
+ title: "Testimonials",
65
+ components: ["Testimonials"]
66
+ },
67
+ Utility: {
68
+ title: "Utility",
69
+ components: ["EmptyState"]
70
+ }
71
+ },
72
+ root: {
73
+ fields: {},
74
+ defaultProps: {},
75
+ render: ({ children: e }) => /* @__PURE__ */ h(g, { children: e })
76
+ }
77
+ };
78
+ //#endregion
79
+ export { _ as asheePuckConfig };
@@ -0,0 +1,94 @@
1
+ import { ArrayField, ObjectField, SelectField, TextareaField, TextField } from '@puckeditor/core';
2
+ /**
3
+ * Build a select field from the values a prop accepts.
4
+ *
5
+ * The options are derived from the same tuple the component's type uses, so a
6
+ * value the builder offers and a value the component accepts cannot drift.
7
+ *
8
+ * @param label - Label shown in the builder.
9
+ * @param options - The accepted values.
10
+ * @returns The field definition.
11
+ */
12
+ export declare function selectField<T extends string>(label: string, options: readonly T[]): SelectField;
13
+ /**
14
+ * Build a single-line text field.
15
+ *
16
+ * @param label - Label shown in the builder.
17
+ * @param placeholder - Placeholder shown in the empty field.
18
+ * @returns The field definition.
19
+ */
20
+ export declare function textField(label: string, placeholder?: string): TextField;
21
+ /**
22
+ * Build a multi-line text field.
23
+ *
24
+ * @param label - Label shown in the builder.
25
+ * @param placeholder - Placeholder shown in the empty field.
26
+ * @returns The field definition.
27
+ */
28
+ export declare function textareaField(label: string, placeholder?: string): TextareaField;
29
+ /**
30
+ * Alignment options shared by the patterns that can centre their content.
31
+ */
32
+ export declare const ALIGNMENT_OPTIONS: readonly ["start", "center"];
33
+ /**
34
+ * Vertical rhythm options shared by the section-level blocks.
35
+ */
36
+ export declare const SPACING_OPTIONS: readonly ["none", "xs", "sm", "md", "lg", "xl", "2xl"];
37
+ /**
38
+ * Background treatments a section-level block can offer.
39
+ */
40
+ export declare const BACKGROUND_OPTIONS: readonly ["none", "muted", "tinted"];
41
+ /**
42
+ * Maximum content widths a block can offer.
43
+ */
44
+ export declare const CONTAINER_SIZE_OPTIONS: readonly ["sm", "md", "lg", "xl", "full"];
45
+ /**
46
+ * Column counts a grid block can offer.
47
+ */
48
+ export declare const COLUMNS_OPTIONS: readonly ["1", "2", "3", "4"];
49
+ /**
50
+ * Button variants a configured action can offer.
51
+ */
52
+ export declare const ACTION_VARIANT_OPTIONS: readonly ["solid", "faded", "bordered", "ghost"];
53
+ /**
54
+ * Fields of a configured action.
55
+ *
56
+ * The shape matches the framework's `ActionConfig` for the fields a builder can
57
+ * own: wording, destination and emphasis. An icon, a custom component and a
58
+ * click handler stay out, because none of them can be serialized.
59
+ */
60
+ export declare const ACTION_FIELDS: ObjectField<{
61
+ label: string;
62
+ href: string;
63
+ variant: string;
64
+ }>;
65
+ /**
66
+ * A single feature inside a feature grid.
67
+ */
68
+ export declare const FEATURE_ITEM_FIELD: ArrayField<Array<{
69
+ title: string;
70
+ description: string;
71
+ }>>;
72
+ /**
73
+ * A plan's feature line.
74
+ */
75
+ export declare const PRICING_FEATURE_FIELD: ArrayField<Array<{
76
+ label: string;
77
+ included: boolean;
78
+ }>>;
79
+ /**
80
+ * One navigation link.
81
+ */
82
+ export declare const LINK_ITEM_FIELDS: {
83
+ label: TextField;
84
+ href: TextField;
85
+ };
86
+ /**
87
+ * A testimonial quote.
88
+ */
89
+ export declare const TESTIMONIAL_ITEM_FIELD: ArrayField<Array<{
90
+ quote: string;
91
+ name: string;
92
+ role: string;
93
+ }>>;
94
+ //# sourceMappingURL=fields.d.ts.map