asheeui 1.0.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 (284) hide show
  1. package/README.md +61 -166
  2. package/dist/components/alert/Alert.d.ts.map +1 -1
  3. package/dist/components/alert/Alert.js +6 -6
  4. package/dist/components/auth-layout/AuthLayout.d.ts +79 -0
  5. package/dist/components/auth-layout/AuthLayout.d.ts.map +1 -0
  6. package/dist/components/auth-layout/AuthLayout.js +54 -0
  7. package/dist/components/auth-layout/auth-layout-config.d.ts +41 -0
  8. package/dist/components/auth-layout/auth-layout-config.d.ts.map +1 -0
  9. package/dist/components/auth-layout/auth-layout-config.js +18 -0
  10. package/dist/components/auth-layout/auth-layout-styles.d.ts +25 -0
  11. package/dist/components/auth-layout/auth-layout-styles.d.ts.map +1 -0
  12. package/dist/components/auth-layout/auth-layout-styles.js +11 -0
  13. package/dist/components/auth-layout/index.d.ts +3 -0
  14. package/dist/components/auth-layout/index.d.ts.map +1 -0
  15. package/dist/components/auth-layout/index.js +3 -0
  16. package/dist/components/autocomplete/Autocomplete.d.ts.map +1 -1
  17. package/dist/components/avatar/Avatar.d.ts.map +1 -1
  18. package/dist/components/avatar/Avatar.js +7 -7
  19. package/dist/components/badge/Badge.d.ts.map +1 -1
  20. package/dist/components/badge/Badge.js +3 -3
  21. package/dist/components/breadcrumb/Breadcrumb.d.ts.map +1 -1
  22. package/dist/components/breadcrumb/Breadcrumb.js +6 -6
  23. package/dist/components/calendar/Calendar.d.ts.map +1 -1
  24. package/dist/components/calendar/Calendar.js +4 -4
  25. package/dist/components/calendar/DateGrid.d.ts.map +1 -1
  26. package/dist/components/calendar/DateGrid.js +87 -87
  27. package/dist/components/clipboard/Clipboard.d.ts +75 -0
  28. package/dist/components/clipboard/Clipboard.d.ts.map +1 -0
  29. package/dist/components/clipboard/Clipboard.js +53 -0
  30. package/dist/components/clipboard/CopyButton.d.ts +64 -0
  31. package/dist/components/clipboard/CopyButton.d.ts.map +1 -0
  32. package/dist/components/clipboard/CopyButton.js +44 -0
  33. package/dist/components/clipboard/clipboard-config.d.ts +42 -0
  34. package/dist/components/clipboard/clipboard-config.d.ts.map +1 -0
  35. package/dist/components/clipboard/clipboard-config.js +23 -0
  36. package/dist/components/clipboard/clipboard-styles.d.ts +11 -0
  37. package/dist/components/clipboard/clipboard-styles.d.ts.map +1 -0
  38. package/dist/components/clipboard/clipboard-styles.js +5 -0
  39. package/dist/components/clipboard/index.d.ts +4 -0
  40. package/dist/components/clipboard/index.d.ts.map +1 -0
  41. package/dist/components/clipboard/index.js +4 -0
  42. package/dist/components/container/Container.d.ts +51 -0
  43. package/dist/components/container/Container.d.ts.map +1 -0
  44. package/dist/components/container/Container.js +21 -0
  45. package/dist/components/container/container-config.d.ts +61 -0
  46. package/dist/components/container/container-config.d.ts.map +1 -0
  47. package/dist/components/container/container-config.js +16 -0
  48. package/dist/components/container/container-styles.d.ts +18 -0
  49. package/dist/components/container/container-styles.d.ts.map +1 -0
  50. package/dist/components/container/container-styles.js +12 -0
  51. package/dist/components/container/index.d.ts +3 -0
  52. package/dist/components/container/index.d.ts.map +1 -0
  53. package/dist/components/container/index.js +3 -0
  54. package/dist/components/cta/CTA.d.ts +81 -0
  55. package/dist/components/cta/CTA.d.ts.map +1 -0
  56. package/dist/components/cta/CTA.js +60 -0
  57. package/dist/components/cta/cta-config.d.ts +69 -0
  58. package/dist/components/cta/cta-config.d.ts.map +1 -0
  59. package/dist/components/cta/cta-config.js +22 -0
  60. package/dist/components/cta/cta-styles.d.ts +8 -0
  61. package/dist/components/cta/cta-styles.d.ts.map +1 -0
  62. package/dist/components/cta/cta-styles.js +9 -0
  63. package/dist/components/cta/index.d.ts +3 -0
  64. package/dist/components/cta/index.d.ts.map +1 -0
  65. package/dist/components/cta/index.js +3 -0
  66. package/dist/components/dropmenu/Dropmenu.d.ts.map +1 -1
  67. package/dist/components/empty-state/EmptyState.d.ts +77 -0
  68. package/dist/components/empty-state/EmptyState.d.ts.map +1 -0
  69. package/dist/components/empty-state/EmptyState.js +46 -0
  70. package/dist/components/empty-state/empty-state-config.d.ts +44 -0
  71. package/dist/components/empty-state/empty-state-config.d.ts.map +1 -0
  72. package/dist/components/empty-state/empty-state-config.js +16 -0
  73. package/dist/components/empty-state/empty-state-styles.d.ts +13 -0
  74. package/dist/components/empty-state/empty-state-styles.d.ts.map +1 -0
  75. package/dist/components/empty-state/empty-state-styles.js +18 -0
  76. package/dist/components/empty-state/index.d.ts +3 -0
  77. package/dist/components/empty-state/index.d.ts.map +1 -0
  78. package/dist/components/empty-state/index.js +3 -0
  79. package/dist/components/feature-grid/FeatureGrid.d.ts +107 -0
  80. package/dist/components/feature-grid/FeatureGrid.d.ts.map +1 -0
  81. package/dist/components/feature-grid/FeatureGrid.js +94 -0
  82. package/dist/components/feature-grid/feature-grid-config.d.ts +80 -0
  83. package/dist/components/feature-grid/feature-grid-config.d.ts.map +1 -0
  84. package/dist/components/feature-grid/feature-grid-config.js +28 -0
  85. package/dist/components/feature-grid/feature-grid-styles.d.ts +11 -0
  86. package/dist/components/feature-grid/feature-grid-styles.d.ts.map +1 -0
  87. package/dist/components/feature-grid/feature-grid-styles.js +5 -0
  88. package/dist/components/feature-grid/index.d.ts +3 -0
  89. package/dist/components/feature-grid/index.d.ts.map +1 -0
  90. package/dist/components/feature-grid/index.js +3 -0
  91. package/dist/components/footer/Footer.d.ts +73 -0
  92. package/dist/components/footer/Footer.d.ts.map +1 -0
  93. package/dist/components/footer/Footer.js +112 -0
  94. package/dist/components/footer/footer-config.d.ts +40 -0
  95. package/dist/components/footer/footer-config.d.ts.map +1 -0
  96. package/dist/components/footer/footer-config.js +18 -0
  97. package/dist/components/footer/footer-styles.d.ts +22 -0
  98. package/dist/components/footer/footer-styles.d.ts.map +1 -0
  99. package/dist/components/footer/footer-styles.js +9 -0
  100. package/dist/components/footer/index.d.ts +3 -0
  101. package/dist/components/footer/index.d.ts.map +1 -0
  102. package/dist/components/footer/index.js +3 -0
  103. package/dist/components/form/Form.d.ts.map +1 -1
  104. package/dist/components/grid/Grid.d.ts +71 -0
  105. package/dist/components/grid/Grid.d.ts.map +1 -0
  106. package/dist/components/grid/Grid.js +23 -0
  107. package/dist/components/grid/grid-config.d.ts +63 -0
  108. package/dist/components/grid/grid-config.d.ts.map +1 -0
  109. package/dist/components/grid/grid-config.js +16 -0
  110. package/dist/components/grid/grid-styles.d.ts +12 -0
  111. package/dist/components/grid/grid-styles.d.ts.map +1 -0
  112. package/dist/components/grid/grid-styles.js +31 -0
  113. package/dist/components/grid/index.d.ts +3 -0
  114. package/dist/components/grid/index.d.ts.map +1 -0
  115. package/dist/components/grid/index.js +3 -0
  116. package/dist/components/hero/Hero.d.ts +90 -0
  117. package/dist/components/hero/Hero.d.ts.map +1 -0
  118. package/dist/components/hero/Hero.js +63 -0
  119. package/dist/components/hero/hero-config.d.ts +71 -0
  120. package/dist/components/hero/hero-config.d.ts.map +1 -0
  121. package/dist/components/hero/hero-config.js +22 -0
  122. package/dist/components/hero/hero-styles.d.ts +19 -0
  123. package/dist/components/hero/hero-styles.d.ts.map +1 -0
  124. package/dist/components/hero/hero-styles.js +5 -0
  125. package/dist/components/hero/index.d.ts +3 -0
  126. package/dist/components/hero/index.d.ts.map +1 -0
  127. package/dist/components/hero/index.js +3 -0
  128. package/dist/components/multi-select/MultiSelect.d.ts.map +1 -1
  129. package/dist/components/navbar/Navbar.d.ts +87 -0
  130. package/dist/components/navbar/Navbar.d.ts.map +1 -0
  131. package/dist/components/navbar/Navbar.js +117 -0
  132. package/dist/components/navbar/index.d.ts +3 -0
  133. package/dist/components/navbar/index.d.ts.map +1 -0
  134. package/dist/components/navbar/index.js +3 -0
  135. package/dist/components/navbar/navbar-config.d.ts +52 -0
  136. package/dist/components/navbar/navbar-config.d.ts.map +1 -0
  137. package/dist/components/navbar/navbar-config.js +20 -0
  138. package/dist/components/navbar/navbar-styles.d.ts +28 -0
  139. package/dist/components/navbar/navbar-styles.d.ts.map +1 -0
  140. package/dist/components/navbar/navbar-styles.js +9 -0
  141. package/dist/components/page/Page.d.ts +166 -0
  142. package/dist/components/page/Page.d.ts.map +1 -0
  143. package/dist/components/page/Page.js +90 -0
  144. package/dist/components/page/index.d.ts +3 -0
  145. package/dist/components/page/index.d.ts.map +1 -0
  146. package/dist/components/page/index.js +3 -0
  147. package/dist/components/page/page-config.d.ts +57 -0
  148. package/dist/components/page/page-config.d.ts.map +1 -0
  149. package/dist/components/page/page-config.js +20 -0
  150. package/dist/components/page/page-styles.d.ts +25 -0
  151. package/dist/components/page/page-styles.d.ts.map +1 -0
  152. package/dist/components/page/page-styles.js +5 -0
  153. package/dist/components/pagination/Pagination.d.ts.map +1 -1
  154. package/dist/components/pagination/Pagination.js +8 -8
  155. package/dist/components/pin-input/PinInput.d.ts +109 -0
  156. package/dist/components/pin-input/PinInput.d.ts.map +1 -0
  157. package/dist/components/pin-input/PinInput.js +124 -0
  158. package/dist/components/pin-input/index.d.ts +3 -0
  159. package/dist/components/pin-input/index.d.ts.map +1 -0
  160. package/dist/components/pin-input/index.js +3 -0
  161. package/dist/components/pin-input/pin-input-config.d.ts +82 -0
  162. package/dist/components/pin-input/pin-input-config.d.ts.map +1 -0
  163. package/dist/components/pin-input/pin-input-config.js +23 -0
  164. package/dist/components/pin-input/pin-input-styles.d.ts +16 -0
  165. package/dist/components/pin-input/pin-input-styles.d.ts.map +1 -0
  166. package/dist/components/pin-input/pin-input-styles.js +9 -0
  167. package/dist/components/pricing-card/PricingCard.d.ts +87 -0
  168. package/dist/components/pricing-card/PricingCard.d.ts.map +1 -0
  169. package/dist/components/pricing-card/PricingCard.js +79 -0
  170. package/dist/components/pricing-card/index.d.ts +3 -0
  171. package/dist/components/pricing-card/index.d.ts.map +1 -0
  172. package/dist/components/pricing-card/index.js +3 -0
  173. package/dist/components/pricing-card/pricing-card-config.d.ts +35 -0
  174. package/dist/components/pricing-card/pricing-card-config.d.ts.map +1 -0
  175. package/dist/components/pricing-card/pricing-card-config.js +16 -0
  176. package/dist/components/pricing-card/pricing-card-styles.d.ts +21 -0
  177. package/dist/components/pricing-card/pricing-card-styles.d.ts.map +1 -0
  178. package/dist/components/pricing-card/pricing-card-styles.js +5 -0
  179. package/dist/components/radio/RadioGroup.d.ts.map +1 -1
  180. package/dist/components/section/Section.d.ts +56 -0
  181. package/dist/components/section/Section.d.ts.map +1 -0
  182. package/dist/components/section/Section.js +27 -0
  183. package/dist/components/section/index.d.ts +3 -0
  184. package/dist/components/section/index.d.ts.map +1 -0
  185. package/dist/components/section/index.js +3 -0
  186. package/dist/components/section/section-config.d.ts +64 -0
  187. package/dist/components/section/section-config.d.ts.map +1 -0
  188. package/dist/components/section/section-config.js +20 -0
  189. package/dist/components/section/section-styles.d.ts +8 -0
  190. package/dist/components/section/section-styles.d.ts.map +1 -0
  191. package/dist/components/section/section-styles.js +9 -0
  192. package/dist/components/section-kit/ActionGroup.d.ts +47 -0
  193. package/dist/components/section-kit/ActionGroup.d.ts.map +1 -0
  194. package/dist/components/section-kit/ActionGroup.js +35 -0
  195. package/dist/components/section-kit/SectionHeading.d.ts +65 -0
  196. package/dist/components/section-kit/SectionHeading.d.ts.map +1 -0
  197. package/dist/components/section-kit/SectionHeading.js +34 -0
  198. package/dist/components/section-kit/index.d.ts +12 -0
  199. package/dist/components/section-kit/index.d.ts.map +1 -0
  200. package/dist/components/section-kit/index.js +2 -0
  201. package/dist/components/sidebar-layout/SidebarLayout.d.ts +67 -0
  202. package/dist/components/sidebar-layout/SidebarLayout.d.ts.map +1 -0
  203. package/dist/components/sidebar-layout/SidebarLayout.js +40 -0
  204. package/dist/components/sidebar-layout/index.d.ts +3 -0
  205. package/dist/components/sidebar-layout/index.d.ts.map +1 -0
  206. package/dist/components/sidebar-layout/index.js +3 -0
  207. package/dist/components/sidebar-layout/sidebar-layout-config.d.ts +49 -0
  208. package/dist/components/sidebar-layout/sidebar-layout-config.d.ts.map +1 -0
  209. package/dist/components/sidebar-layout/sidebar-layout-config.js +16 -0
  210. package/dist/components/sidebar-layout/sidebar-layout-styles.d.ts +21 -0
  211. package/dist/components/sidebar-layout/sidebar-layout-styles.d.ts.map +1 -0
  212. package/dist/components/sidebar-layout/sidebar-layout-styles.js +9 -0
  213. package/dist/components/skeleton/Skeleton.d.ts.map +1 -1
  214. package/dist/components/stack/Stack.d.ts +107 -0
  215. package/dist/components/stack/Stack.d.ts.map +1 -0
  216. package/dist/components/stack/Stack.js +36 -0
  217. package/dist/components/stack/index.d.ts +3 -0
  218. package/dist/components/stack/index.d.ts.map +1 -0
  219. package/dist/components/stack/index.js +3 -0
  220. package/dist/components/stack/stack-config.d.ts +68 -0
  221. package/dist/components/stack/stack-config.d.ts.map +1 -0
  222. package/dist/components/stack/stack-config.js +20 -0
  223. package/dist/components/stack/stack-styles.d.ts +10 -0
  224. package/dist/components/stack/stack-styles.d.ts.map +1 -0
  225. package/dist/components/stack/stack-styles.js +21 -0
  226. package/dist/components/testimonials/Testimonials.d.ts +78 -0
  227. package/dist/components/testimonials/Testimonials.d.ts.map +1 -0
  228. package/dist/components/testimonials/Testimonials.js +96 -0
  229. package/dist/components/testimonials/index.d.ts +3 -0
  230. package/dist/components/testimonials/index.d.ts.map +1 -0
  231. package/dist/components/testimonials/index.js +3 -0
  232. package/dist/components/testimonials/testimonials-config.d.ts +44 -0
  233. package/dist/components/testimonials/testimonials-config.d.ts.map +1 -0
  234. package/dist/components/testimonials/testimonials-config.js +28 -0
  235. package/dist/components/testimonials/testimonials-styles.d.ts +11 -0
  236. package/dist/components/testimonials/testimonials-styles.d.ts.map +1 -0
  237. package/dist/components/testimonials/testimonials-styles.js +5 -0
  238. package/dist/components/typography/typography-styles.d.ts.map +1 -1
  239. package/dist/config/validate-config.d.ts.map +1 -1
  240. package/dist/icons/CopyIcon.d.ts +3 -0
  241. package/dist/icons/CopyIcon.d.ts.map +1 -0
  242. package/dist/icons/CopyIcon.js +24 -0
  243. package/dist/index.d.ts +19 -2
  244. package/dist/index.d.ts.map +1 -1
  245. package/dist/index.js +107 -72
  246. package/dist/puck/adapters.d.ts +41 -0
  247. package/dist/puck/adapters.d.ts.map +1 -0
  248. package/dist/puck/adapters.js +30 -0
  249. package/dist/puck/blocks/content.d.ts +32 -0
  250. package/dist/puck/blocks/content.d.ts.map +1 -0
  251. package/dist/puck/blocks/content.js +54 -0
  252. package/dist/puck/blocks/layout.d.ts +44 -0
  253. package/dist/puck/blocks/layout.d.ts.map +1 -0
  254. package/dist/puck/blocks/layout.js +69 -0
  255. package/dist/puck/blocks/navigation.d.ts +66 -0
  256. package/dist/puck/blocks/navigation.d.ts.map +1 -0
  257. package/dist/puck/blocks/navigation.js +122 -0
  258. package/dist/puck/blocks/sections.d.ts +134 -0
  259. package/dist/puck/blocks/sections.d.ts.map +1 -0
  260. package/dist/puck/blocks/sections.js +232 -0
  261. package/dist/puck/blocks/utility.d.ts +22 -0
  262. package/dist/puck/blocks/utility.d.ts.map +1 -0
  263. package/dist/puck/blocks/utility.js +49 -0
  264. package/dist/puck/config.d.ts +63 -0
  265. package/dist/puck/config.d.ts.map +1 -0
  266. package/dist/puck/config.js +79 -0
  267. package/dist/puck/fields.d.ts +94 -0
  268. package/dist/puck/fields.d.ts.map +1 -0
  269. package/dist/puck/fields.js +116 -0
  270. package/dist/puck/index.d.ts +21 -0
  271. package/dist/puck/index.d.ts.map +1 -0
  272. package/dist/puck/index.js +10 -0
  273. package/dist/shared/action.d.ts +52 -0
  274. package/dist/shared/action.d.ts.map +1 -0
  275. package/dist/shared/index.d.ts +2 -0
  276. package/dist/shared/index.d.ts.map +1 -1
  277. package/dist/shared/spacing.d.ts +38 -0
  278. package/dist/shared/spacing.d.ts.map +1 -0
  279. package/dist/shared/spacing.js +29 -0
  280. package/dist/shared/typography.d.ts.map +1 -1
  281. package/dist/utils/resolve-token.d.ts +32 -7
  282. package/dist/utils/resolve-token.d.ts.map +1 -1
  283. package/dist/utils/resolve-token.js +9 -1
  284. package/package.json +14 -2
@@ -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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/puck/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import { toAction as e, toColumns as t } from "./adapters.js";
3
+ import { ACTION_FIELDS as n, ACTION_VARIANT_OPTIONS as r, ALIGNMENT_OPTIONS as i, BACKGROUND_OPTIONS as a, COLUMNS_OPTIONS as o, CONTAINER_SIZE_OPTIONS as s, FEATURE_ITEM_FIELD as c, LINK_ITEM_FIELDS as l, PRICING_FEATURE_FIELD as u, SPACING_OPTIONS as d, TESTIMONIAL_ITEM_FIELD as f, selectField as p, textField as m, textareaField as h } from "./fields.js";
4
+ import { headingBlock as g, textBlock as _ } from "./blocks/content.js";
5
+ import { COLUMN_RATIO_OPTIONS as v, columnsBlock as y, sectionBlock as b } from "./blocks/layout.js";
6
+ import { footerBlock as x, navbarBlock as S } from "./blocks/navigation.js";
7
+ import { ctaBlock as C, featureGridBlock as w, heroBlock as T, pricingCardBlock as E, testimonialsBlock as D } from "./blocks/sections.js";
8
+ import { emptyStateBlock as O } from "./blocks/utility.js";
9
+ import { asheePuckConfig as k } from "./config.js";
10
+ export { n as ACTION_FIELDS, r as ACTION_VARIANT_OPTIONS, i as ALIGNMENT_OPTIONS, a as BACKGROUND_OPTIONS, o as COLUMNS_OPTIONS, v as COLUMN_RATIO_OPTIONS, s as CONTAINER_SIZE_OPTIONS, c as FEATURE_ITEM_FIELD, l as LINK_ITEM_FIELDS, u as PRICING_FEATURE_FIELD, d as SPACING_OPTIONS, f as TESTIMONIAL_ITEM_FIELD, k as asheePuckConfig, y as columnsBlock, C as ctaBlock, O as emptyStateBlock, w as featureGridBlock, x as footerBlock, g as headingBlock, T as heroBlock, S as navbarBlock, E as pricingCardBlock, b as sectionBlock, p as selectField, D as testimonialsBlock, _ as textBlock, m as textField, h as textareaField, e as toAction, t as toColumns };
@@ -0,0 +1,52 @@
1
+ import { ElementType, ReactNode } from 'react';
2
+ import { Radius, Size } from './radius';
3
+ import { Color, Variant } from './variant';
4
+ /**
5
+ * A call to action described as configuration.
6
+ *
7
+ * Every field maps to a prop of {@link Button}, so a configured action renders
8
+ * exactly like an action the consumer wrote by hand. `label` is the only
9
+ * required field: an action without a name cannot be read or clicked.
10
+ */
11
+ export interface ActionConfig {
12
+ /**
13
+ * Visible name of the action, and the accessible name of its control.
14
+ */
15
+ label: ReactNode;
16
+ /**
17
+ * Destination of the action.
18
+ * With one, the action renders as a link; without one, as a button.
19
+ */
20
+ href?: string;
21
+ /**
22
+ * Visual style of the action.
23
+ * Defaults to the emphasis the pattern gives that position: the primary
24
+ * action is solid and the secondary action is bordered.
25
+ */
26
+ variant?: Variant;
27
+ /**
28
+ * Accent colour of the action.
29
+ */
30
+ color?: Color;
31
+ /**
32
+ * Density of the action.
33
+ */
34
+ size?: Size;
35
+ /**
36
+ * Corner rounding of the action.
37
+ */
38
+ radius?: Radius;
39
+ /**
40
+ * Content before the label, typically an icon.
41
+ */
42
+ icon?: ReactNode;
43
+ /**
44
+ * Component that replaces the anchor, such as a framework router link.
45
+ */
46
+ component?: ElementType;
47
+ /**
48
+ * Props for that component.
49
+ */
50
+ componentProps?: Record<string, unknown>;
51
+ }
52
+ //# sourceMappingURL=action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../src/shared/action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC1C"}
@@ -1,4 +1,6 @@
1
+ export * from './action';
1
2
  export * from './radius';
3
+ export * from './spacing';
2
4
  export * from './typography';
3
5
  export * from './variant';
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Spacing token definitions for AsheeUI.
3
+ *
4
+ * This file provides the shared spacing scale that the layout components use
5
+ * for gaps, vertical rhythm and section padding. Every entry is a complete,
6
+ * static Tailwind class string, so the scale never assembles a utility name at
7
+ * runtime (Hard Rule 5) and a layout component can resolve spacing through the
8
+ * standard configuration cascade.
9
+ */
10
+ /**
11
+ * The available spacing tokens.
12
+ * The scale is intentionally small: it exists so layout primitives agree on
13
+ * rhythm, not so it can express every value Tailwind supports.
14
+ */
15
+ export type Space = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
16
+ /**
17
+ * Flex and grid gap classes for each spacing token.
18
+ * Used by `Stack` and `Grid` for the space between their children.
19
+ */
20
+ export declare const SPACE_GAP_CLASS: Record<Space, string>;
21
+ /**
22
+ * Vertical rhythm classes for stacked block content.
23
+ * Applied to a container whose direct children are blocks rather than
24
+ * flex or grid items.
25
+ */
26
+ export declare const SPACE_BLOCK_CLASS: Record<Space, string>;
27
+ /**
28
+ * Vertical padding classes for a page section.
29
+ * Larger tokens add a wider step at the `md` breakpoint, so the same token
30
+ * reads as a section on a phone and as a band on a wide screen.
31
+ */
32
+ export declare const SPACE_PADDING_Y_CLASS: Record<Space, string>;
33
+ /**
34
+ * Horizontal padding classes for a page gutter.
35
+ * Used by `Container`, where the gutter widens with the viewport.
36
+ */
37
+ export declare const SPACE_PADDING_X_CLASS: Record<Space, string>;
38
+ //# sourceMappingURL=spacing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../src/shared/spacing.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;GAIG;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAQjD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAQnD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAQvD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAQvD,CAAC"}
@@ -0,0 +1,29 @@
1
+ "use client";
2
+ //#region src/shared/spacing.ts
3
+ var e = {
4
+ none: "gap-0",
5
+ xs: "gap-1",
6
+ sm: "gap-2",
7
+ md: "gap-4",
8
+ lg: "gap-6",
9
+ xl: "gap-8",
10
+ "2xl": "gap-12"
11
+ }, t = {
12
+ none: "py-0",
13
+ xs: "py-2",
14
+ sm: "py-6",
15
+ md: "py-8 md:py-12",
16
+ lg: "py-12 md:py-16",
17
+ xl: "py-16 md:py-24",
18
+ "2xl": "py-20 md:py-32"
19
+ }, n = {
20
+ none: "px-0",
21
+ xs: "px-1",
22
+ sm: "px-3",
23
+ md: "px-4 sm:px-6",
24
+ lg: "px-4 sm:px-6 lg:px-8",
25
+ xl: "px-6 sm:px-8 lg:px-12",
26
+ "2xl": "px-8 sm:px-12 lg:px-16"
27
+ };
28
+ //#endregion
29
+ export { e as SPACE_GAP_CLASS, n as SPACE_PADDING_X_CLASS, t as SPACE_PADDING_Y_CLASS };
@@ -1 +1 @@
1
- {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../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AAe,EAAE,MAAM,CAKlE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CACxC,cAAc,EACd,oBAAoB,CAoErB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAY1E,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAYhE,CAAC"}
@@ -1,10 +1,4 @@
1
- /**
2
- * Utility functions for resolving cascade values in AsheeUI.
3
- * This file provides helper functions that implement the configuration
4
- * precedence hierarchy: instance prop > component config > theme default > hard fallback.
5
- * These utilities are used throughout the component library to resolve
6
- * values like variant, color, size, and radius.
7
- */
1
+ import { DeepPartial } from './types';
8
2
  /**
9
3
  * Resolves a value using the standard cascade precedence order.
10
4
  * Follows the hierarchy: instance prop > component config > global default > hard fallback.
@@ -71,6 +65,37 @@ export declare function resolveAnimate<T>(instance: T | undefined, section: T |
71
65
  * ```
72
66
  */
73
67
  export declare function resolveRadiusKey<TKey>(instanceProp: TKey | undefined, sectionConfig: TKey | undefined, globalDefaultRadius: TKey | undefined, hardFallback?: TKey): TKey;
68
+ /**
69
+ * Resolve every option of a component's configuration in one step.
70
+ *
71
+ * A layout or pattern component usually exposes its whole configuration as a
72
+ * set of optional props that resolve through the same cascade. Calling
73
+ * {@link resolveCascade} once per key repeats the same precedence rule and the
74
+ * same fallback argument for every option, which is where drift creeps in. This
75
+ * helper applies the rule to every key of the hard fallback in one call, so a
76
+ * component states its options once and the precedence is guaranteed to be
77
+ * identical for all of them.
78
+ *
79
+ * The fallback object defines the shape: every key it declares is resolved and
80
+ * returned, and a key it omits has no fallback at all (which is how optional
81
+ * responsive keys stay undefined).
82
+ *
83
+ * @param instance - The props passed to the component instance.
84
+ * @param section - The component's configuration section, if any.
85
+ * @param fallback - The hard fallback for every option.
86
+ * @returns A complete set of resolved values.
87
+ *
88
+ * @example
89
+ * ```tsx
90
+ * const resolved = resolveConfigCascade<HeroConfig, Required<HeroConfig>>(
91
+ * { align, spacing, background },
92
+ * config.components?.hero,
93
+ * FALLBACK_HERO_CONFIG,
94
+ * );
95
+ * // resolved.align is the prop, then components.hero.align, then the fallback
96
+ * ```
97
+ */
98
+ export declare function resolveConfigCascade<C extends object, F extends Required<C>>(instance: Partial<C>, section: DeepPartial<C> | undefined, fallback: F): F;
74
99
  /**
75
100
  * Resolves a CSS class from a class map based on a key.
76
101
  * Returns the class string for the given key, falling back to the
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-token.d.ts","sourceRoot":"","sources":["../../src/utils/resolve-token.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAC9B,QAAQ,EAAE,CAAC,GAAG,SAAS,EACvB,OAAO,EAAE,CAAC,GAAG,SAAS,EACtB,aAAa,EAAE,CAAC,GAAG,SAAS,EAC5B,YAAY,EAAE,CAAC,GACd,CAAC,CAEH;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAC9B,QAAQ,EAAE,CAAC,GAAG,SAAS,EACvB,OAAO,EAAE,CAAC,GAAG,SAAS,EACtB,YAAY,EAAE,CAAC,GACd,CAAC,CAEH;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EACnC,YAAY,EAAE,IAAI,GAAG,SAAS,EAC9B,aAAa,EAAE,IAAI,GAAG,SAAS,EAC/B,mBAAmB,EAAE,IAAI,GAAG,SAAS,EACrC,YAAY,GAAE,IAAmB,GAChC,IAAI,CAEN;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,eAAe,CAAC,IAAI,SAAS,WAAW,EACtD,GAAG,EAAE,IAAI,EACT,QAAQ,EAAE,MAAM,CAAC,IAAI,EAAE,MA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Q,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,EAC9B,WAAW,EAAE,IAAI,GAChB,MAAM,CAER"}
@@ -10,7 +10,15 @@ function n(e, t, n, r = "md") {
10
10
  return e ?? t ?? n ?? r;
11
11
  }
12
12
  function r(e, t, n) {
13
+ let r = { ...n }, i = t;
14
+ for (let t of Object.keys(n)) {
15
+ let a = e[t], o = i?.[t];
16
+ r[t] = a ?? o ?? n[t];
17
+ }
18
+ return r;
19
+ }
20
+ function i(e, t, n) {
13
21
  return t[e] ?? t[n] ?? "";
14
22
  }
15
23
  //#endregion
16
- export { t as resolveAnimate, e as resolveCascade, r as resolveClassKey, n as resolveRadiusKey };
24
+ export { t as resolveAnimate, e as resolveCascade, i as resolveClassKey, r as resolveConfigCascade, n as resolveRadiusKey };