@bysages/svelte 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Accordion-DF1vzXDg.mjs → Accordion-DUUod-V6.mjs} +1 -1
- package/dist/{Calendar-CWaU4MGJ.mjs → Calendar-MQdoAnJK.mjs} +1 -1
- package/dist/{Carousel-BWWwu5Ma.mjs → Carousel-DNMQMvm6.mjs} +1 -1
- package/dist/{Checkbox-BZb8IR25.mjs → Checkbox-z4EXYH9a.mjs} +1 -1
- package/dist/{ChevronIcon-C-MKLsfA.mjs → ChevronIcon-hvMd0d_i.mjs} +1 -1
- package/dist/{Clipboard-DBgbIGjV.mjs → Clipboard-Bdui0U6I.mjs} +1 -1
- package/dist/{Collapsible-CZ8qFLzP.mjs → Collapsible-CDwjsDwH.mjs} +1 -1
- package/dist/{ColorPicker-D6PGvfQf.mjs → ColorPicker-BBc8-TIN.mjs} +1 -1
- package/dist/{Combobox-Ba2u_SqJ.mjs → Combobox-8BSw_3Ab.mjs} +1 -1
- package/dist/{DatePicker-Dm81GmmF.mjs → DatePicker-DJDUqjiE.mjs} +1 -1
- package/dist/{Dialog-BbDr030S.mjs → Dialog-91oyw8Pi.mjs} +1 -1
- package/dist/{Drawer-C1r1wz3V.mjs → Drawer-DkFAYikg.mjs} +1 -1
- package/dist/{Editable-hjSbhWMK.mjs → Editable-lC-REFTP.mjs} +1 -1
- package/dist/{FileUpload-C6JBpvet.mjs → FileUpload-7LgqVD7x.mjs} +1 -1
- package/dist/{FloatingPanel-2z-iuVPc.mjs → FloatingPanel-DJG3Drow.mjs} +1 -1
- package/dist/{ImageViewer-8tDJvkkb.mjs → ImageViewer-s41DessS.mjs} +1 -1
- package/dist/{InternalIcon-CbfKieOs.mjs → InternalIcon-Dr81WIG1.mjs} +1 -1
- package/dist/{JsonTreeViewTree-DkusAr3j.mjs → JsonTreeViewTree-DkD987Zf.mjs} +1 -1
- package/dist/{Listbox-gAL5Q59b.mjs → Listbox-C-u5WxHv.mjs} +1 -1
- package/dist/{Menu-BiwHDpdz.mjs → Menu-DA7CeDYL.mjs} +1 -1
- package/dist/{NumberInput-B2gPYuJX.mjs → NumberInput-BDbTmUgg.mjs} +1 -1
- package/dist/{Pagination-f8XiX-Cs.mjs → Pagination-BmFNV_Vu.mjs} +1 -1
- package/dist/{PasswordInput-BhlJF3Jd.mjs → PasswordInput-Cas4e19J.mjs} +1 -1
- package/dist/{Popover-Dl-QAFG_.mjs → Popover-BQeFwet4.mjs} +1 -1
- package/dist/{RatingGroup-DTVzY6BA.mjs → RatingGroup-DSzJ56Yw.mjs} +1 -1
- package/dist/{Select-5AJHEmMi.mjs → Select-D9XgciuN.mjs} +1 -1
- package/dist/{Swap-CfgxrCzJ.mjs → Swap-CkhKz3Ue.mjs} +1 -1
- package/dist/{TagsInput-DVuAOpBt.mjs → TagsInput-BPrJLeuZ.mjs} +1 -1
- package/dist/{Toast-BHSRo7N7.mjs → Toast-mxbydOO8.mjs} +1 -1
- package/dist/{ToggleGroup-DgBoC0hi.mjs → ToggleGroup-BfW1gjVm.mjs} +1 -1
- package/dist/{TreeViewNodeCheckbox-DGfG5yIl.mjs → TreeViewNodeCheckbox-t2i6iaiq.mjs} +1 -1
- package/dist/{ai-attachments-nFUAAXoM.mjs → ai-attachments-ksKxDHG2.mjs} +1 -1
- package/dist/{ai-prompt-input-z0j3gpgu.mjs → ai-prompt-input-CMVRbC0T.mjs} +2 -2
- package/dist/{ai-reasoning-C2Ffu52i.mjs → ai-reasoning-DA6bWwlo.mjs} +1 -1
- package/dist/{ai-response-Bczv0TaC.mjs → ai-response-DrsGpVej.mjs} +1 -1
- package/dist/{ai-tool-DuhNqTWQ.mjs → ai-tool-Dew8XiYk.mjs} +1 -1
- package/dist/{alert-Cji6_TKm.mjs → alert-pTPh9zID.mjs} +1 -1
- package/dist/{back-top-WBPZ45WG.mjs → back-top-FpXkOE3N.mjs} +1 -1
- package/dist/{banner-vdEHwWWw.mjs → banner-CXrEuEc1.mjs} +1 -1
- package/dist/{cascade-select-CWjvNB4G.mjs → cascade-select-BhdGSRCa.mjs} +1 -1
- package/dist/{checkbox-group-JVSnrwhR.mjs → checkbox-group-DESN0Y8Y.mjs} +1 -1
- package/dist/components/accordion/index.d.mts +1 -1
- package/dist/components/accordion/index.mjs +1 -1
- package/dist/components/ai/index.mjs +4 -4
- package/dist/components/ai-attachments/index.mjs +1 -1
- package/dist/components/ai-prompt-input/index.mjs +1 -1
- package/dist/components/ai-reasoning/index.mjs +1 -1
- package/dist/components/ai-response/index.mjs +1 -1
- package/dist/components/ai-tool/index.mjs +1 -1
- package/dist/components/alert/index.mjs +1 -1
- package/dist/components/back-top/index.mjs +1 -1
- package/dist/components/banner/index.mjs +1 -1
- package/dist/components/calendar/index.d.mts +1 -1
- package/dist/components/calendar/index.mjs +1 -1
- package/dist/components/carousel/index.d.mts +1 -1
- package/dist/components/carousel/index.mjs +1 -1
- package/dist/components/cascade-select/index.mjs +1 -1
- package/dist/components/checkbox/index.d.mts +1 -1
- package/dist/components/checkbox/index.mjs +1 -1
- package/dist/components/checkbox-group/index.mjs +1 -1
- package/dist/components/clipboard/index.d.mts +1 -1
- package/dist/components/clipboard/index.mjs +1 -1
- package/dist/components/collapsible/index.d.mts +1 -1
- package/dist/components/collapsible/index.mjs +1 -1
- package/dist/components/color-picker/index.d.mts +1 -1
- package/dist/components/color-picker/index.mjs +1 -1
- package/dist/components/combobox/index.d.mts +1 -1
- package/dist/components/combobox/index.mjs +1 -1
- package/dist/components/date-picker/index.d.mts +1 -1
- package/dist/components/date-picker/index.mjs +1 -1
- package/dist/components/dialog/index.d.mts +1 -1
- package/dist/components/dialog/index.mjs +1 -1
- package/dist/components/drawer/index.d.mts +1 -1
- package/dist/components/drawer/index.mjs +1 -1
- package/dist/components/dynamic-input/index.mjs +1 -1
- package/dist/components/editable/index.d.mts +1 -1
- package/dist/components/editable/index.mjs +1 -1
- package/dist/components/file-upload/index.d.mts +1 -1
- package/dist/components/file-upload/index.mjs +1 -1
- package/dist/components/floating-panel/index.d.mts +1 -1
- package/dist/components/floating-panel/index.mjs +1 -1
- package/dist/components/image/index.mjs +1 -1
- package/dist/components/image-viewer/index.d.mts +1 -1
- package/dist/components/image-viewer/index.mjs +1 -1
- package/dist/components/json-tree-view/index.d.mts +1 -1
- package/dist/components/json-tree-view/index.mjs +1 -1
- package/dist/components/listbox/index.d.mts +1 -1
- package/dist/components/listbox/index.mjs +1 -1
- package/dist/components/media-player/index.mjs +1 -1
- package/dist/components/menu/index.d.mts +1 -1
- package/dist/components/menu/index.mjs +1 -1
- package/dist/components/number-input/index.d.mts +1 -1
- package/dist/components/number-input/index.mjs +1 -1
- package/dist/components/order-list/index.mjs +1 -1
- package/dist/components/pagination/index.d.mts +1 -1
- package/dist/components/pagination/index.mjs +1 -1
- package/dist/components/password-input/index.d.mts +1 -1
- package/dist/components/password-input/index.mjs +1 -1
- package/dist/components/popover/index.d.mts +1 -1
- package/dist/components/popover/index.mjs +1 -1
- package/dist/components/rating-group/index.d.mts +1 -1
- package/dist/components/rating-group/index.mjs +1 -1
- package/dist/components/result/index.mjs +1 -1
- package/dist/components/select/index.d.mts +1 -1
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/split-button/index.mjs +1 -1
- package/dist/components/swap/index.d.mts +1 -1
- package/dist/components/swap/index.mjs +1 -1
- package/dist/components/table/index.mjs +1 -1
- package/dist/components/tag/index.mjs +1 -1
- package/dist/components/tags-input/index.d.mts +1 -1
- package/dist/components/tags-input/index.mjs +1 -1
- package/dist/components/toast/index.d.mts +1 -1
- package/dist/components/toast/index.mjs +1 -1
- package/dist/components/toggle-group/index.d.mts +1 -1
- package/dist/components/toggle-group/index.mjs +1 -1
- package/dist/components/transfer/index.mjs +1 -1
- package/dist/components/tree-select/index.mjs +1 -1
- package/dist/components/tree-view/index.d.mts +1 -1
- package/dist/components/tree-view/index.mjs +1 -1
- package/dist/{dynamic-input-BDF0xRDd.mjs → dynamic-input-BpzL0Fe-.mjs} +1 -1
- package/dist/generative/index.d.mts +47 -0
- package/dist/generative/index.mjs +1899 -0
- package/dist/{icon-C6ohnKuW.mjs → icon-CKL_BxrZ.mjs} +7 -1
- package/dist/{image-BCYdfhgr.mjs → image-BpWDMvNm.mjs} +1 -1
- package/dist/{index-C4FVU8_3.d.mts → index-BudqX93u.d.mts} +1 -1
- package/dist/{index-DTYHFIbh.d.mts → index-BwUGTQag.d.mts} +1 -1
- package/dist/{index-BEZCr62O.d.mts → index-CGk6TYb-.d.mts} +1 -1
- package/dist/{index-CFxAJ3UH.d.mts → index-DyAQSYqR.d.mts} +1 -1
- package/dist/{index-BDEuWWx7.d.mts → index-FmT_lwS7.d.mts} +1 -1
- package/dist/{index-M2f9hz3z.d.mts → index-njppQnYT.d.mts} +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +21 -21
- package/dist/{media-player-085Q_gL8.mjs → media-player-DEXKLoUX.mjs} +2 -2
- package/dist/{order-list-DtAaQ6VS.mjs → order-list-C8O2NdGR.mjs} +1 -1
- package/dist/{result-CwLNxqk-.mjs → result-BRbQTUeW.mjs} +2 -1
- package/dist/{select-CqOZTmfR.mjs → select-CVMOvviD.mjs} +2 -2
- package/dist/{split-button-18nv8J3q.mjs → split-button-BEgDY4EZ.mjs} +1 -1
- package/dist/{table-LfPEezF-.mjs → table-HzpYIOst.mjs} +3 -3
- package/dist/{tag-S2DR-cEP.mjs → tag-CXAD4ox2.mjs} +47 -28
- package/dist/{transfer-kGHh9bJH.mjs → transfer-CnfoiJ8O.mjs} +1 -1
- package/dist/{tree-select-BRQjFrHA.mjs → tree-select-CR2-Jskd.mjs} +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,1899 @@
|
|
|
1
|
+
import { t as InternalIcon } from "../InternalIcon-Dr81WIG1.mjs";
|
|
2
|
+
import { t as Button } from "../button-Cl45zjdj.mjs";
|
|
3
|
+
import { t as Alert } from "../alert-pTPh9zID.mjs";
|
|
4
|
+
import { Avatar } from "../components/avatar/index.mjs";
|
|
5
|
+
import { t as Badge } from "../badge-N_KoQG_c.mjs";
|
|
6
|
+
import { t as Card } from "../card-DPVT_VaK.mjs";
|
|
7
|
+
import { Checkbox } from "../components/checkbox/index.mjs";
|
|
8
|
+
import { Input } from "../components/input/index.mjs";
|
|
9
|
+
import { Progress } from "../components/progress/index.mjs";
|
|
10
|
+
import { RadioGroup } from "../components/radio-group/index.mjs";
|
|
11
|
+
import { n as Select } from "../select-CVMOvviD.mjs";
|
|
12
|
+
import { t as Separator } from "../separator-I0MEoHjO.mjs";
|
|
13
|
+
import { Slider } from "../components/slider/index.mjs";
|
|
14
|
+
import { t as Stack } from "../stack-uMjCwn_2.mjs";
|
|
15
|
+
import { Spinner } from "../components/spinner/index.mjs";
|
|
16
|
+
import { t as Stat } from "../stat-DQ-5P4Gr.mjs";
|
|
17
|
+
import { Switch } from "../components/switch/index.mjs";
|
|
18
|
+
import { t as Textarea } from "../textarea-ClX5LWLE.mjs";
|
|
19
|
+
import { t as Typography } from "../typography-DUWj7wex.mjs";
|
|
20
|
+
import "svelte/internal/disclose-version";
|
|
21
|
+
import * as $ from "svelte/internal/client";
|
|
22
|
+
import { createListCollection } from "@ark-ui/svelte/collection";
|
|
23
|
+
import { z } from "zod";
|
|
24
|
+
import { defineRegistry, getBoundProp } from "@json-render/svelte";
|
|
25
|
+
import { defineCatalog } from "@json-render/core";
|
|
26
|
+
import { schema } from "@json-render/svelte/schema";
|
|
27
|
+
//#region \0rolldown/runtime.js
|
|
28
|
+
var __defProp = Object.defineProperty;
|
|
29
|
+
var __exportAll = (all, no_symbols) => {
|
|
30
|
+
let target = {};
|
|
31
|
+
for (var name in all) __defProp(target, name, {
|
|
32
|
+
get: all[name],
|
|
33
|
+
enumerable: true
|
|
34
|
+
});
|
|
35
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
36
|
+
return target;
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/generative/faces.generated.ts
|
|
40
|
+
/** Name the faces a family contributes; the identity keeps inference
|
|
41
|
+
* honest at the call site. */
|
|
42
|
+
function defineFace(faces) {
|
|
43
|
+
return faces;
|
|
44
|
+
}
|
|
45
|
+
/** Map a catalog Heading level to a measure — the serif voice stays, the
|
|
46
|
+
* size steps down. */
|
|
47
|
+
const headingClass = {
|
|
48
|
+
"1": "text-4xl",
|
|
49
|
+
"2": "text-3xl",
|
|
50
|
+
"3": "text-2xl",
|
|
51
|
+
"4": "text-xl",
|
|
52
|
+
"5": "text-lg",
|
|
53
|
+
"6": "text-base"
|
|
54
|
+
};
|
|
55
|
+
function initials(name) {
|
|
56
|
+
return name.split(/\s+/).filter(Boolean).slice(0, 2).map((part) => part[0]?.toUpperCase() ?? "").join("");
|
|
57
|
+
}
|
|
58
|
+
function slug(value) {
|
|
59
|
+
return value.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "") || value;
|
|
60
|
+
}
|
|
61
|
+
/** The vocabulary the wrappers speak. One face per composed name — the
|
|
62
|
+
* per-family assemblies in each wrapper spread these and add only the
|
|
63
|
+
* rendering. */
|
|
64
|
+
const faces$1 = defineFace({
|
|
65
|
+
Alert: {
|
|
66
|
+
props: z.object({
|
|
67
|
+
status: z.enum([
|
|
68
|
+
"success",
|
|
69
|
+
"warning",
|
|
70
|
+
"danger",
|
|
71
|
+
"info",
|
|
72
|
+
"ink"
|
|
73
|
+
]).optional(),
|
|
74
|
+
title: z.string().optional(),
|
|
75
|
+
message: z.string().optional()
|
|
76
|
+
}),
|
|
77
|
+
description: "A bordered notice; status picks the pigment."
|
|
78
|
+
},
|
|
79
|
+
Avatar: {
|
|
80
|
+
props: z.object({
|
|
81
|
+
name: z.string(),
|
|
82
|
+
src: z.string().optional(),
|
|
83
|
+
size: z.enum([
|
|
84
|
+
"sm",
|
|
85
|
+
"md",
|
|
86
|
+
"lg"
|
|
87
|
+
]).optional()
|
|
88
|
+
}),
|
|
89
|
+
description: "A person's seal: image when given, initials as the fallback."
|
|
90
|
+
},
|
|
91
|
+
Badge: {
|
|
92
|
+
props: z.object({
|
|
93
|
+
text: z.string(),
|
|
94
|
+
tone: z.enum([
|
|
95
|
+
"ink",
|
|
96
|
+
"primary",
|
|
97
|
+
"success",
|
|
98
|
+
"warning",
|
|
99
|
+
"danger",
|
|
100
|
+
"info"
|
|
101
|
+
]).optional(),
|
|
102
|
+
variant: z.enum([
|
|
103
|
+
"solid",
|
|
104
|
+
"subtle",
|
|
105
|
+
"outline"
|
|
106
|
+
]).optional()
|
|
107
|
+
}),
|
|
108
|
+
description: "A small status seal beside content; reads at a glance."
|
|
109
|
+
},
|
|
110
|
+
Button: {
|
|
111
|
+
props: z.object({
|
|
112
|
+
label: z.string(),
|
|
113
|
+
variant: z.enum([
|
|
114
|
+
"solid",
|
|
115
|
+
"outline",
|
|
116
|
+
"ghost",
|
|
117
|
+
"subtle"
|
|
118
|
+
]).optional(),
|
|
119
|
+
tone: z.enum([
|
|
120
|
+
"ink",
|
|
121
|
+
"success",
|
|
122
|
+
"warning",
|
|
123
|
+
"danger",
|
|
124
|
+
"info"
|
|
125
|
+
]).optional(),
|
|
126
|
+
size: z.enum([
|
|
127
|
+
"sm",
|
|
128
|
+
"md",
|
|
129
|
+
"lg"
|
|
130
|
+
]).optional(),
|
|
131
|
+
disabled: z.boolean().optional()
|
|
132
|
+
}),
|
|
133
|
+
description: "The primary action register: solid ink for the one main action, outline, ghost, or subtle for the rest."
|
|
134
|
+
},
|
|
135
|
+
Card: {
|
|
136
|
+
props: z.object({
|
|
137
|
+
title: z.string().optional(),
|
|
138
|
+
description: z.string().optional()
|
|
139
|
+
}),
|
|
140
|
+
slots: [
|
|
141
|
+
"default",
|
|
142
|
+
"header",
|
|
143
|
+
"footer"
|
|
144
|
+
],
|
|
145
|
+
description: "Grouping vessel. Give title and description instead of hand-building a header; children render in the body; footer holds actions."
|
|
146
|
+
},
|
|
147
|
+
Checkbox: {
|
|
148
|
+
props: z.object({
|
|
149
|
+
label: z.string(),
|
|
150
|
+
checked: z.boolean().optional(),
|
|
151
|
+
disabled: z.boolean().optional()
|
|
152
|
+
}),
|
|
153
|
+
description: "One independent box with its label."
|
|
154
|
+
},
|
|
155
|
+
Heading: {
|
|
156
|
+
props: z.object({
|
|
157
|
+
text: z.string(),
|
|
158
|
+
level: z.enum([
|
|
159
|
+
"1",
|
|
160
|
+
"2",
|
|
161
|
+
"3",
|
|
162
|
+
"4",
|
|
163
|
+
"5",
|
|
164
|
+
"6"
|
|
165
|
+
]).optional()
|
|
166
|
+
}),
|
|
167
|
+
description: "Section heading. One per view at level 1; do not skip levels."
|
|
168
|
+
},
|
|
169
|
+
Input: {
|
|
170
|
+
props: z.object({
|
|
171
|
+
label: z.string().optional(),
|
|
172
|
+
placeholder: z.string().optional(),
|
|
173
|
+
type: z.enum([
|
|
174
|
+
"text",
|
|
175
|
+
"email",
|
|
176
|
+
"url",
|
|
177
|
+
"search",
|
|
178
|
+
"tel"
|
|
179
|
+
]).optional(),
|
|
180
|
+
value: z.string().optional(),
|
|
181
|
+
disabled: z.boolean().optional()
|
|
182
|
+
}),
|
|
183
|
+
description: "A single-line field; rely on border, surface and the focus halo."
|
|
184
|
+
},
|
|
185
|
+
Progress: {
|
|
186
|
+
props: z.object({
|
|
187
|
+
value: z.number().optional(),
|
|
188
|
+
label: z.string().optional(),
|
|
189
|
+
max: z.number().optional()
|
|
190
|
+
}),
|
|
191
|
+
description: "A working track that fills toward done."
|
|
192
|
+
},
|
|
193
|
+
RadioGroup: {
|
|
194
|
+
props: z.object({
|
|
195
|
+
label: z.string().optional(),
|
|
196
|
+
items: z.array(z.string()).optional()
|
|
197
|
+
}),
|
|
198
|
+
description: "Several boxes where exactly one may hold."
|
|
199
|
+
},
|
|
200
|
+
Select: {
|
|
201
|
+
props: z.object({
|
|
202
|
+
label: z.string().optional(),
|
|
203
|
+
placeholder: z.string().optional(),
|
|
204
|
+
options: z.array(z.object({
|
|
205
|
+
label: z.string(),
|
|
206
|
+
value: z.string()
|
|
207
|
+
})),
|
|
208
|
+
value: z.union([z.string(), z.array(z.string())]).optional(),
|
|
209
|
+
multiple: z.boolean().optional(),
|
|
210
|
+
disabled: z.boolean().optional()
|
|
211
|
+
}),
|
|
212
|
+
description: "A choice field that opens a ruled list; options carry label and value."
|
|
213
|
+
},
|
|
214
|
+
Separator: {
|
|
215
|
+
props: z.object({ orientation: z.enum(["horizontal", "vertical"]).optional() }),
|
|
216
|
+
description: "Hairline divider between sections."
|
|
217
|
+
},
|
|
218
|
+
Slider: {
|
|
219
|
+
props: z.object({
|
|
220
|
+
label: z.string().optional(),
|
|
221
|
+
value: z.number().optional(),
|
|
222
|
+
min: z.number().optional(),
|
|
223
|
+
max: z.number().optional(),
|
|
224
|
+
step: z.number().optional()
|
|
225
|
+
}),
|
|
226
|
+
description: "A ruled track the hand slides between bounds."
|
|
227
|
+
},
|
|
228
|
+
Spinner: {
|
|
229
|
+
props: z.object({
|
|
230
|
+
size: z.enum([
|
|
231
|
+
"sm",
|
|
232
|
+
"md",
|
|
233
|
+
"lg"
|
|
234
|
+
]).optional(),
|
|
235
|
+
label: z.string().optional()
|
|
236
|
+
}),
|
|
237
|
+
description: "A quiet wheel for work still settling."
|
|
238
|
+
},
|
|
239
|
+
Stack: {
|
|
240
|
+
props: z.object({
|
|
241
|
+
direction: z.enum(["column", "row"]).optional(),
|
|
242
|
+
gap: z.enum([
|
|
243
|
+
"none",
|
|
244
|
+
"xs",
|
|
245
|
+
"sm",
|
|
246
|
+
"md",
|
|
247
|
+
"lg",
|
|
248
|
+
"xl"
|
|
249
|
+
]).optional(),
|
|
250
|
+
align: z.enum([
|
|
251
|
+
"start",
|
|
252
|
+
"center",
|
|
253
|
+
"end",
|
|
254
|
+
"stretch",
|
|
255
|
+
"baseline"
|
|
256
|
+
]).optional(),
|
|
257
|
+
justify: z.enum([
|
|
258
|
+
"start",
|
|
259
|
+
"center",
|
|
260
|
+
"end",
|
|
261
|
+
"space-between",
|
|
262
|
+
"space-around"
|
|
263
|
+
]).optional(),
|
|
264
|
+
wrap: z.boolean().optional()
|
|
265
|
+
}),
|
|
266
|
+
slots: ["default"],
|
|
267
|
+
description: "Flex container for layout. direction column stacks vertically, row lays side by side. gap is a named spacing step."
|
|
268
|
+
},
|
|
269
|
+
Stat: {
|
|
270
|
+
props: z.object({
|
|
271
|
+
label: z.string(),
|
|
272
|
+
value: z.string(),
|
|
273
|
+
change: z.string().optional(),
|
|
274
|
+
direction: z.enum([
|
|
275
|
+
"up",
|
|
276
|
+
"down",
|
|
277
|
+
"flat"
|
|
278
|
+
]).optional()
|
|
279
|
+
}),
|
|
280
|
+
description: "One loud figure with its quiet label and an optional delta."
|
|
281
|
+
},
|
|
282
|
+
Switch: {
|
|
283
|
+
props: z.object({
|
|
284
|
+
label: z.string().optional(),
|
|
285
|
+
checked: z.boolean().optional(),
|
|
286
|
+
disabled: z.boolean().optional()
|
|
287
|
+
}),
|
|
288
|
+
description: "An instant on/off; label names what it switches."
|
|
289
|
+
},
|
|
290
|
+
Text: {
|
|
291
|
+
props: z.object({
|
|
292
|
+
text: z.string(),
|
|
293
|
+
variant: z.enum([
|
|
294
|
+
"body",
|
|
295
|
+
"lead",
|
|
296
|
+
"muted",
|
|
297
|
+
"label"
|
|
298
|
+
]).optional()
|
|
299
|
+
}),
|
|
300
|
+
description: "A prose voice: lead opens, body carries, muted whispers, label names."
|
|
301
|
+
},
|
|
302
|
+
Textarea: {
|
|
303
|
+
props: z.object({
|
|
304
|
+
label: z.string().optional(),
|
|
305
|
+
placeholder: z.string().optional(),
|
|
306
|
+
rows: z.number().int().optional(),
|
|
307
|
+
value: z.string().optional(),
|
|
308
|
+
disabled: z.boolean().optional()
|
|
309
|
+
}),
|
|
310
|
+
description: "A multi-line field for prose-length answers."
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
//#endregion
|
|
314
|
+
//#region src/generative/shared.ts
|
|
315
|
+
/** Name the entries a family contributes; the identity keeps inference
|
|
316
|
+
* honest at the call site. */
|
|
317
|
+
function defineEntry(entries) {
|
|
318
|
+
return entries;
|
|
319
|
+
}
|
|
320
|
+
//#endregion
|
|
321
|
+
//#region src/components/alert/generative/Alert.svelte
|
|
322
|
+
var root$11 = $.from_html(`<!> <!>`, 1);
|
|
323
|
+
function Alert_1($$anchor, $$props) {
|
|
324
|
+
$.push($$props, true);
|
|
325
|
+
var fragment = $.comment();
|
|
326
|
+
var node = $.first_child(fragment);
|
|
327
|
+
{
|
|
328
|
+
let $0 = $.derived(() => $$props.props.status ?? "ink");
|
|
329
|
+
$.component(node, () => Alert.Root, ($$anchor, Alert_Root) => {
|
|
330
|
+
Alert_Root($$anchor, {
|
|
331
|
+
get status() {
|
|
332
|
+
return $.get($0);
|
|
333
|
+
},
|
|
334
|
+
children: ($$anchor, $$slotProps) => {
|
|
335
|
+
var fragment_1 = root$11();
|
|
336
|
+
var node_1 = $.first_child(fragment_1);
|
|
337
|
+
$.component(node_1, () => Alert.Icon, ($$anchor, Alert_Icon) => {
|
|
338
|
+
Alert_Icon($$anchor, {});
|
|
339
|
+
});
|
|
340
|
+
var node_2 = $.sibling(node_1, 2);
|
|
341
|
+
$.component(node_2, () => Alert.Body, ($$anchor, Alert_Body) => {
|
|
342
|
+
Alert_Body($$anchor, {
|
|
343
|
+
children: ($$anchor, $$slotProps) => {
|
|
344
|
+
var fragment_2 = root$11();
|
|
345
|
+
var node_3 = $.first_child(fragment_2);
|
|
346
|
+
$.component(node_3, () => Alert.Title, ($$anchor, Alert_Title) => {
|
|
347
|
+
Alert_Title($$anchor, {
|
|
348
|
+
children: ($$anchor, $$slotProps) => {
|
|
349
|
+
$.next();
|
|
350
|
+
var text = $.text();
|
|
351
|
+
$.template_effect(() => $.set_text(text, $$props.props.title));
|
|
352
|
+
$.append($$anchor, text);
|
|
353
|
+
},
|
|
354
|
+
$$slots: { default: true }
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
var node_4 = $.sibling(node_3, 2);
|
|
358
|
+
var consequent = ($$anchor) => {
|
|
359
|
+
var fragment_4 = $.comment();
|
|
360
|
+
var node_5 = $.first_child(fragment_4);
|
|
361
|
+
$.component(node_5, () => Alert.Description, ($$anchor, Alert_Description) => {
|
|
362
|
+
Alert_Description($$anchor, {
|
|
363
|
+
children: ($$anchor, $$slotProps) => {
|
|
364
|
+
$.next();
|
|
365
|
+
var text_1 = $.text();
|
|
366
|
+
$.template_effect(() => $.set_text(text_1, $$props.props.message));
|
|
367
|
+
$.append($$anchor, text_1);
|
|
368
|
+
},
|
|
369
|
+
$$slots: { default: true }
|
|
370
|
+
});
|
|
371
|
+
});
|
|
372
|
+
$.append($$anchor, fragment_4);
|
|
373
|
+
};
|
|
374
|
+
$.if(node_4, ($$render) => {
|
|
375
|
+
if ($$props.props.message != null) $$render(consequent);
|
|
376
|
+
});
|
|
377
|
+
$.append($$anchor, fragment_2);
|
|
378
|
+
},
|
|
379
|
+
$$slots: { default: true }
|
|
380
|
+
});
|
|
381
|
+
});
|
|
382
|
+
$.append($$anchor, fragment_1);
|
|
383
|
+
},
|
|
384
|
+
$$slots: { default: true }
|
|
385
|
+
});
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
$.append($$anchor, fragment);
|
|
389
|
+
$.pop();
|
|
390
|
+
}
|
|
391
|
+
//#endregion
|
|
392
|
+
//#region src/components/alert/generative/index.ts
|
|
393
|
+
var generative_exports$17 = /* @__PURE__ */ __exportAll({ default: () => generative_default$17 });
|
|
394
|
+
/** A bordered notice; status picks the pigment. */
|
|
395
|
+
var generative_default$17 = defineEntry({ Alert: {
|
|
396
|
+
...faces$1.Alert,
|
|
397
|
+
component: Alert_1
|
|
398
|
+
} });
|
|
399
|
+
//#endregion
|
|
400
|
+
//#region src/components/avatar/generative/Avatar.svelte
|
|
401
|
+
var root$10 = $.from_html(`<!> <!>`, 1);
|
|
402
|
+
function Avatar_1($$anchor, $$props) {
|
|
403
|
+
$.push($$props, true);
|
|
404
|
+
var fragment = $.comment();
|
|
405
|
+
var node = $.first_child(fragment);
|
|
406
|
+
$.component(node, () => Avatar.Root, ($$anchor, Avatar_Root) => {
|
|
407
|
+
Avatar_Root($$anchor, {
|
|
408
|
+
get size() {
|
|
409
|
+
return $$props.props.size;
|
|
410
|
+
},
|
|
411
|
+
children: ($$anchor, $$slotProps) => {
|
|
412
|
+
var fragment_1 = root$10();
|
|
413
|
+
var node_1 = $.first_child(fragment_1);
|
|
414
|
+
var consequent = ($$anchor) => {
|
|
415
|
+
var fragment_2 = $.comment();
|
|
416
|
+
var node_2 = $.first_child(fragment_2);
|
|
417
|
+
$.component(node_2, () => Avatar.Image, ($$anchor, Avatar_Image) => {
|
|
418
|
+
Avatar_Image($$anchor, {
|
|
419
|
+
get src() {
|
|
420
|
+
return $$props.props.src;
|
|
421
|
+
},
|
|
422
|
+
get alt() {
|
|
423
|
+
return $$props.props.name;
|
|
424
|
+
}
|
|
425
|
+
});
|
|
426
|
+
});
|
|
427
|
+
$.append($$anchor, fragment_2);
|
|
428
|
+
};
|
|
429
|
+
$.if(node_1, ($$render) => {
|
|
430
|
+
if ($$props.props.src != null) $$render(consequent);
|
|
431
|
+
});
|
|
432
|
+
var node_3 = $.sibling(node_1, 2);
|
|
433
|
+
$.component(node_3, () => Avatar.Fallback, ($$anchor, Avatar_Fallback) => {
|
|
434
|
+
Avatar_Fallback($$anchor, {
|
|
435
|
+
children: ($$anchor, $$slotProps) => {
|
|
436
|
+
$.next();
|
|
437
|
+
var text = $.text();
|
|
438
|
+
$.template_effect(($0) => $.set_text(text, $0), [() => initials($$props.props.name)]);
|
|
439
|
+
$.append($$anchor, text);
|
|
440
|
+
},
|
|
441
|
+
$$slots: { default: true }
|
|
442
|
+
});
|
|
443
|
+
});
|
|
444
|
+
$.append($$anchor, fragment_1);
|
|
445
|
+
},
|
|
446
|
+
$$slots: { default: true }
|
|
447
|
+
});
|
|
448
|
+
});
|
|
449
|
+
$.append($$anchor, fragment);
|
|
450
|
+
$.pop();
|
|
451
|
+
}
|
|
452
|
+
//#endregion
|
|
453
|
+
//#region src/components/avatar/generative/index.ts
|
|
454
|
+
var generative_exports$16 = /* @__PURE__ */ __exportAll({ default: () => generative_default$16 });
|
|
455
|
+
/** A person's seal: image when given, initials as the fallback. */
|
|
456
|
+
var generative_default$16 = defineEntry({ Avatar: {
|
|
457
|
+
...faces$1.Avatar,
|
|
458
|
+
component: Avatar_1
|
|
459
|
+
} });
|
|
460
|
+
//#endregion
|
|
461
|
+
//#region src/components/badge/generative/Badge.svelte
|
|
462
|
+
function Badge_1($$anchor, $$props) {
|
|
463
|
+
$.push($$props, true);
|
|
464
|
+
Badge($$anchor, {
|
|
465
|
+
get tone() {
|
|
466
|
+
return $$props.props.tone;
|
|
467
|
+
},
|
|
468
|
+
get variant() {
|
|
469
|
+
return $$props.props.variant;
|
|
470
|
+
},
|
|
471
|
+
children: ($$anchor, $$slotProps) => {
|
|
472
|
+
$.next();
|
|
473
|
+
var text = $.text();
|
|
474
|
+
$.template_effect(() => $.set_text(text, $$props.props.text));
|
|
475
|
+
$.append($$anchor, text);
|
|
476
|
+
},
|
|
477
|
+
$$slots: { default: true }
|
|
478
|
+
});
|
|
479
|
+
$.pop();
|
|
480
|
+
}
|
|
481
|
+
//#endregion
|
|
482
|
+
//#region src/components/badge/generative/index.ts
|
|
483
|
+
var generative_exports$15 = /* @__PURE__ */ __exportAll({ default: () => generative_default$15 });
|
|
484
|
+
/** A small status seal beside content; reads at a glance. */
|
|
485
|
+
var generative_default$15 = defineEntry({ Badge: {
|
|
486
|
+
...faces$1.Badge,
|
|
487
|
+
component: Badge_1
|
|
488
|
+
} });
|
|
489
|
+
//#endregion
|
|
490
|
+
//#region src/components/button/generative/Button.svelte
|
|
491
|
+
function Button_1($$anchor, $$props) {
|
|
492
|
+
$.push($$props, true);
|
|
493
|
+
{
|
|
494
|
+
let $0 = $.derived(() => $$props.props.variant ?? "solid");
|
|
495
|
+
Button($$anchor, {
|
|
496
|
+
get variant() {
|
|
497
|
+
return $.get($0);
|
|
498
|
+
},
|
|
499
|
+
get tone() {
|
|
500
|
+
return $$props.props.tone;
|
|
501
|
+
},
|
|
502
|
+
get size() {
|
|
503
|
+
return $$props.props.size;
|
|
504
|
+
},
|
|
505
|
+
get disabled() {
|
|
506
|
+
return $$props.props.disabled;
|
|
507
|
+
},
|
|
508
|
+
onclick: () => $$props.emit("press"),
|
|
509
|
+
children: ($$anchor, $$slotProps) => {
|
|
510
|
+
$.next();
|
|
511
|
+
var text = $.text();
|
|
512
|
+
$.template_effect(() => $.set_text(text, $$props.props.label));
|
|
513
|
+
$.append($$anchor, text);
|
|
514
|
+
},
|
|
515
|
+
$$slots: { default: true }
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
$.pop();
|
|
519
|
+
}
|
|
520
|
+
//#endregion
|
|
521
|
+
//#region src/components/button/generative/index.ts
|
|
522
|
+
var generative_exports$14 = /* @__PURE__ */ __exportAll({ default: () => generative_default$14 });
|
|
523
|
+
/** The primary action register: solid ink for the one main action, outline, ghost, or subtle for the rest. */
|
|
524
|
+
var generative_default$14 = defineEntry({ Button: {
|
|
525
|
+
...faces$1.Button,
|
|
526
|
+
component: Button_1
|
|
527
|
+
} });
|
|
528
|
+
//#endregion
|
|
529
|
+
//#region src/components/card/generative/Card.svelte
|
|
530
|
+
var root$9 = $.from_html(`<!> <!>`, 1);
|
|
531
|
+
function Card_1($$anchor, $$props) {
|
|
532
|
+
$.push($$props, true);
|
|
533
|
+
var fragment = $.comment();
|
|
534
|
+
var node = $.first_child(fragment);
|
|
535
|
+
$.component(node, () => Card.Root, ($$anchor, Card_Root) => {
|
|
536
|
+
Card_Root($$anchor, {
|
|
537
|
+
children: ($$anchor, $$slotProps) => {
|
|
538
|
+
var fragment_1 = root$9();
|
|
539
|
+
var node_1 = $.first_child(fragment_1);
|
|
540
|
+
var consequent_2 = ($$anchor) => {
|
|
541
|
+
var fragment_2 = $.comment();
|
|
542
|
+
var node_2 = $.first_child(fragment_2);
|
|
543
|
+
$.component(node_2, () => Card.Header, ($$anchor, Card_Header) => {
|
|
544
|
+
Card_Header($$anchor, {
|
|
545
|
+
children: ($$anchor, $$slotProps) => {
|
|
546
|
+
var fragment_3 = root$9();
|
|
547
|
+
var node_3 = $.first_child(fragment_3);
|
|
548
|
+
var consequent = ($$anchor) => {
|
|
549
|
+
var fragment_4 = $.comment();
|
|
550
|
+
var node_4 = $.first_child(fragment_4);
|
|
551
|
+
$.component(node_4, () => Card.Title, ($$anchor, Card_Title) => {
|
|
552
|
+
Card_Title($$anchor, {
|
|
553
|
+
children: ($$anchor, $$slotProps) => {
|
|
554
|
+
$.next();
|
|
555
|
+
var text = $.text();
|
|
556
|
+
$.template_effect(() => $.set_text(text, $$props.props.title));
|
|
557
|
+
$.append($$anchor, text);
|
|
558
|
+
},
|
|
559
|
+
$$slots: { default: true }
|
|
560
|
+
});
|
|
561
|
+
});
|
|
562
|
+
$.append($$anchor, fragment_4);
|
|
563
|
+
};
|
|
564
|
+
$.if(node_3, ($$render) => {
|
|
565
|
+
if ($$props.props.title != null) $$render(consequent);
|
|
566
|
+
});
|
|
567
|
+
var node_5 = $.sibling(node_3, 2);
|
|
568
|
+
var consequent_1 = ($$anchor) => {
|
|
569
|
+
var fragment_6 = $.comment();
|
|
570
|
+
var node_6 = $.first_child(fragment_6);
|
|
571
|
+
$.component(node_6, () => Card.Description, ($$anchor, Card_Description) => {
|
|
572
|
+
Card_Description($$anchor, {
|
|
573
|
+
children: ($$anchor, $$slotProps) => {
|
|
574
|
+
$.next();
|
|
575
|
+
var text_1 = $.text();
|
|
576
|
+
$.template_effect(() => $.set_text(text_1, $$props.props.description));
|
|
577
|
+
$.append($$anchor, text_1);
|
|
578
|
+
},
|
|
579
|
+
$$slots: { default: true }
|
|
580
|
+
});
|
|
581
|
+
});
|
|
582
|
+
$.append($$anchor, fragment_6);
|
|
583
|
+
};
|
|
584
|
+
$.if(node_5, ($$render) => {
|
|
585
|
+
if ($$props.props.description != null) $$render(consequent_1);
|
|
586
|
+
});
|
|
587
|
+
$.append($$anchor, fragment_3);
|
|
588
|
+
},
|
|
589
|
+
$$slots: { default: true }
|
|
590
|
+
});
|
|
591
|
+
});
|
|
592
|
+
$.append($$anchor, fragment_2);
|
|
593
|
+
};
|
|
594
|
+
$.if(node_1, ($$render) => {
|
|
595
|
+
if ($$props.props.title != null || $$props.props.description != null) $$render(consequent_2);
|
|
596
|
+
});
|
|
597
|
+
var node_7 = $.sibling(node_1, 2);
|
|
598
|
+
$.component(node_7, () => Card.Content, ($$anchor, Card_Content) => {
|
|
599
|
+
Card_Content($$anchor, {
|
|
600
|
+
children: ($$anchor, $$slotProps) => {
|
|
601
|
+
var fragment_8 = $.comment();
|
|
602
|
+
var node_8 = $.first_child(fragment_8);
|
|
603
|
+
$.snippet(node_8, () => $$props.children ?? $.noop);
|
|
604
|
+
$.append($$anchor, fragment_8);
|
|
605
|
+
},
|
|
606
|
+
$$slots: { default: true }
|
|
607
|
+
});
|
|
608
|
+
});
|
|
609
|
+
$.append($$anchor, fragment_1);
|
|
610
|
+
},
|
|
611
|
+
$$slots: { default: true }
|
|
612
|
+
});
|
|
613
|
+
});
|
|
614
|
+
$.append($$anchor, fragment);
|
|
615
|
+
$.pop();
|
|
616
|
+
}
|
|
617
|
+
//#endregion
|
|
618
|
+
//#region src/components/card/generative/index.ts
|
|
619
|
+
var generative_exports$13 = /* @__PURE__ */ __exportAll({ default: () => generative_default$13 });
|
|
620
|
+
/** Grouping vessel. Give title and description instead of hand-building a header; children render in the body. */
|
|
621
|
+
var generative_default$13 = defineEntry({ Card: {
|
|
622
|
+
...faces$1.Card,
|
|
623
|
+
component: Card_1
|
|
624
|
+
} });
|
|
625
|
+
//#endregion
|
|
626
|
+
//#region src/components/checkbox/generative/Checkbox.svelte
|
|
627
|
+
var root$8 = $.from_html(`<!> <!> <!>`, 1);
|
|
628
|
+
function Checkbox_1($$anchor, $$props) {
|
|
629
|
+
$.push($$props, true);
|
|
630
|
+
var fragment = $.comment();
|
|
631
|
+
var node = $.first_child(fragment);
|
|
632
|
+
{
|
|
633
|
+
let $0 = $.derived(() => $$props.props.checked ?? false);
|
|
634
|
+
$.component(node, () => Checkbox.Root, ($$anchor, Checkbox_Root) => {
|
|
635
|
+
Checkbox_Root($$anchor, {
|
|
636
|
+
get defaultChecked() {
|
|
637
|
+
return $.get($0);
|
|
638
|
+
},
|
|
639
|
+
get disabled() {
|
|
640
|
+
return $$props.props.disabled;
|
|
641
|
+
},
|
|
642
|
+
children: ($$anchor, $$slotProps) => {
|
|
643
|
+
var fragment_1 = root$8();
|
|
644
|
+
var node_1 = $.first_child(fragment_1);
|
|
645
|
+
$.component(node_1, () => Checkbox.Control, ($$anchor, Checkbox_Control) => {
|
|
646
|
+
Checkbox_Control($$anchor, {
|
|
647
|
+
children: ($$anchor, $$slotProps) => {
|
|
648
|
+
var fragment_2 = $.comment();
|
|
649
|
+
var node_2 = $.first_child(fragment_2);
|
|
650
|
+
$.component(node_2, () => Checkbox.Indicator, ($$anchor, Checkbox_Indicator) => {
|
|
651
|
+
Checkbox_Indicator($$anchor, {
|
|
652
|
+
children: ($$anchor, $$slotProps) => {
|
|
653
|
+
InternalIcon($$anchor, { name: "check" });
|
|
654
|
+
},
|
|
655
|
+
$$slots: { default: true }
|
|
656
|
+
});
|
|
657
|
+
});
|
|
658
|
+
$.append($$anchor, fragment_2);
|
|
659
|
+
},
|
|
660
|
+
$$slots: { default: true }
|
|
661
|
+
});
|
|
662
|
+
});
|
|
663
|
+
var node_3 = $.sibling(node_1, 2);
|
|
664
|
+
$.component(node_3, () => Checkbox.Label, ($$anchor, Checkbox_Label) => {
|
|
665
|
+
Checkbox_Label($$anchor, {
|
|
666
|
+
children: ($$anchor, $$slotProps) => {
|
|
667
|
+
$.next();
|
|
668
|
+
var text = $.text();
|
|
669
|
+
$.template_effect(() => $.set_text(text, $$props.props.label));
|
|
670
|
+
$.append($$anchor, text);
|
|
671
|
+
},
|
|
672
|
+
$$slots: { default: true }
|
|
673
|
+
});
|
|
674
|
+
});
|
|
675
|
+
var node_4 = $.sibling(node_3, 2);
|
|
676
|
+
$.component(node_4, () => Checkbox.HiddenInput, ($$anchor, Checkbox_HiddenInput) => {
|
|
677
|
+
Checkbox_HiddenInput($$anchor, {});
|
|
678
|
+
});
|
|
679
|
+
$.append($$anchor, fragment_1);
|
|
680
|
+
},
|
|
681
|
+
$$slots: { default: true }
|
|
682
|
+
});
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
$.append($$anchor, fragment);
|
|
686
|
+
$.pop();
|
|
687
|
+
}
|
|
688
|
+
//#endregion
|
|
689
|
+
//#region src/components/checkbox/generative/index.ts
|
|
690
|
+
var generative_exports$12 = /* @__PURE__ */ __exportAll({ default: () => generative_default$12 });
|
|
691
|
+
/** One independent box with its label. */
|
|
692
|
+
var generative_default$12 = defineEntry({ Checkbox: {
|
|
693
|
+
...faces$1.Checkbox,
|
|
694
|
+
component: Checkbox_1
|
|
695
|
+
} });
|
|
696
|
+
//#endregion
|
|
697
|
+
//#region src/components/input/generative/Input.svelte
|
|
698
|
+
var root$7 = $.from_html(`<!> <!>`, 1);
|
|
699
|
+
function Input_1($$anchor, $$props) {
|
|
700
|
+
$.push($$props, true);
|
|
701
|
+
const bound = getBoundProp(() => $$props.props.value, () => $$props.bindings?.value);
|
|
702
|
+
var fragment = $.comment();
|
|
703
|
+
var node = $.first_child(fragment);
|
|
704
|
+
var consequent = ($$anchor) => {
|
|
705
|
+
Stack($$anchor, {
|
|
706
|
+
gap: "xs",
|
|
707
|
+
children: ($$anchor, $$slotProps) => {
|
|
708
|
+
var fragment_2 = root$7();
|
|
709
|
+
var node_1 = $.first_child(fragment_2);
|
|
710
|
+
$.component(node_1, () => Typography.Label, ($$anchor, Typography_Label) => {
|
|
711
|
+
Typography_Label($$anchor, {
|
|
712
|
+
children: ($$anchor, $$slotProps) => {
|
|
713
|
+
$.next();
|
|
714
|
+
var text = $.text();
|
|
715
|
+
$.template_effect(() => $.set_text(text, $$props.props.label));
|
|
716
|
+
$.append($$anchor, text);
|
|
717
|
+
},
|
|
718
|
+
$$slots: { default: true }
|
|
719
|
+
});
|
|
720
|
+
});
|
|
721
|
+
var node_2 = $.sibling(node_1, 2);
|
|
722
|
+
Input(node_2, {
|
|
723
|
+
get placeholder() {
|
|
724
|
+
return $$props.props.placeholder;
|
|
725
|
+
},
|
|
726
|
+
get type() {
|
|
727
|
+
return $$props.props.type;
|
|
728
|
+
},
|
|
729
|
+
get disabled() {
|
|
730
|
+
return $$props.props.disabled;
|
|
731
|
+
},
|
|
732
|
+
get value() {
|
|
733
|
+
return bound.current;
|
|
734
|
+
},
|
|
735
|
+
set value($$value) {
|
|
736
|
+
bound.current = $$value;
|
|
737
|
+
}
|
|
738
|
+
});
|
|
739
|
+
$.append($$anchor, fragment_2);
|
|
740
|
+
},
|
|
741
|
+
$$slots: { default: true }
|
|
742
|
+
});
|
|
743
|
+
};
|
|
744
|
+
var alternate = ($$anchor) => {
|
|
745
|
+
Input($$anchor, {
|
|
746
|
+
get placeholder() {
|
|
747
|
+
return $$props.props.placeholder;
|
|
748
|
+
},
|
|
749
|
+
get type() {
|
|
750
|
+
return $$props.props.type;
|
|
751
|
+
},
|
|
752
|
+
get disabled() {
|
|
753
|
+
return $$props.props.disabled;
|
|
754
|
+
},
|
|
755
|
+
get value() {
|
|
756
|
+
return bound.current;
|
|
757
|
+
},
|
|
758
|
+
set value($$value) {
|
|
759
|
+
bound.current = $$value;
|
|
760
|
+
}
|
|
761
|
+
});
|
|
762
|
+
};
|
|
763
|
+
$.if(node, ($$render) => {
|
|
764
|
+
if ($$props.props.label) $$render(consequent);
|
|
765
|
+
else $$render(alternate, -1);
|
|
766
|
+
});
|
|
767
|
+
$.append($$anchor, fragment);
|
|
768
|
+
$.pop();
|
|
769
|
+
}
|
|
770
|
+
//#endregion
|
|
771
|
+
//#region src/components/input/generative/index.ts
|
|
772
|
+
var generative_exports$11 = /* @__PURE__ */ __exportAll({ default: () => generative_default$11 });
|
|
773
|
+
/** A single-line field; rely on border, surface and the focus halo. */
|
|
774
|
+
var generative_default$11 = defineEntry({ Input: {
|
|
775
|
+
...faces$1.Input,
|
|
776
|
+
component: Input_1
|
|
777
|
+
} });
|
|
778
|
+
//#endregion
|
|
779
|
+
//#region src/components/progress/generative/Progress.svelte
|
|
780
|
+
var root$6 = $.from_html(`<!> <!>`, 1);
|
|
781
|
+
function Progress_1($$anchor, $$props) {
|
|
782
|
+
$.push($$props, true);
|
|
783
|
+
var fragment = $.comment();
|
|
784
|
+
var node = $.first_child(fragment);
|
|
785
|
+
$.component(node, () => Progress.Root, ($$anchor, Progress_Root) => {
|
|
786
|
+
Progress_Root($$anchor, {
|
|
787
|
+
get value() {
|
|
788
|
+
return $$props.props.value;
|
|
789
|
+
},
|
|
790
|
+
get max() {
|
|
791
|
+
return $$props.props.max;
|
|
792
|
+
},
|
|
793
|
+
children: ($$anchor, $$slotProps) => {
|
|
794
|
+
var fragment_1 = root$6();
|
|
795
|
+
var node_1 = $.first_child(fragment_1);
|
|
796
|
+
var consequent = ($$anchor) => {
|
|
797
|
+
var fragment_2 = $.comment();
|
|
798
|
+
var node_2 = $.first_child(fragment_2);
|
|
799
|
+
$.component(node_2, () => Progress.Label, ($$anchor, Progress_Label) => {
|
|
800
|
+
Progress_Label($$anchor, {
|
|
801
|
+
children: ($$anchor, $$slotProps) => {
|
|
802
|
+
$.next();
|
|
803
|
+
var text = $.text();
|
|
804
|
+
$.template_effect(() => $.set_text(text, $$props.props.label));
|
|
805
|
+
$.append($$anchor, text);
|
|
806
|
+
},
|
|
807
|
+
$$slots: { default: true }
|
|
808
|
+
});
|
|
809
|
+
});
|
|
810
|
+
$.append($$anchor, fragment_2);
|
|
811
|
+
};
|
|
812
|
+
$.if(node_1, ($$render) => {
|
|
813
|
+
if ($$props.props.label != null) $$render(consequent);
|
|
814
|
+
});
|
|
815
|
+
var node_3 = $.sibling(node_1, 2);
|
|
816
|
+
$.component(node_3, () => Progress.Track, ($$anchor, Progress_Track) => {
|
|
817
|
+
Progress_Track($$anchor, {
|
|
818
|
+
children: ($$anchor, $$slotProps) => {
|
|
819
|
+
var fragment_4 = $.comment();
|
|
820
|
+
var node_4 = $.first_child(fragment_4);
|
|
821
|
+
$.component(node_4, () => Progress.Range, ($$anchor, Progress_Range) => {
|
|
822
|
+
Progress_Range($$anchor, {});
|
|
823
|
+
});
|
|
824
|
+
$.append($$anchor, fragment_4);
|
|
825
|
+
},
|
|
826
|
+
$$slots: { default: true }
|
|
827
|
+
});
|
|
828
|
+
});
|
|
829
|
+
$.append($$anchor, fragment_1);
|
|
830
|
+
},
|
|
831
|
+
$$slots: { default: true }
|
|
832
|
+
});
|
|
833
|
+
});
|
|
834
|
+
$.append($$anchor, fragment);
|
|
835
|
+
$.pop();
|
|
836
|
+
}
|
|
837
|
+
//#endregion
|
|
838
|
+
//#region src/components/progress/generative/index.ts
|
|
839
|
+
var generative_exports$10 = /* @__PURE__ */ __exportAll({ default: () => generative_default$10 });
|
|
840
|
+
/** A working track that fills toward done. */
|
|
841
|
+
var generative_default$10 = defineEntry({ Progress: {
|
|
842
|
+
...faces$1.Progress,
|
|
843
|
+
component: Progress_1
|
|
844
|
+
} });
|
|
845
|
+
//#endregion
|
|
846
|
+
//#region src/components/radio-group/generative/RadioGroup.svelte
|
|
847
|
+
var root$5 = $.from_html(`<!> <!> <!>`, 1);
|
|
848
|
+
var root_1$1 = $.from_html(`<!> <!>`, 1);
|
|
849
|
+
function RadioGroup_1($$anchor, $$props) {
|
|
850
|
+
$.push($$props, true);
|
|
851
|
+
const values = $.derived(() => $$props.props.items ?? [
|
|
852
|
+
"Option A",
|
|
853
|
+
"Option B",
|
|
854
|
+
"Option C"
|
|
855
|
+
]);
|
|
856
|
+
var fragment = $.comment();
|
|
857
|
+
var node = $.first_child(fragment);
|
|
858
|
+
var consequent = ($$anchor) => {
|
|
859
|
+
Stack($$anchor, {
|
|
860
|
+
gap: "xs",
|
|
861
|
+
children: ($$anchor, $$slotProps) => {
|
|
862
|
+
var fragment_2 = root_1$1();
|
|
863
|
+
var node_1 = $.first_child(fragment_2);
|
|
864
|
+
$.component(node_1, () => Typography.Label, ($$anchor, Typography_Label) => {
|
|
865
|
+
Typography_Label($$anchor, {
|
|
866
|
+
children: ($$anchor, $$slotProps) => {
|
|
867
|
+
$.next();
|
|
868
|
+
var text = $.text();
|
|
869
|
+
$.template_effect(() => $.set_text(text, $$props.props.label));
|
|
870
|
+
$.append($$anchor, text);
|
|
871
|
+
},
|
|
872
|
+
$$slots: { default: true }
|
|
873
|
+
});
|
|
874
|
+
});
|
|
875
|
+
var node_2 = $.sibling(node_1, 2);
|
|
876
|
+
{
|
|
877
|
+
let $0 = $.derived(() => slug($.get(values)[0] ?? ""));
|
|
878
|
+
$.component(node_2, () => RadioGroup.Root, ($$anchor, RadioGroup_Root) => {
|
|
879
|
+
RadioGroup_Root($$anchor, {
|
|
880
|
+
get defaultValue() {
|
|
881
|
+
return $.get($0);
|
|
882
|
+
},
|
|
883
|
+
children: ($$anchor, $$slotProps) => {
|
|
884
|
+
Stack($$anchor, {
|
|
885
|
+
direction: "column",
|
|
886
|
+
gap: "sm",
|
|
887
|
+
children: ($$anchor, $$slotProps) => {
|
|
888
|
+
var fragment_5 = $.comment();
|
|
889
|
+
var node_3 = $.first_child(fragment_5);
|
|
890
|
+
$.each(node_3, 16, () => $.get(values), (value) => value, ($$anchor, value) => {
|
|
891
|
+
var fragment_6 = $.comment();
|
|
892
|
+
var node_4 = $.first_child(fragment_6);
|
|
893
|
+
$.component(node_4, () => RadioGroup.Item, ($$anchor, RadioGroup_Item) => {
|
|
894
|
+
RadioGroup_Item($$anchor, {
|
|
895
|
+
get value() {
|
|
896
|
+
return value;
|
|
897
|
+
},
|
|
898
|
+
children: ($$anchor, $$slotProps) => {
|
|
899
|
+
var fragment_7 = root$5();
|
|
900
|
+
var node_5 = $.first_child(fragment_7);
|
|
901
|
+
$.component(node_5, () => RadioGroup.ItemControl, ($$anchor, RadioGroup_ItemControl) => {
|
|
902
|
+
RadioGroup_ItemControl($$anchor, {});
|
|
903
|
+
});
|
|
904
|
+
var node_6 = $.sibling(node_5, 2);
|
|
905
|
+
$.component(node_6, () => RadioGroup.ItemText, ($$anchor, RadioGroup_ItemText) => {
|
|
906
|
+
RadioGroup_ItemText($$anchor, {
|
|
907
|
+
children: ($$anchor, $$slotProps) => {
|
|
908
|
+
$.next();
|
|
909
|
+
var text_1 = $.text();
|
|
910
|
+
$.template_effect(() => $.set_text(text_1, value));
|
|
911
|
+
$.append($$anchor, text_1);
|
|
912
|
+
},
|
|
913
|
+
$$slots: { default: true }
|
|
914
|
+
});
|
|
915
|
+
});
|
|
916
|
+
var node_7 = $.sibling(node_6, 2);
|
|
917
|
+
$.component(node_7, () => RadioGroup.ItemHiddenInput, ($$anchor, RadioGroup_ItemHiddenInput) => {
|
|
918
|
+
RadioGroup_ItemHiddenInput($$anchor, {});
|
|
919
|
+
});
|
|
920
|
+
$.append($$anchor, fragment_7);
|
|
921
|
+
},
|
|
922
|
+
$$slots: { default: true }
|
|
923
|
+
});
|
|
924
|
+
});
|
|
925
|
+
$.append($$anchor, fragment_6);
|
|
926
|
+
});
|
|
927
|
+
$.append($$anchor, fragment_5);
|
|
928
|
+
},
|
|
929
|
+
$$slots: { default: true }
|
|
930
|
+
});
|
|
931
|
+
},
|
|
932
|
+
$$slots: { default: true }
|
|
933
|
+
});
|
|
934
|
+
});
|
|
935
|
+
}
|
|
936
|
+
$.append($$anchor, fragment_2);
|
|
937
|
+
},
|
|
938
|
+
$$slots: { default: true }
|
|
939
|
+
});
|
|
940
|
+
};
|
|
941
|
+
var alternate = ($$anchor) => {
|
|
942
|
+
var fragment_9 = $.comment();
|
|
943
|
+
var node_8 = $.first_child(fragment_9);
|
|
944
|
+
{
|
|
945
|
+
let $0 = $.derived(() => slug($.get(values)[0] ?? ""));
|
|
946
|
+
$.component(node_8, () => RadioGroup.Root, ($$anchor, RadioGroup_Root_1) => {
|
|
947
|
+
RadioGroup_Root_1($$anchor, {
|
|
948
|
+
get defaultValue() {
|
|
949
|
+
return $.get($0);
|
|
950
|
+
},
|
|
951
|
+
children: ($$anchor, $$slotProps) => {
|
|
952
|
+
Stack($$anchor, {
|
|
953
|
+
direction: "column",
|
|
954
|
+
gap: "sm",
|
|
955
|
+
children: ($$anchor, $$slotProps) => {
|
|
956
|
+
var fragment_11 = $.comment();
|
|
957
|
+
var node_9 = $.first_child(fragment_11);
|
|
958
|
+
$.each(node_9, 16, () => $.get(values), (value) => value, ($$anchor, value) => {
|
|
959
|
+
var fragment_12 = $.comment();
|
|
960
|
+
var node_10 = $.first_child(fragment_12);
|
|
961
|
+
$.component(node_10, () => RadioGroup.Item, ($$anchor, RadioGroup_Item_1) => {
|
|
962
|
+
RadioGroup_Item_1($$anchor, {
|
|
963
|
+
get value() {
|
|
964
|
+
return value;
|
|
965
|
+
},
|
|
966
|
+
children: ($$anchor, $$slotProps) => {
|
|
967
|
+
var fragment_13 = root$5();
|
|
968
|
+
var node_11 = $.first_child(fragment_13);
|
|
969
|
+
$.component(node_11, () => RadioGroup.ItemControl, ($$anchor, RadioGroup_ItemControl_1) => {
|
|
970
|
+
RadioGroup_ItemControl_1($$anchor, {});
|
|
971
|
+
});
|
|
972
|
+
var node_12 = $.sibling(node_11, 2);
|
|
973
|
+
$.component(node_12, () => RadioGroup.ItemText, ($$anchor, RadioGroup_ItemText_1) => {
|
|
974
|
+
RadioGroup_ItemText_1($$anchor, {
|
|
975
|
+
children: ($$anchor, $$slotProps) => {
|
|
976
|
+
$.next();
|
|
977
|
+
var text_2 = $.text();
|
|
978
|
+
$.template_effect(() => $.set_text(text_2, value));
|
|
979
|
+
$.append($$anchor, text_2);
|
|
980
|
+
},
|
|
981
|
+
$$slots: { default: true }
|
|
982
|
+
});
|
|
983
|
+
});
|
|
984
|
+
var node_13 = $.sibling(node_12, 2);
|
|
985
|
+
$.component(node_13, () => RadioGroup.ItemHiddenInput, ($$anchor, RadioGroup_ItemHiddenInput_1) => {
|
|
986
|
+
RadioGroup_ItemHiddenInput_1($$anchor, {});
|
|
987
|
+
});
|
|
988
|
+
$.append($$anchor, fragment_13);
|
|
989
|
+
},
|
|
990
|
+
$$slots: { default: true }
|
|
991
|
+
});
|
|
992
|
+
});
|
|
993
|
+
$.append($$anchor, fragment_12);
|
|
994
|
+
});
|
|
995
|
+
$.append($$anchor, fragment_11);
|
|
996
|
+
},
|
|
997
|
+
$$slots: { default: true }
|
|
998
|
+
});
|
|
999
|
+
},
|
|
1000
|
+
$$slots: { default: true }
|
|
1001
|
+
});
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
$.append($$anchor, fragment_9);
|
|
1005
|
+
};
|
|
1006
|
+
$.if(node, ($$render) => {
|
|
1007
|
+
if ($$props.props.label) $$render(consequent);
|
|
1008
|
+
else $$render(alternate, -1);
|
|
1009
|
+
});
|
|
1010
|
+
$.append($$anchor, fragment);
|
|
1011
|
+
$.pop();
|
|
1012
|
+
}
|
|
1013
|
+
//#endregion
|
|
1014
|
+
//#region src/components/radio-group/generative/index.ts
|
|
1015
|
+
var generative_exports$9 = /* @__PURE__ */ __exportAll({ default: () => generative_default$9 });
|
|
1016
|
+
/** Several boxes where exactly one may hold. */
|
|
1017
|
+
var generative_default$9 = defineEntry({ RadioGroup: {
|
|
1018
|
+
...faces$1.RadioGroup,
|
|
1019
|
+
component: RadioGroup_1
|
|
1020
|
+
} });
|
|
1021
|
+
//#endregion
|
|
1022
|
+
//#region src/components/select/generative/Select.svelte
|
|
1023
|
+
var root$4 = $.from_html(`<!> <!>`, 1);
|
|
1024
|
+
var root_1 = $.from_html(`<!> <!> <!>`, 1);
|
|
1025
|
+
function Select_1($$anchor, $$props) {
|
|
1026
|
+
$.push($$props, true);
|
|
1027
|
+
const bound = getBoundProp(() => $$props.props.value, () => $$props.bindings?.value);
|
|
1028
|
+
const collection = $.derived(() => createListCollection({ items: $$props.props.options }));
|
|
1029
|
+
const selectedValue = $.derived(() => $$props.props.multiple ? Array.isArray(bound.current) ? bound.current : bound.current ? [bound.current] : void 0 : typeof bound.current === "string" ? [bound.current] : void 0);
|
|
1030
|
+
function setValue(details) {
|
|
1031
|
+
bound.current = $$props.props.multiple ? details.value : details.value[0] ?? "";
|
|
1032
|
+
}
|
|
1033
|
+
var fragment = $.comment();
|
|
1034
|
+
var node = $.first_child(fragment);
|
|
1035
|
+
var consequent = ($$anchor) => {
|
|
1036
|
+
Stack($$anchor, {
|
|
1037
|
+
gap: "xs",
|
|
1038
|
+
children: ($$anchor, $$slotProps) => {
|
|
1039
|
+
var fragment_2 = root$4();
|
|
1040
|
+
var node_1 = $.first_child(fragment_2);
|
|
1041
|
+
$.component(node_1, () => Typography.Label, ($$anchor, Typography_Label) => {
|
|
1042
|
+
Typography_Label($$anchor, {
|
|
1043
|
+
children: ($$anchor, $$slotProps) => {
|
|
1044
|
+
$.next();
|
|
1045
|
+
var text = $.text();
|
|
1046
|
+
$.template_effect(() => $.set_text(text, $$props.props.label));
|
|
1047
|
+
$.append($$anchor, text);
|
|
1048
|
+
},
|
|
1049
|
+
$$slots: { default: true }
|
|
1050
|
+
});
|
|
1051
|
+
});
|
|
1052
|
+
var node_2 = $.sibling(node_1, 2);
|
|
1053
|
+
$.component(node_2, () => Select.Root, ($$anchor, Select_Root) => {
|
|
1054
|
+
Select_Root($$anchor, {
|
|
1055
|
+
get collection() {
|
|
1056
|
+
return $.get(collection);
|
|
1057
|
+
},
|
|
1058
|
+
get value() {
|
|
1059
|
+
return $.get(selectedValue);
|
|
1060
|
+
},
|
|
1061
|
+
get disabled() {
|
|
1062
|
+
return $$props.props.disabled;
|
|
1063
|
+
},
|
|
1064
|
+
get multiple() {
|
|
1065
|
+
return $$props.props.multiple;
|
|
1066
|
+
},
|
|
1067
|
+
onValueChange: setValue,
|
|
1068
|
+
children: ($$anchor, $$slotProps) => {
|
|
1069
|
+
var fragment_4 = root_1();
|
|
1070
|
+
var node_3 = $.first_child(fragment_4);
|
|
1071
|
+
$.component(node_3, () => Select.Control, ($$anchor, Select_Control) => {
|
|
1072
|
+
Select_Control($$anchor, {
|
|
1073
|
+
children: ($$anchor, $$slotProps) => {
|
|
1074
|
+
var fragment_5 = root$4();
|
|
1075
|
+
var node_4 = $.first_child(fragment_5);
|
|
1076
|
+
$.component(node_4, () => Select.Trigger, ($$anchor, Select_Trigger) => {
|
|
1077
|
+
Select_Trigger($$anchor, {
|
|
1078
|
+
children: ($$anchor, $$slotProps) => {
|
|
1079
|
+
var fragment_6 = $.comment();
|
|
1080
|
+
var node_5 = $.first_child(fragment_6);
|
|
1081
|
+
$.component(node_5, () => Select.ValueText, ($$anchor, Select_ValueText) => {
|
|
1082
|
+
Select_ValueText($$anchor, { get placeholder() {
|
|
1083
|
+
return $$props.props.placeholder;
|
|
1084
|
+
} });
|
|
1085
|
+
});
|
|
1086
|
+
$.append($$anchor, fragment_6);
|
|
1087
|
+
},
|
|
1088
|
+
$$slots: { default: true }
|
|
1089
|
+
});
|
|
1090
|
+
});
|
|
1091
|
+
var node_6 = $.sibling(node_4, 2);
|
|
1092
|
+
$.component(node_6, () => Select.Indicator, ($$anchor, Select_Indicator) => {
|
|
1093
|
+
Select_Indicator($$anchor, {
|
|
1094
|
+
children: ($$anchor, $$slotProps) => {
|
|
1095
|
+
InternalIcon($$anchor, { name: "chevrons-up-down" });
|
|
1096
|
+
},
|
|
1097
|
+
$$slots: { default: true }
|
|
1098
|
+
});
|
|
1099
|
+
});
|
|
1100
|
+
$.append($$anchor, fragment_5);
|
|
1101
|
+
},
|
|
1102
|
+
$$slots: { default: true }
|
|
1103
|
+
});
|
|
1104
|
+
});
|
|
1105
|
+
var node_7 = $.sibling(node_3, 2);
|
|
1106
|
+
$.component(node_7, () => Select.Positioner, ($$anchor, Select_Positioner) => {
|
|
1107
|
+
Select_Positioner($$anchor, {
|
|
1108
|
+
children: ($$anchor, $$slotProps) => {
|
|
1109
|
+
var fragment_8 = $.comment();
|
|
1110
|
+
var node_8 = $.first_child(fragment_8);
|
|
1111
|
+
$.component(node_8, () => Select.Content, ($$anchor, Select_Content) => {
|
|
1112
|
+
Select_Content($$anchor, {
|
|
1113
|
+
children: ($$anchor, $$slotProps) => {
|
|
1114
|
+
var fragment_9 = $.comment();
|
|
1115
|
+
var node_9 = $.first_child(fragment_9);
|
|
1116
|
+
$.component(node_9, () => Select.ItemGroup, ($$anchor, Select_ItemGroup) => {
|
|
1117
|
+
Select_ItemGroup($$anchor, {
|
|
1118
|
+
children: ($$anchor, $$slotProps) => {
|
|
1119
|
+
var fragment_10 = $.comment();
|
|
1120
|
+
var node_10 = $.first_child(fragment_10);
|
|
1121
|
+
$.each(node_10, 17, () => $$props.props.options, (option) => option.value, ($$anchor, option) => {
|
|
1122
|
+
var fragment_11 = $.comment();
|
|
1123
|
+
var node_11 = $.first_child(fragment_11);
|
|
1124
|
+
$.component(node_11, () => Select.Item, ($$anchor, Select_Item) => {
|
|
1125
|
+
Select_Item($$anchor, {
|
|
1126
|
+
get item() {
|
|
1127
|
+
return $.get(option);
|
|
1128
|
+
},
|
|
1129
|
+
children: ($$anchor, $$slotProps) => {
|
|
1130
|
+
var fragment_12 = root$4();
|
|
1131
|
+
var node_12 = $.first_child(fragment_12);
|
|
1132
|
+
$.component(node_12, () => Select.ItemText, ($$anchor, Select_ItemText) => {
|
|
1133
|
+
Select_ItemText($$anchor, {
|
|
1134
|
+
children: ($$anchor, $$slotProps) => {
|
|
1135
|
+
$.next();
|
|
1136
|
+
var text_1 = $.text();
|
|
1137
|
+
$.template_effect(() => $.set_text(text_1, $.get(option).label));
|
|
1138
|
+
$.append($$anchor, text_1);
|
|
1139
|
+
},
|
|
1140
|
+
$$slots: { default: true }
|
|
1141
|
+
});
|
|
1142
|
+
});
|
|
1143
|
+
var node_13 = $.sibling(node_12, 2);
|
|
1144
|
+
$.component(node_13, () => Select.ItemIndicator, ($$anchor, Select_ItemIndicator) => {
|
|
1145
|
+
Select_ItemIndicator($$anchor, {
|
|
1146
|
+
children: ($$anchor, $$slotProps) => {
|
|
1147
|
+
InternalIcon($$anchor, { name: "check" });
|
|
1148
|
+
},
|
|
1149
|
+
$$slots: { default: true }
|
|
1150
|
+
});
|
|
1151
|
+
});
|
|
1152
|
+
$.append($$anchor, fragment_12);
|
|
1153
|
+
},
|
|
1154
|
+
$$slots: { default: true }
|
|
1155
|
+
});
|
|
1156
|
+
});
|
|
1157
|
+
$.append($$anchor, fragment_11);
|
|
1158
|
+
});
|
|
1159
|
+
$.append($$anchor, fragment_10);
|
|
1160
|
+
},
|
|
1161
|
+
$$slots: { default: true }
|
|
1162
|
+
});
|
|
1163
|
+
});
|
|
1164
|
+
$.append($$anchor, fragment_9);
|
|
1165
|
+
},
|
|
1166
|
+
$$slots: { default: true }
|
|
1167
|
+
});
|
|
1168
|
+
});
|
|
1169
|
+
$.append($$anchor, fragment_8);
|
|
1170
|
+
},
|
|
1171
|
+
$$slots: { default: true }
|
|
1172
|
+
});
|
|
1173
|
+
});
|
|
1174
|
+
var node_14 = $.sibling(node_7, 2);
|
|
1175
|
+
$.component(node_14, () => Select.HiddenSelect, ($$anchor, Select_HiddenSelect) => {
|
|
1176
|
+
Select_HiddenSelect($$anchor, {});
|
|
1177
|
+
});
|
|
1178
|
+
$.append($$anchor, fragment_4);
|
|
1179
|
+
},
|
|
1180
|
+
$$slots: { default: true }
|
|
1181
|
+
});
|
|
1182
|
+
});
|
|
1183
|
+
$.append($$anchor, fragment_2);
|
|
1184
|
+
},
|
|
1185
|
+
$$slots: { default: true }
|
|
1186
|
+
});
|
|
1187
|
+
};
|
|
1188
|
+
var alternate = ($$anchor) => {
|
|
1189
|
+
var fragment_15 = $.comment();
|
|
1190
|
+
var node_15 = $.first_child(fragment_15);
|
|
1191
|
+
$.component(node_15, () => Select.Root, ($$anchor, Select_Root_1) => {
|
|
1192
|
+
Select_Root_1($$anchor, {
|
|
1193
|
+
get collection() {
|
|
1194
|
+
return $.get(collection);
|
|
1195
|
+
},
|
|
1196
|
+
get value() {
|
|
1197
|
+
return $.get(selectedValue);
|
|
1198
|
+
},
|
|
1199
|
+
get disabled() {
|
|
1200
|
+
return $$props.props.disabled;
|
|
1201
|
+
},
|
|
1202
|
+
get multiple() {
|
|
1203
|
+
return $$props.props.multiple;
|
|
1204
|
+
},
|
|
1205
|
+
onValueChange: setValue,
|
|
1206
|
+
children: ($$anchor, $$slotProps) => {
|
|
1207
|
+
var fragment_16 = root_1();
|
|
1208
|
+
var node_16 = $.first_child(fragment_16);
|
|
1209
|
+
$.component(node_16, () => Select.Control, ($$anchor, Select_Control_1) => {
|
|
1210
|
+
Select_Control_1($$anchor, {
|
|
1211
|
+
children: ($$anchor, $$slotProps) => {
|
|
1212
|
+
var fragment_17 = root$4();
|
|
1213
|
+
var node_17 = $.first_child(fragment_17);
|
|
1214
|
+
$.component(node_17, () => Select.Trigger, ($$anchor, Select_Trigger_1) => {
|
|
1215
|
+
Select_Trigger_1($$anchor, {
|
|
1216
|
+
children: ($$anchor, $$slotProps) => {
|
|
1217
|
+
var fragment_18 = $.comment();
|
|
1218
|
+
var node_18 = $.first_child(fragment_18);
|
|
1219
|
+
$.component(node_18, () => Select.ValueText, ($$anchor, Select_ValueText_1) => {
|
|
1220
|
+
Select_ValueText_1($$anchor, { get placeholder() {
|
|
1221
|
+
return $$props.props.placeholder;
|
|
1222
|
+
} });
|
|
1223
|
+
});
|
|
1224
|
+
$.append($$anchor, fragment_18);
|
|
1225
|
+
},
|
|
1226
|
+
$$slots: { default: true }
|
|
1227
|
+
});
|
|
1228
|
+
});
|
|
1229
|
+
var node_19 = $.sibling(node_17, 2);
|
|
1230
|
+
$.component(node_19, () => Select.Indicator, ($$anchor, Select_Indicator_1) => {
|
|
1231
|
+
Select_Indicator_1($$anchor, {
|
|
1232
|
+
children: ($$anchor, $$slotProps) => {
|
|
1233
|
+
InternalIcon($$anchor, { name: "chevrons-up-down" });
|
|
1234
|
+
},
|
|
1235
|
+
$$slots: { default: true }
|
|
1236
|
+
});
|
|
1237
|
+
});
|
|
1238
|
+
$.append($$anchor, fragment_17);
|
|
1239
|
+
},
|
|
1240
|
+
$$slots: { default: true }
|
|
1241
|
+
});
|
|
1242
|
+
});
|
|
1243
|
+
var node_20 = $.sibling(node_16, 2);
|
|
1244
|
+
$.component(node_20, () => Select.Positioner, ($$anchor, Select_Positioner_1) => {
|
|
1245
|
+
Select_Positioner_1($$anchor, {
|
|
1246
|
+
children: ($$anchor, $$slotProps) => {
|
|
1247
|
+
var fragment_20 = $.comment();
|
|
1248
|
+
var node_21 = $.first_child(fragment_20);
|
|
1249
|
+
$.component(node_21, () => Select.Content, ($$anchor, Select_Content_1) => {
|
|
1250
|
+
Select_Content_1($$anchor, {
|
|
1251
|
+
children: ($$anchor, $$slotProps) => {
|
|
1252
|
+
var fragment_21 = $.comment();
|
|
1253
|
+
var node_22 = $.first_child(fragment_21);
|
|
1254
|
+
$.component(node_22, () => Select.ItemGroup, ($$anchor, Select_ItemGroup_1) => {
|
|
1255
|
+
Select_ItemGroup_1($$anchor, {
|
|
1256
|
+
children: ($$anchor, $$slotProps) => {
|
|
1257
|
+
var fragment_22 = $.comment();
|
|
1258
|
+
var node_23 = $.first_child(fragment_22);
|
|
1259
|
+
$.each(node_23, 17, () => $$props.props.options, (option) => option.value, ($$anchor, option) => {
|
|
1260
|
+
var fragment_23 = $.comment();
|
|
1261
|
+
var node_24 = $.first_child(fragment_23);
|
|
1262
|
+
$.component(node_24, () => Select.Item, ($$anchor, Select_Item_1) => {
|
|
1263
|
+
Select_Item_1($$anchor, {
|
|
1264
|
+
get item() {
|
|
1265
|
+
return $.get(option);
|
|
1266
|
+
},
|
|
1267
|
+
children: ($$anchor, $$slotProps) => {
|
|
1268
|
+
var fragment_24 = root$4();
|
|
1269
|
+
var node_25 = $.first_child(fragment_24);
|
|
1270
|
+
$.component(node_25, () => Select.ItemText, ($$anchor, Select_ItemText_1) => {
|
|
1271
|
+
Select_ItemText_1($$anchor, {
|
|
1272
|
+
children: ($$anchor, $$slotProps) => {
|
|
1273
|
+
$.next();
|
|
1274
|
+
var text_2 = $.text();
|
|
1275
|
+
$.template_effect(() => $.set_text(text_2, $.get(option).label));
|
|
1276
|
+
$.append($$anchor, text_2);
|
|
1277
|
+
},
|
|
1278
|
+
$$slots: { default: true }
|
|
1279
|
+
});
|
|
1280
|
+
});
|
|
1281
|
+
var node_26 = $.sibling(node_25, 2);
|
|
1282
|
+
$.component(node_26, () => Select.ItemIndicator, ($$anchor, Select_ItemIndicator_1) => {
|
|
1283
|
+
Select_ItemIndicator_1($$anchor, {
|
|
1284
|
+
children: ($$anchor, $$slotProps) => {
|
|
1285
|
+
InternalIcon($$anchor, { name: "check" });
|
|
1286
|
+
},
|
|
1287
|
+
$$slots: { default: true }
|
|
1288
|
+
});
|
|
1289
|
+
});
|
|
1290
|
+
$.append($$anchor, fragment_24);
|
|
1291
|
+
},
|
|
1292
|
+
$$slots: { default: true }
|
|
1293
|
+
});
|
|
1294
|
+
});
|
|
1295
|
+
$.append($$anchor, fragment_23);
|
|
1296
|
+
});
|
|
1297
|
+
$.append($$anchor, fragment_22);
|
|
1298
|
+
},
|
|
1299
|
+
$$slots: { default: true }
|
|
1300
|
+
});
|
|
1301
|
+
});
|
|
1302
|
+
$.append($$anchor, fragment_21);
|
|
1303
|
+
},
|
|
1304
|
+
$$slots: { default: true }
|
|
1305
|
+
});
|
|
1306
|
+
});
|
|
1307
|
+
$.append($$anchor, fragment_20);
|
|
1308
|
+
},
|
|
1309
|
+
$$slots: { default: true }
|
|
1310
|
+
});
|
|
1311
|
+
});
|
|
1312
|
+
var node_27 = $.sibling(node_20, 2);
|
|
1313
|
+
$.component(node_27, () => Select.HiddenSelect, ($$anchor, Select_HiddenSelect_1) => {
|
|
1314
|
+
Select_HiddenSelect_1($$anchor, {});
|
|
1315
|
+
});
|
|
1316
|
+
$.append($$anchor, fragment_16);
|
|
1317
|
+
},
|
|
1318
|
+
$$slots: { default: true }
|
|
1319
|
+
});
|
|
1320
|
+
});
|
|
1321
|
+
$.append($$anchor, fragment_15);
|
|
1322
|
+
};
|
|
1323
|
+
$.if(node, ($$render) => {
|
|
1324
|
+
if ($$props.props.label) $$render(consequent);
|
|
1325
|
+
else $$render(alternate, -1);
|
|
1326
|
+
});
|
|
1327
|
+
$.append($$anchor, fragment);
|
|
1328
|
+
$.pop();
|
|
1329
|
+
}
|
|
1330
|
+
//#endregion
|
|
1331
|
+
//#region src/components/select/generative/index.ts
|
|
1332
|
+
var generative_exports$8 = /* @__PURE__ */ __exportAll({ default: () => generative_default$8 });
|
|
1333
|
+
/** A choice field that opens a ruled list; options carry label and value. */
|
|
1334
|
+
var generative_default$8 = defineEntry({ Select: {
|
|
1335
|
+
...faces$1.Select,
|
|
1336
|
+
component: Select_1
|
|
1337
|
+
} });
|
|
1338
|
+
//#endregion
|
|
1339
|
+
//#region src/components/separator/generative/Separator.svelte
|
|
1340
|
+
function Separator_1($$anchor, $$props) {
|
|
1341
|
+
$.push($$props, true);
|
|
1342
|
+
{
|
|
1343
|
+
let $0 = $.derived(() => $$props.props.orientation ?? "horizontal");
|
|
1344
|
+
Separator($$anchor, {
|
|
1345
|
+
get orientation() {
|
|
1346
|
+
return $.get($0);
|
|
1347
|
+
},
|
|
1348
|
+
decorative: true
|
|
1349
|
+
});
|
|
1350
|
+
}
|
|
1351
|
+
$.pop();
|
|
1352
|
+
}
|
|
1353
|
+
//#endregion
|
|
1354
|
+
//#region src/components/separator/generative/index.ts
|
|
1355
|
+
var generative_exports$7 = /* @__PURE__ */ __exportAll({ default: () => generative_default$7 });
|
|
1356
|
+
/** Hairline divider between sections. */
|
|
1357
|
+
var generative_default$7 = defineEntry({ Separator: {
|
|
1358
|
+
...faces$1.Separator,
|
|
1359
|
+
component: Separator_1
|
|
1360
|
+
} });
|
|
1361
|
+
//#endregion
|
|
1362
|
+
//#region src/components/slider/generative/Slider.svelte
|
|
1363
|
+
var root$3 = $.from_html(`<!> <!>`, 1);
|
|
1364
|
+
function Slider_1($$anchor, $$props) {
|
|
1365
|
+
$.push($$props, true);
|
|
1366
|
+
var fragment = $.comment();
|
|
1367
|
+
var node = $.first_child(fragment);
|
|
1368
|
+
{
|
|
1369
|
+
let $0 = $.derived(() => [$$props.props.value ?? 50]);
|
|
1370
|
+
$.component(node, () => Slider.Root, ($$anchor, Slider_Root) => {
|
|
1371
|
+
Slider_Root($$anchor, {
|
|
1372
|
+
get value() {
|
|
1373
|
+
return $.get($0);
|
|
1374
|
+
},
|
|
1375
|
+
get min() {
|
|
1376
|
+
return $$props.props.min;
|
|
1377
|
+
},
|
|
1378
|
+
get max() {
|
|
1379
|
+
return $$props.props.max;
|
|
1380
|
+
},
|
|
1381
|
+
get step() {
|
|
1382
|
+
return $$props.props.step;
|
|
1383
|
+
},
|
|
1384
|
+
children: ($$anchor, $$slotProps) => {
|
|
1385
|
+
var fragment_1 = $.comment();
|
|
1386
|
+
var node_1 = $.first_child(fragment_1);
|
|
1387
|
+
$.component(node_1, () => Slider.Control, ($$anchor, Slider_Control) => {
|
|
1388
|
+
Slider_Control($$anchor, {
|
|
1389
|
+
children: ($$anchor, $$slotProps) => {
|
|
1390
|
+
var fragment_2 = root$3();
|
|
1391
|
+
var node_2 = $.first_child(fragment_2);
|
|
1392
|
+
$.component(node_2, () => Slider.Track, ($$anchor, Slider_Track) => {
|
|
1393
|
+
Slider_Track($$anchor, {
|
|
1394
|
+
children: ($$anchor, $$slotProps) => {
|
|
1395
|
+
var fragment_3 = $.comment();
|
|
1396
|
+
var node_3 = $.first_child(fragment_3);
|
|
1397
|
+
$.component(node_3, () => Slider.Range, ($$anchor, Slider_Range) => {
|
|
1398
|
+
Slider_Range($$anchor, {});
|
|
1399
|
+
});
|
|
1400
|
+
$.append($$anchor, fragment_3);
|
|
1401
|
+
},
|
|
1402
|
+
$$slots: { default: true }
|
|
1403
|
+
});
|
|
1404
|
+
});
|
|
1405
|
+
var node_4 = $.sibling(node_2, 2);
|
|
1406
|
+
$.component(node_4, () => Slider.Thumb, ($$anchor, Slider_Thumb) => {
|
|
1407
|
+
Slider_Thumb($$anchor, { index: 0 });
|
|
1408
|
+
});
|
|
1409
|
+
$.append($$anchor, fragment_2);
|
|
1410
|
+
},
|
|
1411
|
+
$$slots: { default: true }
|
|
1412
|
+
});
|
|
1413
|
+
});
|
|
1414
|
+
$.append($$anchor, fragment_1);
|
|
1415
|
+
},
|
|
1416
|
+
$$slots: { default: true }
|
|
1417
|
+
});
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
$.append($$anchor, fragment);
|
|
1421
|
+
$.pop();
|
|
1422
|
+
}
|
|
1423
|
+
//#endregion
|
|
1424
|
+
//#region src/components/slider/generative/index.ts
|
|
1425
|
+
var generative_exports$6 = /* @__PURE__ */ __exportAll({ default: () => generative_default$6 });
|
|
1426
|
+
/** A ruled track the hand slides between bounds. */
|
|
1427
|
+
var generative_default$6 = defineEntry({ Slider: {
|
|
1428
|
+
...faces$1.Slider,
|
|
1429
|
+
component: Slider_1
|
|
1430
|
+
} });
|
|
1431
|
+
//#endregion
|
|
1432
|
+
//#region src/components/spinner/generative/Spinner.svelte
|
|
1433
|
+
function Spinner_1($$anchor, $$props) {
|
|
1434
|
+
$.push($$props, true);
|
|
1435
|
+
Spinner($$anchor, {
|
|
1436
|
+
get size() {
|
|
1437
|
+
return $$props.props.size;
|
|
1438
|
+
},
|
|
1439
|
+
get "aria-label"() {
|
|
1440
|
+
return $$props.props.label;
|
|
1441
|
+
}
|
|
1442
|
+
});
|
|
1443
|
+
$.pop();
|
|
1444
|
+
}
|
|
1445
|
+
//#endregion
|
|
1446
|
+
//#region src/components/spinner/generative/index.ts
|
|
1447
|
+
var generative_exports$5 = /* @__PURE__ */ __exportAll({ default: () => generative_default$5 });
|
|
1448
|
+
/** A quiet wheel for work still settling. */
|
|
1449
|
+
var generative_default$5 = defineEntry({ Spinner: {
|
|
1450
|
+
...faces$1.Spinner,
|
|
1451
|
+
component: Spinner_1
|
|
1452
|
+
} });
|
|
1453
|
+
//#endregion
|
|
1454
|
+
//#region src/components/stack/generative/Stack.svelte
|
|
1455
|
+
function Stack_1($$anchor, $$props) {
|
|
1456
|
+
$.push($$props, true);
|
|
1457
|
+
{
|
|
1458
|
+
let $0 = $.derived(() => $$props.props.direction ?? "column");
|
|
1459
|
+
let $1 = $.derived(() => $$props.props.gap ?? "md");
|
|
1460
|
+
Stack($$anchor, {
|
|
1461
|
+
get direction() {
|
|
1462
|
+
return $.get($0);
|
|
1463
|
+
},
|
|
1464
|
+
get gap() {
|
|
1465
|
+
return $.get($1);
|
|
1466
|
+
},
|
|
1467
|
+
get align() {
|
|
1468
|
+
return $$props.props.align;
|
|
1469
|
+
},
|
|
1470
|
+
get justify() {
|
|
1471
|
+
return $$props.props.justify;
|
|
1472
|
+
},
|
|
1473
|
+
get wrap() {
|
|
1474
|
+
return $$props.props.wrap;
|
|
1475
|
+
},
|
|
1476
|
+
children: ($$anchor, $$slotProps) => {
|
|
1477
|
+
var fragment_1 = $.comment();
|
|
1478
|
+
var node = $.first_child(fragment_1);
|
|
1479
|
+
$.snippet(node, () => $$props.children ?? $.noop);
|
|
1480
|
+
$.append($$anchor, fragment_1);
|
|
1481
|
+
},
|
|
1482
|
+
$$slots: { default: true }
|
|
1483
|
+
});
|
|
1484
|
+
}
|
|
1485
|
+
$.pop();
|
|
1486
|
+
}
|
|
1487
|
+
//#endregion
|
|
1488
|
+
//#region src/components/stack/generative/index.ts
|
|
1489
|
+
var generative_exports$4 = /* @__PURE__ */ __exportAll({ default: () => generative_default$4 });
|
|
1490
|
+
/** Flex container for layout. direction column stacks vertically, row lays side by side. gap is a named spacing step. */
|
|
1491
|
+
var generative_default$4 = defineEntry({ Stack: {
|
|
1492
|
+
...faces$1.Stack,
|
|
1493
|
+
component: Stack_1
|
|
1494
|
+
} });
|
|
1495
|
+
//#endregion
|
|
1496
|
+
//#region src/components/stat/generative/Stat.svelte
|
|
1497
|
+
var root$2 = $.from_html(`<!> <!> <!>`, 1);
|
|
1498
|
+
function Stat_1($$anchor, $$props) {
|
|
1499
|
+
$.push($$props, true);
|
|
1500
|
+
var fragment = $.comment();
|
|
1501
|
+
var node = $.first_child(fragment);
|
|
1502
|
+
$.component(node, () => Stat.Root, ($$anchor, Stat_Root) => {
|
|
1503
|
+
Stat_Root($$anchor, {
|
|
1504
|
+
children: ($$anchor, $$slotProps) => {
|
|
1505
|
+
var fragment_1 = root$2();
|
|
1506
|
+
var node_1 = $.first_child(fragment_1);
|
|
1507
|
+
$.component(node_1, () => Stat.Label, ($$anchor, Stat_Label) => {
|
|
1508
|
+
Stat_Label($$anchor, {
|
|
1509
|
+
children: ($$anchor, $$slotProps) => {
|
|
1510
|
+
$.next();
|
|
1511
|
+
var text = $.text();
|
|
1512
|
+
$.template_effect(() => $.set_text(text, $$props.props.label));
|
|
1513
|
+
$.append($$anchor, text);
|
|
1514
|
+
},
|
|
1515
|
+
$$slots: { default: true }
|
|
1516
|
+
});
|
|
1517
|
+
});
|
|
1518
|
+
var node_2 = $.sibling(node_1, 2);
|
|
1519
|
+
$.component(node_2, () => Stat.Value, ($$anchor, Stat_Value) => {
|
|
1520
|
+
Stat_Value($$anchor, {
|
|
1521
|
+
children: ($$anchor, $$slotProps) => {
|
|
1522
|
+
$.next();
|
|
1523
|
+
var text_1 = $.text();
|
|
1524
|
+
$.template_effect(() => $.set_text(text_1, $$props.props.value));
|
|
1525
|
+
$.append($$anchor, text_1);
|
|
1526
|
+
},
|
|
1527
|
+
$$slots: { default: true }
|
|
1528
|
+
});
|
|
1529
|
+
});
|
|
1530
|
+
var node_3 = $.sibling(node_2, 2);
|
|
1531
|
+
var consequent = ($$anchor) => {
|
|
1532
|
+
var fragment_4 = $.comment();
|
|
1533
|
+
var node_4 = $.first_child(fragment_4);
|
|
1534
|
+
{
|
|
1535
|
+
let $0 = $.derived(() => $$props.props.direction ?? "flat");
|
|
1536
|
+
$.component(node_4, () => Stat.Delta, ($$anchor, Stat_Delta) => {
|
|
1537
|
+
Stat_Delta($$anchor, {
|
|
1538
|
+
get direction() {
|
|
1539
|
+
return $.get($0);
|
|
1540
|
+
},
|
|
1541
|
+
children: ($$anchor, $$slotProps) => {
|
|
1542
|
+
$.next();
|
|
1543
|
+
var text_2 = $.text();
|
|
1544
|
+
$.template_effect(() => $.set_text(text_2, $$props.props.change));
|
|
1545
|
+
$.append($$anchor, text_2);
|
|
1546
|
+
},
|
|
1547
|
+
$$slots: { default: true }
|
|
1548
|
+
});
|
|
1549
|
+
});
|
|
1550
|
+
}
|
|
1551
|
+
$.append($$anchor, fragment_4);
|
|
1552
|
+
};
|
|
1553
|
+
$.if(node_3, ($$render) => {
|
|
1554
|
+
if ($$props.props.change != null) $$render(consequent);
|
|
1555
|
+
});
|
|
1556
|
+
$.append($$anchor, fragment_1);
|
|
1557
|
+
},
|
|
1558
|
+
$$slots: { default: true }
|
|
1559
|
+
});
|
|
1560
|
+
});
|
|
1561
|
+
$.append($$anchor, fragment);
|
|
1562
|
+
$.pop();
|
|
1563
|
+
}
|
|
1564
|
+
//#endregion
|
|
1565
|
+
//#region src/components/stat/generative/index.ts
|
|
1566
|
+
var generative_exports$3 = /* @__PURE__ */ __exportAll({ default: () => generative_default$3 });
|
|
1567
|
+
/** One loud figure with its quiet label and an optional delta. */
|
|
1568
|
+
var generative_default$3 = defineEntry({ Stat: {
|
|
1569
|
+
...faces$1.Stat,
|
|
1570
|
+
component: Stat_1
|
|
1571
|
+
} });
|
|
1572
|
+
//#endregion
|
|
1573
|
+
//#region src/components/switch/generative/Switch.svelte
|
|
1574
|
+
var root$1 = $.from_html(`<!> <!> <!>`, 1);
|
|
1575
|
+
function Switch_1($$anchor, $$props) {
|
|
1576
|
+
$.push($$props, true);
|
|
1577
|
+
const bound = getBoundProp(() => $$props.props.checked, () => $$props.bindings?.checked);
|
|
1578
|
+
var fragment = $.comment();
|
|
1579
|
+
var node = $.first_child(fragment);
|
|
1580
|
+
$.component(node, () => Switch.Root, ($$anchor, Switch_Root) => {
|
|
1581
|
+
Switch_Root($$anchor, {
|
|
1582
|
+
get disabled() {
|
|
1583
|
+
return $$props.props.disabled;
|
|
1584
|
+
},
|
|
1585
|
+
get checked() {
|
|
1586
|
+
return bound.current;
|
|
1587
|
+
},
|
|
1588
|
+
set checked($$value) {
|
|
1589
|
+
bound.current = $$value;
|
|
1590
|
+
},
|
|
1591
|
+
children: ($$anchor, $$slotProps) => {
|
|
1592
|
+
var fragment_1 = root$1();
|
|
1593
|
+
var node_1 = $.first_child(fragment_1);
|
|
1594
|
+
$.component(node_1, () => Switch.Control, ($$anchor, Switch_Control) => {
|
|
1595
|
+
Switch_Control($$anchor, {
|
|
1596
|
+
children: ($$anchor, $$slotProps) => {
|
|
1597
|
+
var fragment_2 = $.comment();
|
|
1598
|
+
var node_2 = $.first_child(fragment_2);
|
|
1599
|
+
$.component(node_2, () => Switch.Thumb, ($$anchor, Switch_Thumb) => {
|
|
1600
|
+
Switch_Thumb($$anchor, {});
|
|
1601
|
+
});
|
|
1602
|
+
$.append($$anchor, fragment_2);
|
|
1603
|
+
},
|
|
1604
|
+
$$slots: { default: true }
|
|
1605
|
+
});
|
|
1606
|
+
});
|
|
1607
|
+
var node_3 = $.sibling(node_1, 2);
|
|
1608
|
+
var consequent = ($$anchor) => {
|
|
1609
|
+
var fragment_3 = $.comment();
|
|
1610
|
+
var node_4 = $.first_child(fragment_3);
|
|
1611
|
+
$.component(node_4, () => Switch.Label, ($$anchor, Switch_Label) => {
|
|
1612
|
+
Switch_Label($$anchor, {
|
|
1613
|
+
children: ($$anchor, $$slotProps) => {
|
|
1614
|
+
$.next();
|
|
1615
|
+
var text = $.text();
|
|
1616
|
+
$.template_effect(() => $.set_text(text, $$props.props.label));
|
|
1617
|
+
$.append($$anchor, text);
|
|
1618
|
+
},
|
|
1619
|
+
$$slots: { default: true }
|
|
1620
|
+
});
|
|
1621
|
+
});
|
|
1622
|
+
$.append($$anchor, fragment_3);
|
|
1623
|
+
};
|
|
1624
|
+
$.if(node_3, ($$render) => {
|
|
1625
|
+
if ($$props.props.label != null) $$render(consequent);
|
|
1626
|
+
});
|
|
1627
|
+
var node_5 = $.sibling(node_3, 2);
|
|
1628
|
+
$.component(node_5, () => Switch.HiddenInput, ($$anchor, Switch_HiddenInput) => {
|
|
1629
|
+
Switch_HiddenInput($$anchor, {});
|
|
1630
|
+
});
|
|
1631
|
+
$.append($$anchor, fragment_1);
|
|
1632
|
+
},
|
|
1633
|
+
$$slots: { default: true }
|
|
1634
|
+
});
|
|
1635
|
+
});
|
|
1636
|
+
$.append($$anchor, fragment);
|
|
1637
|
+
$.pop();
|
|
1638
|
+
}
|
|
1639
|
+
//#endregion
|
|
1640
|
+
//#region src/components/switch/generative/index.ts
|
|
1641
|
+
var generative_exports$2 = /* @__PURE__ */ __exportAll({ default: () => generative_default$2 });
|
|
1642
|
+
/** An instant on/off; label names what it switches. */
|
|
1643
|
+
var generative_default$2 = defineEntry({ Switch: {
|
|
1644
|
+
...faces$1.Switch,
|
|
1645
|
+
component: Switch_1
|
|
1646
|
+
} });
|
|
1647
|
+
//#endregion
|
|
1648
|
+
//#region src/components/textarea/generative/Textarea.svelte
|
|
1649
|
+
var root = $.from_html(`<!> <!>`, 1);
|
|
1650
|
+
function Textarea_1($$anchor, $$props) {
|
|
1651
|
+
$.push($$props, true);
|
|
1652
|
+
const bound = getBoundProp(() => $$props.props.value, () => $$props.bindings?.value);
|
|
1653
|
+
var fragment = $.comment();
|
|
1654
|
+
var node = $.first_child(fragment);
|
|
1655
|
+
var consequent = ($$anchor) => {
|
|
1656
|
+
Stack($$anchor, {
|
|
1657
|
+
gap: "xs",
|
|
1658
|
+
children: ($$anchor, $$slotProps) => {
|
|
1659
|
+
var fragment_2 = root();
|
|
1660
|
+
var node_1 = $.first_child(fragment_2);
|
|
1661
|
+
$.component(node_1, () => Typography.Label, ($$anchor, Typography_Label) => {
|
|
1662
|
+
Typography_Label($$anchor, {
|
|
1663
|
+
children: ($$anchor, $$slotProps) => {
|
|
1664
|
+
$.next();
|
|
1665
|
+
var text = $.text();
|
|
1666
|
+
$.template_effect(() => $.set_text(text, $$props.props.label));
|
|
1667
|
+
$.append($$anchor, text);
|
|
1668
|
+
},
|
|
1669
|
+
$$slots: { default: true }
|
|
1670
|
+
});
|
|
1671
|
+
});
|
|
1672
|
+
var node_2 = $.sibling(node_1, 2);
|
|
1673
|
+
Textarea(node_2, {
|
|
1674
|
+
get placeholder() {
|
|
1675
|
+
return $$props.props.placeholder;
|
|
1676
|
+
},
|
|
1677
|
+
get rows() {
|
|
1678
|
+
return $$props.props.rows;
|
|
1679
|
+
},
|
|
1680
|
+
get disabled() {
|
|
1681
|
+
return $$props.props.disabled;
|
|
1682
|
+
},
|
|
1683
|
+
get value() {
|
|
1684
|
+
return bound.current;
|
|
1685
|
+
},
|
|
1686
|
+
set value($$value) {
|
|
1687
|
+
bound.current = $$value;
|
|
1688
|
+
}
|
|
1689
|
+
});
|
|
1690
|
+
$.append($$anchor, fragment_2);
|
|
1691
|
+
},
|
|
1692
|
+
$$slots: { default: true }
|
|
1693
|
+
});
|
|
1694
|
+
};
|
|
1695
|
+
var alternate = ($$anchor) => {
|
|
1696
|
+
Textarea($$anchor, {
|
|
1697
|
+
get placeholder() {
|
|
1698
|
+
return $$props.props.placeholder;
|
|
1699
|
+
},
|
|
1700
|
+
get rows() {
|
|
1701
|
+
return $$props.props.rows;
|
|
1702
|
+
},
|
|
1703
|
+
get disabled() {
|
|
1704
|
+
return $$props.props.disabled;
|
|
1705
|
+
},
|
|
1706
|
+
get value() {
|
|
1707
|
+
return bound.current;
|
|
1708
|
+
},
|
|
1709
|
+
set value($$value) {
|
|
1710
|
+
bound.current = $$value;
|
|
1711
|
+
}
|
|
1712
|
+
});
|
|
1713
|
+
};
|
|
1714
|
+
$.if(node, ($$render) => {
|
|
1715
|
+
if ($$props.props.label) $$render(consequent);
|
|
1716
|
+
else $$render(alternate, -1);
|
|
1717
|
+
});
|
|
1718
|
+
$.append($$anchor, fragment);
|
|
1719
|
+
$.pop();
|
|
1720
|
+
}
|
|
1721
|
+
//#endregion
|
|
1722
|
+
//#region src/components/textarea/generative/index.ts
|
|
1723
|
+
var generative_exports$1 = /* @__PURE__ */ __exportAll({ default: () => generative_default$1 });
|
|
1724
|
+
/** A multi-line field for prose-length answers. */
|
|
1725
|
+
var generative_default$1 = defineEntry({ Textarea: {
|
|
1726
|
+
...faces$1.Textarea,
|
|
1727
|
+
component: Textarea_1
|
|
1728
|
+
} });
|
|
1729
|
+
//#endregion
|
|
1730
|
+
//#region src/components/typography/generative/Heading.svelte
|
|
1731
|
+
function Heading($$anchor, $$props) {
|
|
1732
|
+
$.push($$props, true);
|
|
1733
|
+
var fragment = $.comment();
|
|
1734
|
+
var node = $.first_child(fragment);
|
|
1735
|
+
$.component(node, () => Typography.Heading, ($$anchor, Typography_Heading) => {
|
|
1736
|
+
Typography_Heading($$anchor, {
|
|
1737
|
+
get class() {
|
|
1738
|
+
return headingClass[$$props.props.level ?? "2"];
|
|
1739
|
+
},
|
|
1740
|
+
children: ($$anchor, $$slotProps) => {
|
|
1741
|
+
$.next();
|
|
1742
|
+
var text = $.text();
|
|
1743
|
+
$.template_effect(() => $.set_text(text, $$props.props.text));
|
|
1744
|
+
$.append($$anchor, text);
|
|
1745
|
+
},
|
|
1746
|
+
$$slots: { default: true }
|
|
1747
|
+
});
|
|
1748
|
+
});
|
|
1749
|
+
$.append($$anchor, fragment);
|
|
1750
|
+
$.pop();
|
|
1751
|
+
}
|
|
1752
|
+
//#endregion
|
|
1753
|
+
//#region src/components/typography/generative/Text.svelte
|
|
1754
|
+
function Text($$anchor, $$props) {
|
|
1755
|
+
$.push($$props, true);
|
|
1756
|
+
var fragment = $.comment();
|
|
1757
|
+
var node = $.first_child(fragment);
|
|
1758
|
+
var consequent = ($$anchor) => {
|
|
1759
|
+
var fragment_1 = $.comment();
|
|
1760
|
+
var node_1 = $.first_child(fragment_1);
|
|
1761
|
+
$.component(node_1, () => Typography.Lead, ($$anchor, Typography_Lead) => {
|
|
1762
|
+
Typography_Lead($$anchor, {
|
|
1763
|
+
children: ($$anchor, $$slotProps) => {
|
|
1764
|
+
$.next();
|
|
1765
|
+
var text = $.text();
|
|
1766
|
+
$.template_effect(() => $.set_text(text, $$props.props.text));
|
|
1767
|
+
$.append($$anchor, text);
|
|
1768
|
+
},
|
|
1769
|
+
$$slots: { default: true }
|
|
1770
|
+
});
|
|
1771
|
+
});
|
|
1772
|
+
$.append($$anchor, fragment_1);
|
|
1773
|
+
};
|
|
1774
|
+
var consequent_1 = ($$anchor) => {
|
|
1775
|
+
var fragment_3 = $.comment();
|
|
1776
|
+
var node_2 = $.first_child(fragment_3);
|
|
1777
|
+
$.component(node_2, () => Typography.Muted, ($$anchor, Typography_Muted) => {
|
|
1778
|
+
Typography_Muted($$anchor, {
|
|
1779
|
+
children: ($$anchor, $$slotProps) => {
|
|
1780
|
+
$.next();
|
|
1781
|
+
var text_1 = $.text();
|
|
1782
|
+
$.template_effect(() => $.set_text(text_1, $$props.props.text));
|
|
1783
|
+
$.append($$anchor, text_1);
|
|
1784
|
+
},
|
|
1785
|
+
$$slots: { default: true }
|
|
1786
|
+
});
|
|
1787
|
+
});
|
|
1788
|
+
$.append($$anchor, fragment_3);
|
|
1789
|
+
};
|
|
1790
|
+
var consequent_2 = ($$anchor) => {
|
|
1791
|
+
var fragment_5 = $.comment();
|
|
1792
|
+
var node_3 = $.first_child(fragment_5);
|
|
1793
|
+
$.component(node_3, () => Typography.Label, ($$anchor, Typography_Label) => {
|
|
1794
|
+
Typography_Label($$anchor, {
|
|
1795
|
+
children: ($$anchor, $$slotProps) => {
|
|
1796
|
+
$.next();
|
|
1797
|
+
var text_2 = $.text();
|
|
1798
|
+
$.template_effect(() => $.set_text(text_2, $$props.props.text));
|
|
1799
|
+
$.append($$anchor, text_2);
|
|
1800
|
+
},
|
|
1801
|
+
$$slots: { default: true }
|
|
1802
|
+
});
|
|
1803
|
+
});
|
|
1804
|
+
$.append($$anchor, fragment_5);
|
|
1805
|
+
};
|
|
1806
|
+
var alternate = ($$anchor) => {
|
|
1807
|
+
var fragment_7 = $.comment();
|
|
1808
|
+
var node_4 = $.first_child(fragment_7);
|
|
1809
|
+
$.component(node_4, () => Typography.Body, ($$anchor, Typography_Body) => {
|
|
1810
|
+
Typography_Body($$anchor, {
|
|
1811
|
+
children: ($$anchor, $$slotProps) => {
|
|
1812
|
+
$.next();
|
|
1813
|
+
var text_3 = $.text();
|
|
1814
|
+
$.template_effect(() => $.set_text(text_3, $$props.props.text));
|
|
1815
|
+
$.append($$anchor, text_3);
|
|
1816
|
+
},
|
|
1817
|
+
$$slots: { default: true }
|
|
1818
|
+
});
|
|
1819
|
+
});
|
|
1820
|
+
$.append($$anchor, fragment_7);
|
|
1821
|
+
};
|
|
1822
|
+
$.if(node, ($$render) => {
|
|
1823
|
+
if ($$props.props.variant === "lead") $$render(consequent);
|
|
1824
|
+
else if ($$props.props.variant === "muted") $$render(consequent_1, 1);
|
|
1825
|
+
else if ($$props.props.variant === "label") $$render(consequent_2, 2);
|
|
1826
|
+
else $$render(alternate, -1);
|
|
1827
|
+
});
|
|
1828
|
+
$.append($$anchor, fragment);
|
|
1829
|
+
$.pop();
|
|
1830
|
+
}
|
|
1831
|
+
//#endregion
|
|
1832
|
+
//#region src/components/typography/generative/index.ts
|
|
1833
|
+
var generative_exports = /* @__PURE__ */ __exportAll({ default: () => generative_default });
|
|
1834
|
+
/** Section heading. One per view at level 1; do not skip levels. */
|
|
1835
|
+
var generative_default = defineEntry({
|
|
1836
|
+
Heading: {
|
|
1837
|
+
...faces$1.Heading,
|
|
1838
|
+
component: Heading
|
|
1839
|
+
},
|
|
1840
|
+
Text: {
|
|
1841
|
+
...faces$1.Text,
|
|
1842
|
+
component: Text
|
|
1843
|
+
}
|
|
1844
|
+
});
|
|
1845
|
+
//#endregion
|
|
1846
|
+
//#region src/generative/index.ts
|
|
1847
|
+
/** Every family writes its own generative face beside the component —
|
|
1848
|
+
* `components/<family>/generative/` — and this module is where they
|
|
1849
|
+
* meet: one glob picks the faces up, so a family that lands in the
|
|
1850
|
+
* package is in the vocabulary without anyone editing this file. */
|
|
1851
|
+
const modules = /* #__PURE__ */ Object.assign({
|
|
1852
|
+
"../components/alert/generative/index.ts": generative_exports$17,
|
|
1853
|
+
"../components/avatar/generative/index.ts": generative_exports$16,
|
|
1854
|
+
"../components/badge/generative/index.ts": generative_exports$15,
|
|
1855
|
+
"../components/button/generative/index.ts": generative_exports$14,
|
|
1856
|
+
"../components/card/generative/index.ts": generative_exports$13,
|
|
1857
|
+
"../components/checkbox/generative/index.ts": generative_exports$12,
|
|
1858
|
+
"../components/input/generative/index.ts": generative_exports$11,
|
|
1859
|
+
"../components/progress/generative/index.ts": generative_exports$10,
|
|
1860
|
+
"../components/radio-group/generative/index.ts": generative_exports$9,
|
|
1861
|
+
"../components/select/generative/index.ts": generative_exports$8,
|
|
1862
|
+
"../components/separator/generative/index.ts": generative_exports$7,
|
|
1863
|
+
"../components/slider/generative/index.ts": generative_exports$6,
|
|
1864
|
+
"../components/spinner/generative/index.ts": generative_exports$5,
|
|
1865
|
+
"../components/stack/generative/index.ts": generative_exports$4,
|
|
1866
|
+
"../components/stat/generative/index.ts": generative_exports$3,
|
|
1867
|
+
"../components/switch/generative/index.ts": generative_exports$2,
|
|
1868
|
+
"../components/textarea/generative/index.ts": generative_exports$1,
|
|
1869
|
+
"../components/typography/generative/index.ts": generative_exports
|
|
1870
|
+
});
|
|
1871
|
+
const entries = {};
|
|
1872
|
+
for (const [file, module] of Object.entries(modules)) {
|
|
1873
|
+
const family = file.match(/components\/([^/]+)\/generative\/index\.ts/)?.[1] ?? file;
|
|
1874
|
+
for (const [name, entry] of Object.entries(module.default ?? {})) {
|
|
1875
|
+
if (entries[name]) throw new Error("Two generative faces claim \"" + name + "\": " + entries[name]._from + " and " + family);
|
|
1876
|
+
entries[name] = {
|
|
1877
|
+
...entry,
|
|
1878
|
+
_from: family
|
|
1879
|
+
};
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
const faces = Object.fromEntries(Object.entries(entries).map(([name, entry]) => [name, {
|
|
1883
|
+
props: entry.props,
|
|
1884
|
+
description: entry.description
|
|
1885
|
+
}]));
|
|
1886
|
+
const catalog = defineCatalog(schema, {
|
|
1887
|
+
components: faces,
|
|
1888
|
+
actions: {}
|
|
1889
|
+
});
|
|
1890
|
+
const { registry } = defineRegistry(catalog, {
|
|
1891
|
+
actions: {},
|
|
1892
|
+
components: Object.fromEntries(Object.entries(entries).map(([name, entry]) => [name, entry.component]))
|
|
1893
|
+
});
|
|
1894
|
+
/** Which family each face came home from. A family may speak under
|
|
1895
|
+
* several names - Layout plus its parts, Bento plus its cell - and the
|
|
1896
|
+
* palette groups by provenance, never by guessing from the name. */
|
|
1897
|
+
const faceFamilies = Object.fromEntries(Object.entries(entries).map(([name, entry]) => [name, entry._from]));
|
|
1898
|
+
//#endregion
|
|
1899
|
+
export { catalog, faceFamilies, registry };
|