@upstart.gg/sdk 0.0.123 → 0.0.124
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.
- package/dist/shared/ajv.d.ts.map +1 -1
- package/dist/shared/ajv.js +1 -1
- package/dist/shared/attributes.d.ts +124 -36
- package/dist/shared/attributes.d.ts.map +1 -1
- package/dist/shared/attributes.js +1 -1
- package/dist/shared/brick-manifest.d.ts +9 -1
- package/dist/shared/brick-manifest.d.ts.map +1 -1
- package/dist/shared/brick-manifest.js +1 -1
- package/dist/shared/bricks/manifests/accordion.manifest.d.ts +13 -7
- package/dist/shared/bricks/manifests/accordion.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/accordion.manifest.js +1 -1
- package/dist/shared/bricks/manifests/all-manifests.js +1 -1
- package/dist/shared/bricks/manifests/box.manifest.d.ts +14 -8
- package/dist/shared/bricks/manifests/box.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/box.manifest.js +1 -1
- package/dist/shared/bricks/manifests/button.manifest.d.ts +6 -2
- package/dist/shared/bricks/manifests/button.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/button.manifest.js +1 -1
- package/dist/shared/bricks/manifests/card.manifest.d.ts +16 -10
- package/dist/shared/bricks/manifests/card.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/card.manifest.js +1 -1
- package/dist/shared/bricks/manifests/carousel.manifest.d.ts +14 -8
- package/dist/shared/bricks/manifests/carousel.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/carousel.manifest.js +1 -1
- package/dist/shared/bricks/manifests/footer.manifest.d.ts +7 -3
- package/dist/shared/bricks/manifests/footer.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/footer.manifest.js +1 -1
- package/dist/shared/bricks/manifests/form.manifest.d.ts +14 -10
- package/dist/shared/bricks/manifests/form.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/form.manifest.js +1 -1
- package/dist/shared/bricks/manifests/hero.manifest.d.ts +10 -7
- package/dist/shared/bricks/manifests/hero.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/hero.manifest.js +1 -1
- package/dist/shared/bricks/manifests/html.manifest.d.ts +65 -0
- package/dist/shared/bricks/manifests/html.manifest.d.ts.map +1 -0
- package/dist/shared/bricks/manifests/html.manifest.js +3 -0
- package/dist/shared/bricks/manifests/icon.manifest.d.ts +5 -0
- package/dist/shared/bricks/manifests/icon.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/icon.manifest.js +1 -1
- package/dist/shared/bricks/manifests/image.manifest.d.ts +6 -1
- package/dist/shared/bricks/manifests/image.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/image.manifest.js +1 -1
- package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts +11 -4
- package/dist/shared/bricks/manifests/images-gallery.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/images-gallery.manifest.js +1 -1
- package/dist/shared/bricks/manifests/map.manifest.d.ts +1 -0
- package/dist/shared/bricks/manifests/map.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/map.manifest.js +1 -1
- package/dist/shared/bricks/manifests/navbar.manifest.d.ts +5 -2
- package/dist/shared/bricks/manifests/navbar.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/navbar.manifest.js +1 -1
- package/dist/shared/bricks/manifests/sidebar.manifest.d.ts +1 -0
- package/dist/shared/bricks/manifests/sidebar.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/sidebar.manifest.js +1 -1
- package/dist/shared/bricks/manifests/social-links.manifest.d.ts +7 -4
- package/dist/shared/bricks/manifests/social-links.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/social-links.manifest.js +1 -1
- package/dist/shared/bricks/manifests/spacer.manifest.d.ts +1 -2
- package/dist/shared/bricks/manifests/spacer.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/spacer.manifest.js +1 -1
- package/dist/shared/bricks/manifests/testimonials.manifest.d.ts +16 -4
- package/dist/shared/bricks/manifests/testimonials.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/testimonials.manifest.js +1 -1
- package/dist/shared/bricks/manifests/text.manifest.d.ts +13 -7
- package/dist/shared/bricks/manifests/text.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/text.manifest.js +1 -1
- package/dist/shared/bricks/manifests/video.manifest.d.ts +2 -1
- package/dist/shared/bricks/manifests/video.manifest.d.ts.map +1 -1
- package/dist/shared/bricks/manifests/video.manifest.js +1 -1
- package/dist/shared/bricks/props/align.d.ts +2 -2
- package/dist/shared/bricks/props/align.d.ts.map +1 -1
- package/dist/shared/bricks/props/align.js +1 -1
- package/dist/shared/bricks/props/background.d.ts.map +1 -1
- package/dist/shared/bricks/props/background.js +1 -1
- package/dist/shared/bricks/props/border.d.ts.map +1 -1
- package/dist/shared/bricks/props/border.js +1 -1
- package/dist/shared/bricks/props/color-preset.d.ts +23 -0
- package/dist/shared/bricks/props/color-preset.d.ts.map +1 -0
- package/dist/shared/bricks/props/color-preset.js +3 -0
- package/dist/shared/bricks/props/color.d.ts +4 -4
- package/dist/shared/bricks/props/color.d.ts.map +1 -1
- package/dist/shared/bricks/props/color.js +1 -1
- package/dist/shared/bricks/props/common.d.ts +15 -1
- package/dist/shared/bricks/props/common.d.ts.map +1 -1
- package/dist/shared/bricks/props/common.js +1 -1
- package/dist/shared/bricks/props/datasource.js +1 -1
- package/dist/shared/bricks/props/direction.js +1 -1
- package/dist/shared/bricks/props/dynamic.d.ts +99 -0
- package/dist/shared/bricks/props/dynamic.d.ts.map +1 -0
- package/dist/shared/bricks/props/dynamic.js +3 -0
- package/dist/shared/bricks/props/effects.d.ts +3 -10
- package/dist/shared/bricks/props/effects.d.ts.map +1 -1
- package/dist/shared/bricks/props/effects.js +1 -1
- package/dist/shared/bricks/props/gap.js +1 -1
- package/dist/shared/bricks/props/geolocation.js +1 -1
- package/dist/shared/bricks/props/helpers.js +1 -1
- package/dist/shared/bricks/props/padding.d.ts +2 -2
- package/dist/shared/bricks/props/padding.d.ts.map +1 -1
- package/dist/shared/bricks/props/padding.js +1 -1
- package/dist/shared/bricks/props/string.d.ts.map +1 -1
- package/dist/shared/bricks/props/string.js +1 -1
- package/dist/shared/bricks/props/tags.d.ts +5 -0
- package/dist/shared/bricks/props/tags.d.ts.map +1 -0
- package/dist/shared/bricks/props/tags.js +3 -0
- package/dist/shared/bricks/props/text.d.ts +5 -3
- package/dist/shared/bricks/props/text.d.ts.map +1 -1
- package/dist/shared/bricks/props/text.js +1 -1
- package/dist/shared/bricks/props/types.d.ts +2 -1
- package/dist/shared/bricks/props/types.d.ts.map +1 -1
- package/dist/shared/bricks.d.ts +28 -23
- package/dist/shared/bricks.d.ts.map +1 -1
- package/dist/shared/bricks.js +1 -1
- package/dist/shared/chunk-2XBPVHQS.js +3 -0
- package/dist/shared/chunk-4JW3PDHN.js +3 -0
- package/dist/shared/chunk-4TH3C76A.js +3 -0
- package/dist/shared/chunk-6E4DU2E7.js +4 -0
- package/dist/shared/chunk-6FITVVZX.js +3 -0
- package/dist/shared/chunk-6HBHYDD6.js +3 -0
- package/dist/shared/chunk-6WCGUAQN.js +3 -0
- package/dist/shared/chunk-7DMUDZ4H.js +3 -0
- package/dist/shared/chunk-7SC3EFLX.js +3 -0
- package/dist/shared/chunk-ACVLF55Q.js +3 -0
- package/dist/shared/chunk-AIDGSWJT.js +3 -0
- package/dist/shared/chunk-BZGNY7LB.js +3 -0
- package/dist/shared/chunk-C3VGP4CA.js +3 -0
- package/dist/shared/chunk-CP5QDUD4.js +3 -0
- package/dist/shared/{chunk-WVZGGVII.js → chunk-CT3EI7YN.js} +1 -1
- package/dist/shared/{chunk-BWFLDYK4.js → chunk-DQXDGV67.js} +1 -1
- package/dist/shared/chunk-E22E4XWE.js +3 -0
- package/dist/shared/chunk-ETYYRWLK.js +3 -0
- package/dist/shared/chunk-HHO3ONTQ.js +3 -0
- package/dist/shared/chunk-I46VBMLF.js +3 -0
- package/dist/shared/chunk-L5G4JZ6X.js +3 -0
- package/dist/shared/chunk-LFQZRGHS.js +3 -0
- package/dist/shared/{chunk-EYFM6QEJ.js → chunk-LSPN22SI.js} +2 -2
- package/dist/shared/chunk-OIOYMECS.js +3 -0
- package/dist/shared/chunk-OUMOZ26S.js +5 -0
- package/dist/shared/chunk-R5PVOFCD.js +5 -0
- package/dist/shared/chunk-T3LIA4YB.js +3 -0
- package/dist/shared/chunk-T4LMBG2G.js +3 -0
- package/dist/shared/chunk-TAR7NSTK.js +3 -0
- package/dist/shared/chunk-TTTXV7TJ.js +6 -0
- package/dist/shared/{chunk-G23RXTRB.js → chunk-TWBY2GOR.js} +1 -1
- package/dist/shared/{chunk-Y6IWAOSW.js → chunk-UCTXPU6L.js} +2 -2
- package/dist/shared/chunk-UHF6IEKV.js +3 -0
- package/dist/shared/chunk-UMHXXXVP.js +3 -0
- package/dist/shared/{chunk-ACWYW257.js → chunk-UU2MSQXY.js} +1 -1
- package/dist/shared/{chunk-AAFBPONG.js → chunk-VGRYSAXA.js} +1 -1
- package/dist/shared/{chunk-Z7UVZLR3.js → chunk-VPFCY4DH.js} +1 -1
- package/dist/shared/chunk-VSC6WNEN.js +3 -0
- package/dist/shared/chunk-VZPXXFVX.js +3 -0
- package/dist/shared/chunk-WNJGWW7T.js +8 -0
- package/dist/shared/chunk-WRFLHXQ3.js +3 -0
- package/dist/shared/chunk-WU6Q4WYD.js +3 -0
- package/dist/shared/chunk-X2MM36S4.js +3 -0
- package/dist/shared/chunk-YCWDG5HS.js +3 -0
- package/dist/shared/chunk-Z7Y6Q3R3.js +3 -0
- package/dist/shared/datarecords/types.d.ts +3 -3
- package/dist/shared/datasources/external/http-json/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/external/rss/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/fetcher.d.ts +2 -2
- package/dist/shared/datasources/fetcher.d.ts.map +1 -1
- package/dist/shared/datasources/types.d.ts +99 -9
- package/dist/shared/datasources/types.d.ts.map +1 -1
- package/dist/shared/datasources/types.js +1 -1
- package/dist/shared/datasources.d.ts +7 -0
- package/dist/shared/datasources.d.ts.map +1 -1
- package/dist/shared/datasources.js +1 -1
- package/dist/shared/page.d.ts +67 -34
- package/dist/shared/page.d.ts.map +1 -1
- package/dist/shared/page.js +1 -1
- package/dist/shared/site.d.ts +256 -174
- package/dist/shared/site.d.ts.map +1 -1
- package/dist/shared/site.js +1 -1
- package/dist/shared/sitemap.d.ts.map +1 -1
- package/dist/shared/sitemap.js +1 -1
- package/dist/shared/theme.d.ts +0 -10
- package/dist/shared/theme.d.ts.map +1 -1
- package/dist/shared/theme.js +1 -1
- package/dist/shared/themes/color-system.d.ts +3 -2
- package/dist/shared/themes/color-system.d.ts.map +1 -1
- package/dist/shared/themes/color-system.js +1 -1
- package/dist/shared/themes/tests/color-system.test.d.ts +2 -0
- package/dist/shared/themes/tests/color-system.test.d.ts.map +1 -0
- package/dist/shared/utils/schema-resolver.d.ts +1 -1
- package/dist/shared/utils/schema-resolver.d.ts.map +1 -1
- package/dist/shared/utils/schema-resolver.js +1 -1
- package/dist/shared/utils/schema.d.ts +3 -2
- package/dist/shared/utils/schema.d.ts.map +1 -1
- package/dist/shared/utils/schema.js +1 -1
- package/dist/shared/utils/typed-ref.d.ts +10 -3
- package/dist/shared/utils/typed-ref.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/shared/bricks/manifests/dynamic.manifest.d.ts +0 -90
- package/dist/shared/bricks/manifests/dynamic.manifest.d.ts.map +0 -1
- package/dist/shared/bricks/manifests/dynamic.manifest.js +0 -3
- package/dist/shared/bricks/props/preset.d.ts +0 -20
- package/dist/shared/bricks/props/preset.d.ts.map +0 -1
- package/dist/shared/bricks/props/preset.js +0 -3
- package/dist/shared/chunk-25GNRPND.js +0 -3
- package/dist/shared/chunk-3BHGHCFJ.js +0 -3
- package/dist/shared/chunk-4U3RUNXA.js +0 -3
- package/dist/shared/chunk-6RCMJM64.js +0 -3
- package/dist/shared/chunk-74VUKHQ3.js +0 -3
- package/dist/shared/chunk-7KZ4JO3A.js +0 -3
- package/dist/shared/chunk-BIW4XH5V.js +0 -3
- package/dist/shared/chunk-CNZCBHS6.js +0 -3
- package/dist/shared/chunk-DBSKZ77G.js +0 -3
- package/dist/shared/chunk-DMMN4GLQ.js +0 -5
- package/dist/shared/chunk-FZR35ENC.js +0 -3
- package/dist/shared/chunk-GAMWYHGA.js +0 -4
- package/dist/shared/chunk-HSVVL2XI.js +0 -3
- package/dist/shared/chunk-JBK4UT4V.js +0 -3
- package/dist/shared/chunk-JPZLUT2C.js +0 -3
- package/dist/shared/chunk-LVALAJTS.js +0 -3
- package/dist/shared/chunk-N3V5MQ54.js +0 -3
- package/dist/shared/chunk-NH7OSYIN.js +0 -3
- package/dist/shared/chunk-O2FH4E3N.js +0 -3
- package/dist/shared/chunk-OQGZM5MP.js +0 -8
- package/dist/shared/chunk-PNEXNSWL.js +0 -3
- package/dist/shared/chunk-PYR54IIV.js +0 -3
- package/dist/shared/chunk-QC3RMDCP.js +0 -3
- package/dist/shared/chunk-QNONYB7B.js +0 -3
- package/dist/shared/chunk-RO7U6M52.js +0 -3
- package/dist/shared/chunk-RXIM6GTA.js +0 -3
- package/dist/shared/chunk-SCMY46IO.js +0 -6
- package/dist/shared/chunk-SMRTJM3Z.js +0 -3
- package/dist/shared/chunk-SPAC6HPH.js +0 -3
- package/dist/shared/chunk-SYBZFX47.js +0 -3
- package/dist/shared/chunk-UISGU6GO.js +0 -3
- package/dist/shared/chunk-VGDHQGKQ.js +0 -3
- package/dist/shared/chunk-VWSGP7VT.js +0 -3
- package/dist/shared/chunk-WCZVFBSW.js +0 -3
- package/dist/shared/chunk-Z6MXOFP2.js +0 -3
- package/dist/shared/chunk-ZKGRZ5CN.js +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effects.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/effects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE1E,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEhF,
|
|
1
|
+
{"version":3,"file":"effects.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/effects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE1E,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEhF,wBAAgB,MAAM,CAAC,OAAO,GAAE,iBAAsB,6HAYrD;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC;AAE/D,wBAAgB,SAAS,CAAC,OAAO,GAAE,iBAAsB,6HAExD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,uIAczD;AAED,wBAAgB,aAAa,CAAC,OAAO,GAAE,aAAkB,uIAExD;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,uCAWnF;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a,b,c,d,e}from"../../chunk-
|
|
3
|
+
import{a,b,c,d,e}from"../../chunk-T4LMBG2G.js";import"../../chunk-EJGNYD4V.js";import"../../chunk-SFKZAUPW.js";export{e as opacity,a as shadow,b as shadowRef,c as textShadow,d as textShadowRef};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a,b}from"../../chunk-
|
|
3
|
+
import{a,b}from"../../chunk-TWBY2GOR.js";import"../../chunk-EJGNYD4V.js";import"../../chunk-SFKZAUPW.js";export{a as basicGap,b as basicGapRef};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as e}from"../../chunk-IFEIRRZ2.js";import{a as t}from"../../chunk-
|
|
3
|
+
import{a as e}from"../../chunk-IFEIRRZ2.js";import{a as t}from"../../chunk-T3LIA4YB.js";import"../../chunk-EJGNYD4V.js";import{Type as o}from"@sinclair/typebox";function m(i={}){let{title:n="Location",defaultZoom:d}=i;return o.Object({lat:e("Latitude",{"ui:field":"hidden"}),lng:e("Longitude",{"ui:field":"hidden"}),address:t("Address",{"ui:field":"geoaddress"}),tooltip:o.Optional(t("Tooltip",{})),zoom:o.Optional(e("Zoom",{description:"Zoom level for the map","ui:instructions":"The zoom level should be between 0 (world view) and 21 (street view).","ui:field":"slider",minimum:12,maximum:18,default:d}))},{title:n,metadata:{category:"content"},...i})}export{m as geolocation};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a,b,c,d}from"../../chunk-
|
|
3
|
+
import{a,b,c,d}from"../../chunk-UU2MSQXY.js";import"../../chunk-UMHXXXVP.js";import"../../chunk-2IYSJYNE.js";import"../../chunk-E22E4XWE.js";import"../../chunk-EJGNYD4V.js";import"../../chunk-SFKZAUPW.js";export{d as array,c as defineProps,b as getGroupInfo,a as group};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SchemaOptions, Static } from "@sinclair/typebox";
|
|
2
|
-
export declare function padding(): import("@sinclair/typebox").TUnsafe<"p-0" | "p-px" | "p-1" | "p-2" | "p-4" | "p-6" | "p-8" | "p-10" | "p-12" | "p-16" | "p-24">;
|
|
3
|
-
export declare function paddingRef(options?: SchemaOptions): import("@sinclair/typebox").TUnsafe<"p-0" | "p-px" | "p-1" | "p-2" | "p-4" | "p-6" | "p-8" | "p-10" | "p-12" | "p-16" | "p-24">;
|
|
2
|
+
export declare function padding(): import("@sinclair/typebox").TUnsafe<"p-0" | "p-px" | "p-1" | "p-2" | "p-3" | "p-4" | "p-6" | "p-8" | "p-10" | "p-12" | "p-16" | "p-24">;
|
|
3
|
+
export declare function paddingRef(options?: SchemaOptions): import("@sinclair/typebox").TUnsafe<"p-0" | "p-px" | "p-1" | "p-2" | "p-3" | "p-4" | "p-6" | "p-8" | "p-10" | "p-12" | "p-16" | "p-24">;
|
|
4
4
|
export type PaddingSettings = Static<ReturnType<typeof padding>>;
|
|
5
5
|
//# sourceMappingURL=padding.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"padding.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/padding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAI/D,wBAAgB,OAAO,
|
|
1
|
+
{"version":3,"file":"padding.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/padding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAI/D,wBAAgB,OAAO,4IA4BtB;AAED,wBAAgB,UAAU,CAAC,OAAO,GAAE,aAAkB,2IAKrD;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a,b}from"../../chunk-
|
|
3
|
+
import{a,b}from"../../chunk-6WCGUAQN.js";import"../../chunk-EJGNYD4V.js";import"../../chunk-SFKZAUPW.js";export{a as padding,b as paddingRef};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/string.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,KAAK,eAAe,GAAG,aAAa,GAClC,aAAa,GAAG;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEJ,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB,uCAElE;AAED,wBAAgB,GAAG,CAAC,KAAK,SAAQ,EAAE,YAAY,CAAC,EAAE,MAAM,uCAOvD;AAMD,wBAAgB,WAAW,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/string.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,KAAK,eAAe,GAAG,aAAa,GAClC,aAAa,GAAG;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEJ,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB,uCAElE;AAED,wBAAgB,GAAG,CAAC,KAAK,SAAQ,EAAE,YAAY,CAAC,EAAE,MAAM,uCAOvD;AAMD,wBAAgB,WAAW,CAAC,KAAK,SAAQ,EAAE,YAAY,CAAC,EAAE,MAAM,kHAoB/D;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC;AAEzE,wBAAgB,cAAc,CAAC,OAAO,GAAE,eAAoB,kHAE3D;AAED,KAAK,WAAW,GAAG,eAAe,GAAG;IAAE,4BAA4B,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/E,wBAAgB,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB,uCAW7D;AAED,wBAAgB,OAAO,CAAC,OAAO,GAAE,WAAgB,uCAEhD"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a,b,c,d,e,f}from"../../chunk-
|
|
3
|
+
import{a,b,c,d,e,f}from"../../chunk-T3LIA4YB.js";import"../../chunk-EJGNYD4V.js";export{e as icon,f as iconRef,a as string,b as url,c as urlOrPageId,d as urlOrPageIdRef};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Static, type StringOptions } from "@sinclair/typebox";
|
|
2
|
+
export declare function tags(options?: StringOptions): import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
3
|
+
export type TagsSettings = Static<ReturnType<typeof tags>>;
|
|
4
|
+
export declare function tagsRef(options?: StringOptions): import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
5
|
+
//# sourceMappingURL=tags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/tags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAG1E,wBAAgB,IAAI,CAAC,OAAO,CAAC,EAAE,aAAa,2EAe3C;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC;AAE3D,wBAAgB,OAAO,CAAC,OAAO,GAAE,aAAkB,2EAElD"}
|
|
@@ -2,15 +2,17 @@ import { type StringOptions, type Static } from "@sinclair/typebox";
|
|
|
2
2
|
type Options = StringOptions & {
|
|
3
3
|
"ui:no-extra-large-sizes"?: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare function fontSize(options?: Options): import("@sinclair/typebox").
|
|
5
|
+
export declare function fontSize(options?: Options): import("@sinclair/typebox").TUnsafe<"inherit" | "text-xs" | "text-sm" | "text-base" | "text-lg" | "text-xl">;
|
|
6
6
|
export type FontSizeSettings = Static<ReturnType<typeof fontSize>>;
|
|
7
|
-
export declare function fontSizeRef(options?: Options): import("@sinclair/typebox").
|
|
7
|
+
export declare function fontSizeRef(options?: Options): import("@sinclair/typebox").TUnsafe<"inherit" | "text-xs" | "text-sm" | "text-base" | "text-lg" | "text-xl">;
|
|
8
|
+
export declare function fontSizeXL(options?: Options): import("@sinclair/typebox").TUnsafe<"inherit" | "text-xs" | "text-sm" | "text-base" | "text-lg" | "text-xl" | "text-2xl" | "text-3xl" | "text-4xl" | "text-5xl" | "text-6xl" | "text-7xl">;
|
|
9
|
+
export declare function fontSizeXLRef(options?: Options): import("@sinclair/typebox").TUnsafe<"inherit" | "text-xs" | "text-sm" | "text-base" | "text-lg" | "text-xl" | "text-2xl" | "text-3xl" | "text-4xl" | "text-5xl" | "text-6xl" | "text-7xl">;
|
|
8
10
|
type TextContentOptions = {
|
|
9
11
|
showInSettings?: boolean;
|
|
10
12
|
disableSizing?: boolean;
|
|
11
13
|
disableAlignment?: boolean;
|
|
12
14
|
};
|
|
13
|
-
export declare function textContent({ title, default: defaults, showInSettings, disableSizing, disableAlignment, }?: TextContentOptions & StringOptions): import("@sinclair/typebox").TString;
|
|
15
|
+
export declare function textContent({ title, default: defaults, showInSettings, disableSizing, disableAlignment, ...rest }?: TextContentOptions & StringOptions): import("@sinclair/typebox").TString;
|
|
14
16
|
export type TextContentSettings = Static<ReturnType<typeof textContent>>;
|
|
15
17
|
export declare function textContentRef(options?: TextContentOptions & StringOptions): import("@sinclair/typebox").TString;
|
|
16
18
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAI1E,KAAK,OAAO,GAAG,aAAa,GAAG;IAC7B,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC,CAAC;AAEF,wBAAgB,QAAQ,CAAC,OAAO,GAAE,OAAY,gHAW7C;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC;AAEnE,wBAAgB,WAAW,CAAC,OAAO,GAAE,OAAY,gHAEhD;AAED,wBAAgB,UAAU,CAAC,OAAO,GAAE,OAAY,8LAwC/C;AACD,wBAAgB,aAAa,CAAC,OAAO,GAAE,OAAY,8LAElD;AAED,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,CAAC,EAC1B,KAAc,EACd,OAAO,EAAE,QAAQ,EACjB,cAAc,EACd,aAAqB,EACrB,gBAAwB,EACxB,GAAG,IAAI,EACR,GAAE,kBAAkB,GAAG,aAAkB,uCAezC;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC;AAEzE,wBAAgB,cAAc,CAAC,OAAO,GAAE,kBAAkB,GAAG,aAAkB,uCAE9E"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a,b,c,d}from"../../chunk-
|
|
3
|
+
import{a,b,c,d,e,f}from"../../chunk-C3VGP4CA.js";import"../../chunk-EJGNYD4V.js";import"../../chunk-SFKZAUPW.js";export{a as fontSize,b as fontSizeRef,c as fontSizeXL,d as fontSizeXLRef,e as textContent,f as textContentRef};
|
|
@@ -20,14 +20,15 @@ export type BrickProps<T extends BrickManifest> = {
|
|
|
20
20
|
* True if the brick is a child of a container (e.g. Section, Box)
|
|
21
21
|
*/
|
|
22
22
|
isContainerChild?: boolean;
|
|
23
|
+
isDynamicPreview?: boolean;
|
|
23
24
|
level?: number;
|
|
25
|
+
iterationIndex?: number;
|
|
24
26
|
};
|
|
25
27
|
export type BrickPropCategory = "settings" | "presets" | "content";
|
|
26
28
|
export type { TSchema };
|
|
27
29
|
type CommonMetadata = {
|
|
28
30
|
"ui:responsive"?: boolean | "mobile" | "mobile-only";
|
|
29
31
|
"ui:hidden"?: boolean | "if-empty";
|
|
30
|
-
"ui:scope"?: "site" | "page";
|
|
31
32
|
"ui:tab"?: BrickPropCategory;
|
|
32
33
|
};
|
|
33
34
|
export type FieldMetadata = CommonMetadata & {
|
|
@@ -1 +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,GAAG,cAAc,CAAC,GAAG;QAC7D,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAC1B,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC1C,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC,CAAC;KACrD,CAAC;IACF;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
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,GAAG,cAAc,CAAC,GAAG;QAC7D,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAC1B,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC1C,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC,CAAC;KACrD,CAAC;IACF;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,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;IACrD,WAAW,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IACnC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,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,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,CAAC,CAAC;IACV,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,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"}
|
package/dist/shared/bricks.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Static, type TObject } from "@sinclair/typebox";
|
|
2
|
+
import type { CommonBrickProps } from "./bricks/props/common";
|
|
2
3
|
/**
|
|
3
4
|
* Generates a unique identifier for bricks.
|
|
4
5
|
*/
|
|
@@ -22,15 +23,22 @@ export declare const brickSchema: TObject<{
|
|
|
22
23
|
mobileProps: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
23
24
|
propsMapping: import("@sinclair/typebox").TOptional<TObject<{}>>;
|
|
24
25
|
}>;
|
|
25
|
-
export type Brick = Static<typeof brickSchema
|
|
26
|
+
export type Brick = Omit<Static<typeof brickSchema>, "props" | "mobileProps"> & {
|
|
27
|
+
props: CommonBrickProps & Record<string, unknown>;
|
|
28
|
+
mobileProps?: CommonBrickProps & Record<string, unknown>;
|
|
29
|
+
};
|
|
26
30
|
export declare const sectionProps: TObject<{
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
colorPreset: import("@sinclair/typebox").TOptional<TObject<{
|
|
32
|
+
color: import("@sinclair/typebox").TUnsafe<string>;
|
|
33
|
+
gradientDirection: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"bg-gradient-to-t" | "bg-gradient-to-r" | "bg-gradient-to-b" | "bg-gradient-to-l" | "bg-gradient-to-tl" | "bg-gradient-to-tr" | "bg-gradient-to-br" | "bg-gradient-to-bl">>;
|
|
34
|
+
}>>;
|
|
35
|
+
direction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"flex-row" | "flex-col">>;
|
|
29
36
|
minHeight: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
30
|
-
|
|
37
|
+
variant: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"footer" | "navbar" | "sidebar">>;
|
|
31
38
|
maxWidth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<string>[]>>;
|
|
32
39
|
justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly">>;
|
|
33
40
|
alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-start" | "items-center" | "items-end" | "items-stretch">>;
|
|
41
|
+
padding: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"p-0" | "p-px" | "p-1" | "p-2" | "p-3" | "p-4" | "p-6" | "p-8" | "p-10" | "p-12" | "p-16" | "p-24">>;
|
|
34
42
|
gap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
35
43
|
lastTouched: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
36
44
|
}>;
|
|
@@ -39,24 +47,32 @@ export declare const sectionSchema: TObject<{
|
|
|
39
47
|
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
40
48
|
order: import("@sinclair/typebox").TNumber;
|
|
41
49
|
props: TObject<{
|
|
42
|
-
|
|
43
|
-
|
|
50
|
+
colorPreset: import("@sinclair/typebox").TOptional<TObject<{
|
|
51
|
+
color: import("@sinclair/typebox").TUnsafe<string>;
|
|
52
|
+
gradientDirection: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"bg-gradient-to-t" | "bg-gradient-to-r" | "bg-gradient-to-b" | "bg-gradient-to-l" | "bg-gradient-to-tl" | "bg-gradient-to-tr" | "bg-gradient-to-br" | "bg-gradient-to-bl">>;
|
|
53
|
+
}>>;
|
|
54
|
+
direction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"flex-row" | "flex-col">>;
|
|
44
55
|
minHeight: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
45
|
-
|
|
56
|
+
variant: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"footer" | "navbar" | "sidebar">>;
|
|
46
57
|
maxWidth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<string>[]>>;
|
|
47
58
|
justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly">>;
|
|
48
59
|
alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-start" | "items-center" | "items-end" | "items-stretch">>;
|
|
60
|
+
padding: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"p-0" | "p-px" | "p-1" | "p-2" | "p-3" | "p-4" | "p-6" | "p-8" | "p-10" | "p-12" | "p-16" | "p-24">>;
|
|
49
61
|
gap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
50
62
|
lastTouched: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
51
63
|
}>;
|
|
52
64
|
mobileProps: import("@sinclair/typebox").TOptional<TObject<{
|
|
53
|
-
|
|
54
|
-
|
|
65
|
+
colorPreset: import("@sinclair/typebox").TOptional<TObject<{
|
|
66
|
+
color: import("@sinclair/typebox").TUnsafe<string>;
|
|
67
|
+
gradientDirection: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"bg-gradient-to-t" | "bg-gradient-to-r" | "bg-gradient-to-b" | "bg-gradient-to-l" | "bg-gradient-to-tl" | "bg-gradient-to-tr" | "bg-gradient-to-br" | "bg-gradient-to-bl">>;
|
|
68
|
+
}>>;
|
|
69
|
+
direction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"flex-row" | "flex-col">>;
|
|
55
70
|
minHeight: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
56
|
-
|
|
71
|
+
variant: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"footer" | "navbar" | "sidebar">>;
|
|
57
72
|
maxWidth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<string>[]>>;
|
|
58
73
|
justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly">>;
|
|
59
74
|
alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-start" | "items-center" | "items-end" | "items-stretch">>;
|
|
75
|
+
padding: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"p-0" | "p-px" | "p-1" | "p-2" | "p-3" | "p-4" | "p-6" | "p-8" | "p-10" | "p-12" | "p-16" | "p-24">>;
|
|
60
76
|
gap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
61
77
|
lastTouched: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
62
78
|
}>>;
|
|
@@ -68,23 +84,12 @@ export declare const sectionSchema: TObject<{
|
|
|
68
84
|
propsMapping: import("@sinclair/typebox").TOptional<TObject<{}>>;
|
|
69
85
|
}>>;
|
|
70
86
|
}>;
|
|
71
|
-
export declare const sectionDefaultprops: Record<string, unknown>;
|
|
72
87
|
export type Section = Static<typeof sectionSchema>;
|
|
73
88
|
export declare function processSections(sections: Section[]): {
|
|
74
89
|
readonly props: Record<string, unknown>;
|
|
90
|
+
readonly mobileProps: Record<string, unknown>;
|
|
75
91
|
readonly bricks: Brick[];
|
|
76
92
|
readonly label?: string | undefined;
|
|
77
|
-
readonly mobileProps?: {
|
|
78
|
-
alignItems?: "items-start" | "items-center" | "items-end" | "items-stretch" | undefined;
|
|
79
|
-
backgroundColor?: string | undefined;
|
|
80
|
-
justifyContent?: "justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly" | undefined;
|
|
81
|
-
maxWidth?: string | undefined;
|
|
82
|
-
minHeight?: string | undefined;
|
|
83
|
-
gap?: string | undefined;
|
|
84
|
-
lastTouched?: number | undefined;
|
|
85
|
-
gradientDirection?: "bg-gradient-to-t" | "bg-gradient-to-r" | "bg-gradient-to-b" | "bg-gradient-to-l" | "bg-gradient-to-tl" | "bg-gradient-to-tr" | "bg-gradient-to-br" | "bg-gradient-to-bl" | undefined;
|
|
86
|
-
purpose?: "navbar" | "sidebar" | undefined;
|
|
87
|
-
} | undefined;
|
|
88
93
|
readonly id: string;
|
|
89
94
|
readonly order: number;
|
|
90
95
|
}[];
|
|
@@ -92,6 +97,6 @@ export declare function processSections(sections: Section[]): {
|
|
|
92
97
|
* process a brick and add default props
|
|
93
98
|
*/
|
|
94
99
|
export declare function processBrick<T extends Brick>(brick: T): T | false;
|
|
95
|
-
export declare function createEmptyBrick(type: string): Brick;
|
|
100
|
+
export declare function createEmptyBrick(type: string, ghost?: boolean): Brick;
|
|
96
101
|
export {};
|
|
97
102
|
//# sourceMappingURL=bricks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bricks.d.ts","sourceRoot":"","sources":["../../src/shared/bricks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAWpE;;GAEG;AACH,eAAO,MAAM,UAAU,2BAA4E,CAAC;AAEpG,QAAA,MAAM,2BAA2B;;;;;;;;;EAiD/B,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAE/E,eAAO,MAAM,eAAe,6CAE1B,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;EA0CvB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"bricks.d.ts","sourceRoot":"","sources":["../../src/shared/bricks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAWpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG9D;;GAEG;AACH,eAAO,MAAM,UAAU,2BAA4E,CAAC;AAEpG,QAAA,MAAM,2BAA2B;;;;;;;;;EAiD/B,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAE/E,eAAO,MAAM,eAAe,6CAE1B,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;EA0CvB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC,GAAG;IAC9E,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClD,WAAW,CAAC,EAAE,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;EAmGxB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBzB,CAAC;AAKF,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC;AAEnD,wBAAgB,eAAe,CAAC,QAAQ,EAAE,OAAO,EAAE;;;qBAMe,KAAK,EAAE;;;;IAGxE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,KAAK,CAgBjE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,UAAQ,GAAG,KAAK,CAQnE"}
|
package/dist/shared/bricks.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a,b,c,d,e,f,g,h
|
|
3
|
+
import{a,b,c,d,e,f,g,h}from"./chunk-X2MM36S4.js";import"./chunk-L42YBY5I.js";import"./chunk-VSC6WNEN.js";import"./chunk-DQXDGV67.js";import"./chunk-IFEIRRZ2.js";import"./chunk-7DMUDZ4H.js";import"./chunk-LSPN22SI.js";import"./chunk-QSZWDE3D.js";import"./chunk-ETYYRWLK.js";import"./chunk-4TH3C76A.js";import"./chunk-OUMOZ26S.js";import"./chunk-R5PVOFCD.js";import"./chunk-WU6Q4WYD.js";import"./chunk-YCWDG5HS.js";import"./chunk-LFQZRGHS.js";import"./chunk-6E4DU2E7.js";import"./chunk-MKIXZXWS.js";import"./chunk-TTTXV7TJ.js";import"./chunk-UHF6IEKV.js";import"./chunk-2XBPVHQS.js";import"./chunk-L5G4JZ6X.js";import"./chunk-6HBHYDD6.js";import"./chunk-WNJGWW7T.js";import"./chunk-4JW3PDHN.js";import"./chunk-3EM3B4DX.js";import"./chunk-BZGNY7LB.js";import"./chunk-WRFLHXQ3.js";import"./chunk-MPBYGS6W.js";import"./chunk-OIOYMECS.js";import"./chunk-VPFCY4DH.js";import"./chunk-TWBY2GOR.js";import"./chunk-CT3EI7YN.js";import"./chunk-6WCGUAQN.js";import"./chunk-T4LMBG2G.js";import"./chunk-C3VGP4CA.js";import"./chunk-ACVLF55Q.js";import"./chunk-6FITVVZX.js";import"./chunk-YIFNKP4J.js";import"./chunk-UU2MSQXY.js";import"./chunk-T3LIA4YB.js";import"./chunk-RGLVKILY.js";import"./chunk-7SC3EFLX.js";import"./chunk-VZPXXFVX.js";import"./chunk-UMHXXXVP.js";import"./chunk-2IYSJYNE.js";import"./chunk-E22E4XWE.js";import"./chunk-EJGNYD4V.js";import"./chunk-Z7Y6Q3R3.js";import"./chunk-SFKZAUPW.js";import"./chunk-VGRYSAXA.js";import"./chunk-I46VBMLF.js";export{c as brickSchema,b as brickTypeSchema,h as createEmptyBrick,a as generateId,g as processBrick,f as processSections,d as sectionProps,e as sectionSchema};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{b as o}from"./chunk-6FITVVZX.js";import{c as r}from"./chunk-UU2MSQXY.js";import{d as t,f as p}from"./chunk-T3LIA4YB.js";import{e as n}from"./chunk-7SC3EFLX.js";import{c as e}from"./chunk-2IYSJYNE.js";import{a as c}from"./chunk-VGRYSAXA.js";import{PiConfetti as s}from"react-icons/pi";import{Type as i}from"@sinclair/typebox";var g=c({type:"icon",name:"Icon",category:"basic",description:"An icon with optional text",resizable:!1,staticClasses:"grow-0",icon:s,props:r({icon:p({default:"mdi:heart"}),size:i.Optional(e({title:"Size",description:"The size of the icon. Can be a CSS length value (e.g. '2em', '24px')",default:"1em","ui:css-units":["em","rem","px"],"ai:instructions":"Use 'em', 'rem', or 'px' for units. Example: '2em', '24px'"})),color:i.Optional(o({title:"Color",default:"currentColor","ui:hide-color-label":!0})),link:i.Optional(t({title:"Link"})),loop:i.Optional(n())},{noGrow:!0})}),k=[{description:"Large heart icon",type:"icon",props:{icon:"mdi:heart",size:"2em"}},{description:"Shopping cart icon",type:"icon",props:{icon:"mdi:cart",size:"1.2em"}},{description:"Email/message icon",type:"icon",props:{icon:"mdi:email",size:"1.1em",link:"mailto:john.doe@example.com"}},{description:"Phone contact icon",type:"icon",props:{icon:"mdi:phone",size:"1em",link:"tel:+1234567890"}},{description:"Large download icon",type:"icon",props:{icon:"mdi:download",size:"2.5em",link:"https://example.com/file.zip"}},{description:"Menu hamburger icon",type:"icon",props:{icon:"mdi:menu",size:"1.4em"}},{description:"Close/X icon",type:"icon",props:{icon:"mdi:close",size:"1.2em"}},{description:"Social media Facebook icon",type:"icon",props:{icon:"mdi:facebook",size:"1.4em",link:"https://www.facebook.com/yourprofile"}},{description:"Social media Twitter icon",type:"icon",props:{icon:"mdi:twitter",size:"1.4em",link:"https://twitter.com/yourprofile"}},{description:"Social media Instagram icon",type:"icon",props:{icon:"mdi:instagram",size:"1.4em",link:"https://www.instagram.com/yourprofile"}}];export{g as a,k as b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a as c}from"./chunk-3EM3B4DX.js";import{b as f}from"./chunk-CT3EI7YN.js";import{b as a}from"./chunk-6WCGUAQN.js";import{b as n}from"./chunk-T4LMBG2G.js";import{b as i,d as r}from"./chunk-ACVLF55Q.js";import{c as m}from"./chunk-UU2MSQXY.js";import{e as l}from"./chunk-7SC3EFLX.js";import{e as s}from"./chunk-VZPXXFVX.js";import{c as p}from"./chunk-2IYSJYNE.js";import{b as t,d as e}from"./chunk-E22E4XWE.js";import{a as d}from"./chunk-VGRYSAXA.js";import{Type as o}from"@sinclair/typebox";import{RxBox as u}from"react-icons/rx";var I=d({type:"box",category:"container",name:"Box",description:"A box for stacking bricks horizontally or vertically",isContainer:!0,defaultWidth:{desktop:"auto",mobile:"100%"},defaultHeight:{desktop:"auto"},icon:u,props:m({colorPreset:o.Optional(s({title:"Color"})),direction:f({default:"flex-col",title:"Direction",description:"Direction of the box layout"}),justifyContent:o.Optional(t({default:"justify-center"})),alignItems:o.Optional(e({default:"items-stretch"})),gap:o.Optional(p({title:"Gap",default:"10px",description:"Space between bricks.","ai:instructions":"Can be a tailwind gap class like 'gap-1' or 'gap-2', or a custom value like '10px'","ui:placeholder":"Not specified","ui:styleId":"styles:gap"})),padding:o.Optional(a({default:"p-2"})),rounding:o.Optional(r({default:"rounded-md"})),border:o.Optional(i()),shadow:o.Optional(n()),loop:o.Optional(l()),...c()})}),M=[];export{I as a,M as b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{c as e}from"./chunk-UU2MSQXY.js";import{a as p}from"./chunk-VGRYSAXA.js";import{CgSpaceBetween as t}from"react-icons/cg";var o=p({type:"spacer",name:"Spacer",category:"container",description:"A flexible element to create space between bricks.",staticClasses:"self-stretch",minWidth:{desktop:50},defaultWidth:{mobile:"auto",desktop:"50px"},minHeight:{mobile:30},icon:t,props:e({})}),n=[{description:"Transparent spacer of 100px wide",type:"spacer",props:{width:"100px"}},{description:"Transparent spacer of 20px wide",type:"spacer",props:{width:"20px"}}];export{o as a,n as b};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a as f}from"./chunk-MKIXZXWS.js";import{b as l}from"./chunk-CT3EI7YN.js";import{b as a}from"./chunk-6WCGUAQN.js";import{b as r}from"./chunk-C3VGP4CA.js";import{b as i,d as o}from"./chunk-ACVLF55Q.js";import{a as d,c as p}from"./chunk-UU2MSQXY.js";import{a as n}from"./chunk-T3LIA4YB.js";import{e as s}from"./chunk-VZPXXFVX.js";import{a as e}from"./chunk-SFKZAUPW.js";import{a as c}from"./chunk-VGRYSAXA.js";import{Type as t}from"@sinclair/typebox";import{FaWpforms as u}from"react-icons/fa6";var M=c({type:"form",name:"Form",description:"A form element",aiInstructions:`The form brick automatically renders form fields based on the datarecord id provided in the props.
|
|
4
|
+
There is no need to define the form fields manually and the form does not accept any children`,isContainer:!1,icon:u,minWidth:{desktop:300},props:p({datarecordId:f("Datarecord ID",{description:"The ID of the datarecord to use to generate the form fields","ui:responsive":"desktop"}),colorPreset:t.Optional(s({title:"Color",default:"bg-base-100 text-base-100-content"})),direction:t.Optional(l({title:"Direction",description:"The direction of the form fields",default:"flex-col","ui:responsive":"desktop","ui:desktop-only":!0})),padding:t.Optional(a({default:"p-4"})),rounding:t.Optional(o({default:"rounded-md"})),border:t.Optional(i({})),fontSize:t.Optional(r({default:"inherit","ui:no-extra-large-sizes":!0})),button:d({title:"Button",children:{color:t.Optional(t.Union([t.Literal("btn-neutral",{title:"Neutral"}),t.Literal("btn-primary",{title:"Primary"}),t.Literal("btn-secondary",{title:"Secondary"}),t.Literal("btn-accent",{title:"Accent"})],{title:"Color",default:"btn-primary"})),size:t.Optional(e(["block","wide"],{title:"Size",description:"Button sizes.",enumNames:["Block","Wide"],default:"block","ui:responsive":"desktop"})),position:t.Optional(e(["justify-start","justify-center","justify-end"],{title:"Button Position",description:"The position of the button in the form",enumNames:["Left","Center","Right"],default:"justify-end","ui:responsive":"desktop",metadata:{filter:(b,m)=>m.button?.size!=="wide"}})),rounding:t.Optional(o({default:"rounded-md"}))}}),title:t.Optional(t.String({title:"Form title",default:"My form",metadata:{category:"content"}})),intro:t.Optional(t.String({title:"Intro",description:"The intro text of the form","ui:multiline":!0,metadata:{category:"content"}})),buttonLabel:t.Optional(n("Button Label",{default:"Submit",metadata:{category:"content"}})),successMessage:t.Optional(t.String({title:"Success Message",description:"The message to display when the form is successfully submitted",default:"Thank you for your submission!",metadata:{category:"content"}})),errorMessage:t.Optional(t.String({title:"Error Message",description:"The message to display when the form submission fails",default:"There was an error submitting the form. Please try again later.",metadata:{category:"content"}}))})}),P=[{description:"Basic contact form",type:"form",props:{title:"Contact Us",intro:"We'd love to hear from you. Send us a message and we'll respond as soon as possible.",direction:"flex-row",datarecordId:"contacts",buttonLabel:"Send Message",button:{size:"block"}}},{description:"User registration form with large button",type:"form",props:{title:"Create Account",intro:"Join our platform and start your journey today.",direction:"flex-row",datarecordId:"user-registration",buttonLabel:"Register",button:{size:"wide"}}},{description:"Newsletter subscription form (horizontal)",type:"form",props:{title:"Stay Updated",intro:"Subscribe to our newsletter for the latest updates and exclusive content.",direction:"flex-col",datarecordId:"newsletter-subscription",buttonLabel:"Subscribe",button:{size:"block"}}},{description:"Event registration form",type:"form",props:{title:"Conference Registration",intro:"Register for the Annual Tech Conference 2025. Early bird pricing ends soon!",direction:"flex-col",datarecordId:"event-registration",buttonLabel:"Register Now",button:{size:"block"}}},{description:"Job application form",type:"form",props:{title:"Apply for Position",intro:"We're excited to learn more about you! Please fill out this application form completely.",direction:"flex-col",datarecordId:"job-application",buttonLabel:"Submit Application",button:{size:"block"}}}];export{M as a,P as b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a as o}from"./chunk-EJGNYD4V.js";import{Type as t}from"@sinclair/typebox";function s(r,e="Text color"){return t.String({title:e,$id:"styles:color","ai:instructions":"hex/rgb/rgba color or classes like `text-<variant>-<shade>`, variants being `primary`, `secondary`, `accent` and `neutral`, and shades between 50 and 900",default:r,"ui:styleId":"styles:color","ui:field":"color","ui:color-type":"text"})}function l(r={}){return o("styles:color",{...r,"ui:styleId":"styles:color"})}function a(r,e="Border color"){return t.String({title:e,$id:"styles:borderColor","ai:instructions":"hex/rgb/rgba color or classes like `border-<variant>-<shade>`, variants being `primary`, `secondary`, `accent` and `neutral`, and shades between 50 and 900",default:r,"ui:styleId":"styles:borderColor","ui:field":"color","ui:color-type":"border"})}function c(r={}){return o("styles:borderColor",{...r,"ui:styleId":"styles:borderColor"})}export{s as a,l as b,a as c,c as d};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{b as t}from"./chunk-TWBY2GOR.js";import{b as r}from"./chunk-6WCGUAQN.js";import{b as o,d as i}from"./chunk-ACVLF55Q.js";import{c as l}from"./chunk-UU2MSQXY.js";import{a}from"./chunk-T3LIA4YB.js";import{b as n}from"./chunk-RGLVKILY.js";import{e as s}from"./chunk-7SC3EFLX.js";import{e as p}from"./chunk-VZPXXFVX.js";import{a as c}from"./chunk-VGRYSAXA.js";import{Type as e}from"@sinclair/typebox";import{IoGridOutline as g}from"react-icons/io5";var P=c({type:"images-gallery",name:"Gallery",category:"media",description:"An image collection",aiInstructions:"This brick should mostly be used for image galleries and collections.",consumesMultipleQueryRows:!0,defaultInspectorTab:"content",isContainer:!1,minHeight:{desktop:200},minWidth:{desktop:300},defaultWidth:{desktop:"400px",mobile:"100%"},icon:g,props:l({colorPreset:e.Optional(p({title:"Color",default:{color:"bg-base-100 text-base-100-content"}})),loop:e.Optional(s()),images:e.Array(e.Object({image:n({"ui:responsive":"desktop","ui:no-alt-text":!0,"ui:no-object-options":!0,"ui:placeholder":"https://example.com/image.jpg"}),legend:e.Optional(a("Legend"))}),{title:"Images",default:[],maxItems:12,metadata:{category:"content",consumeQuery:!0}}),columns:e.Optional(e.Number({title:"Columns",description:"Number of columns. Only applies to desktop screens. On mobile, it will always display 1 column.",minimum:1,maximum:6,default:3,"ui:field":"slider","ui:responsive":"desktop"})),gap:e.Optional(t({default:"gap-4"})),padding:e.Optional(r({default:"p-4"})),rounding:e.Optional(i()),border:e.Optional(o())})}),w=[{description:"Product portfolio gallery (3-column grid)",type:"images-gallery",props:{columns:3,gap:"gap-4",padding:"p-4",images:[{image:{src:"https://via.placeholder.com/400x400.png?text=Product+1"},legend:"Premium wireless headphones"},{image:{src:"https://via.placeholder.com/400x400.png?text=Product+2"},legend:"Bluetooth speaker"},{image:{src:"https://via.placeholder.com/400x400.png?text=Product+3"},legend:"Smart fitness tracker"},{image:{src:"https://via.placeholder.com/400x400.png?text=Product+4"},legend:"Wireless charging pad"}]}},{description:"Team photos gallery (4-column grid)",type:"images-gallery",props:{columns:4,gap:"gap-6",padding:"p-6",images:[{image:{src:"https://via.placeholder.com/300x300.png?text=CEO"},legend:"Sarah Johnson - Chief Executive Officer"},{image:{src:"https://via.placeholder.com/300x300.png?text=CTO"},legend:"Mike Chen - Chief Technology Officer"},{image:{src:"https://via.placeholder.com/300x300.png?text=Design"},legend:"Emily Rodriguez - Head of Design"},{image:{src:"https://via.placeholder.com/300x300.png?text=Marketing"},legend:"David Park - Marketing Director"},{image:{src:"https://via.placeholder.com/300x300.png?text=Sales"},legend:"Lisa Wong - Sales Manager"},{image:{src:"https://via.placeholder.com/300x300.png?text=Support"},legend:"Alex Thompson - Customer Support Lead"},{image:{src:"https://via.placeholder.com/300x300.png?text=Dev"},legend:"Carlos Martinez - Senior Developer"},{image:{src:"https://via.placeholder.com/300x300.png?text=HR"},legend:"Jennifer Adams - HR Specialist"}]}},{description:"Project showcase (2-column grid with larger spacing)",type:"images-gallery",props:{columns:2,gap:"gap-6",padding:"p-6",images:[{image:{src:"https://via.placeholder.com/600x400.png?text=Website+Redesign"},legend:"Modern e-commerce website redesign project"},{image:{src:"https://via.placeholder.com/600x400.png?text=Mobile+App"},legend:"iOS and Android mobile application"},{image:{src:"https://via.placeholder.com/600x400.png?text=Brand+Identity"},legend:"Complete brand identity design package"},{image:{src:"https://via.placeholder.com/600x400.png?text=Dashboard+UI"},legend:"Analytics dashboard user interface"}]}},{description:"Event photos",type:"images-gallery",props:{columns:4,gap:"gap-6",padding:"p-6",images:[{image:{src:"https://via.placeholder.com/250x180.png?text=Opening"},legend:"Conference opening ceremony"},{image:{src:"https://via.placeholder.com/250x180.png?text=Keynote"},legend:"Keynote presentation"},{image:{src:"https://via.placeholder.com/250x180.png?text=Workshop"},legend:"Technical workshop session"},{image:{src:"https://via.placeholder.com/250x180.png?text=Networking"},legend:"Networking lunch break"},{image:{src:"https://via.placeholder.com/250x180.png?text=Panel"},legend:"Expert panel discussion"},{image:{src:"https://via.placeholder.com/250x180.png?text=Awards"},legend:"Awards ceremony"}]}}];export{P as a,w as b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a as i}from"./chunk-EJGNYD4V.js";import{a as e}from"./chunk-SFKZAUPW.js";function d(){return e(["p-0","p-px","p-1","p-2","p-3","p-4","p-6","p-8","p-10","p-12","p-16","p-24"],{title:"Padding",$id:"styles:padding",enumNames:["None","Minimal","Size 1","Size 2","Size 3","Size 4","Size 5","Size 6","Size 7","Size 8","Size 9","Size 10"],description:"Space between the content and the border","ai:instructions":"Can be a tailwind class like `p-4` or a custom value like `p-[16px]`.","ui:field":"enum","ui:responsive":!0,"ui:styleId":"styles:padding"})}function a(t={}){return i("styles:padding",{...t,"ui:styleId":"styles:padding"})}export{d as a,a as b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{b as l}from"./chunk-OIOYMECS.js";import{b as e}from"./chunk-T4LMBG2G.js";import{f as o}from"./chunk-C3VGP4CA.js";import{a as s}from"./chunk-YIFNKP4J.js";import{c as p}from"./chunk-UU2MSQXY.js";import{a,d as r}from"./chunk-T3LIA4YB.js";import{b as n}from"./chunk-RGLVKILY.js";import{e as i}from"./chunk-VZPXXFVX.js";import{a as c}from"./chunk-VGRYSAXA.js";import{Type as t}from"@sinclair/typebox";import{VscLayoutPanelOff as d}from"react-icons/vsc";var w=c({type:"navbar",name:"Navbar",category:"layout",description:"A navigation bar with logo and navigation",aiInstructions:"This brick should be used on most sites/pages. It must be placed on its own section.",duplicatable:!1,resizable:!1,movable:!1,staticClasses:"flex-grow",defaultWidth:{mobile:"100%"},defaultHeight:{mobile:"60px",desktop:"60px"},icon:d,iconClassName:"rotate-180",props:p({color:t.Optional(i({title:"Color",default:{color:"primary-500"}})),brand:t.Optional(o({title:"Brand name",default:"Acme Inc.",disableSizing:!0,metadata:{category:"content"}})),logo:t.Optional(n({title:"Logo","ui:show-img-search":!1,"ui:no-object-options":!0,"ui:no-dynamic":!0,"ui:placeholder":"https://example.com/logo.png",metadata:{category:"content"}})),hideBrand:t.Optional(s("Hide brand name",void 0,{metadata:{filter:(u,g)=>!!g.logo}})),shadow:t.Optional(e()),linksPosition:t.Union([t.Literal("left",{title:"Left"}),t.Literal("center",{title:"Center"}),t.Literal("right",{title:"Right"})],{title:"Links position",default:"right","ui:responsive":"desktop"}),linksTagsFilter:t.Optional(l({title:"Pages tags",description:"Filter pages links in the navbar by tags. Only pages with these tags will be shown.",default:["navbar"],metadata:{category:"content"}})),staticNavItems:t.Optional(t.Array(t.Object({urlOrPageId:r(),label:t.Optional(a("Label"))}),{title:"Static links",description:"Additional static navigation links to show in the navbar",default:[],metadata:{category:"content"}}))},{noAlignSelf:!0})}),S=[{description:"Corporate navbar with logo and right-aligned navigation",type:"navbar",props:{brand:"TechCorp Solutions",logo:{src:"https://via.placeholder.com/120x40.png?text=TechCorp",alt:"TechCorp Solutions logo"},linksPosition:"right",staticNavItems:[{urlOrPageId:"/services"},{urlOrPageId:"/about"},{urlOrPageId:"/portfolio"},{urlOrPageId:"/contact"}]}},{description:"Dark theme navbar with centered navigation",type:"navbar",props:{brand:"TechCorp Solutions",logo:{src:"https://via.placeholder.com/100x35.png?text=Studio",alt:"Creative Studio logo"},linksPosition:"center",staticNavItems:[{urlOrPageId:"/work"},{urlOrPageId:"/services"},{urlOrPageId:"/team"},{urlOrPageId:"/blog"}]}},{description:"SaaS platform navbar with fixed positioning",type:"navbar",props:{brand:"TechCorp Solutions",logo:{src:"https://via.placeholder.com/110x38.png?text=CloudFlow",alt:"CloudFlow platform logo"},linksPosition:"right",staticNavItems:[{urlOrPageId:"/features"},{urlOrPageId:"/pricing"},{urlOrPageId:"/docs"},{urlOrPageId:"/login"}]}},{description:"E-commerce navbar",type:"navbar",props:{brand:"TechCorp Solutions",logo:{src:"https://via.placeholder.com/130x45.png?text=ShopEasy",alt:"ShopEasy store logo"},linksPosition:"right",staticNavItems:[{urlOrPageId:"/products"},{urlOrPageId:"/categories"},{urlOrPageId:"/deals"},{urlOrPageId:"/account"},{urlOrPageId:"/cart"}]}},{description:"Agency navbar with logo-only brand",type:"navbar",props:{brand:"TechCorp Solutions",logo:{src:"https://via.placeholder.com/140x50.png?text=Agency+Logo",alt:"Digital agency logo"},hideBrand:!0,linksPosition:"right",staticNavItems:[{urlOrPageId:"/projects"},{urlOrPageId:"/capabilities"},{urlOrPageId:"/insights"},{urlOrPageId:"/contact"}]}},{description:"Restaurant navbar with warm styling",type:"navbar",props:{brand:"TechCorp Solutions",logo:{src:"https://via.placeholder.com/80x50.png?text=BV",alt:"Bella Vista restaurant logo"},linksPosition:"center",staticNavItems:[{urlOrPageId:"/menu"},{urlOrPageId:"/reservations"},{urlOrPageId:"/events"},{urlOrPageId:"/location"}]}},{description:"Portfolio navbar with left-aligned navigation",type:"navbar",props:{brand:"TechCorp Solutions",linksPosition:"left",staticNavItems:[{urlOrPageId:"/work"},{urlOrPageId:"/about"},{urlOrPageId:"/experience"},{urlOrPageId:"/contact"}]}}];export{w as a,S as b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a as r}from"./chunk-EJGNYD4V.js";import{d as o}from"./chunk-Z7Y6Q3R3.js";import{Type as e}from"@sinclair/typebox";function p(){return e.Object({queryId:e.String({description:"The Query ID to use for dynamic content."}),alias:e.String({title:"Alias",minLength:1,maxLength:100,pattern:"^[a-zA-Z0-9_]+$",description:"Alias for the query results, used in dynamic content. Use a simple keyword without spaces or special characters. Aliases are unique across the page.","ai:instructions":"Use a simple keyword without spaces or special characters. Aliases are unique across the page. You can use the same query several times with different aliases in order to, for example, apply different parameters to the same query."}),params:e.Optional(e.Array(o,{description:"Additional query parameters/filters to apply to the query. One can use placeholders in values like ':slug' to reference URL parameters.",title:"Query Parameters",default:[]}))},{title:"Query",description:"When set, this brick will loop through the results of the query and render the content for each item.",$id:"content:queryUse","ui:field":"query",metadata:{category:"content"}})}var l=i();function i(t={}){return r("content:queryUse",t)}function u(t={}){return e.Object({over:e.String({title:"Over",description:"The query alias to loop over. If not set, the brick will be rendered only once.","ai:instructions":"Specify the Query Alias to loop over the results."}),overrideLimit:e.Optional(e.Number({minimum:1,description:"Override the limit of items to loop through. If not set, it will use the default limit of the query. If set to 1, it will not loop and will render only the first item."}))},{$id:"content:loop",title:"Repeat over","ui:field":"loop","ui:hidden-if":"no-page-queries",metadata:{category:"content"},...t})}function c(t={}){return r("content:loop",t)}export{p as a,l as b,i as c,u as d,c as e};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{d as o}from"./chunk-6FITVVZX.js";import{a as t}from"./chunk-EJGNYD4V.js";import{a as r}from"./chunk-SFKZAUPW.js";import{Type as n}from"@sinclair/typebox";function s(e={}){return n.Object({width:r(["border-0","border","border-2","border-4","border-8"],{title:"Width",enumNames:["None","Small","Medium","Large","Extra large"],"ai:instructions":"Don't specify width if you want no border.","ui:field":"enum","ui:display":"select","ui:placeholder":"None",default:"border-0"}),color:o({title:"Color",description:"The color of the border.",default:"border-current"})},{title:"Border",$id:"styles:border","ui:styleId":"styles:border",description:"Set the border width and color.","ui:field":"border","ui:responsive":!0,...e})}function p(e={}){return t("styles:border",e)}function a(e={}){return n.Optional(r(["rounded-auto","rounded-none","rounded-sm","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-full"],{title:"Corner rounding",enumNames:["Auto","None","Small","Medium","Large","Extra large","2xl","Full"],$id:"styles:rounding","ui:styleId":"styles:rounding","ui:responsive":"desktop",...e}))}function f(e={}){return t("styles:rounding",e)}export{s as a,p as b,a as c,f as d};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a as k}from"./chunk-OIOYMECS.js";import{a as d,c as n}from"./chunk-VPFCY4DH.js";import{a as s}from"./chunk-TWBY2GOR.js";import{a as w}from"./chunk-CT3EI7YN.js";import{a as j}from"./chunk-6WCGUAQN.js";import{a as h,c as S}from"./chunk-T4LMBG2G.js";import{a as y,e as g}from"./chunk-C3VGP4CA.js";import{a as c,c as l}from"./chunk-ACVLF55Q.js";import{a as i,c as m}from"./chunk-6FITVVZX.js";import{c as u,e as b}from"./chunk-T3LIA4YB.js";import{a as O}from"./chunk-RGLVKILY.js";import{a as C,d as F}from"./chunk-7SC3EFLX.js";import{a as v,d as x}from"./chunk-VZPXXFVX.js";import{a as f}from"./chunk-UMHXXXVP.js";import{b as p}from"./chunk-2IYSJYNE.js";import{a,c as r,e as o}from"./chunk-E22E4XWE.js";import A from"ajv";import U from"ajv-formats";var e=new A({useDefaults:!0,strictSchema:!1,validateSchema:!1,coerceTypes:!0,allErrors:!0,inlineRefs:!1});e.addSchema(d(),"styles:background");e.addSchema(n(),"styles:backgroundColor");e.addSchema(a(),"styles:justifyContent");e.addSchema(r(),"styles:alignItems");e.addSchema(o(),"styles:alignSelf");e.addSchema(s(),"styles:basicGap");e.addSchema(l(),"styles:rounding");e.addSchema(y(),"styles:fontSize");e.addSchema(f(),"styles:hidden");e.addSchema(w(),"styles:direction");e.addSchema(v(),"styles:gradientDirection");e.addSchema(c(),"styles:border");e.addSchema(j(),"styles:padding");e.addSchema(i(),"styles:color");e.addSchema(m(),"styles:borderColor");e.addSchema(h(),"styles:shadow");e.addSchema(S(),"styles:textShadow");e.addSchema(p(),"styles:cssLength");e.addSchema(O(),"assets:image");e.addSchema(b(),"assets:icon");e.addSchema(g(),"content:textContent");e.addSchema(u(),"content:urlOrPageId");e.addSchema(F(),"content:loop");e.addSchema(C(),"content:queryUse");e.addSchema(x(),"presets:color");e.addSchema(k(),"content:tags");var q=["date-time","time","date","email","hostname","ipv4","ipv6","uri","uri-reference","uuid","uri-template","json-pointer","relative-json-pointer","regex"];U(e,[...q]);e.addFormat("date-object",{validate:t=>t instanceof Date&&!Number.isNaN(t.getTime()),async:!1});e.addFormat("nanoid",{validate:t=>typeof t=="string",async:!1});e.addFormat("richtext",{validate:t=>typeof t=="string",async:!1});e.addFormat("markdown",{validate:t=>typeof t=="string",async:!1});e.addFormat("multiline",{validate:t=>typeof t=="string",async:!1});e.addFormat("password",{validate:t=>typeof t=="string",async:!1});function re(t){return!t||t.length===0?"Unknown validation error":t.map(N=>{let{instancePath:$,message:D,params:E}=N,I=$||"root",P=Object.entries(E||{}).map(([T,z])=>`${T}: ${z}`).join(", ");return`${I} ${D} (${P})`}).join("; ")}export{e as a,q as b,re as c};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{b as i}from"./chunk-C3VGP4CA.js";import{b as o,d as e}from"./chunk-ACVLF55Q.js";import{c as a}from"./chunk-UU2MSQXY.js";import{a as r,d as n}from"./chunk-T3LIA4YB.js";import{e as p}from"./chunk-VZPXXFVX.js";import{a as l}from"./chunk-VGRYSAXA.js";import{Type as t}from"@sinclair/typebox";import{RxButton as d}from"react-icons/rx";var h=l({type:"button",name:"Button",category:"basic",description:"A button with text and optional icon",resizable:"horizontal",icon:d,minWidth:{desktop:120,mobile:120},defaultWidth:{mobile:"100%"},props:a({colorPreset:t.Optional(p({default:{color:"primary-500"},title:"Color","ui:default-gradient-direction":"bg-gradient-to-b"})),label:r("Label",{default:"My button",metadata:{category:"content"}}),fontSize:t.Optional(i({title:"Font Size",description:"The font size of the button text.",default:"text-base","ui:responsive":"desktop","ui:no-extra-large-sizes":!0})),rounding:t.Optional(e({default:"rounded-md"})),border:t.Optional(o({default:{width:"border-0"},"ui:responsive":"desktop"})),linkToUrlOrPageId:t.Optional(n({title:"Link","ui:placeholder":"https://example.com",metadata:{category:"content"}}))})}),x=[{description:"Primary button, full width, linking to a URL",type:"button",props:{label:"Click me",linkToUrlOrPageId:"https://example.com"}},{description:"Secondary button, block width, linking to a page",type:"button",props:{label:"Go to page",linkToUrlOrPageId:"page-id-123"}}];export{h as a,x as b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a as e}from"./chunk-EJGNYD4V.js";import{a as n}from"./chunk-SFKZAUPW.js";import{Type as r}from"@sinclair/typebox";function f(t={}){return n(["inherit","text-xs","text-sm","text-base","text-lg","text-xl"],{enumNames:["Same as parent","Extra small","Small","Medium","Large","Extra large"],default:"inherit",title:"Font size",$id:"styles:fontSize","ui:styleId":"styles:fontSize","ui:field":"enum","ui:display":"select",...t})}function g(t={}){return e("styles:fontSize",t)}function S(t={}){return n(["inherit","text-xs","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl"],{enumNames:["Same as parent","Extra small","Small","Medium","Large","Extra large","Extra large (2x)","Extra large (3x)","Extra large (4x)","Extra large (5x)","Extra large (6x)","Extra large (7x)"],default:"inherit",title:"Font size",$id:"styles:fontSize","ui:styleId":"styles:fontSize","ui:field":"enum","ui:display":"select",...t})}function d(t={}){return e("styles:fontSizeXL",t)}function m({title:t="Text",default:i,showInSettings:o,disableSizing:a=!1,disableAlignment:l=!1,...s}={}){return r.String({title:t,description:"Text content. Can contain basic HTML tags like `<strong>`, `<em>`, `<br>` and `<a>` as well as `<p>` and `<span>` and lists <ul> <ol> <li>.",$id:"content:text",default:i??"My text","ui:disable-sizing":a,"ui:disable-alignment":l,...s,"ui:field":o?"string":"hidden"})}function y(t={}){return e("content:text",t)}export{f as a,g as b,S as c,d,m as e,y as f};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a as t}from"./chunk-TAR7NSTK.js";import{e as a}from"./chunk-X2MM36S4.js";import{Type as e}from"@sinclair/typebox";var s=e.Object({id:e.String({description:"The unique ID of the page. Use a human readable url-safe slug"}),label:e.String({description:"The label (name) of the page"}),path:e.String({description:"The path of the page in the URL. Should be unique"}),sections:e.Array(a,{description:"The sections of the page. See the Section schema"}),tags:e.Array(e.String(),{description:"The tags of the page, used for organizating and filtering pages"}),attributes:t});export{s as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as
|
|
3
|
+
import{a as i}from"./chunk-EJGNYD4V.js";import{a as e}from"./chunk-SFKZAUPW.js";function n(t={}){return e(["flex-row","flex-col"],{title:"Direction",enumNames:["Horizontal","Vertical"],$id:"styles:direction","ui:styleId":"styles:direction",...t})}function p(t={}){return i("styles:direction",t)}export{n as a,p as b};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as o}from"./chunk-IFEIRRZ2.js";import{
|
|
3
|
+
import{a as o}from"./chunk-IFEIRRZ2.js";import{b as a}from"./chunk-T4LMBG2G.js";import{d as i}from"./chunk-ACVLF55Q.js";import{c as p}from"./chunk-UU2MSQXY.js";import{a as e}from"./chunk-T3LIA4YB.js";import{a as n}from"./chunk-VGRYSAXA.js";import{LiaMapMarkedAltSolid as r}from"react-icons/lia";import{Type as t}from"@sinclair/typebox";var s={lat:48.8566,lng:2.3522,zoom:15},w=n({type:"map",name:"Map",description:"A map element showing a location",aiInstructions:"This brick can be used to show a location on a map. Use the 'location' prop to set the coordinates and an optional tooltip.",minWidth:{desktop:280,mobile:280},minHeight:{desktop:200,mobile:120},defaultHeight:{desktop:"320px",mobile:"280px"},defaultWidth:{desktop:"380px",mobile:"100%"},icon:r,props:p({lat:o("Latitude",{"ui:field":"hidden"}),lng:o("Longitude",{"ui:field":"hidden"}),address:e("Address",{"ui:field":"geoaddress",metadata:{category:"content"}}),tooltip:t.Optional(e("Tooltip",{metadata:{category:"content"}})),zoom:t.Optional(o("Zoom",{description:"Zoom level for the map","ui:instructions":"The zoom level should be between 0 (world view) and 21 (street view).","ui:field":"slider",minimum:12,maximum:18,default:s.zoom,metadata:{category:"content"}})),rounding:t.Optional(i({default:"rounded-xl"})),shadow:t.Optional(a())})}),y=[{description:"Map showing a specific location",type:"map",props:{lat:37.7749,lng:-122.4194,address:"San Francisco, CA",tooltip:"San Francisco, CA",shadow:"shadow-md"}},{description:"Map with custom styles",type:"map",props:{lat:40.7128,lng:-74.006,address:"New York, NY",tooltip:"New York, NY",shadow:"shadow-lg"}}];export{s as a,w as b,y as c};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a as n}from"./chunk-EJGNYD4V.js";import{a as e}from"./chunk-SFKZAUPW.js";function r(t={}){return e(["justify-start","justify-center","justify-end","justify-between","justify-around","justify-evenly"],{enumNames:["Start","Center","End","Between","Around","Evenly"],$id:"styles:justifyContent",title:"Justify bricks","ui:field":"justify-content","ui:responsive":!0,"ui:styleId":"styles:justifyContent",...t})}function l(t={}){return n("styles:justifyContent",t)}function u(t={}){return e(["items-start","items-center","items-end","items-stretch"],{enumNames:["Start","Center","End","Stretch"],$id:"styles:alignItems",title:"Align bricks","ui:field":"align-items","ui:responsive":!0,"ui:styleId":"styles:alignItems",...t})}function f(t={}){return n("styles:alignItems",t)}function o(t={}){return e(["self-auto","self-start","self-center","self-end","self-stretch"],{enumNames:["Auto","Start","Center","End","Stretch"],default:"self-auto",$id:"styles:alignSelf",title:"Align self","ui:field":"align-self","ui:responsive":!0,"ui:styleId":"styles:alignSelf",...t})}function y(t={}){return n("styles:alignSelf",t)}export{r as a,l as b,u as c,f as d,o as e,y as f};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{b as s}from"./chunk-CT3EI7YN.js";import{b as a}from"./chunk-6WCGUAQN.js";import{b as l}from"./chunk-C3VGP4CA.js";import{b as e,d as t}from"./chunk-ACVLF55Q.js";import{c as r}from"./chunk-UU2MSQXY.js";import{a as o,f as n}from"./chunk-T3LIA4YB.js";import{e as c}from"./chunk-VZPXXFVX.js";import{a as p}from"./chunk-VGRYSAXA.js";import{Type as i}from"@sinclair/typebox";import{TiSocialFlickr as m}from"react-icons/ti";var T=p({type:"social-links",name:"Social links",description:"A list of social media links",icon:m,defaultWidth:{mobile:"100%"},props:r({colorPreset:i.Optional(c({title:"Color"})),links:i.Array(i.Object({icon:i.Optional(n({"ui:default-icon-collection":"cib"})),label:i.Optional(o("Label")),href:o("Link")}),{title:"Social Links",description:"List of social media links",default:[{href:"https://facebook.com/company",label:"Facebook",icon:"mdi:facebook"},{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://instagram.com/company",label:"Instagram",icon:"mdi:instagram"}],"ui:widget":"array","ui:displayField":"label","ui:options":{orderable:!0,removable:!0,addable:!0},metadata:{category:"content"}}),direction:i.Optional(s({default:"flex-row"})),fontSize:i.Optional(l()),padding:i.Optional(a({default:"p-2"})),rounding:i.Optional(t({default:"rounded-md"})),border:i.Optional(e()),icononly:i.Optional(i.Boolean({title:"Only icons",description:"If set, the brick will only display the icons without labels."}))})}),S=[{description:"Social icons displayed horizontally, without labels",type:"social-links",props:{icononly:!0,links:[{href:"https://facebook.com/company",label:"Facebook",icon:"mdi:facebook"},{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://instagram.com/company",label:"Instagram",icon:"mdi:instagram"}]}},{description:"Social icons displayed vertically, without labels",type:"social-links",props:{icononly:!0,direction:"flex-col",links:[{href:"https://facebook.com/company",label:"Facebook",icon:"mdi:facebook"},{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://instagram.com/company",label:"Instagram",icon:"mdi:instagram"}]}},{description:"Social icons displayed horizontally, with labels",type:"social-links",props:{icononly:!1,links:[{href:"https://facebook.com/company",label:"Facebook",icon:"mdi:facebook"},{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://instagram.com/company",label:"Instagram",icon:"mdi:instagram"},{href:"https://linkedin.com/company/company",label:"LinkedIn",icon:"mdi:linkedin"}]}},{description:"Social icons displayed vertically, with labels",type:"social-links",props:{icononly:!1,direction:"flex-col",links:[{href:"https://facebook.com/company",label:"Facebook",icon:"mdi:facebook"},{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://instagram.com/company",label:"Instagram",icon:"mdi:instagram"},{href:"https://linkedin.com/company/company",label:"LinkedIn",icon:"mdi:linkedin"}]}},{description:"Professional social links with labels",type:"social-links",props:{icononly:!1,links:[{href:"https://linkedin.com/in/johndoe",label:"Connect on LinkedIn",icon:"mdi:linkedin"},{href:"https://github.com/johndoe",label:"View GitHub Profile",icon:"mdi:github"},{href:"https://twitter.com/johndoe",label:"Follow on Twitter",icon:"mdi:twitter"},{href:"mailto:john@example.com",label:"Send Email",icon:"mdi:email"}]}},{description:"Creative portfolio social links (icon-only inline)",type:"social-links",props:{icononly:!0,links:[{href:"https://dribbble.com/designer",label:"Dribbble",icon:"mdi:dribbble"},{href:"https://behance.net/designer",label:"Behance",icon:"mdi:behance"},{href:"https://instagram.com/designer",label:"Instagram",icon:"mdi:instagram"},{href:"https://pinterest.com/designer",label:"Pinterest",icon:"mdi:pinterest"},{href:"https://youtube.com/designer",label:"YouTube",icon:"mdi:youtube"}]}},{description:"Developer/tech social links with labels",type:"social-links",props:{icononly:!1,direction:"flex-col",links:[{href:"https://github.com/developer",label:"GitHub",icon:"mdi:github"},{href:"https://stackoverflow.com/users/developer",label:"Stack Overflow",icon:"mdi:stack-overflow"},{href:"https://dev.to/developer",label:"Dev.to",icon:"mdi:dev-to"},{href:"https://codepen.io/developer",label:"CodePen",icon:"mdi:codepen"}]}},{description:"Music artist social platforms (block layout)",type:"social-links",props:{icononly:!0,direction:"flex-col",links:[{href:"https://spotify.com/artist/musician",label:"Listen on Spotify",icon:"mdi:spotify"},{href:"https://music.apple.com/artist/musician",label:"Apple Music",icon:"mdi:apple"},{href:"https://soundcloud.com/musician",label:"SoundCloud",icon:"mdi:soundcloud"},{href:"https://youtube.com/musician",label:"YouTube Channel",icon:"mdi:youtube"},{href:"https://bandcamp.com/musician",label:"Bandcamp",icon:"mdi:bandcamp"}]}},{description:"Business contact icons only",type:"social-links",props:{icononly:!0,links:[{href:"tel:+1234567890",label:"Phone",icon:"mdi:phone"},{href:"mailto:contact@business.com",label:"Email",icon:"mdi:email"},{href:"https://maps.google.com/business",label:"Location",icon:"mdi:map-marker"},{href:"https://business.com",label:"Website",icon:"mdi:web"}]}},{description:"Gaming content creator links (inline with labels)",type:"social-links",props:{icononly:!1,links:[{href:"https://twitch.tv/gamer",label:"Twitch",icon:"mdi:twitch"},{href:"https://youtube.com/gamer",label:"YouTube",icon:"mdi:youtube"},{href:"https://discord.gg/gamer",label:"Discord",icon:"mdi:discord"},{href:"https://tiktok.com/@gamer",label:"TikTok",icon:"mdi:tiktok"}]}},{description:"Restaurant social presence (block layout)",type:"social-links",props:{icononly:!1,direction:"flex-col",links:[{href:"https://facebook.com/restaurant",label:"Follow us on Facebook",icon:"mdi:facebook"},{href:"https://instagram.com/restaurant",label:"See photos on Instagram",icon:"mdi:instagram"},{href:"https://yelp.com/restaurant",label:"Review us on Yelp",icon:"mdi:yelp"},{href:"https://tripadvisor.com/restaurant",label:"TripAdvisor Reviews",icon:"mdi:tripadvisor"},{href:"tel:+1234567890",label:"Call for Reservations",icon:"mdi:phone"}]}},{description:"Minimal footer social icons",type:"social-links",props:{icononly:!0,direction:"flex-row",links:[{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://linkedin.com/company/company",label:"LinkedIn",icon:"mdi:linkedin"},{href:"mailto:hello@company.com",label:"Email",icon:"mdi:email"}]}},{description:"E-commerce store social channels (inline with labels)",type:"social-links",props:{icononly:!1,direction:"flex-row",links:[{href:"https://facebook.com/store",label:"Facebook",icon:"mdi:facebook"},{href:"https://instagram.com/store",label:"Instagram",icon:"mdi:instagram"},{href:"https://pinterest.com/store",label:"Pinterest",icon:"mdi:pinterest"},{href:"https://youtube.com/store",label:"YouTube",icon:"mdi:youtube"},{href:"https://tiktok.com/@store",label:"TikTok",icon:"mdi:tiktok"}]}}];export{T as a,S as b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{a as i}from"./chunk-SFKZAUPW.js";import{Type as e}from"@sinclair/typebox";import n from"chroma-js";import{colorPalette as h}from"@upstart.gg/style-system/colors";var k=[{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"}],c=e.Object({type:i(["stack","theme","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",additionalProperties:!1}),d=e.Object({type:i(["stack","theme","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",additionalProperties:!1}),m=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.String({title:"Description",description:"The description of the theme"}),tags:e.Array(e.String({title:"Tag"}),{title:"Tags",description:"The tags of the theme"}),browserColorScheme:e.String({title:"Browser scheme",description:"Color of browser-provided UI. Either 'light' or 'dark'"}),colors:e.Object({primary:e.String({title:"Primary",description:"The brand's primary color."}),secondary:e.String({title:"Secondary",description:"The brand's second most used color"}),accent:e.String({title:"Accent",description:"The brand's least used color"}),neutral:e.String({title:"Neutral",description:"The base neutral color"}),base100:e.String({title:"Base",description:"Base surface color of page, used for blank backgrounds. Should be white or near-white for light color-schemes, and black or near-black for dark color-schemes."}),base200:e.String({title:"Base 2",description:"Should be darker than base 1 but still light for light color-schemes, and lighter but still dark for dark color-schemes."}),base300:e.String({title:"Base 3",description:"3rd base color, should be darker than base 2 for light color-schemes, and lighter than base 2 for dark color-schemes."})},{title:"Theme base colors",description:"The base colors of the theme. Each theme must declare all these colors","ai:instructions":"You can use CSS notations like rgb #hex, hsl() oklab() or any tailwind color like slate-500 or red-200",additionalProperties:!1}),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"}),heading:c,body:d,alternatives:e.Array(e.Object({body:d,heading:c},{additionalProperties:!1}),{title:"Alternative fonts",description:"Alternative fonts that can be suggested to the user. Takes the same shape"})},{additionalProperties:!1})},{additionalProperties:!1}),T=e.Array(m),f={id:"_default_",name:"default",description:"Default Upstart theme",tags:["gradient","vibrant","modern","creative","dynamic","artistic","bold"],browserColorScheme:"light",colors:{base100:"#FFF",base200:"oklch(0.99 0.008 92)",base300:"oklch(0.97 0.01 85)",primary:"oklch(65.6% 0.241 354.308)",secondary:"oklch(0.65 0.22 185)",accent:"oklch(0.82 0.18 85)",neutral:"oklch(0.38 0.08 280)"},typography:{base:16,heading:{type:"stack",family:"system-ui"},body:{type:"stack",family:"system-ui"},alternatives:[]}};function S(t){return t.id===f.id}function v(t){return{...t,colors:Object.entries(t.colors).reduce((r,[s,o])=>{let a=p(o);return{...r,[s]:a}},{})}}function p(t){if(n.valid(t))return t;if(/ok(lch|lab)\(([^)]+)\)/.test(t)){let o=t.replace(/,/g," ");if(n.valid(o))return o}if(/^([a-z]+)-([0-9]+)$/.test(t)){let[o,a]=t.split("-"),l=h[o]?.[a];if(l)return l}return t}export{k as a,m as b,T as c,f as d,S as e,v as f};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
function f(e){if(!("enum"in e))return e.anyOf??e.oneOf;let{enum:n,enumNames:t,"ui:icons":r}=e;return n.map((i,s)=>({const:i,title:t?t[s]:i,"ui:icon":r?r[s]:void 0}))}function c(e,n){if(e.type==="object"&&"properties"in e){let t=e,r={};for(let[i,s]of Object.entries(t.properties)){let o=a(s,n);o!==void 0&&(r[i]=o)}return r}if(e.type==="array"&&"items"in e){let t=e;return n&&typeof t[`default:${n}`]<"u"?t[`default:${n}`]:t.default?t.default:[]}throw new Error("Schema must be either TObject or TArray")}function a(e,n){if(n&&typeof e[`default:${n}`]<"u")return e[`default:${n}`];if("default"in e&&e.default!==void 0)return e.default;if(e.type==="object"&&"properties"in e){let t=e,r={};for(let[i,s]of Object.entries(t.properties)){let o=a(s,n);o!==void 0&&(r[i]=o)}return Object.keys(r).length>0?r:void 0}e.type==="array"&&"items"in e}function p(e,n){function t(r){let i={};for(let[s,o]of Object.entries(r.properties))if(n(o))i[s]=o;else if(o.type==="object"&&o.properties){let u=t(o);Object.keys(u).length>0&&Object.assign(i,u)}return i}return t(e)}export{f as a,c as b,p as c};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
+
|
|
3
|
+
import{d as t}from"./chunk-VPFCY4DH.js";import{b as p}from"./chunk-6WCGUAQN.js";import{b as i}from"./chunk-T4LMBG2G.js";import{b as a,d as r}from"./chunk-ACVLF55Q.js";import{c as d}from"./chunk-UU2MSQXY.js";import{a as o}from"./chunk-T3LIA4YB.js";import{b as s}from"./chunk-RGLVKILY.js";import{e as m}from"./chunk-7SC3EFLX.js";import{a as n}from"./chunk-VGRYSAXA.js";import{RxImage as h}from"react-icons/rx";import{Type as e}from"@sinclair/typebox";var R=n({type:"image",name:"Image",category:"media",description:"An image brick",defaultWidth:{desktop:"auto",mobile:"100%"},icon:h,props:d({image:s({metadata:{category:"content"}}),backgroundColor:e.Optional(t()),padding:e.Optional(p({})),rounding:e.Optional(r({default:"rounded-md"})),border:e.Optional(a()),shadow:e.Optional(i()),blurHash:e.Optional(o("Blur Hash",{"ui:field":"hidden",description:"A placeholder for the image while it is loading. Use a blur hash string."})),author:e.Optional(e.Object({name:o("Image Author",{description:"Image author. Use this to give credit to the author"}),url:o("Image Author URL",{description:"Image author URL. Use this to give credit to the author"})},{"ui:field":"hidden"})),provider:e.Optional(o("Image Provider",{"ui:field":"hidden","ai:instructions":"The provider of the image, e.g. 'unsplash', 'pexels', etc."})),loop:e.Optional(m())})}),I=[{description:"Hero landscape image with shadow",type:"image",props:{image:{src:"https://via.placeholder.com/800x400.png?text=Hero+Landscape",alt:"Beautiful landscape view for hero section"},shadow:"shadow-lg"}},{description:"Team member profile photo",type:"image",props:{image:{src:"https://via.placeholder.com/300x300.png?text=Profile+Photo",alt:"Team member profile photo"},shadow:"shadow-md"}},{description:"Product showcase image",type:"image",props:{image:{src:"https://via.placeholder.com/400x400.png?text=Product+Image",alt:"Premium product showcase"},shadow:"shadow-sm"}},{description:"Blog article featured image",type:"image",props:{image:{src:"https://via.placeholder.com/600x300.png?text=Article+Featured",alt:"Featured image for blog article"},author:{name:"John Photographer",url:"https://example.com/john"},provider:"unsplash",shadow:"shadow-md"}},{description:"Gallery thumbnail with hover effect",type:"image",props:{image:{src:"https://via.placeholder.com/250x250.png?text=Gallery+Thumb",alt:"Gallery thumbnail image"},shadow:"shadow-md"}},{description:"Logo image with padding",type:"image",props:{image:{src:"https://via.placeholder.com/200x80.png?text=Company+Logo",alt:"Company logo"},padding:"p-8",shadow:"shadow-sm"}},{description:"Testimonial customer photo",type:"image",props:{image:{src:"https://via.placeholder.com/120x120.png?text=Customer",alt:"Happy customer testimonial photo"},shadow:"shadow-lg",padding:"p-2"}},{description:"Event banner image",type:"image",props:{image:{src:"https://via.placeholder.com/800x200.png?text=Event+Banner",alt:"Annual conference event banner"},shadow:"shadow-xl",author:{name:"Event Photographer",url:"https://example.com/photographer"},provider:"pexels"}},{description:"Illustration with background",type:"image",props:{image:{src:"https://via.placeholder.com/150x150.png?text=Blabla+Feature",alt:"Feature illustration"},padding:"p-8",shadow:"shadow-sm"}},{description:"Image with blurHash",type:"image",props:{image:{src:"https://via.placeholder.com/300x200.png?text=Card+Image",alt:"My image"},shadow:"shadow-md",blurHash:"L6PZfSi_.AyE_3t7t7R**0o#DgR4"}}];export{R as a,I as b};
|