webstudio 0.209.0 → 0.210.0
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/lib/cli.js +407 -489
- package/package.json +23 -23
- package/templates/cloudflare/package.json +2 -2
- package/templates/defaults/package.json +12 -12
- package/templates/react-router/package.json +11 -11
- package/templates/react-router-docker/package.json +3 -3
- package/templates/react-router-netlify/package.json +1 -1
- package/templates/react-router-vercel/package.json +1 -1
- package/templates/ssg/package.json +7 -7
package/lib/cli.js
CHANGED
|
@@ -30,7 +30,7 @@ import reservedIdentifiers from "reserved-identifiers";
|
|
|
30
30
|
import { kebabCase, camelCase } from "change-case";
|
|
31
31
|
import "nanoid";
|
|
32
32
|
import { parseFragment, defaultTreeAdapter } from "parse5";
|
|
33
|
-
import { x as x$
|
|
33
|
+
import { x as x$4 } from "tinyexec";
|
|
34
34
|
import makeCLI from "yargs";
|
|
35
35
|
const GLOBAL_CONFIG_FOLDER = envPaths("webstudio").config;
|
|
36
36
|
const GLOBAL_CONFIG_FILE_NAME = "webstudio-config.json";
|
|
@@ -1637,6 +1637,7 @@ var generateAtomic = (sheet, options) => {
|
|
|
1637
1637
|
};
|
|
1638
1638
|
var AccordionIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M13.056 8H14.5V4.101a1.3 1.3 0 0 0-1.3-1.299H2.8a1.3 1.3 0 0 0-1.3 1.3V8H13.056ZM13.056 13.198h.145a1.3 1.3 0 0 0 1.299-1.3V8h-13v3.899a1.3 1.3 0 0 0 1.3 1.299h10.256Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m10.026 4.913.975.976.976-.976M10.026 10.111l.975.976.976-.976"/></svg>`;
|
|
1639
1639
|
var AddTemplateInstanceIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4.5 2H3.333A1.333 1.333 0 0 0 2 3.333V4.5M14 12.667c0 .021 0 .042-.002.063M11.5 14h1.167a1.333 1.333 0 0 0 1.331-1.27m0 0V11.5M2 11.5v1.167A1.333 1.333 0 0 0 3.333 14H4.5M7 14h2M2 7v2M8.461 4.77H14M11.23 2v5.538"/></svg>`;
|
|
1640
|
+
var AnimationGroupIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4.5 8.3C6.3 7.7 7.8 8 9.3 11c.3-1.8 1.2-4.5 2.1-6M4.208 1.5H2.944A1.444 1.444 0 0 0 1.5 2.944v1.264m13 0V2.944A1.444 1.444 0 0 0 13.056 1.5h-1.264M14.5 13.056c0 .023 0 .046-.002.069M11.792 14.5h1.264a1.444 1.444 0 0 0 1.442-1.375m0 0v-1.333m-12.998 0v1.264A1.444 1.444 0 0 0 2.944 14.5h1.264m2.709-13h2.166m-2.166 13h2.166M1.5 6.917v2.166m13-2.166v2.166"/></svg>`;
|
|
1640
1641
|
var BlockquoteIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" d="M6.667 8H3.333a.667.667 0 0 1-.666-.667V5a.667.667 0 0 1 .666-.667H6A.667.667 0 0 1 6.667 5v3Zm0 0C6.667 9.667 6 10.667 4 11.667M13.333 8H10a.667.667 0 0 1-.667-.667V5A.667.667 0 0 1 10 4.333h2.667a.667.667 0 0 1 .666.667v3Zm0 0c0 1.667-.666 2.667-2.666 3.667"/></svg>`;
|
|
1641
1642
|
var BodyIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12.667 2H3.333C2.597 2 2 2.597 2 3.333v9.334C2 13.403 2.597 14 3.333 14h9.334c.736 0 1.333-.597 1.333-1.333V3.333C14 2.597 13.403 2 12.667 2ZM2 6h12"/></svg>`;
|
|
1642
1643
|
var BoldIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4 8h6a2.667 2.667 0 0 1 0 5.333H4.667A.667.667 0 0 1 4 12.667V3.333a.667.667 0 0 1 .667-.666h4.666a2.667 2.667 0 1 1 0 5.333"/></svg>`;
|
|
@@ -1675,11 +1676,13 @@ var ResourceIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox=
|
|
|
1675
1676
|
var SelectIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M13.184 10.33h.149c.736 0 1.332-.597 1.332-1.332V6.332c0-.735-.596-1.332-1.332-1.332H2.667c-.735 0-1.332.597-1.332 1.332v2.666c0 .735.597 1.332 1.333 1.332h10.516Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m10.078 7.165 1 1 1-1"/></svg>`;
|
|
1676
1677
|
var SettingsIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M13.987 6H9.32M13.932 6h-12M14 10.5H2"/><rect width="4" height="4" x="1.932" y="8.534" fill="#fff" stroke="currentColor" rx="2"/><rect width="4" height="4" x="10.068" y="4" fill="#fff" stroke="currentColor" rx="2"/></svg>`;
|
|
1677
1678
|
var SlotComponentIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4.5 2H3.333A1.333 1.333 0 0 0 2 3.333V4.5M14 4.5V3.333A1.333 1.333 0 0 0 12.667 2H11.5M14 12.667c0 .021 0 .042-.002.063M11.5 14h1.167a1.333 1.333 0 0 0 1.331-1.27m0 0V11.5M2 11.5v1.167A1.333 1.333 0 0 0 3.333 14H4.5M7 2h2M7 14h2M2 7v2M14 7v2"/></svg>`;
|
|
1679
|
+
var StaggerAnimationIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M14.222 5H8.778A.778.778 0 0 0 8 5.778v5.444c0 .43.348.778.778.778h5.444c.43 0 .778-.348.778-.778V5.778A.778.778 0 0 0 14.222 5ZM5.444 6H1.556A.556.556 0 0 0 1 6.556v3.888c0 .307.249.556.556.556h3.888A.556.556 0 0 0 6 10.444V6.556A.556.556 0 0 0 5.444 6Z"/></svg>`;
|
|
1678
1680
|
var SubscriptIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M2.667 3.333 8 8.667M8 3.333 2.667 8.667M13.333 12.667h-2.666c0-1 .293-1.334 1-1.667.706-.333 1.666-.78 1.666-1.667 0-.313-.113-.62-.32-.86a1.407 1.407 0 0 0-1.746-.293c-.28.16-.494.413-.6.713"/></svg>`;
|
|
1679
1681
|
var SuperscriptIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M2.667 12.667 8 7.333M8 12.667 2.667 7.333M13.333 8h-2.666c0-1 .294-1.333 1-1.667.705-.333 1.666-.777 1.666-1.665 0-.315-.113-.62-.322-.86a1.403 1.403 0 0 0-1.745-.29c-.28.159-.492.409-.6.706"/></svg>`;
|
|
1680
1682
|
var SwitchIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M10.667 4H5.333a4 4 0 1 0 0 8h5.334a4 4 0 0 0 0-8Z"/><path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M5.333 9.333a1.333 1.333 0 1 0 0-2.666 1.333 1.333 0 0 0 0 2.666Z"/></svg>`;
|
|
1681
1683
|
var TabsIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M9.75 5H13M9.75 5H7.401A1.684 1.684 0 0 1 6 4.25v0l-.5-.75-.5-.75L4.5 2m5.25 3-1-1.5-.5-.75-.5-.75M4.5 2H3v0a1.5 1.5 0 0 0-1.5 1.5v9A1.5 1.5 0 0 0 3 14h10v0a1.5 1.5 0 0 0 1.5-1.5v0-6A1.5 1.5 0 0 0 13 5v0M4.5 2h3.25m0 0h2.375v0c.547 0 1.057.273 1.36.728l.015.022.5.75L13 5"/></svg>`;
|
|
1682
1684
|
var TextAlignLeftIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M10 8H2M11.333 12H2M14 4H2"/></svg>`;
|
|
1685
|
+
var TextAnimationIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M7.476 4.3 7.817 3l6.935 1.817-.34 1.3m-6.245 4.386 2.601.682m.517-7.276-1.817 6.935M2 9.938V9h5v.938M3.562 14h1.875M4.5 9v5"/></svg>`;
|
|
1683
1686
|
var TextItalicIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12.667 2.667h-6M9.333 13.333h-6M10 2.667 6 13.333"/></svg>`;
|
|
1684
1687
|
var TextIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M2.667 4.667v-2h10.666v2M6 13.333h4M8 2.667v10.666"/></svg>`;
|
|
1685
1688
|
var TooltipIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" d="M14 10a1.333 1.333 0 0 1-1.333 1.333h-8L2 14V3.333A1.333 1.333 0 0 1 3.333 2h9.334A1.333 1.333 0 0 1 14 3.333V10Z"/></svg>`;
|
|
@@ -2557,6 +2560,7 @@ var componentCategories = [
|
|
|
2557
2560
|
"general",
|
|
2558
2561
|
"typography",
|
|
2559
2562
|
"media",
|
|
2563
|
+
"animations",
|
|
2560
2564
|
"data",
|
|
2561
2565
|
"forms",
|
|
2562
2566
|
"localization",
|
|
@@ -3594,43 +3598,6 @@ var isAttributeNameSafe = (attributeName) => {
|
|
|
3594
3598
|
illegalAttributeNameCache.set(attributeName, true);
|
|
3595
3599
|
return false;
|
|
3596
3600
|
};
|
|
3597
|
-
var namespaceMatcher = (namespace, matcher) => {
|
|
3598
|
-
var _a2, _b2, _c2, _d2;
|
|
3599
|
-
const newMatcher = structuredClone(matcher);
|
|
3600
|
-
if ((_a2 = newMatcher.component) == null ? void 0 : _a2.$eq) {
|
|
3601
|
-
newMatcher.component.$eq = `${namespace}:${newMatcher.component.$eq}`;
|
|
3602
|
-
}
|
|
3603
|
-
if ((_b2 = newMatcher.component) == null ? void 0 : _b2.$neq) {
|
|
3604
|
-
newMatcher.component.$neq = `${namespace}:${newMatcher.component.$neq}`;
|
|
3605
|
-
}
|
|
3606
|
-
if ((_c2 = newMatcher.component) == null ? void 0 : _c2.$in) {
|
|
3607
|
-
newMatcher.component.$in = newMatcher.component.$in.map(
|
|
3608
|
-
(component) => `${namespace}:${component}`
|
|
3609
|
-
);
|
|
3610
|
-
}
|
|
3611
|
-
if ((_d2 = newMatcher.component) == null ? void 0 : _d2.$nin) {
|
|
3612
|
-
newMatcher.component.$nin = newMatcher.component.$nin.map(
|
|
3613
|
-
(component) => `${namespace}:${component}`
|
|
3614
|
-
);
|
|
3615
|
-
}
|
|
3616
|
-
return newMatcher;
|
|
3617
|
-
};
|
|
3618
|
-
var namespaceMeta = (meta, namespace, components) => {
|
|
3619
|
-
const newMeta = { ...meta };
|
|
3620
|
-
if (newMeta.constraints) {
|
|
3621
|
-
if (Array.isArray(newMeta.constraints)) {
|
|
3622
|
-
newMeta.constraints = newMeta.constraints.map(
|
|
3623
|
-
(matcher) => namespaceMatcher(namespace, matcher)
|
|
3624
|
-
);
|
|
3625
|
-
} else {
|
|
3626
|
-
newMeta.constraints = namespaceMatcher(namespace, newMeta.constraints);
|
|
3627
|
-
}
|
|
3628
|
-
}
|
|
3629
|
-
if (newMeta.indexWithinAncestor) {
|
|
3630
|
-
newMeta.indexWithinAncestor = components.has(newMeta.indexWithinAncestor) ? `${namespace}:${newMeta.indexWithinAncestor}` : newMeta.indexWithinAncestor;
|
|
3631
|
-
}
|
|
3632
|
-
return newMeta;
|
|
3633
|
-
};
|
|
3634
3601
|
var generateAction = ({
|
|
3635
3602
|
scope,
|
|
3636
3603
|
prop,
|
|
@@ -4128,7 +4095,7 @@ const e$5 = {
|
|
|
4128
4095
|
icon: SlotComponentIcon,
|
|
4129
4096
|
order: 5
|
|
4130
4097
|
};
|
|
4131
|
-
const o$
|
|
4098
|
+
const o$4 = {
|
|
4132
4099
|
type: "container",
|
|
4133
4100
|
icon: ""
|
|
4134
4101
|
};
|
|
@@ -4142,7 +4109,7 @@ const e$4 = {
|
|
|
4142
4109
|
type: "boolean"
|
|
4143
4110
|
}
|
|
4144
4111
|
};
|
|
4145
|
-
const i$
|
|
4112
|
+
const i$4 = {
|
|
4146
4113
|
div: [
|
|
4147
4114
|
{
|
|
4148
4115
|
property: "display",
|
|
@@ -4159,7 +4126,7 @@ const i$7 = {
|
|
|
4159
4126
|
label: "HTML Embed",
|
|
4160
4127
|
description: "Used to add HTML code to the page, such as an SVG or script.",
|
|
4161
4128
|
icon: EmbedIcon,
|
|
4162
|
-
presetStyle: i$
|
|
4129
|
+
presetStyle: i$4,
|
|
4163
4130
|
order: 2
|
|
4164
4131
|
};
|
|
4165
4132
|
({
|
|
@@ -4237,13 +4204,13 @@ var h3 = div;
|
|
|
4237
4204
|
var h4 = div;
|
|
4238
4205
|
var h5 = div;
|
|
4239
4206
|
var h6 = div;
|
|
4240
|
-
var i$
|
|
4207
|
+
var i$3 = div;
|
|
4241
4208
|
var img = div;
|
|
4242
4209
|
var a$b = div;
|
|
4243
4210
|
var li = div;
|
|
4244
4211
|
var ul = div;
|
|
4245
4212
|
var ol = div;
|
|
4246
|
-
var p$
|
|
4213
|
+
var p$a = div;
|
|
4247
4214
|
var span = div;
|
|
4248
4215
|
var body = [
|
|
4249
4216
|
{ property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
|
|
@@ -4298,7 +4265,7 @@ var hr = [
|
|
|
4298
4265
|
value: { type: "unit", unit: "px", value: 1 }
|
|
4299
4266
|
}
|
|
4300
4267
|
];
|
|
4301
|
-
var b$
|
|
4268
|
+
var b$8 = [
|
|
4302
4269
|
{
|
|
4303
4270
|
property: "font-weight",
|
|
4304
4271
|
value: { type: "unit", unit: "number", value: 700 }
|
|
@@ -4566,13 +4533,13 @@ const a$a = {
|
|
|
4566
4533
|
value: { type: "keyword", value: "grayscale" }
|
|
4567
4534
|
}
|
|
4568
4535
|
]
|
|
4569
|
-
}, n$
|
|
4536
|
+
}, n$9 = {
|
|
4570
4537
|
type: "container",
|
|
4571
4538
|
icon: BodyIcon,
|
|
4572
4539
|
states: defaultStates,
|
|
4573
4540
|
presetStyle: a$a
|
|
4574
4541
|
};
|
|
4575
|
-
const g = {
|
|
4542
|
+
const g$3 = {
|
|
4576
4543
|
div,
|
|
4577
4544
|
address,
|
|
4578
4545
|
article,
|
|
@@ -4583,16 +4550,16 @@ const g = {
|
|
|
4583
4550
|
main: main$1,
|
|
4584
4551
|
nav,
|
|
4585
4552
|
section
|
|
4586
|
-
}, v$
|
|
4553
|
+
}, v$2 = {
|
|
4587
4554
|
category: "general",
|
|
4588
4555
|
type: "container",
|
|
4589
4556
|
description: "A container for content. By default this is a Div, but the tag can be changed in settings.",
|
|
4590
4557
|
icon: BoxIcon,
|
|
4591
4558
|
states: defaultStates,
|
|
4592
|
-
presetStyle: g,
|
|
4559
|
+
presetStyle: g$3,
|
|
4593
4560
|
order: 0
|
|
4594
4561
|
};
|
|
4595
|
-
const r$
|
|
4562
|
+
const r$d = {
|
|
4596
4563
|
div: [
|
|
4597
4564
|
...div,
|
|
4598
4565
|
{
|
|
@@ -4600,44 +4567,36 @@ const r$a = {
|
|
|
4600
4567
|
value: { type: "unit", unit: "em", value: 1 }
|
|
4601
4568
|
}
|
|
4602
4569
|
]
|
|
4603
|
-
}, n$
|
|
4570
|
+
}, n$8 = {
|
|
4604
4571
|
type: "container",
|
|
4605
4572
|
icon: TextIcon,
|
|
4606
4573
|
states: defaultStates,
|
|
4607
|
-
presetStyle: r$
|
|
4574
|
+
presetStyle: r$d
|
|
4608
4575
|
};
|
|
4609
|
-
const
|
|
4576
|
+
const n$7 = {
|
|
4610
4577
|
h1,
|
|
4611
4578
|
h2,
|
|
4612
4579
|
h3,
|
|
4613
4580
|
h4,
|
|
4614
4581
|
h5,
|
|
4615
4582
|
h6
|
|
4616
|
-
}, f$
|
|
4583
|
+
}, f$1 = {
|
|
4617
4584
|
type: "container",
|
|
4618
4585
|
placeholder: "Heading",
|
|
4619
4586
|
icon: HeadingIcon,
|
|
4620
|
-
constraints: {
|
|
4621
|
-
relation: "ancestor",
|
|
4622
|
-
component: { $neq: "Heading" }
|
|
4623
|
-
},
|
|
4624
4587
|
states: defaultStates,
|
|
4625
|
-
presetStyle:
|
|
4588
|
+
presetStyle: n$7
|
|
4626
4589
|
};
|
|
4627
|
-
const
|
|
4628
|
-
p: p$
|
|
4629
|
-
},
|
|
4590
|
+
const p$9 = {
|
|
4591
|
+
p: p$a
|
|
4592
|
+
}, n$6 = {
|
|
4630
4593
|
type: "container",
|
|
4631
4594
|
placeholder: "Paragraph",
|
|
4632
4595
|
icon: TextAlignLeftIcon,
|
|
4633
|
-
constraints: {
|
|
4634
|
-
relation: "ancestor",
|
|
4635
|
-
component: { $neq: "Paragraph" }
|
|
4636
|
-
},
|
|
4637
4596
|
states: defaultStates,
|
|
4638
|
-
presetStyle:
|
|
4597
|
+
presetStyle: p$9
|
|
4639
4598
|
};
|
|
4640
|
-
const a$
|
|
4599
|
+
const a$9 = {
|
|
4641
4600
|
a: [
|
|
4642
4601
|
...a$b,
|
|
4643
4602
|
{
|
|
@@ -4645,15 +4604,11 @@ const a$8 = {
|
|
|
4645
4604
|
value: { type: "keyword", value: "inline-block" }
|
|
4646
4605
|
}
|
|
4647
4606
|
]
|
|
4648
|
-
},
|
|
4607
|
+
}, n$5 = {
|
|
4649
4608
|
type: "container",
|
|
4650
4609
|
placeholder: "Link",
|
|
4651
4610
|
icon: LinkIcon,
|
|
4652
|
-
|
|
4653
|
-
relation: "ancestor",
|
|
4654
|
-
component: { $nin: ["Button", "Link"] }
|
|
4655
|
-
},
|
|
4656
|
-
presetStyle: a$8,
|
|
4611
|
+
presetStyle: a$9,
|
|
4657
4612
|
states: [
|
|
4658
4613
|
...defaultStates,
|
|
4659
4614
|
{
|
|
@@ -4667,46 +4622,46 @@ const a$8 = {
|
|
|
4667
4622
|
}
|
|
4668
4623
|
]
|
|
4669
4624
|
};
|
|
4670
|
-
const a$
|
|
4671
|
-
...
|
|
4625
|
+
const a$8 = {
|
|
4626
|
+
...n$5,
|
|
4672
4627
|
type: "rich-text-child"
|
|
4673
4628
|
};
|
|
4674
4629
|
const s$3 = {
|
|
4675
4630
|
span
|
|
4676
|
-
}, c$
|
|
4631
|
+
}, c$7 = {
|
|
4677
4632
|
type: "rich-text-child",
|
|
4678
4633
|
label: "Text",
|
|
4679
4634
|
icon: PaintBrushIcon,
|
|
4680
4635
|
states: defaultStates,
|
|
4681
4636
|
presetStyle: s$3
|
|
4682
4637
|
};
|
|
4683
|
-
const p$
|
|
4684
|
-
b: b$
|
|
4685
|
-
}, l$
|
|
4638
|
+
const p$8 = {
|
|
4639
|
+
b: b$8
|
|
4640
|
+
}, l$6 = {
|
|
4686
4641
|
type: "rich-text-child",
|
|
4687
4642
|
label: "Bold Text",
|
|
4688
4643
|
icon: BoldIcon,
|
|
4689
4644
|
states: defaultStates,
|
|
4690
|
-
presetStyle: p$
|
|
4645
|
+
presetStyle: p$8
|
|
4691
4646
|
};
|
|
4692
|
-
const r$
|
|
4647
|
+
const r$c = {
|
|
4693
4648
|
i: [
|
|
4694
|
-
...i$
|
|
4649
|
+
...i$3,
|
|
4695
4650
|
{
|
|
4696
4651
|
property: "font-style",
|
|
4697
4652
|
value: { type: "keyword", value: "italic" }
|
|
4698
4653
|
}
|
|
4699
4654
|
]
|
|
4700
|
-
}, c$
|
|
4655
|
+
}, c$6 = {
|
|
4701
4656
|
type: "rich-text-child",
|
|
4702
4657
|
label: "Italic Text",
|
|
4703
4658
|
icon: TextItalicIcon,
|
|
4704
4659
|
states: defaultStates,
|
|
4705
|
-
presetStyle: r$
|
|
4660
|
+
presetStyle: r$c
|
|
4706
4661
|
};
|
|
4707
4662
|
const e$3 = {
|
|
4708
4663
|
sup
|
|
4709
|
-
}, a$
|
|
4664
|
+
}, a$7 = {
|
|
4710
4665
|
type: "rich-text-child",
|
|
4711
4666
|
label: "Superscript Text",
|
|
4712
4667
|
icon: SuperscriptIcon,
|
|
@@ -4715,30 +4670,26 @@ const e$3 = {
|
|
|
4715
4670
|
};
|
|
4716
4671
|
const e$2 = {
|
|
4717
4672
|
sub
|
|
4718
|
-
}, a$
|
|
4673
|
+
}, a$6 = {
|
|
4719
4674
|
type: "rich-text-child",
|
|
4720
4675
|
label: "Subscript Text",
|
|
4721
4676
|
icon: SubscriptIcon,
|
|
4722
4677
|
states: defaultStates,
|
|
4723
4678
|
presetStyle: e$2
|
|
4724
4679
|
};
|
|
4725
|
-
const
|
|
4680
|
+
const l$5 = {
|
|
4726
4681
|
button
|
|
4727
|
-
}, p$
|
|
4682
|
+
}, p$7 = {
|
|
4728
4683
|
icon: ButtonElementIcon,
|
|
4729
4684
|
type: "container",
|
|
4730
|
-
|
|
4731
|
-
relation: "ancestor",
|
|
4732
|
-
component: { $nin: ["Button", "Link"] }
|
|
4733
|
-
},
|
|
4734
|
-
presetStyle: a$4,
|
|
4685
|
+
presetStyle: l$5,
|
|
4735
4686
|
states: [
|
|
4736
4687
|
...defaultStates,
|
|
4737
4688
|
{ selector: ":disabled", label: "Disabled" },
|
|
4738
4689
|
{ selector: ":enabled", label: "Enabled" }
|
|
4739
4690
|
]
|
|
4740
4691
|
};
|
|
4741
|
-
const r$
|
|
4692
|
+
const r$b = {
|
|
4742
4693
|
input: [
|
|
4743
4694
|
...input,
|
|
4744
4695
|
{
|
|
@@ -4746,17 +4697,13 @@ const r$8 = {
|
|
|
4746
4697
|
value: { type: "keyword", value: "block" }
|
|
4747
4698
|
}
|
|
4748
4699
|
]
|
|
4749
|
-
},
|
|
4700
|
+
}, c$5 = {
|
|
4750
4701
|
category: "forms",
|
|
4751
|
-
constraints: {
|
|
4752
|
-
relation: "ancestor",
|
|
4753
|
-
component: { $nin: ["Button", "Link"] }
|
|
4754
|
-
},
|
|
4755
4702
|
type: "control",
|
|
4756
4703
|
label: "Text Input",
|
|
4757
4704
|
description: "A single-line text input for collecting string data from your users.",
|
|
4758
4705
|
icon: FormTextFieldIcon,
|
|
4759
|
-
presetStyle: r$
|
|
4706
|
+
presetStyle: r$b,
|
|
4760
4707
|
order: 3,
|
|
4761
4708
|
states: [
|
|
4762
4709
|
...defaultStates,
|
|
@@ -4772,14 +4719,10 @@ const r$8 = {
|
|
|
4772
4719
|
//{ selector: ":read-write", label: "Read Write" },
|
|
4773
4720
|
]
|
|
4774
4721
|
};
|
|
4775
|
-
const
|
|
4722
|
+
const c$4 = {
|
|
4776
4723
|
label: "Webhook Form",
|
|
4777
4724
|
icon: WebhookFormIcon,
|
|
4778
4725
|
type: "container",
|
|
4779
|
-
constraints: {
|
|
4780
|
-
relation: "ancestor",
|
|
4781
|
-
component: { $nin: ["Form", "Button", "Link"] }
|
|
4782
|
-
},
|
|
4783
4726
|
presetStyle: {
|
|
4784
4727
|
form
|
|
4785
4728
|
},
|
|
@@ -4788,26 +4731,22 @@ const n$3 = {
|
|
|
4788
4731
|
{ selector: "[data-state=success]", label: "Success" }
|
|
4789
4732
|
]
|
|
4790
4733
|
};
|
|
4791
|
-
const
|
|
4734
|
+
const s$2 = {
|
|
4792
4735
|
form: [
|
|
4793
4736
|
...form,
|
|
4794
4737
|
{ property: "min-height", value: { type: "unit", unit: "px", value: 20 } }
|
|
4795
4738
|
]
|
|
4796
|
-
},
|
|
4739
|
+
}, n$4 = {
|
|
4797
4740
|
category: "forms",
|
|
4798
4741
|
type: "container",
|
|
4799
4742
|
label: "Form",
|
|
4800
|
-
constraints: {
|
|
4801
|
-
relation: "ancestor",
|
|
4802
|
-
component: { $nin: ["Form", "Button", "Link"] }
|
|
4803
|
-
},
|
|
4804
4743
|
description: "Create filters, surveys, searches and more.",
|
|
4805
4744
|
icon: FormIcon,
|
|
4806
4745
|
states: defaultStates,
|
|
4807
|
-
presetStyle:
|
|
4746
|
+
presetStyle: s$2,
|
|
4808
4747
|
order: 0
|
|
4809
4748
|
};
|
|
4810
|
-
const a$
|
|
4749
|
+
const a$5 = {
|
|
4811
4750
|
img: [
|
|
4812
4751
|
...img,
|
|
4813
4752
|
// Otherwise on new image insert onto canvas it can overfit screen size multiple times
|
|
@@ -4835,10 +4774,10 @@ const a$3 = {
|
|
|
4835
4774
|
description: "Add an image asset to the page. Webstudio automatically converts images to WebP or AVIF format and makes them responsive for best performance.",
|
|
4836
4775
|
icon: ImageIcon,
|
|
4837
4776
|
states: defaultStates,
|
|
4838
|
-
presetStyle: a$
|
|
4777
|
+
presetStyle: a$5,
|
|
4839
4778
|
order: 0
|
|
4840
4779
|
};
|
|
4841
|
-
const r$
|
|
4780
|
+
const r$a = {
|
|
4842
4781
|
blockquote: [
|
|
4843
4782
|
{
|
|
4844
4783
|
property: "margin-top",
|
|
@@ -4885,14 +4824,14 @@ const r$7 = {
|
|
|
4885
4824
|
value: { type: "rgb", r: 226, g: 226, b: 226, alpha: 1 }
|
|
4886
4825
|
}
|
|
4887
4826
|
]
|
|
4888
|
-
}, i$
|
|
4827
|
+
}, i$2 = {
|
|
4889
4828
|
type: "container",
|
|
4890
4829
|
placeholder: "Blockquote",
|
|
4891
4830
|
icon: BlockquoteIcon,
|
|
4892
4831
|
states: defaultStates,
|
|
4893
|
-
presetStyle: r$
|
|
4832
|
+
presetStyle: r$a
|
|
4894
4833
|
};
|
|
4895
|
-
const a$
|
|
4834
|
+
const a$4 = {
|
|
4896
4835
|
ol: [
|
|
4897
4836
|
...ol,
|
|
4898
4837
|
{
|
|
@@ -4923,29 +4862,22 @@ const a$2 = {
|
|
|
4923
4862
|
value: { type: "keyword", value: "40px" }
|
|
4924
4863
|
}
|
|
4925
4864
|
]
|
|
4926
|
-
}, d$
|
|
4865
|
+
}, d$5 = {
|
|
4927
4866
|
type: "container",
|
|
4928
4867
|
icon: ListIcon,
|
|
4929
4868
|
states: defaultStates,
|
|
4930
|
-
presetStyle: a$
|
|
4869
|
+
presetStyle: a$4
|
|
4931
4870
|
};
|
|
4932
|
-
const
|
|
4933
|
-
li
|
|
4934
|
-
}, m$3 = {
|
|
4871
|
+
const a$3 = {
|
|
4935
4872
|
type: "container",
|
|
4936
4873
|
placeholder: "List item",
|
|
4937
|
-
constraints: {
|
|
4938
|
-
// cannot use parent relation here
|
|
4939
|
-
// because list item can be put inside of collection or slot
|
|
4940
|
-
// perhaps can be eventually fixed with tag matchers
|
|
4941
|
-
relation: "ancestor",
|
|
4942
|
-
component: { $eq: "List" }
|
|
4943
|
-
},
|
|
4944
4874
|
icon: ListItemIcon,
|
|
4945
4875
|
states: defaultStates,
|
|
4946
|
-
presetStyle:
|
|
4876
|
+
presetStyle: {
|
|
4877
|
+
li
|
|
4878
|
+
}
|
|
4947
4879
|
};
|
|
4948
|
-
const p$
|
|
4880
|
+
const p$6 = {
|
|
4949
4881
|
hr: [
|
|
4950
4882
|
...hr,
|
|
4951
4883
|
{
|
|
@@ -4973,16 +4905,16 @@ const p$8 = {
|
|
|
4973
4905
|
value: { type: "keyword", value: "none" }
|
|
4974
4906
|
}
|
|
4975
4907
|
]
|
|
4976
|
-
}, n$
|
|
4908
|
+
}, n$3 = {
|
|
4977
4909
|
category: "general",
|
|
4978
4910
|
type: "embed",
|
|
4979
4911
|
description: "Used to visually divide sections of content, helping to improve readability and organization within a webpage.",
|
|
4980
4912
|
icon: MinusIcon,
|
|
4981
4913
|
states: defaultStates,
|
|
4982
|
-
presetStyle: p$
|
|
4914
|
+
presetStyle: p$6,
|
|
4983
4915
|
order: 3
|
|
4984
4916
|
};
|
|
4985
|
-
const p$
|
|
4917
|
+
const p$5 = {
|
|
4986
4918
|
code: [
|
|
4987
4919
|
...code,
|
|
4988
4920
|
{
|
|
@@ -5010,34 +4942,26 @@ const p$7 = {
|
|
|
5010
4942
|
value: { type: "rgb", r: 238, g: 238, b: 238, alpha: 1 }
|
|
5011
4943
|
}
|
|
5012
4944
|
]
|
|
5013
|
-
},
|
|
4945
|
+
}, d$4 = {
|
|
5014
4946
|
category: "general",
|
|
5015
4947
|
type: "embed",
|
|
5016
4948
|
description: "Use this component when you want to display code as text on the page.",
|
|
5017
4949
|
icon: BracesIcon,
|
|
5018
|
-
constraints: {
|
|
5019
|
-
relation: "ancestor",
|
|
5020
|
-
component: { $neq: "CodeText" }
|
|
5021
|
-
},
|
|
5022
4950
|
states: defaultStates,
|
|
5023
|
-
presetStyle: p$
|
|
4951
|
+
presetStyle: p$5,
|
|
5024
4952
|
order: 5
|
|
5025
4953
|
};
|
|
5026
|
-
const a$
|
|
4954
|
+
const a$2 = {
|
|
5027
4955
|
label: [
|
|
5028
4956
|
...label,
|
|
5029
4957
|
{ property: "display", value: { type: "keyword", value: "block" } }
|
|
5030
4958
|
]
|
|
5031
|
-
},
|
|
5032
|
-
constraints: {
|
|
5033
|
-
relation: "ancestor",
|
|
5034
|
-
component: { $nin: ["Button", "Link"] }
|
|
5035
|
-
},
|
|
4959
|
+
}, m$3 = {
|
|
5036
4960
|
type: "container",
|
|
5037
4961
|
label: "Input Label",
|
|
5038
4962
|
icon: LabelIcon,
|
|
5039
4963
|
states: defaultStates,
|
|
5040
|
-
presetStyle: a$
|
|
4964
|
+
presetStyle: a$2
|
|
5041
4965
|
};
|
|
5042
4966
|
const l$3 = {
|
|
5043
4967
|
textarea: [
|
|
@@ -5049,7 +4973,7 @@ const l$3 = {
|
|
|
5049
4973
|
value: { type: "keyword", value: "block" }
|
|
5050
4974
|
}
|
|
5051
4975
|
]
|
|
5052
|
-
},
|
|
4976
|
+
}, c$3 = {
|
|
5053
4977
|
category: "forms",
|
|
5054
4978
|
type: "control",
|
|
5055
4979
|
label: "Text Area",
|
|
@@ -5057,10 +4981,6 @@ const l$3 = {
|
|
|
5057
4981
|
icon: FormTextAreaIcon,
|
|
5058
4982
|
presetStyle: l$3,
|
|
5059
4983
|
order: 4,
|
|
5060
|
-
constraints: {
|
|
5061
|
-
relation: "ancestor",
|
|
5062
|
-
component: { $nin: ["Button", "Link"] }
|
|
5063
|
-
},
|
|
5064
4984
|
states: [
|
|
5065
4985
|
...defaultStates,
|
|
5066
4986
|
{ selector: "::placeholder", label: "Placeholder" },
|
|
@@ -5075,7 +4995,7 @@ const l$3 = {
|
|
|
5075
4995
|
//{ selector: ":read-write", label: "Read Write" },
|
|
5076
4996
|
]
|
|
5077
4997
|
};
|
|
5078
|
-
const
|
|
4998
|
+
const a$1 = {
|
|
5079
4999
|
input: [
|
|
5080
5000
|
...radio,
|
|
5081
5001
|
{
|
|
@@ -5083,15 +5003,11 @@ const i$2 = {
|
|
|
5083
5003
|
value: { type: "unit", unit: "em", value: 0.5 }
|
|
5084
5004
|
}
|
|
5085
5005
|
]
|
|
5086
|
-
},
|
|
5087
|
-
constraints: {
|
|
5088
|
-
relation: "ancestor",
|
|
5089
|
-
component: { $nin: ["Button", "Link"] }
|
|
5090
|
-
},
|
|
5006
|
+
}, s$1 = {
|
|
5091
5007
|
type: "control",
|
|
5092
5008
|
label: "Radio",
|
|
5093
5009
|
icon: RadioCheckedIcon,
|
|
5094
|
-
presetStyle:
|
|
5010
|
+
presetStyle: a$1,
|
|
5095
5011
|
states: [
|
|
5096
5012
|
...defaultStates,
|
|
5097
5013
|
{ selector: ":checked", label: "Checked" },
|
|
@@ -5104,7 +5020,7 @@ const i$2 = {
|
|
|
5104
5020
|
//{ selector: ":read-write", label: "Read Write" },
|
|
5105
5021
|
]
|
|
5106
5022
|
};
|
|
5107
|
-
const
|
|
5023
|
+
const o$3 = {
|
|
5108
5024
|
input: [
|
|
5109
5025
|
...checkbox,
|
|
5110
5026
|
{
|
|
@@ -5112,14 +5028,10 @@ const r$6 = {
|
|
|
5112
5028
|
value: { type: "unit", unit: "em", value: 0.5 }
|
|
5113
5029
|
}
|
|
5114
5030
|
]
|
|
5115
|
-
},
|
|
5116
|
-
constraints: {
|
|
5117
|
-
relation: "ancestor",
|
|
5118
|
-
component: { $nin: ["Button", "Link"] }
|
|
5119
|
-
},
|
|
5031
|
+
}, d$3 = {
|
|
5120
5032
|
type: "control",
|
|
5121
5033
|
icon: CheckboxCheckedIcon,
|
|
5122
|
-
presetStyle:
|
|
5034
|
+
presetStyle: o$3,
|
|
5123
5035
|
states: [
|
|
5124
5036
|
...defaultStates,
|
|
5125
5037
|
{ selector: ":checked", label: "Checked" },
|
|
@@ -5131,13 +5043,13 @@ const r$6 = {
|
|
|
5131
5043
|
{ selector: ":read-write", label: "Read Write" }
|
|
5132
5044
|
]
|
|
5133
5045
|
};
|
|
5134
|
-
const r$
|
|
5046
|
+
const r$9 = {
|
|
5135
5047
|
div
|
|
5136
|
-
}, c$
|
|
5048
|
+
}, c$2 = {
|
|
5137
5049
|
type: "container",
|
|
5138
5050
|
icon: VimeoIcon,
|
|
5139
5051
|
states: defaultStates,
|
|
5140
|
-
presetStyle: r$
|
|
5052
|
+
presetStyle: r$9,
|
|
5141
5053
|
constraints: {
|
|
5142
5054
|
relation: "ancestor",
|
|
5143
5055
|
component: { $nin: ["Button", "Link", "Heading"] }
|
|
@@ -5145,7 +5057,7 @@ const r$5 = {
|
|
|
5145
5057
|
};
|
|
5146
5058
|
const i$1 = {
|
|
5147
5059
|
div
|
|
5148
|
-
}, c$
|
|
5060
|
+
}, c$1 = {
|
|
5149
5061
|
type: "container",
|
|
5150
5062
|
icon: YoutubeIcon,
|
|
5151
5063
|
states: defaultStates,
|
|
@@ -5164,7 +5076,7 @@ const i = {
|
|
|
5164
5076
|
component: { $in: ["Vimeo", "YouTube"] }
|
|
5165
5077
|
}
|
|
5166
5078
|
};
|
|
5167
|
-
const r$
|
|
5079
|
+
const r$8 = {
|
|
5168
5080
|
button
|
|
5169
5081
|
}, p$4 = {
|
|
5170
5082
|
category: "hidden",
|
|
@@ -5181,10 +5093,10 @@ const r$4 = {
|
|
|
5181
5093
|
],
|
|
5182
5094
|
label: "Play Button",
|
|
5183
5095
|
icon: ButtonElementIcon,
|
|
5184
|
-
presetStyle: r$
|
|
5096
|
+
presetStyle: r$8,
|
|
5185
5097
|
states: defaultStates
|
|
5186
5098
|
};
|
|
5187
|
-
const n = {
|
|
5099
|
+
const n$2 = {
|
|
5188
5100
|
div
|
|
5189
5101
|
}, m$2 = {
|
|
5190
5102
|
type: "container",
|
|
@@ -5194,7 +5106,7 @@ const n = {
|
|
|
5194
5106
|
},
|
|
5195
5107
|
icon: BoxIcon,
|
|
5196
5108
|
states: defaultStates,
|
|
5197
|
-
presetStyle: n,
|
|
5109
|
+
presetStyle: n$2,
|
|
5198
5110
|
category: "hidden",
|
|
5199
5111
|
label: "Spinner"
|
|
5200
5112
|
};
|
|
@@ -5212,7 +5124,7 @@ const a = {
|
|
|
5212
5124
|
icon: CalendarIcon,
|
|
5213
5125
|
order: 7
|
|
5214
5126
|
};
|
|
5215
|
-
const r$
|
|
5127
|
+
const r$7 = {
|
|
5216
5128
|
time
|
|
5217
5129
|
}, s = {
|
|
5218
5130
|
category: "localization",
|
|
@@ -5220,9 +5132,9 @@ const r$3 = {
|
|
|
5220
5132
|
description: "Converts machine-readable date and time to a human-readable format.",
|
|
5221
5133
|
icon: CalendarIcon,
|
|
5222
5134
|
states: defaultStates,
|
|
5223
|
-
presetStyle: r$
|
|
5135
|
+
presetStyle: r$7
|
|
5224
5136
|
};
|
|
5225
|
-
const r$
|
|
5137
|
+
const r$6 = {
|
|
5226
5138
|
select: [
|
|
5227
5139
|
...select,
|
|
5228
5140
|
{
|
|
@@ -5230,14 +5142,10 @@ const r$2 = {
|
|
|
5230
5142
|
value: { type: "keyword", value: "block" }
|
|
5231
5143
|
}
|
|
5232
5144
|
]
|
|
5233
|
-
}, c
|
|
5234
|
-
constraints: {
|
|
5235
|
-
relation: "ancestor",
|
|
5236
|
-
component: { $nin: ["Button", "Link"] }
|
|
5237
|
-
},
|
|
5145
|
+
}, c = {
|
|
5238
5146
|
type: "container",
|
|
5239
5147
|
icon: SelectIcon,
|
|
5240
|
-
presetStyle: r$
|
|
5148
|
+
presetStyle: r$6,
|
|
5241
5149
|
states: [
|
|
5242
5150
|
...defaultStates,
|
|
5243
5151
|
{ selector: "::placeholder", label: "Placeholder" },
|
|
@@ -5247,7 +5155,7 @@ const r$2 = {
|
|
|
5247
5155
|
{ selector: ":optional", label: "Optional" }
|
|
5248
5156
|
]
|
|
5249
5157
|
};
|
|
5250
|
-
const
|
|
5158
|
+
const l$2 = {
|
|
5251
5159
|
option: [
|
|
5252
5160
|
{
|
|
5253
5161
|
property: "background-color",
|
|
@@ -5261,16 +5169,12 @@ const o$4 = {
|
|
|
5261
5169
|
}
|
|
5262
5170
|
}
|
|
5263
5171
|
]
|
|
5264
|
-
}, r$
|
|
5172
|
+
}, r$5 = {
|
|
5265
5173
|
category: "hidden",
|
|
5266
|
-
constraints: {
|
|
5267
|
-
relation: "parent",
|
|
5268
|
-
component: { $eq: "Select" }
|
|
5269
|
-
},
|
|
5270
5174
|
type: "control",
|
|
5271
5175
|
description: "An item within a drop-down menu that users can select as their chosen value.",
|
|
5272
5176
|
icon: ItemIcon,
|
|
5273
|
-
presetStyle:
|
|
5177
|
+
presetStyle: l$2,
|
|
5274
5178
|
states: [
|
|
5275
5179
|
// Applies when option is being activated (clicked)
|
|
5276
5180
|
{ selector: ":active", label: "Active" },
|
|
@@ -5282,7 +5186,7 @@ const o$4 = {
|
|
|
5282
5186
|
{ selector: ":disabled", label: "Disabled" }
|
|
5283
5187
|
]
|
|
5284
5188
|
};
|
|
5285
|
-
const r = {
|
|
5189
|
+
const r$4 = {
|
|
5286
5190
|
icon: HeaderIcon,
|
|
5287
5191
|
type: "container",
|
|
5288
5192
|
description: "Inserts children into the head of the document",
|
|
@@ -5326,72 +5230,97 @@ const p$1 = {
|
|
|
5326
5230
|
};
|
|
5327
5231
|
const baseComponentMetas = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5328
5232
|
__proto__: null,
|
|
5329
|
-
Blockquote: i$
|
|
5330
|
-
Body: n$
|
|
5331
|
-
Bold: l$
|
|
5332
|
-
Box: v$
|
|
5333
|
-
Button: p$
|
|
5334
|
-
Checkbox:
|
|
5335
|
-
CodeText:
|
|
5336
|
-
Form:
|
|
5337
|
-
Fragment: o$
|
|
5233
|
+
Blockquote: i$2,
|
|
5234
|
+
Body: n$9,
|
|
5235
|
+
Bold: l$6,
|
|
5236
|
+
Box: v$2,
|
|
5237
|
+
Button: p$7,
|
|
5238
|
+
Checkbox: d$3,
|
|
5239
|
+
CodeText: d$4,
|
|
5240
|
+
Form: c$4,
|
|
5241
|
+
Fragment: o$4,
|
|
5338
5242
|
HeadLink: p$3,
|
|
5339
5243
|
HeadMeta: p$2,
|
|
5340
|
-
HeadSlot: r,
|
|
5244
|
+
HeadSlot: r$4,
|
|
5341
5245
|
HeadTitle: p$1,
|
|
5342
|
-
Heading: f$
|
|
5246
|
+
Heading: f$1,
|
|
5343
5247
|
HtmlEmbed: a$c,
|
|
5344
5248
|
Image: l$4,
|
|
5345
|
-
Input:
|
|
5346
|
-
Italic: c$
|
|
5347
|
-
Label:
|
|
5348
|
-
Link:
|
|
5349
|
-
List: d$
|
|
5350
|
-
ListItem:
|
|
5249
|
+
Input: c$5,
|
|
5250
|
+
Italic: c$6,
|
|
5251
|
+
Label: m$3,
|
|
5252
|
+
Link: n$5,
|
|
5253
|
+
List: d$5,
|
|
5254
|
+
ListItem: a$3,
|
|
5351
5255
|
MarkdownEmbed: t$1,
|
|
5352
|
-
Option: r$
|
|
5353
|
-
Paragraph:
|
|
5354
|
-
RadioButton:
|
|
5355
|
-
RemixForm:
|
|
5356
|
-
RichTextLink: a$
|
|
5357
|
-
Select: c
|
|
5358
|
-
Separator: n$
|
|
5256
|
+
Option: r$5,
|
|
5257
|
+
Paragraph: n$6,
|
|
5258
|
+
RadioButton: s$1,
|
|
5259
|
+
RemixForm: n$4,
|
|
5260
|
+
RichTextLink: a$8,
|
|
5261
|
+
Select: c,
|
|
5262
|
+
Separator: n$3,
|
|
5359
5263
|
Slot: e$5,
|
|
5360
|
-
Span: c$
|
|
5361
|
-
Subscript: a$
|
|
5362
|
-
Superscript: a$
|
|
5363
|
-
Text: n$
|
|
5364
|
-
Textarea:
|
|
5264
|
+
Span: c$7,
|
|
5265
|
+
Subscript: a$6,
|
|
5266
|
+
Superscript: a$7,
|
|
5267
|
+
Text: n$8,
|
|
5268
|
+
Textarea: c$3,
|
|
5365
5269
|
Time: s,
|
|
5366
|
-
Vimeo: c$
|
|
5270
|
+
Vimeo: c$2,
|
|
5367
5271
|
VimeoPlayButton: p$4,
|
|
5368
5272
|
VimeoPreviewImage: i,
|
|
5369
5273
|
VimeoSpinner: m$2,
|
|
5370
5274
|
XmlNode: e$1,
|
|
5371
5275
|
XmlTime: a,
|
|
5372
|
-
YouTube: c$
|
|
5276
|
+
YouTube: c$1
|
|
5373
5277
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5374
|
-
const o$
|
|
5375
|
-
category: "
|
|
5278
|
+
const o$2 = {
|
|
5279
|
+
category: "animations",
|
|
5376
5280
|
type: "container",
|
|
5377
|
-
description: "
|
|
5378
|
-
icon:
|
|
5281
|
+
description: "Animation Group component is designed to animate its children.",
|
|
5282
|
+
icon: AnimationGroupIcon,
|
|
5379
5283
|
order: 5,
|
|
5380
|
-
label: "
|
|
5284
|
+
label: "Animation Group",
|
|
5381
5285
|
constraints: {
|
|
5382
5286
|
relation: "child",
|
|
5383
5287
|
text: false
|
|
5384
5288
|
}
|
|
5385
5289
|
};
|
|
5386
|
-
const
|
|
5387
|
-
|
|
5290
|
+
const n$1 = (t2) => new Proxy(
|
|
5291
|
+
{},
|
|
5292
|
+
{
|
|
5293
|
+
get(o2, e2) {
|
|
5294
|
+
return `${t2}${e2}`;
|
|
5295
|
+
}
|
|
5296
|
+
}
|
|
5297
|
+
), r$3 = n$1(
|
|
5298
|
+
"@webstudio-is/sdk-components-animation:"
|
|
5299
|
+
);
|
|
5300
|
+
const r$2 = {
|
|
5301
|
+
category: "animations",
|
|
5388
5302
|
type: "container",
|
|
5389
|
-
description: "
|
|
5390
|
-
icon:
|
|
5303
|
+
description: "Text animation allows you to split text by char or by word to animate it.",
|
|
5304
|
+
icon: TextAnimationIcon,
|
|
5391
5305
|
order: 6,
|
|
5392
|
-
label: "
|
|
5306
|
+
label: "Text Animation",
|
|
5393
5307
|
constraints: [
|
|
5394
|
-
{ relation: "parent", component: { $eq:
|
|
5308
|
+
{ relation: "parent", component: { $eq: r$3.AnimateChildren } },
|
|
5309
|
+
{
|
|
5310
|
+
relation: "child",
|
|
5311
|
+
text: false
|
|
5312
|
+
}
|
|
5313
|
+
]
|
|
5314
|
+
};
|
|
5315
|
+
const r$1 = {
|
|
5316
|
+
category: "animations",
|
|
5317
|
+
type: "container",
|
|
5318
|
+
description: "Stagger animation allows you to animate children elements with a sliding window.",
|
|
5319
|
+
icon: StaggerAnimationIcon,
|
|
5320
|
+
order: 6,
|
|
5321
|
+
label: "Stagger Animation",
|
|
5322
|
+
constraints: [
|
|
5323
|
+
{ relation: "parent", component: { $eq: r$3.AnimateChildren } },
|
|
5395
5324
|
{
|
|
5396
5325
|
relation: "child",
|
|
5397
5326
|
text: false
|
|
@@ -5400,41 +5329,52 @@ const o$2 = {
|
|
|
5400
5329
|
};
|
|
5401
5330
|
const animationComponentMetas = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5402
5331
|
__proto__: null,
|
|
5403
|
-
AnimateChildren: o$
|
|
5404
|
-
AnimateText:
|
|
5332
|
+
AnimateChildren: o$2,
|
|
5333
|
+
AnimateText: r$2,
|
|
5334
|
+
StaggerAnimation: r$1
|
|
5405
5335
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5406
5336
|
const remixComponentMetas = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5407
5337
|
__proto__: null,
|
|
5408
|
-
Body: n$
|
|
5409
|
-
Form:
|
|
5410
|
-
Link:
|
|
5411
|
-
RemixForm:
|
|
5412
|
-
RichTextLink: a$
|
|
5338
|
+
Body: n$9,
|
|
5339
|
+
Form: c$4,
|
|
5340
|
+
Link: n$5,
|
|
5341
|
+
RemixForm: n$4,
|
|
5342
|
+
RichTextLink: a$8
|
|
5413
5343
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5414
|
-
const
|
|
5344
|
+
const r = (t2) => new Proxy(
|
|
5345
|
+
{},
|
|
5346
|
+
{
|
|
5347
|
+
get(o2, e2) {
|
|
5348
|
+
return `${t2}${e2}`;
|
|
5349
|
+
}
|
|
5350
|
+
}
|
|
5351
|
+
), n = r(
|
|
5352
|
+
"@webstudio-is/sdk-components-react-radix:"
|
|
5353
|
+
);
|
|
5354
|
+
const m$1 = {
|
|
5415
5355
|
type: "container",
|
|
5416
5356
|
constraints: [
|
|
5417
5357
|
{
|
|
5418
5358
|
relation: "descendant",
|
|
5419
|
-
component: { $eq:
|
|
5359
|
+
component: { $eq: n.CollapsibleTrigger }
|
|
5420
5360
|
},
|
|
5421
5361
|
{
|
|
5422
5362
|
relation: "descendant",
|
|
5423
|
-
component: { $eq:
|
|
5363
|
+
component: { $eq: n.CollapsibleContent }
|
|
5424
5364
|
}
|
|
5425
5365
|
],
|
|
5426
5366
|
presetStyle: {
|
|
5427
5367
|
div
|
|
5428
5368
|
},
|
|
5429
5369
|
icon: CollapsibleIcon
|
|
5430
|
-
},
|
|
5370
|
+
}, b$7 = {
|
|
5431
5371
|
type: "container",
|
|
5432
5372
|
icon: TriggerIcon,
|
|
5433
5373
|
constraints: {
|
|
5434
5374
|
relation: "ancestor",
|
|
5435
|
-
component: { $eq:
|
|
5375
|
+
component: { $eq: n.Collapsible }
|
|
5436
5376
|
}
|
|
5437
|
-
},
|
|
5377
|
+
}, g$2 = {
|
|
5438
5378
|
type: "container",
|
|
5439
5379
|
presetStyle: {
|
|
5440
5380
|
div
|
|
@@ -5442,7 +5382,7 @@ const c = {
|
|
|
5442
5382
|
icon: ContentIcon,
|
|
5443
5383
|
constraints: {
|
|
5444
5384
|
relation: "ancestor",
|
|
5445
|
-
component: { $eq:
|
|
5385
|
+
component: { $eq: n.Collapsible }
|
|
5446
5386
|
}
|
|
5447
5387
|
};
|
|
5448
5388
|
const o$1 = (r2, t2, p2) => ({
|
|
@@ -5454,7 +5394,7 @@ const o$1 = (r2, t2, p2) => ({
|
|
|
5454
5394
|
}), d$2 = (r2, t2, p2, l2) => ({
|
|
5455
5395
|
property: r2,
|
|
5456
5396
|
value: { type: "rgb", alpha: 1, r: t2, g: p2, b: l2 }
|
|
5457
|
-
}), b$
|
|
5397
|
+
}), b$6 = [
|
|
5458
5398
|
{
|
|
5459
5399
|
property: "background-color",
|
|
5460
5400
|
value: { type: "keyword", value: "transparent" }
|
|
@@ -5480,14 +5420,14 @@ const o$1 = (r2, t2, p2) => ({
|
|
|
5480
5420
|
o$1("padding-bottom", 0, "px"),
|
|
5481
5421
|
o$1("padding-left", 0, "px")
|
|
5482
5422
|
];
|
|
5483
|
-
const
|
|
5423
|
+
const S$1 = {
|
|
5484
5424
|
type: "container",
|
|
5485
5425
|
icon: TriggerIcon,
|
|
5486
5426
|
constraints: {
|
|
5487
5427
|
relation: "ancestor",
|
|
5488
|
-
component: { $eq:
|
|
5428
|
+
component: { $eq: n.Dialog }
|
|
5489
5429
|
}
|
|
5490
|
-
},
|
|
5430
|
+
}, b$5 = {
|
|
5491
5431
|
type: "container",
|
|
5492
5432
|
presetStyle: {
|
|
5493
5433
|
div
|
|
@@ -5496,14 +5436,14 @@ const O = {
|
|
|
5496
5436
|
constraints: [
|
|
5497
5437
|
{
|
|
5498
5438
|
relation: "ancestor",
|
|
5499
|
-
component: { $eq:
|
|
5439
|
+
component: { $eq: n.Dialog }
|
|
5500
5440
|
},
|
|
5501
5441
|
{
|
|
5502
5442
|
relation: "descendant",
|
|
5503
|
-
component: { $eq:
|
|
5443
|
+
component: { $eq: n.DialogContent }
|
|
5504
5444
|
}
|
|
5505
5445
|
]
|
|
5506
|
-
},
|
|
5446
|
+
}, x$3 = {
|
|
5507
5447
|
type: "container",
|
|
5508
5448
|
presetStyle: {
|
|
5509
5449
|
div
|
|
@@ -5512,26 +5452,26 @@ const O = {
|
|
|
5512
5452
|
constraints: [
|
|
5513
5453
|
{
|
|
5514
5454
|
relation: "ancestor",
|
|
5515
|
-
component: { $eq:
|
|
5455
|
+
component: { $eq: n.DialogOverlay }
|
|
5516
5456
|
},
|
|
5517
5457
|
// often deleted by users
|
|
5518
5458
|
// though radix starts throwing warnings in console
|
|
5519
5459
|
/*
|
|
5520
5460
|
{
|
|
5521
5461
|
relation: "descendant",
|
|
5522
|
-
component: { $eq:
|
|
5462
|
+
component: { $eq: radix.DialogTitle },
|
|
5523
5463
|
},
|
|
5524
5464
|
{
|
|
5525
5465
|
relation: "descendant",
|
|
5526
|
-
component: { $eq:
|
|
5466
|
+
component: { $eq: radix.DialogDescription },
|
|
5527
5467
|
},
|
|
5528
5468
|
*/
|
|
5529
5469
|
{
|
|
5530
5470
|
relation: "descendant",
|
|
5531
|
-
component: { $eq:
|
|
5471
|
+
component: { $eq: n.DialogClose }
|
|
5532
5472
|
}
|
|
5533
5473
|
]
|
|
5534
|
-
},
|
|
5474
|
+
}, B = {
|
|
5535
5475
|
type: "container",
|
|
5536
5476
|
presetStyle: {
|
|
5537
5477
|
h2
|
|
@@ -5539,52 +5479,52 @@ const O = {
|
|
|
5539
5479
|
icon: HeadingIcon,
|
|
5540
5480
|
constraints: {
|
|
5541
5481
|
relation: "ancestor",
|
|
5542
|
-
component: { $eq:
|
|
5482
|
+
component: { $eq: n.DialogContent }
|
|
5543
5483
|
}
|
|
5544
|
-
},
|
|
5484
|
+
}, h$1 = {
|
|
5545
5485
|
type: "container",
|
|
5546
5486
|
presetStyle: {
|
|
5547
|
-
p: p$
|
|
5487
|
+
p: p$a
|
|
5548
5488
|
},
|
|
5549
5489
|
icon: TextIcon,
|
|
5550
5490
|
constraints: {
|
|
5551
5491
|
relation: "ancestor",
|
|
5552
|
-
component: { $eq:
|
|
5492
|
+
component: { $eq: n.DialogContent }
|
|
5553
5493
|
}
|
|
5554
|
-
},
|
|
5494
|
+
}, E = {
|
|
5555
5495
|
type: "container",
|
|
5556
5496
|
presetStyle: {
|
|
5557
|
-
button: [b$
|
|
5497
|
+
button: [b$6, button].flat()
|
|
5558
5498
|
},
|
|
5559
5499
|
states: defaultStates,
|
|
5560
5500
|
icon: ButtonElementIcon,
|
|
5561
5501
|
label: "Close Button",
|
|
5562
5502
|
constraints: {
|
|
5563
5503
|
relation: "ancestor",
|
|
5564
|
-
component: { $eq:
|
|
5504
|
+
component: { $eq: n.DialogContent }
|
|
5565
5505
|
}
|
|
5566
|
-
},
|
|
5506
|
+
}, H$1 = {
|
|
5567
5507
|
type: "container",
|
|
5568
5508
|
icon: DialogIcon,
|
|
5569
5509
|
constraints: [
|
|
5570
5510
|
{
|
|
5571
5511
|
relation: "descendant",
|
|
5572
|
-
component: { $eq:
|
|
5512
|
+
component: { $eq: n.DialogTrigger }
|
|
5573
5513
|
},
|
|
5574
5514
|
{
|
|
5575
5515
|
relation: "descendant",
|
|
5576
|
-
component: { $eq:
|
|
5516
|
+
component: { $eq: n.DialogOverlay }
|
|
5577
5517
|
}
|
|
5578
5518
|
]
|
|
5579
5519
|
};
|
|
5580
|
-
const
|
|
5520
|
+
const v$1 = {
|
|
5581
5521
|
type: "container",
|
|
5582
5522
|
icon: TriggerIcon,
|
|
5583
5523
|
constraints: {
|
|
5584
5524
|
relation: "ancestor",
|
|
5585
|
-
component: { $eq:
|
|
5525
|
+
component: { $eq: n.Popover }
|
|
5586
5526
|
}
|
|
5587
|
-
},
|
|
5527
|
+
}, g$1 = {
|
|
5588
5528
|
type: "container",
|
|
5589
5529
|
presetStyle: {
|
|
5590
5530
|
div
|
|
@@ -5592,30 +5532,30 @@ const P$1 = {
|
|
|
5592
5532
|
icon: ContentIcon,
|
|
5593
5533
|
constraints: {
|
|
5594
5534
|
relation: "ancestor",
|
|
5595
|
-
component: { $eq:
|
|
5535
|
+
component: { $eq: n.Popover }
|
|
5596
5536
|
}
|
|
5597
|
-
},
|
|
5537
|
+
}, l$1 = {
|
|
5598
5538
|
type: "container",
|
|
5599
5539
|
icon: PopoverIcon,
|
|
5600
5540
|
constraints: [
|
|
5601
5541
|
{
|
|
5602
5542
|
relation: "descendant",
|
|
5603
|
-
component: { $eq:
|
|
5543
|
+
component: { $eq: n.PopoverTrigger }
|
|
5604
5544
|
},
|
|
5605
5545
|
{
|
|
5606
5546
|
relation: "descendant",
|
|
5607
|
-
component: { $eq:
|
|
5547
|
+
component: { $eq: n.PopoverContent }
|
|
5608
5548
|
}
|
|
5609
5549
|
]
|
|
5610
5550
|
};
|
|
5611
|
-
const
|
|
5551
|
+
const m = {
|
|
5612
5552
|
type: "container",
|
|
5613
5553
|
icon: TriggerIcon,
|
|
5614
5554
|
constraints: {
|
|
5615
5555
|
relation: "ancestor",
|
|
5616
|
-
component: { $eq:
|
|
5556
|
+
component: { $eq: n.Tooltip }
|
|
5617
5557
|
}
|
|
5618
|
-
},
|
|
5558
|
+
}, g = {
|
|
5619
5559
|
type: "container",
|
|
5620
5560
|
icon: ContentIcon,
|
|
5621
5561
|
presetStyle: {
|
|
@@ -5623,64 +5563,64 @@ const l$2 = {
|
|
|
5623
5563
|
},
|
|
5624
5564
|
constraints: {
|
|
5625
5565
|
relation: "ancestor",
|
|
5626
|
-
component: { $eq:
|
|
5566
|
+
component: { $eq: n.Tooltip }
|
|
5627
5567
|
}
|
|
5628
|
-
},
|
|
5568
|
+
}, d$1 = {
|
|
5629
5569
|
type: "container",
|
|
5630
5570
|
constraints: [
|
|
5631
5571
|
{
|
|
5632
5572
|
relation: "descendant",
|
|
5633
|
-
component: { $eq:
|
|
5573
|
+
component: { $eq: n.TooltipTrigger }
|
|
5634
5574
|
},
|
|
5635
5575
|
{
|
|
5636
5576
|
relation: "descendant",
|
|
5637
|
-
component: { $eq:
|
|
5577
|
+
component: { $eq: n.TooltipContent }
|
|
5638
5578
|
}
|
|
5639
5579
|
],
|
|
5640
5580
|
icon: TooltipIcon
|
|
5641
5581
|
};
|
|
5642
|
-
const
|
|
5582
|
+
const o = {
|
|
5643
5583
|
div
|
|
5644
|
-
},
|
|
5584
|
+
}, C$3 = {
|
|
5645
5585
|
type: "container",
|
|
5646
5586
|
icon: TabsIcon,
|
|
5647
5587
|
constraints: [
|
|
5648
5588
|
{
|
|
5649
5589
|
relation: "descendant",
|
|
5650
|
-
component: { $eq:
|
|
5590
|
+
component: { $eq: n.TabsTrigger }
|
|
5651
5591
|
},
|
|
5652
5592
|
{
|
|
5653
5593
|
relation: "descendant",
|
|
5654
|
-
component: { $eq:
|
|
5594
|
+
component: { $eq: n.TabsList }
|
|
5655
5595
|
},
|
|
5656
5596
|
{
|
|
5657
5597
|
relation: "descendant",
|
|
5658
|
-
component: { $eq:
|
|
5598
|
+
component: { $eq: n.TabsContent }
|
|
5659
5599
|
}
|
|
5660
5600
|
],
|
|
5661
|
-
presetStyle:
|
|
5662
|
-
},
|
|
5601
|
+
presetStyle: o
|
|
5602
|
+
}, L = {
|
|
5663
5603
|
type: "container",
|
|
5664
5604
|
icon: HeaderIcon,
|
|
5665
5605
|
constraints: {
|
|
5666
5606
|
relation: "ancestor",
|
|
5667
|
-
component: { $eq:
|
|
5607
|
+
component: { $eq: n.Tabs }
|
|
5668
5608
|
},
|
|
5669
|
-
presetStyle:
|
|
5670
|
-
},
|
|
5609
|
+
presetStyle: o
|
|
5610
|
+
}, u = {
|
|
5671
5611
|
type: "container",
|
|
5672
5612
|
icon: TriggerIcon,
|
|
5673
5613
|
constraints: [
|
|
5674
5614
|
{
|
|
5675
5615
|
relation: "ancestor",
|
|
5676
|
-
component: { $eq:
|
|
5616
|
+
component: { $eq: n.TabsList }
|
|
5677
5617
|
},
|
|
5678
5618
|
{
|
|
5679
5619
|
relation: "ancestor",
|
|
5680
|
-
component: { $neq:
|
|
5620
|
+
component: { $neq: n.TabsTrigger }
|
|
5681
5621
|
}
|
|
5682
5622
|
],
|
|
5683
|
-
indexWithinAncestor:
|
|
5623
|
+
indexWithinAncestor: n.Tabs,
|
|
5684
5624
|
label: "Tab Trigger",
|
|
5685
5625
|
states: [
|
|
5686
5626
|
...defaultStates,
|
|
@@ -5691,71 +5631,71 @@ const t = {
|
|
|
5691
5631
|
}
|
|
5692
5632
|
],
|
|
5693
5633
|
presetStyle: {
|
|
5694
|
-
button: [button, b$
|
|
5634
|
+
button: [button, b$6].flat()
|
|
5695
5635
|
}
|
|
5696
|
-
},
|
|
5636
|
+
}, x$2 = {
|
|
5697
5637
|
type: "container",
|
|
5698
5638
|
label: "Tab Content",
|
|
5699
5639
|
icon: ContentIcon,
|
|
5700
5640
|
constraints: {
|
|
5701
5641
|
relation: "ancestor",
|
|
5702
|
-
component: { $eq:
|
|
5642
|
+
component: { $eq: n.Tabs }
|
|
5703
5643
|
},
|
|
5704
|
-
indexWithinAncestor:
|
|
5705
|
-
presetStyle:
|
|
5644
|
+
indexWithinAncestor: n.Tabs,
|
|
5645
|
+
presetStyle: o
|
|
5706
5646
|
};
|
|
5707
5647
|
const p = {
|
|
5708
5648
|
label
|
|
5709
|
-
}, l
|
|
5649
|
+
}, l = {
|
|
5710
5650
|
type: "container",
|
|
5711
5651
|
icon: LabelIcon,
|
|
5712
5652
|
presetStyle: p,
|
|
5713
5653
|
states: defaultStates
|
|
5714
5654
|
};
|
|
5715
|
-
const
|
|
5655
|
+
const t = {
|
|
5716
5656
|
div
|
|
5717
|
-
},
|
|
5657
|
+
}, H = {
|
|
5718
5658
|
type: "container",
|
|
5719
5659
|
icon: AccordionIcon,
|
|
5720
|
-
presetStyle:
|
|
5660
|
+
presetStyle: t,
|
|
5721
5661
|
constraints: [
|
|
5722
5662
|
{
|
|
5723
5663
|
relation: "descendant",
|
|
5724
|
-
component: { $eq:
|
|
5664
|
+
component: { $eq: n.AccordionItem }
|
|
5725
5665
|
}
|
|
5726
5666
|
]
|
|
5727
|
-
},
|
|
5667
|
+
}, C$2 = {
|
|
5728
5668
|
type: "container",
|
|
5729
5669
|
label: "Item",
|
|
5730
5670
|
icon: ItemIcon,
|
|
5731
5671
|
constraints: [
|
|
5732
5672
|
{
|
|
5733
5673
|
relation: "ancestor",
|
|
5734
|
-
component: { $eq:
|
|
5674
|
+
component: { $eq: n.Accordion }
|
|
5735
5675
|
},
|
|
5736
5676
|
{
|
|
5737
5677
|
relation: "descendant",
|
|
5738
|
-
component: { $eq:
|
|
5678
|
+
component: { $eq: n.AccordionHeader }
|
|
5739
5679
|
},
|
|
5740
5680
|
{
|
|
5741
5681
|
relation: "descendant",
|
|
5742
|
-
component: { $eq:
|
|
5682
|
+
component: { $eq: n.AccordionContent }
|
|
5743
5683
|
}
|
|
5744
5684
|
],
|
|
5745
|
-
indexWithinAncestor:
|
|
5746
|
-
presetStyle:
|
|
5747
|
-
},
|
|
5685
|
+
indexWithinAncestor: n.Accordion,
|
|
5686
|
+
presetStyle: t
|
|
5687
|
+
}, T = {
|
|
5748
5688
|
type: "container",
|
|
5749
5689
|
label: "Item Header",
|
|
5750
5690
|
icon: HeaderIcon,
|
|
5751
5691
|
constraints: [
|
|
5752
5692
|
{
|
|
5753
5693
|
relation: "ancestor",
|
|
5754
|
-
component: { $eq:
|
|
5694
|
+
component: { $eq: n.AccordionItem }
|
|
5755
5695
|
},
|
|
5756
5696
|
{
|
|
5757
5697
|
relation: "descendant",
|
|
5758
|
-
component: { $eq:
|
|
5698
|
+
component: { $eq: n.AccordionTrigger }
|
|
5759
5699
|
}
|
|
5760
5700
|
],
|
|
5761
5701
|
presetStyle: {
|
|
@@ -5771,13 +5711,13 @@ const o = {
|
|
|
5771
5711
|
}
|
|
5772
5712
|
]
|
|
5773
5713
|
}
|
|
5774
|
-
},
|
|
5714
|
+
}, x$1 = {
|
|
5775
5715
|
type: "container",
|
|
5776
5716
|
label: "Item Trigger",
|
|
5777
5717
|
icon: TriggerIcon,
|
|
5778
5718
|
constraints: {
|
|
5779
5719
|
relation: "ancestor",
|
|
5780
|
-
component: { $eq:
|
|
5720
|
+
component: { $eq: n.AccordionHeader }
|
|
5781
5721
|
},
|
|
5782
5722
|
states: [
|
|
5783
5723
|
...defaultStates,
|
|
@@ -5788,19 +5728,19 @@ const o = {
|
|
|
5788
5728
|
}
|
|
5789
5729
|
],
|
|
5790
5730
|
presetStyle: {
|
|
5791
|
-
button: [button, b$
|
|
5731
|
+
button: [button, b$6].flat()
|
|
5792
5732
|
}
|
|
5793
|
-
},
|
|
5733
|
+
}, M = {
|
|
5794
5734
|
type: "container",
|
|
5795
5735
|
label: "Item Content",
|
|
5796
5736
|
icon: ContentIcon,
|
|
5797
5737
|
constraints: {
|
|
5798
5738
|
relation: "ancestor",
|
|
5799
|
-
component: { $eq:
|
|
5739
|
+
component: { $eq: n.AccordionItem }
|
|
5800
5740
|
},
|
|
5801
|
-
presetStyle:
|
|
5741
|
+
presetStyle: t
|
|
5802
5742
|
};
|
|
5803
|
-
const
|
|
5743
|
+
const d = {
|
|
5804
5744
|
type: "container",
|
|
5805
5745
|
icon: NavigationMenuIcon,
|
|
5806
5746
|
presetStyle: {
|
|
@@ -5809,102 +5749,104 @@ const y$1 = {
|
|
|
5809
5749
|
constraints: [
|
|
5810
5750
|
{
|
|
5811
5751
|
relation: "descendant",
|
|
5812
|
-
component: { $eq:
|
|
5752
|
+
component: { $eq: n.NavigationMenuList }
|
|
5813
5753
|
},
|
|
5814
5754
|
{
|
|
5815
5755
|
relation: "descendant",
|
|
5816
|
-
component: { $eq:
|
|
5756
|
+
component: { $eq: n.NavigationMenuViewport }
|
|
5817
5757
|
}
|
|
5818
5758
|
]
|
|
5819
|
-
},
|
|
5759
|
+
}, $ = {
|
|
5820
5760
|
type: "container",
|
|
5821
5761
|
icon: ListIcon,
|
|
5822
5762
|
constraints: [
|
|
5823
5763
|
{
|
|
5824
5764
|
relation: "ancestor",
|
|
5825
|
-
component: { $eq:
|
|
5765
|
+
component: { $eq: n.NavigationMenu }
|
|
5826
5766
|
},
|
|
5827
5767
|
{
|
|
5828
5768
|
relation: "descendant",
|
|
5829
|
-
component: { $eq:
|
|
5769
|
+
component: { $eq: n.NavigationMenuItem }
|
|
5830
5770
|
}
|
|
5831
5771
|
],
|
|
5832
5772
|
presetStyle: {
|
|
5833
5773
|
div
|
|
5834
5774
|
},
|
|
5835
5775
|
label: "Menu List"
|
|
5836
|
-
}, $ = {
|
|
5776
|
+
}, q$1 = {
|
|
5837
5777
|
type: "container",
|
|
5838
5778
|
icon: ListItemIcon,
|
|
5839
5779
|
constraints: {
|
|
5840
5780
|
relation: "ancestor",
|
|
5841
|
-
component: { $eq:
|
|
5781
|
+
component: { $eq: n.NavigationMenuList }
|
|
5842
5782
|
},
|
|
5843
5783
|
presetStyle: {
|
|
5844
5784
|
div
|
|
5845
5785
|
},
|
|
5846
|
-
indexWithinAncestor:
|
|
5786
|
+
indexWithinAncestor: n.NavigationMenu,
|
|
5847
5787
|
label: "Menu Item"
|
|
5848
|
-
},
|
|
5788
|
+
}, b$4 = {
|
|
5849
5789
|
type: "container",
|
|
5850
5790
|
icon: TriggerIcon,
|
|
5851
5791
|
constraints: {
|
|
5852
5792
|
relation: "ancestor",
|
|
5853
|
-
component: { $eq:
|
|
5793
|
+
component: { $eq: n.NavigationMenuItem }
|
|
5854
5794
|
},
|
|
5855
5795
|
label: "Menu Trigger"
|
|
5856
|
-
},
|
|
5796
|
+
}, w$1 = {
|
|
5857
5797
|
type: "container",
|
|
5858
5798
|
icon: ContentIcon,
|
|
5859
5799
|
constraints: {
|
|
5860
5800
|
relation: "ancestor",
|
|
5861
|
-
component: { $eq:
|
|
5801
|
+
component: { $eq: n.NavigationMenuItem }
|
|
5862
5802
|
},
|
|
5863
|
-
indexWithinAncestor:
|
|
5803
|
+
indexWithinAncestor: n.NavigationMenu,
|
|
5864
5804
|
presetStyle: {
|
|
5865
5805
|
div
|
|
5866
5806
|
},
|
|
5867
5807
|
label: "Menu Content"
|
|
5868
|
-
},
|
|
5808
|
+
}, C$1 = {
|
|
5869
5809
|
type: "container",
|
|
5870
5810
|
icon: BoxIcon,
|
|
5871
5811
|
constraints: [
|
|
5872
5812
|
{
|
|
5873
5813
|
relation: "ancestor",
|
|
5874
|
-
component: { $eq:
|
|
5814
|
+
component: { $eq: n.NavigationMenu }
|
|
5875
5815
|
},
|
|
5876
5816
|
{
|
|
5877
5817
|
relation: "ancestor",
|
|
5878
|
-
component: {
|
|
5818
|
+
component: {
|
|
5819
|
+
$in: [n.NavigationMenuContent, n.NavigationMenuItem]
|
|
5820
|
+
}
|
|
5879
5821
|
}
|
|
5880
5822
|
],
|
|
5881
5823
|
label: "Accessible Link Wrapper"
|
|
5882
|
-
},
|
|
5824
|
+
}, V = {
|
|
5883
5825
|
type: "container",
|
|
5884
5826
|
icon: ViewportIcon,
|
|
5885
5827
|
constraints: {
|
|
5886
5828
|
relation: "ancestor",
|
|
5887
|
-
component: { $eq:
|
|
5829
|
+
component: { $eq: n.NavigationMenu }
|
|
5888
5830
|
},
|
|
5889
5831
|
presetStyle: {
|
|
5890
5832
|
div
|
|
5891
5833
|
},
|
|
5892
5834
|
label: "Menu Viewport"
|
|
5893
5835
|
};
|
|
5894
|
-
const
|
|
5836
|
+
const C = {
|
|
5895
5837
|
type: "container",
|
|
5896
5838
|
icon: SelectIcon,
|
|
5897
5839
|
constraints: [
|
|
5898
5840
|
{
|
|
5899
5841
|
relation: "descendant",
|
|
5900
|
-
component: { $eq:
|
|
5842
|
+
component: { $eq: n.SelectTrigger }
|
|
5901
5843
|
},
|
|
5902
5844
|
{
|
|
5903
5845
|
relation: "descendant",
|
|
5904
|
-
component: { $eq:
|
|
5846
|
+
component: { $eq: n.SelectContent }
|
|
5905
5847
|
}
|
|
5906
5848
|
]
|
|
5907
|
-
},
|
|
5849
|
+
}, w = {
|
|
5908
5850
|
type: "container",
|
|
5909
5851
|
icon: TriggerIcon,
|
|
5910
5852
|
presetStyle: {
|
|
@@ -5913,14 +5855,14 @@ const M = {
|
|
|
5913
5855
|
constraints: [
|
|
5914
5856
|
{
|
|
5915
5857
|
relation: "ancestor",
|
|
5916
|
-
component: { $eq:
|
|
5858
|
+
component: { $eq: n.Select }
|
|
5917
5859
|
},
|
|
5918
5860
|
{
|
|
5919
5861
|
relation: "descendant",
|
|
5920
|
-
component: { $eq:
|
|
5862
|
+
component: { $eq: n.SelectValue }
|
|
5921
5863
|
}
|
|
5922
5864
|
]
|
|
5923
|
-
},
|
|
5865
|
+
}, b$3 = {
|
|
5924
5866
|
type: "container",
|
|
5925
5867
|
label: "Value",
|
|
5926
5868
|
icon: FormTextFieldIcon,
|
|
@@ -5929,9 +5871,9 @@ const M = {
|
|
|
5929
5871
|
},
|
|
5930
5872
|
constraints: {
|
|
5931
5873
|
relation: "ancestor",
|
|
5932
|
-
component: { $eq:
|
|
5874
|
+
component: { $eq: n.SelectTrigger }
|
|
5933
5875
|
}
|
|
5934
|
-
},
|
|
5876
|
+
}, f = {
|
|
5935
5877
|
type: "container",
|
|
5936
5878
|
icon: ContentIcon,
|
|
5937
5879
|
presetStyle: {
|
|
@@ -5940,14 +5882,14 @@ const M = {
|
|
|
5940
5882
|
constraints: [
|
|
5941
5883
|
{
|
|
5942
5884
|
relation: "ancestor",
|
|
5943
|
-
component: { $eq:
|
|
5885
|
+
component: { $eq: n.Select }
|
|
5944
5886
|
},
|
|
5945
5887
|
{
|
|
5946
5888
|
relation: "descendant",
|
|
5947
|
-
component: { $eq:
|
|
5889
|
+
component: { $eq: n.SelectViewport }
|
|
5948
5890
|
}
|
|
5949
5891
|
]
|
|
5950
|
-
},
|
|
5892
|
+
}, v = {
|
|
5951
5893
|
type: "container",
|
|
5952
5894
|
icon: ViewportIcon,
|
|
5953
5895
|
presetStyle: {
|
|
@@ -5956,61 +5898,61 @@ const M = {
|
|
|
5956
5898
|
constraints: [
|
|
5957
5899
|
{
|
|
5958
5900
|
relation: "ancestor",
|
|
5959
|
-
component: { $eq:
|
|
5901
|
+
component: { $eq: n.SelectContent }
|
|
5960
5902
|
},
|
|
5961
5903
|
{
|
|
5962
5904
|
relation: "descendant",
|
|
5963
|
-
component: { $eq:
|
|
5905
|
+
component: { $eq: n.SelectItem }
|
|
5964
5906
|
}
|
|
5965
5907
|
]
|
|
5966
|
-
},
|
|
5908
|
+
}, P = {
|
|
5967
5909
|
type: "container",
|
|
5968
5910
|
icon: ItemIcon,
|
|
5969
5911
|
constraints: [
|
|
5970
5912
|
{
|
|
5971
5913
|
relation: "ancestor",
|
|
5972
|
-
component: { $eq:
|
|
5914
|
+
component: { $eq: n.SelectViewport }
|
|
5973
5915
|
},
|
|
5974
5916
|
{
|
|
5975
5917
|
relation: "descendant",
|
|
5976
|
-
component: { $eq:
|
|
5918
|
+
component: { $eq: n.SelectItemIndicator }
|
|
5977
5919
|
},
|
|
5978
5920
|
{
|
|
5979
5921
|
relation: "descendant",
|
|
5980
|
-
component: { $eq:
|
|
5922
|
+
component: { $eq: n.SelectItemText }
|
|
5981
5923
|
}
|
|
5982
5924
|
],
|
|
5983
5925
|
presetStyle: {
|
|
5984
5926
|
div
|
|
5985
5927
|
}
|
|
5986
|
-
},
|
|
5928
|
+
}, h = {
|
|
5987
5929
|
type: "container",
|
|
5988
5930
|
label: "Indicator",
|
|
5989
5931
|
icon: CheckMarkIcon,
|
|
5990
5932
|
constraints: {
|
|
5991
5933
|
relation: "ancestor",
|
|
5992
|
-
component: { $eq:
|
|
5934
|
+
component: { $eq: n.SelectItem }
|
|
5993
5935
|
},
|
|
5994
5936
|
presetStyle: {
|
|
5995
5937
|
span
|
|
5996
5938
|
}
|
|
5997
|
-
},
|
|
5939
|
+
}, k = {
|
|
5998
5940
|
type: "container",
|
|
5999
5941
|
label: "Item Text",
|
|
6000
5942
|
icon: TextIcon,
|
|
6001
5943
|
constraints: {
|
|
6002
5944
|
relation: "ancestor",
|
|
6003
|
-
component: { $eq:
|
|
5945
|
+
component: { $eq: n.SelectItem }
|
|
6004
5946
|
},
|
|
6005
5947
|
presetStyle: {
|
|
6006
5948
|
span
|
|
6007
5949
|
}
|
|
6008
5950
|
};
|
|
6009
|
-
const
|
|
5951
|
+
const S = {
|
|
6010
5952
|
type: "container",
|
|
6011
5953
|
constraints: {
|
|
6012
5954
|
relation: "descendant",
|
|
6013
|
-
component: { $eq:
|
|
5955
|
+
component: { $eq: n.SwitchThumb }
|
|
6014
5956
|
},
|
|
6015
5957
|
icon: SwitchIcon,
|
|
6016
5958
|
states: [
|
|
@@ -6027,13 +5969,13 @@ const d = {
|
|
|
6027
5969
|
}
|
|
6028
5970
|
],
|
|
6029
5971
|
presetStyle: {
|
|
6030
|
-
button: [button, b$
|
|
5972
|
+
button: [button, b$6].flat()
|
|
6031
5973
|
}
|
|
6032
|
-
},
|
|
5974
|
+
}, b$2 = {
|
|
6033
5975
|
type: "container",
|
|
6034
5976
|
constraints: {
|
|
6035
5977
|
relation: "ancestor",
|
|
6036
|
-
component: { $eq:
|
|
5978
|
+
component: { $eq: n.Switch }
|
|
6037
5979
|
},
|
|
6038
5980
|
icon: TriggerIcon,
|
|
6039
5981
|
states: [
|
|
@@ -6053,11 +5995,11 @@ const d = {
|
|
|
6053
5995
|
span
|
|
6054
5996
|
}
|
|
6055
5997
|
};
|
|
6056
|
-
const
|
|
5998
|
+
const b$1 = {
|
|
6057
5999
|
type: "container",
|
|
6058
6000
|
constraints: {
|
|
6059
6001
|
relation: "descendant",
|
|
6060
|
-
component: { $eq:
|
|
6002
|
+
component: { $eq: n.CheckboxIndicator }
|
|
6061
6003
|
},
|
|
6062
6004
|
icon: CheckboxCheckedIcon,
|
|
6063
6005
|
states: [
|
|
@@ -6074,13 +6016,13 @@ const k = {
|
|
|
6074
6016
|
}
|
|
6075
6017
|
],
|
|
6076
6018
|
presetStyle: {
|
|
6077
|
-
button: [button, b$
|
|
6019
|
+
button: [button, b$6].flat()
|
|
6078
6020
|
}
|
|
6079
|
-
},
|
|
6021
|
+
}, x = {
|
|
6080
6022
|
type: "container",
|
|
6081
6023
|
constraints: {
|
|
6082
6024
|
relation: "ancestor",
|
|
6083
|
-
component: { $eq:
|
|
6025
|
+
component: { $eq: n.Checkbox }
|
|
6084
6026
|
},
|
|
6085
6027
|
icon: TriggerIcon,
|
|
6086
6028
|
states: defaultStates,
|
|
@@ -6088,11 +6030,11 @@ const k = {
|
|
|
6088
6030
|
span
|
|
6089
6031
|
}
|
|
6090
6032
|
};
|
|
6091
|
-
const
|
|
6033
|
+
const y = {
|
|
6092
6034
|
type: "container",
|
|
6093
6035
|
constraints: {
|
|
6094
6036
|
relation: "descendant",
|
|
6095
|
-
component: { $eq:
|
|
6037
|
+
component: { $eq: n.RadioGroupItem }
|
|
6096
6038
|
},
|
|
6097
6039
|
icon: RadioGroupIcon,
|
|
6098
6040
|
states: [
|
|
@@ -6111,29 +6053,29 @@ const I = {
|
|
|
6111
6053
|
presetStyle: {
|
|
6112
6054
|
div
|
|
6113
6055
|
}
|
|
6114
|
-
},
|
|
6056
|
+
}, b = {
|
|
6115
6057
|
type: "container",
|
|
6116
6058
|
constraints: [
|
|
6117
6059
|
{
|
|
6118
6060
|
relation: "ancestor",
|
|
6119
|
-
component: { $eq:
|
|
6061
|
+
component: { $eq: n.RadioGroup }
|
|
6120
6062
|
},
|
|
6121
6063
|
{
|
|
6122
6064
|
relation: "descendant",
|
|
6123
|
-
component: { $eq:
|
|
6065
|
+
component: { $eq: n.RadioGroupIndicator }
|
|
6124
6066
|
}
|
|
6125
6067
|
],
|
|
6126
6068
|
icon: ItemIcon,
|
|
6127
6069
|
states: defaultStates,
|
|
6128
6070
|
presetStyle: {
|
|
6129
|
-
button: [button, b$
|
|
6071
|
+
button: [button, b$6].flat()
|
|
6130
6072
|
}
|
|
6131
|
-
},
|
|
6073
|
+
}, q = {
|
|
6132
6074
|
type: "container",
|
|
6133
6075
|
icon: TriggerIcon,
|
|
6134
6076
|
constraints: {
|
|
6135
6077
|
relation: "ancestor",
|
|
6136
|
-
component: { $eq:
|
|
6078
|
+
component: { $eq: n.RadioGroupItem }
|
|
6137
6079
|
},
|
|
6138
6080
|
states: defaultStates,
|
|
6139
6081
|
presetStyle: {
|
|
@@ -6142,54 +6084,54 @@ const I = {
|
|
|
6142
6084
|
};
|
|
6143
6085
|
const radixComponentMetas = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6144
6086
|
__proto__: null,
|
|
6145
|
-
Accordion:
|
|
6146
|
-
AccordionContent:
|
|
6147
|
-
AccordionHeader:
|
|
6148
|
-
AccordionItem:
|
|
6149
|
-
AccordionTrigger:
|
|
6150
|
-
Checkbox:
|
|
6151
|
-
CheckboxIndicator:
|
|
6152
|
-
Collapsible:
|
|
6153
|
-
CollapsibleContent:
|
|
6154
|
-
CollapsibleTrigger:
|
|
6155
|
-
Dialog:
|
|
6156
|
-
DialogClose:
|
|
6157
|
-
DialogContent:
|
|
6158
|
-
DialogDescription:
|
|
6159
|
-
DialogOverlay:
|
|
6160
|
-
DialogTitle:
|
|
6161
|
-
DialogTrigger:
|
|
6162
|
-
Label: l
|
|
6163
|
-
NavigationMenu:
|
|
6164
|
-
NavigationMenuContent:
|
|
6165
|
-
NavigationMenuItem:
|
|
6166
|
-
NavigationMenuLink:
|
|
6167
|
-
NavigationMenuList:
|
|
6168
|
-
NavigationMenuTrigger:
|
|
6169
|
-
NavigationMenuViewport:
|
|
6170
|
-
Popover:
|
|
6171
|
-
PopoverContent:
|
|
6172
|
-
PopoverTrigger:
|
|
6173
|
-
RadioGroup:
|
|
6174
|
-
RadioGroupIndicator:
|
|
6175
|
-
RadioGroupItem:
|
|
6176
|
-
Select:
|
|
6177
|
-
SelectContent:
|
|
6178
|
-
SelectItem:
|
|
6179
|
-
SelectItemIndicator:
|
|
6180
|
-
SelectItemText:
|
|
6181
|
-
SelectTrigger:
|
|
6182
|
-
SelectValue:
|
|
6183
|
-
SelectViewport:
|
|
6184
|
-
Switch:
|
|
6185
|
-
SwitchThumb:
|
|
6186
|
-
Tabs:
|
|
6187
|
-
TabsContent:
|
|
6188
|
-
TabsList:
|
|
6189
|
-
TabsTrigger:
|
|
6190
|
-
Tooltip:
|
|
6191
|
-
TooltipContent:
|
|
6192
|
-
TooltipTrigger:
|
|
6087
|
+
Accordion: H,
|
|
6088
|
+
AccordionContent: M,
|
|
6089
|
+
AccordionHeader: T,
|
|
6090
|
+
AccordionItem: C$2,
|
|
6091
|
+
AccordionTrigger: x$1,
|
|
6092
|
+
Checkbox: b$1,
|
|
6093
|
+
CheckboxIndicator: x,
|
|
6094
|
+
Collapsible: m$1,
|
|
6095
|
+
CollapsibleContent: g$2,
|
|
6096
|
+
CollapsibleTrigger: b$7,
|
|
6097
|
+
Dialog: H$1,
|
|
6098
|
+
DialogClose: E,
|
|
6099
|
+
DialogContent: x$3,
|
|
6100
|
+
DialogDescription: h$1,
|
|
6101
|
+
DialogOverlay: b$5,
|
|
6102
|
+
DialogTitle: B,
|
|
6103
|
+
DialogTrigger: S$1,
|
|
6104
|
+
Label: l,
|
|
6105
|
+
NavigationMenu: d,
|
|
6106
|
+
NavigationMenuContent: w$1,
|
|
6107
|
+
NavigationMenuItem: q$1,
|
|
6108
|
+
NavigationMenuLink: C$1,
|
|
6109
|
+
NavigationMenuList: $,
|
|
6110
|
+
NavigationMenuTrigger: b$4,
|
|
6111
|
+
NavigationMenuViewport: V,
|
|
6112
|
+
Popover: l$1,
|
|
6113
|
+
PopoverContent: g$1,
|
|
6114
|
+
PopoverTrigger: v$1,
|
|
6115
|
+
RadioGroup: y,
|
|
6116
|
+
RadioGroupIndicator: q,
|
|
6117
|
+
RadioGroupItem: b,
|
|
6118
|
+
Select: C,
|
|
6119
|
+
SelectContent: f,
|
|
6120
|
+
SelectItem: P,
|
|
6121
|
+
SelectItemIndicator: h,
|
|
6122
|
+
SelectItemText: k,
|
|
6123
|
+
SelectTrigger: w,
|
|
6124
|
+
SelectValue: b$3,
|
|
6125
|
+
SelectViewport: v,
|
|
6126
|
+
Switch: S,
|
|
6127
|
+
SwitchThumb: b$2,
|
|
6128
|
+
Tabs: C$3,
|
|
6129
|
+
TabsContent: x$2,
|
|
6130
|
+
TabsList: L,
|
|
6131
|
+
TabsTrigger: u,
|
|
6132
|
+
Tooltip: d$1,
|
|
6133
|
+
TooltipContent: g,
|
|
6134
|
+
TooltipTrigger: m
|
|
6193
6135
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6194
6136
|
const createFramework$2 = async () => {
|
|
6195
6137
|
const routeTemplatesDir = join("app", "route-templates");
|
|
@@ -6213,20 +6155,12 @@ const createFramework$2 = async () => {
|
|
|
6213
6155
|
const radixComponentNamespacedMetas = {};
|
|
6214
6156
|
for (const [name2, meta] of Object.entries(radixComponentMetas)) {
|
|
6215
6157
|
const namespace = "@webstudio-is/sdk-components-react-radix";
|
|
6216
|
-
radixComponentNamespacedMetas[`${namespace}:${name2}`] =
|
|
6217
|
-
meta,
|
|
6218
|
-
namespace,
|
|
6219
|
-
new Set(Object.keys(radixComponentMetas))
|
|
6220
|
-
);
|
|
6158
|
+
radixComponentNamespacedMetas[`${namespace}:${name2}`] = meta;
|
|
6221
6159
|
}
|
|
6222
6160
|
const animationComponentNamespacedMetas = {};
|
|
6223
6161
|
for (const [name2, meta] of Object.entries(animationComponentMetas)) {
|
|
6224
6162
|
const namespace = "@webstudio-is/sdk-components-animation";
|
|
6225
|
-
animationComponentNamespacedMetas[`${namespace}:${name2}`] =
|
|
6226
|
-
meta,
|
|
6227
|
-
namespace,
|
|
6228
|
-
new Set(Object.keys(animationComponentMetas))
|
|
6229
|
-
);
|
|
6163
|
+
animationComponentNamespacedMetas[`${namespace}:${name2}`] = meta;
|
|
6230
6164
|
}
|
|
6231
6165
|
return {
|
|
6232
6166
|
components: [
|
|
@@ -6279,11 +6213,11 @@ const createFramework$2 = async () => {
|
|
|
6279
6213
|
};
|
|
6280
6214
|
const reactRouterComponentMetas = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6281
6215
|
__proto__: null,
|
|
6282
|
-
Body: n$
|
|
6283
|
-
Form:
|
|
6284
|
-
Link:
|
|
6285
|
-
RemixForm:
|
|
6286
|
-
RichTextLink: a$
|
|
6216
|
+
Body: n$9,
|
|
6217
|
+
Form: c$4,
|
|
6218
|
+
Link: n$5,
|
|
6219
|
+
RemixForm: n$4,
|
|
6220
|
+
RichTextLink: a$8
|
|
6287
6221
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6288
6222
|
const createFramework$1 = async () => {
|
|
6289
6223
|
const routeTemplatesDir = join("app", "route-templates");
|
|
@@ -6307,20 +6241,12 @@ const createFramework$1 = async () => {
|
|
|
6307
6241
|
const radixComponentNamespacedMetas = {};
|
|
6308
6242
|
for (const [name2, meta] of Object.entries(radixComponentMetas)) {
|
|
6309
6243
|
const namespace = "@webstudio-is/sdk-components-react-radix";
|
|
6310
|
-
radixComponentNamespacedMetas[`${namespace}:${name2}`] =
|
|
6311
|
-
meta,
|
|
6312
|
-
namespace,
|
|
6313
|
-
new Set(Object.keys(radixComponentMetas))
|
|
6314
|
-
);
|
|
6244
|
+
radixComponentNamespacedMetas[`${namespace}:${name2}`] = meta;
|
|
6315
6245
|
}
|
|
6316
6246
|
const animationComponentNamespacedMetas = {};
|
|
6317
6247
|
for (const [name2, meta] of Object.entries(animationComponentMetas)) {
|
|
6318
6248
|
const namespace = "@webstudio-is/sdk-components-animation";
|
|
6319
|
-
animationComponentNamespacedMetas[`${namespace}:${name2}`] =
|
|
6320
|
-
meta,
|
|
6321
|
-
namespace,
|
|
6322
|
-
new Set(Object.keys(animationComponentMetas))
|
|
6323
|
-
);
|
|
6249
|
+
animationComponentNamespacedMetas[`${namespace}:${name2}`] = meta;
|
|
6324
6250
|
}
|
|
6325
6251
|
return {
|
|
6326
6252
|
components: [
|
|
@@ -6395,20 +6321,12 @@ const createFramework = async () => {
|
|
|
6395
6321
|
const radixComponentNamespacedMetas = {};
|
|
6396
6322
|
for (const [name2, meta] of Object.entries(radixComponentMetas)) {
|
|
6397
6323
|
const namespace = "@webstudio-is/sdk-components-react-radix";
|
|
6398
|
-
radixComponentNamespacedMetas[`${namespace}:${name2}`] =
|
|
6399
|
-
meta,
|
|
6400
|
-
namespace,
|
|
6401
|
-
new Set(Object.keys(radixComponentMetas))
|
|
6402
|
-
);
|
|
6324
|
+
radixComponentNamespacedMetas[`${namespace}:${name2}`] = meta;
|
|
6403
6325
|
}
|
|
6404
6326
|
const animationComponentNamespacedMetas = {};
|
|
6405
6327
|
for (const [name2, meta] of Object.entries(animationComponentMetas)) {
|
|
6406
6328
|
const namespace = "@webstudio-is/sdk-components-animation";
|
|
6407
|
-
animationComponentNamespacedMetas[`${namespace}:${name2}`] =
|
|
6408
|
-
meta,
|
|
6409
|
-
namespace,
|
|
6410
|
-
new Set(Object.keys(animationComponentMetas))
|
|
6411
|
-
);
|
|
6329
|
+
animationComponentNamespacedMetas[`${namespace}:${name2}`] = meta;
|
|
6412
6330
|
}
|
|
6413
6331
|
return {
|
|
6414
6332
|
components: [
|
|
@@ -7020,7 +6938,7 @@ const build = async (options) => {
|
|
|
7020
6938
|
const exitIfCancelled = (value) => {
|
|
7021
6939
|
if (isCancel(value)) {
|
|
7022
6940
|
cancel("Project initialization is cancelled");
|
|
7023
|
-
process.exit(
|
|
6941
|
+
process.exit(1);
|
|
7024
6942
|
}
|
|
7025
6943
|
return value;
|
|
7026
6944
|
};
|
|
@@ -7028,7 +6946,7 @@ const initFlow = async (options) => {
|
|
|
7028
6946
|
const isProjectConfigured = await isFileExists(".webstudio/config.json");
|
|
7029
6947
|
let shouldInstallDeps = false;
|
|
7030
6948
|
let folderName;
|
|
7031
|
-
let projectTemplate
|
|
6949
|
+
let projectTemplate;
|
|
7032
6950
|
if (isProjectConfigured === false) {
|
|
7033
6951
|
const shouldCreateFolder = exitIfCancelled(
|
|
7034
6952
|
await confirm({
|
|
@@ -7057,12 +6975,14 @@ const initFlow = async (options) => {
|
|
|
7057
6975
|
})
|
|
7058
6976
|
);
|
|
7059
6977
|
await link({ link: shareLink });
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
6978
|
+
if (!options.template.length) {
|
|
6979
|
+
projectTemplate = exitIfCancelled(
|
|
6980
|
+
await select$1({
|
|
6981
|
+
message: "Where would you like to deploy your project?",
|
|
6982
|
+
options: PROJECT_TEMPLATES
|
|
6983
|
+
})
|
|
6984
|
+
);
|
|
6985
|
+
}
|
|
7066
6986
|
shouldInstallDeps = exitIfCancelled(
|
|
7067
6987
|
await confirm({
|
|
7068
6988
|
message: "Would you like to install dependencies? (recommended)",
|
|
@@ -7070,7 +6990,7 @@ const initFlow = async (options) => {
|
|
|
7070
6990
|
})
|
|
7071
6991
|
);
|
|
7072
6992
|
}
|
|
7073
|
-
if (projectTemplate === void 0) {
|
|
6993
|
+
if (!options.template.length && projectTemplate === void 0) {
|
|
7074
6994
|
projectTemplate = exitIfCancelled(
|
|
7075
6995
|
await select$1({
|
|
7076
6996
|
message: "Where would you like to deploy your project?",
|
|
@@ -7081,14 +7001,12 @@ const initFlow = async (options) => {
|
|
|
7081
7001
|
await sync({ buildId: void 0, origin: void 0, authToken: void 0 });
|
|
7082
7002
|
await build({
|
|
7083
7003
|
...options,
|
|
7084
|
-
|
|
7085
|
-
template: mapToTemplatesFromOptions([projectTemplate])
|
|
7086
|
-
}
|
|
7004
|
+
template: projectTemplate ? mapToTemplatesFromOptions([projectTemplate]) : options.template
|
|
7087
7005
|
});
|
|
7088
7006
|
if (shouldInstallDeps === true) {
|
|
7089
7007
|
const install = spinner();
|
|
7090
7008
|
install.start("Installing dependencies");
|
|
7091
|
-
await x$
|
|
7009
|
+
await x$4("npm", ["install"]);
|
|
7092
7010
|
install.stop("Installed dependencies");
|
|
7093
7011
|
}
|
|
7094
7012
|
log.message();
|
|
@@ -7119,7 +7037,7 @@ const getDeploymentInstructions = (deployTarget) => {
|
|
|
7119
7037
|
}
|
|
7120
7038
|
};
|
|
7121
7039
|
const name = "webstudio";
|
|
7122
|
-
const version = "0.
|
|
7040
|
+
const version = "0.210.0";
|
|
7123
7041
|
const description = "Webstudio CLI";
|
|
7124
7042
|
const author = "Webstudio <github@webstudio.is>";
|
|
7125
7043
|
const homepage = "https://webstudio.is";
|
|
@@ -7168,14 +7086,14 @@ const dependencies = {
|
|
|
7168
7086
|
};
|
|
7169
7087
|
const devDependencies = {
|
|
7170
7088
|
"@netlify/vite-plugin-react-router": "^1.0.0",
|
|
7171
|
-
"@react-router/dev": "^7.
|
|
7172
|
-
"@react-router/fs-routes": "^7.
|
|
7173
|
-
"@remix-run/cloudflare": "^2.16.
|
|
7174
|
-
"@remix-run/cloudflare-pages": "^2.16.
|
|
7175
|
-
"@remix-run/dev": "^2.16.
|
|
7176
|
-
"@remix-run/node": "^2.16.
|
|
7177
|
-
"@remix-run/react": "^2.16.
|
|
7178
|
-
"@remix-run/server-runtime": "^2.16.
|
|
7089
|
+
"@react-router/dev": "^7.4.0",
|
|
7090
|
+
"@react-router/fs-routes": "^7.4.0",
|
|
7091
|
+
"@remix-run/cloudflare": "^2.16.2",
|
|
7092
|
+
"@remix-run/cloudflare-pages": "^2.16.2",
|
|
7093
|
+
"@remix-run/dev": "^2.16.2",
|
|
7094
|
+
"@remix-run/node": "^2.16.2",
|
|
7095
|
+
"@remix-run/react": "^2.16.2",
|
|
7096
|
+
"@remix-run/server-runtime": "^2.16.2",
|
|
7179
7097
|
"@types/react": "^18.2.70",
|
|
7180
7098
|
"@types/react-dom": "^18.2.25",
|
|
7181
7099
|
"@types/yargs": "^17.0.33",
|
|
@@ -7193,13 +7111,13 @@ const devDependencies = {
|
|
|
7193
7111
|
"@webstudio-is/sdk-components-react-router": "workspace:*",
|
|
7194
7112
|
"@webstudio-is/tsconfig": "workspace:*",
|
|
7195
7113
|
h3: "^1.15.1",
|
|
7196
|
-
ipx: "^3.0.
|
|
7114
|
+
ipx: "^3.0.3",
|
|
7197
7115
|
prettier: "3.5.3",
|
|
7198
7116
|
react: "18.3.0-canary-14898b6a9-20240318",
|
|
7199
7117
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
7200
|
-
"react-router": "^7.
|
|
7118
|
+
"react-router": "^7.4.0",
|
|
7201
7119
|
"ts-expect": "^1.3.0",
|
|
7202
|
-
vike: "^0.4.
|
|
7120
|
+
vike: "^0.4.227",
|
|
7203
7121
|
vite: "^5.4.11",
|
|
7204
7122
|
vitest: "^3.0.8",
|
|
7205
7123
|
wrangler: "^3.63.2"
|