@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":"site.d.ts","sourceRoot":"","sources":["../../src/shared/site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"site.d.ts","sourceRoot":"","sources":["../../src/shared/site.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAUtD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWrB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAE7C,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtB,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEnE,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,kBAAkB,CAmwCxE"}
|
package/dist/shared/site.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 as d,d as m}from"./chunk-Y6IWAOSW.js";import{b as o,d as c}from"./chunk-BIW4XH5V.js";import{a as n}from"./chunk-PNEXNSWL.js";import{a as p}from"./chunk-ZJNA4QQC.js";import{c as s}from"./chunk-4U3RUNXA.js";import{d as l}from"./chunk-47QOYVES.js";import{a as t}from"./chunk-RXIM6GTA.js";import"./chunk-MPBYGS6W.js";import{c as a,f as r}from"./chunk-Z6MXOFP2.js";import"./chunk-TATG6SFZ.js";import"./chunk-L42YBY5I.js";import"./chunk-SPAC6HPH.js";import"./chunk-DMMN4GLQ.js";import"./chunk-QNONYB7B.js";import"./chunk-3BHGHCFJ.js";import"./chunk-VGDHQGKQ.js";import"./chunk-BWFLDYK4.js";import"./chunk-IFEIRRZ2.js";import"./chunk-O2FH4E3N.js";import"./chunk-EYFM6QEJ.js";import"./chunk-QSZWDE3D.js";import"./chunk-CNZCBHS6.js";import"./chunk-74VUKHQ3.js";import"./chunk-VWSGP7VT.js";import"./chunk-25GNRPND.js";import"./chunk-6RCMJM64.js";import"./chunk-JBK4UT4V.js";import"./chunk-JPZLUT2C.js";import"./chunk-SYBZFX47.js";import"./chunk-HSVVL2XI.js";import"./chunk-GAMWYHGA.js";import"./chunk-MKIXZXWS.js";import"./chunk-SCMY46IO.js";import"./chunk-QC3RMDCP.js";import"./chunk-Z7UVZLR3.js";import"./chunk-RGLVKILY.js";import"./chunk-ZKGRZ5CN.js";import"./chunk-OQGZM5MP.js";import"./chunk-G23RXTRB.js";import"./chunk-DBSKZ77G.js";import"./chunk-YIFNKP4J.js";import"./chunk-UISGU6GO.js";import"./chunk-3EM3B4DX.js";import"./chunk-WVZGGVII.js";import"./chunk-WCZVFBSW.js";import"./chunk-N3V5MQ54.js";import"./chunk-7KZ4JO3A.js";import"./chunk-AAFBPONG.js";import"./chunk-ACWYW257.js";import"./chunk-LVALAJTS.js";import"./chunk-NH7OSYIN.js";import"./chunk-2IYSJYNE.js";import"./chunk-SMRTJM3Z.js";import"./chunk-FZR35ENC.js";import"./chunk-PYR54IIV.js";import"./chunk-SFKZAUPW.js";import"./chunk-EJGNYD4V.js";import{Type as i}from"@sinclair/typebox";var b=i.Object({id:i.String(),label:i.String(),hostname:i.String(),attributes:a,attr:a,datasources:s,datarecords:l,themes:i.Array(o),theme:o,sitemap:m,sitePrompt:p}),I=i.Object({site:i.Omit(b,["attributes"]),pages:i.Array(i.Composite([i.Omit(n,["attributes"]),d]))});function w(u){let e=0;return{site:{id:crypto.randomUUID(),label:"New site",hostname:"example.com",sitePrompt:u,theme:c,themes:[],sitemap:[{id:"_default_",label:"First page with really really long name that should be truncated",path:"/",tags:[],sectionsPlan:[]},{id:"_page_2",label:"Second page with really really long name that should be truncated",path:"/secondPage",tags:[],sectionsPlan:[]}],attributes:a,attr:r(),datarecords:[{id:"a7f26d80-d68e-4b7a-a4a3-e41c454670ce",label:"Simple Datarecord",schema:{type:"object",properties:{lastName:{type:"string",title:"Last Name","ui:placeholder":"Enter your last name",metadata:{order:0}},firstName:{type:"string",title:"First Name","ui:placeholder":"Enter your first name",metadata:{order:1}}}},provider:"internal"},{id:"aacfe76d-4309-466c-83ad-fda8b02b043d",label:"Complex Datarecord",schema:{type:"object",required:["firstName","lastName"],properties:{lastName:{type:"string",title:"Last Name",metadata:{order:1}},firstName:{type:"string",title:"First Name",metadata:{order:0}},multiline2:{type:"string",title:"Message",metadata:{order:4,"ui:multiline":!0},maxLength:30,minLength:1},age:{type:"number",title:"age",minimum:1,metadata:{order:2}},url:{type:"string",title:"personal web site",format:"uri",metadata:{order:3,"ui:placeholder":"https://mysite.example"},description:"your personal website url"},agree:{type:"boolean",title:"agree",metadata:{order:5}},favoriteColor:{enum:["blue","green","red","yellow","purple"],type:"string",title:"Favorite Color",metadata:{order:6},description:"Select your favorite color"},favoriteSeason:{enum:["spring","summer","autumn","winter"],type:"string",title:"Favorite Season",metadata:{order:6,"ui:widget":"radio"},description:"Select your favorite season"},favoriteMusic:{enum:["technology","politics","sports","music","movies"],type:"string",title:"Interests",metadata:{order:6,"ui:widget":"checkbox"},description:"What kind of subjects are you interested in?"},registrationDate:{type:"string",title:"Registration date",format:"date",metadata:{order:7}},email:{type:"string",title:"Email",format:"email",metadata:{order:8}},address:{type:"string",title:"Address",metadata:{order:9}},multiline1:{type:"string",title:"some text",metadata:{order:10,"ui:multiline":!0}},datetimes:{type:"string",title:"A datetime",format:"date-time",metadata:{order:11}}}},provider:"internal"}],datasources:[{id:"employees",label:"Company employees",provider:"custom",schema:{type:"array",items:{type:"object",properties:{$id:{type:"string",title:"ID"},$publicationDate:{type:"string",format:"date-time",title:"Publication Date"},$lastModificationDate:{type:"string",format:"date-time",title:"Last Modification Date"},$slug:{type:"string",title:"Slug"},firstName:{type:"string",title:"First Name"},lastName:{type:"string",title:"Last Name"},email:{type:"string",format:"email",title:"Email"},height:{type:"number",title:"Height"},admin:{type:"boolean",title:"Is Admin"},startedOn:{type:"string",format:"date",title:"Started On"},tags:{type:"array",items:{type:"string"},title:"Tags"}},required:["firstName","lastName","email","$id","$slug","$publicationDate","$lastModificationDate"]},examples:[{firstName:"John",lastName:"Doe",email:"john.doe@example.com"}]},indexes:[{fields:["$id"],name:"idx_unique_id"},{fields:["$slug"],name:"idx_unique_slug"},{fields:["$publicationDate"],name:"idx_unique_publicationDate"},{fields:["$lastModificationDate"],name:"idx_unique_lastModificationDate"},{fields:["firstName"],name:"idx_unique_firstName"},{fields:["email"],name:"idx_unique_email"},{fields:["lastName"],name:"idx_unique_lastName"},{fields:["height"],name:"idx_unique_height"},{fields:["admin"],name:"idx_unique_admin"},{fields:["startedOn"],name:"idx_unique_startedOn"},{fields:["tags"],name:"idx_unique_tags"}]},{id:"employees2",label:"Company employees 2",provider:"custom",schema:{type:"array",items:{type:"object",properties:{$id:{type:"string",title:"ID"},$publicationDate:{type:"string",format:"date-time",title:"Publication Date"},$lastModificationDate:{type:"string",format:"date-time",title:"Last Modification Date"},$slug:{type:"string",title:"Slug"},firstName:{type:"string",title:"First Name"},lastName:{type:"string",title:"Last Name"},tags:{type:"array",items:{type:"string"},title:"Tags"}},required:["firstName","lastName","$id","$slug","$publicationDate","$lastModificationDate"]}},indexes:[{fields:["$id"],name:"idx_unique_id"},{fields:["$slug"],name:"idx_unique_slug"},{fields:["$publicationDate"],name:"idx_unique_publicationDate"},{fields:["$lastModificationDate"],name:"idx_unique_lastModificationDate"},{fields:["lastName"],name:"idx_unique_lastName"},{fields:["tags"],name:"idx_unique_tags"}]}]},pages:[{id:"_default_",label:"First page with really really long name that should be truncated",path:"/",sections:[{id:`s_${t()}`,label:"Top",order:++e,props:{purpose:"navbar"},bricks:[{id:t(),type:"navbar",props:{backgroundColor:"neutral-dark-gradient",brand:"My Site",navigation:{staticItems:[{urlOrPageId:"/about"},{urlOrPageId:"/contact"}]}}}]},{id:`s_${t()}`,order:++e,label:"Media",props:{},bricks:[{id:t(),type:"video",props:{url:"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}},{id:t(),type:"image",props:{image:{alt:"Sample Image"},height:"200px"}},{id:t(),type:"icon",props:{icon:"mdi:heart"}}]},{id:`s_${t()}`,order:++e,label:"Containers",props:{},bricks:[{id:t(),type:"box",props:{direction:"flex-row",$children:[{id:t(),type:"button",props:{}},{id:t(),type:"button",props:{}},{id:t(),type:"button",props:{}},{id:t(),type:"button",props:{}}]}},{id:t(),type:"box",props:{direction:"flex-col",$children:[{id:t(),type:"button",props:{}},{id:t(),type:"button",props:{}},{id:t(),type:"button",props:{}},{id:t(),type:"button",props:{}}]}},{id:t(),type:"dynamic",props:{direction:"flex-col",datasource:{id:"employees"},$children:[{id:t(),type:"text",props:{content:"Hello this is the first text in the dynamic box.<br />I'm on a new line explicitly.<br />I'm the third line and I'm the longest of them all! Yeah!"}},{id:t(),type:"button",props:{label:"Button #1 in dynamic box with a {{$slug}}"}},{id:t(),type:"button",props:{label:"Small label"}},{id:t(),type:"button",props:{label:"Button #3 width the largest label"}}]}}]},{id:`s_${t()}`,order:++e,label:"Dynamic",bricks:[{type:"dynamic",props:{alignSelf:"self-auto",datasource:{},$children:[]},id:t()}],props:{}},{id:`s_${t()}`,order:++e,label:"Section 8",bricks:[{type:"form",props:{alignSelf:"self-auto",color:"base100",gradientDirection:"bg-gradient-to-br",align:"vertical",padding:"p-4",fontSize:"inherit",button:{color:"btn-color-primary",size:"block",rounding:"rounded-md",border:{width:"border",rounding:"rounded-md"}},title:"My form",buttonLabel:"Submit",successMessage:"Thank you for your submission!",errorMessage:"There was an error submitting the form. Please try again later.",height:"104.4px"},id:"brick-OKkJLZl"}],props:{}},{id:`s_${t()}`,label:"Testimonial",order:++e,props:{justifyContent:"justify-center",alignItems:"items-start"},bricks:[{id:t(),type:"dynamic",props:{alignSelf:"self-auto",datasource:{id:"employees2"},$children:[{id:t(),type:"testimonials",props:{testimonials:{author:"{{firstName}} {{lastName}}",text:"{{testimonial}}",socialIcon:"{{icon}}",company:"{{company}}"}}}]}},{type:"testimonials",props:{alignSelf:"self-auto",orientation:"horizontal",testimonials:[{author:"Billy Gates",text:"Upstart rocks! I love the flexibility and ease of use. Can't wait to see more features!",socialIcon:"mdi:twitter",company:"Microsoft"},{author:"Jeff Bezos",text:"Amazing product! Upstart has transformed the way I build websites. Highly recommend it!",socialIcon:"mdi:facebook",company:"Amazon"},{author:"Elon Musk",text:"Upstart is a game changer! The possibilities are endless.",socialIcon:"mdi:linkedin",company:"SpaceX"},{author:"Mark Zuckerberg",text:"Upstart is a fantastic tool for building modern websites. I'm impressed!",socialIcon:"mdi:facebook",company:"Meta"}]},id:"s_uuqtYzo"}]},{id:`s_${t()}`,label:"SocialLinks",order:++e,props:{justifyContent:"justify-center"},bricks:[{type:"social-links",props:{alignSelf:"self-auto",links:[{href:"https://facebook.com",label:"Facebook",icon:"mdi:facebook"},{href:"https://instagram.com",label:"Instagram",icon:"mdi:instagram"},{href:"https://x.com",label:"X",icon:"mdi:twitter"}]},id:t()},{type:"button",props:{alignSelf:"self-auto",label:"My button",justifyContent:"justify-center",type:"button",color:"btn-color-primary",height:"42px"},id:t()}]},{id:`s_${t()}`,label:"Form",order:++e,props:{justifyContent:"justify-center",alignItems:"items-start"},bricks:[{id:t(),type:"images-gallery",props:{}},{id:t(),type:"form",props:{padding:"p-4",datarecordId:"a7f26d80-d68e-4b7a-a4a3-e41c454670ce",title:"Simple Form",intro:"This is a simple form to collect user information.",button:{label:"Register",size:"block",borderRadius:"rounded-lg",color:"btn-color-primary"}}},{id:t(),type:"form",props:{padding:"p-4",datarecordId:"aacfe76d-4309-466c-83ad-fda8b02b043d",title:"Complex Form",intro:"This is a complex form with various field types.",button:{label:"Submit Form",borderRadius:"rounded-md",color:"btn-color-accent"}}}]},{id:`s_content-${t()}`,label:"Hero",order:++e,props:{minHeight:"400px"},bricks:[{id:`b_${t()}`,type:"hero",props:{}}]},{id:`s_content-${t()}`,label:"Content",order:++e,props:{},bricks:[{id:`b_${t()}`,type:"text",props:{text:"This is some sample content for the second page."}},{id:`b_${t()}`,type:"spacer",props:{width:"20px"},mobileProps:{width:"100%"}},{id:`b_${t()}`,type:"card",props:{cardTitle:"Welcome to My Site",cardBody:"This is a sample card body. You can edit this content.",cardImage:{src:"https://placehold.co/300x200@2x/EEEEEE/333333/svg?text=Sample",alt:"Sample"}}}]},{id:`s_content-${t()}`,label:"Bottom",order:++e,props:{},bricks:[{id:`b_${t()}`,type:"footer",props:{linksSections:[{sectionTitle:"Links",links:[{title:"About",url:"/about"},{title:"Contact",url:"/contact"},{title:"Privacy Policy",url:"/privacy"}]},{sectionTitle:"Social",links:[{title:"Twitter",url:"https://twitter.com"},{title:"Facebook",url:"https://facebook.com"},{title:"Instagram",url:"https://instagram.com"}]},{sectionTitle:"Legal",links:[{title:"Terms of Service",url:"/terms"},{title:"Cookie Policy",url:"/cookies"}]},{sectionTitle:"Contact",links:[{title:"Email Us",url:"mailto:"},{title:"Support",url:"/support"}]}]}}]}],tags:[],attributes:a,attr:r()},{id:"_page_2",label:"Second page with really really long name that should be truncated",path:"/secondPage",sections:[{id:`s_${t()}`,label:"Top",order:++e,props:{purpose:"navbar"},bricks:[{id:t(),type:"navbar",props:{backgroundColor:"neutral-dark-gradient",brand:"My Site",navigation:{staticItems:[{urlOrPageId:"/about"},{urlOrPageId:"/contact"}]}}}]},{id:`s_${t()}`,label:"Form",order:++e,props:{justifyContent:"justify-center"},bricks:[{id:t(),type:"form",props:{padding:"p-4",datarecordId:"a7f26d80-d68e-4b7a-a4a3-e41c454670ce",title:"Simple Form",intro:"This is a simple form to collect user information.",button:{label:"Register",position:"center",borderRadius:"rounded-lg",color:"btn-color-primary"},align:"horizontal"}},{type:"button",props:{alignSelf:"self-auto",label:"My button",justifyContent:"justify-center",type:"button"},id:t()},{id:t(),type:"form",props:{padding:"p-4",datarecordId:"aacfe76d-4309-466c-83ad-fda8b02b043d",title:"Complex Form",intro:"This is a complex form with various field types.",button:{label:"Register 2",position:"left",borderRadius:"rounded-lg",color:"btn-color-primary"}}}]},{id:`s_content-${t()}`,label:"Hero",order:++e,props:{minHeight:"400px"},bricks:[{id:`b_${t()}`,type:"hero",props:{color:"primary"}}]},{id:`s_content-${t()}`,label:"Content",order:++e,props:{},bricks:[{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${t()}`,type:"vbox",props:{$children:[{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit."}}]}},{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${t()}`,type:"spacer",props:{}},{id:`b_${t()}`,type:"card",props:{cardTitle:"Welcome to My Site",cardBody:"This is a sample card body. You can edit this content.",cardImage:{src:"https://placehold.co/300x200@2x/EEEEEE/333333/svg?text=Sample",alt:"Sample"}}}]},{id:`s_content-${t()}`,label:"Bottom",order:++e,props:{},bricks:[{id:`b_${t()}`,type:"footer",props:{linksSections:[{sectionTitle:"Links",links:[{title:"About",url:"/about"},{title:"Contact",url:"/contact"},{title:"Privacy Policy",url:"/privacy"}]},{sectionTitle:"Social",links:[{title:"Twitter",url:"https://twitter.com"},{title:"Facebook",url:"https://facebook.com"},{title:"Instagram",url:"https://instagram.com"}]},{sectionTitle:"Legal",links:[{title:"Terms of Service",url:"/terms"},{title:"Cookie Policy",url:"/cookies"}]},{sectionTitle:"Contact",links:[{title:"Email Us",url:"mailto:"},{title:"Support",url:"/support"}]}]}}]}],tags:[],attributes:a,attr:r()}]}}export{w as createEmptyConfig,b as siteSchema};
|
|
3
|
+
import{d as m}from"./chunk-UCTXPU6L.js";import{b as o,d as c}from"./chunk-HHO3ONTQ.js";import{d}from"./chunk-47QOYVES.js";import{a as n}from"./chunk-CP5QDUD4.js";import{a as p}from"./chunk-ZJNA4QQC.js";import{b as s,c as a,d as l}from"./chunk-TAR7NSTK.js";import"./chunk-TATG6SFZ.js";import{a as t}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{c as r}from"./chunk-Z7Y6Q3R3.js";import"./chunk-SFKZAUPW.js";import"./chunk-VGRYSAXA.js";import"./chunk-I46VBMLF.js";import{Type as i}from"@sinclair/typebox";var b=i.Object({id:i.String(),label:i.String(),hostname:i.String(),attributes:s,datasources:r,datarecords:d,themes:i.Array(o),theme:o,sitemap:m,sitePrompt:p}),w=i.Object({site:b,pages:i.Array(n)});function I(u){let e=0;return{site:{id:crypto.randomUUID(),label:"New site",hostname:"example.com",sitePrompt:u,theme:c,themes:[],sitemap:[{id:"_default_",label:"First page with really really long name that should be truncated",path:"/",tags:[],sectionsPlan:[]},{id:"_page_2",label:"Second page with really really long name that should be truncated",path:"/secondPage",tags:[],sectionsPlan:[]}],attributes:l(),datarecords:[{id:"a7f26d80-d68e-4b7a-a4a3-e41c454670ce",label:"Simple Datarecord",schema:{type:"object",properties:{lastName:{type:"string",title:"Last Name","ui:placeholder":"Enter your last name",metadata:{order:0}},firstName:{type:"string",title:"First Name","ui:placeholder":"Enter your first name",metadata:{order:1}}}},provider:"internal"},{id:"aacfe76d-4309-466c-83ad-fda8b02b043d",label:"Complex Datarecord",schema:{type:"object",required:["firstName","lastName"],properties:{lastName:{type:"string",title:"Last Name",metadata:{order:1}},firstName:{type:"string",title:"First Name",metadata:{order:0}},multiline2:{type:"string",title:"Message",metadata:{order:4,"ui:multiline":!0},maxLength:30,minLength:1},age:{type:"number",title:"age",minimum:1,metadata:{order:2}},url:{type:"string",title:"personal web site",format:"uri",metadata:{order:3,"ui:placeholder":"https://mysite.example"},description:"your personal website url"},agree:{type:"boolean",title:"agree",metadata:{order:5}},favoriteColor:{enum:["blue","green","red","yellow","purple"],type:"string",title:"Favorite Color",metadata:{order:6},description:"Select your favorite color"},favoriteSeason:{enum:["spring","summer","autumn","winter"],type:"string",title:"Favorite Season",metadata:{order:6,"ui:widget":"radio"},description:"Select your favorite season"},favoriteMusic:{enum:["technology","politics","sports","music","movies"],type:"string",title:"Interests",metadata:{order:6,"ui:widget":"checkbox"},description:"What kind of subjects are you interested in?"},registrationDate:{type:"string",title:"Registration date",format:"date",metadata:{order:7}},email:{type:"string",title:"Email",format:"email",metadata:{order:8}},address:{type:"string",title:"Address",metadata:{order:9}},multiline1:{type:"string",title:"some text",metadata:{order:10,"ui:multiline":!0}},datetimes:{type:"string",title:"A datetime",format:"date-time",metadata:{order:11}}}},provider:"internal"}],datasources:[{id:"employees",label:"Company employees",provider:"custom",schema:{type:"array",items:{type:"object",properties:{$id:{type:"string",title:"Id",format:"nanoid"},$publicationDate:{type:"string",format:"date-time",title:"Publication Date"},$lastModificationDate:{type:"string",format:"date-time",title:"Last Modification Date"},$slug:{type:"string",format:"slug",title:"Slug"},avatarUrl:{title:"Avatar URL",type:"string",format:"uri",default:"https://placehold.co/100x100"},firstName:{type:"string",title:"First Name"},lastName:{type:"string",title:"Last Name"},email:{type:"string",format:"email",title:"Email"},height:{type:"number",title:"Height"},admin:{type:"boolean",title:"Is Admin"},startedOn:{type:"string",format:"date",title:"Started On"},tags:{type:"array",items:{type:"string"},title:"Tags"}},required:["firstName","lastName","email","$id","$slug","$publicationDate","$lastModificationDate"]},examples:[{$id:"example-1",$publicationDate:"2023-01-01T00:00:00Z",$lastModificationDate:"2023-01-01T00:00:00Z",$slug:"john-doe",firstName:"John",lastName:"Doe",email:"john.doe@example.com",avatarUrl:"https://placehold.co/100x100",height:180,admin:!1,startedOn:"2020-01-01",tags:["developer","javascript"]},{$id:"example-2",$publicationDate:"2023-01-02T00:00:00Z",$lastModificationDate:"2023-01-02T00:00:00Z",$slug:"jane-smith",firstName:"Jane",lastName:"Smith",email:"jane.smith@example.com",avatarUrl:"https://placehold.co/100x100",height:165,admin:!1,startedOn:"2020-01-01",tags:["designer","figma"]},{$id:"example-3",$publicationDate:"2023-01-03T00:00:00Z",$lastModificationDate:"2023-01-03T00:00:00Z",$slug:"alice-johnson",firstName:"Alice",lastName:"Johnson",email:"alice.johnson@example.com",avatarUrl:"https://placehold.co/100x100",height:170,admin:!1,startedOn:"2020-01-01",tags:["developer","react"]},{$id:"example-4",$publicationDate:"2023-01-04T00:00:00Z",$lastModificationDate:"2023-01-04T00:00:00Z",$slug:"bob-brown",firstName:"Bob",lastName:"Brown",email:"bob.brown@example.com",avatarUrl:"https://placehold.co/100x100",height:175,admin:!1,startedOn:"2020-01-01",tags:["developer","vue"]},{$id:"example-5",$publicationDate:"2023-01-05T00:00:00Z",$lastModificationDate:"2023-01-05T00:00:00Z",$slug:"charlie-white",firstName:"Charlie",lastName:"White",email:"charlie.white@example.com",avatarUrl:"https://placehold.co/100x100",height:160,admin:!1,startedOn:"2020-01-01",tags:["designer","figma"]}]},indexes:[{fields:["$id"],name:"idx_unique_id"},{fields:["$slug"],name:"idx_unique_slug"},{fields:["$publicationDate"],name:"idx_unique_publicationDate"},{fields:["$lastModificationDate"],name:"idx_unique_lastModificationDate"},{fields:["email"],name:"idx_unique_email"},{fields:["admin"],name:"idx_unique_admin"},{fields:["startedOn"],name:"idx_unique_startedOn"},{fields:["tags"],name:"idx_unique_tags"}]},{id:"employees2",label:"Company employees 2",provider:"custom",schema:{type:"array",items:{type:"object",properties:{$id:{type:"string",title:"ID"},$publicationDate:{type:"string",format:"date-time",title:"Publication Date"},$lastModificationDate:{type:"string",format:"date-time",title:"Last Modification Date"},$slug:{type:"string",title:"Slug"},firstName:{type:"string",title:"First Name"},lastName:{type:"string",title:"Last Name"},tags:{type:"array",items:{type:"string"},title:"Tags"}},required:["firstName","lastName","$id","$slug","$publicationDate","$lastModificationDate"]}},indexes:[{fields:["$id"],name:"idx_unique_id"},{fields:["$slug"],name:"idx_unique_slug"},{fields:["$publicationDate"],name:"idx_unique_publicationDate"},{fields:["$lastModificationDate"],name:"idx_unique_lastModificationDate"},{fields:["lastName"],name:"idx_unique_lastName"},{fields:["tags"],name:"idx_unique_tags"}]}]},pages:[{id:"_default_",label:"First page with really really long name that should be truncated",path:"/blog/:slug",sections:[{id:`s_${t()}`,label:"Top",order:++e,props:{variant:"navbar"},bricks:[{id:t(),type:"navbar",props:{brand:"My Site",navigation:{staticItems:[{urlOrPageId:"/about"},{urlOrPageId:"/contact"}]}}}]},{id:`s_${t()}`,order:++e,label:"Media",props:{},bricks:[{id:t(),type:"video",props:{url:"https://www.youtube.com/watch?v=dQw4w9WgXcQ"}},{id:t(),type:"image",props:{image:{alt:"Sample Image"},height:"200px"}},{id:t(),type:"icon",props:{icon:"mdi:heart"}}]},{id:`s_${t()}`,order:++e,label:"Containers",props:{},bricks:[{id:t(),type:"box",props:{loop:{over:"allEmployees"},direction:"flex-row",$children:[{id:t(),type:"button",props:{label:"Button #1"}},{id:t(),type:"button",props:{label:"Button #2"}},{id:t(),type:"button",props:{label:"Button #3"}},{id:t(),type:"button",props:{label:"Button #4"}}]}},{id:t(),type:"box",props:{direction:"flex-col",datasource:{id:"employees"},$children:[{id:t(),type:"text",props:{content:"Hello this is the first text in the dynamic box.<br />I'm on a new line explicitly.<br />I'm the third line and I'm the longest of them all! Yeah!"}},{id:t(),type:"button",props:{label:"Button #1 in dynamic box with a {{$slug}}"}},{id:t(),type:"button",props:{label:"Small label"}},{id:t(),type:"button",props:{label:"Button #3 with the largest label"}}]}}]},{id:`s_${t()}`,order:++e,label:"Dynamic",bricks:[{type:"box",props:{alignSelf:"self-auto",datasource:{},$children:[]},id:t()}],props:{}},{id:`s_${t()}`,order:++e,label:"Section 8",bricks:[{type:"form",props:{alignSelf:"self-auto",color:"base100",align:"vertical",padding:"p-4",fontSize:"inherit",button:{size:"block",rounding:"rounded-md",border:{width:"border",rounding:"rounded-md"}},title:"My form",buttonLabel:"Submit",successMessage:"Thank you for your submission!",errorMessage:"There was an error submitting the form. Please try again later.",height:"104.4px"},id:"brick-OKkJLZl"}],props:{}},{id:`s_${t()}`,label:"Testimonial",order:++e,props:{justifyContent:"justify-center",alignItems:"items-start"},bricks:[{id:t(),type:"box",props:{alignSelf:"self-auto",datasource:{id:"employees2"},$children:[{id:t(),type:"testimonials",props:{testimonials:{author:"{{firstName}} {{lastName}}",text:"{{testimonial}}",socialIcon:"{{icon}}",company:"{{company}}"}}}]}},{type:"testimonials",props:{alignSelf:"self-auto",orientation:"horizontal",testimonials:[{author:"Billy Gates",text:"Upstart rocks! I love the flexibility and ease of use. Can't wait to see more features!",socialIcon:"mdi:twitter",company:"Microsoft"},{author:"Jeff Bezos",text:"Amazing product! Upstart has transformed the way I build websites. Highly recommend it!",socialIcon:"mdi:facebook",company:"Amazon"},{author:"Elon Musk",text:"Upstart is a game changer! The possibilities are endless.",socialIcon:"mdi:linkedin",company:"SpaceX"},{author:"Mark Zuckerberg",text:"Upstart is a fantastic tool for building modern websites. I'm impressed!",socialIcon:"mdi:facebook",company:"Meta"}]},id:"s_uuqtYzo"}]},{id:`s_${t()}`,label:"SocialLinks",order:++e,props:{justifyContent:"justify-center"},bricks:[{type:"social-links",props:{alignSelf:"self-auto",links:[{href:"https://facebook.com",label:"Facebook",icon:"mdi:facebook"},{href:"https://instagram.com",label:"Instagram",icon:"mdi:instagram"},{href:"https://x.com",label:"X",icon:"mdi:twitter"}]},id:t()},{type:"button",props:{alignSelf:"self-auto",label:"hey ho!",justifyContent:"justify-center",type:"button",height:"42px"},id:t()}]},{id:`s_${t()}`,label:"Form",order:++e,props:{justifyContent:"justify-center",alignItems:"items-start"},bricks:[{id:t(),type:"images-gallery",props:{}},{id:t(),type:"form",props:{padding:"p-4",datarecordId:"a7f26d80-d68e-4b7a-a4a3-e41c454670ce",title:"Simple Form",intro:"This is a simple form to collect user information.",button:{label:"Register",size:"block",borderRadius:"rounded-lg"}}},{id:t(),type:"form",props:{padding:"p-4",datarecordId:"aacfe76d-4309-466c-83ad-fda8b02b043d",title:"Complex Form",intro:"This is a complex form with various field types.",button:{label:"Submit Form",borderRadius:"rounded-md",color:"btn-color-accent"}}}]},{id:`s_content-${t()}`,label:"Hero",order:++e,props:{minHeight:"400px"},bricks:[{id:`b_${t()}`,type:"hero",props:{}}]},{id:`s_content-${t()}`,label:"Content",order:++e,props:{},bricks:[{id:`b_${t()}`,type:"text",props:{text:"This is some sample content for the second page."}},{id:`b_${t()}`,type:"spacer",props:{width:"20px"}},{id:`b_${t()}`,type:"card",props:{title:"Welcome to My Site",text:"This is a sample card body. You can edit this content.",cardImage:{src:"https://placehold.co/300x200@2x/EEEEEE/333333/svg?text=Sample",alt:"Sample"}}}]},{id:`s_content-${t()}`,label:"Bottom",order:++e,props:{},bricks:[{id:`b_${t()}`,type:"footer",props:{linksSections:[{sectionTitle:"Links",links:[{title:"About",url:"/about"},{title:"Contact",url:"/contact"},{title:"Privacy Policy",url:"/privacy"}]},{sectionTitle:"Social",links:[{title:"Twitter",url:"https://twitter.com"},{title:"Facebook",url:"https://facebook.com"},{title:"Instagram",url:"https://instagram.com"}]},{sectionTitle:"Legal",links:[{title:"Terms of Service",url:"/terms"},{title:"Cookie Policy",url:"/cookies"}]},{sectionTitle:"Contact",links:[{title:"Email Us",url:"mailto:"},{title:"Support",url:"/support"}]}]}}]}],tags:[],attributes:a({path:"/blog/:slug",queries:[{queryId:"get-employee",alias:"employee",params:[{field:"$id",op:"eq",value:":slug"}]},{queryId:"get-employees",alias:"allEmployees"}]})},{id:"_page_2",label:"Second page with really really long name that should be truncated",path:"/secondPage",sections:[{id:`s_${t()}`,label:"Top",order:++e,props:{variant:"navbar"},bricks:[{id:t(),type:"navbar",props:{brand:"My Site",navigation:{staticItems:[{urlOrPageId:"/about"},{urlOrPageId:"/contact"}]}}}]},{id:`s_${t()}`,label:"Form",order:++e,props:{justifyContent:"justify-center"},bricks:[{id:t(),type:"form",props:{padding:"p-4",datarecordId:"a7f26d80-d68e-4b7a-a4a3-e41c454670ce",title:"Simple Form",intro:"This is a simple form to collect user information.",button:{label:"Register",position:"center",borderRadius:"rounded-lg"},align:"horizontal"}},{type:"button",props:{alignSelf:"self-auto",label:"My button",justifyContent:"justify-center",type:"button"},id:t()},{id:t(),type:"form",props:{padding:"p-4",datarecordId:"aacfe76d-4309-466c-83ad-fda8b02b043d",title:"Complex Form",intro:"This is a complex form with various field types.",button:{label:"Register 2",borderRadius:"rounded-lg"}}}]},{id:`s_content-${t()}`,label:"Hero",order:++e,props:{minHeight:"400px"},bricks:[{id:`b_${t()}`,type:"hero",props:{color:"primary"}}]},{id:`s_content-${t()}`,label:"Content",order:++e,props:{},bricks:[{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${t()}`,type:"vbox",props:{$children:[{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit."}}]}},{id:`b_${t()}`,type:"text",props:{preset:"subtle-accent",content:"Irure dolor sit amet, consectetur adipiscing elit."}},{id:`b_${t()}`,type:"spacer",props:{}},{id:`b_${t()}`,type:"card",props:{title:"Welcome to My Site",text:"This is a sample card body. You can edit this content.",cardImage:{src:"https://placehold.co/300x200@2x/EEEEEE/333333/svg?text=Sample",alt:"Sample"}}}]},{id:`s_content-${t()}`,label:"Bottom",order:++e,props:{direction:"flex-row"},bricks:[{id:`b_${t()}`,type:"footer",props:{linksSections:[{sectionTitle:"Links",links:[{title:"About",url:"/about"},{title:"Contact",url:"/contact"},{title:"Privacy Policy",url:"/privacy"}]},{sectionTitle:"Social",links:[{title:"Twitter",url:"https://twitter.com"},{title:"Facebook",url:"https://facebook.com"},{title:"Instagram",url:"https://instagram.com"}]},{sectionTitle:"Legal",links:[{title:"Terms of Service",url:"/terms"},{title:"Cookie Policy",url:"/cookies"}]},{sectionTitle:"Contact",links:[{title:"Email Us",url:"mailto:"},{title:"Support",url:"/support"}]}]}}]}],tags:[],attributes:a()}]}}export{I as createEmptyConfig,b as siteSchema};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sitemap.d.ts","sourceRoot":"","sources":["../../src/shared/sitemap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"sitemap.d.ts","sourceRoot":"","sources":["../../src/shared/sitemap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,cAAc;;;;EAAiD,CAAC;AAC7E,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAErD,eAAO,MAAM,kBAAkB;;;;GAqB9B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;EAyBxB,CAAC;AACF,eAAO,MAAM,aAAa;;;;;;;;;;;GAA2B,CAAC;AAEtD,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
package/dist/shared/sitemap.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}from"./chunk-
|
|
3
|
+
import{a,b,c,d}from"./chunk-UCTXPU6L.js";import"./chunk-CP5QDUD4.js";import"./chunk-TAR7NSTK.js";import"./chunk-TATG6SFZ.js";import"./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{a as pageInfoSchema,b as sectionsPlanSchema,c as sitemapEntry,d as sitemapSchema};
|
package/dist/shared/theme.d.ts
CHANGED
|
@@ -11,17 +11,12 @@ export declare const themeSchema: import("@sinclair/typebox").TObject<{
|
|
|
11
11
|
browserColorScheme: import("@sinclair/typebox").TString;
|
|
12
12
|
colors: import("@sinclair/typebox").TObject<{
|
|
13
13
|
primary: import("@sinclair/typebox").TString;
|
|
14
|
-
primaryContent: import("@sinclair/typebox").TString;
|
|
15
14
|
secondary: import("@sinclair/typebox").TString;
|
|
16
|
-
secondaryContent: import("@sinclair/typebox").TString;
|
|
17
15
|
accent: import("@sinclair/typebox").TString;
|
|
18
|
-
accentContent: import("@sinclair/typebox").TString;
|
|
19
16
|
neutral: import("@sinclair/typebox").TString;
|
|
20
|
-
neutralContent: import("@sinclair/typebox").TString;
|
|
21
17
|
base100: import("@sinclair/typebox").TString;
|
|
22
18
|
base200: import("@sinclair/typebox").TString;
|
|
23
19
|
base300: import("@sinclair/typebox").TString;
|
|
24
|
-
baseContent: import("@sinclair/typebox").TString;
|
|
25
20
|
}>;
|
|
26
21
|
typography: import("@sinclair/typebox").TObject<{
|
|
27
22
|
base: import("@sinclair/typebox").TNumber;
|
|
@@ -54,17 +49,12 @@ export declare const themeArray: import("@sinclair/typebox").TArray<import("@sin
|
|
|
54
49
|
browserColorScheme: import("@sinclair/typebox").TString;
|
|
55
50
|
colors: import("@sinclair/typebox").TObject<{
|
|
56
51
|
primary: import("@sinclair/typebox").TString;
|
|
57
|
-
primaryContent: import("@sinclair/typebox").TString;
|
|
58
52
|
secondary: import("@sinclair/typebox").TString;
|
|
59
|
-
secondaryContent: import("@sinclair/typebox").TString;
|
|
60
53
|
accent: import("@sinclair/typebox").TString;
|
|
61
|
-
accentContent: import("@sinclair/typebox").TString;
|
|
62
54
|
neutral: import("@sinclair/typebox").TString;
|
|
63
|
-
neutralContent: import("@sinclair/typebox").TString;
|
|
64
55
|
base100: import("@sinclair/typebox").TString;
|
|
65
56
|
base200: import("@sinclair/typebox").TString;
|
|
66
57
|
base300: import("@sinclair/typebox").TString;
|
|
67
|
-
baseContent: import("@sinclair/typebox").TString;
|
|
68
58
|
}>;
|
|
69
59
|
typography: import("@sinclair/typebox").TObject<{
|
|
70
60
|
base: import("@sinclair/typebox").TNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/shared/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAKtD,eAAO,MAAM,UAAU;;;GAgBtB,CAAC;AAsCF,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/shared/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAKtD,eAAO,MAAM,UAAU;;;GAgBtB,CAAC;AAsCF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmFvB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;AAC/C,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0B,CAAC;AAClD,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AACnD,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,eAAO,MAAM,YAAY,EAAE,KAqB1B,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAEpD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAehD"}
|
package/dist/shared/theme.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}from"./chunk-
|
|
3
|
+
import{a,b,c,d,e,f}from"./chunk-HHO3ONTQ.js";import"./chunk-SFKZAUPW.js";export{d as defaultTheme,a as fontStacks,e as isDefaultTheme,f as processTheme,c as themeArray,b as themeSchema};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import chroma from "chroma-js";
|
|
1
2
|
import type { Theme } from "../theme";
|
|
2
3
|
export { default as chroma } from "chroma-js";
|
|
3
4
|
export type ColorType = keyof Theme["colors"];
|
|
4
5
|
export type ElementColorType = "page-background" | "background" | "text" | "border" | "shadow";
|
|
5
|
-
export declare const
|
|
6
|
+
export declare const baseColors: Record<ColorType, string>;
|
|
6
7
|
export declare const shadeNumbers: readonly [900, 800, 700, 600, 500, 400, 300, 200, 100, 50];
|
|
7
8
|
export type ElementColor = string;
|
|
8
9
|
export declare function getColorsSuggestions(baseHueOrColor: number | string, theme: Theme): never[];
|
|
9
10
|
export declare function isStandardColor(color: unknown): boolean;
|
|
10
11
|
export declare function propToStyle(prop: string | number | undefined, cssAttr: string): string | undefined;
|
|
11
|
-
export declare function getContrastingTextColor(backgroundColor: string, contrastThreshold?: number): string;
|
|
12
|
+
export declare function getContrastingTextColor(backgroundColor: string | chroma.Color, contrastThreshold?: number): string;
|
|
12
13
|
export declare function propToClass(value: string | number | undefined, classPrefix: string): string | undefined;
|
|
13
14
|
export declare function generateColorsVars(theme: Theme): Record<string, string>;
|
|
14
15
|
//# sourceMappingURL=color-system.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-system.d.ts","sourceRoot":"","sources":["../../../src/shared/themes/color-system.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"color-system.d.ts","sourceRoot":"","sources":["../../../src/shared/themes/color-system.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,WAAW,CAAC;AAI9C,MAAM,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAC;AAC9C,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE/F,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAQhD,CAAC;AAEF,eAAO,MAAM,YAAY,4DAA6D,CAAC;AASvF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,KAAK,WAEjF;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAYvD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,sBAM7E;AAED,wBAAgB,uBAAuB,CACrC,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,EACtC,iBAAiB,SAAM,GACtB,MAAM,CA8BR;AACD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,EAAE,WAAW,EAAE,MAAM,sBAKlF;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,0BA0C9C"}
|
|
@@ -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
|
|
3
|
+
import c from"chroma-js";import{default as A}from"chroma-js";import{kebabCase as y}from"lodash-es";import{css as C}from"@upstart.gg/style-system/twind";var k={primary:"Primary color",secondary:"Secondary color",accent:"Accent color",neutral:"Neutral color",base100:"Base color",base200:"Base (level 2)",base300:"Base (level 3)"},x=[900,800,700,600,500,400,300,200,100,50],l={100:"subtle",300:"light",700:"dark"};function T(t,o){return[]}function p(t){return typeof t!="string"?!1:t.startsWith("oklch")||t.startsWith("oklab")||t.startsWith("rgb")||t.startsWith("hsl")||t.startsWith("#")||t.startsWith("var(--")}function S(t,o){if(!(typeof t>"u"))return p(t)||typeof t=="number"?C({[o]:t}):t}function b(t,o=3.5){let i=c(t),n="#ffffff",r="#000000",e=c.contrast(i,n),a=c.contrast(i,r);return e>=o&&a>=o||e>=o?n:a>=o?r:e>=a?n:r}function B(t,o){if(!(typeof t>"u"))return p(t)||typeof t=="number"?`${o}-[${t}]`:t}function E(t){let o={};return Object.keys(k).forEach(n=>{let r=t.colors[n],e=y(n);o[`color-${e}`]=r;let a=b(r);o[`color-${e}-content`]=a;let d=c(r).darken(2.5),g=c(r).brighten(3.5),h=c.scale([g,r,d]).domain([50,500,900]).mode("lch");e.startsWith("base")||x.forEach(s=>{let f=`color-${e}-${s}`,u=h(s);o[f]=u.css("oklch");let m=b(u);o[`color-${e}-${s}-content`]=m,l[s]&&(o[`color-${e}-${l[s]}`]=o[f],o[`color-${e}-${l[s]}-content`]=m)})}),o}export{k as baseColors,A as chroma,E as generateColorsVars,T as getColorsSuggestions,b as getContrastingTextColor,p as isStandardColor,B as propToClass,S as propToStyle,x as shadeNumbers};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-system.test.d.ts","sourceRoot":"","sources":["../../../../src/shared/themes/tests/color-system.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-resolver.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/schema-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGjD,wBAAgB,aAAa,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"schema-resolver.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/schema-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGjD,wBAAgB,aAAa,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAavE"}
|
|
@@ -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-
|
|
3
|
+
import{a as o}from"../chunk-AIDGSWJT.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-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";function c(e){if(!e.$ref)return e;let r=o.getSchema(e.$ref)?.schema;if(!r||typeof e!="object")throw new Error(`Schema not found for reference: ${e.$ref}`);let{$ref:f,...t}=e;return{...r,...t}}export{c as resolveSchema};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { TArray, TObject, TSchema } from "@sinclair/typebox";
|
|
2
|
+
import type { PageAttributes } from "../attributes";
|
|
2
3
|
export declare function normalizeSchemaEnum(schema: TSchema): Array<{
|
|
3
4
|
const: string;
|
|
4
5
|
title: string;
|
|
5
6
|
}>;
|
|
6
|
-
export declare function getSchemaDefaults<T extends TObject | TArray>(schema: T): T extends TObject ? Record<string, unknown> : unknown[];
|
|
7
|
-
export type FieldFilter<T extends TSchema = TSchema, P extends Record<string, unknown> = Record<string, unknown>> = (propsSchema: T, formData: P) => boolean;
|
|
7
|
+
export declare function getSchemaDefaults<T extends TObject | TArray>(schema: T, mode?: "mobile" | "desktop"): T extends TObject ? Record<string, unknown> : unknown[];
|
|
8
|
+
export type FieldFilter<T extends TSchema = TSchema, P extends Record<string, unknown> = Record<string, unknown>> = (propsSchema: T, formData: P, pageAttributes: PageAttributes) => boolean;
|
|
8
9
|
export declare function filterSchemaProperties(schema: TObject, filter: (prop: TSchema) => boolean): Record<string, TSchema>;
|
|
9
10
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,GAAG,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAe5F;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,OAAO,GAAG,MAAM,EAC1D,MAAM,EAAE,CAAC,EACT,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,GAC1B,CAAC,SAAS,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,EAAE,CAwCzD;AAuCD,MAAM,MAAM,WAAW,CACrB,CAAC,SAAS,OAAO,GAAG,OAAO,EAC3B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACzD,CAAC,WAAW,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,cAAc,EAAE,cAAc,KAAK,OAAO,CAAC;AAE7E,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,2BAgBzF"}
|
|
@@ -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}from"../chunk-
|
|
3
|
+
import{a,b,c}from"../chunk-I46VBMLF.js";export{c as filterSchemaProperties,b as getSchemaDefaults,a as normalizeSchemaEnum};
|
|
@@ -3,16 +3,18 @@ import type { alignItems, alignSelf, justifyContent } from "../bricks/props/alig
|
|
|
3
3
|
import type { basicGap } from "../bricks/props/gap";
|
|
4
4
|
import type { background, backgroundColor } from "../bricks/props/background";
|
|
5
5
|
import type { border, rounding } from "../bricks/props/border";
|
|
6
|
-
import type {
|
|
6
|
+
import type { borderColor, color } from "../bricks/props/color";
|
|
7
7
|
import type { hidden } from "../bricks/props/common";
|
|
8
8
|
import type { cssLength } from "../bricks/props/css-length";
|
|
9
9
|
import type { shadow, textShadow } from "../bricks/props/effects";
|
|
10
|
-
import type { fontSize, textContent } from "../bricks/props/text";
|
|
10
|
+
import type { fontSize, fontSizeXL, textContent } from "../bricks/props/text";
|
|
11
11
|
import type { icon, urlOrPageId } from "../bricks/props/string";
|
|
12
12
|
import type { padding } from "../bricks/props/padding";
|
|
13
|
-
import type { colorPreset } from "../bricks/props/preset";
|
|
13
|
+
import type { colorPreset, gradientDirection } from "../bricks/props/color-preset";
|
|
14
14
|
import type { image } from "../bricks/props/image";
|
|
15
15
|
import type { direction } from "../bricks/props/direction";
|
|
16
|
+
import type { loop, queryUse } from "../bricks/props/dynamic";
|
|
17
|
+
import type { tags } from "../bricks/props/tags";
|
|
16
18
|
export interface SchemaTypeMap {
|
|
17
19
|
"styles:background": ReturnType<typeof background>;
|
|
18
20
|
"styles:backgroundColor": ReturnType<typeof backgroundColor>;
|
|
@@ -20,10 +22,12 @@ export interface SchemaTypeMap {
|
|
|
20
22
|
"styles:alignItems": ReturnType<typeof alignItems>;
|
|
21
23
|
"styles:alignSelf": ReturnType<typeof alignSelf>;
|
|
22
24
|
"styles:fontSize": ReturnType<typeof fontSize>;
|
|
25
|
+
"styles:fontSizeXL": ReturnType<typeof fontSizeXL>;
|
|
23
26
|
"styles:hidden": ReturnType<typeof hidden>;
|
|
24
27
|
"styles:border": ReturnType<typeof border>;
|
|
25
28
|
"styles:padding": ReturnType<typeof padding>;
|
|
26
29
|
"styles:color": ReturnType<typeof color>;
|
|
30
|
+
"styles:borderColor": ReturnType<typeof borderColor>;
|
|
27
31
|
"styles:direction": ReturnType<typeof direction>;
|
|
28
32
|
"styles:gradientDirection": ReturnType<typeof gradientDirection>;
|
|
29
33
|
"styles:shadow": ReturnType<typeof shadow>;
|
|
@@ -35,7 +39,10 @@ export interface SchemaTypeMap {
|
|
|
35
39
|
"assets:image": ReturnType<typeof image>;
|
|
36
40
|
"content:text": ReturnType<typeof textContent>;
|
|
37
41
|
"content:urlOrPageId": ReturnType<typeof urlOrPageId>;
|
|
42
|
+
"content:loop": ReturnType<typeof loop>;
|
|
43
|
+
"content:queryUse": ReturnType<typeof queryUse>;
|
|
38
44
|
"assets:icon": ReturnType<typeof icon>;
|
|
45
|
+
"content:tags": ReturnType<typeof tags>;
|
|
39
46
|
}
|
|
40
47
|
export declare function typedRef<K extends keyof SchemaTypeMap>(id: K, options?: SchemaOptions): SchemaTypeMap[K];
|
|
41
48
|
//# sourceMappingURL=typed-ref.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-ref.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/typed-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"typed-ref.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/typed-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEjD,MAAM,WAAW,aAAa;IAC5B,mBAAmB,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;IACnD,wBAAwB,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;IAC7D,uBAAuB,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC3D,mBAAmB,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;IACnD,kBAAkB,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;IACjD,iBAAiB,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;IAC/C,mBAAmB,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;IACnD,eAAe,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;IAC3C,eAAe,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;IAC3C,gBAAgB,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;IAC7C,cAAc,EAAE,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;IACzC,oBAAoB,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;IACrD,kBAAkB,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;IACjD,0BAA0B,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;IACjE,eAAe,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;IAC3C,mBAAmB,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;IACnD,kBAAkB,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;IACjD,iBAAiB,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;IAC/C,iBAAiB,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;IAC/C,eAAe,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;IAChD,cAAc,EAAE,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC;IACzC,cAAc,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;IAC/C,qBAAqB,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;IACtD,cAAc,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;IACxC,kBAAkB,EAAE,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;IAChD,aAAa,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;IACvC,cAAc,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;CAGzC;AAGD,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,aAAa,EACpD,EAAE,EAAE,CAAC,EACL,OAAO,GAAE,aAAkB,GAC1B,aAAa,CAAC,CAAC,CAAC,CAGlB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upstart.gg/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.124",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"usehooks-ts": "3.1.0",
|
|
59
59
|
"zundo": "2.3.0",
|
|
60
60
|
"zustand": "4.5.5",
|
|
61
|
-
"@upstart.gg/style-system": "0.0.
|
|
61
|
+
"@upstart.gg/style-system": "0.0.124"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@headlessui/react": "^2.2.1",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@types/react": "18.3.3",
|
|
77
77
|
"@types/react-dom": "^18.3.0",
|
|
78
78
|
"@types/sortablejs": "1.15.8",
|
|
79
|
-
"@vitejs/plugin-react": "^
|
|
79
|
+
"@vitejs/plugin-react": "^5.0.1",
|
|
80
80
|
"concurrently": "8.2.2",
|
|
81
81
|
"express": "^4.21.2",
|
|
82
82
|
"rimraf": "6.0.1",
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { type TObject } from "@sinclair/typebox";
|
|
2
|
-
import type { BrickProps } from "../props/types";
|
|
3
|
-
export declare const manifest: {
|
|
4
|
-
readonly icon: import("react-icons/lib").IconType;
|
|
5
|
-
readonly props: TObject<{
|
|
6
|
-
lastTouched: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
7
|
-
hidden: import("@sinclair/typebox").TOptional<TObject<{
|
|
8
|
-
desktop: import("@sinclair/typebox").TBoolean;
|
|
9
|
-
mobile: import("@sinclair/typebox").TBoolean;
|
|
10
|
-
}>>;
|
|
11
|
-
editable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
12
|
-
width: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13
|
-
height: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14
|
-
grow: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
15
|
-
alignSelf: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"self-end" | "self-start" | "self-auto" | "self-center" | "self-stretch">>;
|
|
16
|
-
} & {
|
|
17
|
-
$children: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>;
|
|
18
|
-
color: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
19
|
-
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">>;
|
|
20
|
-
direction: import("@sinclair/typebox").TUnsafe<"flex-row" | "flex-col">;
|
|
21
|
-
justifyContent: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"justify-start" | "justify-center" | "justify-end" | "justify-between" | "justify-around" | "justify-evenly" | "justify-stretch">>;
|
|
22
|
-
alignItems: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"items-start" | "items-center" | "items-end" | "items-stretch">>;
|
|
23
|
-
gap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
24
|
-
padding: import("@sinclair/typebox").TOptional<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">>;
|
|
25
|
-
rounding: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"rounded-auto" | "rounded-none" | "rounded-sm" | "rounded-md" | "rounded-lg" | "rounded-xl" | "rounded-2xl" | "rounded-full">>;
|
|
26
|
-
border: import("@sinclair/typebox").TOptional<TObject<{
|
|
27
|
-
width: import("@sinclair/typebox").TUnsafe<"border" | "border-0" | "border-2" | "border-4" | "border-8">;
|
|
28
|
-
color: import("@sinclair/typebox").TString;
|
|
29
|
-
}>>;
|
|
30
|
-
shadow: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"shadow-none" | "shadow-sm" | "shadow-md" | "shadow-lg" | "shadow-xl" | "shadow-2xl">>;
|
|
31
|
-
datasource: import("@sinclair/typebox").TOptional<TObject<{
|
|
32
|
-
id: import("@sinclair/typebox").TString;
|
|
33
|
-
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
34
|
-
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
35
|
-
sortDirection: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"asc" | "desc">>;
|
|
36
|
-
sortField: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
37
|
-
filters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<TObject<{
|
|
38
|
-
field: import("@sinclair/typebox").TString;
|
|
39
|
-
op: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"eq">, import("@sinclair/typebox").TLiteral<"ne">, import("@sinclair/typebox").TLiteral<"lt">, import("@sinclair/typebox").TLiteral<"lte">, import("@sinclair/typebox").TLiteral<"gt">, import("@sinclair/typebox").TLiteral<"gte">, import("@sinclair/typebox").TLiteral<"in">, import("@sinclair/typebox").TLiteral<"nin">, import("@sinclair/typebox").TLiteral<"contains">, import("@sinclair/typebox").TLiteral<"notContains">, import("@sinclair/typebox").TLiteral<"startsWith">, import("@sinclair/typebox").TLiteral<"notStartsWith">, import("@sinclair/typebox").TLiteral<"endsWith">, import("@sinclair/typebox").TLiteral<"notEndsWith">, import("@sinclair/typebox").TLiteral<"before">, import("@sinclair/typebox").TLiteral<"after">]>;
|
|
40
|
-
value: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TBoolean]>;
|
|
41
|
-
}>>>;
|
|
42
|
-
}>>;
|
|
43
|
-
}>;
|
|
44
|
-
readonly category: import("~/shared/brick-manifest").BrickCategory;
|
|
45
|
-
readonly defaultInspectorTab: "content" | "style" | "preset";
|
|
46
|
-
readonly hideInLibrary: boolean;
|
|
47
|
-
readonly deletable: boolean;
|
|
48
|
-
readonly movable: boolean;
|
|
49
|
-
readonly resizable: boolean | "horizontal" | "vertical";
|
|
50
|
-
readonly duplicatable: boolean;
|
|
51
|
-
readonly isContainer: boolean;
|
|
52
|
-
readonly defaultWidth: {
|
|
53
|
-
readonly mobile: string;
|
|
54
|
-
readonly desktop: string;
|
|
55
|
-
};
|
|
56
|
-
readonly defaultHeight: {
|
|
57
|
-
readonly mobile: string;
|
|
58
|
-
readonly desktop: string;
|
|
59
|
-
};
|
|
60
|
-
readonly type: string;
|
|
61
|
-
readonly name: string;
|
|
62
|
-
readonly iconClassName?: string;
|
|
63
|
-
readonly staticClasses?: string;
|
|
64
|
-
readonly description?: string;
|
|
65
|
-
readonly minWidth?: {
|
|
66
|
-
mobile?: number;
|
|
67
|
-
desktop?: number;
|
|
68
|
-
};
|
|
69
|
-
readonly maxWidth?: {
|
|
70
|
-
mobile?: number;
|
|
71
|
-
desktop?: number;
|
|
72
|
-
};
|
|
73
|
-
readonly minHeight?: {
|
|
74
|
-
mobile?: number;
|
|
75
|
-
desktop?: number;
|
|
76
|
-
};
|
|
77
|
-
readonly maxHeight?: {
|
|
78
|
-
mobile?: number;
|
|
79
|
-
desktop?: number;
|
|
80
|
-
};
|
|
81
|
-
readonly inlineDragDisabled?: boolean;
|
|
82
|
-
readonly aiInstructions?: string;
|
|
83
|
-
};
|
|
84
|
-
export type Manifest = typeof manifest;
|
|
85
|
-
export declare const examples: {
|
|
86
|
-
description: string;
|
|
87
|
-
type: string;
|
|
88
|
-
props: BrickProps<Manifest>["brick"]["props"];
|
|
89
|
-
}[];
|
|
90
|
-
//# sourceMappingURL=dynamic.manifest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/dynamic.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAC;AASpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAOjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cALG,CAAA;eAAqB,CAAC;;;cACc,CAAC;eAC9C,CAAC;;;cACU,CAAC;eAAqB,CAAC;;;cAI/C,CAAD;eAAqB,CAAC;;;;CA0PrB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AAEvC,eAAO,MAAM,QAAQ,EAAE;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;CAC/C,EAAO,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{a,b}from"../../chunk-JPZLUT2C.js";import"../../chunk-SYBZFX47.js";import"../../chunk-3EM3B4DX.js";import"../../chunk-WVZGGVII.js";import"../../chunk-WCZVFBSW.js";import"../../chunk-N3V5MQ54.js";import"../../chunk-7KZ4JO3A.js";import"../../chunk-AAFBPONG.js";import"../../chunk-ACWYW257.js";import"../../chunk-LVALAJTS.js";import"../../chunk-NH7OSYIN.js";import"../../chunk-2IYSJYNE.js";import"../../chunk-SMRTJM3Z.js";import"../../chunk-FZR35ENC.js";import"../../chunk-PYR54IIV.js";import"../../chunk-SFKZAUPW.js";import"../../chunk-EJGNYD4V.js";export{b as examples,a as manifest};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type Static, type SchemaOptions } from "@sinclair/typebox";
|
|
2
|
-
type ColorPresetOptions = SchemaOptions & {
|
|
3
|
-
"ui:presets": ColorPresets;
|
|
4
|
-
};
|
|
5
|
-
export declare function colorPreset(opts?: ColorPresetOptions): import("@sinclair/typebox").TString;
|
|
6
|
-
export type ColorPresetSettings = Static<ReturnType<typeof colorPreset>>;
|
|
7
|
-
export declare function colorPresetRef(options: ColorPresetOptions): import("@sinclair/typebox").TString;
|
|
8
|
-
export type ColorPresets = Record<string, {
|
|
9
|
-
/**
|
|
10
|
-
* Class name to apply for the background color pill preview.
|
|
11
|
-
*/
|
|
12
|
-
previewBgClass?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Part/className object to apply to the brick.
|
|
15
|
-
*/
|
|
16
|
-
value: Record<string, string>;
|
|
17
|
-
label: string;
|
|
18
|
-
}>;
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=preset.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/props/preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAG1E,KAAK,kBAAkB,GAAG,aAAa,GAAG;IACxC,YAAY,EAAE,YAAY,CAAC;CAC5B,CAAC;AAEF,wBAAgB,WAAW,CAAC,IAAI,CAAC,EAAE,kBAAkB,uCAWpD;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC;AAEzE,wBAAgB,cAAc,CAAC,OAAO,EAAE,kBAAkB,uCAEzD;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAC/B,MAAM,EACN;IACE;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf,CACF,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{a as i,d as n}from"./chunk-ZKGRZ5CN.js";import{b as e,d as r}from"./chunk-N3V5MQ54.js";import{a}from"./chunk-AAFBPONG.js";import{c as p}from"./chunk-ACWYW257.js";import{a as t}from"./chunk-SFKZAUPW.js";import{Type as o}from"@sinclair/typebox";import{RxButton as l}from"react-icons/rx";var y=a({type:"button",name:"Button",category:"basic",description:"A button with text and optional icon",resizable:"horizontal",icon:l,minWidth:{desktop:120,mobile:120},defaultWidth:{mobile:"100%"},props:p({color:t(["btn-color-neutral","btn-color-primary","btn-color-secondary","btn-color-accent"],{title:"Color",enumNames:["Neutral","Primary","Secondary","Accent"],description:"Button variants.",default:"btn-color-primary","ui:responsive":"desktop"}),label:i("Label",{default:"My button",metadata:{category:"content"}}),size:t(["btn-size-small","btn-size-medium","btn-size-large"],{title:"Size",description:"Button size.",enumNames:["Small","Medium","Large"],default:"btn-size-medium","ui:responsive":"desktop"}),rounding:o.Optional(r({default:"rounded-md"})),border:o.Optional(e({default:{width:"border-0"},"ui:responsive":"desktop"})),linkToUrlOrPageId:o.Optional(n({title:"Link",metadata:{category:"content"}}))},{noGrow:!0})}),g=[{description:"Primary button, full width, linking to a URL",type:"button",props:{color:"btn-color-primary",label:"Click me",linkToUrlOrPageId:"https://example.com",size:"btn-size-medium"}},{description:"Secondary button, block width, linking to a page",type:"button",props:{color:"btn-color-secondary",label:"Go to page",linkToUrlOrPageId:"page-id-123",size:"btn-size-small"}}];export{y as a,g as b};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{d as t}from"./chunk-Z7UVZLR3.js";import{b as s}from"./chunk-RGLVKILY.js";import{a as o}from"./chunk-ZKGRZ5CN.js";import{b as i}from"./chunk-WCZVFBSW.js";import{b as a,d as r}from"./chunk-N3V5MQ54.js";import{b as p}from"./chunk-7KZ4JO3A.js";import{a as m}from"./chunk-AAFBPONG.js";import{c as d}from"./chunk-ACWYW257.js";import{RxImage as n}from"react-icons/rx";import{Type as e}from"@sinclair/typebox";var b=m({type:"image",name:"Image",category:"media",description:"An image brick",defaultWidth:{desktop:"auto",mobile:"100%"},icon:n,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."}))})}),P=[{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{b as a,P as b};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{Type as t}from"@sinclair/typebox";import{Type as e}from"@sinclair/typebox";import{Type as r}from"@sinclair/typebox";var o=r.Object({refreshInterval:r.Optional(r.Number())});var n=e.Composite([o,e.Object({channelId:e.String(),order:e.Optional(e.String()),maxResults:e.Optional(e.Number()),regionCode:e.Optional(e.String()),relevanceLanguage:e.Optional(e.String())})]);import{Type as i}from"@sinclair/typebox";var p=i.Composite([o,i.Object({url:i.String({format:"uri"}),headers:i.Optional(i.Record(i.String(),i.String()))})]);import{Type as a}from"@sinclair/typebox";var l=a.Composite([o,a.Object({url:a.String({format:"uri"})})]);var P=t.Union([t.Literal("rss"),t.Literal("youtube-list"),t.Literal("http-json"),t.Literal("internal-blog"),t.Literal("internal-changelog"),t.Literal("internal-faq"),t.Literal("internal-links"),t.Literal("internal-recipes")]),c=t.Union([t.Object({provider:t.Literal("youtube-list"),options:n}),t.Object({provider:t.Literal("rss"),options:l}),t.Object({provider:t.Literal("internal-blog"),options:t.Optional(t.Object({},{additionalProperties:!0}))}),t.Object({provider:t.Literal("internal-changelog"),options:t.Optional(t.Object({},{additionalProperties:!0}))}),t.Object({provider:t.Literal("internal-faq"),options:t.Optional(t.Object({},{additionalProperties:!0}))}),t.Object({provider:t.Literal("internal-links"),options:t.Optional(t.Object({},{additionalProperties:!0}))}),t.Object({provider:t.Literal("internal-recipes"),options:t.Optional(t.Object({},{additionalProperties:!0}))})]),s=t.Object({id:t.String({title:"ID",description:"Unique identifier of the datasource. Used to reference the datasource in the system. Use a url-safe string like a slug."}),label:t.Optional(t.String({title:"Label",description:"Label of the datasource displayed in the UI"}))}),d=t.Composite([c,s,t.Object({schema:t.Null({description:"Always null for provider datasources. The schema is defined by the provider."}),ttlMinutes:t.Optional(t.Number({title:"Time to live",description:"Time to live in minutes. If set to -1, it never expires and has to be manually refreshed. If set to 0, the datasource is always fetched live. If > 0, then the datasource is feteched every N minutes."})),refresh:t.Optional(t.Object({method:t.Union([t.Literal("interval"),t.Literal("manual"),t.Literal("live")]),interval:t.Optional(t.Number())},{title:"Refresh options",description:"Options to refresh the datasource"}))})]),u=t.Composite([s,t.Object({provider:t.Literal("custom",{title:"Custom",description:"Custom datasource saved locally in Upstart."}),options:t.Optional(t.Object({},{additionalProperties:!0})),schema:t.Any({title:"Schema",description:"JSON Schema of datasource. Always an array of objects."}),indexes:t.Optional(t.Array(t.Object({name:t.String({title:"Index name"}),fields:t.Array(t.String(),{title:"Fields to index"}),unique:t.Optional(t.Boolean({title:"Unique index",default:!1}))}),{title:"Indexes",description:"IMPORTANT: Indexes to create on the datasource. use it to enforce uniqueness or improve query performance."}))},{$id:"datasource:custom"})]),m=t.Composite([s,t.Object({provider:t.Literal("http-json",{title:"JSON Array",description:"JSON array datasource."}),options:p,schema:t.Any({title:"Schema",description:"JSON Schema of datasource. Always an array of objects.",examples:[{type:"array",items:{type:"object",properties:{id:{type:"string",title:"ID"},title:{type:"string",title:"Title"},firstname:{type:"string",title:"Firstname"},lastname:{type:"string",title:"Lastname"},createdAt:{type:"string",format:"date-time",title:"Created at"},email:{type:"string",format:"email",title:"Email"}},required:["id","title","firstname","lastname","email","createdAt"],title:"Employee"},title:"Employees",description:"Employees list"}]})})]),y=t.Union([u,m,d]),J=t.Array(y);export{P as a,y as b,J as c};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{b as l}from"./chunk-RGLVKILY.js";import{d as r}from"./chunk-DBSKZ77G.js";import{b as i}from"./chunk-WCZVFBSW.js";import{b as n,d as o}from"./chunk-N3V5MQ54.js";import{a as d}from"./chunk-AAFBPONG.js";import{c as s}from"./chunk-ACWYW257.js";import{b as c}from"./chunk-LVALAJTS.js";import{a}from"./chunk-SFKZAUPW.js";import{BsCardText as g}from"react-icons/bs";import{Type as e}from"@sinclair/typebox";var T=d({type:"card",name:"Card",description:"A card that can have a title, image, and content",icon:g,defaultWidth:{desktop:"400px",mobile:"100%"},minWidth:{desktop:400},minHeight:{mobile:200,desktop:200},maxWidth:{desktop:650},props:s({colorPreset:e.Optional(c({title:"Color preset","ui:presets":{"primary-light":{previewBgClass:"bg-primary-light text-primary-content-light",value:{container:"bg-primary-light text-primary-content-light border-primary-light"},label:"Primary light"},"primary-light-gradient":{previewBgClass:"bg-gradient-to-br from-primary-300 to-primary-500 text-primary-content-light",value:{container:"from-primary-300 to-primary-500 text-primary-content-light border-primary"},label:"Primary light gradient"},primary:{previewBgClass:"bg-primary text-primary-content",label:"Primary",value:{container:"bg-primary text-primary-content border-primary"}},"primary-gradient":{previewBgClass:"bg-gradient-to-br from-primary-500 to-primary-700 text-primary-content",label:"Primary gradient",value:{container:"from-primary-500 to-primary-700 text-primary-content border-primary"}},"primary-dark":{previewBgClass:"bg-primary-dark text-primary-content",label:"Primary dark",value:{container:"bg-primary-dark text-primary-content border-primary-dark"}},"primary-dark-gradient":{previewBgClass:"bg-gradient-to-br from-primary-700 to-primary-900 text-primary-content",label:"Primary dark gradient",value:{container:"from-primary-700 to-primary-900 text-primary-content border-primary-dark"}},"secondary-light":{previewBgClass:"bg-secondary-light text-secondary-content-light",label:"Secondary light",value:{container:"bg-secondary-light text-secondary-content-light border-secondary-light"}},"secondary-light-gradient":{previewBgClass:"bg-gradient-to-br from-secondary-300 to-secondary-500 text-secondary-content-light",label:"Secondary light gradient",value:{container:"from-secondary-300 to-secondary-500 text-secondary-content-light border-secondary"}},secondary:{previewBgClass:"bg-secondary text-secondary-content",label:"Secondary",value:{container:"bg-secondary text-secondary-content border-secondary"}},"secondary-gradient":{previewBgClass:"bg-gradient-to-br from-secondary-500 to-secondary-700 text-secondary-content",label:"Secondary gradient",value:{container:"from-secondary-500 to-secondary-700 text-secondary-content border-secondary"}},"secondary-dark":{previewBgClass:"bg-secondary-dark text-secondary-content",label:"Secondary dark",value:{container:"bg-secondary-dark text-secondary-content border-secondary-dark"}},"secondary-dark-gradient":{previewBgClass:"bg-gradient-to-br from-secondary-700 to-secondary-900 text-secondary-content",label:"Secondary dark gradient",value:{container:"from-secondary-700 to-secondary-900 text-secondary-content border-secondary-dark"}},"accent-light":{previewBgClass:"bg-accent-light text-accent-content-light",label:"Accent lighter",value:{container:"bg-accent-light text-accent-content-light border-accent-light"}},"accent-light-gradient":{previewBgClass:"bg-gradient-to-br from-accent-300 to-accent-500 text-accent-content-light",label:"Accent light gradient",value:{container:"from-accent-300 to-accent-500 text-accent-content-light border-accent"}},accent:{previewBgClass:"bg-accent text-accent-content",label:"Accent",value:{container:"bg-accent text-accent-content border-accent"}},"accent-gradient":{previewBgClass:"bg-gradient-to-br from-accent-500 to-accent-700 text-accent-content",label:"Accent gradient",value:{container:"from-accent-500 to-accent-700 text-accent-content border-accent"}},"accent-dark":{previewBgClass:"bg-accent-dark text-accent-content",label:"Accent dark",value:{container:"bg-accent-dark text-accent-content border-accent-dark"}},"accent-dark-gradient":{previewBgClass:"bg-gradient-to-br from-accent-700 to-accent-900 text-accent-content",label:"Accent dark gradient",value:{container:"from-accent-700 to-accent-900 text-accent-content border-accent-dark"}},"neutral-light":{previewBgClass:"bg-neutral-light text-neutral-content-light",label:"Neutral light",value:{container:"bg-neutral-light text-neutral-content-light border-neutral-light"}},"neutral-light-gradient":{previewBgClass:"bg-gradient-to-br from-neutral-300 to-neutral-500 text-neutral-content-light",label:"Neutral light gradient",value:{container:"from-neutral-300 to-neutral-500 text-neutral-content-light border-neutral"}},neutral:{previewBgClass:"bg-neutral text-neutral-content",label:"Neutral",value:{container:"bg-neutral text-neutral-content border-neutral"}},"neutral-gradient":{previewBgClass:"bg-gradient-to-br from-neutral-500 to-neutral-700 text-neutral-content",label:"Neutral gradient",value:{container:"from-neutral-500 to-neutral-700 text-neutral-content border-neutral"}},"neutral-dark":{previewBgClass:"bg-neutral-dark text-neutral-content",label:"Neutral dark",value:{container:"bg-neutral-dark text-neutral-content border-neutral-dark"}},"neutral-dark-gradient":{previewBgClass:"bg-gradient-to-br from-neutral-700 to-neutral-900 text-neutral-content",label:"Neutral dark gradient",value:{container:"from-neutral-700 to-neutral-900 text-neutral-content border-neutral-dark"}},base100:{previewBgClass:"bg-base-100 text-base-content",label:"Base 100",value:{container:"bg-base-100 text-base-content"}},none:{label:"None",value:{}}},default:"primary"})),gradientDirection:e.Optional(a(["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"],{title:"Gradient direction",description:"The direction of the gradient. Only applies when color preset is a gradient.",enumNames:["Top","Right","Bottom","Left","Top left","Top right","Bottom right","Bottom left"],default:"bg-gradient-to-br","ui:responsive":"desktop","ui:styleId":"styles:gradientDirection",metadata:{filter:(p,t)=>t.colorPreset?.includes("gradient")===!0}})),cardImage:e.Optional(l({"ui:responsive":"desktop",metadata:{category:"content"}})),imagePosition:e.Optional(e.Union([e.Literal("top",{title:"Top"}),e.Literal("middle",{title:"Middle"}),e.Literal("bottom",{title:"Bottom"}),e.Literal("overlay",{title:"Overlay"}),e.Literal("side",{title:"Side"})],{title:"Image Position",description:"Where the image should be placed in the card",default:"top","ui:responsive":"desktop",metadata:{category:"content",filter:(p,t)=>!!t.cardImage?.src}})),noTitle:e.Optional(e.Boolean({title:"No Title",description:"Whether to hide the card title",default:!1,"ui:responsive":"desktop"})),cardTitle:e.Optional(r({title:"Title"})),cardBody:e.Optional(r({title:"Body"})),rounding:e.Optional(o({default:"rounded-md"})),border:e.Optional(n({default:{width:"border"}})),shadow:e.Optional(i())})}),P=[{description:"A simple card with a title and content",type:"card",props:{cardTitle:"Card Title",cardBody:"This is the body of the card."}},{description:"Card with image and overlay text",type:"card",props:{cardImage:{src:"https://via.placeholder.com/400x300",alt:"Placeholder image"},cardTitle:"Overlay Title",cardBody:"Beautiful overlay content with semi-transparent background."}},{description:"Product card with image on the left",type:"card",props:{cardImage:{src:"https://via.placeholder.com/200x200",alt:"Product image"},cardTitle:"Premium Headphones",cardBody:"High-quality wireless headphones with noise cancellation and 30-hour battery life."}},{description:"Feature card with large padding and background",type:"card",props:{cardTitle:"Key Feature",cardBody:"This feature provides exceptional value and enhances user experience significantly."}},{description:"Blog post card with image at the bottom",type:"card",props:{cardTitle:"The Future of Technology",cardBody:"Exploring emerging trends and innovations that will shape our digital landscape in the coming decade.",cardImage:{src:"https://via.placeholder.com/400x200",alt:"Technology concept"}}},{description:"Testimonial card with right-side image",type:"card",props:{cardTitle:"Customer Review",cardBody:'"This product exceeded my expectations. The quality is outstanding and the customer service is top-notch!"',cardImage:{src:"https://via.placeholder.com/150x150",alt:"Customer photo"}}},{description:"Minimal centered card without image",type:"card",props:{cardTitle:"Simple Announcement",cardBody:"Important updates will be posted here regularly."}},{description:"Event card with multiple variants",type:"card",props:{cardImage:{src:"https://via.placeholder.com/400x250",alt:"Event venue"},cardTitle:"Annual Conference 2025",cardBody:"Join us for three days of inspiring talks, networking opportunities, and hands-on workshops."}},{description:"News article card with compact layout",type:"card",props:{cardImage:{src:"https://via.placeholder.com/120x120",alt:"News thumbnail"},cardTitle:"Breaking News Update",cardBody:"Latest developments in the ongoing story with expert analysis and community reactions."}},{description:"Call-to-action card with prominent styling",type:"card",props:{cardTitle:"Get Started Today",cardBody:"Transform your workflow with our powerful tools. Sign up now and get 30 days free!"}}];export{T as a,P as b};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
|
-
|
|
3
|
-
import{a as e}from"./chunk-YIFNKP4J.js";import{a as p}from"./chunk-AAFBPONG.js";import{c as t}from"./chunk-ACWYW257.js";import{CgSpaceBetween as r}from"react-icons/cg";import{Type as o}from"@sinclair/typebox";var m=p({type:"spacer",name:"Spacer",category:"container",description:"A flexible element to create space between bricks.",staticClasses:"self-stretch",minWidth:{desktop:50,mobile:20},defaultWidth:{mobile:"100%",desktop:"50px"},minHeight:{mobile:30},icon:r,props:t({autogrow:o.Optional(e("Auto-grow",!1,{description:"If enabled, the spacer will automatically grow to fill available space."}))})}),f=[{description:"Transparent spacer of 100px wide",type:"spacer",props:{width:"100px"}},{description:"Transparent spacer of 20px wide",type:"spacer",props:{width:"20px"}}];export{m as a,f as b};
|