@upstart.gg/sdk 0.0.78 → 0.0.80

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 (296) hide show
  1. package/dist/node/cli/api.js +3 -3
  2. package/dist/node/cli/commands/build/cmd-build.js +1 -1
  3. package/dist/node/cli/commands/login/cmd-login.js +8 -8
  4. package/dist/node/cli/commands/logout/cmd-logout.js +3 -3
  5. package/dist/node/cli/commands/publish/cmd-publish.js +19 -19
  6. package/dist/node/cli/commands/publish/parse-gitignore.d.ts +1 -1
  7. package/dist/node/cli/commands/publish/parse-gitignore.js +2 -2
  8. package/dist/node/cli/commands/publish/uploader.js +6 -6
  9. package/dist/node/cli/constants.d.ts +2 -2
  10. package/dist/node/cli/constants.d.ts.map +1 -1
  11. package/dist/node/cli/constants.js +2 -2
  12. package/dist/node/cli/is-logged-in.js +3 -3
  13. package/dist/node/cli/program.js +16 -16
  14. package/dist/node/cli/store.js +2 -2
  15. package/dist/node/cli/types.js +1 -1
  16. package/dist/node/cli/utils.js +1 -1
  17. package/dist/node/shared/config.d.ts +1 -1
  18. package/dist/node/shared/config.d.ts.map +1 -1
  19. package/dist/node/shared/config.js +6 -6
  20. package/dist/node/shared/logger.d.ts +2 -2
  21. package/dist/node/shared/logger.d.ts.map +1 -1
  22. package/dist/node/shared/logger.js +3 -3
  23. package/dist/shared/ajv.d.ts +1 -0
  24. package/dist/shared/ajv.d.ts.map +1 -1
  25. package/dist/shared/ajv.js +2 -2
  26. package/dist/shared/analytics/init.js +1 -1
  27. package/dist/shared/analytics/track.js +1 -1
  28. package/dist/shared/analytics/types.js +1 -1
  29. package/dist/shared/attributes.d.ts +18 -13
  30. package/dist/shared/attributes.d.ts.map +1 -1
  31. package/dist/shared/attributes.js +2 -2
  32. package/dist/shared/brick-manifest.d.ts +95 -46
  33. package/dist/shared/brick-manifest.d.ts.map +1 -1
  34. package/dist/shared/brick-manifest.js +2 -2
  35. package/dist/shared/bricks/manifests/all-manifests.d.ts +2 -3
  36. package/dist/shared/bricks/manifests/all-manifests.d.ts.map +1 -1
  37. package/dist/shared/bricks/manifests/all-manifests.js +2 -2
  38. package/dist/shared/bricks/manifests/button.manifest.d.ts +43 -124
  39. package/dist/shared/bricks/manifests/button.manifest.d.ts.map +1 -1
  40. package/dist/shared/bricks/manifests/button.manifest.js +2 -2
  41. package/dist/shared/bricks/manifests/card.manifest.d.ts +76 -137
  42. package/dist/shared/bricks/manifests/card.manifest.d.ts.map +1 -1
  43. package/dist/shared/bricks/manifests/card.manifest.js +2 -2
  44. package/dist/shared/bricks/manifests/carousel.manifest.d.ts +40 -124
  45. package/dist/shared/bricks/manifests/carousel.manifest.d.ts.map +1 -1
  46. package/dist/shared/bricks/manifests/carousel.manifest.js +2 -2
  47. package/dist/shared/bricks/manifests/container.manifest.d.ts +205 -123
  48. package/dist/shared/bricks/manifests/container.manifest.d.ts.map +1 -1
  49. package/dist/shared/bricks/manifests/container.manifest.js +2 -2
  50. package/dist/shared/bricks/manifests/countdown.manifest.d.ts +40 -76
  51. package/dist/shared/bricks/manifests/countdown.manifest.d.ts.map +1 -1
  52. package/dist/shared/bricks/manifests/countdown.manifest.js +2 -2
  53. package/dist/shared/bricks/manifests/footer.manifest.d.ts +64 -75
  54. package/dist/shared/bricks/manifests/footer.manifest.d.ts.map +1 -1
  55. package/dist/shared/bricks/manifests/footer.manifest.js +2 -2
  56. package/dist/shared/bricks/manifests/form.manifest.d.ts +40 -78
  57. package/dist/shared/bricks/manifests/form.manifest.d.ts.map +1 -1
  58. package/dist/shared/bricks/manifests/form.manifest.js +2 -2
  59. package/dist/shared/bricks/manifests/generic-component.manifest.d.ts +43 -124
  60. package/dist/shared/bricks/manifests/generic-component.manifest.d.ts.map +1 -1
  61. package/dist/shared/bricks/manifests/generic-component.manifest.js +2 -2
  62. package/dist/shared/bricks/manifests/header.manifest.d.ts +257 -75
  63. package/dist/shared/bricks/manifests/header.manifest.d.ts.map +1 -1
  64. package/dist/shared/bricks/manifests/header.manifest.js +2 -2
  65. package/dist/shared/bricks/manifests/hero.manifest.d.ts +100 -113
  66. package/dist/shared/bricks/manifests/hero.manifest.d.ts.map +1 -1
  67. package/dist/shared/bricks/manifests/hero.manifest.js +2 -2
  68. package/dist/shared/bricks/manifests/icon.manifest.d.ts +40 -76
  69. package/dist/shared/bricks/manifests/icon.manifest.d.ts.map +1 -1
  70. package/dist/shared/bricks/manifests/icon.manifest.js +2 -2
  71. package/dist/shared/bricks/manifests/image.manifest.d.ts +84 -77
  72. package/dist/shared/bricks/manifests/image.manifest.d.ts.map +1 -1
  73. package/dist/shared/bricks/manifests/image.manifest.js +2 -2
  74. package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts +184 -0
  75. package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts.map +1 -0
  76. package/dist/shared/bricks/manifests/images-gallery.manifest.js +3 -0
  77. package/dist/shared/bricks/manifests/map.manifest.d.ts +40 -74
  78. package/dist/shared/bricks/manifests/map.manifest.d.ts.map +1 -1
  79. package/dist/shared/bricks/manifests/map.manifest.js +2 -2
  80. package/dist/shared/bricks/manifests/sidebar.manifest.d.ts +57 -0
  81. package/dist/shared/bricks/manifests/sidebar.manifest.d.ts.map +1 -0
  82. package/dist/shared/bricks/manifests/sidebar.manifest.js +3 -0
  83. package/dist/shared/bricks/manifests/social-links.manifest.d.ts +40 -76
  84. package/dist/shared/bricks/manifests/social-links.manifest.d.ts.map +1 -1
  85. package/dist/shared/bricks/manifests/social-links.manifest.js +2 -2
  86. package/dist/shared/bricks/manifests/tests/header.manifest.test.d.ts +2 -0
  87. package/dist/shared/bricks/manifests/tests/header.manifest.test.d.ts.map +1 -0
  88. package/dist/shared/bricks/manifests/text.manifest.d.ts +87 -118
  89. package/dist/shared/bricks/manifests/text.manifest.d.ts.map +1 -1
  90. package/dist/shared/bricks/manifests/text.manifest.js +2 -2
  91. package/dist/shared/bricks/manifests/video.manifest.d.ts +40 -78
  92. package/dist/shared/bricks/manifests/video.manifest.d.ts.map +1 -1
  93. package/dist/shared/bricks/manifests/video.manifest.js +2 -2
  94. package/dist/shared/bricks/props/_docs-common-styles.d.ts +59 -0
  95. package/dist/shared/bricks/props/_docs-common-styles.d.ts.map +1 -0
  96. package/dist/shared/bricks/props/_docs-common-styles.js +3 -0
  97. package/dist/shared/bricks/props/_style-presets.d.ts +18 -0
  98. package/dist/shared/bricks/props/_style-presets.d.ts.map +1 -0
  99. package/dist/shared/bricks/props/_style-presets.js +3 -0
  100. package/dist/shared/bricks/props/align.d.ts +15 -0
  101. package/dist/shared/bricks/props/align.d.ts.map +1 -0
  102. package/dist/shared/bricks/props/align.js +3 -0
  103. package/dist/shared/bricks/props/background.d.ts +23 -0
  104. package/dist/shared/bricks/props/background.d.ts.map +1 -0
  105. package/dist/shared/bricks/props/background.js +3 -0
  106. package/dist/shared/bricks/props/boolean.d.ts +4 -0
  107. package/dist/shared/bricks/props/boolean.d.ts.map +1 -0
  108. package/dist/shared/bricks/props/boolean.js +3 -0
  109. package/dist/shared/bricks/props/border.d.ts +27 -0
  110. package/dist/shared/bricks/props/border.d.ts.map +1 -0
  111. package/dist/shared/bricks/props/border.js +3 -0
  112. package/dist/shared/bricks/props/common.d.ts +5 -39
  113. package/dist/shared/bricks/props/common.d.ts.map +1 -1
  114. package/dist/shared/bricks/props/common.js +2 -2
  115. package/dist/shared/bricks/props/container.d.ts +73 -0
  116. package/dist/shared/bricks/props/container.d.ts.map +1 -0
  117. package/dist/shared/bricks/props/container.js +3 -0
  118. package/dist/shared/bricks/props/datasource.d.ts +18 -0
  119. package/dist/shared/bricks/props/datasource.d.ts.map +1 -0
  120. package/dist/shared/bricks/props/datasource.js +3 -0
  121. package/dist/shared/bricks/props/effects.d.ts +39 -0
  122. package/dist/shared/bricks/props/effects.d.ts.map +1 -0
  123. package/dist/shared/bricks/props/effects.js +3 -0
  124. package/dist/shared/bricks/props/helpers.d.ts +29 -0
  125. package/dist/shared/bricks/props/helpers.d.ts.map +1 -0
  126. package/dist/shared/bricks/props/helpers.js +3 -0
  127. package/dist/shared/bricks/props/image.d.ts +15 -0
  128. package/dist/shared/bricks/props/image.d.ts.map +1 -0
  129. package/dist/shared/bricks/props/image.js +3 -0
  130. package/dist/shared/bricks/props/number.d.ts +6 -0
  131. package/dist/shared/bricks/props/number.d.ts.map +1 -0
  132. package/dist/shared/bricks/props/number.js +3 -0
  133. package/dist/shared/bricks/props/padding.d.ts +4 -0
  134. package/dist/shared/bricks/props/padding.d.ts.map +1 -0
  135. package/dist/shared/bricks/props/padding.js +3 -0
  136. package/dist/shared/bricks/props/position.d.ts +6 -0
  137. package/dist/shared/bricks/props/position.d.ts.map +1 -0
  138. package/dist/shared/bricks/props/position.js +3 -0
  139. package/dist/shared/bricks/props/string.d.ts +11 -0
  140. package/dist/shared/bricks/props/string.d.ts.map +1 -0
  141. package/dist/shared/bricks/props/string.js +3 -0
  142. package/dist/shared/bricks/props/tests/align.test.d.ts +2 -0
  143. package/dist/shared/bricks/props/tests/align.test.d.ts.map +1 -0
  144. package/dist/shared/bricks/props/tests/background.test.d.ts +2 -0
  145. package/dist/shared/bricks/props/tests/background.test.d.ts.map +1 -0
  146. package/dist/shared/bricks/props/tests/border.test.d.ts +2 -0
  147. package/dist/shared/bricks/props/tests/border.test.d.ts.map +1 -0
  148. package/dist/shared/bricks/props/tests/container.test.d.ts +2 -0
  149. package/dist/shared/bricks/props/tests/container.test.d.ts.map +1 -0
  150. package/dist/shared/bricks/props/tests/effects.test.d.ts +2 -0
  151. package/dist/shared/bricks/props/tests/effects.test.d.ts.map +1 -0
  152. package/dist/shared/bricks/props/tests/helpers.test.d.ts +2 -0
  153. package/dist/shared/bricks/props/tests/helpers.test.d.ts.map +1 -0
  154. package/dist/shared/bricks/props/tests/image.test.d.ts +2 -0
  155. package/dist/shared/bricks/props/tests/image.test.d.ts.map +1 -0
  156. package/dist/shared/bricks/props/tests/padding.d.ts +2 -0
  157. package/dist/shared/bricks/props/tests/padding.d.ts.map +1 -0
  158. package/dist/shared/bricks/props/tests/string.test.d.ts +2 -0
  159. package/dist/shared/bricks/props/tests/string.test.d.ts.map +1 -0
  160. package/dist/shared/bricks/props/text.d.ts +14 -0
  161. package/dist/shared/bricks/props/text.d.ts.map +1 -0
  162. package/dist/shared/bricks/props/text.js +3 -0
  163. package/dist/shared/bricks/props/types.d.ts +43 -0
  164. package/dist/shared/bricks/props/types.d.ts.map +1 -0
  165. package/dist/shared/bricks/props/types.js +2 -0
  166. package/dist/shared/bricks.d.ts +88 -1527
  167. package/dist/shared/bricks.d.ts.map +1 -1
  168. package/dist/shared/bricks.js +2 -2
  169. package/dist/shared/chunk-3CY6AZG7.js +3 -0
  170. package/dist/shared/chunk-3YDMOB7M.js +3 -0
  171. package/dist/shared/{chunk-X7ABR5GQ.js → chunk-6GYFUI5C.js} +2 -2
  172. package/dist/shared/chunk-6I4PY5WS.js +3 -0
  173. package/dist/shared/{chunk-KXVIWTJN.js → chunk-7XTKGW6E.js} +1 -1
  174. package/dist/shared/chunk-AZ63RF3K.js +3 -0
  175. package/dist/shared/chunk-BK6LBWDI.js +3 -0
  176. package/dist/shared/chunk-BMDB2V7J.js +3 -0
  177. package/dist/shared/chunk-CSBX76ZN.js +3 -0
  178. package/dist/shared/chunk-DAPQ4JPP.js +3 -0
  179. package/dist/shared/chunk-EFJQECVB.js +3 -0
  180. package/dist/shared/chunk-F2ZVIFHO.js +3 -0
  181. package/dist/shared/chunk-FGU4BGP4.js +3 -0
  182. package/dist/shared/chunk-H6L4KRCJ.js +3 -0
  183. package/dist/shared/chunk-HIZPJNEM.js +3 -0
  184. package/dist/shared/chunk-HW5TY2QW.js +3 -0
  185. package/dist/shared/chunk-IWSVY2VC.js +3 -0
  186. package/dist/shared/chunk-JVDUEZYO.js +3 -0
  187. package/dist/shared/chunk-KB4HY432.js +3 -0
  188. package/dist/shared/chunk-LDOM2LJF.js +3 -0
  189. package/dist/shared/chunk-NFU5BF6G.js +3 -0
  190. package/dist/shared/{chunk-A3ACTIE3.js → chunk-NNVPTAAH.js} +1 -1
  191. package/dist/shared/chunk-P5FVZ5PL.js +3 -0
  192. package/dist/shared/chunk-P7WL7MYK.js +3 -0
  193. package/dist/shared/chunk-PD7P5KSV.js +3 -0
  194. package/dist/shared/chunk-PJ6HA55L.js +3 -0
  195. package/dist/shared/chunk-PSSJMWGU.js +3 -0
  196. package/dist/shared/chunk-Q4MXTCE4.js +8 -0
  197. package/dist/shared/chunk-QRBMK5UX.js +3 -0
  198. package/dist/shared/chunk-RBYYMUOZ.js +3 -0
  199. package/dist/shared/chunk-SO5M7CYA.js +3 -0
  200. package/dist/shared/chunk-SQVL4WSX.js +3 -0
  201. package/dist/shared/chunk-TQ23UATQ.js +3 -0
  202. package/dist/shared/chunk-U44NTSIO.js +3 -0
  203. package/dist/shared/chunk-U4R5EGBK.js +3 -0
  204. package/dist/shared/chunk-WJ5CDDXW.js +3 -0
  205. package/dist/shared/chunk-WOEBR25A.js +3 -0
  206. package/dist/shared/chunk-WPTVLIYS.js +3 -0
  207. package/dist/shared/{chunk-XGI243DO.js → chunk-WXKRIUTA.js} +1 -1
  208. package/dist/shared/chunk-XBX6II3M.js +3 -0
  209. package/dist/shared/chunk-XEQ2XZLQ.js +3 -0
  210. package/dist/shared/chunk-XGCBIXOO.js +3 -0
  211. package/dist/shared/chunk-XYID4ZEA.js +3 -0
  212. package/dist/shared/chunk-ZWVJMSTT.js +3 -0
  213. package/dist/shared/datarecords/external/google/oauth/config.js +1 -1
  214. package/dist/shared/datarecords/types.d.ts +2 -2
  215. package/dist/shared/datarecords/types.js +1 -1
  216. package/dist/shared/datarecords.js +1 -1
  217. package/dist/shared/datasources/external/meta/oauth/config.js +2 -2
  218. package/dist/shared/datasources/external/tiktok/oauth/config.js +2 -2
  219. package/dist/shared/datasources/external/youtube/oauth/config.js +2 -2
  220. package/dist/shared/datasources/internal/job-board/schema.d.ts +87 -0
  221. package/dist/shared/datasources/internal/job-board/schema.d.ts.map +1 -0
  222. package/dist/shared/datasources/schemas.js +2 -2
  223. package/dist/shared/datasources/types.d.ts +2 -2
  224. package/dist/shared/datasources/types.js +2 -2
  225. package/dist/shared/datasources.js +1 -1
  226. package/dist/shared/env.d.ts +6 -6
  227. package/dist/shared/env.d.ts.map +1 -1
  228. package/dist/shared/env.js +1 -1
  229. package/dist/shared/errors.js +1 -1
  230. package/dist/shared/layout-constants.js +2 -2
  231. package/dist/shared/oauth.js +2 -2
  232. package/dist/shared/page.d.ts +155 -2331
  233. package/dist/shared/page.d.ts.map +1 -1
  234. package/dist/shared/page.js +2 -2
  235. package/dist/shared/responsive.js +1 -1
  236. package/dist/shared/template.d.ts +31 -0
  237. package/dist/shared/template.d.ts.map +1 -0
  238. package/dist/shared/template.js +3 -0
  239. package/dist/shared/tests/test-config.d.ts +1 -1
  240. package/dist/shared/tests/test-config.d.ts.map +1 -1
  241. package/dist/shared/theme.d.ts.map +1 -1
  242. package/dist/shared/theme.js +2 -2
  243. package/dist/shared/themes/all-themes.js +1 -1
  244. package/dist/shared/themes/color-system.d.ts +3 -5
  245. package/dist/shared/themes/color-system.d.ts.map +1 -1
  246. package/dist/shared/themes/color-system.js +2 -2
  247. package/dist/shared/utils/canvas-data-uri.d.ts +2 -0
  248. package/dist/shared/utils/canvas-data-uri.d.ts.map +1 -0
  249. package/dist/shared/utils/invariant.js +2 -2
  250. package/dist/shared/utils/merge.d.ts +2 -0
  251. package/dist/shared/utils/merge.d.ts.map +1 -0
  252. package/dist/shared/utils/merge.js +3 -0
  253. package/dist/shared/utils/object-hash.d.ts +2 -0
  254. package/dist/shared/utils/object-hash.d.ts.map +1 -0
  255. package/dist/shared/utils/try-catch.d.ts +7 -0
  256. package/dist/shared/utils/try-catch.d.ts.map +1 -0
  257. package/package.json +6 -5
  258. package/dist/shared/bricks/manifests/images-wall.manifest.d.ts +0 -95
  259. package/dist/shared/bricks/manifests/images-wall.manifest.d.ts.map +0 -1
  260. package/dist/shared/bricks/manifests/images-wall.manifest.js +0 -3
  261. package/dist/shared/bricks/manifests/loop.manifest.d.ts +0 -105
  262. package/dist/shared/bricks/manifests/loop.manifest.d.ts.map +0 -1
  263. package/dist/shared/bricks/manifests/loop.manifest.js +0 -3
  264. package/dist/shared/bricks/props/style-presets.d.ts +0 -10
  265. package/dist/shared/bricks/props/style-presets.d.ts.map +0 -1
  266. package/dist/shared/bricks/props/style-presets.js +0 -3
  267. package/dist/shared/bricks/props/style-props.d.ts +0 -90
  268. package/dist/shared/bricks/props/style-props.d.ts.map +0 -1
  269. package/dist/shared/bricks/props/style-props.js +0 -3
  270. package/dist/shared/chunk-3PPIJUXG.js +0 -32
  271. package/dist/shared/chunk-3T2OW4FE.js +0 -14
  272. package/dist/shared/chunk-5PE57DBS.js +0 -15
  273. package/dist/shared/chunk-6G2OUITX.js +0 -3
  274. package/dist/shared/chunk-6PCNIIO5.js +0 -3
  275. package/dist/shared/chunk-AVHF4FLR.js +0 -3
  276. package/dist/shared/chunk-G42AE2ZC.js +0 -13
  277. package/dist/shared/chunk-G4K7GJZO.js +0 -3
  278. package/dist/shared/chunk-GBKDJDGW.js +0 -3
  279. package/dist/shared/chunk-GUOQD446.js +0 -22
  280. package/dist/shared/chunk-MEMG6QPT.js +0 -3
  281. package/dist/shared/chunk-NYPOZ5T2.js +0 -13
  282. package/dist/shared/chunk-PXAK7ZJ3.js +0 -3
  283. package/dist/shared/chunk-PZCWP77P.js +0 -3
  284. package/dist/shared/chunk-QQ7YEIHB.js +0 -3
  285. package/dist/shared/chunk-RRTB52G4.js +0 -9
  286. package/dist/shared/chunk-UIKVMZNI.js +0 -13
  287. package/dist/shared/chunk-WGWJHVOE.js +0 -20
  288. package/dist/shared/chunk-WX4P2YIR.js +0 -11
  289. package/dist/shared/chunk-WXSQ2ZEK.js +0 -16
  290. package/dist/shared/chunk-XS5WCEA6.js +0 -16
  291. package/dist/shared/chunk-Y3TOGUNY.js +0 -9
  292. package/dist/shared/chunk-YSMFNK4R.js +0 -20
  293. package/dist/shared/chunk-YXGFGLKH.js +0 -16
  294. package/dist/shared/chunk-ZDZXB45C.js +0 -7
  295. package/dist/shared/chunk-ZWYM64YA.js +0 -8
  296. package/dist/shared/chunk-ZYVXEGAM.js +0 -11
@@ -1,105 +0,0 @@
1
- import { type Static } from "@sinclair/typebox";
2
- export declare const manifest: import("@sinclair/typebox").TObject<{
3
- props: import("@sinclair/typebox").TObject<{
4
- id: import("@sinclair/typebox").TString;
5
- className: import("@sinclair/typebox").TString;
6
- lastTouched: import("@sinclair/typebox").TNumber;
7
- editable: import("@sinclair/typebox").TBoolean;
8
- stylePreset: import("@sinclair/typebox").TObject<{
9
- style: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ghost">, import("@sinclair/typebox").TLiteral<"plain">, import("@sinclair/typebox").TLiteral<"plain2">, import("@sinclair/typebox").TLiteral<"plain3">, import("@sinclair/typebox").TLiteral<"modern">, import("@sinclair/typebox").TLiteral<"modern2">, import("@sinclair/typebox").TLiteral<"soft">, import("@sinclair/typebox").TLiteral<"glass">, import("@sinclair/typebox").TLiteral<"elevated">, import("@sinclair/typebox").TLiteral<"outlined">, import("@sinclair/typebox").TLiteral<"paper">, import("@sinclair/typebox").TLiteral<"gradient">, import("@sinclair/typebox").TLiteral<"gradient2">, import("@sinclair/typebox").TLiteral<"gradient3">, import("@sinclair/typebox").TLiteral<"gradient4">, import("@sinclair/typebox").TLiteral<"gradient5">, import("@sinclair/typebox").TLiteral<"gradient6">, import("@sinclair/typebox").TLiteral<"callout">]>;
10
- variant: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"primary">, import("@sinclair/typebox").TLiteral<"secondary">, import("@sinclair/typebox").TLiteral<"accent">, import("@sinclair/typebox").TLiteral<"neutral">]>;
11
- }>;
12
- data: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>, import("@sinclair/typebox").TObject<{
13
- datasourceId: import("@sinclair/typebox").TString;
14
- }>]>;
15
- columns: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
16
- gap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
17
- children: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>;
18
- layoutType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"vertical">, import("@sinclair/typebox").TLiteral<"horizontal">, import("@sinclair/typebox").TLiteral<"grid">]>;
19
- }>;
20
- datarecord?: import("@sinclair/typebox").TObject<import("@sinclair/typebox").TProperties> | undefined;
21
- datasource?: import("@sinclair/typebox").TObject<import("@sinclair/typebox").TProperties> | undefined;
22
- type: import("@sinclair/typebox").TLiteral<"loop">;
23
- kind: import("@sinclair/typebox").TLiteral<string>;
24
- title: import("@sinclair/typebox").TLiteral<"Loop">;
25
- description: import("@sinclair/typebox").TLiteral<"Allow users to loop through a list of items">;
26
- icon: import("@sinclair/typebox").TLiteral<"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <!-- Main container -->\n <rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"></rect>\n\n <!-- Loop arrow -->\n <path d=\"M8 12 L12 16 L16 12\"></path>\n <path d=\"M8 12 L12 8 L16 12\"></path>\n</svg>\n ">;
27
- hideInLibrary: import("@sinclair/typebox").TBoolean;
28
- isContainer: import("@sinclair/typebox").TBoolean;
29
- preferredWidth: import("@sinclair/typebox").TObject<{
30
- mobile: import("@sinclair/typebox").TNumber;
31
- desktop: import("@sinclair/typebox").TNumber;
32
- }>;
33
- preferredHeight: import("@sinclair/typebox").TObject<{
34
- mobile: import("@sinclair/typebox").TNumber;
35
- desktop: import("@sinclair/typebox").TNumber;
36
- }>;
37
- minWidth: import("@sinclair/typebox").TObject<{
38
- mobile: import("@sinclair/typebox").TNumber;
39
- desktop: import("@sinclair/typebox").TNumber;
40
- }>;
41
- maxWidth: import("@sinclair/typebox").TObject<{
42
- mobile: import("@sinclair/typebox").TNumber;
43
- desktop: import("@sinclair/typebox").TNumber;
44
- }>;
45
- minHeight: import("@sinclair/typebox").TObject<{
46
- mobile: import("@sinclair/typebox").TNumber;
47
- desktop: import("@sinclair/typebox").TNumber;
48
- }>;
49
- }>;
50
- export type Manifest = Static<typeof manifest>;
51
- export declare const defaults: {
52
- description: "Allow users to loop through a list of items";
53
- title: "Loop";
54
- type: "loop";
55
- maxWidth: {
56
- mobile: number;
57
- desktop: number;
58
- };
59
- minHeight: {
60
- mobile: number;
61
- desktop: number;
62
- };
63
- minWidth: {
64
- mobile: number;
65
- desktop: number;
66
- };
67
- icon: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <!-- Main container -->\n <rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"></rect>\n\n <!-- Loop arrow -->\n <path d=\"M8 12 L12 16 L16 12\"></path>\n <path d=\"M8 12 L12 8 L16 12\"></path>\n</svg>\n ";
68
- kind: string;
69
- preferredWidth: {
70
- mobile: number;
71
- desktop: number;
72
- };
73
- preferredHeight: {
74
- mobile: number;
75
- desktop: number;
76
- };
77
- props: {
78
- columns?: number | undefined;
79
- gap?: number | undefined;
80
- data: any[] | {
81
- datasourceId: string;
82
- };
83
- id: string;
84
- children: any[];
85
- className: string;
86
- lastTouched: number;
87
- editable: boolean;
88
- stylePreset: {
89
- style: "soft" | "ghost" | "outlined" | "plain" | "plain2" | "plain3" | "modern" | "modern2" | "glass" | "elevated" | "paper" | "gradient" | "gradient2" | "gradient3" | "gradient4" | "gradient5" | "gradient6" | "callout";
90
- variant: "primary" | "secondary" | "accent" | "neutral";
91
- };
92
- layoutType: "grid" | "horizontal" | "vertical";
93
- };
94
- datasource: {
95
- [x: string]: unknown;
96
- [x: number]: unknown;
97
- };
98
- datarecord: {
99
- [x: string]: unknown;
100
- [x: number]: unknown;
101
- };
102
- isContainer: boolean;
103
- hideInLibrary: boolean;
104
- };
105
- //# sourceMappingURL=loop.manifest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loop.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/loop.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAMtD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkDnB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC/C,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyB,CAAC"}
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{a,b}from"../../chunk-WX4P2YIR.js";import"../../chunk-QQ7YEIHB.js";import"../../chunk-PXAK7ZJ3.js";import"../../chunk-PZCWP77P.js";export{b as defaults,a as manifest};
@@ -1,10 +0,0 @@
1
- import type { StylePreset } from "./common";
2
- import type { EffectsSettings, BackgroundSettings, BorderSettings } from "./style-props";
3
- export type StyleProperties = {
4
- text?: string;
5
- background: BackgroundSettings;
6
- border?: Partial<BorderSettings>;
7
- effects?: EffectsSettings;
8
- };
9
- export declare function getPresetStyles({ style, variant }: StylePreset): StyleProperties;
10
- //# sourceMappingURL=style-presets.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"style-presets.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/style-presets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEzF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,kBAAkB,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,WAAW,GAAG,eAAe,CA2QhF"}
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- function l({style:d,variant:r}){let t={primary:{bg:"bg-primary-50",border:"border-primary-200",text:"text-primary-900",shadow:"shadow-primary-200/50"},secondary:{bg:"bg-secondary-50",border:"border-secondary-200",text:"text-secondary-900",shadow:"shadow-secondary-200/50"},accent:{bg:"bg-accent-50",border:"border-accent-200",hover:"hover:border-accent-300",text:"text-accent-900",shadow:"shadow-accent-200/50"},neutral:{bg:"bg-neutral-50",border:"border-neutral-200",hover:"hover:border-neutral-300",text:"text-neutral-900",shadow:"shadow-neutral-200/50"}};function e(s,o=!1){switch(s){case"primary":return o?"accent":"secondary";case"secondary":return o?"primary":"accent";case"accent":return o?"secondary":"primary";case"neutral":return o?"primary":"accent"}}return{ghost:{background:{color:"transparent"},border:{width:"border-0"},text:`text-${r}-900`},plain:{background:{color:`bg-${r}-600`},border:{color:`border-${r}-900`,style:"border-solid",width:"border",radius:"rounded-sm"},effects:{shadow:"shadow-sm"},text:r==="neutral"?"text-neutral-800":`text-${r}-50`},plain2:{background:{color:`bg-${r}-400`},border:{color:`border-${r}-700`,style:"border-solid",width:"border",radius:"rounded-sm"},effects:{shadow:"shadow-sm"},text:r==="neutral"?"text-neutral-800":`text-${r}-900`},plain3:{background:{color:`bg-${r}-200`},border:{color:`border-${r}-500`,style:"border-solid",width:"border",radius:"rounded-sm"},effects:{shadow:"shadow-sm"},text:r==="neutral"?"text-neutral-800":`text-${r}-900`},callout:{background:{color:`bg-${r}-100`},border:{color:`border-${r}-400`,style:"border-solid",width:"border",radius:"rounded-lg"},text:`text-${r}-900`},elevated:{background:{color:`bg-${r}-100`},effects:{shadow:"shadow-lg"},text:`text-${r}-900`},glass:{background:{color:`bg-${r}-50`},border:{color:t[r].border,style:"border-solid",width:"border",radius:"rounded-lg"},effects:{shadow:"shadow-sm"},text:`text-${r}-900`},modern:{background:{color:`bg-${r}-100`},border:{color:`border-${r}-700`,style:"border-solid",width:"border",radius:"rounded-lg"},text:`text-${r}-900`},modern2:{background:{color:`bg-${r}-300`},border:{color:`border-${r}-700`,style:"border-solid",width:"border",radius:"rounded-lg"},text:`text-${r}-900`},soft:{background:{color:`bg-${r}-50`},border:{color:`border-${r}-300`,style:"border-solid",width:"border",radius:"rounded-lg"},text:`text-${r}-800`},gradient:{background:{color:`bg-gradient-to-tr from-${r}-200 to-${r}-50`},border:{color:`border-${r}-200`,style:"border-solid",width:"border",radius:"rounded-md"},text:"text-neutral-900"},gradient2:{background:{color:`bg-gradient-to-tr from-${r}-200 ${r==="neutral"?"to-neutral-100":`to-${e(r)}-200`}`},border:{color:`border-${r}-200`,style:"border-solid",width:"border",radius:"rounded-md"},text:"text-neutral-900"},gradient3:{background:{color:`bg-gradient-to-tr from-${r}-200 ${r==="neutral"?"to-neutral-100":`to-${e(r,!0)}-200`}`},border:{color:`border-${r}-200`,style:"border-solid",width:"border",radius:"rounded-md"},text:"text-neutral-900"},gradient4:{background:{color:`bg-gradient-to-tr from-${r}-400 to-${r}-100`},border:{color:`border-${r}-200`,style:"border-solid",width:"border",radius:"rounded-md"},text:"text-neutral-900"},gradient5:{background:{color:`bg-gradient-to-tr from-${r}-400 ${r==="neutral"?"to-neutral-200":`to-${e(r)}-400`}`},border:{color:`border-${r}-200`,style:"border-solid",width:"border",radius:"rounded-md"},text:"text-neutral-900"},gradient6:{background:{color:`bg-gradient-to-tr from-${r}-400 ${r==="neutral"?"to-neutral-200":`to-${e(r,!0)}-400`}`},border:{color:`border-${r}-200`,style:"border-solid",width:"border",radius:"rounded-md"},text:"text-neutral-900"},paper:{background:{color:`bg-${r}-50`},text:`text-${r}-800`,effects:{shadow:"shadow-md"}},outlined:{background:{color:"bg-transparent"},border:{color:`border-${r}-600`,style:"border-solid",width:"border-2",radius:"rounded-none"},text:`text-${r}-800`}}[d]}export{l as getPresetStyles};
@@ -1,90 +0,0 @@
1
- import { type Static } from "@sinclair/typebox";
2
- export declare const borderWidth: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"border-0">, import("@sinclair/typebox").TLiteral<"border">, import("@sinclair/typebox").TLiteral<"border-2">, import("@sinclair/typebox").TLiteral<"border-4">, import("@sinclair/typebox").TLiteral<"border-8">]>;
3
- export declare const borderColor: import("@sinclair/typebox").TString;
4
- export declare const borderStyle: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"border-solid">, import("@sinclair/typebox").TLiteral<"border-dashed">, import("@sinclair/typebox").TLiteral<"border-dotted">]>;
5
- export declare const borderRadius: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"rounded-none">, import("@sinclair/typebox").TLiteral<"rounded-sm">, import("@sinclair/typebox").TLiteral<"rounded-md">, import("@sinclair/typebox").TLiteral<"rounded-lg">, import("@sinclair/typebox").TLiteral<"rounded-xl">, import("@sinclair/typebox").TLiteral<"rounded-full">]>;
6
- export declare const border: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
7
- radius: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"rounded-none">, import("@sinclair/typebox").TLiteral<"rounded-sm">, import("@sinclair/typebox").TLiteral<"rounded-md">, import("@sinclair/typebox").TLiteral<"rounded-lg">, import("@sinclair/typebox").TLiteral<"rounded-xl">, import("@sinclair/typebox").TLiteral<"rounded-full">]>;
8
- style: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"border-solid">, import("@sinclair/typebox").TLiteral<"border-dashed">, import("@sinclair/typebox").TLiteral<"border-dotted">]>;
9
- color: import("@sinclair/typebox").TString;
10
- width: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"border-0">, import("@sinclair/typebox").TLiteral<"border">, import("@sinclair/typebox").TLiteral<"border-2">, import("@sinclair/typebox").TLiteral<"border-4">, import("@sinclair/typebox").TLiteral<"border-8">]>;
11
- }>>;
12
- export type BorderSettings = Static<typeof border>;
13
- export declare const padding: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"p-0">, import("@sinclair/typebox").TLiteral<"p-1">, import("@sinclair/typebox").TLiteral<"p-2">, import("@sinclair/typebox").TLiteral<"p-4">, import("@sinclair/typebox").TLiteral<"p-8">, import("@sinclair/typebox").TLiteral<"p-16">]>;
14
- export declare const dimensions: import("@sinclair/typebox").TObject<{
15
- height: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"fixed">, import("@sinclair/typebox").TLiteral<"auto">]>>;
16
- padding: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"p-0">, import("@sinclair/typebox").TLiteral<"p-1">, import("@sinclair/typebox").TLiteral<"p-2">, import("@sinclair/typebox").TLiteral<"p-4">, import("@sinclair/typebox").TLiteral<"p-8">, import("@sinclair/typebox").TLiteral<"p-16">]>>;
17
- }>;
18
- export type DimensionsSettings = Static<typeof dimensions>;
19
- export declare const backgroundColor: import("@sinclair/typebox").TString;
20
- export declare const background: import("@sinclair/typebox").TObject<{
21
- color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
22
- image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
23
- size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"cover">, import("@sinclair/typebox").TLiteral<"contain">]>>;
24
- repeat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"no-repeat">, import("@sinclair/typebox").TLiteral<"repeat">, import("@sinclair/typebox").TLiteral<"repeat-x">, import("@sinclair/typebox").TLiteral<"repeat-y">, import("@sinclair/typebox").TLiteral<"space">, import("@sinclair/typebox").TLiteral<"round">]>>;
25
- }>;
26
- export type BackgroundSettings = Static<typeof background>;
27
- export declare const effects: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
28
- shadow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"shadow-none">, import("@sinclair/typebox").TLiteral<"shadow-sm">, import("@sinclair/typebox").TLiteral<"shadow-md">, import("@sinclair/typebox").TLiteral<"shadow-lg">, import("@sinclair/typebox").TLiteral<"shadow-xl">, import("@sinclair/typebox").TLiteral<"shadow-2xl">]>;
29
- opacity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
30
- }>>;
31
- export type EffectsSettings = Static<typeof effects>;
32
- export declare const flex: import("@sinclair/typebox").TObject<{
33
- direction: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"flex-row">, import("@sinclair/typebox").TLiteral<"flex-col">]>;
34
- wrap: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"flex-wrap">, import("@sinclair/typebox").TLiteral<"flex-nowrap">]>;
35
- justify: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"justify-start">, import("@sinclair/typebox").TLiteral<"justify-center">, import("@sinclair/typebox").TLiteral<"justify-end">, import("@sinclair/typebox").TLiteral<"justify-between">, import("@sinclair/typebox").TLiteral<"justify-around">, import("@sinclair/typebox").TLiteral<"justify-evenly">]>;
36
- align: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"items-start">, import("@sinclair/typebox").TLiteral<"items-center">, import("@sinclair/typebox").TLiteral<"items-end">, import("@sinclair/typebox").TLiteral<"items-baseline">, import("@sinclair/typebox").TLiteral<"items-stretch">]>;
37
- gap: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"gap-0">, import("@sinclair/typebox").TLiteral<"gap-1">, import("@sinclair/typebox").TLiteral<"gap-2">, import("@sinclair/typebox").TLiteral<"gap-4">, import("@sinclair/typebox").TLiteral<"gap-8">, import("@sinclair/typebox").TLiteral<"gap-16">]>;
38
- }>;
39
- export type FlexSettings = Static<typeof flex>;
40
- export declare const flexProps: import("@sinclair/typebox").TObject<{
41
- flex: import("@sinclair/typebox").TObject<{
42
- direction: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"flex-row">, import("@sinclair/typebox").TLiteral<"flex-col">]>;
43
- wrap: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"flex-wrap">, import("@sinclair/typebox").TLiteral<"flex-nowrap">]>;
44
- justify: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"justify-start">, import("@sinclair/typebox").TLiteral<"justify-center">, import("@sinclair/typebox").TLiteral<"justify-end">, import("@sinclair/typebox").TLiteral<"justify-between">, import("@sinclair/typebox").TLiteral<"justify-around">, import("@sinclair/typebox").TLiteral<"justify-evenly">]>;
45
- align: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"items-start">, import("@sinclair/typebox").TLiteral<"items-center">, import("@sinclair/typebox").TLiteral<"items-end">, import("@sinclair/typebox").TLiteral<"items-baseline">, import("@sinclair/typebox").TLiteral<"items-stretch">]>;
46
- gap: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"gap-0">, import("@sinclair/typebox").TLiteral<"gap-1">, import("@sinclair/typebox").TLiteral<"gap-2">, import("@sinclair/typebox").TLiteral<"gap-4">, import("@sinclair/typebox").TLiteral<"gap-8">, import("@sinclair/typebox").TLiteral<"gap-16">]>;
47
- }>;
48
- children: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>;
49
- }>;
50
- export declare const text: import("@sinclair/typebox").TObject<{
51
- size: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"inherit">, import("@sinclair/typebox").TLiteral<"text-xs">, import("@sinclair/typebox").TLiteral<"text-sm">, import("@sinclair/typebox").TLiteral<"text-base">, import("@sinclair/typebox").TLiteral<"text-lg">, import("@sinclair/typebox").TLiteral<"text-xl">, import("@sinclair/typebox").TLiteral<"text-2xl">, import("@sinclair/typebox").TLiteral<"text-3xl">, import("@sinclair/typebox").TLiteral<"text-4xl">, import("@sinclair/typebox").TLiteral<"text-5xl">, import("@sinclair/typebox").TLiteral<"text-6xl">, import("@sinclair/typebox").TLiteral<"text-7xl">]>;
52
- color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
53
- }>;
54
- /**
55
- * No margin in common style props as bricks are usually placed in a grid
56
- */
57
- export declare const commonStyleProps: import("@sinclair/typebox").TObject<{
58
- dimensions: import("@sinclair/typebox").TObject<{
59
- height: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"fixed">, import("@sinclair/typebox").TLiteral<"auto">]>>;
60
- padding: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"p-0">, import("@sinclair/typebox").TLiteral<"p-1">, import("@sinclair/typebox").TLiteral<"p-2">, import("@sinclair/typebox").TLiteral<"p-4">, import("@sinclair/typebox").TLiteral<"p-8">, import("@sinclair/typebox").TLiteral<"p-16">]>>;
61
- }>;
62
- border: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
63
- radius: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"rounded-none">, import("@sinclair/typebox").TLiteral<"rounded-sm">, import("@sinclair/typebox").TLiteral<"rounded-md">, import("@sinclair/typebox").TLiteral<"rounded-lg">, import("@sinclair/typebox").TLiteral<"rounded-xl">, import("@sinclair/typebox").TLiteral<"rounded-full">]>;
64
- style: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"border-solid">, import("@sinclair/typebox").TLiteral<"border-dashed">, import("@sinclair/typebox").TLiteral<"border-dotted">]>;
65
- color: import("@sinclair/typebox").TString;
66
- width: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"border-0">, import("@sinclair/typebox").TLiteral<"border">, import("@sinclair/typebox").TLiteral<"border-2">, import("@sinclair/typebox").TLiteral<"border-4">, import("@sinclair/typebox").TLiteral<"border-8">]>;
67
- }>>;
68
- effects: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
69
- shadow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"shadow-none">, import("@sinclair/typebox").TLiteral<"shadow-sm">, import("@sinclair/typebox").TLiteral<"shadow-md">, import("@sinclair/typebox").TLiteral<"shadow-lg">, import("@sinclair/typebox").TLiteral<"shadow-xl">, import("@sinclair/typebox").TLiteral<"shadow-2xl">]>;
70
- opacity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
71
- }>>;
72
- background: import("@sinclair/typebox").TObject<{
73
- color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
74
- image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
75
- size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"cover">, import("@sinclair/typebox").TLiteral<"contain">]>>;
76
- repeat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"no-repeat">, import("@sinclair/typebox").TLiteral<"repeat">, import("@sinclair/typebox").TLiteral<"repeat-x">, import("@sinclair/typebox").TLiteral<"repeat-y">, import("@sinclair/typebox").TLiteral<"space">, import("@sinclair/typebox").TLiteral<"round">]>>;
77
- }>;
78
- text: import("@sinclair/typebox").TObject<{
79
- size: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"inherit">, import("@sinclair/typebox").TLiteral<"text-xs">, import("@sinclair/typebox").TLiteral<"text-sm">, import("@sinclair/typebox").TLiteral<"text-base">, import("@sinclair/typebox").TLiteral<"text-lg">, import("@sinclair/typebox").TLiteral<"text-xl">, import("@sinclair/typebox").TLiteral<"text-2xl">, import("@sinclair/typebox").TLiteral<"text-3xl">, import("@sinclair/typebox").TLiteral<"text-4xl">, import("@sinclair/typebox").TLiteral<"text-5xl">, import("@sinclair/typebox").TLiteral<"text-6xl">, import("@sinclair/typebox").TLiteral<"text-7xl">]>;
80
- color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
81
- }>;
82
- }>;
83
- export declare const color: import("@sinclair/typebox").TString;
84
- export declare const textStyleProps: import("@sinclair/typebox").TObject<{
85
- color: import("@sinclair/typebox").TString;
86
- textAlign: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text-left">, import("@sinclair/typebox").TLiteral<"text-center">, import("@sinclair/typebox").TLiteral<"text-right">, import("@sinclair/typebox").TLiteral<"text-justify">]>>;
87
- fontSize: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"inherit">, import("@sinclair/typebox").TLiteral<"text-xs">, import("@sinclair/typebox").TLiteral<"text-sm">, import("@sinclair/typebox").TLiteral<"text-base">, import("@sinclair/typebox").TLiteral<"text-lg">, import("@sinclair/typebox").TLiteral<"text-xl">, import("@sinclair/typebox").TLiteral<"text-2xl">, import("@sinclair/typebox").TLiteral<"text-3xl">, import("@sinclair/typebox").TLiteral<"text-4xl">, import("@sinclair/typebox").TLiteral<"text-5xl">, import("@sinclair/typebox").TLiteral<"text-6xl">, import("@sinclair/typebox").TLiteral<"text-7xl">]>;
88
- fontWeight: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"font-normal">, import("@sinclair/typebox").TLiteral<"font-medium">, import("@sinclair/typebox").TLiteral<"font-semibold">, import("@sinclair/typebox").TLiteral<"font-bold">, import("@sinclair/typebox").TLiteral<"font-extrabold">]>;
89
- }>;
90
- //# sourceMappingURL=style-props.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"style-props.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/style-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AA6BtD,eAAO,MAAM,WAAW,8RAgBvB,CAAC;AAEF,eAAO,MAAM,WAAW,qCAOtB,CAAC;AAEH,eAAO,MAAM,WAAW,0MAevB,CAAC;AAEF,eAAO,MAAM,YAAY,kWAkBxB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;GAqBlB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC;AAEnD,eAAO,MAAM,OAAO,qTAkBnB,CAAC;AAEF,eAAO,MAAM,UAAU;;;EAgBtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AA0B3D,eAAO,MAAM,eAAe,qCAO1B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;EAqDtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAoC3D,eAAO,MAAM,OAAO;;;GAiBnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,OAAO,CAAC,CAAC;AAErD,eAAO,MAAM,IAAI;;;;;;EAkFhB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,IAAI,CAAC,CAAC;AAE/C,eAAO,MAAM,SAAS;;;;;;;;;EAKpB,CAAC;AA0BH,eAAO,MAAM,IAAI;;;EAuBhB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;EAW3B,CAAC;AAwCH,eAAO,MAAM,KAAK,qCAOhB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;EAKzB,CAAC"}
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}from"../../chunk-MEMG6QPT.js";export{i as background,h as backgroundColor,e as border,b as borderColor,d as borderRadius,c as borderStyle,a as borderWidth,o as color,n as commonStyleProps,g as dimensions,j as effects,k as flex,l as flexProps,f as padding,m as text,p as textStyleProps};
@@ -1,32 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{a as p}from"./chunk-QQ7YEIHB.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{b as e,f as o}from"./chunk-PZCWP77P.js";import{Type as i}from"@sinclair/typebox";import{Value as r}from"@sinclair/typebox/value";var a=p({type:"countdown",kind:"widget",title:"Countdown",description:"A countdown timer",preferredWidth:{mobile:t.mobile/2,desktop:t.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
4
- <!-- Main container (centered) -->
5
- <rect x="2" y="6" width="20" height="12" rx="1" ry="1"></rect>
6
-
7
- <!-- Left digit -->
8
- <path d="M4 9 L4 15"></path>
9
- <path d="M4 9 L7 9"></path>
10
- <path d="M4 12 L7 12"></path>
11
- <path d="M4 15 L7 15"></path>
12
- <path d="M7 9 L7 15"></path>
13
-
14
- <!-- Second digit -->
15
- <path d="M9 9 L9 15"></path>
16
- <path d="M9 9 L12 9"></path>
17
- <path d="M9 12 L12 12"></path>
18
- <path d="M9 15 L12 15"></path>
19
- <path d="M12 9 L12 15"></path>
20
-
21
- <!-- Colon (tiny) -->
22
- <circle cx="15" cy="10.5" r="0.15"></circle>
23
- <circle cx="15" cy="13.5" r="0.15"></circle>
24
-
25
- <!-- Third digit -->
26
- <path d="M17 9 L17 15"></path>
27
- <path d="M17 9 L20 9"></path>
28
- <path d="M17 12 L20 12"></path>
29
- <path d="M17 15 L20 15"></path>
30
- <path d="M20 9 L20 15"></path>
31
- </svg>
32
- `,props:i.Composite([o,e])}),m=r.Create(a);export{a,m as b};
@@ -1,14 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{a as i}from"./chunk-QQ7YEIHB.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{b as t,f as o}from"./chunk-PZCWP77P.js";import{Type as r}from"@sinclair/typebox";import{Value as n}from"@sinclair/typebox/value";var p=i({type:"header",kind:"widget",title:"Header",description:"A header with logo and navigation",preferredWidth:{mobile:e.mobile/2,desktop:e.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
4
- <!-- Main container -->
5
- <rect x="3" y="11" width="18" height="8" rx="2" ry="2"></rect>
6
-
7
- <!-- Logo area (rectangular) -->
8
- <rect x="5" y="13" width="6" height="3" rx="1"></rect>
9
-
10
- <!-- Navigation menu items (right-aligned, horizontal) -->
11
- <line x1="13" y1="14" x2="15" y2="14"></line>
12
- <line x1="17" y1="14" x2="19" y2="14"></line>
13
- </svg>
14
- `,props:r.Composite([o,t])}),c=n.Create(p);export{p as a,c as b};
@@ -1,15 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{a as i}from"./chunk-QQ7YEIHB.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{b as t,h as o}from"./chunk-PZCWP77P.js";import{n as r}from"./chunk-MEMG6QPT.js";import{Type as c}from"@sinclair/typebox";import{Value as n}from"@sinclair/typebox/value";var l=i({type:"carousel",kind:"widget",title:"Carousel",description:"A carousel element",preferredWidth:{mobile:e.mobile/2,desktop:e.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
4
- <!-- Main container -->
5
- <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
-
7
- <!-- Main image rectangle -->
8
- <rect x="6" y="6" width="12" height="8" rx="1"></rect>
9
-
10
- <!-- Navigation dots with more spacing -->
11
- <circle cx="9" cy="17" r="0.5" fill="currentColor"></circle>
12
- <circle cx="12" cy="17" r="0.5" fill="currentColor"></circle>
13
- <circle cx="15" cy="17" r="0.5" fill="currentColor"></circle>
14
- </svg>
15
- `,props:c.Composite([t,o,r])}),g=n.Create(l);export{l as a,g as b};
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{a as g}from"./chunk-WX4P2YIR.js";import{b as M}from"./chunk-GBKDJDGW.js";import{a as P}from"./chunk-G42AE2ZC.js";import{a as k}from"./chunk-WXSQ2ZEK.js";import{a as L}from"./chunk-YSMFNK4R.js";import{a as x}from"./chunk-ZDZXB45C.js";import{a as B}from"./chunk-GUOQD446.js";import{a as f}from"./chunk-3PPIJUXG.js";import{a as c}from"./chunk-WGWJHVOE.js";import{a as b}from"./chunk-XS5WCEA6.js";import{a as j}from"./chunk-ZWYM64YA.js";import{a as h}from"./chunk-3T2OW4FE.js";import{a as u}from"./chunk-Y3TOGUNY.js";import{a as y}from"./chunk-ZYVXEGAM.js";import{a as O}from"./chunk-RRTB52G4.js";import{a as l}from"./chunk-NYPOZ5T2.js";import{a as m}from"./chunk-YXGFGLKH.js";import{a as d}from"./chunk-5PE57DBS.js";import{a as w}from"./chunk-UIKVMZNI.js";import{a}from"./chunk-PXAK7ZJ3.js";import{Type as e}from"@sinclair/typebox";import{customAlphabet as I}from"nanoid";var S=I("1234567890azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN",7),D=e.Object({x:e.Number({title:"X",description:"The column start (0-based) in grid units, not pixels."}),y:e.Number({title:"Y",description:"The row start (0-based) in grid units, not pixels."}),w:e.Number({title:"Width",description:"The width in columns in grid units, not pixels."}),h:e.Number({title:"Height",description:"The height in rows in grid units, not pixels."}),manualHeight:e.Optional(e.Number({description:"Do not use this field. It is used internally by the editor."})),hidden:e.Optional(e.Boolean({description:"Do not use this field. It is used internally by the editor."}))}),T=e.Object({x:e.Union([e.Number(),e.Literal("half"),e.Literal("third"),e.Literal("twoThird"),e.Literal("quarter"),e.Literal("threeQuarter")],{title:"X",description:"The column start (0-based) in grid units, not pixels. Can use aliases like 'half' to represent half of the grid."}),y:e.Number({title:"Y",description:"The row start (0-based) in grid units, not pixels."}),w:e.Union([e.Number(),e.Literal("full"),e.Literal("half"),e.Literal("third"),e.Literal("twoThird"),e.Literal("quarter"),e.Literal("threeQuarter")],{title:"Width",description:"The width in columns in grid units, not pixels. Can use aliases like 'half' to represent half of the grid."}),h:e.Number({title:"Height",description:"The height in rows in grid units, not pixels."}),hidden:e.Optional(e.Boolean({description:"Do not use this field. It is used internally by the editor."}))}),v=e.Composite([e.Union([e.Object({type:e.Literal("button"),props:l.properties.props,mobileProps:e.Optional(e.Partial(l.properties.props))}),e.Object({type:e.Literal("card"),props:m.properties.props,mobileProps:e.Optional(e.Partial(m.properties.props))}),e.Object({type:e.Literal("carousel"),props:d.properties.props,mobileProps:e.Optional(e.Partial(d.properties.props))}),e.Object({type:e.Literal("countdown"),props:f.properties.props,mobileProps:e.Optional(e.Partial(f.properties.props))}),e.Object({type:e.Literal("footer"),props:c.properties.props,mobileProps:e.Optional(e.Partial(c.properties.props))}),e.Object({type:e.Literal("form"),props:b.properties.props,mobileProps:e.Optional(e.Partial(b.properties.props))}),e.Object({type:e.Literal("header"),props:h.properties.props,mobileProps:e.Optional(e.Partial(h.properties.props))}),e.Object({type:e.Literal("hero"),props:u.properties.props,mobileProps:e.Optional(e.Partial(u.properties.props))}),e.Object({type:e.Literal("icon"),props:y.properties.props,mobileProps:e.Optional(e.Partial(y.properties.props))}),e.Object({type:e.Literal("image"),props:O.properties.props,mobileProps:e.Optional(e.Partial(O.properties.props))}),e.Object({type:e.Literal("images-wall"),props:P.properties.props,mobileProps:e.Optional(e.Partial(P.properties.props))}),e.Object({type:e.Literal("map"),props:k.properties.props,mobileProps:e.Optional(e.Partial(k.properties.props))}),e.Object({type:e.Literal("social-links"),props:L.properties.props,mobileProps:e.Optional(e.Partial(L.properties.props))}),e.Object({type:e.Literal("text"),props:x.properties.props,mobileProps:e.Optional(e.Partial(x.properties.props))}),e.Object({type:e.Literal("video"),props:B.properties.props,mobileProps:e.Optional(e.Partial(B.properties.props))}),e.Object({type:e.Literal("html-element"),props:e.Record(e.String(),e.Any()),mobileProps:e.Optional(e.Record(e.String(),e.Any()))}),e.Object({type:e.Literal("generic-component"),props:j.properties.props,mobileProps:e.Optional(e.Partial(j.properties.props))}),e.Object({type:e.Literal("loop"),props:g.properties.props,mobileProps:e.Optional(e.Partial(g.properties.props))}),e.Object({type:e.Literal("container"),props:w.properties.props,mobileProps:e.Optional(e.Partial(w.properties.props))})]),e.Object({id:e.String({title:"ID",description:"A unique identifier for the brick."}),isContainer:e.Optional(e.Boolean({default:!1})),parentId:e.Optional(e.String()),hideInLibrary:e.Optional(e.Boolean()),position:e.Object({mobile:D,desktop:D},{title:"Position",description:"The position of the brick in the layout."})})]),re=e.Composite([e.Omit(v,["id","position","manifest"]),e.Object({position:e.Object({mobile:T,desktop:T})})]);function R(t,i,o=a){return{x:t.x==="quarter"?o[i]/4:t.x==="threeQuarter"?o[i]*.75:t.x==="half"?o[i]/2:t.x==="third"?o[i]/3:t.x==="twoThird"?o[i]*2/3:t.x,y:t.y,w:t.w==="full"?o[i]:t.w==="half"?o[i]/2:t.w==="third"?o[i]/3:t.w==="quarter"?o[i]/4:t.w==="twoThird"?o[i]*2/3:t.w==="threeQuarter"?o[i]*3/4:t.w,h:t.h,hidden:t.hidden}}function pe(t){return t.map(i=>{let o=`brick-${S()}`;return{id:o,...M[i.type],...i,props:{...i.props,..."children"in i.props?{children:i.props.children.map(p=>({id:`brick-${S()}`,...M[p.type],...p,parentId:o,..."position"in p?{}:{position:{mobile:{},desktop:{}}}}))}:{}},position:{mobile:R(i.position.mobile,"mobile"),desktop:R(i.position.desktop,"desktop")}}})}var s={mobile:0,desktop:0};function se(t,i={desktop:0,mobile:0}){let o=t.map((r,N)=>{let n={...r,id:`brick-${S()}`,position:{desktop:{...r.position.desktop,y:r.position.desktop.forceY??s.desktop},...r.position.mobile?{mobile:{...r.position.mobile,y:r.position.mobile.forceY??s.mobile}}:null}};return n.position.mobile?.w===a.mobile&&N!==t.length-1&&(s.mobile+=n.position.mobile.h),n}),p=Math.max(...t.map(r=>r.position.desktop?.h??i.desktop)),C=Math.max(...t.map(r=>r.position.mobile?.h??i.mobile));return s.desktop+=p,s.mobile+=C,o}export{S as a,v as b,pe as c,se as d};
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import p from"ajv";import u from"ajv-formats";var t=new p({useDefaults:!0,strictSchema:!1});u(t,["date-time","time","date","email","hostname","ipv4","ipv6","uri","uri-reference","uuid","uri-template","json-pointer","relative-json-pointer","regex"]);t.addFormat("date-object",{validate:e=>e instanceof Date&&!Number.isNaN(e.getTime()),async:!1});function d(e){return!e||e.length===0?"Unknown validation error":e.map(r=>{let{instancePath:a,message:n,params:i}=r,o=a||"root",s=Object.entries(i||{}).map(([m,c])=>`${m}: ${c}`).join(", ");return`${o} ${n} (${s})`}).join("; ")}export{t as a,d as b};
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{a as l}from"./chunk-6PCNIIO5.js";import{i as s}from"./chunk-MEMG6QPT.js";import{Type as r}from"@sinclair/typebox";function p(t){return JSON.parse(JSON.stringify(t))}function b(t){for(let e in t)if(e.startsWith("$"))throw new Error(`Attribute names starting with '$' (like "${e}") are reserved for internal use. Please rename it.`);return p(r.Object({...g,...t}))}var a={string(t,e="",i){return r.String({title:t,default:e,...i})},number(t,e=0,i){return r.Number({title:t,default:e,...i})},boolean(t,e=!1,i){let o={"ui:field":"switch"};return r.Boolean({title:t,default:e,...o,...i})},enum(t,e,i){let o={"ui:field":"enum","ui:display":i.displayAs||"select"},{options:u,displayAs:c,...d}=i;return r.Union(u.map(n=>r.Literal(typeof n=="string"?n:n.value,{title:typeof n=="string"?n:n.title,"ui:icon":typeof n=="string"?void 0:n.icon})),{title:t,default:e,...o,...d})},file(t,e="",i={}){return r.String({title:t,default:e,...i,format:"data-url"})},url(t,e="",i={}){return r.String({title:t,default:e,...i,format:"uri"})},color(t,e="",i){let o={"ui:field":"color"};return r.String({title:t,default:e,...o,...i})},date(t,e=new Date,i={}){return r.String({title:t,default:e.toISOString(),...i,format:"date"})},datetime(t,e=new Date,i={}){return r.String({title:t,default:e.toISOString(),...i,format:"date-time"})},geolocation(t,e,i={}){return r.Object({lat:r.Number({minimum:-90,maximum:90}),lng:r.Number({minimum:-180,maximum:180}),name:r.Optional(r.String({title:"Name"}))},{title:t,default:e,...i})}},g={$pageLanguage:a.enum("Language","en",{options:[{value:"ar",title:"Arabic"},{value:"zh",title:"Chinese"},{value:"cs",title:"Czech"},{value:"nl",title:"Dutch"},{value:"en",title:"English"},{value:"fr",title:"French"},{value:"de",title:"German"},{value:"he",title:"Hebrew"},{value:"hi",title:"Hindi"},{value:"it",title:"Italian"},{value:"ja",title:"Japanese"},{value:"ko",title:"Korean"},{value:"fa",title:"Persian"},{value:"pl",title:"Polish"},{value:"pt",title:"Portuguese"},{value:"ru",title:"Russian"},{value:"es",title:"Spanish"},{value:"tr",title:"Turkish"},{value:"vi",title:"Vietnamese"}],"ui:group":"meta","ui:group:title":"Meta tags"}),$pageOgImage:a.string("Social share image","",{description:"Image shown when page is shared on social media","ui:group":"meta"}),$robotsIndexing:a.boolean("Allow search engines to index this site",!0,{description:"Disabling this will prevent search engines from indexing this site","ui:group":"seo","ui:group:title":"SEO","ui:scope":"site"}),$siteOgImage:a.string("Social share image","",{description:"Image shown when this site is shared on social media","ui:field":"image","ui:group":"meta","ui:group:title":"Meta tags","ui:scope":"site"}),$pagePath:a.string("Page path","/",{description:"The URL path of the page","ui:group":"location","ui:group:title":"Location"}),$pageTitle:a.string("Title","Untitled",{"ui:group":"meta","ui:group:title":"Meta tags",description:"The title of the page. Appears in the browser tab and search results."}),$pageDescription:a.string("Description","",{"ui:widget":"textarea","ui:group":"meta","ui:group:title":"Meta tags",description:"A short description of the page. Used by search engines."}),$pageKeywords:a.string("Keywords","",{"ui:group":"meta","ui:group:title":"Meta tags",description:"Keywords related to the page. Used by search engines."}),$pageLastUpdated:a.datetime("Last updated",void 0,{"ui:hidden":!0}),$pagePadding:r.Object({vertical:a.enum("Vertical spacing","20",{options:[{value:"0",title:"None"},{value:"10",title:"Small"},{value:"20",title:"Medium"},{value:"30",title:"Large"},{value:"50",title:"Extra large"}],description:"Desktop only.",displayAs:"select","ui:group":"layout","ui:group:title":"Page Layout"}),horizontal:a.enum("Horizontal spacing","20",{options:[{value:"0",title:"None"},{value:"10",title:"Small"},{value:"20",title:"Medium"},{value:"30",title:"Large"},{value:"50",title:"Extra large"}],description:"Desktop only.",displayAs:"button-group","ui:group":"layout","ui:group:title":"Page Layout"})},{default:{vertical:"20",horizontal:"20"},"ui:field":"padding","ui:group":"layout","ui:group:title":"Layout"}),$pageWidth:a.enum("Page width","max-w-full",{options:[{value:"max-w-screen-lg",title:"Medium",description:"Common for text-heavy content/blog posts"},{value:"max-w-screen-xl",title:"Large",description:"Usefull or some landing pages"},{value:"max-w-screen-2xl",title:"Extra large",description:"Common width"},{value:"max-w-full",title:"Full width",description:"Takes the entire space"}],description:"The maximum width of the page. Desktop only.",displayAs:"select","ui:group":"layout","ui:group:title":"Layout"}),$background:r.Composite([s,r.Object({},{title:"Background"})],{default:{color:"#ffffff",image:"https://placehold.co/400x200"},title:"Background","ui:field":"background","ui:show-img-search":!0,"ui:group":"background","ui:group:title":"Background","ui:group:order":4}),$textColor:a.color("Text color","#222222",{"ui:field":"color","ui:group":"layout","ui:group:title":"Page Layout","ui:color-type":"page-text"}),$siteHeadTags:r.Optional(r.String({title:"Head tags",description:"Add custom tags to the <head> of your site. Useful for analytics tags, custom scripts, etc.","ui:multiline":!0,"ui:scope":"site","ui:group":"external-scripts","ui:group:title":"External scripts"})),$siteBodyTags:r.Optional(r.String({title:"Body tags",description:"Add custom tags to the <body> of your site. Useful for analytics tags, custom scripts, etc.","ui:multiline":!0,"ui:scope":"site","ui:group":"external-scripts","ui:group:title":"External scripts"}))},S=r.Object(g);function v(t,e={}){let i=l.compile(t),o={...e};if(!i(o))throw console.log("invalid data attributes",o,i.errors),new Error(`Invalid attributes: ${i.errors}`);return o}export{b as a,a as b,S as c,v as d};
@@ -1,13 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{a as o}from"./chunk-QQ7YEIHB.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{b as t,f as r,h as i}from"./chunk-PZCWP77P.js";import{Type as n}from"@sinclair/typebox";import{Value as m}from"@sinclair/typebox/value";var p=o({type:"image-wall",kind:"widget",title:"Images wall",description:"An image collection",preferredWidth:{mobile:e.mobile/2,desktop:e.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
4
- <!-- Main container -->
5
- <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
-
7
- <!-- Image rectangles in masonry layout -->
8
- <rect x="5" y="5" width="6" height="5" rx="1"></rect>
9
- <rect x="13" y="5" width="6" height="7" rx="1"></rect>
10
- <rect x="5" y="12" width="6" height="7" rx="1"></rect>
11
- <rect x="13" y="14" width="6" height="5" rx="1"></rect>
12
- </svg>
13
- `,props:n.Composite([r,t,i])}),h=m.Create(p);export{p as a,h as b};
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{Type as e}from"@sinclair/typebox";var l=[{value:"system-ui",label:"System UI"},{value:"transitional",label:"Transitional"},{value:"old-style",label:"Old style"},{value:"humanist",label:"Humanist"},{value:"geometric-humanist",label:"Geometric humanist"},{value:"classical-humanist",label:"Classical humanist"},{value:"neo-grotesque",label:"Neo-grotesque"},{value:"monospace-slab-serif",label:"Monospace slab serif"},{value:"monospace-code",label:"Monospace code"},{value:"industrial",label:"Industrial"},{value:"rounded-sans",label:"Rounded sans"},{value:"slab-serif",label:"Slab serif"},{value:"antique",label:"Antique"},{value:"didone",label:"Didone"},{value:"handwritten",label:"Handwritten"}],t=e.Object({type:e.Union([e.Literal("stack"),e.Literal("theme"),e.Literal("google")],{title:"Type of font",description:"The type of font. Can be a font stack, a theme font or a Google font"}),family:e.String({title:"Family",description:"The font family (eg. the name of the font)"})},{title:"Headings font",description:"Used for titles and headings.",default:{type:"stack",family:"system-ui"}}),a=e.Object({type:e.Union([e.Literal("stack"),e.Literal("theme"),e.Literal("google")],{title:"Type of font",description:"The type of font. Can be a font stack, a theme font or a Google font"}),family:e.String({title:"Family",description:"The font family (eg. the name of the font)"})},{title:"Body font",description:"Used for paragraphs and body text.",default:{type:"stack",family:"system-ui"}}),o=e.Object({id:e.String({title:"ID",description:"The unique identifier of the theme"}),name:e.String({title:"Name",description:"The name of the theme"}),description:e.Optional(e.String({title:"Description",description:"The description of the theme"})),tags:e.Optional(e.Array(e.String({title:"Tag"}),{title:"Tags",description:"The tags of the theme"})),colors:e.Object({primary:e.String({title:"Primary color",description:"The brand's primary color"}),secondary:e.String({title:"Secondary color",description:"The brand's second most used color"}),accent:e.String({title:"Accent color",description:"The brand's least used color"}),neutral:e.String({title:"Neutral color",description:"The base neutral color"})},{title:"Theme base colors",description:"The base colors of the theme. Each theme must declare all these colors."}),typography:e.Object({base:e.Number({title:"Base font size",description:"The base font size in pixels. It is safe to keep it as is.",default:16}),heading:t,body:a,alternatives:e.Optional(e.Array(e.Object({body:a,heading:t}),{title:"Alternative fonts that can be suggested to the user"}))})},{$id:"Theme"}),n=e.Array(o);export{l as a,o as b,n as c};
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{a as L,b as p}from"./chunk-G42AE2ZC.js";import{a as R,b as l}from"./chunk-WXSQ2ZEK.js";import{a as S,b as u}from"./chunk-YSMFNK4R.js";import{a as W,b as y}from"./chunk-ZDZXB45C.js";import{a as j,b as d}from"./chunk-GUOQD446.js";import{a as x,b as s}from"./chunk-3PPIJUXG.js";import{a as b,b as f}from"./chunk-WGWJHVOE.js";import{a as h,b as i}from"./chunk-XS5WCEA6.js";import{a as z,b as M}from"./chunk-ZWYM64YA.js";import{a as B,b as o}from"./chunk-3T2OW4FE.js";import{a as v,b as m}from"./chunk-Y3TOGUNY.js";import{a as w,b as r}from"./chunk-ZYVXEGAM.js";import{a as C,b as n}from"./chunk-RRTB52G4.js";import{a as D,b as t}from"./chunk-NYPOZ5T2.js";import{a as g,b as e}from"./chunk-YXGFGLKH.js";import{a as k,b as a}from"./chunk-5PE57DBS.js";import{a as q,b as c}from"./chunk-UIKVMZNI.js";var Z={[m.type]:v,[n.type]:C,[y.type]:W,[d.type]:j,[e.type]:g,[l.type]:R,[i.type]:h,[p.type]:L,[a.type]:k,[o.type]:B,[f.type]:b,[t.type]:D,[r.type]:w,[u.type]:S,[s.type]:x,[M.type]:z,[c.type]:q},_={[m.type]:m,[n.type]:n,[y.type]:y,[d.type]:d,[e.type]:e,[l.type]:l,[i.type]:i,[p.type]:p,[a.type]:a,[o.type]:o,[f.type]:f,[t.type]:t,[r.type]:r,[u.type]:u,[s.type]:s,[M.type]:M,[c.type]:c};export{Z as a,_ as b};
@@ -1,22 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{a as o}from"./chunk-QQ7YEIHB.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{b as i}from"./chunk-PZCWP77P.js";import{Type as e}from"@sinclair/typebox";import{Value as r}from"@sinclair/typebox/value";var p=o({type:"video",kind:"brick",title:"Video",description:"Youtube video",preferredWidth:{mobile:t.mobile/2,desktop:t.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`
4
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
5
- <rect
6
- x="5" y="15"
7
- width="90" height="70"
8
- rx="20" ry="20"
9
- fill="transparent"
10
- stroke="currentColor"
11
- stroke-width="4"
12
- />
13
- <path
14
- d="M35 30 L35 70 L75 50 Z"
15
- fill="transparent"
16
- stroke="currentColor"
17
- stroke-width="4"
18
- stroke-linejoin="round"
19
- />
20
- </svg>
21
-
22
- `,props:e.Composite([e.Object({src:e.String({default:"https://placehold.co/400x200",title:"File",description:"The image file","ui:field":"file"}),alt:e.String({title:"Alt Text",description:"Alternative text for the image","ui:placeholder":"Your image description"})}),i])}),a=r.Create(p);export{p as a,a as b};
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{Type as t}from"@sinclair/typebox";var e={"ui:group":"border","ui:group:title":"Border"},i={"ui:group":"spacing","ui:group:title":"Spacing"},l={"ui:group":"effects","ui:group:title":"Effects"},a={"ui:group":"colors","ui:group:title":"Colors","ui:group:order":2},r={"ui:group":"layout","ui:group:title":"Layout","ui:group:order":0},n=t.Union([t.Literal("border-0",{title:"None"}),t.Literal("border",{title:"Small"}),t.Literal("border-2",{title:"Medium"}),t.Literal("border-4",{title:"Large"}),t.Literal("border-8",{title:"Extra large"})],{$id:"borderWidth",default:"border-0",title:"Border width","ui:field":"enum","ui:display":"button-group",...e}),u=t.String({$id:"borderColor",default:"transparent",title:"Border color","ui:field":"color","ui:color-type":"border",...e}),d=t.Union([t.Literal("border-solid",{title:"Solid"}),t.Literal("border-dashed",{title:"Dashed"}),t.Literal("border-dotted",{title:"Dotted"})],{$id:"borderStyle",default:"border-solid",title:"Border style",description:"The brick border style","ui:field":"enum","ui:display":"button-group",...e}),p=t.Union([t.Literal("rounded-none",{title:"None"}),t.Literal("rounded-sm",{title:"Small"}),t.Literal("rounded-md",{title:"Medium"}),t.Literal("rounded-lg",{title:"Large"}),t.Literal("rounded-xl",{title:"Extra large"}),t.Literal("rounded-full",{title:"Full"})],{$id:"borderRadius",default:"rounded-none",title:"Rounding",description:"Corners rounding","ui:field":"enum","ui:display":"button-group",...e}),s=t.Optional(t.Object({radius:p,style:d,color:u,width:n},{title:"Border style","ui:field":"border","ui:group":"borders","ui:group:title":"Borders",default:{radius:"rounded-none",style:"border-solid",color:"#000000",width:"border-0"}})),c=t.Union([t.Literal("p-0",{title:"None"}),t.Literal("p-1",{title:"Small"}),t.Literal("p-2",{title:"Medium"}),t.Literal("p-4",{title:"Large"}),t.Literal("p-8",{title:"Extra large"}),t.Literal("p-16",{title:"Extra large (v2)"})],{$id:"padding",default:"p-2",title:"Padding",description:"Space between the content and the border","ui:field":"enum","ui:display":"select",...i}),g=t.Object({height:t.Optional(t.Union([t.Literal("fixed",{title:"Fixed"}),t.Literal("auto",{title:"Auto"})])),padding:t.Optional(c)},{title:"Layout","ui:field":"layout",...r,default:{padding:"p-2",height:"fixed"}}),O=t.Union([t.Literal("m-0",{title:"0"}),t.Literal("m-1",{title:"1"}),t.Literal("m-2",{title:"2"}),t.Literal("m-4",{title:"3"}),t.Literal("m-8",{title:"4"}),t.Literal("m-16",{title:"5"}),t.Literal("m-32",{title:"6"}),t.Literal("m-auto",{title:"Auto"})],{default:"m-0",title:"Margin",description:"Outside space around the brick","ui:field":"enum","ui:display":"button-group",...i}),j=t.String({$id:"backgroundColor",default:"transparent",title:"Background color","ui:field":"color","ui:color-type":"background",...a}),f=t.Object({color:t.Optional(t.String({default:"transparent",title:"Color"})),image:t.Optional(t.String({default:"https://placehold.co/400x200",title:"Image"})),size:t.Optional(t.Union([t.Literal("auto",{title:"Auto"}),t.Literal("cover",{title:"Cover"}),t.Literal("contain",{title:"Contain"})],{default:"auto"})),repeat:t.Optional(t.Union([t.Literal("no-repeat",{title:"No repeat"}),t.Literal("repeat",{title:"Repeat"}),t.Literal("repeat-x",{title:"Repeat horizontally"}),t.Literal("repeat-y",{title:"Repeat vertically"}),t.Literal("space",{title:"Space"}),t.Literal("round",{title:"Round"})],{default:"no-repeat"}))},{"ui:field":"background","ui:group":"background","ui:group:title":"Background","ui:show-img-search":!0,title:"Background",default:{size:"auto",repeat:"no-repeat"}}),x=t.Optional(t.Number({$id:"opacity",minimum:.1,maximum:1,default:1,multipleOf:.1,title:"Opacity",description:"Global opacity","ui:field":"slider",...l})),L=t.Union([t.Literal("shadow-none",{title:"None"}),t.Literal("shadow-sm",{title:"Small"}),t.Literal("shadow-md",{title:"Medium"}),t.Literal("shadow-lg",{title:"Large"}),t.Literal("shadow-xl",{title:"Extra large"}),t.Literal("shadow-2xl",{title:"Extra large (2x)"})],{$id:"shadow",default:"shadow-none",title:"Shadow",description:"Shadow","ui:field":"enum","ui:display":"button-group",...l}),m=t.Optional(t.Object({shadow:L,opacity:x},{title:"Effects","ui:field":"effects","ui:group":"effects","ui:group:title":"Effects",default:{shadow:"shadow-none",opacity:1}})),y=t.Object({direction:t.Union([t.Literal("flex-row",{title:"Row"}),t.Literal("flex-col",{title:"Column"})],{title:"Direction",description:"The direction of the container","ui:field":"enum","ui:display":"button-group","ui:group":"layout"}),wrap:t.Union([t.Literal("flex-wrap",{title:"Wrap"}),t.Literal("flex-nowrap",{title:"No wrap"})],{title:"Wrap",description:"Wrap items","ui:field":"enum","ui:display":"button-group","ui:group":"layout"}),justify:t.Union([t.Literal("justify-start",{title:"Start"}),t.Literal("justify-center",{title:"Center"}),t.Literal("justify-end",{title:"End"}),t.Literal("justify-between",{title:"Between"}),t.Literal("justify-around",{title:"Around"}),t.Literal("justify-evenly",{title:"Evenly"})],{title:"Justify",description:"Justify content","ui:field":"enum","ui:group":"layout"}),align:t.Union([t.Literal("items-start",{title:"Start"}),t.Literal("items-center",{title:"Center"}),t.Literal("items-end",{title:"End"}),t.Literal("items-baseline",{title:"Baseline"}),t.Literal("items-stretch",{title:"Stretch"})],{title:"Align",description:"Align items","ui:field":"enum","ui:group":"layout"}),gap:t.Union([t.Literal("gap-0",{title:"None"}),t.Literal("gap-1",{title:"Small"}),t.Literal("gap-2",{title:"Medium"}),t.Literal("gap-4",{title:"Large"}),t.Literal("gap-8",{title:"Extra large"}),t.Literal("gap-16",{title:"Extra large (2x)"})],{title:"Gap",description:"Space between items","ui:field":"enum","ui:group":"layout"})},{title:"Layout","ui:field":"flex",default:{direction:"flex-row",gap:"gap-1",wrap:"flex-wrap",justify:"justify-start",align:"items-stretch"},...r}),U=t.Object({flex:y,children:t.Array(t.Any(),{"ui:field":"hidden"})}),o=t.Union([t.Literal("inherit",{title:"Inherit from page/container"}),t.Literal("text-xs",{title:"Extra small"}),t.Literal("text-sm",{title:"Small"}),t.Literal("text-base",{title:"Base size"}),t.Literal("text-lg",{title:"Large"}),t.Literal("text-xl",{title:"Extra large"}),t.Literal("text-2xl",{title:"Extra large (x2)"}),t.Literal("text-3xl",{title:"Extra large (x3)"}),t.Literal("text-4xl",{title:"Extra large (x4)"}),t.Literal("text-5xl",{title:"Extra large (x5)"}),t.Literal("text-6xl",{title:"Extra large (x6)"}),t.Literal("text-7xl",{title:"Extra large (x7)"})],{default:"inherit",title:"Default size","ui:field":"enum","ui:display":"select","ui:group":"text"}),b=t.Object({size:o,color:t.Optional(t.String({default:"transparent",title:"Default Color","ui:field":"color","ui:color-type":"text"}))},{title:"Text style","ui:group":"text","ui:group:title":"Text",default:{size:"text-base",color:"inherit"}}),C=t.Object({dimensions:g,border:s,effects:m,background:f,text:b}),h=t.Optional(t.Union([t.Literal("text-left",{title:"Left",description:"Left align"}),t.Literal("text-center",{title:"Center",description:"Center align"}),t.Literal("text-right",{title:"Right",description:"Right align"}),t.Literal("text-justify",{title:"Justify",description:"Justify align"})],{$id:"textAlign",default:"text-left",title:"Text alignment",description:"The text alignment","ui:field":"enum","ui:group":"text"})),S=t.Union([t.Literal("font-normal",{title:"1"}),t.Literal("font-medium",{title:"2"}),t.Literal("font-semibold",{title:"3"}),t.Literal("font-bold",{title:"4"}),t.Literal("font-extrabold",{title:"5"})],{$id:"fontWeight",default:"font-normal",title:"Font weight",description:"The text font weight","ui:field":"enum","ui:display":"button-group","ui:group":"text"}),w=t.String({$id:"color",default:"transparent",title:"Text color","ui:field":"color","ui:color-type":"text","ui:group":"text"}),B=t.Object({color:w,textAlign:h,fontSize:o,fontWeight:S});export{n as a,u as b,d as c,p as d,s as e,c as f,g,j as h,f as i,m as j,y as k,U as l,b as m,C as n,w as o,B as p};
@@ -1,13 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{a as r}from"./chunk-QQ7YEIHB.js";import{a as t}from"./chunk-PXAK7ZJ3.js";import{b as e,f as i}from"./chunk-PZCWP77P.js";import{n as o}from"./chunk-MEMG6QPT.js";import{Type as n}from"@sinclair/typebox";import{Value as p}from"@sinclair/typebox/value";var m=r({type:"button",title:"Button",kind:"brick",description:"A button with text and optional icon",preferredWidth:{mobile:t.mobile/2,desktop:t.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`
4
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
5
- <!-- Main container -->
6
-
7
- <!-- Button container -->
8
- <rect x="4" y="11" width="16" height="6" rx="2"></rect>
9
-
10
- <!-- Text line inside button -->
11
- <line x1="9" y1="14" x2="15" y2="14"></line>
12
- </svg>
13
- `,props:n.Composite([i,e,o])}),k=p.Create(m);export{m as a,k as b};
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- var o={desktop:36,mobile:18},t={desktop:1024,mobile:1},e=20;export{o as a,t as b,e as c};
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{Type as e}from"@sinclair/typebox";var t=e.Object({style:e.Union([e.Literal("ghost",{title:"Ghost",description:"Minimal style with transparent background and no border"}),e.Literal("plain",{title:"Plain",description:"Simple style with solid dark background and basic border"}),e.Literal("plain2",{title:"Plain 2",description:"Simple style with solid dark background and basic border"}),e.Literal("plain3",{title:"Plain 3",description:"Simple style with solid dark background and basic border"}),e.Literal("modern",{title:"Modern",description:"Bold borders with generous spacing and sharp corners"}),e.Literal("modern2",{title:"Modern 2",description:"Bold borders with generous spacing and sharp corners"}),e.Literal("soft",{title:"Soft",description:"Gentle curves and muted colors for a comfortable feel"}),e.Literal("glass",{title:"Glass",description:"Translucent backdrop with blur effect for depth"}),e.Literal("elevated",{title:"Elevated",description:"Floating appearance with shadow depth and no borders"}),e.Literal("outlined",{title:"Outlined",description:"Simple outline with hover effect and no background"}),e.Literal("paper",{title:"Paper",description:"Subtle texture and slight rotation for a paper-like appearance"}),e.Literal("gradient",{title:"Gradient",description:"Smooth color gradients background with soft edges"}),e.Literal("gradient2",{title:"Gradient 2",description:"Smooth color gradients background with soft edges"}),e.Literal("gradient3",{title:"Gradient 3",description:"Smooth color gradients background with soft edges"}),e.Literal("gradient4",{title:"Gradient 4",description:"Smooth color gradients background with soft edges"}),e.Literal("gradient5",{title:"Gradient 5",description:"Smooth color gradients background with soft edges"}),e.Literal("gradient6",{title:"Gradient 6",description:"Smooth color gradients background with soft edges"}),e.Literal("callout",{title:"Callout",description:"Prominent style for important information or CTAs"})]),variant:e.Union([e.Literal("primary",{title:"Primary",description:"Uses the theme primary color as the main color"}),e.Literal("secondary",{title:"Secondary",description:"Uses the theme secondary color as the main color"}),e.Literal("accent",{title:"Accent",description:"Uses the theme accent color as the main color"}),e.Literal("neutral",{title:"Neutral",description:"Uses the theme neutral color as the main color"})])},{"ui:field":"hidden"}),n=e.Object({id:e.String({title:"Brick ID","ui:field":"hidden"}),className:e.String({default:"","ui:field":"hidden"}),lastTouched:e.Number({default:0,"ui:field":"hidden"}),editable:e.Boolean({description:"Allow editing. It is automatically set by the editor, so no need to specify it manually.",default:!1,"ui:field":"hidden"}),stylePreset:t}),i=e.String({default:"some text here","ui:field":"hidden","ui:group":"content","ui:group:title":"Content","ui:group:order":3}),r=e.String({default:"<h1>some text here</h1>","ui:field":"hidden","ui:paragraph-mode":"hero","ui:group":"content","ui:group:title":"Content","ui:group:order":3}),o=e.Object({src:e.String({default:"/placeholder.svg",title:"Image"}),alt:e.String({title:"Alternate Text",description:"Alternative text for the image. Recommended for screen readers and SEO.","ui:placeholder":"Your image description"})},{"ui:group":"image","ui:group:title":"Image","ui:group:order":1,"ui:field":"image","ui:accept":"image/*","ui:show-img-search":!0,"ui:allow-url":!0}),l=e.Object(o.properties,{default:{src:"https://placehold.co/400x200",alt:"my image"}}),d=e.Object({content:i}),s=e.Object({content:r}),c=e.Object({container:e.Boolean({description:"True if the component is a container for other components. It is automatically set by the editor, so no need to specify it manually.",default:!0})});export{t as a,n as b,i as c,r as d,l as e,d as f,s as g,c as h};
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{a as t}from"./chunk-PXAK7ZJ3.js";import{Type as e}from"@sinclair/typebox";function y({type:d,kind:b,title:p,description:s,preferredWidth:m,preferredHeight:l,minWidth:i,minHeight:r,maxWidth:a,icon:u,props:c,datasource:o,datarecord:n,isContainer:f,hideInLibrary:k}){return e.Object({type:e.Literal(d),kind:e.Literal(b),title:e.Literal(p),description:e.Literal(s),icon:e.Literal(u),hideInLibrary:e.Boolean({default:k??!1}),isContainer:e.Boolean({default:f??!1}),preferredWidth:e.Object({mobile:e.Number(),desktop:e.Number()},{default:m??i}),preferredHeight:e.Object({mobile:e.Number(),desktop:e.Number()},{default:l??r}),minWidth:e.Object({mobile:e.Number(),desktop:e.Number()},{default:i??{mobile:1,desktop:1}}),maxWidth:e.Object({mobile:e.Number(),desktop:e.Number()},{default:a??{mobile:t.mobile,desktop:t.desktop}}),minHeight:e.Object({mobile:e.Number(),desktop:e.Number()},{default:r??{mobile:1,desktop:1}}),...o&&{datasource:o},...n&&{datarecord:n},props:c})}export{y as a};
@@ -1,9 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{a as o}from"./chunk-QQ7YEIHB.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{b as t,e as i}from"./chunk-PZCWP77P.js";import{Type as r}from"@sinclair/typebox";import{Value as p}from"@sinclair/typebox/value";var m=o({type:"image",kind:"brick",title:"Image",description:"An image brick",preferredWidth:{mobile:e.mobile/2,desktop:e.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`
4
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
5
- <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
- <circle cx="8.5" cy="8.5" r="1.5"></circle>
7
- <polyline points="21 15 16 10 5 21"></polyline>
8
- </svg>
9
- `,props:r.Composite([i,t])}),f=p.Create(m);export{m as a,f as b};
@@ -1,13 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{a as r}from"./chunk-QQ7YEIHB.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{b as i}from"./chunk-PZCWP77P.js";import{l as o,n as t}from"./chunk-MEMG6QPT.js";import{Type as n}from"@sinclair/typebox";import{Value as l}from"@sinclair/typebox/value";var p=r({type:"container",kind:"brick",title:"Container",description:"A container that can hold other bricks and align them horizontally or vertically",isContainer:!0,preferredWidth:{mobile:e.mobile/2,desktop:e.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
4
- <!-- Main container -->
5
- <rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
6
-
7
- <!-- Horizontal line -->
8
- <line x1="3" y1="12" x2="21" y2="12"></line>
9
-
10
- <!-- Vertical line -->
11
- <line x1="12" y1="3" x2="12" y2="21"></line>
12
- </svg>
13
- `,props:n.Composite([o,i,t])}),g=l.Create(p);export{p as a,g as b};
@@ -1,20 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
-
3
- import{a as o}from"./chunk-QQ7YEIHB.js";import{a as e}from"./chunk-PXAK7ZJ3.js";import{b as i,f as t}from"./chunk-PZCWP77P.js";import{Type as n}from"@sinclair/typebox";import{Value as r}from"@sinclair/typebox/value";var l=o({type:"footer",kind:"widget",title:"Footer",description:"A footer with links and social media icons",preferredWidth:{mobile:e.mobile/2,desktop:e.desktop/4},preferredHeight:{mobile:6,desktop:6},minWidth:{mobile:3,desktop:3},minHeight:{mobile:3,desktop:3},icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
4
- <!-- Main container -->
5
- <rect x="3" y="12" width="18" height="8" rx="2" ry="2"></rect>
6
-
7
- <!-- First column: single line aligned with top -->
8
- <line x1="6" y1="14.5" x2="8" y2="14.5"></line>
9
-
10
- <!-- Middle column: three lines -->
11
- <line x1="11" y1="14.5" x2="13" y2="14.5"></line>
12
- <line x1="11" y1="16" x2="13" y2="16"></line>
13
- <line x1="11" y1="17.5" x2="13" y2="17.5"></line>
14
-
15
- <!-- Last column: three lines -->
16
- <line x1="16" y1="14.5" x2="18" y2="14.5"></line>
17
- <line x1="16" y1="16" x2="18" y2="16"></line>
18
- <line x1="16" y1="17.5" x2="18" y2="17.5"></line>
19
- </svg>
20
- `,props:n.Composite([t,i])}),y=r.Create(l);export{l as a,y as b};