@upstart.gg/sdk 0.0.136 → 0.0.138

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 (461) hide show
  1. package/dist/shared/ai/schemas.d.ts.map +1 -1
  2. package/dist/shared/ai/schemas.js +26 -31
  3. package/dist/shared/ai/schemas.js.map +1 -1
  4. package/dist/shared/ai/types.d.ts +14 -62
  5. package/dist/shared/ai/types.d.ts.map +1 -1
  6. package/dist/shared/ajv.js +33 -31
  7. package/dist/shared/ajv.js.map +1 -1
  8. package/dist/shared/attributes.d.ts +91 -85
  9. package/dist/shared/attributes.d.ts.map +1 -1
  10. package/dist/shared/attributes.js +21 -23
  11. package/dist/shared/brick-manifest.d.ts +8 -5
  12. package/dist/shared/brick-manifest.d.ts.map +1 -1
  13. package/dist/shared/brick-manifest.js +3 -18
  14. package/dist/shared/bricks/manifests/accordion.manifest.d.ts +2 -2
  15. package/dist/shared/bricks/manifests/accordion.manifest.d.ts.map +1 -1
  16. package/dist/shared/bricks/manifests/accordion.manifest.js +14 -20
  17. package/dist/shared/bricks/manifests/all-manifests.js +45 -43
  18. package/dist/shared/bricks/manifests/all-props.d.ts +1511 -0
  19. package/dist/shared/bricks/manifests/all-props.d.ts.map +1 -0
  20. package/dist/shared/bricks/manifests/all-props.js +244 -0
  21. package/dist/shared/bricks/manifests/all-props.js.map +1 -0
  22. package/dist/shared/bricks/manifests/box.manifest.d.ts +2 -2
  23. package/dist/shared/bricks/manifests/box.manifest.d.ts.map +1 -1
  24. package/dist/shared/bricks/manifests/box.manifest.js +17 -20
  25. package/dist/shared/bricks/manifests/button.manifest.d.ts +3 -6
  26. package/dist/shared/bricks/manifests/button.manifest.d.ts.map +1 -1
  27. package/dist/shared/bricks/manifests/button.manifest.js +14 -20
  28. package/dist/shared/bricks/manifests/card.manifest.d.ts +5 -3
  29. package/dist/shared/bricks/manifests/card.manifest.d.ts.map +1 -1
  30. package/dist/shared/bricks/manifests/card.manifest.js +19 -20
  31. package/dist/shared/bricks/manifests/carousel.manifest.d.ts +3 -2
  32. package/dist/shared/bricks/manifests/carousel.manifest.d.ts.map +1 -1
  33. package/dist/shared/bricks/manifests/carousel.manifest.js +16 -20
  34. package/dist/shared/bricks/manifests/footer.manifest.d.ts +5 -3
  35. package/dist/shared/bricks/manifests/footer.manifest.d.ts.map +1 -1
  36. package/dist/shared/bricks/manifests/footer.manifest.js +14 -20
  37. package/dist/shared/bricks/manifests/form.manifest.d.ts +3 -3
  38. package/dist/shared/bricks/manifests/form.manifest.d.ts.map +1 -1
  39. package/dist/shared/bricks/manifests/form.manifest.js +14 -20
  40. package/dist/shared/bricks/manifests/hero.manifest.d.ts +3 -5
  41. package/dist/shared/bricks/manifests/hero.manifest.d.ts.map +1 -1
  42. package/dist/shared/bricks/manifests/hero.manifest.js +14 -20
  43. package/dist/shared/bricks/manifests/html.manifest.d.ts +2 -1
  44. package/dist/shared/bricks/manifests/html.manifest.d.ts.map +1 -1
  45. package/dist/shared/bricks/manifests/html.manifest.js +9 -20
  46. package/dist/shared/bricks/manifests/icon.manifest.d.ts +1 -1
  47. package/dist/shared/bricks/manifests/icon.manifest.d.ts.map +1 -1
  48. package/dist/shared/bricks/manifests/icon.manifest.js +14 -20
  49. package/dist/shared/bricks/manifests/image.manifest.d.ts +3 -2
  50. package/dist/shared/bricks/manifests/image.manifest.d.ts.map +1 -1
  51. package/dist/shared/bricks/manifests/image.manifest.js +17 -20
  52. package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts +4 -2
  53. package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts.map +1 -1
  54. package/dist/shared/bricks/manifests/images-gallery.manifest.js +16 -20
  55. package/dist/shared/bricks/manifests/map.manifest.d.ts +2 -1
  56. package/dist/shared/bricks/manifests/map.manifest.d.ts.map +1 -1
  57. package/dist/shared/bricks/manifests/map.manifest.js +12 -20
  58. package/dist/shared/bricks/manifests/navbar.manifest.d.ts +7 -5
  59. package/dist/shared/bricks/manifests/navbar.manifest.d.ts.map +1 -1
  60. package/dist/shared/bricks/manifests/navbar.manifest.js +16 -20
  61. package/dist/shared/bricks/manifests/sidebar.manifest.d.ts +1 -1
  62. package/dist/shared/bricks/manifests/sidebar.manifest.d.ts.map +1 -1
  63. package/dist/shared/bricks/manifests/sidebar.manifest.js +14 -20
  64. package/dist/shared/bricks/manifests/social-links.manifest.d.ts +2 -2
  65. package/dist/shared/bricks/manifests/social-links.manifest.d.ts.map +1 -1
  66. package/dist/shared/bricks/manifests/social-links.manifest.js +15 -20
  67. package/dist/shared/bricks/manifests/spacer.manifest.d.ts +1 -1
  68. package/dist/shared/bricks/manifests/spacer.manifest.d.ts.map +1 -1
  69. package/dist/shared/bricks/manifests/spacer.manifest.js +9 -20
  70. package/dist/shared/bricks/manifests/table.manifest.d.ts +5 -4
  71. package/dist/shared/bricks/manifests/table.manifest.d.ts.map +1 -1
  72. package/dist/shared/bricks/manifests/table.manifest.js +16 -20
  73. package/dist/shared/bricks/manifests/tabs.manifest.d.ts +5 -5
  74. package/dist/shared/bricks/manifests/tabs.manifest.d.ts.map +1 -1
  75. package/dist/shared/bricks/manifests/tabs.manifest.js +16 -20
  76. package/dist/shared/bricks/manifests/testimonials.manifest.d.ts +5 -3
  77. package/dist/shared/bricks/manifests/testimonials.manifest.d.ts.map +1 -1
  78. package/dist/shared/bricks/manifests/testimonials.manifest.js +19 -20
  79. package/dist/shared/bricks/manifests/text.manifest.d.ts +3 -10
  80. package/dist/shared/bricks/manifests/text.manifest.d.ts.map +1 -1
  81. package/dist/shared/bricks/manifests/text.manifest.js +14 -20
  82. package/dist/shared/bricks/manifests/timeline.manifest.d.ts +7 -7
  83. package/dist/shared/bricks/manifests/timeline.manifest.d.ts.map +1 -1
  84. package/dist/shared/bricks/manifests/timeline.manifest.js +16 -20
  85. package/dist/shared/bricks/manifests/video.manifest.d.ts +1 -1
  86. package/dist/shared/bricks/manifests/video.manifest.d.ts.map +1 -1
  87. package/dist/shared/bricks/manifests/video.manifest.js +12 -20
  88. package/dist/shared/bricks/props/align.d.ts +0 -3
  89. package/dist/shared/bricks/props/align.d.ts.map +1 -1
  90. package/dist/shared/bricks/props/align.js +4 -11
  91. package/dist/shared/bricks/props/background.d.ts +2 -8
  92. package/dist/shared/bricks/props/background.d.ts.map +1 -1
  93. package/dist/shared/bricks/props/background.js +4 -9
  94. package/dist/shared/bricks/props/border.d.ts +0 -7
  95. package/dist/shared/bricks/props/border.d.ts.map +1 -1
  96. package/dist/shared/bricks/props/border.js +5 -10
  97. package/dist/shared/bricks/props/color-preset.d.ts +316 -6
  98. package/dist/shared/bricks/props/color-preset.d.ts.map +1 -1
  99. package/dist/shared/bricks/props/color-preset.js +2 -5
  100. package/dist/shared/bricks/props/color.d.ts +3 -5
  101. package/dist/shared/bricks/props/color.d.ts.map +1 -1
  102. package/dist/shared/bricks/props/color.js +3 -8
  103. package/dist/shared/bricks/props/common.d.ts.map +1 -1
  104. package/dist/shared/bricks/props/common.js +5 -5
  105. package/dist/shared/bricks/props/css-length.d.ts +0 -1
  106. package/dist/shared/bricks/props/css-length.d.ts.map +1 -1
  107. package/dist/shared/bricks/props/css-length.js +1 -4
  108. package/dist/shared/bricks/props/datasource.d.ts +3 -3
  109. package/dist/shared/bricks/props/datasource.d.ts.map +1 -1
  110. package/dist/shared/bricks/props/datasource.js +74 -76
  111. package/dist/shared/bricks/props/datasource.js.map +1 -1
  112. package/dist/shared/bricks/props/date.js +21 -4
  113. package/dist/shared/bricks/props/date.js.map +1 -1
  114. package/dist/shared/bricks/props/direction.d.ts +1 -2
  115. package/dist/shared/bricks/props/direction.d.ts.map +1 -1
  116. package/dist/shared/bricks/props/direction.js +4 -7
  117. package/dist/shared/bricks/props/dynamic.d.ts +5 -67
  118. package/dist/shared/bricks/props/dynamic.d.ts.map +1 -1
  119. package/dist/shared/bricks/props/dynamic.js +6 -24
  120. package/dist/shared/bricks/props/effects.d.ts +1 -3
  121. package/dist/shared/bricks/props/effects.d.ts.map +1 -1
  122. package/dist/shared/bricks/props/effects.js +4 -9
  123. package/dist/shared/bricks/props/geolocation.d.ts.map +1 -1
  124. package/dist/shared/bricks/props/geolocation.js +3 -6
  125. package/dist/shared/bricks/props/geolocation.js.map +1 -1
  126. package/dist/shared/bricks/props/grow.d.ts +3 -0
  127. package/dist/shared/bricks/props/grow.d.ts.map +1 -0
  128. package/dist/shared/{utils/typed-ref.js → bricks/props/grow.js} +5 -5
  129. package/dist/shared/bricks/props/helpers.js +6 -6
  130. package/dist/shared/bricks/props/image.d.ts +3 -8
  131. package/dist/shared/bricks/props/image.d.ts.map +1 -1
  132. package/dist/shared/bricks/props/image.js +4 -7
  133. package/dist/shared/bricks/props/string.d.ts +2 -5
  134. package/dist/shared/bricks/props/string.d.ts.map +1 -1
  135. package/dist/shared/bricks/props/string.js +3 -10
  136. package/dist/shared/bricks/props/tags.d.ts +0 -1
  137. package/dist/shared/bricks/props/tags.d.ts.map +1 -1
  138. package/dist/shared/bricks/props/tags.js +3 -6
  139. package/dist/shared/bricks/props/text.d.ts +0 -3
  140. package/dist/shared/bricks/props/text.d.ts.map +1 -1
  141. package/dist/shared/bricks/props/text.js +4 -11
  142. package/dist/shared/bricks/props/types.d.ts +2 -2
  143. package/dist/shared/bricks/props/types.d.ts.map +1 -1
  144. package/dist/shared/bricks.d.ts +65 -154
  145. package/dist/shared/bricks.d.ts.map +1 -1
  146. package/dist/shared/bricks.js +48 -52
  147. package/dist/shared/chunk-2EOCK66Z.js +19 -0
  148. package/dist/shared/chunk-2EOCK66Z.js.map +1 -0
  149. package/dist/shared/{chunk-F22LDHEO.js → chunk-2U5U3CCJ.js} +3 -18
  150. package/dist/shared/chunk-2U5U3CCJ.js.map +1 -0
  151. package/dist/shared/{chunk-2RK3CPYJ.js → chunk-2UEPTT5J.js} +12 -19
  152. package/dist/shared/chunk-2UEPTT5J.js.map +1 -0
  153. package/dist/shared/{chunk-W6MRYRGJ.js → chunk-2Z5WOCFS.js} +46 -20
  154. package/dist/shared/chunk-2Z5WOCFS.js.map +1 -0
  155. package/dist/shared/{chunk-CRS7QCPZ.js → chunk-34IUWNRX.js} +65 -27
  156. package/dist/shared/chunk-34IUWNRX.js.map +1 -0
  157. package/dist/shared/chunk-57NRTXRA.js +309 -0
  158. package/dist/shared/chunk-57NRTXRA.js.map +1 -0
  159. package/dist/shared/{chunk-UXTASZ23.js → chunk-5HJT5NJ3.js} +66 -63
  160. package/dist/shared/chunk-5HJT5NJ3.js.map +1 -0
  161. package/dist/shared/{chunk-H5JM2M2T.js → chunk-5J4Y43RM.js} +58 -185
  162. package/dist/shared/chunk-5J4Y43RM.js.map +1 -0
  163. package/dist/shared/{chunk-RV7AYVFV.js → chunk-5OVOXUFX.js} +6 -20
  164. package/dist/shared/chunk-5OVOXUFX.js.map +1 -0
  165. package/dist/shared/{chunk-TNMNMYOB.js → chunk-5RCC2STG.js} +2 -13
  166. package/dist/shared/chunk-5RCC2STG.js.map +1 -0
  167. package/dist/shared/{chunk-42OUNI7C.js → chunk-5SNSUC6Q.js} +27 -29
  168. package/dist/shared/chunk-5SNSUC6Q.js.map +1 -0
  169. package/dist/shared/{chunk-ZR6R6Z6O.js → chunk-B5T2LFV2.js} +34 -36
  170. package/dist/shared/chunk-B5T2LFV2.js.map +1 -0
  171. package/dist/shared/{chunk-Q4NPPLEU.js → chunk-BHARJBEK.js} +2 -9
  172. package/dist/shared/chunk-BHARJBEK.js.map +1 -0
  173. package/dist/shared/{chunk-LLNPH3XR.js → chunk-DCM4732T.js} +6 -8
  174. package/dist/shared/chunk-DCM4732T.js.map +1 -0
  175. package/dist/shared/{chunk-LCJ2VFPM.js → chunk-E3ZW57HF.js} +32 -26
  176. package/dist/shared/chunk-E3ZW57HF.js.map +1 -0
  177. package/dist/shared/{chunk-CSF2WQX2.js → chunk-EID5HPF3.js} +15 -12
  178. package/dist/shared/chunk-EID5HPF3.js.map +1 -0
  179. package/dist/shared/chunk-EMF5TCPX.js +389 -0
  180. package/dist/shared/chunk-EMF5TCPX.js.map +1 -0
  181. package/dist/shared/chunk-EUFVTHAG.js +33 -0
  182. package/dist/shared/chunk-EUFVTHAG.js.map +1 -0
  183. package/dist/shared/{chunk-2IHKVMKW.js → chunk-FC52EHCC.js} +18 -19
  184. package/dist/shared/chunk-FC52EHCC.js.map +1 -0
  185. package/dist/shared/chunk-FD7YYFRI.js +225 -0
  186. package/dist/shared/chunk-FD7YYFRI.js.map +1 -0
  187. package/dist/shared/{chunk-KILJYJFE.js → chunk-FVV27R73.js} +20 -105
  188. package/dist/shared/chunk-FVV27R73.js.map +1 -0
  189. package/dist/shared/{chunk-N3ZTQD5I.js → chunk-FYGFB5U5.js} +10 -23
  190. package/dist/shared/chunk-FYGFB5U5.js.map +1 -0
  191. package/dist/shared/chunk-GDYCCB3B.js +22 -0
  192. package/dist/shared/chunk-GDYCCB3B.js.map +1 -0
  193. package/dist/shared/chunk-GLV6QIIM.js +41 -0
  194. package/dist/shared/chunk-GLV6QIIM.js.map +1 -0
  195. package/dist/shared/{chunk-EVLRH6VG.js → chunk-GNTJT7MR.js} +2 -2
  196. package/dist/shared/chunk-GNTJT7MR.js.map +1 -0
  197. package/dist/shared/chunk-HHUFGV7J.js +259 -0
  198. package/dist/shared/chunk-HHUFGV7J.js.map +1 -0
  199. package/dist/shared/{chunk-TFGGYU6Y.js → chunk-IEMCCHM4.js} +7 -12
  200. package/dist/shared/chunk-IEMCCHM4.js.map +1 -0
  201. package/dist/shared/{chunk-GIGFNQBO.js → chunk-IMDOF55E.js} +12 -4
  202. package/dist/shared/chunk-IMDOF55E.js.map +1 -0
  203. package/dist/shared/{chunk-N3BEBLWF.js → chunk-IPWYNE6Y.js} +34 -34
  204. package/dist/shared/chunk-J6R3GSKS.js +386 -0
  205. package/dist/shared/chunk-J6R3GSKS.js.map +1 -0
  206. package/dist/shared/{chunk-ZRRAK5NS.js → chunk-KRODRZNS.js} +41 -33
  207. package/dist/shared/chunk-KRODRZNS.js.map +1 -0
  208. package/dist/shared/chunk-KTA7XES3.js +168 -0
  209. package/dist/shared/chunk-KTA7XES3.js.map +1 -0
  210. package/dist/shared/{chunk-2VDR4ZYY.js → chunk-L4W4B2RQ.js} +26 -82
  211. package/dist/shared/chunk-L4W4B2RQ.js.map +1 -0
  212. package/dist/shared/chunk-MO6CRLQA.js +73 -0
  213. package/dist/shared/chunk-MO6CRLQA.js.map +1 -0
  214. package/dist/shared/{chunk-GQTZPN5D.js → chunk-NTP6BKRU.js} +29 -32
  215. package/dist/shared/chunk-NTP6BKRU.js.map +1 -0
  216. package/dist/shared/{chunk-DFAFDBYZ.js → chunk-O53V22BK.js} +34 -27
  217. package/dist/shared/chunk-O53V22BK.js.map +1 -0
  218. package/dist/shared/{chunk-BPBKHEQ5.js → chunk-OJ6KL7FU.js} +1 -8
  219. package/dist/shared/chunk-OJ6KL7FU.js.map +1 -0
  220. package/dist/shared/{chunk-F247VKAE.js → chunk-ORIUCOED.js} +18 -20
  221. package/dist/shared/chunk-ORIUCOED.js.map +1 -0
  222. package/dist/shared/{chunk-GFAQWQER.js → chunk-PFZMRSHJ.js} +33 -35
  223. package/dist/shared/chunk-PFZMRSHJ.js.map +1 -0
  224. package/dist/shared/{chunk-KIDICX3Y.js → chunk-QHKOAIOK.js} +43 -78
  225. package/dist/shared/chunk-QHKOAIOK.js.map +1 -0
  226. package/dist/shared/{chunk-4MNWMEMM.js → chunk-RDOCVLCF.js} +21 -21
  227. package/dist/shared/chunk-RDOCVLCF.js.map +1 -0
  228. package/dist/shared/{chunk-FQDR2BBZ.js → chunk-RFH7PEVS.js} +13 -5
  229. package/dist/shared/chunk-RFH7PEVS.js.map +1 -0
  230. package/dist/shared/chunk-T3UPW5OW.js +79 -0
  231. package/dist/shared/chunk-T3UPW5OW.js.map +1 -0
  232. package/dist/shared/{chunk-L6C7HUSA.js → chunk-TGKNA2JS.js} +21 -24
  233. package/dist/shared/chunk-TGKNA2JS.js.map +1 -0
  234. package/dist/shared/chunk-TZ6X7ZM5.js +158 -0
  235. package/dist/shared/chunk-TZ6X7ZM5.js.map +1 -0
  236. package/dist/shared/{chunk-BHC2A43S.js → chunk-UC75KRLX.js} +3 -3
  237. package/dist/shared/{chunk-BHC2A43S.js.map → chunk-UC75KRLX.js.map} +1 -1
  238. package/dist/shared/{chunk-LTIJI7Y3.js → chunk-VMIJ6MG5.js} +34 -34
  239. package/dist/shared/chunk-VMIJ6MG5.js.map +1 -0
  240. package/dist/shared/{chunk-NTLAKMMQ.js → chunk-VYA2FCTY.js} +6 -17
  241. package/dist/shared/chunk-VYA2FCTY.js.map +1 -0
  242. package/dist/shared/{chunk-Y74LZNND.js → chunk-WPZV3LYL.js} +4 -10
  243. package/dist/shared/chunk-WPZV3LYL.js.map +1 -0
  244. package/dist/shared/chunk-XFZQGRRL.js +101 -0
  245. package/dist/shared/chunk-XFZQGRRL.js.map +1 -0
  246. package/dist/shared/{chunk-FOGAVJC2.js → chunk-XYWSIMZ6.js} +3 -3
  247. package/dist/shared/chunk-XYWSIMZ6.js.map +1 -0
  248. package/dist/shared/{chunk-ZLYIRH2B.js → chunk-ZRBTAC3G.js} +3 -18
  249. package/dist/shared/chunk-ZRBTAC3G.js.map +1 -0
  250. package/dist/shared/{chunk-36PLZKMW.js → chunk-ZYQZUWF7.js} +26 -27
  251. package/dist/shared/chunk-ZYQZUWF7.js.map +1 -0
  252. package/dist/shared/chunk-ZZVYD4BG.js +41 -0
  253. package/dist/shared/chunk-ZZVYD4BG.js.map +1 -0
  254. package/dist/shared/context.d.ts +406 -23
  255. package/dist/shared/context.d.ts.map +1 -1
  256. package/dist/shared/context.js +94 -0
  257. package/dist/shared/context.js.map +1 -1
  258. package/dist/shared/datarecords/external/airtable/types.d.ts +1 -1
  259. package/dist/shared/datarecords/external/airtable/types.d.ts.map +1 -1
  260. package/dist/shared/datarecords/external/airtable/types.js +2 -1
  261. package/dist/shared/datarecords/types.d.ts +3 -3
  262. package/dist/shared/datarecords/types.d.ts.map +1 -1
  263. package/dist/shared/datarecords/types.js +3 -2
  264. package/dist/shared/datasources/external/instagram/feed/schema.d.ts +1 -1
  265. package/dist/shared/datasources/external/instagram/feed/schema.d.ts.map +1 -1
  266. package/dist/shared/datasources/external/instagram/feed/schema.js +4 -1
  267. package/dist/shared/datasources/external/instagram/feed/schema.js.map +1 -1
  268. package/dist/shared/datasources/external/mastodon/status/schema.d.ts +6 -6
  269. package/dist/shared/datasources/external/mastodon/status/schema.d.ts.map +1 -1
  270. package/dist/shared/datasources/external/mastodon/status/schema.js +6 -19
  271. package/dist/shared/datasources/external/mastodon/status/schema.js.map +1 -1
  272. package/dist/shared/datasources/external/meta/oauth/config.d.ts +2 -2
  273. package/dist/shared/datasources/external/meta/oauth/config.d.ts.map +1 -1
  274. package/dist/shared/datasources/external/meta/oauth/config.js +4 -1
  275. package/dist/shared/datasources/external/meta/oauth/config.js.map +1 -1
  276. package/dist/shared/datasources/external/threads/media/schema.d.ts +1 -1
  277. package/dist/shared/datasources/external/threads/media/schema.d.ts.map +1 -1
  278. package/dist/shared/datasources/external/threads/media/schema.js +4 -8
  279. package/dist/shared/datasources/external/threads/media/schema.js.map +1 -1
  280. package/dist/shared/datasources/internal/blog/schema.d.ts +1 -1
  281. package/dist/shared/datasources/internal/blog/schema.d.ts.map +1 -1
  282. package/dist/shared/datasources/internal/blog/schema.js +4 -1
  283. package/dist/shared/datasources/internal/blog/schema.js.map +1 -1
  284. package/dist/shared/datasources/types.d.ts +25 -25
  285. package/dist/shared/datasources/types.d.ts.map +1 -1
  286. package/dist/shared/datasources/types.js +3 -16
  287. package/dist/shared/images.d.ts +1 -1
  288. package/dist/shared/images.d.ts.map +1 -1
  289. package/dist/shared/images.js +4 -38
  290. package/dist/shared/images.js.map +1 -1
  291. package/dist/shared/page.d.ts +141 -22
  292. package/dist/shared/page.d.ts.map +1 -1
  293. package/dist/shared/page.js +52 -49
  294. package/dist/shared/responsive.js +1 -1
  295. package/dist/shared/site.d.ts +81 -191
  296. package/dist/shared/site.d.ts.map +1 -1
  297. package/dist/shared/site.js +56 -114
  298. package/dist/shared/site.js.map +1 -1
  299. package/dist/shared/sitemap.d.ts +4 -326
  300. package/dist/shared/sitemap.d.ts.map +1 -1
  301. package/dist/shared/sitemap.js +51 -58
  302. package/dist/shared/theme.d.ts +0 -37
  303. package/dist/shared/theme.d.ts.map +1 -1
  304. package/dist/shared/theme.js +4 -21
  305. package/dist/shared/utils/llm.d.ts +1 -10
  306. package/dist/shared/utils/llm.d.ts.map +1 -1
  307. package/dist/shared/utils/llm.js +1 -18
  308. package/dist/shared/utils/schema.d.ts +3 -7
  309. package/dist/shared/utils/schema.d.ts.map +1 -1
  310. package/dist/shared/utils/schema.js +2 -19
  311. package/dist/shared/utils/string-enum.d.ts +9 -3
  312. package/dist/shared/utils/string-enum.d.ts.map +1 -1
  313. package/dist/shared/utils/string-enum.js +1 -1
  314. package/package.json +21 -5
  315. package/src/shared/ai/schemas.ts +25 -30
  316. package/src/shared/ai/types.ts +23 -89
  317. package/src/shared/attributes.ts +53 -51
  318. package/src/shared/brick-manifest.ts +5 -6
  319. package/src/shared/bricks/manifests/accordion.manifest.ts +11 -11
  320. package/src/shared/bricks/manifests/all-props.ts +165 -0
  321. package/src/shared/bricks/manifests/box.manifest.ts +19 -21
  322. package/src/shared/bricks/manifests/button.manifest.ts +54 -16
  323. package/src/shared/bricks/manifests/card.manifest.ts +45 -174
  324. package/src/shared/bricks/manifests/carousel.manifest.ts +11 -13
  325. package/src/shared/bricks/manifests/footer.manifest.ts +16 -15
  326. package/src/shared/bricks/manifests/form.manifest.ts +14 -15
  327. package/src/shared/bricks/manifests/hero.manifest.ts +58 -265
  328. package/src/shared/bricks/manifests/html.manifest.ts +6 -0
  329. package/src/shared/bricks/manifests/icon.manifest.ts +10 -99
  330. package/src/shared/bricks/manifests/image.manifest.ts +22 -23
  331. package/src/shared/bricks/manifests/images-gallery.manifest.ts +21 -15
  332. package/src/shared/bricks/manifests/map.manifest.ts +19 -75
  333. package/src/shared/bricks/manifests/navbar.manifest.ts +20 -21
  334. package/src/shared/bricks/manifests/sidebar.manifest.ts +9 -10
  335. package/src/shared/bricks/manifests/social-links.manifest.ts +17 -20
  336. package/src/shared/bricks/manifests/spacer.manifest.ts +0 -1
  337. package/src/shared/bricks/manifests/table.manifest.ts +21 -15
  338. package/src/shared/bricks/manifests/tabs.manifest.ts +26 -445
  339. package/src/shared/bricks/manifests/testimonials.manifest.ts +47 -244
  340. package/src/shared/bricks/manifests/text.manifest.ts +28 -59
  341. package/src/shared/bricks/manifests/timeline.manifest.ts +29 -24
  342. package/src/shared/bricks/manifests/video.manifest.ts +9 -10
  343. package/src/shared/bricks/props/align.ts +0 -13
  344. package/src/shared/bricks/props/background.ts +3 -15
  345. package/src/shared/bricks/props/border.ts +2 -13
  346. package/src/shared/bricks/props/color-preset.ts +9 -10
  347. package/src/shared/bricks/props/color.ts +12 -20
  348. package/src/shared/bricks/props/common.ts +8 -15
  349. package/src/shared/bricks/props/css-length.ts +0 -5
  350. package/src/shared/bricks/props/datasource.ts +72 -74
  351. package/src/shared/bricks/props/direction.ts +1 -5
  352. package/src/shared/bricks/props/dynamic.ts +0 -11
  353. package/src/shared/bricks/props/effects.ts +0 -9
  354. package/src/shared/bricks/props/geolocation.ts +3 -3
  355. package/src/shared/bricks/props/grow.ts +11 -0
  356. package/src/shared/bricks/props/helpers.ts +1 -1
  357. package/src/shared/bricks/props/image.ts +44 -16
  358. package/src/shared/bricks/props/string.ts +7 -18
  359. package/src/shared/bricks/props/tags.ts +0 -5
  360. package/src/shared/bricks/props/tests/background.test.ts +1 -15
  361. package/src/shared/bricks/props/tests/image.test.ts +3 -9
  362. package/src/shared/bricks/props/tests/string.test.ts +2 -26
  363. package/src/shared/bricks/props/text.ts +0 -12
  364. package/src/shared/bricks/props/types.ts +4 -3
  365. package/src/shared/bricks.ts +166 -1020
  366. package/src/shared/context.ts +24 -24
  367. package/src/shared/datarecords/external/airtable/types.ts +12 -11
  368. package/src/shared/datarecords/types.ts +2 -34
  369. package/src/shared/datasources/external/instagram/feed/schema.ts +2 -1
  370. package/src/shared/datasources/external/mastodon/status/schema.ts +4 -19
  371. package/src/shared/datasources/external/meta/oauth/config.ts +2 -1
  372. package/src/shared/datasources/external/threads/media/schema.ts +2 -8
  373. package/src/shared/datasources/internal/blog/schema.ts +2 -1
  374. package/src/shared/datasources/types.ts +64 -79
  375. package/src/shared/images.ts +12 -18
  376. package/src/shared/page.ts +10 -1
  377. package/src/shared/site.ts +1 -0
  378. package/src/shared/sitemap.ts +3 -70
  379. package/src/shared/tests/attributes.test.ts +2 -0
  380. package/src/shared/theme.ts +81 -96
  381. package/src/shared/utils/llm.ts +5 -191
  382. package/src/shared/utils/schema.ts +95 -258
  383. package/src/shared/utils/string-enum.ts +25 -4
  384. package/src/shared/utils/tests/schema.test.ts +278 -314
  385. package/dist/shared/chunk-2IHKVMKW.js.map +0 -1
  386. package/dist/shared/chunk-2RK3CPYJ.js.map +0 -1
  387. package/dist/shared/chunk-2VDR4ZYY.js.map +0 -1
  388. package/dist/shared/chunk-36PLZKMW.js.map +0 -1
  389. package/dist/shared/chunk-42OUNI7C.js.map +0 -1
  390. package/dist/shared/chunk-4MNWMEMM.js.map +0 -1
  391. package/dist/shared/chunk-A2QPY54H.js +0 -13
  392. package/dist/shared/chunk-A2QPY54H.js.map +0 -1
  393. package/dist/shared/chunk-BPBKHEQ5.js.map +0 -1
  394. package/dist/shared/chunk-CRS7QCPZ.js.map +0 -1
  395. package/dist/shared/chunk-CSF2WQX2.js.map +0 -1
  396. package/dist/shared/chunk-DFAFDBYZ.js.map +0 -1
  397. package/dist/shared/chunk-DV3G7X34.js +0 -244
  398. package/dist/shared/chunk-DV3G7X34.js.map +0 -1
  399. package/dist/shared/chunk-EVLRH6VG.js.map +0 -1
  400. package/dist/shared/chunk-F22LDHEO.js.map +0 -1
  401. package/dist/shared/chunk-F247VKAE.js.map +0 -1
  402. package/dist/shared/chunk-FOGAVJC2.js.map +0 -1
  403. package/dist/shared/chunk-FQDR2BBZ.js.map +0 -1
  404. package/dist/shared/chunk-GFAQWQER.js.map +0 -1
  405. package/dist/shared/chunk-GIGFNQBO.js.map +0 -1
  406. package/dist/shared/chunk-GQTZPN5D.js.map +0 -1
  407. package/dist/shared/chunk-H5JM2M2T.js.map +0 -1
  408. package/dist/shared/chunk-HTUSL2U7.js +0 -260
  409. package/dist/shared/chunk-HTUSL2U7.js.map +0 -1
  410. package/dist/shared/chunk-IQIISR22.js +0 -794
  411. package/dist/shared/chunk-IQIISR22.js.map +0 -1
  412. package/dist/shared/chunk-JK2FWFJU.js +0 -15
  413. package/dist/shared/chunk-JK2FWFJU.js.map +0 -1
  414. package/dist/shared/chunk-KEM5N6GJ.js +0 -505
  415. package/dist/shared/chunk-KEM5N6GJ.js.map +0 -1
  416. package/dist/shared/chunk-KIDICX3Y.js.map +0 -1
  417. package/dist/shared/chunk-KILJYJFE.js.map +0 -1
  418. package/dist/shared/chunk-L6C7HUSA.js.map +0 -1
  419. package/dist/shared/chunk-LCJ2VFPM.js.map +0 -1
  420. package/dist/shared/chunk-LLNPH3XR.js.map +0 -1
  421. package/dist/shared/chunk-LTIJI7Y3.js.map +0 -1
  422. package/dist/shared/chunk-MFNHFN2B.js +0 -103
  423. package/dist/shared/chunk-MFNHFN2B.js.map +0 -1
  424. package/dist/shared/chunk-N3ZTQD5I.js.map +0 -1
  425. package/dist/shared/chunk-NTLAKMMQ.js.map +0 -1
  426. package/dist/shared/chunk-Q4NPPLEU.js.map +0 -1
  427. package/dist/shared/chunk-RV7AYVFV.js.map +0 -1
  428. package/dist/shared/chunk-SE6O65HC.js +0 -44
  429. package/dist/shared/chunk-SE6O65HC.js.map +0 -1
  430. package/dist/shared/chunk-TFGGYU6Y.js.map +0 -1
  431. package/dist/shared/chunk-TNMNMYOB.js.map +0 -1
  432. package/dist/shared/chunk-TNTFKLCR.js +0 -1225
  433. package/dist/shared/chunk-TNTFKLCR.js.map +0 -1
  434. package/dist/shared/chunk-U5ZECCJM.js +0 -464
  435. package/dist/shared/chunk-U5ZECCJM.js.map +0 -1
  436. package/dist/shared/chunk-UXTASZ23.js.map +0 -1
  437. package/dist/shared/chunk-W6MRYRGJ.js.map +0 -1
  438. package/dist/shared/chunk-WKN566LN.js +0 -29
  439. package/dist/shared/chunk-WKN566LN.js.map +0 -1
  440. package/dist/shared/chunk-Y74LZNND.js.map +0 -1
  441. package/dist/shared/chunk-YWOTQWIQ.js +0 -572
  442. package/dist/shared/chunk-YWOTQWIQ.js.map +0 -1
  443. package/dist/shared/chunk-ZLYIRH2B.js.map +0 -1
  444. package/dist/shared/chunk-ZR6R6Z6O.js.map +0 -1
  445. package/dist/shared/chunk-ZRRAK5NS.js.map +0 -1
  446. package/dist/shared/tests/schema-registry.test.d.ts +0 -2
  447. package/dist/shared/tests/schema-registry.test.d.ts.map +0 -1
  448. package/dist/shared/utils/schema-registry.d.ts +0 -5
  449. package/dist/shared/utils/schema-registry.d.ts.map +0 -1
  450. package/dist/shared/utils/schema-registry.js +0 -29
  451. package/dist/shared/utils/tests/schema-registry.test.d.ts +0 -2
  452. package/dist/shared/utils/tests/schema-registry.test.d.ts.map +0 -1
  453. package/dist/shared/utils/typed-ref.d.ts +0 -43
  454. package/dist/shared/utils/typed-ref.d.ts.map +0 -1
  455. package/dist/shared/utils/typed-ref.js.map +0 -1
  456. package/src/shared/tests/schema-registry.test.ts +0 -12
  457. package/src/shared/utils/schema-registry.ts +0 -82
  458. package/src/shared/utils/tests/schema-registry.test.ts +0 -13
  459. package/src/shared/utils/typed-ref.ts +0 -53
  460. /package/dist/shared/{utils/schema-registry.js.map → bricks/props/grow.js.map} +0 -0
  461. /package/dist/shared/{chunk-N3BEBLWF.js.map → chunk-IPWYNE6Y.js.map} +0 -0
@@ -1,572 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
-
3
- import {
4
- defineProps
5
- } from "./chunk-BHC2A43S.js";
6
- import {
7
- defineBrickManifest
8
- } from "./chunk-EVLRH6VG.js";
9
- import {
10
- loopRef
11
- } from "./chunk-IQIISR22.js";
12
- import {
13
- shadowRef
14
- } from "./chunk-TNMNMYOB.js";
15
- import {
16
- borderRef,
17
- roundingRef
18
- } from "./chunk-NTLAKMMQ.js";
19
- import {
20
- colorPresetRef
21
- } from "./chunk-TFGGYU6Y.js";
22
- import {
23
- cssLengthRef
24
- } from "./chunk-BPBKHEQ5.js";
25
- import {
26
- StringEnum
27
- } from "./chunk-JK2FWFJU.js";
28
-
29
- // src/shared/bricks/manifests/tabs.manifest.ts
30
- import { Type } from "@sinclair/typebox";
31
- import { HiOutlineViewColumns } from "react-icons/hi2";
32
- var tabRef = Type.Object({
33
- label: Type.String({
34
- title: "Tab Label",
35
- description: "The text shown on the tab button",
36
- "ai:instructions": "Use a short, descriptive label for the tab"
37
- }),
38
- id: Type.Optional(
39
- Type.String({
40
- title: "Tab ID",
41
- description: "Unique identifier for the tab (auto-generated if not provided)"
42
- })
43
- )
44
- });
45
- var manifest = defineBrickManifest({
46
- type: "tabs",
47
- category: "container",
48
- name: "Tabs",
49
- description: "A tabbed container that displays different content panels based on the selected tab.",
50
- aiInstructions: "Tabs are containers for organizing content into multiple panels. Each tab has a label and contains child bricks. Users can click tab buttons to switch between different content panels. Ideal for organizing related content, settings panels, or product information.",
51
- isContainer: true,
52
- defaultWidth: {
53
- desktop: "100%",
54
- mobile: "100%"
55
- },
56
- defaultHeight: {
57
- desktop: "auto"
58
- },
59
- icon: HiOutlineViewColumns,
60
- props: defineProps({
61
- colorPreset: Type.Optional(
62
- colorPresetRef({
63
- title: "Color"
64
- })
65
- ),
66
- tabs: Type.Array(tabRef, {
67
- title: "Tabs",
68
- description: "List of tab configurations",
69
- default: [{ label: "Tab 1" }, { label: "Tab 2" }],
70
- "ai:instructions": "Each tab should have a descriptive label. Content for each tab is defined in the $children array.",
71
- examples: [
72
- [{ label: "Overview" }, { label: "Features" }, { label: "Pricing" }],
73
- [{ label: "About" }, { label: "Services" }, { label: "Contact" }]
74
- ]
75
- }),
76
- defaultTab: Type.Optional(
77
- Type.Number({
78
- title: "Default Tab",
79
- description: "Index of the tab to show by default (0-based)",
80
- default: 0,
81
- minimum: 0,
82
- "ai:instructions": "Use 0 for the first tab, 1 for the second tab, etc."
83
- })
84
- ),
85
- tabPosition: Type.Optional(
86
- StringEnum(["top", "bottom"], {
87
- title: "Tab Position",
88
- description: "Position of the tab buttons relative to content",
89
- default: "top",
90
- "ai:instructions": "Use 'top' for tabs above content (most common) or 'bottom' for tabs below content"
91
- })
92
- ),
93
- tabStyle: Type.Optional(
94
- StringEnum(["pills", "underline", "bordered"], {
95
- title: "Tab Style",
96
- description: "Visual style of the tab buttons",
97
- default: "underline",
98
- "ai:instructions": "Pills are rounded buttons, underline shows a line under active tab, bordered shows tabs with borders"
99
- })
100
- ),
101
- fullWidth: Type.Optional(
102
- Type.Boolean({
103
- title: "Full Width Tabs",
104
- description: "Make tab buttons span the full width of the container",
105
- default: false,
106
- "ai:instructions": "Enable this to make tab buttons evenly distribute across the full width"
107
- })
108
- ),
109
- padding: Type.Optional(
110
- cssLengthRef({
111
- default: "1.5rem",
112
- description: "Padding inside each tab panel.",
113
- "ai:instructions": "Use values like '1rem', '1.5rem', or '2rem' for tab content padding",
114
- title: "Content Padding",
115
- "ui:placeholder": "Not specified",
116
- "ui:styleId": "styles:padding"
117
- })
118
- ),
119
- gap: Type.Optional(
120
- cssLengthRef({
121
- title: "Tab Gap",
122
- default: "0.5rem",
123
- description: "Gap between tab buttons.",
124
- "ai:instructions": "Small values like '0.25rem' or '0.5rem' work best for tab spacing",
125
- "ui:placeholder": "Not specified",
126
- "ui:styleId": "styles:gap"
127
- })
128
- ),
129
- rounding: Type.Optional(
130
- roundingRef({
131
- default: "rounded-md"
132
- })
133
- ),
134
- border: Type.Optional(borderRef()),
135
- shadow: Type.Optional(shadowRef()),
136
- loop: Type.Optional(loopRef()),
137
- $children: Type.Array(Type.Array(Type.Any()), {
138
- "ui:field": "hidden",
139
- description: "Array of child brick arrays - each sub-array represents the content for one tab",
140
- default: [[], []],
141
- examples: [
142
- [
143
- // Tab 1 content
144
- [
145
- {
146
- type: "text",
147
- props: {
148
- content: "<h3>Overview</h3><p>This is the overview tab content.</p>"
149
- }
150
- }
151
- ],
152
- // Tab 2 content
153
- [
154
- {
155
- type: "text",
156
- props: {
157
- content: "<h3>Features</h3><p>Here are our key features.</p>"
158
- }
159
- },
160
- {
161
- type: "button",
162
- props: {
163
- text: "Learn More",
164
- link: "/features"
165
- }
166
- }
167
- ]
168
- ]
169
- ]
170
- })
171
- })
172
- });
173
- var examples = [
174
- {
175
- description: "Simple tabs with basic content in each panel",
176
- type: "tabs",
177
- props: {
178
- tabs: [{ label: "About" }, { label: "Services" }, { label: "Contact" }],
179
- defaultTab: 0,
180
- tabStyle: "underline",
181
- $children: [
182
- [
183
- {
184
- type: "text",
185
- props: {
186
- content: "<h3>About Us</h3><p>We are a company focused on delivering exceptional results.</p>"
187
- }
188
- }
189
- ],
190
- [
191
- {
192
- type: "text",
193
- props: {
194
- content: "<h3>Our Services</h3><p>We offer a wide range of professional services.</p>"
195
- }
196
- },
197
- {
198
- type: "button",
199
- props: {
200
- text: "View All Services",
201
- link: "/services"
202
- }
203
- }
204
- ],
205
- [
206
- {
207
- type: "text",
208
- props: {
209
- content: "<h3>Contact Information</h3><p>Email: hello@company.com</p><p>Phone: (555) 123-4567</p>"
210
- }
211
- }
212
- ]
213
- ]
214
- }
215
- },
216
- {
217
- description: "Product information tabs with pills style and custom styling",
218
- type: "tabs",
219
- props: {
220
- tabs: [{ label: "Overview" }, { label: "Specifications" }, { label: "Reviews" }, { label: "Support" }],
221
- defaultTab: 0,
222
- tabStyle: "pills",
223
- fullWidth: true,
224
- colorPreset: {
225
- color: "primary-50"
226
- },
227
- border: {
228
- width: "border",
229
- color: "border-primary-200"
230
- },
231
- rounding: "rounded-lg",
232
- padding: "2rem",
233
- $children: [
234
- [
235
- {
236
- type: "text",
237
- props: {
238
- content: "<h3>Product Overview</h3><p>This product revolutionizes the way you work.</p>"
239
- }
240
- },
241
- {
242
- type: "image",
243
- props: {
244
- src: "https://via.placeholder.com/400x200",
245
- alt: "Product image"
246
- }
247
- }
248
- ],
249
- [
250
- {
251
- type: "text",
252
- props: {
253
- content: '<h3>Technical Specifications</h3><ul><li>Weight: 2.5 lbs</li><li>Dimensions: 12" x 8" x 2"</li><li>Battery: 8 hours</li></ul>'
254
- }
255
- }
256
- ],
257
- [
258
- {
259
- type: "text",
260
- props: {
261
- content: '<h3>Customer Reviews</h3><p>\u2605\u2605\u2605\u2605\u2605 "Amazing product, highly recommend!"</p><p>\u2605\u2605\u2605\u2605\u2606 "Great value for money."</p>'
262
- }
263
- }
264
- ],
265
- [
266
- {
267
- type: "text",
268
- props: {
269
- content: "<h3>Support</h3><p>Need help? Contact our support team.</p>"
270
- }
271
- },
272
- {
273
- type: "button",
274
- props: {
275
- text: "Contact Support",
276
- link: "/support"
277
- }
278
- }
279
- ]
280
- ]
281
- }
282
- },
283
- {
284
- description: "Portfolio sections with bordered tabs",
285
- type: "tabs",
286
- props: {
287
- tabs: [{ label: "Web Design" }, { label: "Mobile Apps" }, { label: "Branding" }],
288
- defaultTab: 0,
289
- tabStyle: "bordered",
290
- shadow: "shadow-md",
291
- rounding: "rounded-xl",
292
- $children: [
293
- [
294
- {
295
- type: "text",
296
- props: {
297
- content: "<h3>Web Design Projects</h3><p>Beautiful, responsive websites that convert.</p>"
298
- }
299
- },
300
- {
301
- type: "image",
302
- props: {
303
- src: "https://via.placeholder.com/600x300",
304
- alt: "Web design portfolio"
305
- }
306
- }
307
- ],
308
- [
309
- {
310
- type: "text",
311
- props: {
312
- content: "<h3>Mobile Applications</h3><p>Native and cross-platform mobile solutions.</p>"
313
- }
314
- },
315
- {
316
- type: "image",
317
- props: {
318
- src: "https://via.placeholder.com/300x500",
319
- alt: "Mobile app portfolio"
320
- }
321
- }
322
- ],
323
- [
324
- {
325
- type: "text",
326
- props: {
327
- content: "<h3>Brand Identity</h3><p>Comprehensive branding solutions for modern businesses.</p>"
328
- }
329
- },
330
- {
331
- type: "image",
332
- props: {
333
- src: "https://via.placeholder.com/500x400",
334
- alt: "Branding portfolio"
335
- }
336
- }
337
- ]
338
- ]
339
- }
340
- },
341
- {
342
- description: "FAQ sections with bottom-positioned tabs",
343
- type: "tabs",
344
- props: {
345
- tabs: [{ label: "General" }, { label: "Billing" }, { label: "Technical" }],
346
- defaultTab: 0,
347
- tabPosition: "bottom",
348
- tabStyle: "underline",
349
- padding: "1.5rem",
350
- $children: [
351
- [
352
- {
353
- type: "text",
354
- props: {
355
- content: "<h3>General Questions</h3><p><strong>What is your company about?</strong></p><p>We provide excellent services to our customers.</p><p><strong>Where are you located?</strong></p><p>We have offices worldwide.</p>"
356
- }
357
- }
358
- ],
359
- [
360
- {
361
- type: "text",
362
- props: {
363
- content: "<h3>Billing Questions</h3><p><strong>How does billing work?</strong></p><p>We bill monthly based on usage.</p><p><strong>Can I change my plan?</strong></p><p>Yes, you can upgrade or downgrade anytime.</p>"
364
- }
365
- }
366
- ],
367
- [
368
- {
369
- type: "text",
370
- props: {
371
- content: "<h3>Technical Support</h3><p><strong>How do I reset my password?</strong></p><p>Use the forgot password link on the login page.</p><p><strong>Is there an API?</strong></p><p>Yes, we have a comprehensive REST API.</p>"
372
- }
373
- }
374
- ]
375
- ]
376
- }
377
- },
378
- {
379
- description: "Team member profiles using teamMembers query with dynamic tabs",
380
- type: "tabs",
381
- props: {
382
- loop: {
383
- over: "teamMembers"
384
- },
385
- tabs: [{ label: "{{teamMembers.name}}" }],
386
- tabStyle: "pills",
387
- fullWidth: false,
388
- colorPreset: {
389
- color: "secondary-100"
390
- },
391
- padding: "2rem",
392
- $children: [
393
- [
394
- {
395
- type: "image",
396
- props: {
397
- src: "{{teamMembers.photo}}",
398
- alt: "{{teamMembers.name}}"
399
- }
400
- },
401
- {
402
- type: "text",
403
- props: {
404
- content: "<h3>{{teamMembers.name}}</h3><p><strong>{{teamMembers.position}}</strong></p><p>{{teamMembers.bio}}</p><p>Email: {{teamMembers.email}}</p>"
405
- }
406
- }
407
- ]
408
- ]
409
- }
410
- },
411
- {
412
- description: "Product categories using productCategories query",
413
- type: "tabs",
414
- props: {
415
- loop: {
416
- over: "productCategories"
417
- },
418
- tabs: [{ label: "{{productCategories.categoryName}}" }],
419
- tabStyle: "bordered",
420
- fullWidth: true,
421
- border: {
422
- width: "border-2",
423
- color: "border-primary-300"
424
- },
425
- rounding: "rounded-lg",
426
- shadow: "shadow-lg",
427
- $children: [
428
- [
429
- {
430
- type: "text",
431
- props: {
432
- content: "<h3>{{productCategories.categoryName}}</h3><p>{{productCategories.description}}</p><p>{{productCategories.productCount}} products available</p>"
433
- }
434
- },
435
- {
436
- type: "button",
437
- props: {
438
- text: "Browse {{productCategories.categoryName}}",
439
- link: "/products/{{productCategories.slug}}"
440
- }
441
- }
442
- ]
443
- ]
444
- }
445
- },
446
- {
447
- description: "Service packages with pricing information",
448
- type: "tabs",
449
- props: {
450
- tabs: [{ label: "Basic" }, { label: "Professional" }, { label: "Enterprise" }],
451
- defaultTab: 1,
452
- tabStyle: "pills",
453
- fullWidth: true,
454
- colorPreset: {
455
- color: "accent-50"
456
- },
457
- border: {
458
- width: "border",
459
- color: "border-accent-200"
460
- },
461
- rounding: "rounded-xl",
462
- shadow: "shadow-md",
463
- padding: "2.5rem",
464
- $children: [
465
- [
466
- {
467
- type: "text",
468
- props: {
469
- content: "<h3>Basic Package</h3><p><strong>$99/month</strong></p><ul><li>5 Projects</li><li>10GB Storage</li><li>Email Support</li></ul>"
470
- }
471
- },
472
- {
473
- type: "button",
474
- props: {
475
- text: "Choose Basic",
476
- link: "/pricing/basic"
477
- }
478
- }
479
- ],
480
- [
481
- {
482
- type: "text",
483
- props: {
484
- content: "<h3>Professional Package</h3><p><strong>$199/month</strong></p><ul><li>25 Projects</li><li>100GB Storage</li><li>Priority Support</li><li>Advanced Analytics</li></ul>"
485
- }
486
- },
487
- {
488
- type: "button",
489
- props: {
490
- text: "Choose Professional",
491
- link: "/pricing/professional"
492
- }
493
- }
494
- ],
495
- [
496
- {
497
- type: "text",
498
- props: {
499
- content: "<h3>Enterprise Package</h3><p><strong>$499/month</strong></p><ul><li>Unlimited Projects</li><li>1TB Storage</li><li>24/7 Phone Support</li><li>Custom Integrations</li><li>Dedicated Account Manager</li></ul>"
500
- }
501
- },
502
- {
503
- type: "button",
504
- props: {
505
- text: "Contact Sales",
506
- link: "/contact/enterprise"
507
- }
508
- }
509
- ]
510
- ]
511
- }
512
- },
513
- {
514
- description: "Documentation sections with technical content",
515
- type: "tabs",
516
- props: {
517
- tabs: [
518
- { label: "Getting Started" },
519
- { label: "API Reference" },
520
- { label: "Examples" },
521
- { label: "Troubleshooting" }
522
- ],
523
- defaultTab: 0,
524
- tabStyle: "underline",
525
- tabPosition: "top",
526
- padding: "1.5rem",
527
- colorPreset: {
528
- color: "neutral-50"
529
- },
530
- $children: [
531
- [
532
- {
533
- type: "text",
534
- props: {
535
- content: "<h3>Getting Started</h3><p>Welcome to our platform! Here's how to get started:</p><ol><li>Create an account</li><li>Set up your first project</li><li>Invite team members</li></ol>"
536
- }
537
- }
538
- ],
539
- [
540
- {
541
- type: "text",
542
- props: {
543
- content: "<h3>API Reference</h3><p>Our REST API provides programmatic access to all features:</p><pre>GET /api/v1/projects</pre><pre>POST /api/v1/projects</pre>"
544
- }
545
- }
546
- ],
547
- [
548
- {
549
- type: "text",
550
- props: {
551
- content: "<h3>Code Examples</h3><p>Here are some common use cases:</p><pre>curl -X GET https://api.example.com/projects</pre>"
552
- }
553
- }
554
- ],
555
- [
556
- {
557
- type: "text",
558
- props: {
559
- content: "<h3>Troubleshooting</h3><p><strong>Issue:</strong> Cannot connect to API</p><p><strong>Solution:</strong> Check your API key and network connection.</p>"
560
- }
561
- }
562
- ]
563
- ]
564
- }
565
- }
566
- ];
567
-
568
- export {
569
- manifest,
570
- examples
571
- };
572
- //# sourceMappingURL=chunk-YWOTQWIQ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/shared/bricks/manifests/tabs.manifest.ts"],"sourcesContent":["import { defineBrickManifest } from \"~/shared/brick-manifest\";\nimport { defineProps } from \"../props/helpers\";\nimport { Type } from \"@sinclair/typebox\";\nimport { borderRef, roundingRef } from \"../props/border\";\nimport { shadowRef } from \"../props/effects\";\nimport type { BrickProps } from \"../props/types\";\nimport { cssLengthRef } from \"../props/css-length\";\nimport { HiOutlineViewColumns } from \"react-icons/hi2\";\nimport { colorPresetRef } from \"../props/color-preset\";\nimport { loopRef } from \"../props/dynamic\";\nimport { StringEnum } from \"~/shared/utils/string-enum\";\nimport type { BrickExample } from \"./_types\";\n\n// Tab configuration schema\nconst tabRef = Type.Object({\n label: Type.String({\n title: \"Tab Label\",\n description: \"The text shown on the tab button\",\n \"ai:instructions\": \"Use a short, descriptive label for the tab\",\n }),\n id: Type.Optional(\n Type.String({\n title: \"Tab ID\",\n description: \"Unique identifier for the tab (auto-generated if not provided)\",\n }),\n ),\n});\n\nexport const manifest = defineBrickManifest({\n type: \"tabs\",\n category: \"container\",\n name: \"Tabs\",\n description: \"A tabbed container that displays different content panels based on the selected tab.\",\n aiInstructions:\n \"Tabs are containers for organizing content into multiple panels. Each tab has a label and contains child bricks. Users can click tab buttons to switch between different content panels. Ideal for organizing related content, settings panels, or product information.\",\n isContainer: true,\n defaultWidth: {\n desktop: \"100%\",\n mobile: \"100%\",\n },\n defaultHeight: {\n desktop: \"auto\",\n },\n icon: HiOutlineViewColumns,\n props: defineProps({\n colorPreset: Type.Optional(\n colorPresetRef({\n title: \"Color\",\n }),\n ),\n tabs: Type.Array(tabRef, {\n title: \"Tabs\",\n description: \"List of tab configurations\",\n default: [{ label: \"Tab 1\" }, { label: \"Tab 2\" }],\n \"ai:instructions\":\n \"Each tab should have a descriptive label. Content for each tab is defined in the $children array.\",\n examples: [\n [{ label: \"Overview\" }, { label: \"Features\" }, { label: \"Pricing\" }],\n [{ label: \"About\" }, { label: \"Services\" }, { label: \"Contact\" }],\n ],\n }),\n defaultTab: Type.Optional(\n Type.Number({\n title: \"Default Tab\",\n description: \"Index of the tab to show by default (0-based)\",\n default: 0,\n minimum: 0,\n \"ai:instructions\": \"Use 0 for the first tab, 1 for the second tab, etc.\",\n }),\n ),\n tabPosition: Type.Optional(\n StringEnum([\"top\", \"bottom\"], {\n title: \"Tab Position\",\n description: \"Position of the tab buttons relative to content\",\n default: \"top\",\n \"ai:instructions\":\n \"Use 'top' for tabs above content (most common) or 'bottom' for tabs below content\",\n }),\n ),\n tabStyle: Type.Optional(\n StringEnum([\"pills\", \"underline\", \"bordered\"], {\n title: \"Tab Style\",\n description: \"Visual style of the tab buttons\",\n default: \"underline\",\n \"ai:instructions\":\n \"Pills are rounded buttons, underline shows a line under active tab, bordered shows tabs with borders\",\n }),\n ),\n fullWidth: Type.Optional(\n Type.Boolean({\n title: \"Full Width Tabs\",\n description: \"Make tab buttons span the full width of the container\",\n default: false,\n \"ai:instructions\": \"Enable this to make tab buttons evenly distribute across the full width\",\n }),\n ),\n padding: Type.Optional(\n cssLengthRef({\n default: \"1.5rem\",\n description: \"Padding inside each tab panel.\",\n \"ai:instructions\": \"Use values like '1rem', '1.5rem', or '2rem' for tab content padding\",\n title: \"Content Padding\",\n \"ui:placeholder\": \"Not specified\",\n \"ui:styleId\": \"styles:padding\",\n }),\n ),\n gap: Type.Optional(\n cssLengthRef({\n title: \"Tab Gap\",\n default: \"0.5rem\",\n description: \"Gap between tab buttons.\",\n \"ai:instructions\": \"Small values like '0.25rem' or '0.5rem' work best for tab spacing\",\n \"ui:placeholder\": \"Not specified\",\n \"ui:styleId\": \"styles:gap\",\n }),\n ),\n rounding: Type.Optional(\n roundingRef({\n default: \"rounded-md\",\n }),\n ),\n border: Type.Optional(borderRef()),\n shadow: Type.Optional(shadowRef()),\n loop: Type.Optional(loopRef()),\n $children: Type.Array(Type.Array(Type.Any()), {\n \"ui:field\": \"hidden\",\n description: \"Array of child brick arrays - each sub-array represents the content for one tab\",\n default: [[], []],\n examples: [\n [\n // Tab 1 content\n [\n {\n type: \"text\",\n props: {\n content: \"<h3>Overview</h3><p>This is the overview tab content.</p>\",\n },\n },\n ],\n // Tab 2 content\n [\n {\n type: \"text\",\n props: {\n content: \"<h3>Features</h3><p>Here are our key features.</p>\",\n },\n },\n {\n type: \"button\",\n props: {\n text: \"Learn More\",\n link: \"/features\",\n },\n },\n ],\n ],\n ],\n }),\n }),\n});\n\nexport type Manifest = typeof manifest;\n\nexport const examples: BrickExample<Manifest>[] = [\n {\n description: \"Simple tabs with basic content in each panel\",\n type: \"tabs\",\n props: {\n tabs: [{ label: \"About\" }, { label: \"Services\" }, { label: \"Contact\" }],\n defaultTab: 0,\n tabStyle: \"underline\",\n $children: [\n [\n {\n type: \"text\",\n props: {\n content: \"<h3>About Us</h3><p>We are a company focused on delivering exceptional results.</p>\",\n },\n },\n ],\n [\n {\n type: \"text\",\n props: {\n content: \"<h3>Our Services</h3><p>We offer a wide range of professional services.</p>\",\n },\n },\n {\n type: \"button\",\n props: {\n text: \"View All Services\",\n link: \"/services\",\n },\n },\n ],\n [\n {\n type: \"text\",\n props: {\n content:\n \"<h3>Contact Information</h3><p>Email: hello@company.com</p><p>Phone: (555) 123-4567</p>\",\n },\n },\n ],\n ],\n },\n },\n {\n description: \"Product information tabs with pills style and custom styling\",\n type: \"tabs\",\n props: {\n tabs: [{ label: \"Overview\" }, { label: \"Specifications\" }, { label: \"Reviews\" }, { label: \"Support\" }],\n defaultTab: 0,\n tabStyle: \"pills\",\n fullWidth: true,\n colorPreset: {\n color: \"primary-50\",\n },\n border: {\n width: \"border\",\n color: \"border-primary-200\",\n },\n rounding: \"rounded-lg\",\n padding: \"2rem\",\n $children: [\n [\n {\n type: \"text\",\n props: {\n content: \"<h3>Product Overview</h3><p>This product revolutionizes the way you work.</p>\",\n },\n },\n {\n type: \"image\",\n props: {\n src: \"https://via.placeholder.com/400x200\",\n alt: \"Product image\",\n },\n },\n ],\n [\n {\n type: \"text\",\n props: {\n content:\n '<h3>Technical Specifications</h3><ul><li>Weight: 2.5 lbs</li><li>Dimensions: 12\" x 8\" x 2\"</li><li>Battery: 8 hours</li></ul>',\n },\n },\n ],\n [\n {\n type: \"text\",\n props: {\n content:\n '<h3>Customer Reviews</h3><p>★★★★★ \"Amazing product, highly recommend!\"</p><p>★★★★☆ \"Great value for money.\"</p>',\n },\n },\n ],\n [\n {\n type: \"text\",\n props: {\n content: \"<h3>Support</h3><p>Need help? Contact our support team.</p>\",\n },\n },\n {\n type: \"button\",\n props: {\n text: \"Contact Support\",\n link: \"/support\",\n },\n },\n ],\n ],\n },\n },\n {\n description: \"Portfolio sections with bordered tabs\",\n type: \"tabs\",\n props: {\n tabs: [{ label: \"Web Design\" }, { label: \"Mobile Apps\" }, { label: \"Branding\" }],\n defaultTab: 0,\n tabStyle: \"bordered\",\n shadow: \"shadow-md\",\n rounding: \"rounded-xl\",\n $children: [\n [\n {\n type: \"text\",\n props: {\n content: \"<h3>Web Design Projects</h3><p>Beautiful, responsive websites that convert.</p>\",\n },\n },\n {\n type: \"image\",\n props: {\n src: \"https://via.placeholder.com/600x300\",\n alt: \"Web design portfolio\",\n },\n },\n ],\n [\n {\n type: \"text\",\n props: {\n content: \"<h3>Mobile Applications</h3><p>Native and cross-platform mobile solutions.</p>\",\n },\n },\n {\n type: \"image\",\n props: {\n src: \"https://via.placeholder.com/300x500\",\n alt: \"Mobile app portfolio\",\n },\n },\n ],\n [\n {\n type: \"text\",\n props: {\n content:\n \"<h3>Brand Identity</h3><p>Comprehensive branding solutions for modern businesses.</p>\",\n },\n },\n {\n type: \"image\",\n props: {\n src: \"https://via.placeholder.com/500x400\",\n alt: \"Branding portfolio\",\n },\n },\n ],\n ],\n },\n },\n {\n description: \"FAQ sections with bottom-positioned tabs\",\n type: \"tabs\",\n props: {\n tabs: [{ label: \"General\" }, { label: \"Billing\" }, { label: \"Technical\" }],\n defaultTab: 0,\n tabPosition: \"bottom\",\n tabStyle: \"underline\",\n padding: \"1.5rem\",\n $children: [\n [\n {\n type: \"text\",\n props: {\n content:\n \"<h3>General Questions</h3><p><strong>What is your company about?</strong></p><p>We provide excellent services to our customers.</p><p><strong>Where are you located?</strong></p><p>We have offices worldwide.</p>\",\n },\n },\n ],\n [\n {\n type: \"text\",\n props: {\n content:\n \"<h3>Billing Questions</h3><p><strong>How does billing work?</strong></p><p>We bill monthly based on usage.</p><p><strong>Can I change my plan?</strong></p><p>Yes, you can upgrade or downgrade anytime.</p>\",\n },\n },\n ],\n [\n {\n type: \"text\",\n props: {\n content:\n \"<h3>Technical Support</h3><p><strong>How do I reset my password?</strong></p><p>Use the forgot password link on the login page.</p><p><strong>Is there an API?</strong></p><p>Yes, we have a comprehensive REST API.</p>\",\n },\n },\n ],\n ],\n },\n },\n {\n description: \"Team member profiles using teamMembers query with dynamic tabs\",\n type: \"tabs\",\n props: {\n loop: {\n over: \"teamMembers\",\n },\n tabs: [{ label: \"{{teamMembers.name}}\" }],\n tabStyle: \"pills\",\n fullWidth: false,\n colorPreset: {\n color: \"secondary-100\",\n },\n padding: \"2rem\",\n $children: [\n [\n {\n type: \"image\",\n props: {\n src: \"{{teamMembers.photo}}\",\n alt: \"{{teamMembers.name}}\",\n },\n },\n {\n type: \"text\",\n props: {\n content:\n \"<h3>{{teamMembers.name}}</h3><p><strong>{{teamMembers.position}}</strong></p><p>{{teamMembers.bio}}</p><p>Email: {{teamMembers.email}}</p>\",\n },\n },\n ],\n ],\n },\n },\n {\n description: \"Product categories using productCategories query\",\n type: \"tabs\",\n props: {\n loop: {\n over: \"productCategories\",\n },\n tabs: [{ label: \"{{productCategories.categoryName}}\" }],\n tabStyle: \"bordered\",\n fullWidth: true,\n border: {\n width: \"border-2\",\n color: \"border-primary-300\",\n },\n rounding: \"rounded-lg\",\n shadow: \"shadow-lg\",\n $children: [\n [\n {\n type: \"text\",\n props: {\n content:\n \"<h3>{{productCategories.categoryName}}</h3><p>{{productCategories.description}}</p><p>{{productCategories.productCount}} products available</p>\",\n },\n },\n {\n type: \"button\",\n props: {\n text: \"Browse {{productCategories.categoryName}}\",\n link: \"/products/{{productCategories.slug}}\",\n },\n },\n ],\n ],\n },\n },\n {\n description: \"Service packages with pricing information\",\n type: \"tabs\",\n props: {\n tabs: [{ label: \"Basic\" }, { label: \"Professional\" }, { label: \"Enterprise\" }],\n defaultTab: 1,\n tabStyle: \"pills\",\n fullWidth: true,\n colorPreset: {\n color: \"accent-50\",\n },\n border: {\n width: \"border\",\n color: \"border-accent-200\",\n },\n rounding: \"rounded-xl\",\n shadow: \"shadow-md\",\n padding: \"2.5rem\",\n $children: [\n [\n {\n type: \"text\",\n props: {\n content:\n \"<h3>Basic Package</h3><p><strong>$99/month</strong></p><ul><li>5 Projects</li><li>10GB Storage</li><li>Email Support</li></ul>\",\n },\n },\n {\n type: \"button\",\n props: {\n text: \"Choose Basic\",\n link: \"/pricing/basic\",\n },\n },\n ],\n [\n {\n type: \"text\",\n props: {\n content:\n \"<h3>Professional Package</h3><p><strong>$199/month</strong></p><ul><li>25 Projects</li><li>100GB Storage</li><li>Priority Support</li><li>Advanced Analytics</li></ul>\",\n },\n },\n {\n type: \"button\",\n props: {\n text: \"Choose Professional\",\n link: \"/pricing/professional\",\n },\n },\n ],\n [\n {\n type: \"text\",\n props: {\n content:\n \"<h3>Enterprise Package</h3><p><strong>$499/month</strong></p><ul><li>Unlimited Projects</li><li>1TB Storage</li><li>24/7 Phone Support</li><li>Custom Integrations</li><li>Dedicated Account Manager</li></ul>\",\n },\n },\n {\n type: \"button\",\n props: {\n text: \"Contact Sales\",\n link: \"/contact/enterprise\",\n },\n },\n ],\n ],\n },\n },\n {\n description: \"Documentation sections with technical content\",\n type: \"tabs\",\n props: {\n tabs: [\n { label: \"Getting Started\" },\n { label: \"API Reference\" },\n { label: \"Examples\" },\n { label: \"Troubleshooting\" },\n ],\n defaultTab: 0,\n tabStyle: \"underline\",\n tabPosition: \"top\",\n padding: \"1.5rem\",\n colorPreset: {\n color: \"neutral-50\",\n },\n $children: [\n [\n {\n type: \"text\",\n props: {\n content:\n \"<h3>Getting Started</h3><p>Welcome to our platform! Here's how to get started:</p><ol><li>Create an account</li><li>Set up your first project</li><li>Invite team members</li></ol>\",\n },\n },\n ],\n [\n {\n type: \"text\",\n props: {\n content:\n \"<h3>API Reference</h3><p>Our REST API provides programmatic access to all features:</p><pre>GET /api/v1/projects</pre><pre>POST /api/v1/projects</pre>\",\n },\n },\n ],\n [\n {\n type: \"text\",\n props: {\n content:\n \"<h3>Code Examples</h3><p>Here are some common use cases:</p><pre>curl -X GET https://api.example.com/projects</pre>\",\n },\n },\n ],\n [\n {\n type: \"text\",\n props: {\n content:\n \"<h3>Troubleshooting</h3><p><strong>Issue:</strong> Cannot connect to API</p><p><strong>Solution:</strong> Check your API key and network connection.</p>\",\n },\n },\n ],\n ],\n },\n },\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,SAAS,YAAY;AAKrB,SAAS,4BAA4B;AAOrC,IAAM,SAAS,KAAK,OAAO;AAAA,EACzB,OAAO,KAAK,OAAO;AAAA,IACjB,OAAO;AAAA,IACP,aAAa;AAAA,IACb,mBAAmB;AAAA,EACrB,CAAC;AAAA,EACD,IAAI,KAAK;AAAA,IACP,KAAK,OAAO;AAAA,MACV,OAAO;AAAA,MACP,aAAa;AAAA,IACf,CAAC;AAAA,EACH;AACF,CAAC;AAEM,IAAM,WAAW,oBAAoB;AAAA,EAC1C,MAAM;AAAA,EACN,UAAU;AAAA,EACV,MAAM;AAAA,EACN,aAAa;AAAA,EACb,gBACE;AAAA,EACF,aAAa;AAAA,EACb,cAAc;AAAA,IACZ,SAAS;AAAA,IACT,QAAQ;AAAA,EACV;AAAA,EACA,eAAe;AAAA,IACb,SAAS;AAAA,EACX;AAAA,EACA,MAAM;AAAA,EACN,OAAO,YAAY;AAAA,IACjB,aAAa,KAAK;AAAA,MAChB,eAAe;AAAA,QACb,OAAO;AAAA,MACT,CAAC;AAAA,IACH;AAAA,IACA,MAAM,KAAK,MAAM,QAA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AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,aAAa;AAAA,IACb,MAAM;AAAA,IACN,OAAO;AAAA,MACL,MAAM;AAAA,QACJ,EAAE,OAAO,kBAAkB;AAAA,QAC3B,EAAE,OAAO,gBAAgB;AAAA,QACzB,EAAE,OAAO,WAAW;AAAA,QACpB,EAAE,OAAO,kBAAkB;AAAA,MAC7B;AAAA,MACA,YAAY;AAAA,MACZ,UAAU;AAAA,MACV,aAAa;AAAA,MACb,SAAS;AAAA,MACT,aAAa;AAAA,QACX,OAAO;AAAA,MACT;AAAA,MACA,WAAW;AAAA,QACT;AAAA,UACE;AAAA,YACE,MAAM;AAAA,YACN,OAAO;AAAA,cACL,SACE;AAAA,YACJ;AAAA,UACF;AAAA,QACF;AAAA,QACA;AAAA,UACE;AAAA,YACE,MAAM;AAAA,YACN,OAAO;AAAA,cACL,SACE;AAAA,YACJ;AAAA,UACF;AAAA,QACF;AAAA,QACA;AAAA,UACE;AAAA,YACE,MAAM;AAAA,YACN,OAAO;AAAA,cACL,SACE;AAAA,YACJ;AAAA,UACF;AAAA,QACF;AAAA,QACA;AAAA,UACE;AAAA,YACE,MAAM;AAAA,YACN,OAAO;AAAA,cACL,SACE;AAAA,YACJ;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/shared/bricks/props/align.ts"],"sourcesContent":["import type { Static, StringOptions } from \"@sinclair/typebox\";\nimport { StringEnum } from \"~/shared/utils/string-enum\";\nimport { typedRef } from \"~/shared/utils/typed-ref\";\n\nexport function justifyContent(options: StringOptions = {}) {\n return StringEnum(\n [\"justify-start\", \"justify-center\", \"justify-end\", \"justify-between\", \"justify-around\", \"justify-evenly\"],\n {\n enumNames: [\"Start\", \"Center\", \"End\", \"Between\", \"Around\", \"Evenly\"],\n // $id: \"styles:justifyContent\",\n title: \"Justify bricks\",\n \"ui:field\": \"justify-content\",\n \"ui:responsive\": true,\n \"ui:styleId\": \"styles:justifyContent\",\n examples: [\"justify-center\", \"justify-evenly\"],\n ...options,\n },\n );\n}\n\nexport type JustifyContentSettings = Static<ReturnType<typeof justifyContent>>;\n\nexport function justifyContentRef(options: StringOptions = {}) {\n return typedRef(\"styles:justifyContent\", options);\n}\n\nexport function alignItems(options: StringOptions = {}) {\n return StringEnum([\"items-start\", \"items-center\", \"items-end\", \"items-stretch\"], {\n enumNames: [\"Start\", \"Center\", \"End\", \"Stretch\"],\n // $id: \"styles:alignItems\",\n title: \"Align bricks\",\n \"ui:field\": \"align-items\",\n \"ui:responsive\": true,\n \"ui:styleId\": \"styles:alignItems\",\n examples: [\"items-center\", \"items-stretch\"],\n ...options,\n });\n}\n\nexport type AlignItemsSettings = Static<ReturnType<typeof alignItems>>;\n\nexport function alignItemsRef(options: StringOptions = {}) {\n return typedRef(\"styles:alignItems\", options);\n}\n\nexport function alignSelf(options: StringOptions = {}) {\n return StringEnum([\"self-auto\", \"self-start\", \"self-center\", \"self-end\", \"self-stretch\"], {\n enumNames: [\"Auto\", \"Start\", \"Center\", \"End\", \"Stretch\"],\n default: \"self-auto\",\n // $id: \"styles:alignSelf\",\n title: \"Align self\",\n \"ui:field\": \"align-self\",\n \"ui:responsive\": true,\n \"ui:styleId\": \"styles:alignSelf\",\n ...options,\n });\n}\n\nexport type AlignSelfSettings = Static<ReturnType<typeof alignSelf>>;\n\nexport function alignSelfRef(options: StringOptions = {}) {\n return typedRef(\"styles:alignSelf\", options);\n}\n"],"mappings":";;;;;;;;;;AAIO,SAAS,eAAe,UAAyB,CAAC,GAAG;AAC1D,SAAO;AAAA,IACL,CAAC,iBAAiB,kBAAkB,eAAe,mBAAmB,kBAAkB,gBAAgB;AAAA,IACxG;AAAA,MACE,WAAW,CAAC,SAAS,UAAU,OAAO,WAAW,UAAU,QAAQ;AAAA;AAAA,MAEnE,OAAO;AAAA,MACP,YAAY;AAAA,MACZ,iBAAiB;AAAA,MACj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