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
@@ -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,EAEtB,KAAK,cAAc,EAEpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,iBAAiB,EAEvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,gBAAgB,EAErB,KAAK,gBAAgB,EAEtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,qBAAqB,EAE1B,KAAK,cAAc,EAEnB,KAAK,qBAAqB,EAE1B,KAAK,sBAAsB,EAE5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,oBAAoB,EAAmB,MAAM,kBAAkB,CAAC;AAE9E;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,oDAAoD;IACpD,OAAO,EAAE,iBAAiB,CAAC;IAE3B,+DAA+D;IAC/D,OAAO,EAAE,iBAAiB,CAAC;IAE3B,yBAAyB;IACzB,OAAO,EAAE,iBAAiB,CAAC;IAE3B,gCAAgC;IAChC,IAAI,EAAE,cAAc,CAAC;IAErB,oCAAoC;IACpC,MAAM,EAAE,gBAAgB,CAAC;IAEzB,4BAA4B;IAC5B,MAAM,EAAE,gBAAgB,CAAC;IAEzB,uCAAuC;IACvC,IAAI,EAAE,cAAc,CAAC;IAErB,4CAA4C;IAC5C,GAAG,EAAE,aAAa,CAAC;IAEnB,+CAA+C;IAC/C,WAAW,EAAE,qBAAqB,CAAC;IAEnC,4CAA4C;IAC5C,YAAY,EAAE,sBAAsB,CAAC;IAErC,mCAAmC;IACnC,WAAW,EAAE,qBAAqB,CAAC;IAEnC,mCAAmC;IACnC,UAAU,EAAE,oBAAoB,CAAC;CAClC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GACzB,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,SAAS,GACT,UAAU,GACV,KAAK,GACL,SAAS,GACT,cAAc,GACd,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../src/puck/fields.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,UAAU,EAEV,WAAW,EACX,WAAW,EACX,aAAa,EACb,SAAS,EACV,MAAM,kBAAkB,CAAC;AAE1B;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAC1C,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,SAAS,CAAC,EAAE,GACpB,WAAW,CAMb;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAExE;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,MAAM,GACnB,aAAa,CAEf;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,8BAA+B,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,eAAe,wDAQlB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,kBAAkB,sCAAuC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,sBAAsB,2CAA4C,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,eAAe,+BAAgC,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,sBAAsB,kDAKzB,CAAC;AAEX;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAQA,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,UAAU,CACzC,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,CAU9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAC5C,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC,CAiB5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;CAGI,CAAC;AAElC;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAC7C,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAerD,CAAC"}
@@ -0,0 +1,116 @@
1
+ "use client";
2
+ //#region src/puck/fields.ts
3
+ function e(e, t) {
4
+ return {
5
+ type: "select",
6
+ label: e,
7
+ options: t.map((e) => ({
8
+ label: e,
9
+ value: e
10
+ }))
11
+ };
12
+ }
13
+ function t(e, t) {
14
+ return {
15
+ type: "text",
16
+ label: e,
17
+ placeholder: t
18
+ };
19
+ }
20
+ function n(e, t) {
21
+ return {
22
+ type: "textarea",
23
+ label: e,
24
+ placeholder: t
25
+ };
26
+ }
27
+ var r = ["start", "center"], i = [
28
+ "none",
29
+ "xs",
30
+ "sm",
31
+ "md",
32
+ "lg",
33
+ "xl",
34
+ "2xl"
35
+ ], a = [
36
+ "none",
37
+ "muted",
38
+ "tinted"
39
+ ], o = [
40
+ "sm",
41
+ "md",
42
+ "lg",
43
+ "xl",
44
+ "full"
45
+ ], s = [
46
+ "1",
47
+ "2",
48
+ "3",
49
+ "4"
50
+ ], c = [
51
+ "solid",
52
+ "faded",
53
+ "bordered",
54
+ "ghost"
55
+ ], l = {
56
+ type: "object",
57
+ label: "Action",
58
+ objectFields: {
59
+ label: t("Action label"),
60
+ href: t("Action link", "/pricing"),
61
+ variant: e("Action emphasis", c)
62
+ }
63
+ }, u = {
64
+ type: "array",
65
+ label: "Features",
66
+ arrayFields: {
67
+ title: t("Feature title"),
68
+ description: n("Feature description")
69
+ },
70
+ defaultItemProps: {
71
+ title: "New feature",
72
+ description: ""
73
+ },
74
+ getItemSummary: (e) => e.title
75
+ }, d = {
76
+ type: "array",
77
+ label: "Feature lines",
78
+ arrayFields: {
79
+ label: t("Line"),
80
+ included: {
81
+ type: "radio",
82
+ label: "Included",
83
+ options: [{
84
+ label: "Included",
85
+ value: !0
86
+ }, {
87
+ label: "Not included",
88
+ value: !1
89
+ }]
90
+ }
91
+ },
92
+ defaultItemProps: {
93
+ label: "New line",
94
+ included: !0
95
+ },
96
+ getItemSummary: (e) => e.label
97
+ }, f = {
98
+ label: t("Link label"),
99
+ href: t("Link", "/pricing")
100
+ }, p = {
101
+ type: "array",
102
+ label: "Quotes",
103
+ arrayFields: {
104
+ quote: n("Quote"),
105
+ name: t("Name"),
106
+ role: t("Role")
107
+ },
108
+ defaultItemProps: {
109
+ quote: "They send twice as fast as they used to.",
110
+ name: "New customer",
111
+ role: ""
112
+ },
113
+ getItemSummary: (e) => e.name
114
+ };
115
+ //#endregion
116
+ export { l as ACTION_FIELDS, c as ACTION_VARIANT_OPTIONS, r as ALIGNMENT_OPTIONS, a as BACKGROUND_OPTIONS, s as COLUMNS_OPTIONS, o as CONTAINER_SIZE_OPTIONS, u as FEATURE_ITEM_FIELD, f as LINK_ITEM_FIELDS, d as PRICING_FEATURE_FIELD, i as SPACING_OPTIONS, p as TESTIMONIAL_ITEM_FIELD, e as selectField, t as textField, n as textareaField };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Puck integration for AsheeUI.
3
+ *
4
+ * The subpath holds the framework's block configuration: the fields a builder
5
+ * can edit, one block per component, the categories they are filed under and the
6
+ * page shell a published page renders into. Nothing here is imported by the
7
+ * component library itself, so a consumer that does not use Puck never loads it.
8
+ *
9
+ * ```tsx
10
+ * import { asheePuckConfig } from "asheeui/puck";
11
+ * ```
12
+ */
13
+ export * from './adapters';
14
+ export * from './blocks/content';
15
+ export * from './blocks/layout';
16
+ export * from './blocks/navigation';
17
+ export * from './blocks/sections';
18
+ export * from './blocks/utility';
19
+ export * from './config';
20
+ export * from './fields';
21
+ //# sourceMappingURL=index.d.ts.map