@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGtD,wBAAgB,aAAa;;;;;;;;;;;;;;GA4E5B;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{a}from"../../chunk-SQVL4WSX.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{a as datasourceRef};
@@ -0,0 +1,39 @@
1
+ import { type Static } from "@sinclair/typebox";
2
+ type ShadowOptions = {
3
+ title?: string;
4
+ defaultValue?: string;
5
+ };
6
+ export declare function shadow({ title, defaultValue }?: ShadowOptions): 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">]>;
7
+ export type ShadowSettings = Static<ReturnType<typeof shadow>>;
8
+ type TextShadowOptions = {
9
+ title?: string;
10
+ defaultValue?: string;
11
+ };
12
+ export declare function textShadow({ title, defaultValue, }?: TextShadowOptions): import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text-shadow-none">, import("@sinclair/typebox").TLiteral<"text-shadow-sm">, import("@sinclair/typebox").TLiteral<"text-shadow-md">, import("@sinclair/typebox").TLiteral<"text-shadow-lg">, import("@sinclair/typebox").TLiteral<"text-shadow-xl">]>;
13
+ export type TextShadowSettings = Static<ReturnType<typeof textShadow>>;
14
+ type OpacityOptions = {
15
+ title?: string;
16
+ defaultValue?: number;
17
+ };
18
+ export declare function opacity({ defaultValue, title }?: OpacityOptions): import("@sinclair/typebox").TNumber;
19
+ export type OpacitySettings = Static<ReturnType<typeof opacity>>;
20
+ type EffectsOptions = {
21
+ title?: string;
22
+ defaultValue?: {
23
+ opacity?: number;
24
+ shadow?: string;
25
+ textShadow?: string;
26
+ };
27
+ enableTextShadow?: boolean;
28
+ };
29
+ export declare function effects({ title, defaultValue, enableTextShadow }?: EffectsOptions): import("@sinclair/typebox").TObject<{
30
+ textShadow?: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text-shadow-none">, import("@sinclair/typebox").TLiteral<"text-shadow-sm">, import("@sinclair/typebox").TLiteral<"text-shadow-md">, import("@sinclair/typebox").TLiteral<"text-shadow-lg">, import("@sinclair/typebox").TLiteral<"text-shadow-xl">]> | undefined;
31
+ opacity: import("@sinclair/typebox").TNumber;
32
+ 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">]>;
33
+ }> | import("@sinclair/typebox").TObject<{
34
+ 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">]>;
35
+ opacity: import("@sinclair/typebox").TNumber;
36
+ textShadow: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"text-shadow-none">, import("@sinclair/typebox").TLiteral<"text-shadow-sm">, import("@sinclair/typebox").TLiteral<"text-shadow-md">, import("@sinclair/typebox").TLiteral<"text-shadow-lg">, import("@sinclair/typebox").TLiteral<"text-shadow-xl">]>;
37
+ }>;
38
+ export {};
39
+ //# sourceMappingURL=effects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"effects.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/effects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGtD,KAAK,aAAa,GAAG;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,wBAAgB,MAAM,CAAC,EAAE,KAAgB,EAAE,YAA4B,EAAE,GAAE,aAAkB,6VAoB5F;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC;AAE/D,KAAK,iBAAiB,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,wBAAgB,UAAU,CAAC,EACzB,KAAqB,EACrB,YAAiC,GAClC,GAAE,iBAAsB,kUAiBxB;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC;AAEvE,KAAK,cAAc,GAAG;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,wBAAgB,OAAO,CAAC,EAAE,YAAgB,EAAE,KAAiB,EAAE,GAAE,cAAmB,uCAanF;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC;AAEjE,KAAK,cAAc,GAAG;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,wBAAgB,OAAO,CAAC,EAAE,KAAiB,EAAE,YAAiB,EAAE,gBAAgB,EAAE,GAAE,cAAmB;;;;;;;;GAuBtG"}
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{a,b,c,d}from"../../chunk-SO5M7CYA.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{d as effects,c as opacity,a as shadow,b as textShadow};
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Helper functions for defining and working with props and groups of props
3
+ */
4
+ import { type TProperties, type TSchema, type TObject } from "@sinclair/typebox";
5
+ import type { PartialBy, Prop, PropGroup, GroupMetadata } from "./types";
6
+ export declare function group<T extends TProperties>({ title, children, category, metadata, options, }: PartialBy<PropGroup<T>, "category">): TObject<T> | TObject<import("@sinclair/typebox").Evaluate<import("@sinclair/typebox").TSetDistinct<[...import("@sinclair/typebox").UnionToTuple<keyof T, [], import("@sinclair/typebox").UnionLast<keyof T>>], []> extends infer T_1 ? T_1 extends import("@sinclair/typebox").TSetDistinct<[...import("@sinclair/typebox").UnionToTuple<keyof T, [], import("@sinclair/typebox").UnionLast<keyof T>>], []> ? T_1 extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? R extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? any : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : { [_ in L]: import("@sinclair/typebox").TIntersectEvaluated<import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_2 ? T_2 extends import("@sinclair/typebox").Assert<L extends never ? {}[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends never ? {}[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_2 extends import("@sinclair/typebox").TNever ? import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_3 ? T_3 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_3 extends import("@sinclair/typebox").TNever ? [] : [T_3] : never : never : import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> extends infer T_4 ? T_4 extends import("@sinclair/typebox").Assert<L extends keyof T ? T[L] : `${import("@sinclair/typebox").Assert<L, string | number>}` extends `${import("@sinclair/typebox").Assert<keyof T, string | number>}` ? T[import("@sinclair/typebox").Assert<L, string | number>] : import("@sinclair/typebox").TNever, TSchema> ? T_4 extends import("@sinclair/typebox").TNever ? [T_2] : [T_2, T_4] : never : never : never : never>; } : {} : never : never>>;
7
+ export declare function prop<T extends TSchema>({ title, schema, description, $id }: Prop<T>): T;
8
+ export declare function getGroupInfo(schema: TSchema): {
9
+ title: string | undefined;
10
+ meta: GroupMetadata;
11
+ tab: string;
12
+ };
13
+ export declare function defineProps<P extends TProperties>(props: P): TObject<{
14
+ className: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
15
+ lastTouched: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
16
+ editable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
17
+ } & P>;
18
+ export declare const optional: {
19
+ <Type extends import("@sinclair/typebox").TMappedResult, Flag extends boolean>(type: Type, enable: Flag): import("@sinclair/typebox").TOptionalFromMappedResult<Type, Flag>;
20
+ <Type extends TSchema, Flag extends boolean>(type: Type, enable: Flag): import("@sinclair/typebox").TOptionalWithFlag<Type, Flag>;
21
+ <Type extends import("@sinclair/typebox").TMappedResult>(type: Type): import("@sinclair/typebox").TOptionalFromMappedResult<Type, true>;
22
+ <Type extends TSchema>(type: Type): import("@sinclair/typebox").TOptionalWithFlag<Type, true>;
23
+ };
24
+ export declare const array: <Type extends TSchema>(items: Type, options?: import("@sinclair/typebox").ArrayOptions) => import("@sinclair/typebox").TArray<Type>;
25
+ export type PropertyPath = string;
26
+ export type StyleId = string;
27
+ export declare function getStyleProperties(schema: TSchema, path?: string, styles?: Record<PropertyPath, StyleId>): Record<string, string>;
28
+ export declare function getStyleValueById<T>(stylePos: ReturnType<typeof getStyleProperties>, formData: Record<string, unknown>, id: string): T | undefined;
29
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/helpers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,WAAW,EAAQ,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEvF,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAOzE,wBAAgB,KAAK,CAAC,CAAC,SAAS,WAAW,EAAE,EAC3C,KAAK,EACL,QAAQ,EACR,QAAqB,EACrB,QAAQ,EACR,OAAO,GACR,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,orrBAyBrC;AAED,wBAAgB,IAAI,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAYvF;AAGD,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO;WAGW,MAAM,GAAG,SAAS;;;EAIxE;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,WAAW,EAAE,KAAK,EAAE,CAAC;;;;OAG1D;AAED,eAAO,MAAM,QAAQ;;;;;CAAgB,CAAC;AACtC,eAAO,MAAM,KAAK,qIAAa,CAAC;AAEhC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAClC,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAM7B,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,SAAK,EAAE,MAAM,GAAE,MAAM,CAAC,YAAY,EAAE,OAAO,CAAM,0BAaxG;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,QAAQ,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,EAC/C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,EAAE,EAAE,MAAM,iBAOX"}
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{a,b,c,d,e,f,g,h}from"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{f as array,d as defineProps,c as getGroupInfo,g as getStyleProperties,h as getStyleValueById,a as group,e as optional,b as prop};
@@ -0,0 +1,15 @@
1
+ import { type Static } from "@sinclair/typebox";
2
+ type PropImageOptions = {
3
+ defaultImageUrl?: string;
4
+ showImgSearch?: boolean;
5
+ noObjectOptions?: boolean;
6
+ };
7
+ export declare function image(title?: string, options?: PropImageOptions): import("@sinclair/typebox").TObject<{
8
+ src: import("@sinclair/typebox").TString;
9
+ alt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
10
+ fit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"object-none">, import("@sinclair/typebox").TLiteral<"object-contain">, import("@sinclair/typebox").TLiteral<"object-cover">, import("@sinclair/typebox").TLiteral<"object-fill">, import("@sinclair/typebox").TLiteral<"object-scale-down">]>>;
11
+ position: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"object-top">, import("@sinclair/typebox").TLiteral<"object-center">, import("@sinclair/typebox").TLiteral<"object-bottom">, import("@sinclair/typebox").TLiteral<"object-left">, import("@sinclair/typebox").TLiteral<"object-right">, import("@sinclair/typebox").TLiteral<"object-left-top">, import("@sinclair/typebox").TLiteral<"object-right-top">, import("@sinclair/typebox").TLiteral<"object-left-bottom">, import("@sinclair/typebox").TLiteral<"object-right-bottom">]>>;
12
+ }>;
13
+ export type ImageProps = Static<ReturnType<typeof image>>;
14
+ export {};
15
+ //# sourceMappingURL=image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/image.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAItD,KAAK,gBAAgB,GAAG;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,wBAAgB,KAAK,CAAC,KAAK,SAAU,EAAE,OAAO,GAAE,gBAAqB;;;;;GAwEpE;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{a}from"../../chunk-XGCBIXOO.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{a as image};
@@ -0,0 +1,6 @@
1
+ import { type NumberOptions } from "@sinclair/typebox";
2
+ import type { FieldMetadata } from "./types";
3
+ type NumberFieldOptions = NumberOptions & FieldMetadata;
4
+ export declare function number(title: string, defaultValue?: number, options?: Omit<NumberFieldOptions, "default">): import("@sinclair/typebox").TNumber;
5
+ export {};
6
+ //# sourceMappingURL=number.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/number.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,KAAK,kBAAkB,GAAG,aAAa,GAAG,aAAa,CAAC;AAExD,wBAAgB,MAAM,CACpB,KAAK,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,MAAM,EACrB,OAAO,GAAE,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAM,uCAMlD"}
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{a}from"../../chunk-HIZPJNEM.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{a as number};
@@ -0,0 +1,4 @@
1
+ import { type Static } from "@sinclair/typebox";
2
+ export declare function padding(defaultValue?: string): 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">]>;
3
+ export type PaddingSettings = Static<ReturnType<typeof padding>>;
4
+ //# sourceMappingURL=padding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"padding.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/padding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGtD,wBAAgB,OAAO,CAAC,YAAY,SAAQ,uTAqB3C;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{a}from"../../chunk-U44NTSIO.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{a as padding};
@@ -0,0 +1,6 @@
1
+ import { type Static } from "@sinclair/typebox";
2
+ export declare function position(defaultValue?: string, title?: string): import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"flowing">, import("@sinclair/typebox").TLiteral<"fixed">, import("@sinclair/typebox").TLiteral<"sticky">]>;
3
+ export type PositionSettings = Static<ReturnType<typeof position>>;
4
+ export declare function fixedPositioned(defaultValue?: boolean, title?: string): import("@sinclair/typebox").TBoolean;
5
+ export type FixedPositionedSettings = Static<ReturnType<typeof fixedPositioned>>;
6
+ //# sourceMappingURL=position.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/position.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGtD,wBAAgB,QAAQ,CAAC,YAAY,SAAY,EAAE,KAAK,SAAa,wLAapE;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC;AAEnE,wBAAgB,eAAe,CAAC,YAAY,UAAQ,EAAE,KAAK,SAAmB,wCAM7E;AAED,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{a,b}from"../../chunk-JVDUEZYO.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{b as fixedPositioned,a as position};
@@ -0,0 +1,11 @@
1
+ import { type StringOptions } from "@sinclair/typebox";
2
+ import type { jsonStringsSupportedFormats } from "../../ajv";
3
+ import type { FieldMetadata } from "./types";
4
+ type StrFieldOptions = StringOptions & FieldMetadata & {
5
+ format?: (typeof jsonStringsSupportedFormats)[number];
6
+ };
7
+ export declare function string(title: string, defaultValue?: string, options?: Omit<StrFieldOptions, "default">): import("@sinclair/typebox").TString;
8
+ export declare function url(title?: string): import("@sinclair/typebox").TString;
9
+ export declare function urlOrPageId(title?: string): import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TString]>;
10
+ export {};
11
+ //# sourceMappingURL=string.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/string.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,KAAK,eAAe,GAAG,aAAa,GAClC,aAAa,GAAG;IACd,MAAM,CAAC,EAAE,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;CACvD,CAAC;AAEJ,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,GAAE,IAAI,CAAC,eAAe,EAAE,SAAS,CAAM,uCAK1G;AAWD,wBAAgB,GAAG,CAAC,KAAK,SAAQ,uCAKhC;AAED,wBAAgB,WAAW,CAAC,KAAK,SAAmB,kHAKnD"}
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{a,b,c}from"../../chunk-XBX6II3M.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{a as string,b as url,c as urlOrPageId};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=align.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"align.test.d.ts","sourceRoot":"","sources":["../../../../../src/shared/bricks/props/tests/align.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=background.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"background.test.d.ts","sourceRoot":"","sources":["../../../../../src/shared/bricks/props/tests/background.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=border.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"border.test.d.ts","sourceRoot":"","sources":["../../../../../src/shared/bricks/props/tests/border.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=container.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container.test.d.ts","sourceRoot":"","sources":["../../../../../src/shared/bricks/props/tests/container.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=effects.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"effects.test.d.ts","sourceRoot":"","sources":["../../../../../src/shared/bricks/props/tests/effects.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=helpers.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.test.d.ts","sourceRoot":"","sources":["../../../../../src/shared/bricks/props/tests/helpers.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=image.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.test.d.ts","sourceRoot":"","sources":["../../../../../src/shared/bricks/props/tests/image.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=padding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"padding.d.ts","sourceRoot":"","sources":["../../../../../src/shared/bricks/props/tests/padding.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=string.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.test.d.ts","sourceRoot":"","sources":["../../../../../src/shared/bricks/props/tests/string.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { type Static } from "@sinclair/typebox";
2
+ export declare function fontSize(defaultValue?: string, title?: string): 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">]>;
3
+ export type FontSizeSettings = Static<ReturnType<typeof fontSize>>;
4
+ export declare function color(defaultValue?: string | "color-auto", title?: string): import("@sinclair/typebox").TString;
5
+ export type ColorSettings = Static<ReturnType<typeof color>>;
6
+ type TextContentOptions = {
7
+ showInSettings?: boolean;
8
+ disableSizing?: boolean;
9
+ disableAlignment?: boolean;
10
+ };
11
+ export declare function textContent(title?: string, defaultContent?: string, { showInSettings, disableSizing, disableAlignment }?: TextContentOptions): import("@sinclair/typebox").TString;
12
+ export type TextContentSettings = Static<ReturnType<typeof textContent>>;
13
+ export {};
14
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGtD,wBAAgB,QAAQ,CAAC,YAAY,SAAY,EAAE,KAAK,SAAc,4nBA2BrE;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC;AAEnE,wBAAgB,KAAK,CAAC,YAAY,GAAE,MAAM,GAAG,YAA2B,EAAE,KAAK,SAAe,uCAa7F;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC;AAE7D,KAAK,kBAAkB,GAAG;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,wBAAgB,WAAW,CACzB,KAAK,SAAS,EACd,cAAc,SAAmB,EACjC,EAAE,cAAc,EAAE,aAAqB,EAAE,gBAAwB,EAAE,GAAE,kBAAuB,uCAc7F;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{a,b,c}from"../../chunk-LDOM2LJF.js";import"../../chunk-BMDB2V7J.js";import"../../chunk-PSSJMWGU.js";export{b as color,a as fontSize,c as textContent};
@@ -0,0 +1,43 @@
1
+ import type { Static, TObject, TProperties, TSchema } from "@sinclair/typebox";
2
+ import type { BrickManifest } from "~/shared/brick-manifest";
3
+ import type { Brick } from "~/shared/bricks";
4
+ export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
5
+ export type BrickProps<T extends BrickManifest> = {
6
+ brick: Omit<Brick, "props" | "mobileProps"> & {
7
+ props: Static<T["props"]>;
8
+ mobileProps: Partial<Static<T["props"]>>;
9
+ };
10
+ editable?: boolean;
11
+ selected?: boolean;
12
+ };
13
+ export type BrickPropCategory = "settings" | "presets" | "content";
14
+ export type { TSchema };
15
+ type CommonMetadata = {
16
+ "ui:responsive"?: boolean | "mobile" | "mobile-only";
17
+ };
18
+ export type FieldMetadata = CommonMetadata & {
19
+ "ui:field"?: string;
20
+ [key: string]: string | number | boolean | undefined;
21
+ };
22
+ export type GroupMetadata = CommonMetadata & {
23
+ group?: string;
24
+ groupTab?: string;
25
+ [key: string]: string | number | boolean | undefined;
26
+ };
27
+ export interface PropSchema extends TSchema {
28
+ title: string;
29
+ }
30
+ export type Prop<T = TSchema> = {
31
+ title: string;
32
+ $id?: string;
33
+ description?: string;
34
+ schema: T;
35
+ };
36
+ export type PropGroup<T extends TProperties = TProperties> = {
37
+ title: string;
38
+ category: BrickPropCategory;
39
+ children: T | TObject<T>;
40
+ metadata?: GroupMetadata;
41
+ options?: Record<string, any>;
42
+ };
43
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAE/E,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,aAAa,IAAI;IAChD,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,CAAC,GAAG;QAC5C,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAC1B,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;KAC1C,CAAC;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAGnE,YAAY,EAAE,OAAO,EAAE,CAAC;AAExB,KAAK,cAAc,GAAG;IACpB,eAAe,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,aAAa,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CACtD,CAAC;AAEF,MAAM,WAAW,UAAW,SAAQ,OAAO;IACzC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,IAAI,CAAC,CAAC,GAAG,OAAO,IAAI;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACzB,QAAQ,CAAC,EAAE,aAAa,CAAC;IAEzB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B,CAAC"}
@@ -0,0 +1,2 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+