@upstart.gg/sdk 0.0.132 → 0.0.134
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/ai/schemas.js +1 -0
- package/dist/shared/ai/schemas.js.map +1 -0
- package/dist/shared/ai/types.js +1 -0
- package/dist/shared/ai/types.js.map +1 -0
- package/dist/shared/ajv.js +2 -1
- package/dist/shared/ajv.js.map +1 -0
- package/dist/shared/analytics/init.js +1 -0
- package/dist/shared/analytics/init.js.map +1 -0
- package/dist/shared/analytics/track.js +1 -0
- package/dist/shared/analytics/track.js.map +1 -0
- package/dist/shared/analytics/types.js +1 -0
- package/dist/shared/analytics/types.js.map +1 -0
- package/dist/shared/attributes.js +2 -1
- package/dist/shared/attributes.js.map +1 -0
- package/dist/shared/brick-manifest.js +2 -1
- package/dist/shared/brick-manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/accordion.manifest.js +2 -1
- package/dist/shared/bricks/manifests/accordion.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/all-manifests.js +2 -1
- package/dist/shared/bricks/manifests/all-manifests.js.map +1 -0
- package/dist/shared/bricks/manifests/box.manifest.js +2 -1
- package/dist/shared/bricks/manifests/box.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/button.manifest.js +2 -1
- package/dist/shared/bricks/manifests/button.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/card.manifest.js +2 -1
- package/dist/shared/bricks/manifests/card.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/carousel.manifest.js +2 -1
- package/dist/shared/bricks/manifests/carousel.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/footer.manifest.js +2 -1
- package/dist/shared/bricks/manifests/footer.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/form.manifest.js +2 -1
- package/dist/shared/bricks/manifests/form.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/hero.manifest.js +2 -1
- package/dist/shared/bricks/manifests/hero.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/html.manifest.js +2 -1
- package/dist/shared/bricks/manifests/html.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/icon.manifest.js +2 -1
- package/dist/shared/bricks/manifests/icon.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/image.manifest.js +2 -1
- package/dist/shared/bricks/manifests/image.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/images-gallery.manifest.js +2 -1
- package/dist/shared/bricks/manifests/images-gallery.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/map.manifest.js +2 -1
- package/dist/shared/bricks/manifests/map.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/navbar.manifest.js +2 -1
- package/dist/shared/bricks/manifests/navbar.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/sidebar.manifest.js +2 -1
- package/dist/shared/bricks/manifests/sidebar.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/social-links.manifest.js +2 -1
- package/dist/shared/bricks/manifests/social-links.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/spacer.manifest.js +2 -1
- package/dist/shared/bricks/manifests/spacer.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/testimonials.manifest.js +2 -1
- package/dist/shared/bricks/manifests/testimonials.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/text.manifest.js +2 -1
- package/dist/shared/bricks/manifests/text.manifest.js.map +1 -0
- package/dist/shared/bricks/manifests/video.manifest.js +2 -1
- package/dist/shared/bricks/manifests/video.manifest.js.map +1 -0
- package/dist/shared/bricks/props/align.js +2 -1
- package/dist/shared/bricks/props/align.js.map +1 -0
- package/dist/shared/bricks/props/background.js +2 -1
- package/dist/shared/bricks/props/background.js.map +1 -0
- package/dist/shared/bricks/props/boolean.js +2 -1
- package/dist/shared/bricks/props/boolean.js.map +1 -0
- package/dist/shared/bricks/props/border.js +2 -1
- package/dist/shared/bricks/props/border.js.map +1 -0
- package/dist/shared/bricks/props/color-preset.js +2 -1
- package/dist/shared/bricks/props/color-preset.js.map +1 -0
- package/dist/shared/bricks/props/color.js +2 -1
- package/dist/shared/bricks/props/color.js.map +1 -0
- package/dist/shared/bricks/props/common.js +2 -1
- package/dist/shared/bricks/props/common.js.map +1 -0
- package/dist/shared/bricks/props/css-length.js +2 -1
- package/dist/shared/bricks/props/css-length.js.map +1 -0
- package/dist/shared/bricks/props/datarecord.js +2 -1
- package/dist/shared/bricks/props/datarecord.js.map +1 -0
- package/dist/shared/bricks/props/datasource.js +2 -1
- package/dist/shared/bricks/props/datasource.js.map +1 -0
- package/dist/shared/bricks/props/date.js +2 -1
- package/dist/shared/bricks/props/date.js.map +1 -0
- package/dist/shared/bricks/props/direction.js +2 -1
- package/dist/shared/bricks/props/direction.js.map +1 -0
- package/dist/shared/bricks/props/dynamic.js +2 -1
- package/dist/shared/bricks/props/dynamic.js.map +1 -0
- package/dist/shared/bricks/props/effects.js +2 -1
- package/dist/shared/bricks/props/effects.js.map +1 -0
- package/dist/shared/bricks/props/enum.js +2 -1
- package/dist/shared/bricks/props/enum.js.map +1 -0
- package/dist/shared/bricks/props/file.js +1 -0
- package/dist/shared/bricks/props/file.js.map +1 -0
- package/dist/shared/bricks/props/geolocation.js +2 -1
- package/dist/shared/bricks/props/geolocation.js.map +1 -0
- package/dist/shared/bricks/props/helpers.js +2 -1
- package/dist/shared/bricks/props/helpers.js.map +1 -0
- package/dist/shared/bricks/props/image.js +2 -1
- package/dist/shared/bricks/props/image.js.map +1 -0
- package/dist/shared/bricks/props/number.js +2 -1
- package/dist/shared/bricks/props/number.js.map +1 -0
- package/dist/shared/bricks/props/position.js +2 -1
- package/dist/shared/bricks/props/position.js.map +1 -0
- package/dist/shared/bricks/props/string.js +2 -1
- package/dist/shared/bricks/props/string.js.map +1 -0
- package/dist/shared/bricks/props/tags.js +2 -1
- package/dist/shared/bricks/props/tags.js.map +1 -0
- package/dist/shared/bricks/props/text.js +2 -1
- package/dist/shared/bricks/props/text.js.map +1 -0
- package/dist/shared/bricks/props/types.js +1 -0
- package/dist/shared/bricks/props/types.js.map +1 -0
- package/dist/shared/bricks.js +2 -1
- package/dist/shared/bricks.js.map +1 -0
- package/dist/shared/{chunk-6PGAWO4H.js → chunk-3YVJ2ELD.js} +2 -1
- package/dist/shared/chunk-3YVJ2ELD.js.map +1 -0
- package/dist/shared/{chunk-AB3IMRXZ.js → chunk-4BTB3MU2.js} +2 -1
- package/dist/shared/chunk-4BTB3MU2.js.map +1 -0
- package/dist/shared/{chunk-ZJNA4QQC.js → chunk-4WDWJA3N.js} +1 -0
- package/dist/shared/chunk-4WDWJA3N.js.map +1 -0
- package/dist/shared/{chunk-NQKXDMQ5.js → chunk-5O4Z3YQY.js} +1 -0
- package/dist/shared/chunk-5O4Z3YQY.js.map +1 -0
- package/dist/shared/{chunk-VK26ZZFR.js → chunk-5YRC3IT3.js} +2 -1
- package/dist/shared/chunk-5YRC3IT3.js.map +1 -0
- package/dist/shared/{chunk-WAML3IGZ.js → chunk-6HLU4UI2.js} +1 -0
- package/dist/shared/chunk-6HLU4UI2.js.map +1 -0
- package/dist/shared/{chunk-MKIXZXWS.js → chunk-6I3ONVU6.js} +1 -0
- package/dist/shared/chunk-6I3ONVU6.js.map +1 -0
- package/dist/shared/{chunk-AZHH3XJJ.js → chunk-7A2JNQX3.js} +2 -1
- package/dist/shared/chunk-7A2JNQX3.js.map +1 -0
- package/dist/shared/{chunk-7UBMXMNJ.js → chunk-A3GF4PYW.js} +2 -1
- package/dist/shared/chunk-A3GF4PYW.js.map +1 -0
- package/dist/shared/{chunk-46YDGGFF.js → chunk-A3K4NUVP.js} +2 -1
- package/dist/shared/chunk-A3K4NUVP.js.map +1 -0
- package/dist/shared/{chunk-F4JNKU7J.js → chunk-AFVJZPLS.js} +2 -1
- package/dist/shared/chunk-AFVJZPLS.js.map +1 -0
- package/dist/shared/{chunk-PW5HRVMD.js → chunk-AI4GHU7R.js} +2 -1
- package/dist/shared/chunk-AI4GHU7R.js.map +1 -0
- package/dist/shared/{chunk-SAJY7H6N.js → chunk-B3EATRFX.js} +2 -1
- package/dist/shared/chunk-B3EATRFX.js.map +1 -0
- package/dist/shared/{chunk-3FPFR5RA.js → chunk-CCI4C3TM.js} +2 -1
- package/dist/shared/chunk-CCI4C3TM.js.map +1 -0
- package/dist/shared/{chunk-URRCKLAS.js → chunk-CFF6Q7O7.js} +2 -1
- package/dist/shared/chunk-CFF6Q7O7.js.map +1 -0
- package/dist/shared/{chunk-Z4YKRLOX.js → chunk-CZRCW5EN.js} +2 -1
- package/dist/shared/chunk-CZRCW5EN.js.map +1 -0
- package/dist/shared/{chunk-ARMM6B47.js → chunk-DCH4ZKWT.js} +1 -0
- package/dist/shared/chunk-DCH4ZKWT.js.map +1 -0
- package/dist/shared/{chunk-GC5OWY2Z.js → chunk-DHI3IBOD.js} +2 -1
- package/dist/shared/chunk-DHI3IBOD.js.map +1 -0
- package/dist/shared/{chunk-PZYX3ACO.js → chunk-DQ7PRWTG.js} +1 -0
- package/dist/shared/chunk-DQ7PRWTG.js.map +1 -0
- package/dist/shared/{chunk-XED6ARVN.js → chunk-E6XEI7IK.js} +2 -1
- package/dist/shared/chunk-E6XEI7IK.js.map +1 -0
- package/dist/shared/{chunk-6R76KIHZ.js → chunk-FLOMNC6J.js} +2 -1
- package/dist/shared/chunk-FLOMNC6J.js.map +1 -0
- package/dist/shared/{chunk-EVDZ2KND.js → chunk-G5CJU6RD.js} +2 -1
- package/dist/shared/chunk-G5CJU6RD.js.map +1 -0
- package/dist/shared/{chunk-MVCVVKBY.js → chunk-GACHLACT.js} +2 -1
- package/dist/shared/chunk-GACHLACT.js.map +1 -0
- package/dist/shared/{chunk-X62OEAE6.js → chunk-GLS7HPIZ.js} +1 -0
- package/dist/shared/chunk-GLS7HPIZ.js.map +1 -0
- package/dist/shared/{chunk-ML4JSDQM.js → chunk-GOMXZC4B.js} +2 -1
- package/dist/shared/chunk-GOMXZC4B.js.map +1 -0
- package/dist/shared/{chunk-L2HOZVBC.js → chunk-GPEMPZXK.js} +1 -0
- package/dist/shared/chunk-GPEMPZXK.js.map +1 -0
- package/dist/shared/{chunk-IFEIRRZ2.js → chunk-HAGKVQOW.js} +1 -0
- package/dist/shared/chunk-HAGKVQOW.js.map +1 -0
- package/dist/shared/{chunk-ILIWVWHC.js → chunk-I3VL6SRH.js} +2 -1
- package/dist/shared/chunk-I3VL6SRH.js.map +1 -0
- package/dist/shared/{chunk-2NLDX5FG.js → chunk-IKC3FK7L.js} +2 -1
- package/dist/shared/chunk-IKC3FK7L.js.map +1 -0
- package/dist/shared/{chunk-STDCM2KD.js → chunk-IKHZD2JH.js} +2 -1
- package/dist/shared/chunk-IKHZD2JH.js.map +1 -0
- package/dist/shared/{chunk-NKIEDT7V.js → chunk-IUXCWWGO.js} +1 -0
- package/dist/shared/chunk-IUXCWWGO.js.map +1 -0
- package/dist/shared/{chunk-SFKZAUPW.js → chunk-JMN3HTZU.js} +1 -0
- package/dist/shared/chunk-JMN3HTZU.js.map +1 -0
- package/dist/shared/{chunk-VLXZMESE.js → chunk-KBHDY425.js} +1 -0
- package/dist/shared/chunk-KBHDY425.js.map +1 -0
- package/dist/shared/{chunk-5WY7LYXK.js → chunk-KFM6KXSE.js} +1 -0
- package/dist/shared/chunk-KFM6KXSE.js.map +1 -0
- package/dist/shared/{chunk-7QFMCLUL.js → chunk-KLD3P5XH.js} +1 -0
- package/dist/shared/chunk-KLD3P5XH.js.map +1 -0
- package/dist/shared/{chunk-6L3Z5SZQ.js → chunk-KO5FPOWZ.js} +1 -0
- package/dist/shared/chunk-KO5FPOWZ.js.map +1 -0
- package/dist/shared/{chunk-YIFNKP4J.js → chunk-KSEURRVZ.js} +1 -0
- package/dist/shared/chunk-KSEURRVZ.js.map +1 -0
- package/dist/shared/{chunk-HP7CZB2F.js → chunk-KYY3PHP7.js} +1 -0
- package/dist/shared/chunk-KYY3PHP7.js.map +1 -0
- package/dist/shared/{chunk-ARYG4XMX.js → chunk-NJGXC7D6.js} +2 -1
- package/dist/shared/chunk-NJGXC7D6.js.map +1 -0
- package/dist/shared/{chunk-SFDRAHYP.js → chunk-NM5MMPCF.js} +2 -1
- package/dist/shared/chunk-NM5MMPCF.js.map +1 -0
- package/dist/shared/{chunk-XZLBM4AX.js → chunk-OGBMYMZD.js} +2 -1
- package/dist/shared/chunk-OGBMYMZD.js.map +1 -0
- package/dist/shared/{chunk-HSRXUIVM.js → chunk-OHNYCXPX.js} +2 -1
- package/dist/shared/chunk-OHNYCXPX.js.map +1 -0
- package/dist/shared/{chunk-MPBYGS6W.js → chunk-OIY3EPHO.js} +1 -0
- package/dist/shared/chunk-OIY3EPHO.js.map +1 -0
- package/dist/shared/{chunk-L42YBY5I.js → chunk-PIG623TZ.js} +1 -0
- package/dist/shared/chunk-PIG623TZ.js.map +1 -0
- package/dist/shared/{chunk-K5ADUHF4.js → chunk-PLSV746R.js} +2 -1
- package/dist/shared/chunk-PLSV746R.js.map +1 -0
- package/dist/shared/chunk-PSCN3VVA.js +4 -0
- package/dist/shared/chunk-PSCN3VVA.js.map +1 -0
- package/dist/shared/{chunk-3P36LG6T.js → chunk-PSTFJ5IJ.js} +2 -1
- package/dist/shared/chunk-PSTFJ5IJ.js.map +1 -0
- package/dist/shared/{chunk-TH5SONR6.js → chunk-PXI7AHWS.js} +2 -1
- package/dist/shared/chunk-PXI7AHWS.js.map +1 -0
- package/dist/shared/{chunk-AMQAGDFH.js → chunk-Q4H4QEMB.js} +1 -0
- package/dist/shared/chunk-Q4H4QEMB.js.map +1 -0
- package/dist/shared/{chunk-LEWKHCRI.js → chunk-QGYZ7CG5.js} +2 -1
- package/dist/shared/chunk-QGYZ7CG5.js.map +1 -0
- package/dist/shared/{chunk-US53TNMK.js → chunk-QWGUMKZC.js} +2 -1
- package/dist/shared/chunk-QWGUMKZC.js.map +1 -0
- package/dist/shared/{chunk-5X5SX5N7.js → chunk-QX6OGRRT.js} +2 -1
- package/dist/shared/chunk-QX6OGRRT.js.map +1 -0
- package/dist/shared/{chunk-VDX2J22H.js → chunk-R6ATC4TC.js} +2 -1
- package/dist/shared/chunk-R6ATC4TC.js.map +1 -0
- package/dist/shared/{chunk-WXKRIUTA.js → chunk-RDZK73KV.js} +1 -0
- package/dist/shared/chunk-RDZK73KV.js.map +1 -0
- package/dist/shared/{chunk-4GIZ6WSG.js → chunk-RJYZ5FAR.js} +2 -1
- package/dist/shared/chunk-RJYZ5FAR.js.map +1 -0
- package/dist/shared/{chunk-3QOAHMV4.js → chunk-SQ5T4AT5.js} +2 -1
- package/dist/shared/chunk-SQ5T4AT5.js.map +1 -0
- package/dist/shared/{chunk-DKNOZLA6.js → chunk-SWLUQVK7.js} +2 -1
- package/dist/shared/chunk-SWLUQVK7.js.map +1 -0
- package/dist/shared/{chunk-QGFQA7OZ.js → chunk-SXHDQ64Z.js} +2 -1
- package/dist/shared/chunk-SXHDQ64Z.js.map +1 -0
- package/dist/shared/{chunk-UDQWYGSO.js → chunk-SY6DZLTC.js} +2 -1
- package/dist/shared/chunk-SY6DZLTC.js.map +1 -0
- package/dist/shared/{chunk-RJZZWCBD.js → chunk-VEDQV5XO.js} +1 -0
- package/dist/shared/chunk-VEDQV5XO.js.map +1 -0
- package/dist/shared/{chunk-JRCVYDCD.js → chunk-W33JMRRN.js} +2 -1
- package/dist/shared/chunk-W33JMRRN.js.map +1 -0
- package/dist/shared/{chunk-Y3X4F4YJ.js → chunk-WBZW5LVH.js} +2 -1
- package/dist/shared/chunk-WBZW5LVH.js.map +1 -0
- package/dist/shared/{chunk-SDS4QU72.js → chunk-WHTPGWUV.js} +2 -1
- package/dist/shared/chunk-WHTPGWUV.js.map +1 -0
- package/dist/shared/{chunk-LT4CW2F7.js → chunk-WYVJE6J5.js} +2 -1
- package/dist/shared/chunk-WYVJE6J5.js.map +1 -0
- package/dist/shared/{chunk-PO6UODZ5.js → chunk-ZA3GAB4H.js} +2 -1
- package/dist/shared/chunk-ZA3GAB4H.js.map +1 -0
- package/dist/shared/{chunk-2CYAFF56.js → chunk-ZFCUSWMT.js} +1 -0
- package/dist/shared/chunk-ZFCUSWMT.js.map +1 -0
- package/dist/shared/{chunk-UCR2UZOY.js → chunk-ZQPXQCY2.js} +2 -1
- package/dist/shared/chunk-ZQPXQCY2.js.map +1 -0
- package/dist/shared/{chunk-DHSWVVMI.js → chunk-ZTZJHY4E.js} +2 -1
- package/dist/shared/chunk-ZTZJHY4E.js.map +1 -0
- package/dist/shared/context.js +1 -0
- package/dist/shared/context.js.map +1 -0
- package/dist/shared/datarecords/external/airtable/handler.js +1 -0
- package/dist/shared/datarecords/external/airtable/handler.js.map +1 -0
- package/dist/shared/datarecords/external/airtable/oauth/config.js +1 -0
- package/dist/shared/datarecords/external/airtable/oauth/config.js.map +1 -0
- package/dist/shared/datarecords/external/airtable/types.js +2 -1
- package/dist/shared/datarecords/external/airtable/types.js.map +1 -0
- package/dist/shared/datarecords/external/generic-webhook/handler.js +1 -0
- package/dist/shared/datarecords/external/generic-webhook/handler.js.map +1 -0
- package/dist/shared/datarecords/external/generic-webhook/options.js +1 -0
- package/dist/shared/datarecords/external/generic-webhook/options.js.map +1 -0
- package/dist/shared/datarecords/external/google/oauth/config.js +1 -0
- package/dist/shared/datarecords/external/google/oauth/config.js.map +1 -0
- package/dist/shared/datarecords/external/google/sheets/client.js +2 -1
- package/dist/shared/datarecords/external/google/sheets/client.js.map +1 -0
- package/dist/shared/datarecords/external/google/sheets/handler.js +2 -1
- package/dist/shared/datarecords/external/google/sheets/handler.js.map +1 -0
- package/dist/shared/datarecords/external/google/sheets/types.js +2 -1
- package/dist/shared/datarecords/external/google/sheets/types.js.map +1 -0
- package/dist/shared/datarecords/external/notion/handler.js +1 -0
- package/dist/shared/datarecords/external/notion/handler.js.map +1 -0
- package/dist/shared/datarecords/external/notion/oauth/config.js +1 -0
- package/dist/shared/datarecords/external/notion/oauth/config.js.map +1 -0
- package/dist/shared/datarecords/external/notion/types.js +2 -1
- package/dist/shared/datarecords/external/notion/types.js.map +1 -0
- package/dist/shared/datarecords/types.js +2 -1
- package/dist/shared/datarecords/types.js.map +1 -0
- package/dist/shared/datarecords.js +1 -0
- package/dist/shared/datarecords.js.map +1 -0
- package/dist/shared/datasources/external/facebook/posts/fetcher.js +2 -1
- package/dist/shared/datasources/external/facebook/posts/fetcher.js.map +1 -0
- package/dist/shared/datasources/external/facebook/posts/schema.js +1 -0
- package/dist/shared/datasources/external/facebook/posts/schema.js.map +1 -0
- package/dist/shared/datasources/external/http-json/fetcher.js +2 -1
- package/dist/shared/datasources/external/http-json/fetcher.js.map +1 -0
- package/dist/shared/datasources/external/http-json/options.js +1 -0
- package/dist/shared/datasources/external/http-json/options.js.map +1 -0
- package/dist/shared/datasources/external/http-json/schema.js +1 -0
- package/dist/shared/datasources/external/http-json/schema.js.map +1 -0
- package/dist/shared/datasources/external/instagram/feed/fetcher.js +2 -1
- package/dist/shared/datasources/external/instagram/feed/fetcher.js.map +1 -0
- package/dist/shared/datasources/external/instagram/feed/schema.js +1 -0
- package/dist/shared/datasources/external/instagram/feed/schema.js.map +1 -0
- package/dist/shared/datasources/external/mastodon/account/fetcher.js +2 -1
- package/dist/shared/datasources/external/mastodon/account/fetcher.js.map +1 -0
- package/dist/shared/datasources/external/mastodon/account/schema.js +2 -1
- package/dist/shared/datasources/external/mastodon/account/schema.js.map +1 -0
- package/dist/shared/datasources/external/mastodon/options.js +1 -0
- package/dist/shared/datasources/external/mastodon/options.js.map +1 -0
- package/dist/shared/datasources/external/mastodon/status/fetcher.js +2 -1
- package/dist/shared/datasources/external/mastodon/status/fetcher.js.map +1 -0
- package/dist/shared/datasources/external/mastodon/status/sample.array.js +1 -0
- package/dist/shared/datasources/external/mastodon/status/sample.array.js.map +1 -0
- package/dist/shared/datasources/external/mastodon/status/sample.single.js +1 -0
- package/dist/shared/datasources/external/mastodon/status/sample.single.js.map +1 -0
- package/dist/shared/datasources/external/mastodon/status/schema.js +2 -1
- package/dist/shared/datasources/external/mastodon/status/schema.js.map +1 -0
- package/dist/shared/datasources/external/meta/oauth/config.js +2 -1
- package/dist/shared/datasources/external/meta/oauth/config.js.map +1 -0
- package/dist/shared/datasources/external/meta/options.js +1 -0
- package/dist/shared/datasources/external/meta/options.js.map +1 -0
- package/dist/shared/datasources/external/rss/fetcher.js +2 -1
- package/dist/shared/datasources/external/rss/fetcher.js.map +1 -0
- package/dist/shared/datasources/external/rss/options.js +1 -0
- package/dist/shared/datasources/external/rss/options.js.map +1 -0
- package/dist/shared/datasources/external/rss/schema.js +2 -1
- package/dist/shared/datasources/external/rss/schema.js.map +1 -0
- package/dist/shared/datasources/external/threads/media/fetcher.js +2 -1
- package/dist/shared/datasources/external/threads/media/fetcher.js.map +1 -0
- package/dist/shared/datasources/external/threads/media/schema.js +1 -0
- package/dist/shared/datasources/external/threads/media/schema.js.map +1 -0
- package/dist/shared/datasources/external/tiktok/oauth/config.js +2 -1
- package/dist/shared/datasources/external/tiktok/oauth/config.js.map +1 -0
- package/dist/shared/datasources/external/tiktok/video/fetcher.js +2 -1
- package/dist/shared/datasources/external/tiktok/video/fetcher.js.map +1 -0
- package/dist/shared/datasources/external/tiktok/video/options.js +1 -0
- package/dist/shared/datasources/external/tiktok/video/options.js.map +1 -0
- package/dist/shared/datasources/external/tiktok/video/schema.js +1 -0
- package/dist/shared/datasources/external/tiktok/video/schema.js.map +1 -0
- package/dist/shared/datasources/external/youtube/list/fetcher.js +2 -1
- package/dist/shared/datasources/external/youtube/list/fetcher.js.map +1 -0
- package/dist/shared/datasources/external/youtube/list/options.js +1 -0
- package/dist/shared/datasources/external/youtube/list/options.js.map +1 -0
- package/dist/shared/datasources/external/youtube/list/schema.js +2 -1
- package/dist/shared/datasources/external/youtube/list/schema.js.map +1 -0
- package/dist/shared/datasources/external/youtube/oauth/config.js +2 -1
- package/dist/shared/datasources/external/youtube/oauth/config.js.map +1 -0
- package/dist/shared/datasources/fetcher.js +1 -0
- package/dist/shared/datasources/fetcher.js.map +1 -0
- package/dist/shared/datasources/internal/blog/schema.js +1 -0
- package/dist/shared/datasources/internal/blog/schema.js.map +1 -0
- package/dist/shared/datasources/internal/changelog/schema.js +1 -0
- package/dist/shared/datasources/internal/changelog/schema.js.map +1 -0
- package/dist/shared/datasources/internal/contact-info/schema.js +2 -1
- package/dist/shared/datasources/internal/contact-info/schema.js.map +1 -0
- package/dist/shared/datasources/internal/cv/schema.js +1 -0
- package/dist/shared/datasources/internal/cv/schema.js.map +1 -0
- package/dist/shared/datasources/internal/faq/schema.js +1 -0
- package/dist/shared/datasources/internal/faq/schema.js.map +1 -0
- package/dist/shared/datasources/internal/job-board/schema.js +1 -0
- package/dist/shared/datasources/internal/job-board/schema.js.map +1 -0
- package/dist/shared/datasources/internal/links/schema.js +2 -1
- package/dist/shared/datasources/internal/links/schema.js.map +1 -0
- package/dist/shared/datasources/internal/recipes/schema.js +1 -0
- package/dist/shared/datasources/internal/recipes/schema.js.map +1 -0
- package/dist/shared/datasources/internal/restaurant/schema.js +1 -0
- package/dist/shared/datasources/internal/restaurant/schema.js.map +1 -0
- package/dist/shared/datasources/samples.js +1 -0
- package/dist/shared/datasources/samples.js.map +1 -0
- package/dist/shared/datasources/schemas.js +2 -1
- package/dist/shared/datasources/schemas.js.map +1 -0
- package/dist/shared/datasources/types.js +2 -1
- package/dist/shared/datasources/types.js.map +1 -0
- package/dist/shared/datasources/utils.js +2 -1
- package/dist/shared/datasources/utils.js.map +1 -0
- package/dist/shared/datasources.js +1 -0
- package/dist/shared/datasources.js.map +1 -0
- package/dist/shared/env.js +1 -0
- package/dist/shared/env.js.map +1 -0
- package/dist/shared/errors.js +2 -1
- package/dist/shared/errors.js.map +1 -0
- package/dist/shared/images.js +2 -1
- package/dist/shared/images.js.map +1 -0
- package/dist/shared/index.js +1 -0
- package/dist/shared/index.js.map +1 -0
- package/dist/shared/layout-constants.js +1 -0
- package/dist/shared/layout-constants.js.map +1 -0
- package/dist/shared/manifest.js +1 -0
- package/dist/shared/manifest.js.map +1 -0
- package/dist/shared/oauth.js +2 -1
- package/dist/shared/oauth.js.map +1 -0
- package/dist/shared/page.js +2 -1
- package/dist/shared/page.js.map +1 -0
- package/dist/shared/prompt.js +2 -1
- package/dist/shared/prompt.js.map +1 -0
- package/dist/shared/responsive.js +2 -1
- package/dist/shared/responsive.js.map +1 -0
- package/dist/shared/site.js +2 -1
- package/dist/shared/site.js.map +1 -0
- package/dist/shared/sitemap.js +2 -1
- package/dist/shared/sitemap.js.map +1 -0
- package/dist/shared/social-icons.js +1 -0
- package/dist/shared/social-icons.js.map +1 -0
- package/dist/shared/theme.js +2 -1
- package/dist/shared/theme.js.map +1 -0
- package/dist/shared/themes/color-system.d.ts +0 -1
- package/dist/shared/themes/color-system.d.ts.map +1 -1
- package/dist/shared/themes/color-system.js +2 -1
- package/dist/shared/themes/color-system.js.map +1 -0
- package/dist/shared/utils/canvas-data-uri.js +1 -0
- package/dist/shared/utils/canvas-data-uri.js.map +1 -0
- package/dist/shared/utils/invariant.js +2 -1
- package/dist/shared/utils/invariant.js.map +1 -0
- package/dist/shared/utils/json-date.js +2 -1
- package/dist/shared/utils/json-date.js.map +1 -0
- package/dist/shared/utils/llm.js +2 -1
- package/dist/shared/utils/llm.js.map +1 -0
- package/dist/shared/utils/merge.js +2 -1
- package/dist/shared/utils/merge.js.map +1 -0
- package/dist/shared/utils/object-hash.js +1 -0
- package/dist/shared/utils/object-hash.js.map +1 -0
- package/dist/shared/utils/schema.js +2 -1
- package/dist/shared/utils/schema.js.map +1 -0
- package/dist/shared/utils/string-enum.js +2 -1
- package/dist/shared/utils/string-enum.js.map +1 -0
- package/dist/shared/utils/try-catch.js +1 -0
- package/dist/shared/utils/try-catch.js.map +1 -0
- package/dist/shared/utils/typed-ref.js +2 -1
- package/dist/shared/utils/typed-ref.js.map +1 -0
- package/package.json +7 -7
- package/src/shared/theme.ts +6 -6
- package/src/shared/themes/color-system.ts +0 -1
- package/src/shared/themes/tests/color-system.test.ts +5 -1
- package/dist/shared/chunk-5DZIQGY2.js +0 -3
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{a as n}from"./chunk-
|
|
3
|
+
import{a as n}from"./chunk-KSEURRVZ.js";import{c as l}from"./chunk-3YVJ2ELD.js";import{a as c}from"./chunk-RJYZ5FAR.js";import{m as s}from"./chunk-AFVJZPLS.js";import{b as i,f as t}from"./chunk-5YRC3IT3.js";import{c as a}from"./chunk-CZRCW5EN.js";import{c as r}from"./chunk-OHNYCXPX.js";import{a as o}from"./chunk-JMN3HTZU.js";import{Type as e}from"@sinclair/typebox";import{TfiLayoutAccordionSeparated as d}from"react-icons/tfi";var k=c({type:"accordion",name:"Accordion",description:"An accordion/collapse element for expandable content",aiInstructions:`
|
|
4
4
|
This accordion element displays content in collapsible panels.
|
|
5
5
|
It is typically used for FAQ sections, organized documentation, or to save space.
|
|
6
6
|
Each item has a title and expandable content area.
|
|
7
7
|
Multiple panels can be open simultaneously or limited to one at a time.
|
|
8
8
|
`.trim(),icon:d,defaultWidth:{desktop:"450px",mobile:"100%"},props:l({items:e.Array(e.Object({title:t({title:"Title",default:"My title",disableSizing:!0,showInSettings:!0}),content:t({title:"Content",default:"Expandable content goes here"}),defaultOpen:e.Optional(n("Open by default",!1))}),{title:"Accordion items",metadata:{category:"content"}}),fontSize:e.Optional(i({default:"inherit"})),restrictOneOpen:n("Restrict to one open item",!1,{description:"Restrict to one open item at a time. If false, multiple items can be open simultaneously."}),gap:e.Optional(r({title:"Gap",description:"The gap between the accordion items.",default:"1px","ui:styleId":"styles:gap"})),rounding:e.Optional(o(["rounded-auto","rounded-none","rounded-sm","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl"],{title:"Corner rounding",enumNames:["Auto","None","Small","Medium","Large","Extra large","2xl","3xl"],"ui:placeholder":"Not specified","ui:field":"enum","ui:display":"select","ui:styleId":"styles:rounding",default:"rounded-auto"})),colorPreset:e.Optional(a({title:"Color",default:{color:"bg-primary-500 text-primary-500-content"}})),loop:e.Optional(s())})}),v=[{description:"FAQ section with card styling with single open",type:"accordion",props:{restrictOneOpen:!0,items:[{title:"What is included in the basic plan?",content:"The basic plan includes access to all core features, up to 10 projects, 5GB storage, email support, and basic analytics. You can upgrade at any time to access advanced features like API access, priority support, and unlimited projects.",defaultOpen:!0},{title:"How do I cancel my subscription?",content:"You can cancel your subscription at any time from your account settings. Go to Billing > Manage Subscription > Cancel. Your access will continue until the end of your current billing period, and you won't be charged for the next cycle."},{title:"Is there a free trial available?",content:"Yes! We offer a 14-day free trial with full access to all premium features. No credit card required to start. You can upgrade to a paid plan anytime during or after the trial period."},{title:"What payment methods do you accept?",content:"We accept all major credit cards (Visa, MasterCard, American Express), PayPal, and bank transfers for annual subscriptions. All payments are processed securely through our payment partners."},{title:"Do you offer refunds?",content:"We offer a 30-day money-back guarantee for all new subscriptions. If you're not satisfied with our service, contact our support team within 30 days of your purchase for a full refund."}]}},{description:"Product features accordion with multiple open panels and secondary color scheme",type:"accordion",props:{restrictOneOpen:!1,colorPreset:{color:"secondary-400"},rounding:"rounded-lg",gap:"0.5rem",items:[{title:"Advanced Analytics Dashboard",content:"Get detailed insights into your business performance with real-time analytics, custom reports, and data visualization tools. Track key metrics, monitor trends, and make data-driven decisions.",defaultOpen:!0},{title:"Team Collaboration Tools",content:"Work seamlessly with your team using built-in collaboration features including shared workspaces, real-time editing, comments, and task management. Perfect for remote and hybrid teams.",defaultOpen:!0},{title:"API Integration & Automation",content:"Connect with over 1000+ popular tools and services through our robust API. Set up automated workflows, sync data across platforms, and streamline your business processes."},{title:"Enterprise Security",content:"Bank-level security with end-to-end encryption, SSO integration, two-factor authentication, and compliance with SOC 2, GDPR, and HIPAA standards."}]}},{description:"Documentation sections with neutral styling and large font size",type:"accordion",props:{restrictOneOpen:!1,colorPreset:{color:"neutral-200"},fontSize:"text-lg",rounding:"rounded-md",gap:"2px",items:[{title:"Getting Started",content:"Learn the basics of our platform with step-by-step tutorials, setup guides, and quick start examples. Perfect for new users who want to get up and running quickly."},{title:"API Reference",content:"Complete API documentation with endpoints, parameters, response examples, and SDKs for popular programming languages including JavaScript, Python, PHP, and Ruby."},{title:"Advanced Configuration",content:"Deep dive into advanced features, custom configurations, webhooks, and enterprise-level integrations. Includes code samples and best practices."}]}},{description:"Restaurant menu sections with accent colors and extra large rounding",type:"accordion",props:{restrictOneOpen:!0,colorPreset:{color:"accent-500"},rounding:"rounded-xl",gap:"1rem",items:[{title:"Appetizers & Starters",content:"Bruschetta with Fresh Tomatoes - $8.99<br/>Calamari Rings with Marinara - $12.99<br/>Spinach & Artichoke Dip - $10.99<br/>Buffalo Wings (6 pieces) - $9.99",defaultOpen:!0},{title:"Main Courses",content:"Grilled Salmon with Herbs - $18.99<br/>Chicken Parmesan with Pasta - $16.99<br/>Ribeye Steak (12oz) - $24.99<br/>Vegetarian Lasagna - $14.99"},{title:"Desserts",content:"Tiramisu - $7.99<br/>Chocolate Lava Cake - $8.99<br/>New York Cheesecake - $6.99<br/>Gelato (3 scoops) - $5.99"}]}},{description:"Course curriculum with primary colors and minimal gap",type:"accordion",props:{restrictOneOpen:!1,colorPreset:{color:"primary-600"},rounding:"rounded-sm",gap:"1px",fontSize:"text-base",items:[{title:"Week 1: Introduction to Web Development",content:"Learn the fundamentals of HTML, CSS, and basic JavaScript. Set up your development environment and create your first web page. Includes hands-on exercises and project templates."},{title:"Week 2: Responsive Design & CSS Framework",content:"Master responsive web design principles, CSS Grid, Flexbox, and popular frameworks like Bootstrap and Tailwind CSS. Build mobile-first designs that work on all devices."},{title:"Week 3: JavaScript Fundamentals",content:"Deep dive into JavaScript programming including variables, functions, objects, arrays, DOM manipulation, and event handling. Build interactive web applications."},{title:"Week 4: Modern JavaScript & APIs",content:"Learn ES6+ features, async/await, fetch API, and how to work with external APIs. Create dynamic applications that interact with real-world data sources."}]}},{description:"Legal terms accordion with neutral dark theme and large gaps",type:"accordion",props:{restrictOneOpen:!0,colorPreset:{color:"neutral-800"},rounding:"rounded-lg",gap:"1.5rem",fontSize:"text-sm",items:[{title:"Terms of Service",content:"By accessing and using this website, you accept and agree to be bound by the terms and provision of this agreement. These terms apply to all visitors, users, and others who access or use the service."},{title:"Privacy Policy",content:"We collect information you provide directly to us, such as when you create an account, make a purchase, or contact us. We use this information to provide, maintain, and improve our services."},{title:"Cookie Policy",content:"We use cookies and similar tracking technologies to track activity on our service and hold certain information. You can instruct your browser to refuse all cookies or indicate when a cookie is being sent."}]}},{description:"Event schedule with secondary colors and 2xl rounding",type:"accordion",props:{restrictOneOpen:!1,colorPreset:{color:"secondary-300"},rounding:"rounded-2xl",gap:"0.75rem",items:[{title:"Day 1: Opening Ceremony & Keynotes",content:"9:00 AM - Registration & Welcome Coffee<br/>10:00 AM - Opening Ceremony<br/>11:00 AM - Keynote: Future of Technology<br/>12:30 PM - Networking Lunch<br/>2:00 PM - Panel Discussion<br/>4:00 PM - Closing Remarks",defaultOpen:!0},{title:"Day 2: Workshops & Technical Sessions",content:"9:00 AM - Workshop: AI in Practice<br/>11:00 AM - Technical Deep Dive: Cloud Architecture<br/>1:00 PM - Lunch Break<br/>2:30 PM - Hands-on Lab: DevOps Tools<br/>4:30 PM - Q&A Session"},{title:"Day 3: Networking & Demo Day",content:"10:00 AM - Startup Pitch Competition<br/>12:00 PM - Demo Showcase<br/>2:00 PM - Networking Session<br/>3:30 PM - Awards Ceremony<br/>5:00 PM - Closing Party"}]}},{description:"Fitness program details with accent colors and 3xl rounding",type:"accordion",props:{restrictOneOpen:!0,colorPreset:{color:"accent-400"},rounding:"rounded-3xl",gap:"1.25rem",fontSize:"text-lg",items:[{title:"Beginner Program (4 weeks)",content:"Perfect for newcomers to fitness. Includes basic bodyweight exercises, flexibility training, and cardio. 3 sessions per week, 45 minutes each. Includes nutrition guidance and progress tracking."},{title:"Intermediate Program (8 weeks)",content:"For those with some fitness experience. Combines strength training, HIIT workouts, and endurance building. 4 sessions per week, 60 minutes each. Includes meal planning and supplement recommendations."},{title:"Advanced Program (12 weeks)",content:"High-intensity program for experienced athletes. Features complex movements, periodization, and sport-specific training. 5-6 sessions per week. Includes recovery protocols and performance optimization."}]}},{description:"Support categories with primary colors and no rounding",type:"accordion",props:{restrictOneOpen:!1,colorPreset:{color:"primary-300"},rounding:"rounded-none",gap:"0px",fontSize:"text-base",items:[{title:"Account & Billing",content:"Get help with account settings, password reset, billing questions, subscription management, and payment issues. Average response time: 2 hours during business hours."},{title:"Technical Support",content:"Troubleshoot technical issues, API problems, integration questions, and performance concerns. Includes access to our knowledge base and video tutorials."},{title:"Sales & Partnerships",content:"Inquiries about enterprise solutions, custom pricing, partnership opportunities, and bulk discounts. Schedule a call with our sales team for personalized assistance."},{title:"Feature Requests",content:"Submit ideas for new features, improvements, and integrations. Our product team reviews all suggestions and provides updates on development roadmap."}]}},{description:"Company policies with neutral colors and small font size",type:"accordion",props:{restrictOneOpen:!0,colorPreset:{color:"neutral-100"},rounding:"rounded-md",gap:"0.25rem",fontSize:"text-sm",items:[{title:"Remote Work Policy",content:"All employees have the flexibility to work remotely full-time or adopt a hybrid schedule. Required equipment is provided, and employees must maintain reliable internet connection and dedicated workspace."},{title:"Professional Development",content:"Annual budget of $2,000 per employee for conferences, courses, certifications, and training materials. Time off is provided for approved learning activities and skill development."},{title:"Time Off & Benefits",content:"Unlimited PTO policy with minimum 3 weeks encouraged annually. Comprehensive health insurance, dental, vision, 401k matching, and wellness stipend included."}]}},{description:"Product comparison with secondary colors and multiple defaults open",type:"accordion",props:{restrictOneOpen:!1,colorPreset:{color:"secondary-500"},rounding:"rounded-lg",gap:"0.5rem",fontSize:"text-base",items:[{title:"Basic Plan - $9/month",content:"\u2713 Up to 5 projects<br/>\u2713 10GB storage<br/>\u2713 Email support<br/>\u2713 Basic analytics<br/>\u2713 Mobile app access<br/>\u2717 API access<br/>\u2717 Custom integrations",defaultOpen:!0},{title:"Pro Plan - $29/month",content:"\u2713 Unlimited projects<br/>\u2713 100GB storage<br/>\u2713 Priority support<br/>\u2713 Advanced analytics<br/>\u2713 API access<br/>\u2713 Custom integrations<br/>\u2713 Team collaboration",defaultOpen:!0},{title:"Enterprise Plan - Custom pricing",content:"\u2713 Everything in Pro<br/>\u2713 Unlimited storage<br/>\u2713 Dedicated support<br/>\u2713 White-label options<br/>\u2713 SSO integration<br/>\u2713 Custom contracts<br/>\u2713 On-premise deployment"}]}},{description:"Troubleshooting guide with accent colors and large font",type:"accordion",props:{restrictOneOpen:!1,colorPreset:{color:"accent-600"},rounding:"rounded-xl",gap:"1rem",fontSize:"text-lg",items:[{title:"Connection Issues",content:"1. Check your internet connection<br/>2. Clear browser cache and cookies<br/>3. Disable VPN if active<br/>4. Try incognito/private browsing mode<br/>5. Contact support if issues persist"},{title:"Login Problems",content:"1. Verify your email address and password<br/>2. Use 'Forgot Password' to reset<br/>3. Check for CAPS LOCK<br/>4. Try a different browser<br/>5. Ensure account is not suspended"},{title:"Performance Issues",content:"1. Close unnecessary browser tabs<br/>2. Update your browser to latest version<br/>3. Disable browser extensions<br/>4. Check system resources (RAM/CPU)<br/>5. Try using the mobile app instead"}]}}];export{k as a,v as b};
|
|
9
|
+
//# sourceMappingURL=chunk-I3VL6SRH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/shared/bricks/manifests/accordion.manifest.ts"],"sourcesContent":["import { Type } from \"@sinclair/typebox\";\nimport { TfiLayoutAccordionSeparated } from \"react-icons/tfi\";\nimport { defineBrickManifest } from \"~/shared/brick-manifest\";\nimport { StringEnum } from \"~/shared/utils/string-enum\";\nimport { boolean } from \"../props/boolean\";\nimport { defineProps } from \"../props/helpers\";\nimport { colorPresetRef } from \"../props/color-preset\";\nimport { fontSizeRef, textContentRef } from \"../props/text\";\nimport type { BrickProps } from \"../props/types\";\nimport { loopRef } from \"../props/dynamic\";\nimport { cssLengthRef } from \"../props/css-length\";\n\nexport const manifest = defineBrickManifest({\n type: \"accordion\",\n name: \"Accordion\",\n description: \"An accordion/collapse element for expandable content\",\n aiInstructions: `\nThis accordion element displays content in collapsible panels.\nIt is typically used for FAQ sections, organized documentation, or to save space.\nEach item has a title and expandable content area.\nMultiple panels can be open simultaneously or limited to one at a time.\n `.trim(),\n icon: TfiLayoutAccordionSeparated,\n\n defaultWidth: { desktop: \"450px\", mobile: \"100%\" },\n\n props: defineProps({\n items: Type.Array(\n Type.Object({\n title: textContentRef({\n title: \"Title\",\n default: \"My title\",\n disableSizing: true,\n showInSettings: true,\n }),\n content: textContentRef({ title: \"Content\", default: \"Expandable content goes here\" }),\n defaultOpen: Type.Optional(boolean(\"Open by default\", false)),\n }),\n {\n title: \"Accordion items\",\n metadata: {\n category: \"content\",\n },\n },\n ),\n fontSize: Type.Optional(fontSizeRef({ default: \"inherit\" })),\n restrictOneOpen: boolean(\"Restrict to one open item\", false, {\n description:\n \"Restrict to one open item at a time. If false, multiple items can be open simultaneously.\",\n }),\n gap: Type.Optional(\n cssLengthRef({\n title: \"Gap\",\n description: \"The gap between the accordion items.\",\n default: \"1px\",\n \"ui:styleId\": \"styles:gap\",\n }),\n ),\n rounding: Type.Optional(\n StringEnum(\n [\n \"rounded-auto\",\n \"rounded-none\",\n \"rounded-sm\",\n \"rounded-md\",\n \"rounded-lg\",\n \"rounded-xl\",\n \"rounded-2xl\",\n \"rounded-3xl\",\n ],\n {\n title: \"Corner rounding\",\n enumNames: [\"Auto\", \"None\", \"Small\", \"Medium\", \"Large\", \"Extra large\", \"2xl\", \"3xl\"],\n \"ui:placeholder\": \"Not specified\",\n \"ui:field\": \"enum\",\n \"ui:display\": \"select\",\n \"ui:styleId\": \"styles:rounding\",\n default: \"rounded-auto\",\n },\n ),\n ),\n colorPreset: Type.Optional(\n colorPresetRef({\n title: \"Color\",\n default: { color: \"bg-primary-500 text-primary-500-content\" },\n }),\n ),\n loop: Type.Optional(loopRef()),\n }),\n});\n\nexport type Manifest = typeof manifest;\n\nexport const examples: {\n description: string;\n type: string;\n props: BrickProps<Manifest>[\"brick\"][\"props\"];\n}[] = [\n {\n description: \"FAQ section with card styling with single open\",\n type: \"accordion\",\n props: {\n restrictOneOpen: true,\n items: [\n {\n title: \"What is included in the basic plan?\",\n content:\n \"The basic plan includes access to all core features, up to 10 projects, 5GB storage, email support, and basic analytics. You can upgrade at any time to access advanced features like API access, priority support, and unlimited projects.\",\n defaultOpen: true,\n },\n {\n title: \"How do I cancel my subscription?\",\n content:\n \"You can cancel your subscription at any time from your account settings. Go to Billing > Manage Subscription > Cancel. Your access will continue until the end of your current billing period, and you won't be charged for the next cycle.\",\n },\n {\n title: \"Is there a free trial available?\",\n content:\n \"Yes! We offer a 14-day free trial with full access to all premium features. No credit card required to start. You can upgrade to a paid plan anytime during or after the trial period.\",\n },\n {\n title: \"What payment methods do you accept?\",\n content:\n \"We accept all major credit cards (Visa, MasterCard, American Express), PayPal, and bank transfers for annual subscriptions. All payments are processed securely through our payment partners.\",\n },\n {\n title: \"Do you offer refunds?\",\n content:\n \"We offer a 30-day money-back guarantee for all new subscriptions. If you're not satisfied with our service, contact our support team within 30 days of your purchase for a full refund.\",\n },\n ],\n },\n },\n {\n description: \"Product features accordion with multiple open panels and secondary color scheme\",\n type: \"accordion\",\n props: {\n restrictOneOpen: false,\n colorPreset: {\n color: \"secondary-400\",\n },\n rounding: \"rounded-lg\",\n gap: \"0.5rem\",\n items: [\n {\n title: \"Advanced Analytics Dashboard\",\n content:\n \"Get detailed insights into your business performance with real-time analytics, custom reports, and data visualization tools. Track key metrics, monitor trends, and make data-driven decisions.\",\n defaultOpen: true,\n },\n {\n title: \"Team Collaboration Tools\",\n content:\n \"Work seamlessly with your team using built-in collaboration features including shared workspaces, real-time editing, comments, and task management. Perfect for remote and hybrid teams.\",\n defaultOpen: true,\n },\n {\n title: \"API Integration & Automation\",\n content:\n \"Connect with over 1000+ popular tools and services through our robust API. Set up automated workflows, sync data across platforms, and streamline your business processes.\",\n },\n {\n title: \"Enterprise Security\",\n content:\n \"Bank-level security with end-to-end encryption, SSO integration, two-factor authentication, and compliance with SOC 2, GDPR, and HIPAA standards.\",\n },\n ],\n },\n },\n {\n description: \"Documentation sections with neutral styling and large font size\",\n type: \"accordion\",\n props: {\n restrictOneOpen: false,\n colorPreset: {\n color: \"neutral-200\",\n },\n fontSize: \"text-lg\",\n rounding: \"rounded-md\",\n gap: \"2px\",\n items: [\n {\n title: \"Getting Started\",\n content:\n \"Learn the basics of our platform with step-by-step tutorials, setup guides, and quick start examples. Perfect for new users who want to get up and running quickly.\",\n },\n {\n title: \"API Reference\",\n content:\n \"Complete API documentation with endpoints, parameters, response examples, and SDKs for popular programming languages including JavaScript, Python, PHP, and Ruby.\",\n },\n {\n title: \"Advanced Configuration\",\n content:\n \"Deep dive into advanced features, custom configurations, webhooks, and enterprise-level integrations. Includes code samples and best practices.\",\n },\n ],\n },\n },\n {\n description: \"Restaurant menu sections with accent colors and extra large rounding\",\n type: \"accordion\",\n props: {\n restrictOneOpen: true,\n colorPreset: {\n color: \"accent-500\",\n },\n rounding: \"rounded-xl\",\n gap: \"1rem\",\n items: [\n {\n title: \"Appetizers & Starters\",\n content:\n \"Bruschetta with Fresh Tomatoes - $8.99<br/>Calamari Rings with Marinara - $12.99<br/>Spinach & Artichoke Dip - $10.99<br/>Buffalo Wings (6 pieces) - $9.99\",\n defaultOpen: true,\n },\n {\n title: \"Main Courses\",\n content:\n \"Grilled Salmon with Herbs - $18.99<br/>Chicken Parmesan with Pasta - $16.99<br/>Ribeye Steak (12oz) - $24.99<br/>Vegetarian Lasagna - $14.99\",\n },\n {\n title: \"Desserts\",\n content:\n \"Tiramisu - $7.99<br/>Chocolate Lava Cake - $8.99<br/>New York Cheesecake - $6.99<br/>Gelato (3 scoops) - $5.99\",\n },\n ],\n },\n },\n {\n description: \"Course curriculum with primary colors and minimal gap\",\n type: \"accordion\",\n props: {\n restrictOneOpen: false,\n colorPreset: {\n color: \"primary-600\",\n },\n rounding: \"rounded-sm\",\n gap: \"1px\",\n fontSize: \"text-base\",\n items: [\n {\n title: \"Week 1: Introduction to Web Development\",\n content:\n \"Learn the fundamentals of HTML, CSS, and basic JavaScript. Set up your development environment and create your first web page. Includes hands-on exercises and project templates.\",\n },\n {\n title: \"Week 2: Responsive Design & CSS Framework\",\n content:\n \"Master responsive web design principles, CSS Grid, Flexbox, and popular frameworks like Bootstrap and Tailwind CSS. Build mobile-first designs that work on all devices.\",\n },\n {\n title: \"Week 3: JavaScript Fundamentals\",\n content:\n \"Deep dive into JavaScript programming including variables, functions, objects, arrays, DOM manipulation, and event handling. Build interactive web applications.\",\n },\n {\n title: \"Week 4: Modern JavaScript & APIs\",\n content:\n \"Learn ES6+ features, async/await, fetch API, and how to work with external APIs. Create dynamic applications that interact with real-world data sources.\",\n },\n ],\n },\n },\n {\n description: \"Legal terms accordion with neutral dark theme and large gaps\",\n type: \"accordion\",\n props: {\n restrictOneOpen: true,\n colorPreset: {\n color: \"neutral-800\",\n },\n rounding: \"rounded-lg\",\n gap: \"1.5rem\",\n fontSize: \"text-sm\",\n items: [\n {\n title: \"Terms of Service\",\n content:\n \"By accessing and using this website, you accept and agree to be bound by the terms and provision of this agreement. These terms apply to all visitors, users, and others who access or use the service.\",\n },\n {\n title: \"Privacy Policy\",\n content:\n \"We collect information you provide directly to us, such as when you create an account, make a purchase, or contact us. We use this information to provide, maintain, and improve our services.\",\n },\n {\n title: \"Cookie Policy\",\n content:\n \"We use cookies and similar tracking technologies to track activity on our service and hold certain information. You can instruct your browser to refuse all cookies or indicate when a cookie is being sent.\",\n },\n ],\n },\n },\n {\n description: \"Event schedule with secondary colors and 2xl rounding\",\n type: \"accordion\",\n props: {\n restrictOneOpen: false,\n colorPreset: {\n color: \"secondary-300\",\n },\n rounding: \"rounded-2xl\",\n gap: \"0.75rem\",\n items: [\n {\n title: \"Day 1: Opening Ceremony & Keynotes\",\n content:\n \"9:00 AM - Registration & Welcome Coffee<br/>10:00 AM - Opening Ceremony<br/>11:00 AM - Keynote: Future of Technology<br/>12:30 PM - Networking Lunch<br/>2:00 PM - Panel Discussion<br/>4:00 PM - Closing Remarks\",\n defaultOpen: true,\n },\n {\n title: \"Day 2: Workshops & Technical Sessions\",\n content:\n \"9:00 AM - Workshop: AI in Practice<br/>11:00 AM - Technical Deep Dive: Cloud Architecture<br/>1:00 PM - Lunch Break<br/>2:30 PM - Hands-on Lab: DevOps Tools<br/>4:30 PM - Q&A Session\",\n },\n {\n title: \"Day 3: Networking & Demo Day\",\n content:\n \"10:00 AM - Startup Pitch Competition<br/>12:00 PM - Demo Showcase<br/>2:00 PM - Networking Session<br/>3:30 PM - Awards Ceremony<br/>5:00 PM - Closing Party\",\n },\n ],\n },\n },\n {\n description: \"Fitness program details with accent colors and 3xl rounding\",\n type: \"accordion\",\n props: {\n restrictOneOpen: true,\n colorPreset: {\n color: \"accent-400\",\n },\n rounding: \"rounded-3xl\",\n gap: \"1.25rem\",\n fontSize: \"text-lg\",\n items: [\n {\n title: \"Beginner Program (4 weeks)\",\n content:\n \"Perfect for newcomers to fitness. Includes basic bodyweight exercises, flexibility training, and cardio. 3 sessions per week, 45 minutes each. Includes nutrition guidance and progress tracking.\",\n },\n {\n title: \"Intermediate Program (8 weeks)\",\n content:\n \"For those with some fitness experience. Combines strength training, HIIT workouts, and endurance building. 4 sessions per week, 60 minutes each. Includes meal planning and supplement recommendations.\",\n },\n {\n title: \"Advanced Program (12 weeks)\",\n content:\n \"High-intensity program for experienced athletes. Features complex movements, periodization, and sport-specific training. 5-6 sessions per week. Includes recovery protocols and performance optimization.\",\n },\n ],\n },\n },\n {\n description: \"Support categories with primary colors and no rounding\",\n type: \"accordion\",\n props: {\n restrictOneOpen: false,\n colorPreset: {\n color: \"primary-300\",\n },\n rounding: \"rounded-none\",\n gap: \"0px\",\n fontSize: \"text-base\",\n items: [\n {\n title: \"Account & Billing\",\n content:\n \"Get help with account settings, password reset, billing questions, subscription management, and payment issues. Average response time: 2 hours during business hours.\",\n },\n {\n title: \"Technical Support\",\n content:\n \"Troubleshoot technical issues, API problems, integration questions, and performance concerns. Includes access to our knowledge base and video tutorials.\",\n },\n {\n title: \"Sales & Partnerships\",\n content:\n \"Inquiries about enterprise solutions, custom pricing, partnership opportunities, and bulk discounts. Schedule a call with our sales team for personalized assistance.\",\n },\n {\n title: \"Feature Requests\",\n content:\n \"Submit ideas for new features, improvements, and integrations. Our product team reviews all suggestions and provides updates on development roadmap.\",\n },\n ],\n },\n },\n {\n description: \"Company policies with neutral colors and small font size\",\n type: \"accordion\",\n props: {\n restrictOneOpen: true,\n colorPreset: {\n color: \"neutral-100\",\n },\n rounding: \"rounded-md\",\n gap: \"0.25rem\",\n fontSize: \"text-sm\",\n items: [\n {\n title: \"Remote Work Policy\",\n content:\n \"All employees have the flexibility to work remotely full-time or adopt a hybrid schedule. Required equipment is provided, and employees must maintain reliable internet connection and dedicated workspace.\",\n },\n {\n title: \"Professional Development\",\n content:\n \"Annual budget of $2,000 per employee for conferences, courses, certifications, and training materials. Time off is provided for approved learning activities and skill development.\",\n },\n {\n title: \"Time Off & Benefits\",\n content:\n \"Unlimited PTO policy with minimum 3 weeks encouraged annually. Comprehensive health insurance, dental, vision, 401k matching, and wellness stipend included.\",\n },\n ],\n },\n },\n {\n description: \"Product comparison with secondary colors and multiple defaults open\",\n type: \"accordion\",\n props: {\n restrictOneOpen: false,\n colorPreset: {\n color: \"secondary-500\",\n },\n rounding: \"rounded-lg\",\n gap: \"0.5rem\",\n fontSize: \"text-base\",\n items: [\n {\n title: \"Basic Plan - $9/month\",\n content:\n \"✓ Up to 5 projects<br/>✓ 10GB storage<br/>✓ Email support<br/>✓ Basic analytics<br/>✓ Mobile app access<br/>✗ API access<br/>✗ Custom integrations\",\n defaultOpen: true,\n },\n {\n title: \"Pro Plan - $29/month\",\n content:\n \"✓ Unlimited projects<br/>✓ 100GB storage<br/>✓ Priority support<br/>✓ Advanced analytics<br/>✓ API access<br/>✓ Custom integrations<br/>✓ Team collaboration\",\n defaultOpen: true,\n },\n {\n title: \"Enterprise Plan - Custom pricing\",\n content:\n \"✓ Everything in Pro<br/>✓ Unlimited storage<br/>✓ Dedicated support<br/>✓ White-label options<br/>✓ SSO integration<br/>✓ Custom contracts<br/>✓ On-premise deployment\",\n },\n ],\n },\n },\n {\n description: \"Troubleshooting guide with accent colors and large font\",\n type: \"accordion\",\n props: {\n restrictOneOpen: false,\n colorPreset: {\n color: \"accent-600\",\n },\n rounding: \"rounded-xl\",\n gap: \"1rem\",\n fontSize: \"text-lg\",\n items: [\n {\n title: \"Connection Issues\",\n content:\n \"1. Check your internet connection<br/>2. Clear browser cache and cookies<br/>3. Disable VPN if active<br/>4. Try incognito/private browsing mode<br/>5. Contact support if issues persist\",\n },\n {\n title: \"Login Problems\",\n content:\n \"1. Verify your email address and password<br/>2. Use 'Forgot Password' to reset<br/>3. Check for CAPS LOCK<br/>4. Try a different browser<br/>5. Ensure account is not suspended\",\n },\n {\n title: \"Performance Issues\",\n content:\n \"1. Close unnecessary browser tabs<br/>2. Update your browser to latest version<br/>3. Disable browser extensions<br/>4. Check system resources (RAM/CPU)<br/>5. Try using the mobile app instead\",\n },\n ],\n },\n },\n];\n"],"mappings":";;uUAAA,OAAS,QAAAA,MAAY,oBACrB,OAAS,+BAAAC,MAAmC,kBAWrC,IAAMC,EAAWC,EAAoB,CAC1C,KAAM,YACN,KAAM,YACN,YAAa,uDACb,eAAgB;AAAA;AAAA;AAAA;AAAA;AAAA,IAKd,KAAK,EACP,KAAMC,EAEN,aAAc,CAAE,QAAS,QAAS,OAAQ,MAAO,EAEjD,MAAOC,EAAY,CACjB,MAAOC,EAAK,MACVA,EAAK,OAAO,CACV,MAAOC,EAAe,CACpB,MAAO,QACP,QAAS,WACT,cAAe,GACf,eAAgB,EAClB,CAAC,EACD,QAASA,EAAe,CAAE,MAAO,UAAW,QAAS,8BAA+B,CAAC,EACrF,YAAaD,EAAK,SAASE,EAAQ,kBAAmB,EAAK,CAAC,CAC9D,CAAC,EACD,CACE,MAAO,kBACP,SAAU,CACR,SAAU,SACZ,CACF,CACF,EACA,SAAUF,EAAK,SAASG,EAAY,CAAE,QAAS,SAAU,CAAC,CAAC,EAC3D,gBAAiBD,EAAQ,4BAA6B,GAAO,CAC3D,YACE,2FACJ,CAAC,EACD,IAAKF,EAAK,SACRI,EAAa,CACX,MAAO,MACP,YAAa,uCACb,QAAS,MACT,aAAc,YAChB,CAAC,CACH,EACA,SAAUJ,EAAK,SACbK,EACE,CACE,eACA,eACA,aACA,aACA,aACA,aACA,cACA,aACF,EACA,CACE,MAAO,kBACP,UAAW,CAAC,OAAQ,OAAQ,QAAS,SAAU,QAAS,cAAe,MAAO,KAAK,EACnF,iBAAkB,gBAClB,WAAY,OACZ,aAAc,SACd,aAAc,kBACd,QAAS,cACX,CACF,CACF,EACA,YAAaL,EAAK,SAChBM,EAAe,CACb,MAAO,QACP,QAAS,CAAE,MAAO,yCAA0C,CAC9D,CAAC,CACH,EACA,KAAMN,EAAK,SAASO,EAAQ,CAAC,CAC/B,CAAC,CACH,CAAC,EAIYC,EAIP,CACJ,CACE,YAAa,iDACb,KAAM,YACN,MAAO,CACL,gBAAiB,GACjB,MAAO,CACL,CACE,MAAO,sCACP,QACE,8OACF,YAAa,EACf,EACA,CACE,MAAO,mCACP,QACE,6OACJ,EACA,CACE,MAAO,mCACP,QACE,wLACJ,EACA,CACE,MAAO,sCACP,QACE,+LACJ,EACA,CACE,MAAO,wBACP,QACE,yLACJ,CACF,CACF,CACF,EACA,CACE,YAAa,kFACb,KAAM,YACN,MAAO,CACL,gBAAiB,GACjB,YAAa,CACX,MAAO,eACT,EACA,SAAU,aACV,IAAK,SACL,MAAO,CACL,CACE,MAAO,+BACP,QACE,kMACF,YAAa,EACf,EACA,CACE,MAAO,2BACP,QACE,2LACF,YAAa,EACf,EACA,CACE,MAAO,+BACP,QACE,4KACJ,EACA,CACE,MAAO,sBACP,QACE,mJACJ,CACF,CACF,CACF,EACA,CACE,YAAa,kEACb,KAAM,YACN,MAAO,CACL,gBAAiB,GACjB,YAAa,CACX,MAAO,aACT,EACA,SAAU,UACV,SAAU,aACV,IAAK,MACL,MAAO,CACL,CACE,MAAO,kBACP,QACE,qKACJ,EACA,CACE,MAAO,gBACP,QACE,mKACJ,EACA,CACE,MAAO,yBACP,QACE,iJACJ,CACF,CACF,CACF,EACA,CACE,YAAa,uEACb,KAAM,YACN,MAAO,CACL,gBAAiB,GACjB,YAAa,CACX,MAAO,YACT,EACA,SAAU,aACV,IAAK,OACL,MAAO,CACL,CACE,MAAO,wBACP,QACE,6JACF,YAAa,EACf,EACA,CACE,MAAO,eACP,QACE,8IACJ,EACA,CACE,MAAO,WACP,QACE,gHACJ,CACF,CACF,CACF,EACA,CACE,YAAa,wDACb,KAAM,YACN,MAAO,CACL,gBAAiB,GACjB,YAAa,CACX,MAAO,aACT,EACA,SAAU,aACV,IAAK,MACL,SAAU,YACV,MAAO,CACL,CACE,MAAO,0CACP,QACE,mLACJ,EACA,CACE,MAAO,4CACP,QACE,0KACJ,EACA,CACE,MAAO,kCACP,QACE,kKACJ,EACA,CACE,MAAO,mCACP,QACE,0JACJ,CACF,CACF,CACF,EACA,CACE,YAAa,+DACb,KAAM,YACN,MAAO,CACL,gBAAiB,GACjB,YAAa,CACX,MAAO,aACT,EACA,SAAU,aACV,IAAK,SACL,SAAU,UACV,MAAO,CACL,CACE,MAAO,mBACP,QACE,yMACJ,EACA,CACE,MAAO,iBACP,QACE,gMACJ,EACA,CACE,MAAO,gBACP,QACE,8MACJ,CACF,CACF,CACF,EACA,CACE,YAAa,wDACb,KAAM,YACN,MAAO,CACL,gBAAiB,GACjB,YAAa,CACX,MAAO,eACT,EACA,SAAU,cACV,IAAK,UACL,MAAO,CACL,CACE,MAAO,qCACP,QACE,oNACF,YAAa,EACf,EACA,CACE,MAAO,wCACP,QACE,wLACJ,EACA,CACE,MAAO,+BACP,QACE,8JACJ,CACF,CACF,CACF,EACA,CACE,YAAa,8DACb,KAAM,YACN,MAAO,CACL,gBAAiB,GACjB,YAAa,CACX,MAAO,YACT,EACA,SAAU,cACV,IAAK,UACL,SAAU,UACV,MAAO,CACL,CACE,MAAO,6BACP,QACE,mMACJ,EACA,CACE,MAAO,iCACP,QACE,yMACJ,EACA,CACE,MAAO,8BACP,QACE,2MACJ,CACF,CACF,CACF,EACA,CACE,YAAa,yDACb,KAAM,YACN,MAAO,CACL,gBAAiB,GACjB,YAAa,CACX,MAAO,aACT,EACA,SAAU,eACV,IAAK,MACL,SAAU,YACV,MAAO,CACL,CACE,MAAO,oBACP,QACE,uKACJ,EACA,CACE,MAAO,oBACP,QACE,0JACJ,EACA,CACE,MAAO,uBACP,QACE,uKACJ,EACA,CACE,MAAO,mBACP,QACE,sJACJ,CACF,CACF,CACF,EACA,CACE,YAAa,2DACb,KAAM,YACN,MAAO,CACL,gBAAiB,GACjB,YAAa,CACX,MAAO,aACT,EACA,SAAU,aACV,IAAK,UACL,SAAU,UACV,MAAO,CACL,CACE,MAAO,qBACP,QACE,6MACJ,EACA,CACE,MAAO,2BACP,QACE,qLACJ,EACA,CACE,MAAO,sBACP,QACE,8JACJ,CACF,CACF,CACF,EACA,CACE,YAAa,sEACb,KAAM,YACN,MAAO,CACL,gBAAiB,GACjB,YAAa,CACX,MAAO,eACT,EACA,SAAU,aACV,IAAK,SACL,SAAU,YACV,MAAO,CACL,CACE,MAAO,wBACP,QACE,wLACF,YAAa,EACf,EACA,CACE,MAAO,uBACP,QACE,kMACF,YAAa,EACf,EACA,CACE,MAAO,mCACP,QACE,2MACJ,CACF,CACF,CACF,EACA,CACE,YAAa,0DACb,KAAM,YACN,MAAO,CACL,gBAAiB,GACjB,YAAa,CACX,MAAO,YACT,EACA,SAAU,aACV,IAAK,OACL,SAAU,UACV,MAAO,CACL,CACE,MAAO,oBACP,QACE,2LACJ,EACA,CACE,MAAO,iBACP,QACE,kLACJ,EACA,CACE,MAAO,qBACP,QACE,kMACJ,CACF,CACF,CACF,CACF","names":["Type","TfiLayoutAccordionSeparated","manifest","defineBrickManifest","TfiLayoutAccordionSeparated","defineProps","Type","textContentRef","boolean","fontSizeRef","cssLengthRef","StringEnum","colorPresetRef","loopRef","examples"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{c as p}from"./chunk-
|
|
3
|
+
import{c as p}from"./chunk-3YVJ2ELD.js";import{a as r}from"./chunk-RJYZ5FAR.js";import{a as e,f as a}from"./chunk-A3GF4PYW.js";import{b as n}from"./chunk-5YRC3IT3.js";import{b as c}from"./chunk-GACHLACT.js";import{b as o,d as t}from"./chunk-ZTZJHY4E.js";import{c as s}from"./chunk-CZRCW5EN.js";import{c as l}from"./chunk-OHNYCXPX.js";import{Type as i}from"@sinclair/typebox";import{TiSocialFlickr as m}from"react-icons/ti";var v=r({type:"social-links",name:"Social links",description:"A list of social media links",icon:m,defaultWidth:{mobile:"100%"},props:p({colorPreset:i.Optional(s({title:"Color"})),links:i.Array(i.Object({icon:i.Optional(a({"ui:default-icon-collection":"cib"})),label:i.Optional(e("Label")),href:e("Link")}),{title:"Social Links",description:"List of social media links",default:[{href:"https://facebook.com/company",label:"Facebook",icon:"mdi:facebook"},{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://instagram.com/company",label:"Instagram",icon:"mdi:instagram"}],"ui:widget":"array","ui:displayField":"label","ui:options":{orderable:!0,removable:!0,addable:!0},metadata:{category:"content"}}),direction:i.Optional(c({default:"flex-row"})),fontSize:i.Optional(n()),padding:i.Optional(l({default:"2rem",description:"Padding.","ai:instructions":"Use only a single value like '1rem' or '10px'",title:"Padding","ui:responsive":!0,"ui:placeholder":"Not specified","ui:styleId":"styles:padding"})),rounding:i.Optional(t({default:"rounded-md"})),border:i.Optional(o()),iconOnly:i.Optional(i.Boolean({title:"Only icons",description:"If set, the brick will only display the icons without labels."}))})}),T=[{description:"Social icons displayed horizontally, without labels",type:"social-links",props:{iconOnly:!0,links:[{href:"https://facebook.com/company",label:"Facebook",icon:"mdi:facebook"},{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://instagram.com/company",label:"Instagram",icon:"mdi:instagram"}]}},{description:"Social icons displayed vertically, without labels",type:"social-links",props:{iconOnly:!0,direction:"flex-col",links:[{href:"https://facebook.com/company",label:"Facebook",icon:"mdi:facebook"},{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://instagram.com/company",label:"Instagram",icon:"mdi:instagram"}]}},{description:"Social icons displayed horizontally, with labels",type:"social-links",props:{iconOnly:!1,links:[{href:"https://facebook.com/company",label:"Facebook",icon:"mdi:facebook"},{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://instagram.com/company",label:"Instagram",icon:"mdi:instagram"},{href:"https://linkedin.com/company/company",label:"LinkedIn",icon:"mdi:linkedin"}]}},{description:"Social icons displayed vertically, with labels",type:"social-links",props:{iconOnly:!1,direction:"flex-col",links:[{href:"https://facebook.com/company",label:"Facebook",icon:"mdi:facebook"},{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://instagram.com/company",label:"Instagram",icon:"mdi:instagram"},{href:"https://linkedin.com/company/company",label:"LinkedIn",icon:"mdi:linkedin"}]}},{description:"Professional social links with labels",type:"social-links",props:{iconOnly:!1,links:[{href:"https://linkedin.com/in/johndoe",label:"Connect on LinkedIn",icon:"mdi:linkedin"},{href:"https://github.com/johndoe",label:"View GitHub Profile",icon:"mdi:github"},{href:"https://twitter.com/johndoe",label:"Follow on Twitter",icon:"mdi:twitter"},{href:"mailto:john@example.com",label:"Send Email",icon:"mdi:email"}]}},{description:"Creative portfolio social links (icon-only inline)",type:"social-links",props:{iconOnly:!0,links:[{href:"https://dribbble.com/designer",label:"Dribbble",icon:"mdi:dribbble"},{href:"https://behance.net/designer",label:"Behance",icon:"mdi:behance"},{href:"https://instagram.com/designer",label:"Instagram",icon:"mdi:instagram"},{href:"https://pinterest.com/designer",label:"Pinterest",icon:"mdi:pinterest"},{href:"https://youtube.com/designer",label:"YouTube",icon:"mdi:youtube"}]}},{description:"Developer/tech social links with labels",type:"social-links",props:{iconOnly:!1,direction:"flex-col",links:[{href:"https://github.com/developer",label:"GitHub",icon:"mdi:github"},{href:"https://stackoverflow.com/users/developer",label:"Stack Overflow",icon:"mdi:stack-overflow"},{href:"https://dev.to/developer",label:"Dev.to",icon:"mdi:dev-to"},{href:"https://codepen.io/developer",label:"CodePen",icon:"mdi:codepen"}]}},{description:"Music artist social platforms (block layout)",type:"social-links",props:{iconOnly:!0,direction:"flex-col",links:[{href:"https://spotify.com/artist/musician",label:"Listen on Spotify",icon:"mdi:spotify"},{href:"https://music.apple.com/artist/musician",label:"Apple Music",icon:"mdi:apple"},{href:"https://soundcloud.com/musician",label:"SoundCloud",icon:"mdi:soundcloud"},{href:"https://youtube.com/musician",label:"YouTube Channel",icon:"mdi:youtube"},{href:"https://bandcamp.com/musician",label:"Bandcamp",icon:"mdi:bandcamp"}]}},{description:"Business contact icons only",type:"social-links",props:{iconOnly:!0,links:[{href:"tel:+1234567890",label:"Phone",icon:"mdi:phone"},{href:"mailto:contact@business.com",label:"Email",icon:"mdi:email"},{href:"https://maps.google.com/business",label:"Location",icon:"mdi:map-marker"},{href:"https://business.com",label:"Website",icon:"mdi:web"}]}},{description:"Gaming content creator links (inline with labels)",type:"social-links",props:{iconOnly:!1,links:[{href:"https://twitch.tv/gamer",label:"Twitch",icon:"mdi:twitch"},{href:"https://youtube.com/gamer",label:"YouTube",icon:"mdi:youtube"},{href:"https://discord.gg/gamer",label:"Discord",icon:"mdi:discord"},{href:"https://tiktok.com/@gamer",label:"TikTok",icon:"mdi:tiktok"}]}},{description:"Restaurant social presence (block layout)",type:"social-links",props:{iconOnly:!1,direction:"flex-col",links:[{href:"https://facebook.com/restaurant",label:"Follow us on Facebook",icon:"mdi:facebook"},{href:"https://instagram.com/restaurant",label:"See photos on Instagram",icon:"mdi:instagram"},{href:"https://yelp.com/restaurant",label:"Review us on Yelp",icon:"mdi:yelp"},{href:"https://tripadvisor.com/restaurant",label:"TripAdvisor Reviews",icon:"mdi:tripadvisor"},{href:"tel:+1234567890",label:"Call for Reservations",icon:"mdi:phone"}]}},{description:"Minimal footer social icons",type:"social-links",props:{iconOnly:!0,direction:"flex-row",links:[{href:"https://twitter.com/company",label:"Twitter",icon:"mdi:twitter"},{href:"https://linkedin.com/company/company",label:"LinkedIn",icon:"mdi:linkedin"},{href:"mailto:hello@company.com",label:"Email",icon:"mdi:email"}]}},{description:"E-commerce store social channels (inline with labels)",type:"social-links",props:{iconOnly:!1,direction:"flex-row",links:[{href:"https://facebook.com/store",label:"Facebook",icon:"mdi:facebook"},{href:"https://instagram.com/store",label:"Instagram",icon:"mdi:instagram"},{href:"https://pinterest.com/store",label:"Pinterest",icon:"mdi:pinterest"},{href:"https://youtube.com/store",label:"YouTube",icon:"mdi:youtube"},{href:"https://tiktok.com/@store",label:"TikTok",icon:"mdi:tiktok"}]}}];export{v as a,T as b};
|
|
4
|
+
//# sourceMappingURL=chunk-IKC3FK7L.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/shared/bricks/manifests/social-links.manifest.ts"],"sourcesContent":["import { Type } from \"@sinclair/typebox\";\nimport { TiSocialFlickr } from \"react-icons/ti\";\nimport { defineBrickManifest } from \"~/shared/brick-manifest\";\nimport { defineProps } from \"../props/helpers\";\nimport { iconRef, string } from \"../props/string\";\nimport type { BrickProps } from \"../props/types\";\nimport { fontSizeRef } from \"../props/text\";\nimport { directionRef } from \"../props/direction\";\nimport { colorPresetRef } from \"../props/color-preset\";\nimport { borderRef, roundingRef } from \"../props/border\";\nimport { cssLengthRef } from \"../props/css-length\";\n\nexport const manifest = defineBrickManifest({\n type: \"social-links\",\n name: \"Social links\",\n description: \"A list of social media links\",\n icon: TiSocialFlickr,\n defaultWidth: {\n mobile: \"100%\",\n },\n props: defineProps({\n colorPreset: Type.Optional(\n colorPresetRef({\n title: \"Color\",\n }),\n ),\n links: Type.Array(\n Type.Object({\n icon: Type.Optional(\n iconRef({\n \"ui:default-icon-collection\": \"cib\",\n }),\n ),\n label: Type.Optional(string(\"Label\")),\n href: string(\"Link\"),\n }),\n {\n title: \"Social Links\",\n description: \"List of social media links\",\n default: [\n {\n href: \"https://facebook.com/company\",\n label: \"Facebook\",\n icon: \"mdi:facebook\",\n },\n {\n href: \"https://twitter.com/company\",\n label: \"Twitter\",\n icon: \"mdi:twitter\",\n },\n {\n href: \"https://instagram.com/company\",\n label: \"Instagram\",\n icon: \"mdi:instagram\",\n },\n ],\n \"ui:widget\": \"array\",\n \"ui:displayField\": \"label\",\n \"ui:options\": {\n orderable: true, // Enable drag & drop reordering\n removable: true, // Enable delete button\n addable: true, // Enable add button\n },\n metadata: {\n category: \"content\",\n },\n },\n ),\n direction: Type.Optional(\n directionRef({\n default: \"flex-row\",\n }),\n ),\n fontSize: Type.Optional(fontSizeRef()),\n padding: Type.Optional(\n cssLengthRef({\n default: \"2rem\",\n description: \"Padding.\",\n \"ai:instructions\": \"Use only a single value like '1rem' or '10px'\",\n title: \"Padding\",\n \"ui:responsive\": true,\n \"ui:placeholder\": \"Not specified\",\n \"ui:styleId\": \"styles:padding\",\n }),\n ),\n rounding: Type.Optional(\n roundingRef({\n default: \"rounded-md\",\n }),\n ),\n border: Type.Optional(borderRef()),\n iconOnly: Type.Optional(\n Type.Boolean({\n title: \"Only icons\",\n description: \"If set, the brick will only display the icons without labels.\",\n }),\n ),\n }),\n});\n\nexport type Manifest = typeof manifest;\n\nexport const examples: {\n description: string;\n type: string;\n props: BrickProps<Manifest>[\"brick\"][\"props\"];\n}[] = [\n {\n description: \"Social icons displayed horizontally, without labels\",\n type: \"social-links\",\n props: {\n iconOnly: true,\n links: [\n {\n href: \"https://facebook.com/company\",\n label: \"Facebook\",\n icon: \"mdi:facebook\",\n },\n {\n href: \"https://twitter.com/company\",\n label: \"Twitter\",\n icon: \"mdi:twitter\",\n },\n {\n href: \"https://instagram.com/company\",\n label: \"Instagram\",\n icon: \"mdi:instagram\",\n },\n ],\n },\n },\n {\n description: \"Social icons displayed vertically, without labels\",\n type: \"social-links\",\n props: {\n iconOnly: true,\n direction: \"flex-col\",\n links: [\n {\n href: \"https://facebook.com/company\",\n label: \"Facebook\",\n icon: \"mdi:facebook\",\n },\n {\n href: \"https://twitter.com/company\",\n label: \"Twitter\",\n icon: \"mdi:twitter\",\n },\n {\n href: \"https://instagram.com/company\",\n label: \"Instagram\",\n icon: \"mdi:instagram\",\n },\n ],\n },\n },\n {\n description: \"Social icons displayed horizontally, with labels\",\n type: \"social-links\",\n props: {\n iconOnly: false,\n links: [\n {\n href: \"https://facebook.com/company\",\n label: \"Facebook\",\n icon: \"mdi:facebook\",\n },\n {\n href: \"https://twitter.com/company\",\n label: \"Twitter\",\n icon: \"mdi:twitter\",\n },\n {\n href: \"https://instagram.com/company\",\n label: \"Instagram\",\n icon: \"mdi:instagram\",\n },\n {\n href: \"https://linkedin.com/company/company\",\n label: \"LinkedIn\",\n icon: \"mdi:linkedin\",\n },\n ],\n },\n },\n {\n description: \"Social icons displayed vertically, with labels\",\n type: \"social-links\",\n props: {\n iconOnly: false,\n direction: \"flex-col\",\n links: [\n {\n href: \"https://facebook.com/company\",\n label: \"Facebook\",\n icon: \"mdi:facebook\",\n },\n {\n href: \"https://twitter.com/company\",\n label: \"Twitter\",\n icon: \"mdi:twitter\",\n },\n {\n href: \"https://instagram.com/company\",\n label: \"Instagram\",\n icon: \"mdi:instagram\",\n },\n {\n href: \"https://linkedin.com/company/company\",\n label: \"LinkedIn\",\n icon: \"mdi:linkedin\",\n },\n ],\n },\n },\n {\n description: \"Professional social links with labels\",\n type: \"social-links\",\n props: {\n iconOnly: false,\n links: [\n {\n href: \"https://linkedin.com/in/johndoe\",\n label: \"Connect on LinkedIn\",\n icon: \"mdi:linkedin\",\n },\n {\n href: \"https://github.com/johndoe\",\n label: \"View GitHub Profile\",\n icon: \"mdi:github\",\n },\n {\n href: \"https://twitter.com/johndoe\",\n label: \"Follow on Twitter\",\n icon: \"mdi:twitter\",\n },\n {\n href: \"mailto:john@example.com\",\n label: \"Send Email\",\n icon: \"mdi:email\",\n },\n ],\n },\n },\n {\n description: \"Creative portfolio social links (icon-only inline)\",\n type: \"social-links\",\n props: {\n iconOnly: true,\n links: [\n {\n href: \"https://dribbble.com/designer\",\n label: \"Dribbble\",\n icon: \"mdi:dribbble\",\n },\n {\n href: \"https://behance.net/designer\",\n label: \"Behance\",\n icon: \"mdi:behance\",\n },\n {\n href: \"https://instagram.com/designer\",\n label: \"Instagram\",\n icon: \"mdi:instagram\",\n },\n {\n href: \"https://pinterest.com/designer\",\n label: \"Pinterest\",\n icon: \"mdi:pinterest\",\n },\n {\n href: \"https://youtube.com/designer\",\n label: \"YouTube\",\n icon: \"mdi:youtube\",\n },\n ],\n },\n },\n {\n description: \"Developer/tech social links with labels\",\n type: \"social-links\",\n props: {\n iconOnly: false,\n direction: \"flex-col\",\n links: [\n {\n href: \"https://github.com/developer\",\n label: \"GitHub\",\n icon: \"mdi:github\",\n },\n {\n href: \"https://stackoverflow.com/users/developer\",\n label: \"Stack Overflow\",\n icon: \"mdi:stack-overflow\",\n },\n {\n href: \"https://dev.to/developer\",\n label: \"Dev.to\",\n icon: \"mdi:dev-to\",\n },\n {\n href: \"https://codepen.io/developer\",\n label: \"CodePen\",\n icon: \"mdi:codepen\",\n },\n ],\n },\n },\n {\n description: \"Music artist social platforms (block layout)\",\n type: \"social-links\",\n props: {\n iconOnly: true,\n direction: \"flex-col\",\n links: [\n {\n href: \"https://spotify.com/artist/musician\",\n label: \"Listen on Spotify\",\n icon: \"mdi:spotify\",\n },\n {\n href: \"https://music.apple.com/artist/musician\",\n label: \"Apple Music\",\n icon: \"mdi:apple\",\n },\n {\n href: \"https://soundcloud.com/musician\",\n label: \"SoundCloud\",\n icon: \"mdi:soundcloud\",\n },\n {\n href: \"https://youtube.com/musician\",\n label: \"YouTube Channel\",\n icon: \"mdi:youtube\",\n },\n {\n href: \"https://bandcamp.com/musician\",\n label: \"Bandcamp\",\n icon: \"mdi:bandcamp\",\n },\n ],\n },\n },\n {\n description: \"Business contact icons only\",\n type: \"social-links\",\n props: {\n iconOnly: true,\n links: [\n {\n href: \"tel:+1234567890\",\n label: \"Phone\",\n icon: \"mdi:phone\",\n },\n {\n href: \"mailto:contact@business.com\",\n label: \"Email\",\n icon: \"mdi:email\",\n },\n {\n href: \"https://maps.google.com/business\",\n label: \"Location\",\n icon: \"mdi:map-marker\",\n },\n {\n href: \"https://business.com\",\n label: \"Website\",\n icon: \"mdi:web\",\n },\n ],\n },\n },\n {\n description: \"Gaming content creator links (inline with labels)\",\n type: \"social-links\",\n props: {\n iconOnly: false,\n links: [\n {\n href: \"https://twitch.tv/gamer\",\n label: \"Twitch\",\n icon: \"mdi:twitch\",\n },\n {\n href: \"https://youtube.com/gamer\",\n label: \"YouTube\",\n icon: \"mdi:youtube\",\n },\n {\n href: \"https://discord.gg/gamer\",\n label: \"Discord\",\n icon: \"mdi:discord\",\n },\n {\n href: \"https://tiktok.com/@gamer\",\n label: \"TikTok\",\n icon: \"mdi:tiktok\",\n },\n ],\n },\n },\n {\n description: \"Restaurant social presence (block layout)\",\n type: \"social-links\",\n props: {\n iconOnly: false,\n direction: \"flex-col\",\n links: [\n {\n href: \"https://facebook.com/restaurant\",\n label: \"Follow us on Facebook\",\n icon: \"mdi:facebook\",\n },\n {\n href: \"https://instagram.com/restaurant\",\n label: \"See photos on Instagram\",\n icon: \"mdi:instagram\",\n },\n {\n href: \"https://yelp.com/restaurant\",\n label: \"Review us on Yelp\",\n icon: \"mdi:yelp\",\n },\n {\n href: \"https://tripadvisor.com/restaurant\",\n label: \"TripAdvisor Reviews\",\n icon: \"mdi:tripadvisor\",\n },\n {\n href: \"tel:+1234567890\",\n label: \"Call for Reservations\",\n icon: \"mdi:phone\",\n },\n ],\n },\n },\n {\n description: \"Minimal footer social icons\",\n type: \"social-links\",\n props: {\n iconOnly: true,\n direction: \"flex-row\",\n links: [\n {\n href: \"https://twitter.com/company\",\n label: \"Twitter\",\n icon: \"mdi:twitter\",\n },\n {\n href: \"https://linkedin.com/company/company\",\n label: \"LinkedIn\",\n icon: \"mdi:linkedin\",\n },\n {\n href: \"mailto:hello@company.com\",\n label: \"Email\",\n icon: \"mdi:email\",\n },\n ],\n },\n },\n {\n description: \"E-commerce store social channels (inline with labels)\",\n type: \"social-links\",\n props: {\n iconOnly: false,\n direction: \"flex-row\",\n links: [\n {\n href: \"https://facebook.com/store\",\n label: \"Facebook\",\n icon: \"mdi:facebook\",\n },\n {\n href: \"https://instagram.com/store\",\n label: \"Instagram\",\n icon: \"mdi:instagram\",\n },\n {\n href: \"https://pinterest.com/store\",\n label: \"Pinterest\",\n icon: \"mdi:pinterest\",\n },\n {\n href: \"https://youtube.com/store\",\n label: \"YouTube\",\n icon: \"mdi:youtube\",\n },\n {\n href: \"https://tiktok.com/@store\",\n label: \"TikTok\",\n icon: \"mdi:tiktok\",\n },\n ],\n },\n },\n];\n"],"mappings":";;8UAAA,OAAS,QAAAA,MAAY,oBACrB,OAAS,kBAAAC,MAAsB,iBAWxB,IAAMC,EAAWC,EAAoB,CAC1C,KAAM,eACN,KAAM,eACN,YAAa,+BACb,KAAMC,EACN,aAAc,CACZ,OAAQ,MACV,EACA,MAAOC,EAAY,CACjB,YAAaC,EAAK,SAChBC,EAAe,CACb,MAAO,OACT,CAAC,CACH,EACA,MAAOD,EAAK,MACVA,EAAK,OAAO,CACV,KAAMA,EAAK,SACTE,EAAQ,CACN,6BAA8B,KAChC,CAAC,CACH,EACA,MAAOF,EAAK,SAASG,EAAO,OAAO,CAAC,EACpC,KAAMA,EAAO,MAAM,CACrB,CAAC,EACD,CACE,MAAO,eACP,YAAa,6BACb,QAAS,CACP,CACE,KAAM,+BACN,MAAO,WACP,KAAM,cACR,EACA,CACE,KAAM,8BACN,MAAO,UACP,KAAM,aACR,EACA,CACE,KAAM,gCACN,MAAO,YACP,KAAM,eACR,CACF,EACA,YAAa,QACb,kBAAmB,QACnB,aAAc,CACZ,UAAW,GACX,UAAW,GACX,QAAS,EACX,EACA,SAAU,CACR,SAAU,SACZ,CACF,CACF,EACA,UAAWH,EAAK,SACdI,EAAa,CACX,QAAS,UACX,CAAC,CACH,EACA,SAAUJ,EAAK,SAASK,EAAY,CAAC,EACrC,QAASL,EAAK,SACZM,EAAa,CACX,QAAS,OACT,YAAa,WACb,kBAAmB,gDACnB,MAAO,UACP,gBAAiB,GACjB,iBAAkB,gBAClB,aAAc,gBAChB,CAAC,CACH,EACA,SAAUN,EAAK,SACbO,EAAY,CACV,QAAS,YACX,CAAC,CACH,EACA,OAAQP,EAAK,SAASQ,EAAU,CAAC,EACjC,SAAUR,EAAK,SACbA,EAAK,QAAQ,CACX,MAAO,aACP,YAAa,+DACf,CAAC,CACH,CACF,CAAC,CACH,CAAC,EAIYS,EAIP,CACJ,CACE,YAAa,sDACb,KAAM,eACN,MAAO,CACL,SAAU,GACV,MAAO,CACL,CACE,KAAM,+BACN,MAAO,WACP,KAAM,cACR,EACA,CACE,KAAM,8BACN,MAAO,UACP,KAAM,aACR,EACA,CACE,KAAM,gCACN,MAAO,YACP,KAAM,eACR,CACF,CACF,CACF,EACA,CACE,YAAa,oDACb,KAAM,eACN,MAAO,CACL,SAAU,GACV,UAAW,WACX,MAAO,CACL,CACE,KAAM,+BACN,MAAO,WACP,KAAM,cACR,EACA,CACE,KAAM,8BACN,MAAO,UACP,KAAM,aACR,EACA,CACE,KAAM,gCACN,MAAO,YACP,KAAM,eACR,CACF,CACF,CACF,EACA,CACE,YAAa,mDACb,KAAM,eACN,MAAO,CACL,SAAU,GACV,MAAO,CACL,CACE,KAAM,+BACN,MAAO,WACP,KAAM,cACR,EACA,CACE,KAAM,8BACN,MAAO,UACP,KAAM,aACR,EACA,CACE,KAAM,gCACN,MAAO,YACP,KAAM,eACR,EACA,CACE,KAAM,uCACN,MAAO,WACP,KAAM,cACR,CACF,CACF,CACF,EACA,CACE,YAAa,iDACb,KAAM,eACN,MAAO,CACL,SAAU,GACV,UAAW,WACX,MAAO,CACL,CACE,KAAM,+BACN,MAAO,WACP,KAAM,cACR,EACA,CACE,KAAM,8BACN,MAAO,UACP,KAAM,aACR,EACA,CACE,KAAM,gCACN,MAAO,YACP,KAAM,eACR,EACA,CACE,KAAM,uCACN,MAAO,WACP,KAAM,cACR,CACF,CACF,CACF,EACA,CACE,YAAa,wCACb,KAAM,eACN,MAAO,CACL,SAAU,GACV,MAAO,CACL,CACE,KAAM,kCACN,MAAO,sBACP,KAAM,cACR,EACA,CACE,KAAM,6BACN,MAAO,sBACP,KAAM,YACR,EACA,CACE,KAAM,8BACN,MAAO,oBACP,KAAM,aACR,EACA,CACE,KAAM,0BACN,MAAO,aACP,KAAM,WACR,CACF,CACF,CACF,EACA,CACE,YAAa,qDACb,KAAM,eACN,MAAO,CACL,SAAU,GACV,MAAO,CACL,CACE,KAAM,gCACN,MAAO,WACP,KAAM,cACR,EACA,CACE,KAAM,+BACN,MAAO,UACP,KAAM,aACR,EACA,CACE,KAAM,iCACN,MAAO,YACP,KAAM,eACR,EACA,CACE,KAAM,iCACN,MAAO,YACP,KAAM,eACR,EACA,CACE,KAAM,+BACN,MAAO,UACP,KAAM,aACR,CACF,CACF,CACF,EACA,CACE,YAAa,0CACb,KAAM,eACN,MAAO,CACL,SAAU,GACV,UAAW,WACX,MAAO,CACL,CACE,KAAM,+BACN,MAAO,SACP,KAAM,YACR,EACA,CACE,KAAM,4CACN,MAAO,iBACP,KAAM,oBACR,EACA,CACE,KAAM,2BACN,MAAO,SACP,KAAM,YACR,EACA,CACE,KAAM,+BACN,MAAO,UACP,KAAM,aACR,CACF,CACF,CACF,EACA,CACE,YAAa,+CACb,KAAM,eACN,MAAO,CACL,SAAU,GACV,UAAW,WACX,MAAO,CACL,CACE,KAAM,sCACN,MAAO,oBACP,KAAM,aACR,EACA,CACE,KAAM,0CACN,MAAO,cACP,KAAM,WACR,EACA,CACE,KAAM,kCACN,MAAO,aACP,KAAM,gBACR,EACA,CACE,KAAM,+BACN,MAAO,kBACP,KAAM,aACR,EACA,CACE,KAAM,gCACN,MAAO,WACP,KAAM,cACR,CACF,CACF,CACF,EACA,CACE,YAAa,8BACb,KAAM,eACN,MAAO,CACL,SAAU,GACV,MAAO,CACL,CACE,KAAM,kBACN,MAAO,QACP,KAAM,WACR,EACA,CACE,KAAM,8BACN,MAAO,QACP,KAAM,WACR,EACA,CACE,KAAM,mCACN,MAAO,WACP,KAAM,gBACR,EACA,CACE,KAAM,uBACN,MAAO,UACP,KAAM,SACR,CACF,CACF,CACF,EACA,CACE,YAAa,oDACb,KAAM,eACN,MAAO,CACL,SAAU,GACV,MAAO,CACL,CACE,KAAM,0BACN,MAAO,SACP,KAAM,YACR,EACA,CACE,KAAM,4BACN,MAAO,UACP,KAAM,aACR,EACA,CACE,KAAM,2BACN,MAAO,UACP,KAAM,aACR,EACA,CACE,KAAM,4BACN,MAAO,SACP,KAAM,YACR,CACF,CACF,CACF,EACA,CACE,YAAa,4CACb,KAAM,eACN,MAAO,CACL,SAAU,GACV,UAAW,WACX,MAAO,CACL,CACE,KAAM,kCACN,MAAO,wBACP,KAAM,cACR,EACA,CACE,KAAM,mCACN,MAAO,0BACP,KAAM,eACR,EACA,CACE,KAAM,8BACN,MAAO,oBACP,KAAM,UACR,EACA,CACE,KAAM,qCACN,MAAO,sBACP,KAAM,iBACR,EACA,CACE,KAAM,kBACN,MAAO,wBACP,KAAM,WACR,CACF,CACF,CACF,EACA,CACE,YAAa,8BACb,KAAM,eACN,MAAO,CACL,SAAU,GACV,UAAW,WACX,MAAO,CACL,CACE,KAAM,8BACN,MAAO,UACP,KAAM,aACR,EACA,CACE,KAAM,uCACN,MAAO,WACP,KAAM,cACR,EACA,CACE,KAAM,2BACN,MAAO,QACP,KAAM,WACR,CACF,CACF,CACF,EACA,CACE,YAAa,wDACb,KAAM,eACN,MAAO,CACL,SAAU,GACV,UAAW,WACX,MAAO,CACL,CACE,KAAM,6BACN,MAAO,WACP,KAAM,cACR,EACA,CACE,KAAM,8BACN,MAAO,YACP,KAAM,eACR,EACA,CACE,KAAM,8BACN,MAAO,YACP,KAAM,eACR,EACA,CACE,KAAM,4BACN,MAAO,UACP,KAAM,aACR,EACA,CACE,KAAM,4BACN,MAAO,SACP,KAAM,YACR,CACF,CACF,CACF,CACF","names":["Type","TiSocialFlickr","manifest","defineBrickManifest","TiSocialFlickr","defineProps","Type","colorPresetRef","iconRef","string","directionRef","fontSizeRef","cssLengthRef","roundingRef","borderRef","examples"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{c as a}from"./chunk-
|
|
3
|
+
import{c as a}from"./chunk-3YVJ2ELD.js";import{a as d}from"./chunk-RJYZ5FAR.js";import{a as n,d as i}from"./chunk-A3GF4PYW.js";import{b as r}from"./chunk-5YRC3IT3.js";import{b as e,d as o}from"./chunk-ZTZJHY4E.js";import{c as l}from"./chunk-CZRCW5EN.js";import{Type as t}from"@sinclair/typebox";import{RxButton as p}from"react-icons/rx";var h=d({type:"button",name:"Button",category:"basic",description:"A button",aiInstructions:"A clickable button that can link to a URL or a page within the site. It can be styled with different colors, font sizes, and border radii. Don't use it in forms since forms have their own submit button.",resizable:"horizontal",icon:p,minWidth:{desktop:120,mobile:120},defaultWidth:{mobile:"100%"},props:a({colorPreset:t.Optional(l({default:{color:"primary-500"},title:"Color","ui:default-gradient-direction":"bg-gradient-to-b"})),label:n("Label",{default:"My button",metadata:{category:"content"}}),fontSize:t.Optional(r({title:"Font size",description:"The font size of the button text.",default:"text-base","ui:responsive":"desktop","ui:no-extra-large-sizes":!0})),rounding:t.Optional(o({default:"rounded-md"})),border:t.Optional(e({default:{width:"border-0"},"ui:responsive":"desktop"})),link:i({title:"Link","ui:placeholder":"https://example.com",metadata:{category:"content"}})},{noGrow:!0})}),x=[{description:"Primary button, full width, linking to an external URL",type:"button",props:{label:"Click me",link:"https://example.com",colorPreset:{color:"primary-500"}}},{description:"Secondary button, block width, linking to a page id",type:"button",props:{label:"Go to page",link:"page-id-123",colorPreset:{color:"secondary-500"}}},{description:"Neutral colored button with large text and rounded corners and external link",type:"button",props:{label:"Submit",fontSize:"text-lg",rounding:"rounded-full",link:"https://example.com",colorPreset:{color:"neutral-500"}}},{description:"Dynamic label from a page query alias named 'employee'",type:"button",props:{label:"Go to profile of {{employee.name}}",link:"/employees/{{employee.$slug}}",fontSize:"text-lg",rounding:"rounded-full",colorPreset:{color:"neutral-500"}}},{description:"Accent colored call-to-action button with medium text and subtle border",type:"button",props:{label:"Get Started",link:"/signup",fontSize:"text-base",rounding:"rounded-lg",colorPreset:{color:"accent-600"},border:{width:"border",color:"border-accent-700"}}},{description:"Small text button with sharp corners for minimal design",type:"button",props:{label:"Learn More",link:"/about",fontSize:"text-sm",rounding:"rounded-none",colorPreset:{color:"primary-400"}}},{description:"Large download button with thick border and rounded corners",type:"button",props:{label:"Download Now",link:"https://download.example.com/file.zip",fontSize:"text-xl",rounding:"rounded-xl",colorPreset:{color:"secondary-600"},border:{width:"border-2",color:"border-secondary-800"}}},{description:"Contact button with neutral colors and medium border radius",type:"button",props:{label:"Contact Us",link:"/contact",fontSize:"text-base",rounding:"rounded-md",colorPreset:{color:"neutral-600"},border:{width:"border",color:"border-neutral-400"}}},{description:"Newsletter signup button with gradient background and full rounding",type:"button",props:{label:"Subscribe to Newsletter",link:"/newsletter",fontSize:"text-lg",rounding:"rounded-full",colorPreset:{color:"primary-500",gradientDirection:"bg-gradient-to-r"}}},{description:"Shop now button with accent colors and extra large text",type:"button",props:{label:"Shop Now",link:"/shop",fontSize:"text-xl",rounding:"rounded-lg",colorPreset:{color:"accent-500"}}},{description:"Dynamic product button using product query data",type:"button",props:{label:"Buy {{product.name}} - ${{product.price}}",link:"/products/{{product.id}}/purchase",fontSize:"text-base",rounding:"rounded-md",colorPreset:{color:"primary-600"},border:{width:"border",color:"border-primary-800"}}},{description:"Event registration button with secondary gradient and medium text",type:"button",props:{label:"Register for Event",link:"/events/register",fontSize:"text-base",rounding:"rounded-lg",colorPreset:{color:"secondary-500",gradientDirection:"bg-gradient-to-br"},border:{width:"border",color:"border-secondary-300"}}}];export{h as a,x as b};
|
|
4
|
+
//# sourceMappingURL=chunk-IKHZD2JH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/shared/bricks/manifests/button.manifest.ts"],"sourcesContent":["import { Type } from \"@sinclair/typebox\";\nimport { RxButton } from \"react-icons/rx\";\nimport { defineBrickManifest } from \"~/shared/brick-manifest\";\nimport { defineProps } from \"../props/helpers\";\nimport { string, urlOrPageIdRef } from \"../props/string\";\nimport type { BrickProps } from \"../props/types\";\nimport { borderRef, roundingRef } from \"../props/border\";\nimport { fontSizeRef } from \"../props/text\";\nimport { colorPresetRef } from \"../props/color-preset\";\n\nexport const manifest = defineBrickManifest({\n type: \"button\",\n name: \"Button\",\n category: \"basic\",\n description: \"A button\",\n aiInstructions:\n \"A clickable button that can link to a URL or a page within the site. It can be styled with different colors, font sizes, and border radii. Don't use it in forms since forms have their own submit button.\",\n resizable: \"horizontal\",\n icon: RxButton,\n minWidth: {\n desktop: 120,\n mobile: 120,\n },\n defaultWidth: {\n mobile: \"100%\",\n },\n props: defineProps(\n {\n colorPreset: Type.Optional(\n colorPresetRef({\n default: { color: \"primary-500\" },\n title: \"Color\",\n \"ui:default-gradient-direction\": \"bg-gradient-to-b\",\n }),\n ),\n label: string(\"Label\", { default: \"My button\", metadata: { category: \"content\" } }),\n fontSize: Type.Optional(\n fontSizeRef({\n title: \"Font size\",\n description: \"The font size of the button text.\",\n default: \"text-base\",\n \"ui:responsive\": \"desktop\",\n \"ui:no-extra-large-sizes\": true,\n }),\n ),\n rounding: Type.Optional(\n roundingRef({\n default: \"rounded-md\",\n }),\n ),\n border: Type.Optional(borderRef({ default: { width: \"border-0\" }, \"ui:responsive\": \"desktop\" })),\n link: urlOrPageIdRef({\n title: \"Link\",\n \"ui:placeholder\": \"https://example.com\",\n metadata: { category: \"content\" },\n }),\n },\n { noGrow: true },\n ),\n});\n\nexport type Manifest = typeof manifest;\n\nexport const examples: {\n description: string;\n type: string;\n props: BrickProps<Manifest>[\"brick\"][\"props\"];\n}[] = [\n {\n description: \"Primary button, full width, linking to an external URL\",\n type: \"button\",\n props: {\n label: \"Click me\",\n link: \"https://example.com\",\n colorPreset: { color: \"primary-500\" },\n },\n },\n {\n description: \"Secondary button, block width, linking to a page id\",\n type: \"button\",\n props: {\n label: \"Go to page\",\n link: \"page-id-123\",\n colorPreset: { color: \"secondary-500\" },\n },\n },\n {\n description: \"Neutral colored button with large text and rounded corners and external link\",\n type: \"button\",\n props: {\n label: \"Submit\",\n fontSize: \"text-lg\",\n rounding: \"rounded-full\",\n link: \"https://example.com\",\n colorPreset: { color: \"neutral-500\" },\n },\n },\n {\n description: \"Dynamic label from a page query alias named 'employee'\",\n type: \"button\",\n props: {\n label: \"Go to profile of {{employee.name}}\",\n link: \"/employees/{{employee.$slug}}\",\n fontSize: \"text-lg\",\n rounding: \"rounded-full\",\n colorPreset: { color: \"neutral-500\" },\n },\n },\n {\n description: \"Accent colored call-to-action button with medium text and subtle border\",\n type: \"button\",\n props: {\n label: \"Get Started\",\n link: \"/signup\",\n fontSize: \"text-base\",\n rounding: \"rounded-lg\",\n colorPreset: { color: \"accent-600\" },\n border: { width: \"border\", color: \"border-accent-700\" },\n },\n },\n {\n description: \"Small text button with sharp corners for minimal design\",\n type: \"button\",\n props: {\n label: \"Learn More\",\n link: \"/about\",\n fontSize: \"text-sm\",\n rounding: \"rounded-none\",\n colorPreset: { color: \"primary-400\" },\n },\n },\n {\n description: \"Large download button with thick border and rounded corners\",\n type: \"button\",\n props: {\n label: \"Download Now\",\n link: \"https://download.example.com/file.zip\",\n fontSize: \"text-xl\",\n rounding: \"rounded-xl\",\n colorPreset: { color: \"secondary-600\" },\n border: { width: \"border-2\", color: \"border-secondary-800\" },\n },\n },\n {\n description: \"Contact button with neutral colors and medium border radius\",\n type: \"button\",\n props: {\n label: \"Contact Us\",\n link: \"/contact\",\n fontSize: \"text-base\",\n rounding: \"rounded-md\",\n colorPreset: { color: \"neutral-600\" },\n border: { width: \"border\", color: \"border-neutral-400\" },\n },\n },\n {\n description: \"Newsletter signup button with gradient background and full rounding\",\n type: \"button\",\n props: {\n label: \"Subscribe to Newsletter\",\n link: \"/newsletter\",\n fontSize: \"text-lg\",\n rounding: \"rounded-full\",\n colorPreset: {\n color: \"primary-500\",\n gradientDirection: \"bg-gradient-to-r\",\n },\n },\n },\n {\n description: \"Shop now button with accent colors and extra large text\",\n type: \"button\",\n props: {\n label: \"Shop Now\",\n link: \"/shop\",\n fontSize: \"text-xl\",\n rounding: \"rounded-lg\",\n colorPreset: { color: \"accent-500\" },\n },\n },\n {\n description: \"Dynamic product button using product query data\",\n type: \"button\",\n props: {\n label: \"Buy {{product.name}} - ${{product.price}}\",\n link: \"/products/{{product.id}}/purchase\",\n fontSize: \"text-base\",\n rounding: \"rounded-md\",\n colorPreset: { color: \"primary-600\" },\n border: { width: \"border\", color: \"border-primary-800\" },\n },\n },\n {\n description: \"Event registration button with secondary gradient and medium text\",\n type: \"button\",\n props: {\n label: \"Register for Event\",\n link: \"/events/register\",\n fontSize: \"text-base\",\n rounding: \"rounded-lg\",\n colorPreset: {\n color: \"secondary-500\",\n gradientDirection: \"bg-gradient-to-br\",\n },\n border: { width: \"border\", color: \"border-secondary-300\" },\n },\n },\n];\n"],"mappings":";;8PAAA,OAAS,QAAAA,MAAY,oBACrB,OAAS,YAAAC,MAAgB,iBASlB,IAAMC,EAAWC,EAAoB,CAC1C,KAAM,SACN,KAAM,SACN,SAAU,QACV,YAAa,WACb,eACE,6MACF,UAAW,aACX,KAAMC,EACN,SAAU,CACR,QAAS,IACT,OAAQ,GACV,EACA,aAAc,CACZ,OAAQ,MACV,EACA,MAAOC,EACL,CACE,YAAaC,EAAK,SAChBC,EAAe,CACb,QAAS,CAAE,MAAO,aAAc,EAChC,MAAO,QACP,gCAAiC,kBACnC,CAAC,CACH,EACA,MAAOC,EAAO,QAAS,CAAE,QAAS,YAAa,SAAU,CAAE,SAAU,SAAU,CAAE,CAAC,EAClF,SAAUF,EAAK,SACbG,EAAY,CACV,MAAO,YACP,YAAa,oCACb,QAAS,YACT,gBAAiB,UACjB,0BAA2B,EAC7B,CAAC,CACH,EACA,SAAUH,EAAK,SACbI,EAAY,CACV,QAAS,YACX,CAAC,CACH,EACA,OAAQJ,EAAK,SAASK,EAAU,CAAE,QAAS,CAAE,MAAO,UAAW,EAAG,gBAAiB,SAAU,CAAC,CAAC,EAC/F,KAAMC,EAAe,CACnB,MAAO,OACP,iBAAkB,sBAClB,SAAU,CAAE,SAAU,SAAU,CAClC,CAAC,CACH,EACA,CAAE,OAAQ,EAAK,CACjB,CACF,CAAC,EAIYC,EAIP,CACJ,CACE,YAAa,yDACb,KAAM,SACN,MAAO,CACL,MAAO,WACP,KAAM,sBACN,YAAa,CAAE,MAAO,aAAc,CACtC,CACF,EACA,CACE,YAAa,sDACb,KAAM,SACN,MAAO,CACL,MAAO,aACP,KAAM,cACN,YAAa,CAAE,MAAO,eAAgB,CACxC,CACF,EACA,CACE,YAAa,+EACb,KAAM,SACN,MAAO,CACL,MAAO,SACP,SAAU,UACV,SAAU,eACV,KAAM,sBACN,YAAa,CAAE,MAAO,aAAc,CACtC,CACF,EACA,CACE,YAAa,yDACb,KAAM,SACN,MAAO,CACL,MAAO,qCACP,KAAM,gCACN,SAAU,UACV,SAAU,eACV,YAAa,CAAE,MAAO,aAAc,CACtC,CACF,EACA,CACE,YAAa,0EACb,KAAM,SACN,MAAO,CACL,MAAO,cACP,KAAM,UACN,SAAU,YACV,SAAU,aACV,YAAa,CAAE,MAAO,YAAa,EACnC,OAAQ,CAAE,MAAO,SAAU,MAAO,mBAAoB,CACxD,CACF,EACA,CACE,YAAa,0DACb,KAAM,SACN,MAAO,CACL,MAAO,aACP,KAAM,SACN,SAAU,UACV,SAAU,eACV,YAAa,CAAE,MAAO,aAAc,CACtC,CACF,EACA,CACE,YAAa,8DACb,KAAM,SACN,MAAO,CACL,MAAO,eACP,KAAM,wCACN,SAAU,UACV,SAAU,aACV,YAAa,CAAE,MAAO,eAAgB,EACtC,OAAQ,CAAE,MAAO,WAAY,MAAO,sBAAuB,CAC7D,CACF,EACA,CACE,YAAa,8DACb,KAAM,SACN,MAAO,CACL,MAAO,aACP,KAAM,WACN,SAAU,YACV,SAAU,aACV,YAAa,CAAE,MAAO,aAAc,EACpC,OAAQ,CAAE,MAAO,SAAU,MAAO,oBAAqB,CACzD,CACF,EACA,CACE,YAAa,sEACb,KAAM,SACN,MAAO,CACL,MAAO,0BACP,KAAM,cACN,SAAU,UACV,SAAU,eACV,YAAa,CACX,MAAO,cACP,kBAAmB,kBACrB,CACF,CACF,EACA,CACE,YAAa,0DACb,KAAM,SACN,MAAO,CACL,MAAO,WACP,KAAM,QACN,SAAU,UACV,SAAU,aACV,YAAa,CAAE,MAAO,YAAa,CACrC,CACF,EACA,CACE,YAAa,kDACb,KAAM,SACN,MAAO,CACL,MAAO,4CACP,KAAM,oCACN,SAAU,YACV,SAAU,aACV,YAAa,CAAE,MAAO,aAAc,EACpC,OAAQ,CAAE,MAAO,SAAU,MAAO,oBAAqB,CACzD,CACF,EACA,CACE,YAAa,oEACb,KAAM,SACN,MAAO,CACL,MAAO,qBACP,KAAM,mBACN,SAAU,YACV,SAAU,aACV,YAAa,CACX,MAAO,gBACP,kBAAmB,mBACrB,EACA,OAAQ,CAAE,MAAO,SAAU,MAAO,sBAAuB,CAC3D,CACF,CACF","names":["Type","RxButton","manifest","defineBrickManifest","RxButton","defineProps","Type","colorPresetRef","string","fontSizeRef","roundingRef","borderRef","urlOrPageIdRef","examples"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
3
|
import{Type as t}from"@sinclair/typebox";var o=t.Object({url:t.Optional(t.String()),id:t.String({pattern:"^[A-Za-z0-9\\-]+$",description:"Notion Database ID"}),name:t.String({description:"Notion Database Name"}),properties:t.Any()});export{o as a};
|
|
4
|
+
//# sourceMappingURL=chunk-IUXCWWGO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/shared/datarecords/external/notion/types.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\n\nexport const notionOptions = Type.Object({\n url: Type.Optional(Type.String()),\n id: Type.String({\n pattern: \"^[A-Za-z0-9\\\\-]+$\",\n description: \"Notion Database ID\",\n }),\n name: Type.String({\n description: \"Notion Database Name\",\n }),\n properties: Type.Any(),\n});\n\nexport type NotionOptions = Static<typeof notionOptions>;\n\nexport type NotionPage = {\n id: string;\n name: string;\n};\n\nexport type NotionPages = NotionPage[];\nexport type listPageStatus = \"success\" | \"error\" | \"max_call_reached\" | \"max_pages_reached\";\n\nexport type ListPagesResponse = {\n status: listPageStatus;\n pages: NotionPages;\n};\n"],"mappings":";;AAAA,OAAS,QAAAA,MAAyB,oBAE3B,IAAMC,EAAgBD,EAAK,OAAO,CACvC,IAAKA,EAAK,SAASA,EAAK,OAAO,CAAC,EAChC,GAAIA,EAAK,OAAO,CACd,QAAS,oBACT,YAAa,oBACf,CAAC,EACD,KAAMA,EAAK,OAAO,CAChB,YAAa,sBACf,CAAC,EACD,WAAYA,EAAK,IAAI,CACvB,CAAC","names":["Type","notionOptions"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/shared/utils/string-enum.ts"],"sourcesContent":["import { Type, type UnsafeOptions } from \"@sinclair/typebox\";\n\nexport type StringEnumOptions = Partial<UnsafeOptions> & {\n enumNames?: string[];\n};\n\nexport const StringEnum = <T extends string[]>(values: [...T], options: StringEnumOptions = {}) =>\n Type.Unsafe<T[number]>({\n type: \"string\",\n enum: values,\n ...options,\n });\n"],"mappings":";;AAAA,OAAS,QAAAA,MAAgC,oBAMlC,IAAMC,EAAa,CAAqBC,EAAgBC,EAA6B,CAAC,IAC3FH,EAAK,OAAkB,CACrB,KAAM,SACN,KAAME,EACN,GAAGC,CACL,CAAC","names":["Type","StringEnum","values","options"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
3
|
import{Type as t}from"@sinclair/typebox";var e=t.Array(t.Object({url:t.String({format:"uri",title:"URL"}),title:t.String({title:"Title"}),description:t.Optional(t.String({title:"Description",format:"markdown"})),icon:t.Optional(t.String({title:"Icon",format:"uri"}))}),{description:"Schema representing a collection of links"});export{e as a};
|
|
4
|
+
//# sourceMappingURL=chunk-KBHDY425.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/shared/datasources/internal/links/schema.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\n\nexport const linksSchema = Type.Array(\n Type.Object({\n url: Type.String({ format: \"uri\", title: \"URL\" }),\n title: Type.String({ title: \"Title\" }),\n description: Type.Optional(Type.String({ title: \"Description\", format: \"markdown\" })),\n icon: Type.Optional(Type.String({ title: \"Icon\", format: \"uri\" })),\n }),\n {\n description: \"Schema representing a collection of links\",\n },\n);\n\nexport type LinksSchema = Static<typeof linksSchema>;\n"],"mappings":";;AAAA,OAAS,QAAAA,MAAyB,oBAE3B,IAAMC,EAAcD,EAAK,MAC9BA,EAAK,OAAO,CACV,IAAKA,EAAK,OAAO,CAAE,OAAQ,MAAO,MAAO,KAAM,CAAC,EAChD,MAAOA,EAAK,OAAO,CAAE,MAAO,OAAQ,CAAC,EACrC,YAAaA,EAAK,SAASA,EAAK,OAAO,CAAE,MAAO,cAAe,OAAQ,UAAW,CAAC,CAAC,EACpF,KAAMA,EAAK,SAASA,EAAK,OAAO,CAAE,MAAO,OAAQ,OAAQ,KAAM,CAAC,CAAC,CACnE,CAAC,EACD,CACE,YAAa,2CACf,CACF","names":["Type","linksSchema"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/shared/utils/typed-ref.ts"],"sourcesContent":["import { type SchemaOptions, TSchema, Type, TypeRegistry } from \"@sinclair/typebox\";\nimport type { alignItems, alignSelf, justifyContent } from \"../bricks/props/align\";\nimport type { background, backgroundColor } from \"../bricks/props/background\";\nimport type { border, rounding } from \"../bricks/props/border\";\nimport type { borderColor, color } from \"../bricks/props/color\";\nimport type { hidden } from \"../bricks/props/common\";\nimport type { cssLength } from \"../bricks/props/css-length\";\nimport type { shadow, textShadow } from \"../bricks/props/effects\";\nimport type { fontSize, fontSizeXL, textContent } from \"../bricks/props/text\";\nimport type { icon, urlOrPageId } from \"../bricks/props/string\";\nimport type { colorPreset } from \"../bricks/props/color-preset\";\nimport type { image } from \"../bricks/props/image\";\nimport type { direction } from \"../bricks/props/direction\";\nimport type { loop, queryUse } from \"../bricks/props/dynamic\";\nimport type { tags } from \"../bricks/props/tags\";\n\nexport interface SchemaTypeMap {\n \"styles:background\": ReturnType<typeof background>;\n \"styles:backgroundColor\": ReturnType<typeof backgroundColor>;\n \"styles:justifyContent\": ReturnType<typeof justifyContent>;\n \"styles:alignItems\": ReturnType<typeof alignItems>;\n \"styles:alignSelf\": ReturnType<typeof alignSelf>;\n \"styles:fontSize\": ReturnType<typeof fontSize>;\n \"styles:fontSizeXL\": ReturnType<typeof fontSizeXL>;\n \"styles:hidden\": ReturnType<typeof hidden>;\n \"styles:border\": ReturnType<typeof border>;\n \"styles:color\": ReturnType<typeof color>;\n \"styles:borderColor\": ReturnType<typeof borderColor>;\n \"styles:direction\": ReturnType<typeof direction>;\n \"styles:shadow\": ReturnType<typeof shadow>;\n \"styles:textShadow\": ReturnType<typeof textShadow>;\n \"styles:cssLength\": ReturnType<typeof cssLength>;\n \"styles:rounding\": ReturnType<typeof rounding>;\n \"presets:color\": ReturnType<typeof colorPreset>;\n \"assets:image\": ReturnType<typeof image>;\n \"content:text\": ReturnType<typeof textContent>;\n \"content:urlOrPageId\": ReturnType<typeof urlOrPageId>;\n \"content:loop\": ReturnType<typeof loop>;\n \"content:queryUse\": ReturnType<typeof queryUse>;\n \"assets:icon\": ReturnType<typeof icon>;\n \"content:tags\": ReturnType<typeof tags>;\n\n // Add other schema mappings here\n}\n\n// Create a typed ref helper\nexport function typedRef<K extends keyof SchemaTypeMap>(\n id: K,\n options: SchemaOptions = {},\n): SchemaTypeMap[K] {\n // Force the type to be a TypeBox type\n return Type.Ref(id, { ...options }) as unknown as SchemaTypeMap[K];\n}\n"],"mappings":";;AAAA,OAAsC,QAAAA,MAA0B,oBA8CzD,SAASC,EACdC,EACAC,EAAyB,CAAC,EACR,CAElB,OAAOH,EAAK,IAAIE,EAAI,CAAE,GAAGC,CAAQ,CAAC,CACpC","names":["Type","typedRef","id","options"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
3
|
import{Type as e}from"@sinclair/typebox";var a=e.Transform(e.String({format:"date-time"})).Decode(t=>new Date(t)).Encode(t=>t.toISOString());export{a};
|
|
4
|
+
//# sourceMappingURL=chunk-KLD3P5XH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/shared/utils/json-date.ts"],"sourcesContent":["import { Type, type TSchema, type StaticDecode, type StaticEncode } from \"@sinclair/typebox\";\n\nexport const jsonDate = Type.Transform(Type.String({ format: \"date-time\" }))\n .Decode((value) => new Date(value)) // decode: number to Date\n .Encode((value) => value.toISOString());\n\nexport type JsonDateObj = StaticDecode<typeof jsonDate>;\nexport type JsonDateStr = StaticEncode<typeof jsonDate>;\n"],"mappings":";;AAAA,OAAS,QAAAA,MAAgE,oBAElE,IAAMC,EAAWD,EAAK,UAAUA,EAAK,OAAO,CAAE,OAAQ,WAAY,CAAC,CAAC,EACxE,OAAQE,GAAU,IAAI,KAAKA,CAAK,CAAC,EACjC,OAAQA,GAAUA,EAAM,YAAY,CAAC","names":["Type","jsonDate","value"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
3
|
var s=async({options:t})=>{let a=`https://mastodon.social/api/v1/accounts/lookup?${new URLSearchParams({acct:t.username}).toString()}`,o=await fetch(a);if(!o.ok)throw new Error(`fetchMastodonAccount Error: Response status: ${o.status}`);return await o.json()},e=s;export{e as a};
|
|
4
|
+
//# sourceMappingURL=chunk-KO5FPOWZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/shared/datasources/external/mastodon/account/fetcher.ts"],"sourcesContent":["import type { MastodonAccountSchema } from \"./schema\";\nimport type { MastodonCommonOptions } from \"../options\";\nimport type { DatasourceFetcher } from \"~/shared/datasources/fetcher\";\n\nconst fetchMastodonAccount: DatasourceFetcher<MastodonAccountSchema, null, MastodonCommonOptions> = async ({\n options,\n}) => {\n const params = new URLSearchParams({\n acct: options.username,\n });\n\n const url = `https://mastodon.social/api/v1/accounts/lookup?${params.toString()}`;\n const response = await fetch(url);\n\n if (!response.ok) {\n throw new Error(`fetchMastodonAccount Error: Response status: ${response.status}`);\n }\n\n const account = (await response.json()) as MastodonAccountSchema;\n\n return account;\n};\n\nexport default fetchMastodonAccount;\n"],"mappings":";;AAIA,IAAMA,EAA8F,MAAO,CACzG,QAAAC,CACF,IAAM,CAKJ,IAAMC,EAAM,kDAJG,IAAI,gBAAgB,CACjC,KAAMD,EAAQ,QAChB,CAAC,EAEoE,SAAS,CAAC,GACzEE,EAAW,MAAM,MAAMD,CAAG,EAEhC,GAAI,CAACC,EAAS,GACZ,MAAM,IAAI,MAAM,gDAAgDA,EAAS,MAAM,EAAE,EAKnF,OAFiB,MAAMA,EAAS,KAAK,CAGvC,EAEOC,EAAQJ","names":["fetchMastodonAccount","options","url","response","fetcher_default"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
3
|
import{Type as t}from"@sinclair/typebox";function a(o,n,e={}){return t.Boolean({title:o,default:n??!1,...e})}export{a};
|
|
4
|
+
//# sourceMappingURL=chunk-KSEURRVZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/shared/bricks/props/boolean.ts"],"sourcesContent":["import { Type } from \"@sinclair/typebox\";\n\ntype BooleanOptions = Record<string, unknown>;\n\nexport function boolean(title: string, defaultValue?: boolean, options: BooleanOptions = {}) {\n return Type.Boolean({ title, default: defaultValue ?? false, ...options });\n}\n"],"mappings":";;AAAA,OAAS,QAAAA,MAAY,oBAId,SAASC,EAAQC,EAAeC,EAAwBC,EAA0B,CAAC,EAAG,CAC3F,OAAOJ,EAAK,QAAQ,CAAE,MAAAE,EAAO,QAASC,GAAgB,GAAO,GAAGC,CAAQ,CAAC,CAC3E","names":["Type","boolean","title","defaultValue","options"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
3
|
import{Type as i}from"@sinclair/typebox";function d(e=!1,t="Fixed position"){return i.Boolean({title:t,default:e,"ui:styleId":"styles:fixedPositioned"})}export{d as a};
|
|
4
|
+
//# sourceMappingURL=chunk-KYY3PHP7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/shared/bricks/props/position.ts"],"sourcesContent":["import { Type, type Static } from \"@sinclair/typebox\";\n\nexport function fixedPositioned(defaultValue = false, title = \"Fixed position\") {\n return Type.Boolean({\n title,\n default: defaultValue,\n \"ui:styleId\": \"styles:fixedPositioned\",\n });\n}\n\nexport type FixedPositionedSettings = Static<ReturnType<typeof fixedPositioned>>;\n"],"mappings":";;AAAA,OAAS,QAAAA,MAAyB,oBAE3B,SAASC,EAAgBC,EAAe,GAAOC,EAAQ,iBAAkB,CAC9E,OAAOH,EAAK,QAAQ,CAClB,MAAAG,EACA,QAASD,EACT,aAAc,wBAChB,CAAC,CACH","names":["Type","fixedPositioned","defaultValue","title"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
|
|
2
2
|
|
|
3
|
-
import{c}from"./chunk-6PGAWO4H.js";import{a as l}from"./chunk-4GIZ6WSG.js";import{m as i}from"./chunk-F4JNKU7J.js";import{b as a}from"./chunk-3FPFR5RA.js";import{a as o}from"./chunk-7UBMXMNJ.js";import{d as r}from"./chunk-DHSWVVMI.js";import{c as s}from"./chunk-Z4YKRLOX.js";import{c as t}from"./chunk-HSRXUIVM.js";import{Type as e}from"@sinclair/typebox";import{TbCarouselHorizontal as n}from"react-icons/tb";var P=l({type:"carousel",name:"Carousel",description:"An image carousel with navigation arrows and dots or numbers indicator",aiInstructions:"Use this brick to create an image carousel or slideshow. It can display multiple images that users can navigate through using arrows or dots. Each image can have an optional legend or caption. This brick is ideal for showcasing portfolios, product images, or any visual content in an engaging way.",category:"media",defaultInspectorTab:"content",consumesMultipleQueryRows:!0,minHeight:{desktop:200},minWidth:{desktop:300},icon:n,props:c({colorPreset:e.Optional(s({title:"Color"})),padding:e.Optional(t({default:"1rem",description:"Padding inside the carousel.","ai:instructions":"Use only a single value like '1rem' or '10px'",title:"Padding","ui:responsive":!0,"ui:placeholder":"Not specified","ui:styleId":"styles:padding"})),images:e.Optional(e.Array(e.Object({src:a({"ui:responsive":"desktop","ui:no-alt-text":!0,"ui:no-object-options":!0}),legend:o("Legend")}),{title:"Images",default:[],maxItems:12,metadata:{category:"content"}})),borderRadius:e.Optional(r({default:"rounded-md"})),loop:e.Optional(i())})}),b=[{description:"Basic image carousel with legends",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/800x400.png?text=Slide+1",alt:"First slide"},legend:"Beautiful landscape"},{src:{src:"https://via.placeholder.com/800x400.png?text=Slide+2",alt:"Second slide"},legend:"Amazing architecture"},{src:{src:"https://via.placeholder.com/800x400.png?text=Slide+3",alt:"Third slide"},legend:"Stunning nature"}]}},{description:"Product showcase carousel with rounded corners and padding",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/600x400.png?text=Product+1",alt:"Product 1"},legend:"Premium Headphones - $199"},{src:{src:"https://via.placeholder.com/600x400.png?text=Product+2",alt:"Product 2"},legend:"Wireless Speaker - $149"},{src:{src:"https://via.placeholder.com/600x400.png?text=Product+3",alt:"Product 3"},legend:"Smart Watch - $299"},{src:{src:"https://via.placeholder.com/600x400.png?text=Product+4",alt:"Product 4"},legend:"Laptop Stand - $79"}],borderRadius:"rounded-xl",padding:"2rem",colorPreset:{color:"gray-50"}}},{description:"Portfolio carousel with minimal styling",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/900x600.png?text=Portfolio+1",alt:"Portfolio piece 1"},legend:"Web Design Project"},{src:{src:"https://via.placeholder.com/900x600.png?text=Portfolio+2",alt:"Portfolio piece 2"},legend:"Brand Identity Design"},{src:{src:"https://via.placeholder.com/900x600.png?text=Portfolio+3",alt:"Portfolio piece 3"},legend:"Mobile App Interface"}],borderRadius:"rounded-none",padding:"0"}},{description:"Event photos carousel with primary color theme",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/800x500.png?text=Event+Photo+1",alt:"Event photo 1"},legend:"Opening Ceremony"},{src:{src:"https://via.placeholder.com/800x500.png?text=Event+Photo+2",alt:"Event photo 2"},legend:"Keynote Speaker"},{src:{src:"https://via.placeholder.com/800x500.png?text=Event+Photo+3",alt:"Event photo 3"},legend:"Networking Session"},{src:{src:"https://via.placeholder.com/800x500.png?text=Event+Photo+4",alt:"Event photo 4"},legend:"Award Ceremony"},{src:{src:"https://via.placeholder.com/800x500.png?text=Event+Photo+5",alt:"Event photo 5"},legend:"Closing Remarks"}],colorPreset:{color:"primary-100"},borderRadius:"rounded-lg",padding:"1.5rem"}},{description:"Travel destinations carousel without legends",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/700x450.png?text=Paris",alt:"Paris cityscape"},legend:""},{src:{src:"https://via.placeholder.com/700x450.png?text=Tokyo",alt:"Tokyo skyline"},legend:""},{src:{src:"https://via.placeholder.com/700x450.png?text=New+York",alt:"New York streets"},legend:""},{src:{src:"https://via.placeholder.com/700x450.png?text=London",alt:"London landmarks"},legend:""}],borderRadius:"rounded-2xl",padding:"1rem"}},{description:"Team members carousel with blue color scheme",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/400x400.png?text=Team+1",alt:"Team member 1"},legend:"John Smith - CEO"},{src:{src:"https://via.placeholder.com/400x400.png?text=Team+2",alt:"Team member 2"},legend:"Sarah Johnson - CTO"},{src:{src:"https://via.placeholder.com/400x400.png?text=Team+3",alt:"Team member 3"},legend:"Mike Davis - Design Lead"},{src:{src:"https://via.placeholder.com/400x400.png?text=Team+4",alt:"Team member 4"},legend:"Emily Chen - Marketing Director"}],colorPreset:{color:"blue-50"},borderRadius:"rounded-full",padding:"2rem"}},{description:"Recipe steps carousel with detailed descriptions",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/600x400.png?text=Step+1",alt:"Recipe step 1"},legend:"Step 1: Prepare all ingredients"},{src:{src:"https://via.placeholder.com/600x400.png?text=Step+2",alt:"Recipe step 2"},legend:"Step 2: Heat oil in a large pan"},{src:{src:"https://via.placeholder.com/600x400.png?text=Step+3",alt:"Recipe step 3"},legend:"Step 3: Add vegetables and saut\xE9"},{src:{src:"https://via.placeholder.com/600x400.png?text=Step+4",alt:"Recipe step 4"},legend:"Step 4: Season and serve hot"}],colorPreset:{color:"orange-50"},borderRadius:"rounded-md",padding:"1.5rem"}},{description:"Before and after comparison carousel",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/800x400.png?text=Before+1",alt:"Before renovation 1"},legend:"Kitchen - Before Renovation"},{src:{src:"https://via.placeholder.com/800x400.png?text=After+1",alt:"After renovation 1"},legend:"Kitchen - After Renovation"},{src:{src:"https://via.placeholder.com/800x400.png?text=Before+2",alt:"Before renovation 2"},legend:"Living Room - Before"},{src:{src:"https://via.placeholder.com/800x400.png?text=After+2",alt:"After renovation 2"},legend:"Living Room - After"}],colorPreset:{color:"green-50"},borderRadius:"rounded-lg",padding:"1rem"}},{description:"Art gallery carousel with dramatic styling",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/600x800.png?text=Artwork+1",alt:"Abstract painting 1"},legend:"Abstract Composition #1 - 2023"},{src:{src:"https://via.placeholder.com/600x800.png?text=Artwork+2",alt:"Abstract painting 2"},legend:"Urban Landscape - 2023"},{src:{src:"https://via.placeholder.com/600x800.png?text=Artwork+3",alt:"Abstract painting 3"},legend:"Color Study #7 - 2024"}],colorPreset:{color:"gray-900"},borderRadius:"rounded-sm",padding:"3rem"}},{description:"Fashion lookbook carousel with purple theme",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/500x700.png?text=Look+1",alt:"Fashion look 1"},legend:"Spring Collection - Casual Chic"},{src:{src:"https://via.placeholder.com/500x700.png?text=Look+2",alt:"Fashion look 2"},legend:"Summer Vibes - Beach Ready"},{src:{src:"https://via.placeholder.com/500x700.png?text=Look+3",alt:"Fashion look 3"},legend:"Autumn Elegance - Business"},{src:{src:"https://via.placeholder.com/500x700.png?text=Look+4",alt:"Fashion look 4"},legend:"Winter Style - Cozy Comfort"},{src:{src:"https://via.placeholder.com/500x700.png?text=Look+5",alt:"Fashion look 5"},legend:"Evening Wear - Formal Event"},{src:{src:"https://via.placeholder.com/500x700.png?text=Look+6",alt:"Fashion look 6"},legend:"Weekend Casual - Relaxed Fit"}],colorPreset:{color:"purple-100"},borderRadius:"rounded-xl",padding:"2rem"}},{description:"Car showcase carousel with compact design",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/800x450.png?text=Car+1",alt:"Sports car 1"},legend:"2024 Sports Coupe"},{src:{src:"https://via.placeholder.com/800x450.png?text=Car+2",alt:"SUV model"},legend:"Family SUV"},{src:{src:"https://via.placeholder.com/800x450.png?text=Car+3",alt:"Electric vehicle"},legend:"Electric Sedan"}],colorPreset:{color:"red-50"},borderRadius:"rounded-lg",padding:"0.5rem"}},{description:"Software features carousel with large padding",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/900x500.png?text=Feature+1",alt:"Software feature 1"},legend:"Dashboard Analytics - Real-time insights"},{src:{src:"https://via.placeholder.com/900x500.png?text=Feature+2",alt:"Software feature 2"},legend:"Team Collaboration - Work together seamlessly"},{src:{src:"https://via.placeholder.com/900x500.png?text=Feature+3",alt:"Software feature 3"},legend:"Mobile App - Access anywhere, anytime"},{src:{src:"https://via.placeholder.com/900x500.png?text=Feature+4",alt:"Software feature 4"},legend:"Security - Enterprise-grade protection"}],colorPreset:{color:"indigo-50"},borderRadius:"rounded-2xl",padding:"4rem"}},{description:"Dynamic product gallery using products query with pricing and details",type:"carousel",props:{images:[{src:{src:"{{products.image}}",alt:"{{products.name}}"},legend:"{{products.name}} - ${{products.price}}"}],colorPreset:{color:"primary-50"},borderRadius:"rounded-lg",padding:"1.5rem",loop:{over:"products"}}},{description:"Team member carousel using teamMembers query with roles and departments",type:"carousel",props:{images:[{src:{src:"{{teamMembers.photo}}",alt:"{{teamMembers.fullName}}"},legend:"{{teamMembers.fullName}} - {{teamMembers.position}}, {{teamMembers.department}}"}],colorPreset:{color:"secondary-100"},borderRadius:"rounded-xl",padding:"2rem",loop:{over:"teamMembers"}}},{description:"Portfolio showcase using portfolioProjects query with client information",type:"carousel",props:{images:[{src:{src:"{{portfolioProjects.featuredImage}}",alt:"{{portfolioProjects.projectName}}"},legend:"{{portfolioProjects.projectName}} - {{portfolioProjects.clientName}} ({{portfolioProjects.year}})"}],colorPreset:{color:"neutral-100"},borderRadius:"rounded-md",padding:"1rem",loop:{over:"portfolioProjects"}}},{description:"Event photo gallery using eventPhotos query with captions and dates",type:"carousel",props:{images:[{src:{src:"{{eventPhotos.imageUrl}}",alt:"{{eventPhotos.caption}}"},legend:"{{eventPhotos.caption}} - {{eventPhotos.eventDate}}"}],colorPreset:{color:"accent-50"},borderRadius:"rounded-lg",padding:"2rem",loop:{over:"eventPhotos"}}},{description:"Property listings carousel using realEstateProperties query with pricing",type:"carousel",props:{images:[{src:{src:"{{realEstateProperties.mainPhoto}}",alt:"{{realEstateProperties.address}}"},legend:"{{realEstateProperties.address}} - ${{realEstateProperties.price}} \u2022 {{realEstateProperties.bedrooms}}BR/{{realEstateProperties.bathrooms}}BA"}],colorPreset:{color:"primary-100"},borderRadius:"rounded-xl",padding:"1.5rem",loop:{over:"realEstateProperties"}}},{description:"Restaurant menu carousel using menuItems query with categories and prices",type:"carousel",props:{images:[{src:{src:"{{menuItems.photo}}",alt:"{{menuItems.dishName}}"},legend:"{{menuItems.dishName}} - {{menuItems.category}} \u2022 ${{menuItems.price}}"}],colorPreset:{color:"neutral-50"},borderRadius:"rounded-lg",padding:"1rem",loop:{over:"menuItems"}}},{description:"Travel destinations carousel using destinations query with country information",type:"carousel",props:{images:[{src:{src:"{{destinations.heroImage}}",alt:"{{destinations.cityName}}"},legend:"{{destinations.cityName}}, {{destinations.country}} - {{destinations.bestTimeToVisit}}"}],colorPreset:{color:"secondary-50"},borderRadius:"rounded-2xl",padding:"2.5rem",loop:{over:"destinations"}}},{description:"Art collection carousel using artworks query with artist and year information",type:"carousel",props:{images:[{src:{src:"{{artworks.imageUrl}}",alt:"{{artworks.title}}"},legend:"{{artworks.title}} by {{artworks.artist}} ({{artworks.year}}) - {{artworks.medium}}"}],colorPreset:{color:"accent-100"},borderRadius:"rounded-sm",padding:"3rem",loop:{over:"artworks"}}}];export{P as a,b};
|
|
3
|
+
import{c}from"./chunk-3YVJ2ELD.js";import{a as l}from"./chunk-RJYZ5FAR.js";import{m as i}from"./chunk-AFVJZPLS.js";import{b as a}from"./chunk-CCI4C3TM.js";import{a as o}from"./chunk-A3GF4PYW.js";import{d as r}from"./chunk-ZTZJHY4E.js";import{c as s}from"./chunk-CZRCW5EN.js";import{c as t}from"./chunk-OHNYCXPX.js";import{Type as e}from"@sinclair/typebox";import{TbCarouselHorizontal as n}from"react-icons/tb";var P=l({type:"carousel",name:"Carousel",description:"An image carousel with navigation arrows and dots or numbers indicator",aiInstructions:"Use this brick to create an image carousel or slideshow. It can display multiple images that users can navigate through using arrows or dots. Each image can have an optional legend or caption. This brick is ideal for showcasing portfolios, product images, or any visual content in an engaging way.",category:"media",defaultInspectorTab:"content",consumesMultipleQueryRows:!0,minHeight:{desktop:200},minWidth:{desktop:300},icon:n,props:c({colorPreset:e.Optional(s({title:"Color"})),padding:e.Optional(t({default:"1rem",description:"Padding inside the carousel.","ai:instructions":"Use only a single value like '1rem' or '10px'",title:"Padding","ui:responsive":!0,"ui:placeholder":"Not specified","ui:styleId":"styles:padding"})),images:e.Optional(e.Array(e.Object({src:a({"ui:responsive":"desktop","ui:no-alt-text":!0,"ui:no-object-options":!0}),legend:o("Legend")}),{title:"Images",default:[],maxItems:12,metadata:{category:"content"}})),borderRadius:e.Optional(r({default:"rounded-md"})),loop:e.Optional(i())})}),b=[{description:"Basic image carousel with legends",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/800x400.png?text=Slide+1",alt:"First slide"},legend:"Beautiful landscape"},{src:{src:"https://via.placeholder.com/800x400.png?text=Slide+2",alt:"Second slide"},legend:"Amazing architecture"},{src:{src:"https://via.placeholder.com/800x400.png?text=Slide+3",alt:"Third slide"},legend:"Stunning nature"}]}},{description:"Product showcase carousel with rounded corners and padding",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/600x400.png?text=Product+1",alt:"Product 1"},legend:"Premium Headphones - $199"},{src:{src:"https://via.placeholder.com/600x400.png?text=Product+2",alt:"Product 2"},legend:"Wireless Speaker - $149"},{src:{src:"https://via.placeholder.com/600x400.png?text=Product+3",alt:"Product 3"},legend:"Smart Watch - $299"},{src:{src:"https://via.placeholder.com/600x400.png?text=Product+4",alt:"Product 4"},legend:"Laptop Stand - $79"}],borderRadius:"rounded-xl",padding:"2rem",colorPreset:{color:"gray-50"}}},{description:"Portfolio carousel with minimal styling",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/900x600.png?text=Portfolio+1",alt:"Portfolio piece 1"},legend:"Web Design Project"},{src:{src:"https://via.placeholder.com/900x600.png?text=Portfolio+2",alt:"Portfolio piece 2"},legend:"Brand Identity Design"},{src:{src:"https://via.placeholder.com/900x600.png?text=Portfolio+3",alt:"Portfolio piece 3"},legend:"Mobile App Interface"}],borderRadius:"rounded-none",padding:"0"}},{description:"Event photos carousel with primary color theme",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/800x500.png?text=Event+Photo+1",alt:"Event photo 1"},legend:"Opening Ceremony"},{src:{src:"https://via.placeholder.com/800x500.png?text=Event+Photo+2",alt:"Event photo 2"},legend:"Keynote Speaker"},{src:{src:"https://via.placeholder.com/800x500.png?text=Event+Photo+3",alt:"Event photo 3"},legend:"Networking Session"},{src:{src:"https://via.placeholder.com/800x500.png?text=Event+Photo+4",alt:"Event photo 4"},legend:"Award Ceremony"},{src:{src:"https://via.placeholder.com/800x500.png?text=Event+Photo+5",alt:"Event photo 5"},legend:"Closing Remarks"}],colorPreset:{color:"primary-100"},borderRadius:"rounded-lg",padding:"1.5rem"}},{description:"Travel destinations carousel without legends",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/700x450.png?text=Paris",alt:"Paris cityscape"},legend:""},{src:{src:"https://via.placeholder.com/700x450.png?text=Tokyo",alt:"Tokyo skyline"},legend:""},{src:{src:"https://via.placeholder.com/700x450.png?text=New+York",alt:"New York streets"},legend:""},{src:{src:"https://via.placeholder.com/700x450.png?text=London",alt:"London landmarks"},legend:""}],borderRadius:"rounded-2xl",padding:"1rem"}},{description:"Team members carousel with blue color scheme",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/400x400.png?text=Team+1",alt:"Team member 1"},legend:"John Smith - CEO"},{src:{src:"https://via.placeholder.com/400x400.png?text=Team+2",alt:"Team member 2"},legend:"Sarah Johnson - CTO"},{src:{src:"https://via.placeholder.com/400x400.png?text=Team+3",alt:"Team member 3"},legend:"Mike Davis - Design Lead"},{src:{src:"https://via.placeholder.com/400x400.png?text=Team+4",alt:"Team member 4"},legend:"Emily Chen - Marketing Director"}],colorPreset:{color:"blue-50"},borderRadius:"rounded-full",padding:"2rem"}},{description:"Recipe steps carousel with detailed descriptions",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/600x400.png?text=Step+1",alt:"Recipe step 1"},legend:"Step 1: Prepare all ingredients"},{src:{src:"https://via.placeholder.com/600x400.png?text=Step+2",alt:"Recipe step 2"},legend:"Step 2: Heat oil in a large pan"},{src:{src:"https://via.placeholder.com/600x400.png?text=Step+3",alt:"Recipe step 3"},legend:"Step 3: Add vegetables and saut\xE9"},{src:{src:"https://via.placeholder.com/600x400.png?text=Step+4",alt:"Recipe step 4"},legend:"Step 4: Season and serve hot"}],colorPreset:{color:"orange-50"},borderRadius:"rounded-md",padding:"1.5rem"}},{description:"Before and after comparison carousel",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/800x400.png?text=Before+1",alt:"Before renovation 1"},legend:"Kitchen - Before Renovation"},{src:{src:"https://via.placeholder.com/800x400.png?text=After+1",alt:"After renovation 1"},legend:"Kitchen - After Renovation"},{src:{src:"https://via.placeholder.com/800x400.png?text=Before+2",alt:"Before renovation 2"},legend:"Living Room - Before"},{src:{src:"https://via.placeholder.com/800x400.png?text=After+2",alt:"After renovation 2"},legend:"Living Room - After"}],colorPreset:{color:"green-50"},borderRadius:"rounded-lg",padding:"1rem"}},{description:"Art gallery carousel with dramatic styling",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/600x800.png?text=Artwork+1",alt:"Abstract painting 1"},legend:"Abstract Composition #1 - 2023"},{src:{src:"https://via.placeholder.com/600x800.png?text=Artwork+2",alt:"Abstract painting 2"},legend:"Urban Landscape - 2023"},{src:{src:"https://via.placeholder.com/600x800.png?text=Artwork+3",alt:"Abstract painting 3"},legend:"Color Study #7 - 2024"}],colorPreset:{color:"gray-900"},borderRadius:"rounded-sm",padding:"3rem"}},{description:"Fashion lookbook carousel with purple theme",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/500x700.png?text=Look+1",alt:"Fashion look 1"},legend:"Spring Collection - Casual Chic"},{src:{src:"https://via.placeholder.com/500x700.png?text=Look+2",alt:"Fashion look 2"},legend:"Summer Vibes - Beach Ready"},{src:{src:"https://via.placeholder.com/500x700.png?text=Look+3",alt:"Fashion look 3"},legend:"Autumn Elegance - Business"},{src:{src:"https://via.placeholder.com/500x700.png?text=Look+4",alt:"Fashion look 4"},legend:"Winter Style - Cozy Comfort"},{src:{src:"https://via.placeholder.com/500x700.png?text=Look+5",alt:"Fashion look 5"},legend:"Evening Wear - Formal Event"},{src:{src:"https://via.placeholder.com/500x700.png?text=Look+6",alt:"Fashion look 6"},legend:"Weekend Casual - Relaxed Fit"}],colorPreset:{color:"purple-100"},borderRadius:"rounded-xl",padding:"2rem"}},{description:"Car showcase carousel with compact design",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/800x450.png?text=Car+1",alt:"Sports car 1"},legend:"2024 Sports Coupe"},{src:{src:"https://via.placeholder.com/800x450.png?text=Car+2",alt:"SUV model"},legend:"Family SUV"},{src:{src:"https://via.placeholder.com/800x450.png?text=Car+3",alt:"Electric vehicle"},legend:"Electric Sedan"}],colorPreset:{color:"red-50"},borderRadius:"rounded-lg",padding:"0.5rem"}},{description:"Software features carousel with large padding",type:"carousel",props:{images:[{src:{src:"https://via.placeholder.com/900x500.png?text=Feature+1",alt:"Software feature 1"},legend:"Dashboard Analytics - Real-time insights"},{src:{src:"https://via.placeholder.com/900x500.png?text=Feature+2",alt:"Software feature 2"},legend:"Team Collaboration - Work together seamlessly"},{src:{src:"https://via.placeholder.com/900x500.png?text=Feature+3",alt:"Software feature 3"},legend:"Mobile App - Access anywhere, anytime"},{src:{src:"https://via.placeholder.com/900x500.png?text=Feature+4",alt:"Software feature 4"},legend:"Security - Enterprise-grade protection"}],colorPreset:{color:"indigo-50"},borderRadius:"rounded-2xl",padding:"4rem"}},{description:"Dynamic product gallery using products query with pricing and details",type:"carousel",props:{images:[{src:{src:"{{products.image}}",alt:"{{products.name}}"},legend:"{{products.name}} - ${{products.price}}"}],colorPreset:{color:"primary-50"},borderRadius:"rounded-lg",padding:"1.5rem",loop:{over:"products"}}},{description:"Team member carousel using teamMembers query with roles and departments",type:"carousel",props:{images:[{src:{src:"{{teamMembers.photo}}",alt:"{{teamMembers.fullName}}"},legend:"{{teamMembers.fullName}} - {{teamMembers.position}}, {{teamMembers.department}}"}],colorPreset:{color:"secondary-100"},borderRadius:"rounded-xl",padding:"2rem",loop:{over:"teamMembers"}}},{description:"Portfolio showcase using portfolioProjects query with client information",type:"carousel",props:{images:[{src:{src:"{{portfolioProjects.featuredImage}}",alt:"{{portfolioProjects.projectName}}"},legend:"{{portfolioProjects.projectName}} - {{portfolioProjects.clientName}} ({{portfolioProjects.year}})"}],colorPreset:{color:"neutral-100"},borderRadius:"rounded-md",padding:"1rem",loop:{over:"portfolioProjects"}}},{description:"Event photo gallery using eventPhotos query with captions and dates",type:"carousel",props:{images:[{src:{src:"{{eventPhotos.imageUrl}}",alt:"{{eventPhotos.caption}}"},legend:"{{eventPhotos.caption}} - {{eventPhotos.eventDate}}"}],colorPreset:{color:"accent-50"},borderRadius:"rounded-lg",padding:"2rem",loop:{over:"eventPhotos"}}},{description:"Property listings carousel using realEstateProperties query with pricing",type:"carousel",props:{images:[{src:{src:"{{realEstateProperties.mainPhoto}}",alt:"{{realEstateProperties.address}}"},legend:"{{realEstateProperties.address}} - ${{realEstateProperties.price}} \u2022 {{realEstateProperties.bedrooms}}BR/{{realEstateProperties.bathrooms}}BA"}],colorPreset:{color:"primary-100"},borderRadius:"rounded-xl",padding:"1.5rem",loop:{over:"realEstateProperties"}}},{description:"Restaurant menu carousel using menuItems query with categories and prices",type:"carousel",props:{images:[{src:{src:"{{menuItems.photo}}",alt:"{{menuItems.dishName}}"},legend:"{{menuItems.dishName}} - {{menuItems.category}} \u2022 ${{menuItems.price}}"}],colorPreset:{color:"neutral-50"},borderRadius:"rounded-lg",padding:"1rem",loop:{over:"menuItems"}}},{description:"Travel destinations carousel using destinations query with country information",type:"carousel",props:{images:[{src:{src:"{{destinations.heroImage}}",alt:"{{destinations.cityName}}"},legend:"{{destinations.cityName}}, {{destinations.country}} - {{destinations.bestTimeToVisit}}"}],colorPreset:{color:"secondary-50"},borderRadius:"rounded-2xl",padding:"2.5rem",loop:{over:"destinations"}}},{description:"Art collection carousel using artworks query with artist and year information",type:"carousel",props:{images:[{src:{src:"{{artworks.imageUrl}}",alt:"{{artworks.title}}"},legend:"{{artworks.title}} by {{artworks.artist}} ({{artworks.year}}) - {{artworks.medium}}"}],colorPreset:{color:"accent-100"},borderRadius:"rounded-sm",padding:"3rem",loop:{over:"artworks"}}}];export{P as a,b};
|
|
4
|
+
//# sourceMappingURL=chunk-NJGXC7D6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/shared/bricks/manifests/carousel.manifest.ts"],"sourcesContent":["import { Type } from \"@sinclair/typebox\";\nimport { TbCarouselHorizontal } from \"react-icons/tb\";\nimport { defineBrickManifest } from \"~/shared/brick-manifest\";\nimport { defineProps } from \"../props/helpers\";\nimport { imageRef } from \"../props/image\";\nimport { string } from \"../props/string\";\nimport type { BrickProps } from \"../props/types\";\nimport { roundingRef } from \"../props/border\";\nimport { colorPresetRef } from \"../props/color-preset\";\nimport { loopRef } from \"../props/dynamic\";\nimport { cssLengthRef } from \"../props/css-length\";\n\nexport const manifest = defineBrickManifest({\n type: \"carousel\",\n name: \"Carousel\",\n description: \"An image carousel with navigation arrows and dots or numbers indicator\",\n aiInstructions:\n \"Use this brick to create an image carousel or slideshow. It can display multiple images that users can navigate through using arrows or dots. Each image can have an optional legend or caption. This brick is ideal for showcasing portfolios, product images, or any visual content in an engaging way.\",\n category: \"media\",\n defaultInspectorTab: \"content\",\n consumesMultipleQueryRows: true,\n minHeight: {\n desktop: 200,\n },\n minWidth: {\n desktop: 300,\n },\n icon: TbCarouselHorizontal,\n props: defineProps({\n colorPreset: Type.Optional(\n colorPresetRef({\n title: \"Color\",\n }),\n ),\n padding: Type.Optional(\n cssLengthRef({\n default: \"1rem\",\n description: \"Padding inside the carousel.\",\n \"ai:instructions\": \"Use only a single value like '1rem' or '10px'\",\n title: \"Padding\",\n \"ui:responsive\": true,\n \"ui:placeholder\": \"Not specified\",\n \"ui:styleId\": \"styles:padding\",\n }),\n ),\n images: Type.Optional(\n Type.Array(\n Type.Object({\n src: imageRef({\n \"ui:responsive\": \"desktop\",\n \"ui:no-alt-text\": true,\n \"ui:no-object-options\": true,\n }),\n legend: string(\"Legend\"),\n }),\n {\n title: \"Images\",\n default: [],\n maxItems: 12,\n metadata: {\n category: \"content\",\n },\n },\n ),\n ),\n borderRadius: Type.Optional(\n roundingRef({\n default: \"rounded-md\",\n }),\n ),\n loop: Type.Optional(loopRef()),\n }),\n});\n\nexport type Manifest = typeof manifest;\n\nexport const examples: {\n description: string;\n type: string;\n props: BrickProps<Manifest>[\"brick\"][\"props\"];\n}[] = [\n {\n description: \"Basic image carousel with legends\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"https://via.placeholder.com/800x400.png?text=Slide+1\",\n alt: \"First slide\",\n },\n legend: \"Beautiful landscape\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/800x400.png?text=Slide+2\",\n alt: \"Second slide\",\n },\n legend: \"Amazing architecture\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/800x400.png?text=Slide+3\",\n alt: \"Third slide\",\n },\n legend: \"Stunning nature\",\n },\n ],\n },\n },\n {\n description: \"Product showcase carousel with rounded corners and padding\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"https://via.placeholder.com/600x400.png?text=Product+1\",\n alt: \"Product 1\",\n },\n legend: \"Premium Headphones - $199\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/600x400.png?text=Product+2\",\n alt: \"Product 2\",\n },\n legend: \"Wireless Speaker - $149\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/600x400.png?text=Product+3\",\n alt: \"Product 3\",\n },\n legend: \"Smart Watch - $299\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/600x400.png?text=Product+4\",\n alt: \"Product 4\",\n },\n legend: \"Laptop Stand - $79\",\n },\n ],\n borderRadius: \"rounded-xl\",\n padding: \"2rem\",\n colorPreset: { color: \"gray-50\" },\n },\n },\n {\n description: \"Portfolio carousel with minimal styling\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"https://via.placeholder.com/900x600.png?text=Portfolio+1\",\n alt: \"Portfolio piece 1\",\n },\n legend: \"Web Design Project\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/900x600.png?text=Portfolio+2\",\n alt: \"Portfolio piece 2\",\n },\n legend: \"Brand Identity Design\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/900x600.png?text=Portfolio+3\",\n alt: \"Portfolio piece 3\",\n },\n legend: \"Mobile App Interface\",\n },\n ],\n borderRadius: \"rounded-none\",\n padding: \"0\",\n },\n },\n {\n description: \"Event photos carousel with primary color theme\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"https://via.placeholder.com/800x500.png?text=Event+Photo+1\",\n alt: \"Event photo 1\",\n },\n legend: \"Opening Ceremony\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/800x500.png?text=Event+Photo+2\",\n alt: \"Event photo 2\",\n },\n legend: \"Keynote Speaker\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/800x500.png?text=Event+Photo+3\",\n alt: \"Event photo 3\",\n },\n legend: \"Networking Session\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/800x500.png?text=Event+Photo+4\",\n alt: \"Event photo 4\",\n },\n legend: \"Award Ceremony\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/800x500.png?text=Event+Photo+5\",\n alt: \"Event photo 5\",\n },\n legend: \"Closing Remarks\",\n },\n ],\n colorPreset: { color: \"primary-100\" },\n borderRadius: \"rounded-lg\",\n padding: \"1.5rem\",\n },\n },\n {\n description: \"Travel destinations carousel without legends\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"https://via.placeholder.com/700x450.png?text=Paris\",\n alt: \"Paris cityscape\",\n },\n legend: \"\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/700x450.png?text=Tokyo\",\n alt: \"Tokyo skyline\",\n },\n legend: \"\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/700x450.png?text=New+York\",\n alt: \"New York streets\",\n },\n legend: \"\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/700x450.png?text=London\",\n alt: \"London landmarks\",\n },\n legend: \"\",\n },\n ],\n borderRadius: \"rounded-2xl\",\n padding: \"1rem\",\n },\n },\n {\n description: \"Team members carousel with blue color scheme\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"https://via.placeholder.com/400x400.png?text=Team+1\",\n alt: \"Team member 1\",\n },\n legend: \"John Smith - CEO\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/400x400.png?text=Team+2\",\n alt: \"Team member 2\",\n },\n legend: \"Sarah Johnson - CTO\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/400x400.png?text=Team+3\",\n alt: \"Team member 3\",\n },\n legend: \"Mike Davis - Design Lead\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/400x400.png?text=Team+4\",\n alt: \"Team member 4\",\n },\n legend: \"Emily Chen - Marketing Director\",\n },\n ],\n colorPreset: { color: \"blue-50\" },\n borderRadius: \"rounded-full\",\n padding: \"2rem\",\n },\n },\n {\n description: \"Recipe steps carousel with detailed descriptions\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"https://via.placeholder.com/600x400.png?text=Step+1\",\n alt: \"Recipe step 1\",\n },\n legend: \"Step 1: Prepare all ingredients\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/600x400.png?text=Step+2\",\n alt: \"Recipe step 2\",\n },\n legend: \"Step 2: Heat oil in a large pan\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/600x400.png?text=Step+3\",\n alt: \"Recipe step 3\",\n },\n legend: \"Step 3: Add vegetables and sauté\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/600x400.png?text=Step+4\",\n alt: \"Recipe step 4\",\n },\n legend: \"Step 4: Season and serve hot\",\n },\n ],\n colorPreset: { color: \"orange-50\" },\n borderRadius: \"rounded-md\",\n padding: \"1.5rem\",\n },\n },\n {\n description: \"Before and after comparison carousel\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"https://via.placeholder.com/800x400.png?text=Before+1\",\n alt: \"Before renovation 1\",\n },\n legend: \"Kitchen - Before Renovation\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/800x400.png?text=After+1\",\n alt: \"After renovation 1\",\n },\n legend: \"Kitchen - After Renovation\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/800x400.png?text=Before+2\",\n alt: \"Before renovation 2\",\n },\n legend: \"Living Room - Before\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/800x400.png?text=After+2\",\n alt: \"After renovation 2\",\n },\n legend: \"Living Room - After\",\n },\n ],\n colorPreset: { color: \"green-50\" },\n borderRadius: \"rounded-lg\",\n padding: \"1rem\",\n },\n },\n {\n description: \"Art gallery carousel with dramatic styling\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"https://via.placeholder.com/600x800.png?text=Artwork+1\",\n alt: \"Abstract painting 1\",\n },\n legend: \"Abstract Composition #1 - 2023\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/600x800.png?text=Artwork+2\",\n alt: \"Abstract painting 2\",\n },\n legend: \"Urban Landscape - 2023\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/600x800.png?text=Artwork+3\",\n alt: \"Abstract painting 3\",\n },\n legend: \"Color Study #7 - 2024\",\n },\n ],\n colorPreset: { color: \"gray-900\" },\n borderRadius: \"rounded-sm\",\n padding: \"3rem\",\n },\n },\n {\n description: \"Fashion lookbook carousel with purple theme\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"https://via.placeholder.com/500x700.png?text=Look+1\",\n alt: \"Fashion look 1\",\n },\n legend: \"Spring Collection - Casual Chic\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/500x700.png?text=Look+2\",\n alt: \"Fashion look 2\",\n },\n legend: \"Summer Vibes - Beach Ready\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/500x700.png?text=Look+3\",\n alt: \"Fashion look 3\",\n },\n legend: \"Autumn Elegance - Business\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/500x700.png?text=Look+4\",\n alt: \"Fashion look 4\",\n },\n legend: \"Winter Style - Cozy Comfort\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/500x700.png?text=Look+5\",\n alt: \"Fashion look 5\",\n },\n legend: \"Evening Wear - Formal Event\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/500x700.png?text=Look+6\",\n alt: \"Fashion look 6\",\n },\n legend: \"Weekend Casual - Relaxed Fit\",\n },\n ],\n colorPreset: { color: \"purple-100\" },\n borderRadius: \"rounded-xl\",\n padding: \"2rem\",\n },\n },\n {\n description: \"Car showcase carousel with compact design\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"https://via.placeholder.com/800x450.png?text=Car+1\",\n alt: \"Sports car 1\",\n },\n legend: \"2024 Sports Coupe\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/800x450.png?text=Car+2\",\n alt: \"SUV model\",\n },\n legend: \"Family SUV\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/800x450.png?text=Car+3\",\n alt: \"Electric vehicle\",\n },\n legend: \"Electric Sedan\",\n },\n ],\n colorPreset: { color: \"red-50\" },\n borderRadius: \"rounded-lg\",\n padding: \"0.5rem\",\n },\n },\n {\n description: \"Software features carousel with large padding\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"https://via.placeholder.com/900x500.png?text=Feature+1\",\n alt: \"Software feature 1\",\n },\n legend: \"Dashboard Analytics - Real-time insights\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/900x500.png?text=Feature+2\",\n alt: \"Software feature 2\",\n },\n legend: \"Team Collaboration - Work together seamlessly\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/900x500.png?text=Feature+3\",\n alt: \"Software feature 3\",\n },\n legend: \"Mobile App - Access anywhere, anytime\",\n },\n {\n src: {\n src: \"https://via.placeholder.com/900x500.png?text=Feature+4\",\n alt: \"Software feature 4\",\n },\n legend: \"Security - Enterprise-grade protection\",\n },\n ],\n colorPreset: { color: \"indigo-50\" },\n borderRadius: \"rounded-2xl\",\n padding: \"4rem\",\n },\n },\n {\n description: \"Dynamic product gallery using products query with pricing and details\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"{{products.image}}\",\n alt: \"{{products.name}}\",\n },\n legend: \"{{products.name}} - ${{products.price}}\",\n },\n ],\n colorPreset: { color: \"primary-50\" },\n borderRadius: \"rounded-lg\",\n padding: \"1.5rem\",\n loop: {\n over: \"products\",\n },\n },\n },\n {\n description: \"Team member carousel using teamMembers query with roles and departments\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"{{teamMembers.photo}}\",\n alt: \"{{teamMembers.fullName}}\",\n },\n legend: \"{{teamMembers.fullName}} - {{teamMembers.position}}, {{teamMembers.department}}\",\n },\n ],\n colorPreset: { color: \"secondary-100\" },\n borderRadius: \"rounded-xl\",\n padding: \"2rem\",\n loop: {\n over: \"teamMembers\",\n },\n },\n },\n {\n description: \"Portfolio showcase using portfolioProjects query with client information\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"{{portfolioProjects.featuredImage}}\",\n alt: \"{{portfolioProjects.projectName}}\",\n },\n legend:\n \"{{portfolioProjects.projectName}} - {{portfolioProjects.clientName}} ({{portfolioProjects.year}})\",\n },\n ],\n colorPreset: { color: \"neutral-100\" },\n borderRadius: \"rounded-md\",\n padding: \"1rem\",\n loop: {\n over: \"portfolioProjects\",\n },\n },\n },\n {\n description: \"Event photo gallery using eventPhotos query with captions and dates\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"{{eventPhotos.imageUrl}}\",\n alt: \"{{eventPhotos.caption}}\",\n },\n legend: \"{{eventPhotos.caption}} - {{eventPhotos.eventDate}}\",\n },\n ],\n colorPreset: { color: \"accent-50\" },\n borderRadius: \"rounded-lg\",\n padding: \"2rem\",\n loop: {\n over: \"eventPhotos\",\n },\n },\n },\n {\n description: \"Property listings carousel using realEstateProperties query with pricing\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"{{realEstateProperties.mainPhoto}}\",\n alt: \"{{realEstateProperties.address}}\",\n },\n legend:\n \"{{realEstateProperties.address}} - ${{realEstateProperties.price}} • {{realEstateProperties.bedrooms}}BR/{{realEstateProperties.bathrooms}}BA\",\n },\n ],\n colorPreset: { color: \"primary-100\" },\n borderRadius: \"rounded-xl\",\n padding: \"1.5rem\",\n loop: {\n over: \"realEstateProperties\",\n },\n },\n },\n {\n description: \"Restaurant menu carousel using menuItems query with categories and prices\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"{{menuItems.photo}}\",\n alt: \"{{menuItems.dishName}}\",\n },\n legend: \"{{menuItems.dishName}} - {{menuItems.category}} • ${{menuItems.price}}\",\n },\n ],\n colorPreset: { color: \"neutral-50\" },\n borderRadius: \"rounded-lg\",\n padding: \"1rem\",\n loop: {\n over: \"menuItems\",\n },\n },\n },\n {\n description: \"Travel destinations carousel using destinations query with country information\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"{{destinations.heroImage}}\",\n alt: \"{{destinations.cityName}}\",\n },\n legend: \"{{destinations.cityName}}, {{destinations.country}} - {{destinations.bestTimeToVisit}}\",\n },\n ],\n colorPreset: { color: \"secondary-50\" },\n borderRadius: \"rounded-2xl\",\n padding: \"2.5rem\",\n loop: {\n over: \"destinations\",\n },\n },\n },\n {\n description: \"Art collection carousel using artworks query with artist and year information\",\n type: \"carousel\",\n props: {\n images: [\n {\n src: {\n src: \"{{artworks.imageUrl}}\",\n alt: \"{{artworks.title}}\",\n },\n legend: \"{{artworks.title}} by {{artworks.artist}} ({{artworks.year}}) - {{artworks.medium}}\",\n },\n ],\n colorPreset: { color: \"accent-100\" },\n borderRadius: \"rounded-sm\",\n padding: \"3rem\",\n loop: {\n over: \"artworks\",\n },\n },\n },\n];\n"],"mappings":";;2TAAA,OAAS,QAAAA,MAAY,oBACrB,OAAS,wBAAAC,MAA4B,iBAW9B,IAAMC,EAAWC,EAAoB,CAC1C,KAAM,WACN,KAAM,WACN,YAAa,yEACb,eACE,4SACF,SAAU,QACV,oBAAqB,UACrB,0BAA2B,GAC3B,UAAW,CACT,QAAS,GACX,EACA,SAAU,CACR,QAAS,GACX,EACA,KAAMC,EACN,MAAOC,EAAY,CACjB,YAAaC,EAAK,SAChBC,EAAe,CACb,MAAO,OACT,CAAC,CACH,EACA,QAASD,EAAK,SACZE,EAAa,CACX,QAAS,OACT,YAAa,+BACb,kBAAmB,gDACnB,MAAO,UACP,gBAAiB,GACjB,iBAAkB,gBAClB,aAAc,gBAChB,CAAC,CACH,EACA,OAAQF,EAAK,SACXA,EAAK,MACHA,EAAK,OAAO,CACV,IAAKG,EAAS,CACZ,gBAAiB,UACjB,iBAAkB,GAClB,uBAAwB,EAC1B,CAAC,EACD,OAAQC,EAAO,QAAQ,CACzB,CAAC,EACD,CACE,MAAO,SACP,QAAS,CAAC,EACV,SAAU,GACV,SAAU,CACR,SAAU,SACZ,CACF,CACF,CACF,EACA,aAAcJ,EAAK,SACjBK,EAAY,CACV,QAAS,YACX,CAAC,CACH,EACA,KAAML,EAAK,SAASM,EAAQ,CAAC,CAC/B,CAAC,CACH,CAAC,EAIYC,EAIP,CACJ,CACE,YAAa,oCACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,uDACL,IAAK,aACP,EACA,OAAQ,qBACV,EACA,CACE,IAAK,CACH,IAAK,uDACL,IAAK,cACP,EACA,OAAQ,sBACV,EACA,CACE,IAAK,CACH,IAAK,uDACL,IAAK,aACP,EACA,OAAQ,iBACV,CACF,CACF,CACF,EACA,CACE,YAAa,6DACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,yDACL,IAAK,WACP,EACA,OAAQ,2BACV,EACA,CACE,IAAK,CACH,IAAK,yDACL,IAAK,WACP,EACA,OAAQ,yBACV,EACA,CACE,IAAK,CACH,IAAK,yDACL,IAAK,WACP,EACA,OAAQ,oBACV,EACA,CACE,IAAK,CACH,IAAK,yDACL,IAAK,WACP,EACA,OAAQ,oBACV,CACF,EACA,aAAc,aACd,QAAS,OACT,YAAa,CAAE,MAAO,SAAU,CAClC,CACF,EACA,CACE,YAAa,0CACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,2DACL,IAAK,mBACP,EACA,OAAQ,oBACV,EACA,CACE,IAAK,CACH,IAAK,2DACL,IAAK,mBACP,EACA,OAAQ,uBACV,EACA,CACE,IAAK,CACH,IAAK,2DACL,IAAK,mBACP,EACA,OAAQ,sBACV,CACF,EACA,aAAc,eACd,QAAS,GACX,CACF,EACA,CACE,YAAa,iDACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,6DACL,IAAK,eACP,EACA,OAAQ,kBACV,EACA,CACE,IAAK,CACH,IAAK,6DACL,IAAK,eACP,EACA,OAAQ,iBACV,EACA,CACE,IAAK,CACH,IAAK,6DACL,IAAK,eACP,EACA,OAAQ,oBACV,EACA,CACE,IAAK,CACH,IAAK,6DACL,IAAK,eACP,EACA,OAAQ,gBACV,EACA,CACE,IAAK,CACH,IAAK,6DACL,IAAK,eACP,EACA,OAAQ,iBACV,CACF,EACA,YAAa,CAAE,MAAO,aAAc,EACpC,aAAc,aACd,QAAS,QACX,CACF,EACA,CACE,YAAa,+CACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,qDACL,IAAK,iBACP,EACA,OAAQ,EACV,EACA,CACE,IAAK,CACH,IAAK,qDACL,IAAK,eACP,EACA,OAAQ,EACV,EACA,CACE,IAAK,CACH,IAAK,wDACL,IAAK,kBACP,EACA,OAAQ,EACV,EACA,CACE,IAAK,CACH,IAAK,sDACL,IAAK,kBACP,EACA,OAAQ,EACV,CACF,EACA,aAAc,cACd,QAAS,MACX,CACF,EACA,CACE,YAAa,+CACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,sDACL,IAAK,eACP,EACA,OAAQ,kBACV,EACA,CACE,IAAK,CACH,IAAK,sDACL,IAAK,eACP,EACA,OAAQ,qBACV,EACA,CACE,IAAK,CACH,IAAK,sDACL,IAAK,eACP,EACA,OAAQ,0BACV,EACA,CACE,IAAK,CACH,IAAK,sDACL,IAAK,eACP,EACA,OAAQ,iCACV,CACF,EACA,YAAa,CAAE,MAAO,SAAU,EAChC,aAAc,eACd,QAAS,MACX,CACF,EACA,CACE,YAAa,mDACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,sDACL,IAAK,eACP,EACA,OAAQ,iCACV,EACA,CACE,IAAK,CACH,IAAK,sDACL,IAAK,eACP,EACA,OAAQ,iCACV,EACA,CACE,IAAK,CACH,IAAK,sDACL,IAAK,eACP,EACA,OAAQ,qCACV,EACA,CACE,IAAK,CACH,IAAK,sDACL,IAAK,eACP,EACA,OAAQ,8BACV,CACF,EACA,YAAa,CAAE,MAAO,WAAY,EAClC,aAAc,aACd,QAAS,QACX,CACF,EACA,CACE,YAAa,uCACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,wDACL,IAAK,qBACP,EACA,OAAQ,6BACV,EACA,CACE,IAAK,CACH,IAAK,uDACL,IAAK,oBACP,EACA,OAAQ,4BACV,EACA,CACE,IAAK,CACH,IAAK,wDACL,IAAK,qBACP,EACA,OAAQ,sBACV,EACA,CACE,IAAK,CACH,IAAK,uDACL,IAAK,oBACP,EACA,OAAQ,qBACV,CACF,EACA,YAAa,CAAE,MAAO,UAAW,EACjC,aAAc,aACd,QAAS,MACX,CACF,EACA,CACE,YAAa,6CACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,yDACL,IAAK,qBACP,EACA,OAAQ,gCACV,EACA,CACE,IAAK,CACH,IAAK,yDACL,IAAK,qBACP,EACA,OAAQ,wBACV,EACA,CACE,IAAK,CACH,IAAK,yDACL,IAAK,qBACP,EACA,OAAQ,uBACV,CACF,EACA,YAAa,CAAE,MAAO,UAAW,EACjC,aAAc,aACd,QAAS,MACX,CACF,EACA,CACE,YAAa,8CACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,sDACL,IAAK,gBACP,EACA,OAAQ,iCACV,EACA,CACE,IAAK,CACH,IAAK,sDACL,IAAK,gBACP,EACA,OAAQ,4BACV,EACA,CACE,IAAK,CACH,IAAK,sDACL,IAAK,gBACP,EACA,OAAQ,4BACV,EACA,CACE,IAAK,CACH,IAAK,sDACL,IAAK,gBACP,EACA,OAAQ,6BACV,EACA,CACE,IAAK,CACH,IAAK,sDACL,IAAK,gBACP,EACA,OAAQ,6BACV,EACA,CACE,IAAK,CACH,IAAK,sDACL,IAAK,gBACP,EACA,OAAQ,8BACV,CACF,EACA,YAAa,CAAE,MAAO,YAAa,EACnC,aAAc,aACd,QAAS,MACX,CACF,EACA,CACE,YAAa,4CACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,qDACL,IAAK,cACP,EACA,OAAQ,mBACV,EACA,CACE,IAAK,CACH,IAAK,qDACL,IAAK,WACP,EACA,OAAQ,YACV,EACA,CACE,IAAK,CACH,IAAK,qDACL,IAAK,kBACP,EACA,OAAQ,gBACV,CACF,EACA,YAAa,CAAE,MAAO,QAAS,EAC/B,aAAc,aACd,QAAS,QACX,CACF,EACA,CACE,YAAa,gDACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,yDACL,IAAK,oBACP,EACA,OAAQ,0CACV,EACA,CACE,IAAK,CACH,IAAK,yDACL,IAAK,oBACP,EACA,OAAQ,+CACV,EACA,CACE,IAAK,CACH,IAAK,yDACL,IAAK,oBACP,EACA,OAAQ,uCACV,EACA,CACE,IAAK,CACH,IAAK,yDACL,IAAK,oBACP,EACA,OAAQ,wCACV,CACF,EACA,YAAa,CAAE,MAAO,WAAY,EAClC,aAAc,cACd,QAAS,MACX,CACF,EACA,CACE,YAAa,wEACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,qBACL,IAAK,mBACP,EACA,OAAQ,yCACV,CACF,EACA,YAAa,CAAE,MAAO,YAAa,EACnC,aAAc,aACd,QAAS,SACT,KAAM,CACJ,KAAM,UACR,CACF,CACF,EACA,CACE,YAAa,0EACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,wBACL,IAAK,0BACP,EACA,OAAQ,iFACV,CACF,EACA,YAAa,CAAE,MAAO,eAAgB,EACtC,aAAc,aACd,QAAS,OACT,KAAM,CACJ,KAAM,aACR,CACF,CACF,EACA,CACE,YAAa,2EACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,sCACL,IAAK,mCACP,EACA,OACE,mGACJ,CACF,EACA,YAAa,CAAE,MAAO,aAAc,EACpC,aAAc,aACd,QAAS,OACT,KAAM,CACJ,KAAM,mBACR,CACF,CACF,EACA,CACE,YAAa,sEACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,2BACL,IAAK,yBACP,EACA,OAAQ,qDACV,CACF,EACA,YAAa,CAAE,MAAO,WAAY,EAClC,aAAc,aACd,QAAS,OACT,KAAM,CACJ,KAAM,aACR,CACF,CACF,EACA,CACE,YAAa,2EACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,qCACL,IAAK,kCACP,EACA,OACE,oJACJ,CACF,EACA,YAAa,CAAE,MAAO,aAAc,EACpC,aAAc,aACd,QAAS,SACT,KAAM,CACJ,KAAM,sBACR,CACF,CACF,EACA,CACE,YAAa,4EACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,sBACL,IAAK,wBACP,EACA,OAAQ,6EACV,CACF,EACA,YAAa,CAAE,MAAO,YAAa,EACnC,aAAc,aACd,QAAS,OACT,KAAM,CACJ,KAAM,WACR,CACF,CACF,EACA,CACE,YAAa,iFACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,6BACL,IAAK,2BACP,EACA,OAAQ,wFACV,CACF,EACA,YAAa,CAAE,MAAO,cAAe,EACrC,aAAc,cACd,QAAS,SACT,KAAM,CACJ,KAAM,cACR,CACF,CACF,EACA,CACE,YAAa,gFACb,KAAM,WACN,MAAO,CACL,OAAQ,CACN,CACE,IAAK,CACH,IAAK,wBACL,IAAK,oBACP,EACA,OAAQ,qFACV,CACF,EACA,YAAa,CAAE,MAAO,YAAa,EACnC,aAAc,aACd,QAAS,OACT,KAAM,CACJ,KAAM,UACR,CACF,CACF,CACF","names":["Type","TbCarouselHorizontal","manifest","defineBrickManifest","TbCarouselHorizontal","defineProps","Type","colorPresetRef","cssLengthRef","imageRef","string","roundingRef","loopRef","examples"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
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-KFM6KXSE.js";import{Type as t}from"@sinclair/typebox";function s(r,e="Text color"){return t.String({title:e,"ai:instructions":"hex/rgb/rgba color or classes like `text-<variant>-<shade>`, variants being `primary`, `secondary`, `accent` and `neutral`, and shades between 50 and 900",default:r,"ui:styleId":"styles:color","ui:field":"color","ui:color-type":"text"})}function l(r={}){return o("styles:color",{...r,"ui:styleId":"styles:color"})}function a(r,e="Border color"){return t.String({title:e,"ai:instructions":"hex/rgb/rgba color or classes like `border-<variant>-<shade>`, variants being `primary`, `secondary`, `accent` and `neutral`, and shades between 50 and 900",default:r,"ui:styleId":"styles:borderColor","ui:field":"color","ui:color-type":"border"})}function c(r={}){return o("styles:borderColor",{...r,"ui:styleId":"styles:borderColor"})}export{s as a,l as b,a as c,c as d};
|
|
4
|
+
//# sourceMappingURL=chunk-NM5MMPCF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/shared/bricks/props/color.ts"],"sourcesContent":["import { type SchemaOptions, type Static, type StringOptions, type TObject, Type } from \"@sinclair/typebox\";\nimport { typedRef } from \"~/shared/utils/typed-ref\";\n\nexport function color(defaultValue?: string, title = \"Text color\") {\n return Type.String({\n title,\n // $id: \"styles:color\",\n \"ai:instructions\":\n \"hex/rgb/rgba color or classes like `text-<variant>-<shade>`, variants being `primary`, `secondary`, `accent` and `neutral`, and shades between 50 and 900\",\n default: defaultValue,\n \"ui:styleId\": \"styles:color\",\n \"ui:field\": \"color\",\n \"ui:color-type\": \"text\",\n });\n}\n\nexport type ColorSettings = Static<ReturnType<typeof color>>;\n\nexport function colorRef(options: SchemaOptions = {}) {\n return typedRef(\"styles:color\", { ...options, \"ui:styleId\": \"styles:color\" });\n}\n\nexport function borderColor(defaultValue?: string, title = \"Border color\") {\n return Type.String({\n title,\n // $id: \"styles:borderColor\",\n \"ai:instructions\":\n \"hex/rgb/rgba color or classes like `border-<variant>-<shade>`, variants being `primary`, `secondary`, `accent` and `neutral`, and shades between 50 and 900\",\n default: defaultValue,\n \"ui:styleId\": \"styles:borderColor\",\n \"ui:field\": \"color\",\n \"ui:color-type\": \"border\",\n });\n}\n\nexport type BorderColorSettings = Static<ReturnType<typeof borderColor>>;\n\nexport function borderColorRef(options: SchemaOptions = {}) {\n return typedRef(\"styles:borderColor\", { ...options, \"ui:styleId\": \"styles:borderColor\" });\n}\n"],"mappings":";;wCAAA,OAA4E,QAAAA,MAAY,oBAGjF,SAASC,EAAMC,EAAuBC,EAAQ,aAAc,CACjE,OAAOC,EAAK,OAAO,CACjB,MAAAD,EAEA,kBACE,4JACF,QAASD,EACT,aAAc,eACd,WAAY,QACZ,gBAAiB,MACnB,CAAC,CACH,CAIO,SAASG,EAASC,EAAyB,CAAC,EAAG,CACpD,OAAOC,EAAS,eAAgB,CAAE,GAAGD,EAAS,aAAc,cAAe,CAAC,CAC9E,CAEO,SAASE,EAAYN,EAAuBC,EAAQ,eAAgB,CACzE,OAAOC,EAAK,OAAO,CACjB,MAAAD,EAEA,kBACE,8JACF,QAASD,EACT,aAAc,qBACd,WAAY,QACZ,gBAAiB,QACnB,CAAC,CACH,CAIO,SAASO,EAAeH,EAAyB,CAAC,EAAG,CAC1D,OAAOC,EAAS,qBAAsB,CAAE,GAAGD,EAAS,aAAc,oBAAqB,CAAC,CAC1F","names":["Type","color","defaultValue","title","Type","colorRef","options","typedRef","borderColor","borderColorRef"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
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-AI4GHU7R.js";import{f as a}from"./chunk-GOMXZC4B.js";import{a as t}from"./chunk-AFVJZPLS.js";import{Type as e}from"@sinclair/typebox";var r=e.Object({id:e.String({description:"The unique ID of the page. Use a human readable url-safe slug",examples:["home","about-us","products-list"]}),label:e.String({description:"The label (name) of the page",examples:["Home","About us","Products"]}),sections:e.Array(a,{description:"The sections of the page. See the Section schema"}),attributes:o});function c(){return t(r)}export{r as a,c as b};
|
|
4
|
+
//# sourceMappingURL=chunk-OGBMYMZD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/shared/page.ts"],"sourcesContent":["import { pageAttributesSchema } from \"./attributes\";\nimport { sectionSchema } from \"./bricks\";\nimport { Type, type Static } from \"@sinclair/typebox\";\nimport { toLLMSchema } from \"./utils/llm\";\n\nexport const pageSchema = Type.Object({\n id: Type.String({\n description: \"The unique ID of the page. Use a human readable url-safe slug\",\n examples: [\"home\", \"about-us\", \"products-list\"],\n }),\n label: Type.String({\n description: \"The label (name) of the page\",\n examples: [\"Home\", \"About us\", \"Products\"],\n }),\n sections: Type.Array(sectionSchema, {\n description: \"The sections of the page. See the Section schema\",\n }),\n attributes: pageAttributesSchema,\n});\n\nexport function getPageSchemaForLLM() {\n return toLLMSchema(pageSchema);\n}\n\nexport type Page = Static<typeof pageSchema>;\nexport type VersionedPage = Page & { version: string };\n\n/**\n * Page context represents the page config PLUS:\n * - the pathParams of the actual request.\n * - the resolved data for the page.\n */\nexport type PageContext = VersionedPage & {\n pathParams?: Record<string, string>;\n data?: Record<string, unknown[]>;\n};\n"],"mappings":";;wHAEA,OAAS,QAAAA,MAAyB,oBAG3B,IAAMC,EAAaC,EAAK,OAAO,CACpC,GAAIA,EAAK,OAAO,CACd,YAAa,gEACb,SAAU,CAAC,OAAQ,WAAY,eAAe,CAChD,CAAC,EACD,MAAOA,EAAK,OAAO,CACjB,YAAa,+BACb,SAAU,CAAC,OAAQ,WAAY,UAAU,CAC3C,CAAC,EACD,SAAUA,EAAK,MAAMC,EAAe,CAClC,YAAa,kDACf,CAAC,EACD,WAAYC,CACd,CAAC,EAEM,SAASC,GAAsB,CACpC,OAAOC,EAAYL,CAAU,CAC/B","names":["Type","pageSchema","Type","sectionSchema","pageAttributesSchema","getPageSchemaForLLM","toLLMSchema"]}
|