@upstart.gg/sdk 0.0.131 → 0.0.132

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.
@@ -76,6 +76,12 @@ export type Tools = {
76
76
  };
77
77
  output: Brick;
78
78
  };
79
+ editBrick: {
80
+ input: WaitingMessageSchema & {
81
+ id: string;
82
+ };
83
+ output: Brick;
84
+ };
79
85
  listImages: {
80
86
  input: null;
81
87
  output: ImageSearchResultsType;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/ai/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAsB,MAAM,sBAAsB,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAGvE,MAAM,MAAM,KAAK,GAAG;IAClB,aAAa,EAAE;QACb,KAAK,EAAE,kBAAkB,CAAC;QAC1B,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;KAC3B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CAAC;KACpB,CAAC;IACF,eAAe,EAAE;QACf,KAAK,EAAE,IAAI,CAAC;QACZ,MAAM,EAAE,UAAU,EAAE,CAAC;KACtB,CAAC;IACF,YAAY,EAAE;QACZ,KAAK,EAAE,oBAAoB,GAAG;YAAE,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC;QAChD,MAAM,EAAE,sBAAsB,CAAC;KAChC,CAAC;IACF,WAAW,EAAE;QACX,KAAK,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,cAAc,EAAE,MAAM,CAAA;SAAE,CAAC;QAC9C,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC;KAC1B,CAAC;CACH,CAAC;AAEF,KAAK,QAAQ,GAAG;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAGF,KAAK,IAAI,GAAG;IACV,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE;QACL,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,KAAK,CAAC;KACd,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a,b,c,d}from"../../chunk-NXIF3UMD.js";import"../../chunk-VDX2J22H.js";import"../../chunk-IFEIRRZ2.js";import"../../chunk-URRCKLAS.js";import"../../chunk-HP7CZB2F.js";import"../../chunk-2NLDX5FG.js";import"../../chunk-XED6ARVN.js";import"../../chunk-3QOAHMV4.js";import"../../chunk-EVDZ2KND.js";import"../../chunk-3P36LG6T.js";import"../../chunk-ARYG4XMX.js";import"../../chunk-QGFQA7OZ.js";import"../../chunk-MKIXZXWS.js";import"../../chunk-5X5SX5N7.js";import"../../chunk-6R76KIHZ.js";import"../../chunk-VE3S4LGT.js";import"../../chunk-Y3X4F4YJ.js";import"../../chunk-LT4CW2F7.js";import"../../chunk-ILIWVWHC.js";import"../../chunk-SAJY7H6N.js";import"../../chunk-STDCM2KD.js";import"../../chunk-TH5SONR6.js";import"../../chunk-UDQWYGSO.js";import"../../chunk-AZHH3XJJ.js";import"../../chunk-YIFNKP4J.js";import"../../chunk-6PGAWO4H.js";import"../../chunk-4GIZ6WSG.js";import"../../chunk-LEWKHCRI.js";import"../../chunk-F4JNKU7J.js";import"../../chunk-3FPFR5RA.js";import"../../chunk-7UBMXMNJ.js";import"../../chunk-US53TNMK.js";import"../../chunk-VK26ZZFR.js";import"../../chunk-MVCVVKBY.js";import"../../chunk-AB3IMRXZ.js";import"../../chunk-GC5OWY2Z.js";import"../../chunk-DHSWVVMI.js";import"../../chunk-Z4YKRLOX.js";import"../../chunk-SFDRAHYP.js";import"../../chunk-JRCVYDCD.js";import"../../chunk-DKNOZLA6.js";import"../../chunk-HSRXUIVM.js";import"../../chunk-5WY7LYXK.js";import"../../chunk-SFKZAUPW.js";export{c as brickTypes,b as defaultProps,d as examples,a as manifests};
3
+ import{a,b,c,d}from"../../chunk-5DZIQGY2.js";import"../../chunk-VDX2J22H.js";import"../../chunk-IFEIRRZ2.js";import"../../chunk-URRCKLAS.js";import"../../chunk-HP7CZB2F.js";import"../../chunk-2NLDX5FG.js";import"../../chunk-XED6ARVN.js";import"../../chunk-3QOAHMV4.js";import"../../chunk-EVDZ2KND.js";import"../../chunk-3P36LG6T.js";import"../../chunk-ARYG4XMX.js";import"../../chunk-QGFQA7OZ.js";import"../../chunk-MKIXZXWS.js";import"../../chunk-5X5SX5N7.js";import"../../chunk-6R76KIHZ.js";import"../../chunk-K5ADUHF4.js";import"../../chunk-Y3X4F4YJ.js";import"../../chunk-LT4CW2F7.js";import"../../chunk-ILIWVWHC.js";import"../../chunk-SAJY7H6N.js";import"../../chunk-STDCM2KD.js";import"../../chunk-TH5SONR6.js";import"../../chunk-UDQWYGSO.js";import"../../chunk-AZHH3XJJ.js";import"../../chunk-YIFNKP4J.js";import"../../chunk-6PGAWO4H.js";import"../../chunk-4GIZ6WSG.js";import"../../chunk-LEWKHCRI.js";import"../../chunk-F4JNKU7J.js";import"../../chunk-3FPFR5RA.js";import"../../chunk-7UBMXMNJ.js";import"../../chunk-US53TNMK.js";import"../../chunk-VK26ZZFR.js";import"../../chunk-MVCVVKBY.js";import"../../chunk-AB3IMRXZ.js";import"../../chunk-GC5OWY2Z.js";import"../../chunk-DHSWVVMI.js";import"../../chunk-Z4YKRLOX.js";import"../../chunk-SFDRAHYP.js";import"../../chunk-JRCVYDCD.js";import"../../chunk-DKNOZLA6.js";import"../../chunk-HSRXUIVM.js";import"../../chunk-5WY7LYXK.js";import"../../chunk-SFKZAUPW.js";export{c as brickTypes,b as defaultProps,d as examples,a as manifests};
@@ -1 +1 @@
1
- {"version":3,"file":"icon.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/icon.manifest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAMjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKkB,CAAC;eACxB,CAAC;;;cAGF,CAAC;eAEP,CAAC;;;cAGK,CAAC;eACN,CAAC;;;cAEmB,CAAC;eAAsB,CAAA;;;;;CAkBnD,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AAEvC,eAAO,MAAM,QAAQ,EAAE;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;CAC/C,EA8GA,CAAC"}
1
+ {"version":3,"file":"icon.manifest.d.ts","sourceRoot":"","sources":["../../../../src/shared/bricks/manifests/icon.manifest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAMjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKkB,CAAC;eACxB,CAAC;;;cAGH,CAAC;eAEP,CAAC;;;cAGK,CAAC;eACN,CAAC;;;cAEmB,CAAC;eAAqB,CAAC;;;;;CAkBlD,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AAEvC,eAAO,MAAM,QAAQ,EAAE;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;CAC/C,EA8GA,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a,b}from"../../chunk-VE3S4LGT.js";import"../../chunk-6PGAWO4H.js";import"../../chunk-4GIZ6WSG.js";import"../../chunk-LEWKHCRI.js";import"../../chunk-F4JNKU7J.js";import"../../chunk-3FPFR5RA.js";import"../../chunk-7UBMXMNJ.js";import"../../chunk-US53TNMK.js";import"../../chunk-VK26ZZFR.js";import"../../chunk-MVCVVKBY.js";import"../../chunk-AB3IMRXZ.js";import"../../chunk-GC5OWY2Z.js";import"../../chunk-DHSWVVMI.js";import"../../chunk-Z4YKRLOX.js";import"../../chunk-SFDRAHYP.js";import"../../chunk-JRCVYDCD.js";import"../../chunk-DKNOZLA6.js";import"../../chunk-HSRXUIVM.js";import"../../chunk-5WY7LYXK.js";import"../../chunk-SFKZAUPW.js";export{b as examples,a as manifest};
3
+ import{a,b}from"../../chunk-K5ADUHF4.js";import"../../chunk-6PGAWO4H.js";import"../../chunk-4GIZ6WSG.js";import"../../chunk-LEWKHCRI.js";import"../../chunk-F4JNKU7J.js";import"../../chunk-3FPFR5RA.js";import"../../chunk-7UBMXMNJ.js";import"../../chunk-US53TNMK.js";import"../../chunk-VK26ZZFR.js";import"../../chunk-MVCVVKBY.js";import"../../chunk-AB3IMRXZ.js";import"../../chunk-GC5OWY2Z.js";import"../../chunk-DHSWVVMI.js";import"../../chunk-Z4YKRLOX.js";import"../../chunk-SFDRAHYP.js";import"../../chunk-JRCVYDCD.js";import"../../chunk-DKNOZLA6.js";import"../../chunk-HSRXUIVM.js";import"../../chunk-5WY7LYXK.js";import"../../chunk-SFKZAUPW.js";export{b as examples,a as manifest};
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a,b,c,d,e,f,g,h,i,j,k,l,m}from"./chunk-COT2ROEH.js";import"./chunk-L42YBY5I.js";import"./chunk-NXIF3UMD.js";import"./chunk-VDX2J22H.js";import"./chunk-IFEIRRZ2.js";import"./chunk-URRCKLAS.js";import"./chunk-HP7CZB2F.js";import"./chunk-2NLDX5FG.js";import"./chunk-XED6ARVN.js";import"./chunk-3QOAHMV4.js";import"./chunk-EVDZ2KND.js";import"./chunk-3P36LG6T.js";import"./chunk-ARYG4XMX.js";import"./chunk-QGFQA7OZ.js";import"./chunk-MKIXZXWS.js";import"./chunk-5X5SX5N7.js";import"./chunk-6R76KIHZ.js";import"./chunk-VE3S4LGT.js";import"./chunk-Y3X4F4YJ.js";import"./chunk-LT4CW2F7.js";import"./chunk-ILIWVWHC.js";import"./chunk-SAJY7H6N.js";import"./chunk-STDCM2KD.js";import"./chunk-TH5SONR6.js";import"./chunk-MPBYGS6W.js";import"./chunk-UDQWYGSO.js";import"./chunk-AZHH3XJJ.js";import"./chunk-YIFNKP4J.js";import"./chunk-6PGAWO4H.js";import"./chunk-4GIZ6WSG.js";import"./chunk-LEWKHCRI.js";import"./chunk-F4JNKU7J.js";import"./chunk-3FPFR5RA.js";import"./chunk-7UBMXMNJ.js";import"./chunk-US53TNMK.js";import"./chunk-VK26ZZFR.js";import"./chunk-MVCVVKBY.js";import"./chunk-AB3IMRXZ.js";import"./chunk-GC5OWY2Z.js";import"./chunk-DHSWVVMI.js";import"./chunk-Z4YKRLOX.js";import"./chunk-SFDRAHYP.js";import"./chunk-JRCVYDCD.js";import"./chunk-DKNOZLA6.js";import"./chunk-HSRXUIVM.js";import"./chunk-5WY7LYXK.js";import"./chunk-SFKZAUPW.js";export{c as brickSchema,b as brickTypeSchema,l as createEmptyBrick,a as generateId,i as getSectionSchemaForLLM,h as getSectionSchemaNoBrickForLLM,d as makeFullBrickSchemaForLLM,k as processBrick,j as processSections,e as sectionProps,f as sectionSchema,g as sectionSchemaNoBricks,m as sectionsExamples};
3
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m}from"./chunk-ML4JSDQM.js";import"./chunk-L42YBY5I.js";import"./chunk-5DZIQGY2.js";import"./chunk-VDX2J22H.js";import"./chunk-IFEIRRZ2.js";import"./chunk-URRCKLAS.js";import"./chunk-HP7CZB2F.js";import"./chunk-2NLDX5FG.js";import"./chunk-XED6ARVN.js";import"./chunk-3QOAHMV4.js";import"./chunk-EVDZ2KND.js";import"./chunk-3P36LG6T.js";import"./chunk-ARYG4XMX.js";import"./chunk-QGFQA7OZ.js";import"./chunk-MKIXZXWS.js";import"./chunk-5X5SX5N7.js";import"./chunk-6R76KIHZ.js";import"./chunk-K5ADUHF4.js";import"./chunk-Y3X4F4YJ.js";import"./chunk-LT4CW2F7.js";import"./chunk-ILIWVWHC.js";import"./chunk-SAJY7H6N.js";import"./chunk-STDCM2KD.js";import"./chunk-TH5SONR6.js";import"./chunk-MPBYGS6W.js";import"./chunk-UDQWYGSO.js";import"./chunk-AZHH3XJJ.js";import"./chunk-YIFNKP4J.js";import"./chunk-6PGAWO4H.js";import"./chunk-4GIZ6WSG.js";import"./chunk-LEWKHCRI.js";import"./chunk-F4JNKU7J.js";import"./chunk-3FPFR5RA.js";import"./chunk-7UBMXMNJ.js";import"./chunk-US53TNMK.js";import"./chunk-VK26ZZFR.js";import"./chunk-MVCVVKBY.js";import"./chunk-AB3IMRXZ.js";import"./chunk-GC5OWY2Z.js";import"./chunk-DHSWVVMI.js";import"./chunk-Z4YKRLOX.js";import"./chunk-SFDRAHYP.js";import"./chunk-JRCVYDCD.js";import"./chunk-DKNOZLA6.js";import"./chunk-HSRXUIVM.js";import"./chunk-5WY7LYXK.js";import"./chunk-SFKZAUPW.js";export{c as brickSchema,b as brickTypeSchema,l as createEmptyBrick,a as generateId,i as getSectionSchemaForLLM,h as getSectionSchemaNoBrickForLLM,d as makeFullBrickSchemaForLLM,k as processBrick,j as processSections,e as sectionProps,f as sectionSchema,g as sectionSchemaNoBricks,m as sectionsExamples};
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{a as l}from"./chunk-F4JNKU7J.js";import{a}from"./chunk-SFKZAUPW.js";import{Type as e}from"@sinclair/typebox";import c from"chroma-js";import{colorPalette as m}from"@upstart.gg/style-system/colors";var v=[{value:"system-ui",label:"System UI"},{value:"transitional",label:"Transitional"},{value:"old-style",label:"Old style"},{value:"humanist",label:"Humanist"},{value:"geometric-humanist",label:"Geometric humanist"},{value:"classical-humanist",label:"Classical humanist"},{value:"neo-grotesque",label:"Neo-grotesque"},{value:"monospace-slab-serif",label:"Monospace slab serif"},{value:"monospace-code",label:"Monospace code"},{value:"industrial",label:"Industrial"},{value:"rounded-sans",label:"Rounded sans"},{value:"slab-serif",label:"Slab serif"},{value:"antique",label:"Antique"},{value:"didone",label:"Didone"},{value:"handwritten",label:"Handwritten"}],h=e.Object({type:a(["stack","theme","google"],{title:"Type of font",description:"The type of font. Can be a font stack, a theme font or a Google font"}),family:e.String({title:"Family",description:"The font family (eg. the name of the font)"})},{title:"Headings font",description:"Used for titles and headings",additionalProperties:!1}),d=e.Object({type:a(["stack","theme","google"],{title:"Type of font",description:"The type of font. Can be a font stack, a theme font or a Google font"}),family:e.String({title:"Family",description:"The font family (eg. the name of the font)"})},{title:"Body font",description:"Used for paragraphs and body text",additionalProperties:!1}),p=e.Object({id:e.String({title:"ID",description:"The unique identifier of the theme"}),name:e.String({title:"Name",description:"The name of the theme"}),description:e.String({title:"Description",description:"The description of the theme"}),tags:e.Array(e.String({title:"Tag"}),{title:"Tags",description:"The tags of the theme"}),browserColorScheme:a(["light","dark"],{title:"Browser scheme",description:"Color of browser-provided UI. Either 'light' or 'dark'"}),colors:e.Object({primary:e.String({title:"Primary",description:"The brand's primary color.","ai:instructions":"Use oklch() css notation.",examples:["oklch(0.62 0.241 354.308)"]}),secondary:e.String({title:"Secondary",description:"The brand's second most used color","ai:instructions":"Use oklch() css notation.",examples:["oklch(0.65 0.22 185)"]}),accent:e.String({title:"Accent",description:"The brand's least used color","ai:instructions":"Use oklch() css notation.",examples:["oklch(0.82 0.18 85)"]}),neutral:e.String({title:"Neutral",description:"The base neutral color","ai:instructions":"Use oklch() css notation.",examples:["oklch(0.38 0.08 280)"]}),base100:e.String({title:"Base",description:"Base surface color of page, used for blank backgrounds. Should be white or near-white for light color-schemes, and black or near-black for dark color-schemes.","ai:instructions":"Use oklab() css notation.",examples:["oklch(0.99 0.008 92)"]}),base200:e.String({title:"Base 2",description:"Should be darker than base 100 but still light for light color-schemes, and lighter but still dark for dark color-schemes.","ai:instructions":"Use oklab() css notation.",examples:["oklch(0.97 0.01 85)"]}),base300:e.String({title:"Base 3",description:"3rd base color, should be darker than base 200 for light color-schemes, and lighter than base 200 for dark color-schemes.","ai:instructions":"Use oklab() css notation.",examples:["oklch(0.95 0.02 80)"]})},{title:"Theme base colors",description:"The base colors of the theme. Each theme must declare all these colors",additionalProperties:!1}),typography:e.Object({base:e.Number({title:"Base font size",description:"The base font size in pixels. It is safe to keep it as is.","ai:instructions":"A safe value is 16."}),heading:h,body:d,alternatives:e.Array(e.Object({body:d,heading:h},{additionalProperties:!1}),{title:"Alternative fonts",description:"Alternative fonts that can be suggested to the user. Takes the same shape"})},{additionalProperties:!1})},{additionalProperties:!1}),f=e.Array(p);function x(){return l(f)}var u={id:"_default_",name:"default",description:"Default Upstart theme",tags:["gradient","vibrant","modern","creative","dynamic","artistic","bold"],browserColorScheme:"light",colors:{base100:"#FFF",base200:"oklch(0.99 0.008 92)",base300:"oklch(0.97 0.01 85)",primary:"oklch(0.55 0.241 354.308)",secondary:"oklch(0.65 0.22 185)",accent:"oklch(0.82 0.18 85)",neutral:"oklch(0.38 0.08 280)"},typography:{base:16,heading:{type:"stack",family:"system-ui"},body:{type:"stack",family:"system-ui"},alternatives:[]}};function A(t){return t.id===u.id}function U(t){return{...t,typography:{...t.typography,base:16},colors:Object.entries(t.colors).reduce((s,[r,o])=>{let i=b(o);return{...s,[r]:i}},{})}}function b(t){if(c.valid(t))return t;if(/ok(lch|lab)\(([^)]+)\)/.test(t)){let o=t.replace(/,/g," ");if(c.valid(o))return o}if(/^([a-z]+)-([0-9]+)$/.test(t)){let[o,i]=t.split("-"),n=m[o]?.[i];if(n)return n}return t}export{v as a,p as b,f as c,x as d,u as e,A as f,U as g};
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{b as n,c as w}from"./chunk-VDX2J22H.js";import{a as g,b as z}from"./chunk-URRCKLAS.js";import{a as l,b as A}from"./chunk-2NLDX5FG.js";import{a as x,b as C}from"./chunk-XED6ARVN.js";import{a as c,b as F}from"./chunk-3QOAHMV4.js";import{a as M,b as G}from"./chunk-EVDZ2KND.js";import{a as E,b as H}from"./chunk-3P36LG6T.js";import{a as m,b as T}from"./chunk-ARYG4XMX.js";import{a as i,b as L}from"./chunk-QGFQA7OZ.js";import{a as o,b as W}from"./chunk-5X5SX5N7.js";import{a as d,b as I}from"./chunk-6R76KIHZ.js";import{a as y,b as P}from"./chunk-VE3S4LGT.js";import{a as r,b as j}from"./chunk-Y3X4F4YJ.js";import{a as f,b as q}from"./chunk-LT4CW2F7.js";import{a as t,b as v}from"./chunk-ILIWVWHC.js";import{a as p,b as D}from"./chunk-SAJY7H6N.js";import{a as s,b as R}from"./chunk-STDCM2KD.js";import{a,b as S}from"./chunk-TH5SONR6.js";import{a as k,c as B}from"./chunk-UDQWYGSO.js";import{a as b,c as h}from"./chunk-AZHH3XJJ.js";import{b as e}from"./chunk-4GIZ6WSG.js";import{a as u}from"./chunk-SFKZAUPW.js";var fe={[M.type]:M,[o.type]:o,[r.type]:r,[E.type]:E,[a.type]:a,[n.type]:n,[i.type]:i,[g.type]:g,[f.type]:f,[m.type]:m,[k.type]:k,[b.type]:b,[s.type]:s,[y.type]:y,[l.type]:l,[p.type]:p,[x.type]:x,[c.type]:c,[t.type]:t,[d.type]:d},ne={[M.type]:e(M),[o.type]:e(o),[r.type]:e(r),[E.type]:e(E),[a.type]:e(a),[g.type]:e(g),[n.type]:e(n),[i.type]:e(i),[f.type]:e(f),[m.type]:e(m),[k.type]:e(k),[b.type]:e(b),[s.type]:e(s),[y.type]:e(y),[l.type]:e(l),[p.type]:e(p),[x.type]:e(x),[c.type]:e(c),[t.type]:e(t),[d.type]:e(d)},le=u([M.type,o.type,r.type,E.type,a.type,n.type,i.type,f.type,m.type,s.type,y.type,l.type,p.type,x.type,c.type,t.type,d.type],{title:"Brick type"}),xe={[M.type]:G,[o.type]:W,[r.type]:j,[E.type]:H,[a.type]:S,[n.type]:w,[i.type]:L,[g.type]:z,[f.type]:q,[m.type]:T,[k.type]:B,[b.type]:h,[s.type]:R,[y.type]:P,[l.type]:A,[p.type]:D,[x.type]:C,[c.type]:F,[t.type]:v,[d.type]:I};export{fe as a,ne as b,le as c,xe as d};
3
+ import{b as n,c as w}from"./chunk-VDX2J22H.js";import{a as g,b as z}from"./chunk-URRCKLAS.js";import{a as l,b as A}from"./chunk-2NLDX5FG.js";import{a as x,b as C}from"./chunk-XED6ARVN.js";import{a as c,b as F}from"./chunk-3QOAHMV4.js";import{a as M,b as G}from"./chunk-EVDZ2KND.js";import{a as E,b as H}from"./chunk-3P36LG6T.js";import{a as m,b as T}from"./chunk-ARYG4XMX.js";import{a as i,b as L}from"./chunk-QGFQA7OZ.js";import{a as o,b as W}from"./chunk-5X5SX5N7.js";import{a as d,b as I}from"./chunk-6R76KIHZ.js";import{a as y,b as P}from"./chunk-K5ADUHF4.js";import{a as r,b as j}from"./chunk-Y3X4F4YJ.js";import{a as f,b as q}from"./chunk-LT4CW2F7.js";import{a as t,b as v}from"./chunk-ILIWVWHC.js";import{a as p,b as D}from"./chunk-SAJY7H6N.js";import{a as s,b as R}from"./chunk-STDCM2KD.js";import{a,b as S}from"./chunk-TH5SONR6.js";import{a as k,c as B}from"./chunk-UDQWYGSO.js";import{a as b,c as h}from"./chunk-AZHH3XJJ.js";import{b as e}from"./chunk-4GIZ6WSG.js";import{a as u}from"./chunk-SFKZAUPW.js";var fe={[M.type]:M,[o.type]:o,[r.type]:r,[E.type]:E,[a.type]:a,[n.type]:n,[i.type]:i,[g.type]:g,[f.type]:f,[m.type]:m,[k.type]:k,[b.type]:b,[s.type]:s,[y.type]:y,[l.type]:l,[p.type]:p,[x.type]:x,[c.type]:c,[t.type]:t,[d.type]:d},ne={[M.type]:e(M),[o.type]:e(o),[r.type]:e(r),[E.type]:e(E),[a.type]:e(a),[g.type]:e(g),[n.type]:e(n),[i.type]:e(i),[f.type]:e(f),[m.type]:e(m),[k.type]:e(k),[b.type]:e(b),[s.type]:e(s),[y.type]:e(y),[l.type]:e(l),[p.type]:e(p),[x.type]:e(x),[c.type]:e(c),[t.type]:e(t),[d.type]:e(d)},le=u([M.type,o.type,r.type,E.type,a.type,n.type,i.type,f.type,m.type,s.type,y.type,l.type,p.type,x.type,c.type,t.type,d.type],{title:"Brick type"}),xe={[M.type]:G,[o.type]:W,[r.type]:j,[E.type]:H,[a.type]:S,[n.type]:w,[i.type]:L,[g.type]:z,[f.type]:q,[m.type]:T,[k.type]:B,[b.type]:h,[s.type]:R,[y.type]:P,[l.type]:A,[p.type]:D,[x.type]:C,[c.type]:F,[t.type]:v,[d.type]:I};export{fe as a,ne as b,le as c,xe as d};
@@ -0,0 +1,3 @@
1
+ /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
+
3
+ import{c as p}from"./chunk-6PGAWO4H.js";import{a as c}from"./chunk-4GIZ6WSG.js";import{m as t}from"./chunk-F4JNKU7J.js";import{d as r,f as n}from"./chunk-7UBMXMNJ.js";import{b as i}from"./chunk-SFDRAHYP.js";import{c as e}from"./chunk-HSRXUIVM.js";import{PiConfetti as s}from"react-icons/pi";import{Type as o}from"@sinclair/typebox";var g=c({type:"icon",name:"Icon",category:"basic",description:"An icon.",aiInstructions:"Uses iconify references",resizable:!1,staticClasses:"!grow-0",icon:s,props:p({icon:n({default:"mdi:heart"}),size:o.Optional(e({title:"Size",description:"The size of the icon. Can be a CSS length value (e.g. '2em', '24px')",default:"1em","ui:css-units":["em","rem","px"],"ai:instructions":"Use 'em', 'rem', or 'px' for units. Example: '2em', '24px'"})),color:o.Optional(i({title:"Color",default:"currentColor","ui:hide-color-label":!0})),link:o.Optional(r({title:"Link"})),loop:o.Optional(t())},{noGrow:!0})}),k=[{description:"Large heart icon with inherited color and size",type:"icon",props:{icon:"mdi:heart"}},{description:"Shopping cart icon",type:"icon",props:{icon:"mdi:cart",size:"1.2em"}},{description:"Social media icon with blue color and link",type:"icon",props:{icon:"mdi:facebook",size:"1.5em",color:"#1877f2",link:"https://facebook.com/yourpage"}},{description:"Warning icon with orange color for alerts",type:"icon",props:{icon:"mdi:alert-triangle",size:"1.8em",color:"#f59e0b"}},{description:"Email contact icon with link",type:"icon",props:{icon:"mdi:email",size:"1.3em",color:"#4f46e5",link:"mailto:contact@example.com"}},{description:"Phone icon with green color",type:"icon",props:{icon:"mdi:phone",size:"1.4em",color:"#10b981"}},{description:"Location pin icon with red color",type:"icon",props:{icon:"mdi:map-marker",size:"2.2em",color:"#ef4444"}},{description:"Twitter/X icon with custom color and link",type:"icon",props:{icon:"mdi:twitter",size:"1.6em",color:"#000000",link:"https://x.com/yourhandle"}},{description:"Star rating icon with gold color",type:"icon",props:{icon:"mdi:star",size:"1.2em",color:"#fbbf24"}},{description:"Download icon with link and purple color",type:"icon",props:{icon:"mdi:download",size:"1.5em",color:"#8b5cf6",link:"/files/brochure.pdf"}},{description:"Menu hamburger icon for navigation",type:"icon",props:{icon:"mdi:menu",size:"1.8em",color:"#374151"}},{description:"Search icon with dark color",type:"icon",props:{icon:"mdi:magnify",size:"1.1em",color:"#1f2937"}}];export{g as a,k as b};
@@ -1,6 +1,6 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a as x}from"./chunk-L42YBY5I.js";import{b as c}from"./chunk-NXIF3UMD.js";import{a as l}from"./chunk-MPBYGS6W.js";import{b as u}from"./chunk-LEWKHCRI.js";import{a}from"./chunk-F4JNKU7J.js";import{b as y}from"./chunk-MVCVVKBY.js";import{b}from"./chunk-GC5OWY2Z.js";import{c as f}from"./chunk-Z4YKRLOX.js";import{b as h,d as g}from"./chunk-DKNOZLA6.js";import{c as s}from"./chunk-HSRXUIVM.js";import{a as m}from"./chunk-SFKZAUPW.js";import{Type as e}from"@sinclair/typebox";import{customAlphabet as P}from"nanoid";var S=P("azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN",7),R=e.Object({left:e.Optional(e.String({title:"top",description:"The left position in css unit."})),top:e.Optional(e.String({title:"top",description:"The top position in css unit."})),right:e.Optional(e.String({title:"right",description:"The right position in css unit."})),bottom:e.Optional(e.String({title:"bottom",description:"The bottom position in css unit."})),inset:e.Optional(e.String({title:"inset",description:"The inset position in css unit."})),translateX:e.Optional(e.String({title:"translateX",description:"The translateX position in css unit."})),translateY:e.Optional(e.String({title:"translateY",description:"The translateY position in css unit."})),rotate:e.Optional(e.String({title:"rotate",description:"The rotate position in css unit."}))}),v=m(Object.keys(c),{title:"Brick type"}),O=e.Object({id:e.String({title:"ID",description:"A unique identifier for the brick."}),type:v,props:e.Any({title:"Props",description:"The static props of the brick. The available props depends on the brick type."}),mobileProps:e.Optional(e.Any({title:"Props",description:"The overriden props for mobile, merged with desktop props."}))},{additionalProperties:!0});function G(t,o){return a(e.Object({id:e.String({title:"ID",description:"A unique identifier for the brick."}),type:e.Literal(t),props:o,mobileProps:e.Optional(e.Partial(o))},{additionalProperties:!1}))}var w=e.Object({colorPreset:e.Optional(f({title:"Color"})),backgroundImage:e.Optional(b({title:"Background",description:"The background image of the section. Prefer to set background images on sections rather than on individual bricks."})),direction:y({default:"flex-row",title:"Direction",description:"The direction of the section. Only apply to desktop. On mobile, it is always vertical.","ui:responsive":"desktop"}),minHeight:e.Optional(s({title:"Min height",default:"fit-content",description:"The min height of the section","ui:field":"hidden"})),variant:e.Optional(m(["navbar","footer","sidebar"],{title:"Custom section variant",description:"Used for custom styling and layout.",enumNames:["Navbar","Footer","Sidebar"],"ui:field":"hidden","ai:hidden":!0})),maxWidth:e.Optional(x("Max width","max-w-full",{options:[{value:"max-w-screen-lg",title:"M",description:"Common for text-heavy content/blog posts"},{value:"max-w-screen-xl",title:"L",description:"Usefull or some landing pages"},{value:"max-w-screen-2xl",title:"XL",description:"Common width"},{value:"max-w-full",title:"Full",description:"Takes the entire space"}],description:"The maximum width of the section. Desktop only","ai:instructions":"Choose the most appropriate max width for the section. You will likely use the same max width for all sections in a page.",displayAs:"button-group","ui:responsive":"desktop"})),justifyContent:e.Optional(h({default:"justify-center"})),alignItems:e.Optional(g({default:"items-center"})),padding:e.Optional(s({default:"2rem",description:"Padding inside the section.",title:"Padding","ui:responsive":!0,"ui:placeholder":"Not specified","ui:styleId":"styles:padding"})),gap:e.Optional(s({title:"Gap",description:"The gap between the bricks in the section.",default:"20px","ui:styleId":"styles:gap"})),wrap:e.Optional(e.Boolean({title:"Wrap",description:"Wrap bricks if they overflow the section.",default:!0,"ui:styleId":"styles:wrap"})),lastTouched:e.Optional(e.Number({description:"Do not use this field. It is used internally by the editor.","ui:field":"hidden","ai:hidden":!0}))},{additionalProperties:!1}),p=e.Object({id:e.String({description:"The unique ID of the section. Use a human readable url-safe slug",examples:["content-section","contact-section"]}),label:e.Optional(e.String({description:"The label of the section. Used for editor purposes only.",examples:["Content","Contact"]})),order:e.Number({description:"Determines section order in the page (lower numbers appear first). 0-based"}),props:w,mobileProps:e.Optional(e.Partial(w,{additionalProperties:!1})),bricks:e.Array(O)},{description:"Sections are direct children of the page that are stacked vertically."}),T=e.Omit(p,["bricks"]);function Y(){return a(T)}function H(){return a(p)}var j=u(p.properties.props,"desktop"),C=u(p.properties.mobileProps,"mobile");function J(t,o,i){let r=n=>({...n,props:l({},j,n.props),mobileProps:l({},C,n.mobileProps||{}),bricks:n.bricks.map(k).filter(Boolean)}),d=t.map(r);return o.navbar&&!i.noNavbar&&d.unshift(r({order:-1,id:"navbar-section",label:"Navbar section",props:{variant:"navbar",direction:"flex-row"},mobileProps:{},bricks:[{id:"navbar",type:"navbar",props:o.navbar}]})),o.footer&&!i.noFooter&&d.push(r({order:1e3,id:"footer-section",label:"Footer section",props:{variant:"footer",direction:"flex-row"},mobileProps:{},bricks:[{id:"footer",type:"footer",props:o.footer}]})),d}function k(t){let o=c[t.type];return{...t,props:l({},o.props,{...t.props,...t.props.$children?{$children:t.props.$children.map(k).filter(Boolean)}:{}})}}function X(t,o=!1){let i={...c[t].props,ghost:o};return{id:`b-${S()}`,type:t,props:i}}var V=[{label:"Hero section with centered 'hero' and 'button' bricks",description:`A simple hero section with a title and a light primary background.
3
+ import{a as x}from"./chunk-L42YBY5I.js";import{b as c}from"./chunk-5DZIQGY2.js";import{a as l}from"./chunk-MPBYGS6W.js";import{b as u}from"./chunk-LEWKHCRI.js";import{a}from"./chunk-F4JNKU7J.js";import{b as y}from"./chunk-MVCVVKBY.js";import{b}from"./chunk-GC5OWY2Z.js";import{c as f}from"./chunk-Z4YKRLOX.js";import{b as h,d as g}from"./chunk-DKNOZLA6.js";import{c as s}from"./chunk-HSRXUIVM.js";import{a as m}from"./chunk-SFKZAUPW.js";import{Type as e}from"@sinclair/typebox";import{customAlphabet as P}from"nanoid";var S=P("azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN",7),R=e.Object({left:e.Optional(e.String({title:"top",description:"The left position in css unit."})),top:e.Optional(e.String({title:"top",description:"The top position in css unit."})),right:e.Optional(e.String({title:"right",description:"The right position in css unit."})),bottom:e.Optional(e.String({title:"bottom",description:"The bottom position in css unit."})),inset:e.Optional(e.String({title:"inset",description:"The inset position in css unit."})),translateX:e.Optional(e.String({title:"translateX",description:"The translateX position in css unit."})),translateY:e.Optional(e.String({title:"translateY",description:"The translateY position in css unit."})),rotate:e.Optional(e.String({title:"rotate",description:"The rotate position in css unit."}))}),v=m(Object.keys(c),{title:"Brick type"}),O=e.Object({id:e.String({title:"ID",description:"A unique identifier for the brick."}),type:v,props:e.Any({title:"Props",description:"The static props of the brick. The available props depends on the brick type."}),mobileProps:e.Optional(e.Any({title:"Props",description:"The overriden props for mobile, merged with desktop props."}))},{additionalProperties:!0});function G(t,o){return a(e.Object({id:e.String({title:"ID",description:"A unique identifier for the brick."}),type:e.Literal(t),props:o,mobileProps:e.Optional(e.Partial(o))},{additionalProperties:!1}))}var w=e.Object({colorPreset:e.Optional(f({title:"Color"})),backgroundImage:e.Optional(b({title:"Background",description:"The background image of the section. Prefer to set background images on sections rather than on individual bricks."})),direction:y({default:"flex-row",title:"Direction",description:"The direction of the section. Only apply to desktop. On mobile, it is always vertical.","ui:responsive":"desktop"}),minHeight:e.Optional(s({title:"Min height",default:"fit-content",description:"The min height of the section","ui:field":"hidden"})),variant:e.Optional(m(["navbar","footer","sidebar"],{title:"Custom section variant",description:"Used for custom styling and layout.",enumNames:["Navbar","Footer","Sidebar"],"ui:field":"hidden","ai:hidden":!0})),maxWidth:e.Optional(x("Max width","max-w-full",{options:[{value:"max-w-screen-lg",title:"M",description:"Common for text-heavy content/blog posts"},{value:"max-w-screen-xl",title:"L",description:"Usefull or some landing pages"},{value:"max-w-screen-2xl",title:"XL",description:"Common width"},{value:"max-w-full",title:"Full",description:"Takes the entire space"}],description:"The maximum width of the section. Desktop only","ai:instructions":"Choose the most appropriate max width for the section. You will likely use the same max width for all sections in a page.",displayAs:"button-group","ui:responsive":"desktop"})),justifyContent:e.Optional(h({default:"justify-center"})),alignItems:e.Optional(g({default:"items-center"})),padding:e.Optional(s({default:"2rem",description:"Padding inside the section.",title:"Padding","ui:responsive":!0,"ui:placeholder":"Not specified","ui:styleId":"styles:padding"})),gap:e.Optional(s({title:"Gap",description:"The gap between the bricks in the section.",default:"20px","ui:styleId":"styles:gap"})),wrap:e.Optional(e.Boolean({title:"Wrap",description:"Wrap bricks if they overflow the section.",default:!0,"ui:styleId":"styles:wrap"})),lastTouched:e.Optional(e.Number({description:"Do not use this field. It is used internally by the editor.","ui:field":"hidden","ai:hidden":!0}))},{additionalProperties:!1}),p=e.Object({id:e.String({description:"The unique ID of the section. Use a human readable url-safe slug",examples:["content-section","contact-section"]}),label:e.Optional(e.String({description:"The label of the section. Used for editor purposes only.",examples:["Content","Contact"]})),order:e.Number({description:"Determines section order in the page (lower numbers appear first). 0-based"}),props:w,mobileProps:e.Optional(e.Partial(w,{additionalProperties:!1})),bricks:e.Array(O)},{description:"Sections are direct children of the page that are stacked vertically."}),T=e.Omit(p,["bricks"]);function Y(){return a(T)}function H(){return a(p)}var j=u(p.properties.props,"desktop"),C=u(p.properties.mobileProps,"mobile");function J(t,o,i){let r=n=>({...n,props:l({},j,n.props),mobileProps:l({},C,n.mobileProps||{}),bricks:n.bricks.map(k).filter(Boolean)}),d=t.map(r);return o.navbar&&!i.noNavbar&&d.unshift(r({order:-1,id:"navbar-section",label:"Navbar section",props:{variant:"navbar",direction:"flex-row"},mobileProps:{},bricks:[{id:"navbar",type:"navbar",props:o.navbar}]})),o.footer&&!i.noFooter&&d.push(r({order:1e3,id:"footer-section",label:"Footer section",props:{variant:"footer",direction:"flex-row"},mobileProps:{},bricks:[{id:"footer",type:"footer",props:o.footer}]})),d}function k(t){let o=c[t.type];return{...t,props:l({},o.props,{...t.props,...t.props.$children?{$children:t.props.$children.map(k).filter(Boolean)}:{}})}}function X(t,o=!1){let i={...c[t].props,ghost:o};return{id:`b-${S()}`,type:t,props:i}}var V=[{label:"Hero section with centered 'hero' and 'button' bricks",description:`A simple hero section with a title and a light primary background.
4
4
  The "hero" brick does not have a colorPreset so it is transparent and inherits the background/text-color settings from the section.
5
5
  Bricks are centered both vertically and horizontally using justifyContent and alignItems.
6
6
  Bricks are stacked vertically using the "direction" set to "flex-col".
@@ -1,6 +1,6 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a}from"./chunk-GXNHF6J5.js";import{a as t}from"./chunk-F4JNKU7J.js";import{a as i}from"./chunk-SFKZAUPW.js";import{Type as e}from"@sinclair/typebox";var n=e.Pick(a,["id","label","path","attributes"]),r=e.Array(e.Object({id:e.String({title:"Section ID",examples:["header-section","hero-section","features-section"],format:"slug"}),name:e.String({title:"Section name",examples:["Header","Hero","Features"]}),description:e.String({title:"A long description of the section",description:`You must elaborate a clear and detailled plan that describes:
3
+ import{a}from"./chunk-XZLBM4AX.js";import{a as t}from"./chunk-F4JNKU7J.js";import{a as i}from"./chunk-SFKZAUPW.js";import{Type as e}from"@sinclair/typebox";var n=e.Pick(a,["id","label","path","attributes"]),r=e.Array(e.Object({id:e.String({title:"Section ID",examples:["header-section","hero-section","features-section"],format:"slug"}),name:e.String({title:"Section name",examples:["Header","Hero","Features"]}),description:e.String({title:"A long description of the section",description:`You must elaborate a clear and detailled plan that describes:
4
4
  - The section purpose in the page, in detail.
5
5
  - The section structure, look & feel, and structural/design organization, in detail
6
6
  - the types of bricks (e.g. "container", "text", "video", "carousel", etc) that will be used and their purpose, in detail
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a as o}from"./chunk-PW5HRVMD.js";import{f as a}from"./chunk-COT2ROEH.js";import{a as t}from"./chunk-F4JNKU7J.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};
3
+ import{a as o}from"./chunk-PW5HRVMD.js";import{f as a}from"./chunk-ML4JSDQM.js";import{a as t}from"./chunk-F4JNKU7J.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};
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a,b}from"./chunk-GXNHF6J5.js";import"./chunk-PW5HRVMD.js";import"./chunk-AMQAGDFH.js";import"./chunk-COT2ROEH.js";import"./chunk-L42YBY5I.js";import"./chunk-NXIF3UMD.js";import"./chunk-VDX2J22H.js";import"./chunk-IFEIRRZ2.js";import"./chunk-URRCKLAS.js";import"./chunk-HP7CZB2F.js";import"./chunk-2NLDX5FG.js";import"./chunk-XED6ARVN.js";import"./chunk-3QOAHMV4.js";import"./chunk-EVDZ2KND.js";import"./chunk-3P36LG6T.js";import"./chunk-ARYG4XMX.js";import"./chunk-QGFQA7OZ.js";import"./chunk-MKIXZXWS.js";import"./chunk-5X5SX5N7.js";import"./chunk-6R76KIHZ.js";import"./chunk-VE3S4LGT.js";import"./chunk-Y3X4F4YJ.js";import"./chunk-LT4CW2F7.js";import"./chunk-ILIWVWHC.js";import"./chunk-SAJY7H6N.js";import"./chunk-STDCM2KD.js";import"./chunk-TH5SONR6.js";import"./chunk-MPBYGS6W.js";import"./chunk-UDQWYGSO.js";import"./chunk-AZHH3XJJ.js";import"./chunk-YIFNKP4J.js";import"./chunk-6PGAWO4H.js";import"./chunk-4GIZ6WSG.js";import"./chunk-LEWKHCRI.js";import"./chunk-F4JNKU7J.js";import"./chunk-3FPFR5RA.js";import"./chunk-7UBMXMNJ.js";import"./chunk-US53TNMK.js";import"./chunk-VK26ZZFR.js";import"./chunk-MVCVVKBY.js";import"./chunk-AB3IMRXZ.js";import"./chunk-GC5OWY2Z.js";import"./chunk-DHSWVVMI.js";import"./chunk-Z4YKRLOX.js";import"./chunk-SFDRAHYP.js";import"./chunk-JRCVYDCD.js";import"./chunk-DKNOZLA6.js";import"./chunk-HSRXUIVM.js";import"./chunk-5WY7LYXK.js";import"./chunk-SFKZAUPW.js";export{b as getPageSchemaForLLM,a as pageSchema};
3
+ import{a,b}from"./chunk-XZLBM4AX.js";import"./chunk-PW5HRVMD.js";import"./chunk-AMQAGDFH.js";import"./chunk-ML4JSDQM.js";import"./chunk-L42YBY5I.js";import"./chunk-5DZIQGY2.js";import"./chunk-VDX2J22H.js";import"./chunk-IFEIRRZ2.js";import"./chunk-URRCKLAS.js";import"./chunk-HP7CZB2F.js";import"./chunk-2NLDX5FG.js";import"./chunk-XED6ARVN.js";import"./chunk-3QOAHMV4.js";import"./chunk-EVDZ2KND.js";import"./chunk-3P36LG6T.js";import"./chunk-ARYG4XMX.js";import"./chunk-QGFQA7OZ.js";import"./chunk-MKIXZXWS.js";import"./chunk-5X5SX5N7.js";import"./chunk-6R76KIHZ.js";import"./chunk-K5ADUHF4.js";import"./chunk-Y3X4F4YJ.js";import"./chunk-LT4CW2F7.js";import"./chunk-ILIWVWHC.js";import"./chunk-SAJY7H6N.js";import"./chunk-STDCM2KD.js";import"./chunk-TH5SONR6.js";import"./chunk-MPBYGS6W.js";import"./chunk-UDQWYGSO.js";import"./chunk-AZHH3XJJ.js";import"./chunk-YIFNKP4J.js";import"./chunk-6PGAWO4H.js";import"./chunk-4GIZ6WSG.js";import"./chunk-LEWKHCRI.js";import"./chunk-F4JNKU7J.js";import"./chunk-3FPFR5RA.js";import"./chunk-7UBMXMNJ.js";import"./chunk-US53TNMK.js";import"./chunk-VK26ZZFR.js";import"./chunk-MVCVVKBY.js";import"./chunk-AB3IMRXZ.js";import"./chunk-GC5OWY2Z.js";import"./chunk-DHSWVVMI.js";import"./chunk-Z4YKRLOX.js";import"./chunk-SFDRAHYP.js";import"./chunk-JRCVYDCD.js";import"./chunk-DKNOZLA6.js";import"./chunk-HSRXUIVM.js";import"./chunk-5WY7LYXK.js";import"./chunk-SFKZAUPW.js";export{b as getPageSchemaForLLM,a as pageSchema};
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{d as p}from"./chunk-UCR2UZOY.js";import"./chunk-L2HOZVBC.js";import"./chunk-X62OEAE6.js";import"./chunk-NKIEDT7V.js";import{d as c}from"./chunk-QDJQAZIA.js";import{b as e,e as n}from"./chunk-TCTVRT4O.js";import{a as o}from"./chunk-GXNHF6J5.js";import{a as m}from"./chunk-ZJNA4QQC.js";import{c as a,g as i,h as s}from"./chunk-PW5HRVMD.js";import"./chunk-AMQAGDFH.js";import"./chunk-COT2ROEH.js";import"./chunk-L42YBY5I.js";import"./chunk-NXIF3UMD.js";import"./chunk-VDX2J22H.js";import"./chunk-IFEIRRZ2.js";import"./chunk-URRCKLAS.js";import"./chunk-HP7CZB2F.js";import"./chunk-2NLDX5FG.js";import"./chunk-XED6ARVN.js";import"./chunk-3QOAHMV4.js";import"./chunk-EVDZ2KND.js";import"./chunk-3P36LG6T.js";import"./chunk-ARYG4XMX.js";import"./chunk-QGFQA7OZ.js";import"./chunk-MKIXZXWS.js";import"./chunk-5X5SX5N7.js";import"./chunk-6R76KIHZ.js";import"./chunk-VE3S4LGT.js";import"./chunk-Y3X4F4YJ.js";import"./chunk-LT4CW2F7.js";import"./chunk-ILIWVWHC.js";import"./chunk-SAJY7H6N.js";import"./chunk-STDCM2KD.js";import"./chunk-TH5SONR6.js";import"./chunk-MPBYGS6W.js";import"./chunk-UDQWYGSO.js";import"./chunk-AZHH3XJJ.js";import"./chunk-YIFNKP4J.js";import"./chunk-6PGAWO4H.js";import"./chunk-4GIZ6WSG.js";import"./chunk-LEWKHCRI.js";import{f as r}from"./chunk-F4JNKU7J.js";import"./chunk-3FPFR5RA.js";import"./chunk-7UBMXMNJ.js";import"./chunk-US53TNMK.js";import"./chunk-VK26ZZFR.js";import"./chunk-MVCVVKBY.js";import"./chunk-AB3IMRXZ.js";import"./chunk-GC5OWY2Z.js";import"./chunk-DHSWVVMI.js";import"./chunk-Z4YKRLOX.js";import"./chunk-SFDRAHYP.js";import"./chunk-JRCVYDCD.js";import"./chunk-DKNOZLA6.js";import"./chunk-HSRXUIVM.js";import"./chunk-5WY7LYXK.js";import"./chunk-SFKZAUPW.js";import{Type as t}from"@sinclair/typebox";var h=t.Object({id:t.String(),label:t.String(),hostname:t.String(),attributes:a,datasources:r,datarecords:p,themes:t.Array(e),theme:e,sitemap:c,sitePrompt:m}),P=t.Object({site:h,pages:t.Array(o)});function x(d){return{site:{id:crypto.randomUUID(),label:"My site",hostname:"example.com",sitePrompt:d,theme:n,themes:[],sitemap:[],attributes:s(),datarecords:[],datasources:[]},pages:[{id:"_default_",label:"First page with really really long name that should be truncated",sections:[],attributes:i({path:"/"})}]}}export{x as createEmptyConfig,h as siteSchema};
3
+ import{d as p}from"./chunk-UCR2UZOY.js";import"./chunk-L2HOZVBC.js";import"./chunk-X62OEAE6.js";import"./chunk-NKIEDT7V.js";import{d as c}from"./chunk-PO6UODZ5.js";import{b as e,e as n}from"./chunk-46YDGGFF.js";import{a as o}from"./chunk-XZLBM4AX.js";import{a as m}from"./chunk-ZJNA4QQC.js";import{c as a,g as i,h as s}from"./chunk-PW5HRVMD.js";import"./chunk-AMQAGDFH.js";import"./chunk-ML4JSDQM.js";import"./chunk-L42YBY5I.js";import"./chunk-5DZIQGY2.js";import"./chunk-VDX2J22H.js";import"./chunk-IFEIRRZ2.js";import"./chunk-URRCKLAS.js";import"./chunk-HP7CZB2F.js";import"./chunk-2NLDX5FG.js";import"./chunk-XED6ARVN.js";import"./chunk-3QOAHMV4.js";import"./chunk-EVDZ2KND.js";import"./chunk-3P36LG6T.js";import"./chunk-ARYG4XMX.js";import"./chunk-QGFQA7OZ.js";import"./chunk-MKIXZXWS.js";import"./chunk-5X5SX5N7.js";import"./chunk-6R76KIHZ.js";import"./chunk-K5ADUHF4.js";import"./chunk-Y3X4F4YJ.js";import"./chunk-LT4CW2F7.js";import"./chunk-ILIWVWHC.js";import"./chunk-SAJY7H6N.js";import"./chunk-STDCM2KD.js";import"./chunk-TH5SONR6.js";import"./chunk-MPBYGS6W.js";import"./chunk-UDQWYGSO.js";import"./chunk-AZHH3XJJ.js";import"./chunk-YIFNKP4J.js";import"./chunk-6PGAWO4H.js";import"./chunk-4GIZ6WSG.js";import"./chunk-LEWKHCRI.js";import{f as r}from"./chunk-F4JNKU7J.js";import"./chunk-3FPFR5RA.js";import"./chunk-7UBMXMNJ.js";import"./chunk-US53TNMK.js";import"./chunk-VK26ZZFR.js";import"./chunk-MVCVVKBY.js";import"./chunk-AB3IMRXZ.js";import"./chunk-GC5OWY2Z.js";import"./chunk-DHSWVVMI.js";import"./chunk-Z4YKRLOX.js";import"./chunk-SFDRAHYP.js";import"./chunk-JRCVYDCD.js";import"./chunk-DKNOZLA6.js";import"./chunk-HSRXUIVM.js";import"./chunk-5WY7LYXK.js";import"./chunk-SFKZAUPW.js";import{Type as t}from"@sinclair/typebox";var h=t.Object({id:t.String(),label:t.String(),hostname:t.String(),attributes:a,datasources:r,datarecords:p,themes:t.Array(e),theme:e,sitemap:c,sitePrompt:m}),P=t.Object({site:h,pages:t.Array(o)});function x(d){return{site:{id:crypto.randomUUID(),label:"My site",hostname:"example.com",sitePrompt:d,theme:n,themes:[],sitemap:[],attributes:s(),datarecords:[],datasources:[]},pages:[{id:"_default_",label:"First page with really really long name that should be truncated",sections:[],attributes:i({path:"/"})}]}}export{x as createEmptyConfig,h as siteSchema};
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a,b,c,d,e,f}from"./chunk-QDJQAZIA.js";import"./chunk-GXNHF6J5.js";import"./chunk-PW5HRVMD.js";import"./chunk-AMQAGDFH.js";import"./chunk-COT2ROEH.js";import"./chunk-L42YBY5I.js";import"./chunk-NXIF3UMD.js";import"./chunk-VDX2J22H.js";import"./chunk-IFEIRRZ2.js";import"./chunk-URRCKLAS.js";import"./chunk-HP7CZB2F.js";import"./chunk-2NLDX5FG.js";import"./chunk-XED6ARVN.js";import"./chunk-3QOAHMV4.js";import"./chunk-EVDZ2KND.js";import"./chunk-3P36LG6T.js";import"./chunk-ARYG4XMX.js";import"./chunk-QGFQA7OZ.js";import"./chunk-MKIXZXWS.js";import"./chunk-5X5SX5N7.js";import"./chunk-6R76KIHZ.js";import"./chunk-VE3S4LGT.js";import"./chunk-Y3X4F4YJ.js";import"./chunk-LT4CW2F7.js";import"./chunk-ILIWVWHC.js";import"./chunk-SAJY7H6N.js";import"./chunk-STDCM2KD.js";import"./chunk-TH5SONR6.js";import"./chunk-MPBYGS6W.js";import"./chunk-UDQWYGSO.js";import"./chunk-AZHH3XJJ.js";import"./chunk-YIFNKP4J.js";import"./chunk-6PGAWO4H.js";import"./chunk-4GIZ6WSG.js";import"./chunk-LEWKHCRI.js";import"./chunk-F4JNKU7J.js";import"./chunk-3FPFR5RA.js";import"./chunk-7UBMXMNJ.js";import"./chunk-US53TNMK.js";import"./chunk-VK26ZZFR.js";import"./chunk-MVCVVKBY.js";import"./chunk-AB3IMRXZ.js";import"./chunk-GC5OWY2Z.js";import"./chunk-DHSWVVMI.js";import"./chunk-Z4YKRLOX.js";import"./chunk-SFDRAHYP.js";import"./chunk-JRCVYDCD.js";import"./chunk-DKNOZLA6.js";import"./chunk-HSRXUIVM.js";import"./chunk-5WY7LYXK.js";import"./chunk-SFKZAUPW.js";export{e as getSitemapSchemaForLLM,f as getSitemapSchemaNoPlansForLLM,b as sectionsPlanSchema,c as sitemapEntry,a as sitemapPageEntry,d as sitemapSchema};
3
+ import{a,b,c,d,e,f}from"./chunk-PO6UODZ5.js";import"./chunk-XZLBM4AX.js";import"./chunk-PW5HRVMD.js";import"./chunk-AMQAGDFH.js";import"./chunk-ML4JSDQM.js";import"./chunk-L42YBY5I.js";import"./chunk-5DZIQGY2.js";import"./chunk-VDX2J22H.js";import"./chunk-IFEIRRZ2.js";import"./chunk-URRCKLAS.js";import"./chunk-HP7CZB2F.js";import"./chunk-2NLDX5FG.js";import"./chunk-XED6ARVN.js";import"./chunk-3QOAHMV4.js";import"./chunk-EVDZ2KND.js";import"./chunk-3P36LG6T.js";import"./chunk-ARYG4XMX.js";import"./chunk-QGFQA7OZ.js";import"./chunk-MKIXZXWS.js";import"./chunk-5X5SX5N7.js";import"./chunk-6R76KIHZ.js";import"./chunk-K5ADUHF4.js";import"./chunk-Y3X4F4YJ.js";import"./chunk-LT4CW2F7.js";import"./chunk-ILIWVWHC.js";import"./chunk-SAJY7H6N.js";import"./chunk-STDCM2KD.js";import"./chunk-TH5SONR6.js";import"./chunk-MPBYGS6W.js";import"./chunk-UDQWYGSO.js";import"./chunk-AZHH3XJJ.js";import"./chunk-YIFNKP4J.js";import"./chunk-6PGAWO4H.js";import"./chunk-4GIZ6WSG.js";import"./chunk-LEWKHCRI.js";import"./chunk-F4JNKU7J.js";import"./chunk-3FPFR5RA.js";import"./chunk-7UBMXMNJ.js";import"./chunk-US53TNMK.js";import"./chunk-VK26ZZFR.js";import"./chunk-MVCVVKBY.js";import"./chunk-AB3IMRXZ.js";import"./chunk-GC5OWY2Z.js";import"./chunk-DHSWVVMI.js";import"./chunk-Z4YKRLOX.js";import"./chunk-SFDRAHYP.js";import"./chunk-JRCVYDCD.js";import"./chunk-DKNOZLA6.js";import"./chunk-HSRXUIVM.js";import"./chunk-5WY7LYXK.js";import"./chunk-SFKZAUPW.js";export{e as getSitemapSchemaForLLM,f as getSitemapSchemaNoPlansForLLM,b as sectionsPlanSchema,c as sitemapEntry,a as sitemapPageEntry,d as sitemapSchema};
@@ -1,3 +1,3 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
2
 
3
- import{a,b,c,d,e,f,g}from"./chunk-TCTVRT4O.js";import"./chunk-F4JNKU7J.js";import"./chunk-3FPFR5RA.js";import"./chunk-7UBMXMNJ.js";import"./chunk-US53TNMK.js";import"./chunk-VK26ZZFR.js";import"./chunk-MVCVVKBY.js";import"./chunk-AB3IMRXZ.js";import"./chunk-GC5OWY2Z.js";import"./chunk-DHSWVVMI.js";import"./chunk-Z4YKRLOX.js";import"./chunk-SFDRAHYP.js";import"./chunk-JRCVYDCD.js";import"./chunk-DKNOZLA6.js";import"./chunk-HSRXUIVM.js";import"./chunk-5WY7LYXK.js";import"./chunk-SFKZAUPW.js";export{e as defaultTheme,a as fontStacks,d as getThemesArrayForLLM,f as isDefaultTheme,g as processTheme,b as themeSchema,c as themesArray};
3
+ import{a,b,c,d,e,f,g}from"./chunk-46YDGGFF.js";import"./chunk-F4JNKU7J.js";import"./chunk-3FPFR5RA.js";import"./chunk-7UBMXMNJ.js";import"./chunk-US53TNMK.js";import"./chunk-VK26ZZFR.js";import"./chunk-MVCVVKBY.js";import"./chunk-AB3IMRXZ.js";import"./chunk-GC5OWY2Z.js";import"./chunk-DHSWVVMI.js";import"./chunk-Z4YKRLOX.js";import"./chunk-SFDRAHYP.js";import"./chunk-JRCVYDCD.js";import"./chunk-DKNOZLA6.js";import"./chunk-HSRXUIVM.js";import"./chunk-5WY7LYXK.js";import"./chunk-SFKZAUPW.js";export{e as defaultTheme,a as fontStacks,d as getThemesArrayForLLM,f as isDefaultTheme,g as processTheme,b as themeSchema,c as themesArray};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upstart.gg/sdk",
3
- "version": "0.0.131",
3
+ "version": "0.0.132",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -41,7 +41,7 @@
41
41
  "usehooks-ts": "3.1.0",
42
42
  "zundo": "2.3.0",
43
43
  "zustand": "4.5.5",
44
- "@upstart.gg/style-system": "0.0.131"
44
+ "@upstart.gg/style-system": "0.0.132"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@headlessui/react": "^2.2.1",
@@ -74,6 +74,10 @@ export type Tools = {
74
74
  input: WaitingMessageSchema & { sectionId: string; index: number }; // Just type the waiting message for now
75
75
  output: Brick;
76
76
  };
77
+ editBrick: {
78
+ input: WaitingMessageSchema & { id: string }; // Just type the waiting message for now
79
+ output: Brick;
80
+ };
77
81
  listImages: {
78
82
  input: null; // Just type the waiting message for now
79
83
  output: ImageSearchResultsType;
@@ -15,7 +15,7 @@ export const manifest = defineBrickManifest({
15
15
  description: "An icon.",
16
16
  aiInstructions: "Uses iconify references",
17
17
  resizable: false,
18
- staticClasses: "grow-0",
18
+ staticClasses: "!grow-0",
19
19
  icon: PiConfetti,
20
20
  props: defineProps(
21
21
  {
@@ -75,7 +75,7 @@ export const themeSchema = Type.Object(
75
75
  title: "Primary",
76
76
  description: "The brand's primary color.",
77
77
  "ai:instructions": "Use oklch() css notation.",
78
- examples: ["oklch(65.6% 0.241 354.308)"],
78
+ examples: ["oklch(0.62 0.241 354.308)"],
79
79
  }),
80
80
  secondary: Type.String({
81
81
  title: "Secondary",
@@ -176,7 +176,7 @@ export const defaultTheme: Theme = {
176
176
  base100: "#FFF", // Warm white background
177
177
  base200: "oklch(0.99 0.008 92)", // Soft cream
178
178
  base300: "oklch(0.97 0.01 85)", // Light warm gray
179
- primary: "oklch(65.6% 0.241 354.308)",
179
+ primary: "oklch(0.55 0.241 354.308)",
180
180
  secondary: "oklch(0.65 0.22 185)",
181
181
  accent: "oklch(0.82 0.18 85)",
182
182
  neutral: "oklch(0.38 0.08 280)",
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
-
3
- import{a as l}from"./chunk-F4JNKU7J.js";import{a}from"./chunk-SFKZAUPW.js";import{Type as e}from"@sinclair/typebox";import c from"chroma-js";import{colorPalette as m}from"@upstart.gg/style-system/colors";var v=[{value:"system-ui",label:"System UI"},{value:"transitional",label:"Transitional"},{value:"old-style",label:"Old style"},{value:"humanist",label:"Humanist"},{value:"geometric-humanist",label:"Geometric humanist"},{value:"classical-humanist",label:"Classical humanist"},{value:"neo-grotesque",label:"Neo-grotesque"},{value:"monospace-slab-serif",label:"Monospace slab serif"},{value:"monospace-code",label:"Monospace code"},{value:"industrial",label:"Industrial"},{value:"rounded-sans",label:"Rounded sans"},{value:"slab-serif",label:"Slab serif"},{value:"antique",label:"Antique"},{value:"didone",label:"Didone"},{value:"handwritten",label:"Handwritten"}],h=e.Object({type:a(["stack","theme","google"],{title:"Type of font",description:"The type of font. Can be a font stack, a theme font or a Google font"}),family:e.String({title:"Family",description:"The font family (eg. the name of the font)"})},{title:"Headings font",description:"Used for titles and headings",additionalProperties:!1}),d=e.Object({type:a(["stack","theme","google"],{title:"Type of font",description:"The type of font. Can be a font stack, a theme font or a Google font"}),family:e.String({title:"Family",description:"The font family (eg. the name of the font)"})},{title:"Body font",description:"Used for paragraphs and body text",additionalProperties:!1}),p=e.Object({id:e.String({title:"ID",description:"The unique identifier of the theme"}),name:e.String({title:"Name",description:"The name of the theme"}),description:e.String({title:"Description",description:"The description of the theme"}),tags:e.Array(e.String({title:"Tag"}),{title:"Tags",description:"The tags of the theme"}),browserColorScheme:a(["light","dark"],{title:"Browser scheme",description:"Color of browser-provided UI. Either 'light' or 'dark'"}),colors:e.Object({primary:e.String({title:"Primary",description:"The brand's primary color.","ai:instructions":"Use oklch() css notation.",examples:["oklch(65.6% 0.241 354.308)"]}),secondary:e.String({title:"Secondary",description:"The brand's second most used color","ai:instructions":"Use oklch() css notation.",examples:["oklch(0.65 0.22 185)"]}),accent:e.String({title:"Accent",description:"The brand's least used color","ai:instructions":"Use oklch() css notation.",examples:["oklch(0.82 0.18 85)"]}),neutral:e.String({title:"Neutral",description:"The base neutral color","ai:instructions":"Use oklch() css notation.",examples:["oklch(0.38 0.08 280)"]}),base100:e.String({title:"Base",description:"Base surface color of page, used for blank backgrounds. Should be white or near-white for light color-schemes, and black or near-black for dark color-schemes.","ai:instructions":"Use oklab() css notation.",examples:["oklch(0.99 0.008 92)"]}),base200:e.String({title:"Base 2",description:"Should be darker than base 100 but still light for light color-schemes, and lighter but still dark for dark color-schemes.","ai:instructions":"Use oklab() css notation.",examples:["oklch(0.97 0.01 85)"]}),base300:e.String({title:"Base 3",description:"3rd base color, should be darker than base 200 for light color-schemes, and lighter than base 200 for dark color-schemes.","ai:instructions":"Use oklab() css notation.",examples:["oklch(0.95 0.02 80)"]})},{title:"Theme base colors",description:"The base colors of the theme. Each theme must declare all these colors",additionalProperties:!1}),typography:e.Object({base:e.Number({title:"Base font size",description:"The base font size in pixels. It is safe to keep it as is.","ai:instructions":"A safe value is 16."}),heading:h,body:d,alternatives:e.Array(e.Object({body:d,heading:h},{additionalProperties:!1}),{title:"Alternative fonts",description:"Alternative fonts that can be suggested to the user. Takes the same shape"})},{additionalProperties:!1})},{additionalProperties:!1}),f=e.Array(p);function x(){return l(f)}var u={id:"_default_",name:"default",description:"Default Upstart theme",tags:["gradient","vibrant","modern","creative","dynamic","artistic","bold"],browserColorScheme:"light",colors:{base100:"#FFF",base200:"oklch(0.99 0.008 92)",base300:"oklch(0.97 0.01 85)",primary:"oklch(65.6% 0.241 354.308)",secondary:"oklch(0.65 0.22 185)",accent:"oklch(0.82 0.18 85)",neutral:"oklch(0.38 0.08 280)"},typography:{base:16,heading:{type:"stack",family:"system-ui"},body:{type:"stack",family:"system-ui"},alternatives:[]}};function A(t){return t.id===u.id}function U(t){return{...t,typography:{...t.typography,base:16},colors:Object.entries(t.colors).reduce((s,[r,o])=>{let i=b(o);return{...s,[r]:i}},{})}}function b(t){if(c.valid(t))return t;if(/ok(lch|lab)\(([^)]+)\)/.test(t)){let o=t.replace(/,/g," ");if(c.valid(o))return o}if(/^([a-z]+)-([0-9]+)$/.test(t)){let[o,i]=t.split("-"),n=m[o]?.[i];if(n)return n}return t}export{v as a,p as b,f as c,x as d,u as e,A as f,U as g};
@@ -1,3 +0,0 @@
1
- /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
2
-
3
- import{c as p}from"./chunk-6PGAWO4H.js";import{a as c}from"./chunk-4GIZ6WSG.js";import{m as t}from"./chunk-F4JNKU7J.js";import{d as r,f as n}from"./chunk-7UBMXMNJ.js";import{b as i}from"./chunk-SFDRAHYP.js";import{c as e}from"./chunk-HSRXUIVM.js";import{PiConfetti as s}from"react-icons/pi";import{Type as o}from"@sinclair/typebox";var g=c({type:"icon",name:"Icon",category:"basic",description:"An icon.",aiInstructions:"Uses iconify references",resizable:!1,staticClasses:"grow-0",icon:s,props:p({icon:n({default:"mdi:heart"}),size:o.Optional(e({title:"Size",description:"The size of the icon. Can be a CSS length value (e.g. '2em', '24px')",default:"1em","ui:css-units":["em","rem","px"],"ai:instructions":"Use 'em', 'rem', or 'px' for units. Example: '2em', '24px'"})),color:o.Optional(i({title:"Color",default:"currentColor","ui:hide-color-label":!0})),link:o.Optional(r({title:"Link"})),loop:o.Optional(t())},{noGrow:!0})}),k=[{description:"Large heart icon with inherited color and size",type:"icon",props:{icon:"mdi:heart"}},{description:"Shopping cart icon",type:"icon",props:{icon:"mdi:cart",size:"1.2em"}},{description:"Social media icon with blue color and link",type:"icon",props:{icon:"mdi:facebook",size:"1.5em",color:"#1877f2",link:"https://facebook.com/yourpage"}},{description:"Warning icon with orange color for alerts",type:"icon",props:{icon:"mdi:alert-triangle",size:"1.8em",color:"#f59e0b"}},{description:"Email contact icon with link",type:"icon",props:{icon:"mdi:email",size:"1.3em",color:"#4f46e5",link:"mailto:contact@example.com"}},{description:"Phone icon with green color",type:"icon",props:{icon:"mdi:phone",size:"1.4em",color:"#10b981"}},{description:"Location pin icon with red color",type:"icon",props:{icon:"mdi:map-marker",size:"2.2em",color:"#ef4444"}},{description:"Twitter/X icon with custom color and link",type:"icon",props:{icon:"mdi:twitter",size:"1.6em",color:"#000000",link:"https://x.com/yourhandle"}},{description:"Star rating icon with gold color",type:"icon",props:{icon:"mdi:star",size:"1.2em",color:"#fbbf24"}},{description:"Download icon with link and purple color",type:"icon",props:{icon:"mdi:download",size:"1.5em",color:"#8b5cf6",link:"/files/brochure.pdf"}},{description:"Menu hamburger icon for navigation",type:"icon",props:{icon:"mdi:menu",size:"1.8em",color:"#374151"}},{description:"Search icon with dark color",type:"icon",props:{icon:"mdi:magnify",size:"1.1em",color:"#1f2937"}}];export{g as a,k as b};