@pyck/react 0.0.5 → 0.0.6
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/checkmark-fJPHeX8N.js +62 -0
- package/dist/close-button-r3blTfSH.js +141 -0
- package/dist/components/avatar/index.js +96 -11
- package/dist/components/button/index.js +1 -1
- package/dist/components/carousel/index.js +35 -10
- package/dist/components/checkbox/index.js +103 -22
- package/dist/components/checkmark/index.js +1 -1
- package/dist/components/combobox/index.js +30 -6
- package/dist/components/data-list/index.js +19 -8
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/dialog/index.js +44 -13
- package/dist/components/display-date-value/index.js +2 -2
- package/dist/components/display-value/index.js +1 -1
- package/dist/components/drawer/index.js +17 -1
- package/dist/components/drilldown-menu/index.js +209 -78
- package/dist/components/field/index.js +89 -16
- package/dist/components/floating-panel/index.js +54 -43
- package/dist/components/form/index.js +115 -26
- package/dist/components/highlight/index.js +52 -14
- package/dist/components/icon/index.js +1 -1
- package/dist/components/image/index.js +27 -2
- package/dist/components/input/index.js +47 -4
- package/dist/components/input-group/index.js +56 -14
- package/dist/components/json-form-builder/index.js +245 -87
- package/dist/components/logo/index.js +46 -19
- package/dist/components/menu/index.js +28 -6
- package/dist/components/number-input/index.js +46 -7
- package/dist/components/page-header/index.js +45 -12
- package/dist/components/pagination/index.js +35 -13
- package/dist/components/progress/index.js +47 -8
- package/dist/components/progress-circle/index.js +66 -17
- package/dist/components/radio-group/index.js +47 -6
- package/dist/components/scroll-area/index.js +64 -9
- package/dist/components/segment-group/index.js +34 -5
- package/dist/components/select/index.js +85 -21
- package/dist/components/show/index.js +1 -1
- package/dist/components/skeleton/index.js +44 -4
- package/dist/components/slider/index.js +134 -37
- package/dist/components/spotlight/index.js +269 -125
- package/dist/components/steps/index.js +26 -12
- package/dist/components/switch/index.js +160 -29
- package/dist/components/table/index.js +370 -66
- package/dist/components/tags-input/index.js +17 -7
- package/dist/components/textarea/index.js +47 -4
- package/dist/components/toast/index.js +28 -22
- package/dist/components/tooltip/index.js +71 -14
- package/dist/components/tree-view/index.js +45 -8
- package/dist/display-date-value-BAU46P8s.js +40 -0
- package/dist/display-value-Bz71ZqgM.js +57 -0
- package/dist/{featured-icon-DPysOpSf.js → featured-icon-CKDv0xfF.js} +27 -4
- package/dist/show-DAysVQAC.js +27 -0
- package/dist/utils/index.js +164 -73
- package/package.json +5 -3
- package/dist/checkmark-CW-yHMvN.js +0 -18
- package/dist/close-button-BM7ikbYh.js +0 -52
- package/dist/display-date-value-gTlidtNz.js +0 -21
- package/dist/display-value-BNKxQ99u.js +0 -37
- package/dist/show-IaI-36v9.js +0 -12
|
@@ -1,85 +1,141 @@
|
|
|
1
1
|
import { P, match } from "ts-pattern";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
3
4
|
import { Fragment } from "react";
|
|
4
5
|
import { Box, HStack, Stack } from "@pyck/styled-system/jsx";
|
|
5
|
-
import { capitalize } from "@pyck/react/utils";
|
|
6
6
|
import { CheckboxField } from "@pyck/react/checkbox";
|
|
7
7
|
import { Field } from "@pyck/react/field";
|
|
8
8
|
import { Controller, FormProvider, useForm, useFormContext } from "react-hook-form";
|
|
9
|
+
import { capitalize } from "@pyck/react/utils";
|
|
9
10
|
import { Portal } from "@ark-ui/react/portal";
|
|
10
11
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
11
12
|
import { Form } from "@pyck/react/form";
|
|
12
13
|
import { Fieldset } from "@pyck/react/fieldset";
|
|
13
|
-
import { useListCollection } from "@ark-ui/react";
|
|
14
14
|
import { InputField } from "@pyck/react/input";
|
|
15
15
|
import { NumberInputField } from "@pyck/react/number-input";
|
|
16
|
-
import { Combobox, useFilter, useListCollection
|
|
16
|
+
import { Combobox, useFilter, useListCollection } from "@pyck/react/combobox";
|
|
17
|
+
import { useListCollection as useListCollection$1 } from "@ark-ui/react";
|
|
17
18
|
import { SelectField } from "@pyck/react/select";
|
|
18
19
|
import { TagsInput } from "@pyck/react/tags-input";
|
|
19
20
|
|
|
20
21
|
//#region src/components/json-form-builder/components/combobox-from-items.tsx
|
|
21
|
-
const ComboboxFromItems = (
|
|
22
|
-
const
|
|
23
|
-
const {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
const ComboboxFromItems = (t0) => {
|
|
23
|
+
const $ = c(14);
|
|
24
|
+
const { name, label, helperText, items, required } = t0;
|
|
25
|
+
let t1;
|
|
26
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
27
|
+
t1 = { sensitivity: "base" };
|
|
28
|
+
$[0] = t1;
|
|
29
|
+
} else t1 = $[0];
|
|
30
|
+
const { contains } = useFilter(t1);
|
|
31
|
+
let t2;
|
|
32
|
+
if ($[1] !== contains || $[2] !== items) {
|
|
33
|
+
t2 = {
|
|
34
|
+
initialItems: items,
|
|
35
|
+
filter: contains
|
|
36
|
+
};
|
|
37
|
+
$[1] = contains;
|
|
38
|
+
$[2] = items;
|
|
39
|
+
$[3] = t2;
|
|
40
|
+
} else t2 = $[3];
|
|
41
|
+
const { collection, filter } = useListCollection(t2);
|
|
27
42
|
const { control } = useFormContext();
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
43
|
+
let t3;
|
|
44
|
+
if ($[4] !== collection || $[5] !== filter || $[6] !== helperText || $[7] !== label || $[8] !== required) {
|
|
45
|
+
t3 = (t4) => {
|
|
46
|
+
const { field, fieldState } = t4;
|
|
47
|
+
return <Field label={label} helperText={helperText} invalid={!!fieldState.error} errorText={fieldState.error?.message} required={required}><Combobox.Root name={field.name} multiple={true} collection={collection} onInputValueChange={(e) => filter(e.inputValue)} value={field.value ?? []} onValueChange={(e_0) => field.onChange(e_0.value)} disabled={field.disabled} invalid={!!fieldState.error}><Combobox.Control><Combobox.Input placeholder="Search..." onBlur={field.onBlur} /><Combobox.IndicatorGroup><Combobox.ClearTrigger /><Combobox.Trigger /></Combobox.IndicatorGroup></Combobox.Control><Portal><Combobox.Positioner><Combobox.Content><Combobox.Empty>No results found</Combobox.Empty>{collection.items.map(_temp$2)}</Combobox.Content></Combobox.Positioner></Portal></Combobox.Root></Field>;
|
|
48
|
+
};
|
|
49
|
+
$[4] = collection;
|
|
50
|
+
$[5] = filter;
|
|
51
|
+
$[6] = helperText;
|
|
52
|
+
$[7] = label;
|
|
53
|
+
$[8] = required;
|
|
54
|
+
$[9] = t3;
|
|
55
|
+
} else t3 = $[9];
|
|
56
|
+
let t4;
|
|
57
|
+
if ($[10] !== control || $[11] !== name || $[12] !== t3) {
|
|
58
|
+
t4 = <Controller name={name} control={control} render={t3} />;
|
|
59
|
+
$[10] = control;
|
|
60
|
+
$[11] = name;
|
|
61
|
+
$[12] = t3;
|
|
62
|
+
$[13] = t4;
|
|
63
|
+
} else t4 = $[13];
|
|
64
|
+
return t4;
|
|
65
|
+
};
|
|
66
|
+
function _temp$2(item) {
|
|
67
|
+
return <Combobox.Item key={item.value} item={item}><Combobox.ItemText>{item.label}</Combobox.ItemText><Combobox.ItemIndicator /></Combobox.Item>;
|
|
68
|
+
}
|
|
53
69
|
|
|
54
70
|
//#endregion
|
|
55
71
|
//#region src/components/json-form-builder/components/select-field-from-items.tsx
|
|
56
|
-
const SelectFieldFromItems = (
|
|
57
|
-
const
|
|
72
|
+
const SelectFieldFromItems = (t0) => {
|
|
73
|
+
const $ = c(12);
|
|
74
|
+
const { name, label, helperText, placeholder, items, required } = t0;
|
|
75
|
+
let t1;
|
|
76
|
+
if ($[0] !== items) {
|
|
77
|
+
t1 = { initialItems: items };
|
|
78
|
+
$[0] = items;
|
|
79
|
+
$[1] = t1;
|
|
80
|
+
} else t1 = $[1];
|
|
81
|
+
const { collection } = useListCollection$1(t1);
|
|
58
82
|
if (items.length === 0) return null;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
83
|
+
const t2 = placeholder ?? `Select ${label}`;
|
|
84
|
+
let t3;
|
|
85
|
+
if ($[2] !== items) {
|
|
86
|
+
t3 = items.map(_temp$1);
|
|
87
|
+
$[2] = items;
|
|
88
|
+
$[3] = t3;
|
|
89
|
+
} else t3 = $[3];
|
|
90
|
+
let t4;
|
|
91
|
+
if ($[4] !== collection || $[5] !== helperText || $[6] !== label || $[7] !== name || $[8] !== required || $[9] !== t2 || $[10] !== t3) {
|
|
92
|
+
t4 = <SelectField.Root name={name} label={label} helperText={helperText} placeholder={t2} collection={collection} multiple={false} required={required}>{t3}</SelectField.Root>;
|
|
93
|
+
$[4] = collection;
|
|
94
|
+
$[5] = helperText;
|
|
95
|
+
$[6] = label;
|
|
96
|
+
$[7] = name;
|
|
97
|
+
$[8] = required;
|
|
98
|
+
$[9] = t2;
|
|
99
|
+
$[10] = t3;
|
|
100
|
+
$[11] = t4;
|
|
101
|
+
} else t4 = $[11];
|
|
102
|
+
return t4;
|
|
65
103
|
};
|
|
104
|
+
function _temp$1(item) {
|
|
105
|
+
return <SelectField.Item key={item.value} item={item}>{item.label}<SelectField.ItemIndicator /></SelectField.Item>;
|
|
106
|
+
}
|
|
66
107
|
|
|
67
108
|
//#endregion
|
|
68
109
|
//#region src/components/json-form-builder/components/tags-input-field.tsx
|
|
69
|
-
const TagsInputField = (
|
|
110
|
+
const TagsInputField = (t0) => {
|
|
111
|
+
const $ = c(10);
|
|
112
|
+
const { name, label, helperText, placeholder, required, disabled } = t0;
|
|
70
113
|
const { control } = useFormContext();
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
114
|
+
let t1;
|
|
115
|
+
if ($[0] !== disabled || $[1] !== helperText || $[2] !== label || $[3] !== placeholder || $[4] !== required) {
|
|
116
|
+
t1 = (t2) => {
|
|
117
|
+
const { field, fieldState } = t2;
|
|
118
|
+
return <Field label={label} helperText={helperText} invalid={!!fieldState.error} errorText={fieldState.error?.message} required={required} disabled={field.disabled || disabled}><TagsInput.Root name={field.name} value={field.value ?? []} onValueChange={(e) => {
|
|
119
|
+
field.onChange(e.value);
|
|
120
|
+
field.onBlur();
|
|
121
|
+
}} disabled={field.disabled || disabled} invalid={!!fieldState.error}><TagsInput.Control><TagsInput.Items /><TagsInput.Input placeholder={placeholder ?? "Add tag..."} onBlur={field.onBlur} /></TagsInput.Control><TagsInput.HiddenInput /></TagsInput.Root></Field>;
|
|
122
|
+
};
|
|
123
|
+
$[0] = disabled;
|
|
124
|
+
$[1] = helperText;
|
|
125
|
+
$[2] = label;
|
|
126
|
+
$[3] = placeholder;
|
|
127
|
+
$[4] = required;
|
|
128
|
+
$[5] = t1;
|
|
129
|
+
} else t1 = $[5];
|
|
130
|
+
let t2;
|
|
131
|
+
if ($[6] !== control || $[7] !== name || $[8] !== t1) {
|
|
132
|
+
t2 = <Controller name={name} control={control} render={t1} />;
|
|
133
|
+
$[6] = control;
|
|
134
|
+
$[7] = name;
|
|
135
|
+
$[8] = t1;
|
|
136
|
+
$[9] = t2;
|
|
137
|
+
} else t2 = $[9];
|
|
138
|
+
return t2;
|
|
83
139
|
};
|
|
84
140
|
|
|
85
141
|
//#endregion
|
|
@@ -240,13 +296,48 @@ const buildZodForProperty = (prop) => {
|
|
|
240
296
|
* <Builder /> renders fields in the order they appear in the schema without layout control.
|
|
241
297
|
* It is intentionally minimal. Use <UiSchemaForm /> if you need structured layouts.
|
|
242
298
|
*/
|
|
243
|
-
const Builder = (
|
|
244
|
-
const
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
299
|
+
const Builder = (t0) => {
|
|
300
|
+
const $ = c(10);
|
|
301
|
+
const { jsonSchema } = t0;
|
|
302
|
+
let t1;
|
|
303
|
+
let t2;
|
|
304
|
+
if ($[0] !== jsonSchema) {
|
|
305
|
+
const zodSchema = createZodSchemaFromJson(jsonSchema);
|
|
306
|
+
t2 = useForm;
|
|
307
|
+
t1 = zodResolver(zodSchema);
|
|
308
|
+
$[0] = jsonSchema;
|
|
309
|
+
$[1] = t1;
|
|
310
|
+
$[2] = t2;
|
|
311
|
+
} else {
|
|
312
|
+
t1 = $[1];
|
|
313
|
+
t2 = $[2];
|
|
314
|
+
}
|
|
315
|
+
let t3;
|
|
316
|
+
if ($[3] !== t1) {
|
|
317
|
+
t3 = { resolver: t1 };
|
|
318
|
+
$[3] = t1;
|
|
319
|
+
$[4] = t3;
|
|
320
|
+
} else t3 = $[4];
|
|
321
|
+
const form = t2(t3);
|
|
322
|
+
let t4;
|
|
323
|
+
if ($[5] !== jsonSchema.properties) {
|
|
324
|
+
t4 = Object.entries(jsonSchema.properties).map(_temp);
|
|
325
|
+
$[5] = jsonSchema.properties;
|
|
326
|
+
$[6] = t4;
|
|
327
|
+
} else t4 = $[6];
|
|
328
|
+
let t5;
|
|
329
|
+
if ($[7] !== form || $[8] !== t4) {
|
|
330
|
+
t5 = <Form value={form}>{t4}</Form>;
|
|
331
|
+
$[7] = form;
|
|
332
|
+
$[8] = t4;
|
|
333
|
+
$[9] = t5;
|
|
334
|
+
} else t5 = $[9];
|
|
335
|
+
return t5;
|
|
336
|
+
};
|
|
337
|
+
function _temp(t0) {
|
|
338
|
+
const [key, schema] = t0;
|
|
339
|
+
return renderField(schema, key);
|
|
340
|
+
}
|
|
250
341
|
|
|
251
342
|
//#endregion
|
|
252
343
|
//#region src/components/json-form-builder/utils/scope-resolver.ts
|
|
@@ -315,32 +406,99 @@ const renderFieldNode = (jsonSchema, node) => {
|
|
|
315
406
|
const required = jsonSchema.required?.includes(resolved.key) ?? false;
|
|
316
407
|
return renderField(resolved.schema, resolved.key, { required });
|
|
317
408
|
};
|
|
318
|
-
const UiSchemaForm = (
|
|
409
|
+
const UiSchemaForm = (t0) => {
|
|
410
|
+
const $ = c(36);
|
|
411
|
+
const { id, value, onSubmit, jsonSchema, uiFieldset, form: providedForm, footer, error } = t0;
|
|
319
412
|
const form = providedForm || value;
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
413
|
+
let t1;
|
|
414
|
+
if ($[0] !== form || $[1] !== onSubmit) {
|
|
415
|
+
t1 = form.handleSubmit(onSubmit);
|
|
416
|
+
$[0] = form;
|
|
417
|
+
$[1] = onSubmit;
|
|
418
|
+
$[2] = t1;
|
|
419
|
+
} else t1 = $[2];
|
|
420
|
+
let t2;
|
|
421
|
+
if ($[3] !== uiFieldset.legend) {
|
|
422
|
+
t2 = <Fieldset.Legend>{uiFieldset.legend}</Fieldset.Legend>;
|
|
423
|
+
$[3] = uiFieldset.legend;
|
|
424
|
+
$[4] = t2;
|
|
425
|
+
} else t2 = $[4];
|
|
426
|
+
let t3;
|
|
427
|
+
if ($[5] !== uiFieldset.description) {
|
|
428
|
+
t3 = uiFieldset.description && <Fieldset.Description>{uiFieldset.description}</Fieldset.Description>;
|
|
429
|
+
$[5] = uiFieldset.description;
|
|
430
|
+
$[6] = t3;
|
|
431
|
+
} else t3 = $[6];
|
|
432
|
+
let t4;
|
|
433
|
+
if ($[7] !== t2 || $[8] !== t3) {
|
|
434
|
+
t4 = <Fieldset.Header>{t2}{t3}</Fieldset.Header>;
|
|
435
|
+
$[7] = t2;
|
|
436
|
+
$[8] = t3;
|
|
437
|
+
$[9] = t4;
|
|
438
|
+
} else t4 = $[9];
|
|
439
|
+
let t5;
|
|
440
|
+
if ($[10] !== jsonSchema || $[11] !== uiFieldset.nodes) {
|
|
441
|
+
let t6;
|
|
442
|
+
if ($[13] !== jsonSchema) {
|
|
443
|
+
t6 = (node, index) => <Fragment key={`fieldset-${node.type}-${index}`}>{renderNode(jsonSchema, node)}</Fragment>;
|
|
444
|
+
$[13] = jsonSchema;
|
|
445
|
+
$[14] = t6;
|
|
446
|
+
} else t6 = $[14];
|
|
447
|
+
t5 = uiFieldset.nodes.map(t6);
|
|
448
|
+
$[10] = jsonSchema;
|
|
449
|
+
$[11] = uiFieldset.nodes;
|
|
450
|
+
$[12] = t5;
|
|
451
|
+
} else t5 = $[12];
|
|
452
|
+
let t6;
|
|
453
|
+
if ($[15] !== t5) {
|
|
454
|
+
t6 = <Fieldset.Body><Stack gap="4">{t5}</Stack></Fieldset.Body>;
|
|
455
|
+
$[15] = t5;
|
|
456
|
+
$[16] = t6;
|
|
457
|
+
} else t6 = $[16];
|
|
458
|
+
let t7;
|
|
459
|
+
if ($[17] !== error) {
|
|
460
|
+
t7 = error && <Fieldset.ErrorText>{error}</Fieldset.ErrorText>;
|
|
461
|
+
$[17] = error;
|
|
462
|
+
$[18] = t7;
|
|
463
|
+
} else t7 = $[18];
|
|
464
|
+
let t8;
|
|
465
|
+
if ($[19] !== footer || $[20] !== t7) {
|
|
466
|
+
t8 = <Fieldset.Footer>{t7}{footer}</Fieldset.Footer>;
|
|
467
|
+
$[19] = footer;
|
|
468
|
+
$[20] = t7;
|
|
469
|
+
$[21] = t8;
|
|
470
|
+
} else t8 = $[21];
|
|
471
|
+
let t9;
|
|
472
|
+
if ($[22] !== t4 || $[23] !== t6 || $[24] !== t8) {
|
|
473
|
+
t9 = <Fieldset.Root>{t4}{t6}{t8}</Fieldset.Root>;
|
|
474
|
+
$[22] = t4;
|
|
475
|
+
$[23] = t6;
|
|
476
|
+
$[24] = t8;
|
|
477
|
+
$[25] = t9;
|
|
478
|
+
} else t9 = $[25];
|
|
479
|
+
let t10;
|
|
480
|
+
if ($[26] !== form || $[27] !== t9) {
|
|
481
|
+
t10 = <FormProvider {...form}>{t9}</FormProvider>;
|
|
482
|
+
$[26] = form;
|
|
483
|
+
$[27] = t9;
|
|
484
|
+
$[28] = t10;
|
|
485
|
+
} else t10 = $[28];
|
|
486
|
+
let t11;
|
|
487
|
+
if ($[29] !== form || $[30] !== t1 || $[31] !== t10) {
|
|
488
|
+
t11 = <Form value={form} onSubmit={t1}>{t10}</Form>;
|
|
489
|
+
$[29] = form;
|
|
490
|
+
$[30] = t1;
|
|
491
|
+
$[31] = t10;
|
|
492
|
+
$[32] = t11;
|
|
493
|
+
} else t11 = $[32];
|
|
494
|
+
let t12;
|
|
495
|
+
if ($[33] !== id || $[34] !== t11) {
|
|
496
|
+
t12 = <Box id={id}>{t11}</Box>;
|
|
497
|
+
$[33] = id;
|
|
498
|
+
$[34] = t11;
|
|
499
|
+
$[35] = t12;
|
|
500
|
+
} else t12 = $[35];
|
|
501
|
+
return t12;
|
|
344
502
|
};
|
|
345
503
|
|
|
346
504
|
//#endregion
|
|
@@ -1,25 +1,52 @@
|
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
2
|
+
|
|
1
3
|
//#region src/components/logo/logo.tsx
|
|
2
4
|
const Logo = (props) => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const $ = c(4);
|
|
6
|
+
let t0;
|
|
7
|
+
let t1;
|
|
8
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
9
|
+
t0 = <title>Pyck Logo</title>;
|
|
10
|
+
t1 = <path d="M23.9648 14.7432C22.7094 20.0485 17.8934 23.9999 12.1426 24C9.3075 24 6.70113 23.0371 4.63477 21.4277C8.9098 20.4307 12.9283 17.3733 16.9268 16.2139C19.3145 16.0313 21.6543 15.4633 23.9648 14.7432ZM12.1426 0C17.9528 0.000132398 22.8082 4.03376 24.002 9.42188C18.9357 11.5198 12.7029 11.8905 14.5098 4.35352C13.4466 4.78152 12.6277 5.72995 11.6211 6.28809C10.4736 6.91121 9.73972 6.64161 7.73633 7.81348C7.30352 8.06454 6.75768 8.53945 6.31543 8.93945C5.91107 9.31137 5.6004 9.71109 5.29004 10.0088C4.28369 10.883 3.80445 11.4415 3.7666 11.9531C3.71952 12.5299 3.82299 12.7996 4.04883 13.0693C4.99889 14.2323 7.56671 14.7726 10.6807 15.0703C12.7798 16.3801 5.94935 19.3806 3.05176 19.9512C1.15419 17.8338 0 15.0509 0 12C5.21518e-07 5.37258 5.43658 0 12.1426 0ZM8.71484 9.45117C9.45796 8.60498 10.8212 9.76692 10.0508 10.5947H10.0596C9.30688 11.4321 7.9434 10.2977 8.71484 9.45117Z" fill="currentColor" />;
|
|
11
|
+
$[0] = t0;
|
|
12
|
+
$[1] = t1;
|
|
13
|
+
} else {
|
|
14
|
+
t0 = $[0];
|
|
15
|
+
t1 = $[1];
|
|
16
|
+
}
|
|
17
|
+
let t2;
|
|
18
|
+
if ($[2] !== props) {
|
|
19
|
+
t2 = <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>{t0}{t1}</svg>;
|
|
20
|
+
$[2] = props;
|
|
21
|
+
$[3] = t2;
|
|
22
|
+
} else t2 = $[3];
|
|
23
|
+
return t2;
|
|
24
|
+
};
|
|
25
|
+
const FullLogo = (props) => {
|
|
26
|
+
const $ = c(5);
|
|
27
|
+
let t0;
|
|
28
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
29
|
+
t0 = <title>Pyck Logo</title>;
|
|
30
|
+
$[0] = t0;
|
|
31
|
+
} else t0 = $[0];
|
|
32
|
+
let t1;
|
|
33
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
34
|
+
t1 = <g clipPath="url(#clip0_14004_29403)"><path d="M10.8098 24.5945C9.85325 24.0459 8.76308 23.7716 7.53928 23.7716C6.44207 23.7716 5.49257 24.0107 4.6767 24.482C4.24766 24.7352 3.86786 25.0587 3.54433 25.4455V23.9545H-0.000488281V41.362H3.70609V35.3767C4.00853 35.7143 4.34613 35.9956 4.72593 36.2207C5.53477 36.6989 6.47021 36.931 7.53224 36.931C8.75605 36.931 9.84622 36.6567 10.8028 36.1081C11.7593 35.5595 12.5259 34.7999 13.0886 33.8223C13.6513 32.8446 13.9326 31.6841 13.9326 30.3408C13.9326 28.9974 13.6513 27.851 13.0886 26.8663C12.5259 25.8816 11.7663 25.115 10.8028 24.5734L10.8098 24.5945ZM9.74072 32.2538C9.44532 32.7884 9.05848 33.1963 8.57318 33.4776C8.08788 33.766 7.53928 33.9067 6.92034 33.9067C6.30141 33.9067 5.74577 33.766 5.25343 33.4776C4.7611 33.1893 4.36723 32.7813 4.07886 32.2538C3.78346 31.7193 3.63576 31.0933 3.63576 30.3619C3.63576 29.6304 3.78346 28.9833 4.07886 28.4629C4.37426 27.9424 4.7611 27.5415 5.25343 27.2602C5.74577 26.9859 6.30141 26.8452 6.92034 26.8452C7.53928 26.8452 8.08788 26.9859 8.57318 27.2602C9.05848 27.5345 9.44532 27.9354 9.74072 28.4629C10.0361 28.9833 10.1838 29.6234 10.1838 30.3619C10.1838 31.1004 10.0361 31.7193 9.74072 32.2538Z" fill="currentcolor" /><path d="M21.5786 32.6474L17.9775 23.9682H14.1725L19.6866 36.8674L19.6374 36.9729C19.3842 37.5426 19.1028 37.9505 18.7934 38.1967C18.4839 38.4429 18.076 38.5624 17.5696 38.5624C17.1898 38.5624 16.81 38.4921 16.4372 38.3514C16.0644 38.2108 15.7339 37.9998 15.4525 37.7325L14.0951 40.3982C14.5241 40.7639 15.0587 41.0452 15.7128 41.2562C16.3598 41.4602 17.0139 41.5657 17.661 41.5657C18.4347 41.5657 19.145 41.4461 19.7921 41.207C20.4322 40.9679 21.023 40.5599 21.5505 39.9832C22.085 39.4064 22.5562 38.5906 22.9642 37.5426L28.7456 23.9612H25.2008L21.5716 32.6404L21.5786 32.6474Z" fill="currentcolor" /><path d="M34.386 27.2531C34.8924 26.9788 35.455 26.8382 36.074 26.8382C36.6577 26.8382 37.1993 26.9788 37.6917 27.2531C38.184 27.5274 38.606 27.9705 38.9506 28.5754L41.8062 27.007C41.3631 25.9801 40.6386 25.1783 39.6329 24.6156C38.6271 24.0529 37.4455 23.7716 36.1021 23.7716C34.7587 23.7716 33.4998 24.06 32.4307 24.6297C31.3616 25.1994 30.5176 25.9801 29.9127 26.9577C29.3008 27.9424 28.9984 29.0748 28.9984 30.3548C28.9984 31.6349 29.3008 32.7602 29.9127 33.759C30.5247 34.7577 31.3616 35.5384 32.4307 36.1011C33.4998 36.6638 34.7236 36.9451 36.1021 36.9451C37.4807 36.9451 38.6271 36.6567 39.6329 36.087C40.6386 35.5173 41.3631 34.7226 41.8062 33.7097L38.9506 32.1413C38.599 32.7602 38.184 33.2104 37.6917 33.4847C37.1993 33.759 36.6577 33.8997 36.074 33.8997C35.455 33.8997 34.8924 33.759 34.386 33.4847C33.8796 33.2104 33.4716 32.8024 33.1762 32.2749C32.8738 31.7404 32.7261 31.1074 32.7261 30.3619C32.7261 29.6163 32.8738 28.9833 33.1762 28.4629C33.4787 27.9424 33.8796 27.5415 34.386 27.2602V27.2531Z" fill="currentcolor" /><path d="M57.4346 23.9623H53.0106L47.5879 29.0826V19.1093H43.8743V36.756H47.5879V33.5136L49.3884 31.7623L53.4115 36.756H57.9058L52.1033 29.378L57.4346 23.9623Z" fill="currentcolor" /><path d="M77.9997 2.27797C77.8027 2.33423 77.3596 2.3905 77.1627 2.41863H77.1697C60.0294 5.36561 53.6502 -6.64034 38.7535 5.66805C32.2758 1.89816 26.3185 7.29979 21.1982 10.7743C17.6042 13.243 9.69164 15.5992 11.4007 8.38996C10.606 8.71349 9.99407 9.4309 9.2415 9.8529C8.38343 10.3241 7.83483 10.1202 6.33672 11.0064C6.01319 11.1963 5.60525 11.555 5.27468 11.8574C4.97225 12.1387 4.74015 12.4412 4.50805 12.6662C3.75548 13.3274 3.39678 13.7494 3.36864 14.1362C3.33348 14.5723 3.41084 14.7763 3.57964 14.9802C4.29001 15.8594 6.21012 16.2673 8.53817 16.4924C10.3668 17.6459 3.13654 20.5366 2.04637 20.2341C1.336 19.8895 0.414631 19.6363 -0.0144043 20.5225C0.400564 21.0781 1.27973 21.4861 1.96197 21.5423C5.94285 21.5916 9.58614 18.4195 13.2083 17.3575C19.8478 16.8441 25.995 12.3216 32.3461 12.7014C36.3692 13.046 38.9856 16.2392 42.9665 17.0551C47.1443 17.6599 51.9059 16.4361 56.1751 16.9214C56.773 16.9214 58.8337 16.8722 57.406 15.8172C56.3861 14.8114 55.1412 15.4163 53.9034 15.5148C51.5823 15.6414 49.2121 15.5077 46.87 14.5301C43.1986 12.9968 42.1365 8.23522 39.0981 5.87905C51.4417 3.47364 57.8842 18.2437 77.9926 2.2639L77.9997 2.27797ZM8.07396 13.1093C7.51129 13.7423 6.49146 12.8843 7.06819 12.2442C7.62383 11.6042 8.64367 12.4834 8.06693 13.1093H8.07396Z" fill="currentcolor" /></g>;
|
|
35
|
+
$[1] = t1;
|
|
36
|
+
} else t1 = $[1];
|
|
37
|
+
let t2;
|
|
38
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
39
|
+
t2 = <defs><clipPath id="clip0_14004_29403"><rect width="78" height="41.5601" fill="white" /></clipPath></defs>;
|
|
40
|
+
$[2] = t2;
|
|
41
|
+
} else t2 = $[2];
|
|
42
|
+
let t3;
|
|
43
|
+
if ($[3] !== props) {
|
|
44
|
+
t3 = <svg viewBox="0 0 78 42" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>{t0}{t1}{t2}</svg>;
|
|
45
|
+
$[3] = props;
|
|
46
|
+
$[4] = t3;
|
|
47
|
+
} else t3 = $[4];
|
|
48
|
+
return t3;
|
|
7
49
|
};
|
|
8
|
-
const FullLogo = (props) => <svg viewBox="0 0 78 42" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
9
|
-
<title>Pyck Logo</title>
|
|
10
|
-
<g clipPath="url(#clip0_14004_29403)">
|
|
11
|
-
<path d="M10.8098 24.5945C9.85325 24.0459 8.76308 23.7716 7.53928 23.7716C6.44207 23.7716 5.49257 24.0107 4.6767 24.482C4.24766 24.7352 3.86786 25.0587 3.54433 25.4455V23.9545H-0.000488281V41.362H3.70609V35.3767C4.00853 35.7143 4.34613 35.9956 4.72593 36.2207C5.53477 36.6989 6.47021 36.931 7.53224 36.931C8.75605 36.931 9.84622 36.6567 10.8028 36.1081C11.7593 35.5595 12.5259 34.7999 13.0886 33.8223C13.6513 32.8446 13.9326 31.6841 13.9326 30.3408C13.9326 28.9974 13.6513 27.851 13.0886 26.8663C12.5259 25.8816 11.7663 25.115 10.8028 24.5734L10.8098 24.5945ZM9.74072 32.2538C9.44532 32.7884 9.05848 33.1963 8.57318 33.4776C8.08788 33.766 7.53928 33.9067 6.92034 33.9067C6.30141 33.9067 5.74577 33.766 5.25343 33.4776C4.7611 33.1893 4.36723 32.7813 4.07886 32.2538C3.78346 31.7193 3.63576 31.0933 3.63576 30.3619C3.63576 29.6304 3.78346 28.9833 4.07886 28.4629C4.37426 27.9424 4.7611 27.5415 5.25343 27.2602C5.74577 26.9859 6.30141 26.8452 6.92034 26.8452C7.53928 26.8452 8.08788 26.9859 8.57318 27.2602C9.05848 27.5345 9.44532 27.9354 9.74072 28.4629C10.0361 28.9833 10.1838 29.6234 10.1838 30.3619C10.1838 31.1004 10.0361 31.7193 9.74072 32.2538Z" fill="currentcolor" />
|
|
12
|
-
<path d="M21.5786 32.6474L17.9775 23.9682H14.1725L19.6866 36.8674L19.6374 36.9729C19.3842 37.5426 19.1028 37.9505 18.7934 38.1967C18.4839 38.4429 18.076 38.5624 17.5696 38.5624C17.1898 38.5624 16.81 38.4921 16.4372 38.3514C16.0644 38.2108 15.7339 37.9998 15.4525 37.7325L14.0951 40.3982C14.5241 40.7639 15.0587 41.0452 15.7128 41.2562C16.3598 41.4602 17.0139 41.5657 17.661 41.5657C18.4347 41.5657 19.145 41.4461 19.7921 41.207C20.4322 40.9679 21.023 40.5599 21.5505 39.9832C22.085 39.4064 22.5562 38.5906 22.9642 37.5426L28.7456 23.9612H25.2008L21.5716 32.6404L21.5786 32.6474Z" fill="currentcolor" />
|
|
13
|
-
<path d="M34.386 27.2531C34.8924 26.9788 35.455 26.8382 36.074 26.8382C36.6577 26.8382 37.1993 26.9788 37.6917 27.2531C38.184 27.5274 38.606 27.9705 38.9506 28.5754L41.8062 27.007C41.3631 25.9801 40.6386 25.1783 39.6329 24.6156C38.6271 24.0529 37.4455 23.7716 36.1021 23.7716C34.7587 23.7716 33.4998 24.06 32.4307 24.6297C31.3616 25.1994 30.5176 25.9801 29.9127 26.9577C29.3008 27.9424 28.9984 29.0748 28.9984 30.3548C28.9984 31.6349 29.3008 32.7602 29.9127 33.759C30.5247 34.7577 31.3616 35.5384 32.4307 36.1011C33.4998 36.6638 34.7236 36.9451 36.1021 36.9451C37.4807 36.9451 38.6271 36.6567 39.6329 36.087C40.6386 35.5173 41.3631 34.7226 41.8062 33.7097L38.9506 32.1413C38.599 32.7602 38.184 33.2104 37.6917 33.4847C37.1993 33.759 36.6577 33.8997 36.074 33.8997C35.455 33.8997 34.8924 33.759 34.386 33.4847C33.8796 33.2104 33.4716 32.8024 33.1762 32.2749C32.8738 31.7404 32.7261 31.1074 32.7261 30.3619C32.7261 29.6163 32.8738 28.9833 33.1762 28.4629C33.4787 27.9424 33.8796 27.5415 34.386 27.2602V27.2531Z" fill="currentcolor" />
|
|
14
|
-
<path d="M57.4346 23.9623H53.0106L47.5879 29.0826V19.1093H43.8743V36.756H47.5879V33.5136L49.3884 31.7623L53.4115 36.756H57.9058L52.1033 29.378L57.4346 23.9623Z" fill="currentcolor" />
|
|
15
|
-
<path d="M77.9997 2.27797C77.8027 2.33423 77.3596 2.3905 77.1627 2.41863H77.1697C60.0294 5.36561 53.6502 -6.64034 38.7535 5.66805C32.2758 1.89816 26.3185 7.29979 21.1982 10.7743C17.6042 13.243 9.69164 15.5992 11.4007 8.38996C10.606 8.71349 9.99407 9.4309 9.2415 9.8529C8.38343 10.3241 7.83483 10.1202 6.33672 11.0064C6.01319 11.1963 5.60525 11.555 5.27468 11.8574C4.97225 12.1387 4.74015 12.4412 4.50805 12.6662C3.75548 13.3274 3.39678 13.7494 3.36864 14.1362C3.33348 14.5723 3.41084 14.7763 3.57964 14.9802C4.29001 15.8594 6.21012 16.2673 8.53817 16.4924C10.3668 17.6459 3.13654 20.5366 2.04637 20.2341C1.336 19.8895 0.414631 19.6363 -0.0144043 20.5225C0.400564 21.0781 1.27973 21.4861 1.96197 21.5423C5.94285 21.5916 9.58614 18.4195 13.2083 17.3575C19.8478 16.8441 25.995 12.3216 32.3461 12.7014C36.3692 13.046 38.9856 16.2392 42.9665 17.0551C47.1443 17.6599 51.9059 16.4361 56.1751 16.9214C56.773 16.9214 58.8337 16.8722 57.406 15.8172C56.3861 14.8114 55.1412 15.4163 53.9034 15.5148C51.5823 15.6414 49.2121 15.5077 46.87 14.5301C43.1986 12.9968 42.1365 8.23522 39.0981 5.87905C51.4417 3.47364 57.8842 18.2437 77.9926 2.2639L77.9997 2.27797ZM8.07396 13.1093C7.51129 13.7423 6.49146 12.8843 7.06819 12.2442C7.62383 11.6042 8.64367 12.4834 8.06693 13.1093H8.07396Z" fill="currentcolor" />
|
|
16
|
-
</g>
|
|
17
|
-
<defs>
|
|
18
|
-
<clipPath id="clip0_14004_29403">
|
|
19
|
-
<rect width="78" height="41.5601" fill="white" />
|
|
20
|
-
</clipPath>
|
|
21
|
-
</defs>
|
|
22
|
-
</svg>;
|
|
23
50
|
|
|
24
51
|
//#endregion
|
|
25
52
|
export { FullLogo, Logo };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "../../chunk-BYypO7fO.js";
|
|
2
|
-
import { t as Show } from "../../show-
|
|
2
|
+
import { t as Show } from "../../show-DAysVQAC.js";
|
|
3
3
|
import "../show/index.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
4
5
|
import { forwardRef } from "react";
|
|
5
6
|
import { createStyleContext } from "@pyck/styled-system/jsx";
|
|
6
7
|
import { menu } from "@pyck/styled-system/recipes";
|
|
@@ -57,12 +58,33 @@ const Trigger = withContext(Menu.Trigger, "trigger");
|
|
|
57
58
|
const TriggerItem = withContext(Menu.TriggerItem, "item");
|
|
58
59
|
const StyledItemIndicator = withContext(Menu.ItemIndicator, "itemIndicator");
|
|
59
60
|
const ItemIndicator = forwardRef(function ItemIndicator(props, ref) {
|
|
61
|
+
const $ = c(8);
|
|
60
62
|
const item = useMenuItemContext();
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
let t0;
|
|
64
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
65
|
+
t0 = <svg aria-hidden="true" focusable="false" />;
|
|
66
|
+
$[0] = t0;
|
|
67
|
+
} else t0 = $[0];
|
|
68
|
+
let t1;
|
|
69
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
70
|
+
t1 = <CheckIcon />;
|
|
71
|
+
$[1] = t1;
|
|
72
|
+
} else t1 = $[1];
|
|
73
|
+
let t2;
|
|
74
|
+
if ($[2] !== props || $[3] !== ref) {
|
|
75
|
+
t2 = <StyledItemIndicator ref={ref} {...props}>{t1}</StyledItemIndicator>;
|
|
76
|
+
$[2] = props;
|
|
77
|
+
$[3] = ref;
|
|
78
|
+
$[4] = t2;
|
|
79
|
+
} else t2 = $[4];
|
|
80
|
+
let t3;
|
|
81
|
+
if ($[5] !== item.checked || $[6] !== t2) {
|
|
82
|
+
t3 = <Show when={item.checked} fallback={t0}>{t2}</Show>;
|
|
83
|
+
$[5] = item.checked;
|
|
84
|
+
$[6] = t2;
|
|
85
|
+
$[7] = t3;
|
|
86
|
+
} else t3 = $[7];
|
|
87
|
+
return t3;
|
|
66
88
|
});
|
|
67
89
|
|
|
68
90
|
//#endregion
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../../chunk-BYypO7fO.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { createStyleContext } from "@pyck/styled-system/jsx";
|
|
3
4
|
import { numberInput } from "@pyck/styled-system/recipes";
|
|
4
5
|
import { ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
@@ -37,14 +38,52 @@ const Control = withContext(NumberInput$1.Control, "control", { defaultProps: {
|
|
|
37
38
|
//#endregion
|
|
38
39
|
//#region src/components/number-input/number-input.field.tsx
|
|
39
40
|
const NumberInputField = (props) => {
|
|
40
|
-
const
|
|
41
|
+
const $ = c(15);
|
|
42
|
+
let disabled;
|
|
43
|
+
let helperText;
|
|
44
|
+
let label;
|
|
45
|
+
let name;
|
|
46
|
+
let numberInputProps;
|
|
47
|
+
if ($[0] !== props) {
|
|
48
|
+
({name, label, helperText, disabled, ...numberInputProps} = props);
|
|
49
|
+
$[0] = props;
|
|
50
|
+
$[1] = disabled;
|
|
51
|
+
$[2] = helperText;
|
|
52
|
+
$[3] = label;
|
|
53
|
+
$[4] = name;
|
|
54
|
+
$[5] = numberInputProps;
|
|
55
|
+
} else {
|
|
56
|
+
disabled = $[1];
|
|
57
|
+
helperText = $[2];
|
|
58
|
+
label = $[3];
|
|
59
|
+
name = $[4];
|
|
60
|
+
numberInputProps = $[5];
|
|
61
|
+
}
|
|
41
62
|
const { control } = useFormContext();
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
63
|
+
let t0;
|
|
64
|
+
if ($[6] !== disabled || $[7] !== helperText || $[8] !== label || $[9] !== numberInputProps) {
|
|
65
|
+
t0 = (t1) => {
|
|
66
|
+
const { field, fieldState } = t1;
|
|
67
|
+
return <Field label={label} helperText={helperText} disabled={field.disabled || disabled} invalid={!!fieldState.error} errorText={fieldState.error?.message} required={numberInputProps.required}><NumberInput.Root {...numberInputProps} name={field.name} value={field.value} onValueChange={(t2) => {
|
|
68
|
+
const { valueAsNumber } = t2;
|
|
69
|
+
return field.onChange(valueAsNumber);
|
|
70
|
+
}}><NumberInput.Control /><NumberInput.Input onBlur={field.onBlur} /></NumberInput.Root></Field>;
|
|
71
|
+
};
|
|
72
|
+
$[6] = disabled;
|
|
73
|
+
$[7] = helperText;
|
|
74
|
+
$[8] = label;
|
|
75
|
+
$[9] = numberInputProps;
|
|
76
|
+
$[10] = t0;
|
|
77
|
+
} else t0 = $[10];
|
|
78
|
+
let t1;
|
|
79
|
+
if ($[11] !== control || $[12] !== name || $[13] !== t0) {
|
|
80
|
+
t1 = <Controller name={name} control={control} render={t0} />;
|
|
81
|
+
$[11] = control;
|
|
82
|
+
$[12] = name;
|
|
83
|
+
$[13] = t0;
|
|
84
|
+
$[14] = t1;
|
|
85
|
+
} else t1 = $[14];
|
|
86
|
+
return t1;
|
|
48
87
|
};
|
|
49
88
|
|
|
50
89
|
//#endregion
|
|
@@ -1,21 +1,54 @@
|
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
1
2
|
import { Stack } from "@pyck/styled-system/jsx";
|
|
2
3
|
import { Show } from "@pyck/react/show";
|
|
3
4
|
import { Heading } from "@pyck/react/heading";
|
|
4
5
|
import { Text } from "@pyck/react/text";
|
|
5
6
|
|
|
6
7
|
//#region src/components/page-header/page-header.tsx
|
|
7
|
-
const PageHeader = (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
const PageHeader = (t0) => {
|
|
9
|
+
const $ = c(16);
|
|
10
|
+
const { title, description, tagline, textAlign } = t0;
|
|
11
|
+
let t1;
|
|
12
|
+
if ($[0] !== tagline) {
|
|
13
|
+
t1 = <Show when={tagline}>{tagline}</Show>;
|
|
14
|
+
$[0] = tagline;
|
|
15
|
+
$[1] = t1;
|
|
16
|
+
} else t1 = $[1];
|
|
17
|
+
let t2;
|
|
18
|
+
if ($[2] !== title) {
|
|
19
|
+
t2 = <Heading as="h1" textStyle="2xl" fontWeight="semibold">{title}</Heading>;
|
|
20
|
+
$[2] = title;
|
|
21
|
+
$[3] = t2;
|
|
22
|
+
} else t2 = $[3];
|
|
23
|
+
let t3;
|
|
24
|
+
if ($[4] !== description) {
|
|
25
|
+
t3 = <Text color="fg.muted">{description}</Text>;
|
|
26
|
+
$[4] = description;
|
|
27
|
+
$[5] = t3;
|
|
28
|
+
} else t3 = $[5];
|
|
29
|
+
let t4;
|
|
30
|
+
if ($[6] !== description || $[7] !== t3) {
|
|
31
|
+
t4 = <Show when={description}>{t3}</Show>;
|
|
32
|
+
$[6] = description;
|
|
33
|
+
$[7] = t3;
|
|
34
|
+
$[8] = t4;
|
|
35
|
+
} else t4 = $[8];
|
|
36
|
+
let t5;
|
|
37
|
+
if ($[9] !== t2 || $[10] !== t4) {
|
|
38
|
+
t5 = <Stack gap="1">{t2}{t4}</Stack>;
|
|
39
|
+
$[9] = t2;
|
|
40
|
+
$[10] = t4;
|
|
41
|
+
$[11] = t5;
|
|
42
|
+
} else t5 = $[11];
|
|
43
|
+
let t6;
|
|
44
|
+
if ($[12] !== t1 || $[13] !== t5 || $[14] !== textAlign) {
|
|
45
|
+
t6 = <Stack gap="4" textAlign={textAlign}>{t1}{t5}</Stack>;
|
|
46
|
+
$[12] = t1;
|
|
47
|
+
$[13] = t5;
|
|
48
|
+
$[14] = textAlign;
|
|
49
|
+
$[15] = t6;
|
|
50
|
+
} else t6 = $[15];
|
|
51
|
+
return t6;
|
|
19
52
|
};
|
|
20
53
|
|
|
21
54
|
//#endregion
|