@krak-stack/registry 0.1.27 → 0.1.29
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/components/ui/code-block.js +1 -5
- package/dist/components/ui/copy-button.js +1 -5
- package/dist/components/ui/data-table.js +239 -242
- package/dist/components/ui/editing-locale-switcher.js +1 -5
- package/dist/components/ui/effect-form.js +170 -175
- package/dist/components/ui/error-component.d.ts +30 -0
- package/dist/components/ui/error-component.js +811 -0
- package/dist/components/ui/file-picker.js +1 -5
- package/dist/components/ui/form.js +113 -118
- package/dist/components/ui/google-map.js +1 -5
- package/dist/components/ui/icon-input.js +41 -48
- package/dist/components/ui/loading.js +1 -5
- package/dist/components/ui/locale-switcher.js +1 -5
- package/dist/components/ui/pagination.js +3 -7
- package/dist/components/ui/search-menu.js +1 -5
- package/dist/components/ui/sidebar-layout.js +67 -76
- package/dist/components/ui/stats-card.js +1 -5
- package/dist/components/ui/theme-switcher.js +4 -8
- package/dist/components/ui/virtualized-combobox.js +32 -39
- package/dist/lib/docs.js +134 -143
- package/dist/lib/docs.server.js +24 -49
- package/dist/lib/documentation-toolkit.js +25 -50
- package/dist/lib/httpapi-cli.js +7 -7
- package/dist/lib/httpapi-client.js +3 -3
- package/dist/lib/httpapi-helpers.js +11 -11
- package/dist/lib/httpapi-mcp.js +2 -2
- package/dist/lib/httpapi-toolkit.js +2 -2
- package/dist/lib/query.d.ts +16 -6
- package/dist/lib/query.js +17 -8
- package/dist/lib/seo.js +2 -2
- package/dist/lib/utils.d.ts +1 -2
- package/dist/lib/webfetch-toolkit.js +6 -6
- package/dist/services/agent/client/index.js +130 -133
- package/dist/services/agent/index.d.ts +4 -0
- package/dist/services/agent/index.js +1 -1
- package/dist/services/agent/schema.d.ts +6 -0
- package/dist/services/agent/schema.js +6 -5
- package/dist/services/file-extraction/index.js +4 -4
- package/dist/services/file-extraction/schema.js +2 -2
- package/dist/services/health/index.js +9 -9
- package/dist/services/notification/channels/ses/index.js +2 -2
- package/dist/services/notification/channels/ses/schema.js +2 -2
- package/dist/services/notification/client/index.js +6 -10
- package/dist/services/notification/index.js +2 -2
- package/dist/services/notification/persistence/drizzle.js +2 -2
- package/dist/services/notification/persistence/index.js +15 -15
- package/dist/services/notification/persistence/schema.js +12 -12
- package/dist/services/notification/public.js +8 -12
- package/dist/services/notification/schema.js +2 -2
- package/dist/services/s3/index.js +2 -2
- package/dist/services/s3/schema.js +2 -2
- package/package.json +7 -4
|
@@ -2,11 +2,7 @@
|
|
|
2
2
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
3
3
|
|
|
4
4
|
// ../../src/lib/utils.ts
|
|
5
|
-
import {
|
|
6
|
-
import { twMerge } from "tailwind-merge";
|
|
7
|
-
function cn(...inputs) {
|
|
8
|
-
return twMerge(clsx(inputs));
|
|
9
|
-
}
|
|
5
|
+
import { cn } from "cn";
|
|
10
6
|
|
|
11
7
|
// ../../src/components/ui/select.tsx
|
|
12
8
|
import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from "lucide-react";
|
|
@@ -1206,12 +1202,11 @@ function Label({ className, ...props }) {
|
|
|
1206
1202
|
|
|
1207
1203
|
// ../../src/components/ui/separator.tsx
|
|
1208
1204
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
1209
|
-
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
1210
1205
|
|
|
1211
1206
|
// ../../src/components/ui/field.tsx
|
|
1212
|
-
import { jsx as
|
|
1207
|
+
import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1213
1208
|
function FieldSet({ className, ...props }) {
|
|
1214
|
-
return /* @__PURE__ */
|
|
1209
|
+
return /* @__PURE__ */ jsx9("fieldset", {
|
|
1215
1210
|
"data-slot": "field-set",
|
|
1216
1211
|
className: cn("flex flex-col gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", className),
|
|
1217
1212
|
...props
|
|
@@ -1222,7 +1217,7 @@ function FieldLegend({
|
|
|
1222
1217
|
variant = "legend",
|
|
1223
1218
|
...props
|
|
1224
1219
|
}) {
|
|
1225
|
-
return /* @__PURE__ */
|
|
1220
|
+
return /* @__PURE__ */ jsx9("legend", {
|
|
1226
1221
|
"data-slot": "field-legend",
|
|
1227
1222
|
"data-variant": variant,
|
|
1228
1223
|
className: cn("mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", className),
|
|
@@ -1230,7 +1225,7 @@ function FieldLegend({
|
|
|
1230
1225
|
});
|
|
1231
1226
|
}
|
|
1232
1227
|
function FieldGroup({ className, ...props }) {
|
|
1233
|
-
return /* @__PURE__ */
|
|
1228
|
+
return /* @__PURE__ */ jsx9("div", {
|
|
1234
1229
|
"data-slot": "field-group",
|
|
1235
1230
|
className: cn("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", className),
|
|
1236
1231
|
...props
|
|
@@ -1253,7 +1248,7 @@ function Field({
|
|
|
1253
1248
|
orientation = "vertical",
|
|
1254
1249
|
...props
|
|
1255
1250
|
}) {
|
|
1256
|
-
return /* @__PURE__ */
|
|
1251
|
+
return /* @__PURE__ */ jsx9("div", {
|
|
1257
1252
|
role: "group",
|
|
1258
1253
|
"data-slot": "field",
|
|
1259
1254
|
"data-orientation": orientation,
|
|
@@ -1265,14 +1260,14 @@ function FieldLabel({
|
|
|
1265
1260
|
className,
|
|
1266
1261
|
...props
|
|
1267
1262
|
}) {
|
|
1268
|
-
return /* @__PURE__ */
|
|
1263
|
+
return /* @__PURE__ */ jsx9(Label, {
|
|
1269
1264
|
"data-slot": "field-label",
|
|
1270
1265
|
className: cn("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border *:data-[slot=field]:p-3 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", className),
|
|
1271
1266
|
...props
|
|
1272
1267
|
});
|
|
1273
1268
|
}
|
|
1274
1269
|
function FieldDescription({ className, ...props }) {
|
|
1275
|
-
return /* @__PURE__ */
|
|
1270
|
+
return /* @__PURE__ */ jsx9("p", {
|
|
1276
1271
|
"data-slot": "field-description",
|
|
1277
1272
|
className: cn("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
|
|
1278
1273
|
...props
|
|
@@ -1280,9 +1275,9 @@ function FieldDescription({ className, ...props }) {
|
|
|
1280
1275
|
}
|
|
1281
1276
|
|
|
1282
1277
|
// ../../src/components/ui/textarea.tsx
|
|
1283
|
-
import { jsx as
|
|
1278
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
1284
1279
|
function Textarea({ className, ...props }) {
|
|
1285
|
-
return /* @__PURE__ */
|
|
1280
|
+
return /* @__PURE__ */ jsx10("textarea", {
|
|
1286
1281
|
"data-slot": "textarea",
|
|
1287
1282
|
className: cn("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", className),
|
|
1288
1283
|
...props
|
|
@@ -1340,9 +1335,9 @@ import {
|
|
|
1340
1335
|
|
|
1341
1336
|
// ../../src/components/ui/input-group.tsx
|
|
1342
1337
|
import { cva as cva5 } from "class-variance-authority";
|
|
1343
|
-
import { jsx as
|
|
1338
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
1344
1339
|
function InputGroup({ className, ...props }) {
|
|
1345
|
-
return /* @__PURE__ */
|
|
1340
|
+
return /* @__PURE__ */ jsx11("div", {
|
|
1346
1341
|
"data-slot": "input-group",
|
|
1347
1342
|
role: "group",
|
|
1348
1343
|
className: cn("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", className),
|
|
@@ -1375,7 +1370,7 @@ function InputGroupInput({
|
|
|
1375
1370
|
className,
|
|
1376
1371
|
...props
|
|
1377
1372
|
}) {
|
|
1378
|
-
return /* @__PURE__ */
|
|
1373
|
+
return /* @__PURE__ */ jsx11(Input, {
|
|
1379
1374
|
"data-slot": "input-group-control",
|
|
1380
1375
|
className: cn("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className),
|
|
1381
1376
|
...props
|
|
@@ -1383,7 +1378,7 @@ function InputGroupInput({
|
|
|
1383
1378
|
}
|
|
1384
1379
|
|
|
1385
1380
|
// ../../src/components/ui/virtualized-combobox.tsx
|
|
1386
|
-
import { jsx as
|
|
1381
|
+
import { jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1387
1382
|
"use client";
|
|
1388
1383
|
var messages2 = {
|
|
1389
1384
|
en: {
|
|
@@ -1459,19 +1454,19 @@ var VirtualizedComboboxList = ({
|
|
|
1459
1454
|
virtualizer.measure();
|
|
1460
1455
|
}, [virtualizer]);
|
|
1461
1456
|
if (filteredItems.length === 0) {
|
|
1462
|
-
return /* @__PURE__ */
|
|
1457
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
1463
1458
|
className: "text-muted-foreground py-6 text-center text-sm",
|
|
1464
1459
|
children: emptyLabel
|
|
1465
1460
|
});
|
|
1466
1461
|
}
|
|
1467
|
-
return /* @__PURE__ */
|
|
1462
|
+
return /* @__PURE__ */ jsx12(ComboboxPrimitive.List, {
|
|
1468
1463
|
className: "scroll-py-1 overflow-auto overscroll-contain p-1",
|
|
1469
1464
|
ref: handleScrollElementRef,
|
|
1470
1465
|
style: {
|
|
1471
1466
|
height: Math.min(virtualizer.getTotalSize() + 8, 288),
|
|
1472
1467
|
maxHeight: "var(--available-height)"
|
|
1473
1468
|
},
|
|
1474
|
-
children: /* @__PURE__ */
|
|
1469
|
+
children: /* @__PURE__ */ jsx12("div", {
|
|
1475
1470
|
className: "relative w-full",
|
|
1476
1471
|
role: "presentation",
|
|
1477
1472
|
style: { height: virtualizer.getTotalSize() },
|
|
@@ -1484,9 +1479,9 @@ var VirtualizedComboboxList = ({
|
|
|
1484
1479
|
transform: `translateY(${virtualItem.start}px)`
|
|
1485
1480
|
};
|
|
1486
1481
|
if (entry.kind === "group") {
|
|
1487
|
-
return /* @__PURE__ */
|
|
1482
|
+
return /* @__PURE__ */ jsx12(ComboboxPrimitive.Group, {
|
|
1488
1483
|
className: "contents",
|
|
1489
|
-
children: /* @__PURE__ */
|
|
1484
|
+
children: /* @__PURE__ */ jsx12(ComboboxPrimitive.GroupLabel, {
|
|
1490
1485
|
className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
|
|
1491
1486
|
"data-index": virtualItem.index,
|
|
1492
1487
|
ref: virtualizer.measureElement,
|
|
@@ -1505,13 +1500,13 @@ var VirtualizedComboboxList = ({
|
|
|
1505
1500
|
style,
|
|
1506
1501
|
value: entry.item,
|
|
1507
1502
|
children: [
|
|
1508
|
-
renderItem?.(entry.item) ?? /* @__PURE__ */
|
|
1503
|
+
renderItem?.(entry.item) ?? /* @__PURE__ */ jsx12("span", {
|
|
1509
1504
|
className: "min-w-0 truncate",
|
|
1510
1505
|
children: entry.item.label
|
|
1511
1506
|
}),
|
|
1512
|
-
/* @__PURE__ */
|
|
1507
|
+
/* @__PURE__ */ jsx12(ComboboxPrimitive.ItemIndicator, {
|
|
1513
1508
|
className: "absolute right-2 flex size-4 items-center justify-center",
|
|
1514
|
-
children: /* @__PURE__ */
|
|
1509
|
+
children: /* @__PURE__ */ jsx12(Check, {})
|
|
1515
1510
|
})
|
|
1516
1511
|
]
|
|
1517
1512
|
}, entry.item.value);
|
|
@@ -1530,8 +1525,8 @@ var VirtualizedComboboxContent = ({
|
|
|
1530
1525
|
virtualizerRef
|
|
1531
1526
|
}) => {
|
|
1532
1527
|
const labels = virtualizedComboboxMessages(messageOverrides);
|
|
1533
|
-
return /* @__PURE__ */
|
|
1534
|
-
children: /* @__PURE__ */
|
|
1528
|
+
return /* @__PURE__ */ jsx12(ComboboxPrimitive.Portal, {
|
|
1529
|
+
children: /* @__PURE__ */ jsx12(ComboboxPrimitive.Positioner, {
|
|
1535
1530
|
align: "start",
|
|
1536
1531
|
className: "isolate z-50",
|
|
1537
1532
|
side: "bottom",
|
|
@@ -1539,17 +1534,17 @@ var VirtualizedComboboxContent = ({
|
|
|
1539
1534
|
children: /* @__PURE__ */ jsxs5(ComboboxPrimitive.Popup, {
|
|
1540
1535
|
className: cn("relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-in-95", contentClassName),
|
|
1541
1536
|
children: [
|
|
1542
|
-
/* @__PURE__ */
|
|
1537
|
+
/* @__PURE__ */ jsx12("div", {
|
|
1543
1538
|
className: "min-w-0 p-1 pb-0",
|
|
1544
|
-
children: /* @__PURE__ */
|
|
1539
|
+
children: /* @__PURE__ */ jsx12(InputGroup, {
|
|
1545
1540
|
className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
|
|
1546
|
-
children: /* @__PURE__ */
|
|
1541
|
+
children: /* @__PURE__ */ jsx12(ComboboxPrimitive.Input, {
|
|
1547
1542
|
placeholder: labels.search,
|
|
1548
|
-
render: /* @__PURE__ */
|
|
1543
|
+
render: /* @__PURE__ */ jsx12(InputGroupInput, {})
|
|
1549
1544
|
})
|
|
1550
1545
|
})
|
|
1551
1546
|
}),
|
|
1552
|
-
/* @__PURE__ */
|
|
1547
|
+
/* @__PURE__ */ jsx12(VirtualizedComboboxList, {
|
|
1553
1548
|
emptyLabel,
|
|
1554
1549
|
groupSelections,
|
|
1555
1550
|
itemIndexRef,
|
|
@@ -1572,20 +1567,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
|
|
|
1572
1567
|
type: "button",
|
|
1573
1568
|
variant: "outline",
|
|
1574
1569
|
children: [
|
|
1575
|
-
/* @__PURE__ */
|
|
1570
|
+
/* @__PURE__ */ jsx12("span", {
|
|
1576
1571
|
className: "min-w-0 flex-1 truncate pr-7 text-left",
|
|
1577
1572
|
children: label
|
|
1578
1573
|
}),
|
|
1579
|
-
/* @__PURE__ */
|
|
1574
|
+
/* @__PURE__ */ jsx12(ChevronsUpDown, {
|
|
1580
1575
|
className: "text-muted-foreground shrink-0 opacity-70"
|
|
1581
1576
|
})
|
|
1582
1577
|
]
|
|
1583
1578
|
});
|
|
1584
|
-
var defaultClear = (label) => /* @__PURE__ */
|
|
1579
|
+
var defaultClear = (label) => /* @__PURE__ */ jsx12(ComboboxPrimitive.Clear, {
|
|
1585
1580
|
"aria-label": label,
|
|
1586
1581
|
className: "text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 absolute top-1/2 right-7 z-10 flex size-6 -translate-y-1/2 items-center justify-center rounded-sm outline-none focus-visible:border focus-visible:ring-3",
|
|
1587
1582
|
type: "button",
|
|
1588
|
-
children: /* @__PURE__ */
|
|
1583
|
+
children: /* @__PURE__ */ jsx12(X, {
|
|
1589
1584
|
className: "size-3.5"
|
|
1590
1585
|
})
|
|
1591
1586
|
});
|
|
@@ -1624,13 +1619,13 @@ var VirtualizedComboboxSingle = (props) => {
|
|
|
1624
1619
|
/* @__PURE__ */ jsxs5("div", {
|
|
1625
1620
|
className: "relative",
|
|
1626
1621
|
children: [
|
|
1627
|
-
/* @__PURE__ */
|
|
1622
|
+
/* @__PURE__ */ jsx12(ComboboxPrimitive.Trigger, {
|
|
1628
1623
|
render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
|
|
1629
1624
|
}),
|
|
1630
1625
|
props.trigger ? null : defaultClear(labels.clear)
|
|
1631
1626
|
]
|
|
1632
1627
|
}),
|
|
1633
|
-
/* @__PURE__ */
|
|
1628
|
+
/* @__PURE__ */ jsx12(VirtualizedComboboxContent, {
|
|
1634
1629
|
...props,
|
|
1635
1630
|
groupSelections: false,
|
|
1636
1631
|
itemIndexRef,
|
|
@@ -1666,13 +1661,13 @@ var VirtualizedComboboxMultiple = (props) => {
|
|
|
1666
1661
|
/* @__PURE__ */ jsxs5("div", {
|
|
1667
1662
|
className: "relative",
|
|
1668
1663
|
children: [
|
|
1669
|
-
/* @__PURE__ */
|
|
1664
|
+
/* @__PURE__ */ jsx12(ComboboxPrimitive.Trigger, {
|
|
1670
1665
|
render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
|
|
1671
1666
|
}),
|
|
1672
1667
|
props.trigger ? null : defaultClear(labels.clear)
|
|
1673
1668
|
]
|
|
1674
1669
|
}),
|
|
1675
|
-
/* @__PURE__ */
|
|
1670
|
+
/* @__PURE__ */ jsx12(VirtualizedComboboxContent, {
|
|
1676
1671
|
...props,
|
|
1677
1672
|
groupSelections: true,
|
|
1678
1673
|
itemIndexRef,
|
|
@@ -1683,15 +1678,15 @@ var VirtualizedComboboxMultiple = (props) => {
|
|
|
1683
1678
|
});
|
|
1684
1679
|
};
|
|
1685
1680
|
function VirtualizedCombobox(props) {
|
|
1686
|
-
return props.multiple ? /* @__PURE__ */
|
|
1681
|
+
return props.multiple ? /* @__PURE__ */ jsx12(VirtualizedComboboxMultiple, {
|
|
1687
1682
|
...props
|
|
1688
|
-
}) : /* @__PURE__ */
|
|
1683
|
+
}) : /* @__PURE__ */ jsx12(VirtualizedComboboxSingle, {
|
|
1689
1684
|
...props
|
|
1690
1685
|
});
|
|
1691
1686
|
}
|
|
1692
1687
|
|
|
1693
1688
|
// ../../src/components/ui/form.tsx
|
|
1694
|
-
import { jsx as
|
|
1689
|
+
import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1695
1690
|
var messages3 = {
|
|
1696
1691
|
en: {
|
|
1697
1692
|
keyValueKey: "Key",
|
|
@@ -1729,14 +1724,14 @@ var formMessages = (overrides) => ({
|
|
|
1729
1724
|
...overrides
|
|
1730
1725
|
});
|
|
1731
1726
|
var ErrorMessage = ({ text }) => {
|
|
1732
|
-
return /* @__PURE__ */
|
|
1727
|
+
return /* @__PURE__ */ jsx13("em", {
|
|
1733
1728
|
role: "alert",
|
|
1734
1729
|
className: "text-destructive text-sm",
|
|
1735
1730
|
children: text
|
|
1736
1731
|
});
|
|
1737
1732
|
};
|
|
1738
1733
|
function FieldError({ errors = [] }) {
|
|
1739
|
-
return errors?.length > 0 ? /* @__PURE__ */
|
|
1734
|
+
return errors?.length > 0 ? /* @__PURE__ */ jsx13(ErrorMessage, {
|
|
1740
1735
|
text: errors.map((error) => {
|
|
1741
1736
|
return error.message?.toString().split(" ").map((word) => {
|
|
1742
1737
|
if (word.startsWith("t:"))
|
|
@@ -1760,24 +1755,24 @@ var TextField = ({
|
|
|
1760
1755
|
/* @__PURE__ */ jsxs6("div", {
|
|
1761
1756
|
className: "flex w-full items-center gap-2",
|
|
1762
1757
|
children: [
|
|
1763
|
-
/* @__PURE__ */
|
|
1758
|
+
/* @__PURE__ */ jsx13(FieldLabel, {
|
|
1764
1759
|
htmlFor: field.name,
|
|
1765
1760
|
children: props.label
|
|
1766
1761
|
}),
|
|
1767
1762
|
children
|
|
1768
1763
|
]
|
|
1769
1764
|
}),
|
|
1770
|
-
/* @__PURE__ */
|
|
1765
|
+
/* @__PURE__ */ jsx13(Input, {
|
|
1771
1766
|
id: field.name,
|
|
1772
1767
|
value: field.state.value ?? "",
|
|
1773
1768
|
onChange: (e) => field.handleChange(e.target.value),
|
|
1774
1769
|
...props,
|
|
1775
1770
|
"aria-invalid": invalid
|
|
1776
1771
|
}),
|
|
1777
|
-
props.description && /* @__PURE__ */
|
|
1772
|
+
props.description && /* @__PURE__ */ jsx13(FieldDescription, {
|
|
1778
1773
|
children: props.description
|
|
1779
1774
|
}),
|
|
1780
|
-
/* @__PURE__ */
|
|
1775
|
+
/* @__PURE__ */ jsx13(FieldError, {
|
|
1781
1776
|
errors: field.getMeta().errors
|
|
1782
1777
|
})
|
|
1783
1778
|
]
|
|
@@ -1796,24 +1791,24 @@ var TextAreaField = ({
|
|
|
1796
1791
|
/* @__PURE__ */ jsxs6("div", {
|
|
1797
1792
|
className: "flex w-full items-center gap-2",
|
|
1798
1793
|
children: [
|
|
1799
|
-
/* @__PURE__ */
|
|
1794
|
+
/* @__PURE__ */ jsx13(FieldLabel, {
|
|
1800
1795
|
htmlFor: field.name,
|
|
1801
1796
|
children: props.label
|
|
1802
1797
|
}),
|
|
1803
1798
|
children
|
|
1804
1799
|
]
|
|
1805
1800
|
}),
|
|
1806
|
-
/* @__PURE__ */
|
|
1801
|
+
/* @__PURE__ */ jsx13(Textarea, {
|
|
1807
1802
|
id: field.name,
|
|
1808
1803
|
value: field.state.value ?? "",
|
|
1809
1804
|
onChange: (e) => field.handleChange(e.target.value),
|
|
1810
1805
|
...props,
|
|
1811
1806
|
"aria-invalid": invalid
|
|
1812
1807
|
}),
|
|
1813
|
-
props.description && /* @__PURE__ */
|
|
1808
|
+
props.description && /* @__PURE__ */ jsx13(FieldDescription, {
|
|
1814
1809
|
children: props.description
|
|
1815
1810
|
}),
|
|
1816
|
-
/* @__PURE__ */
|
|
1811
|
+
/* @__PURE__ */ jsx13(FieldError, {
|
|
1817
1812
|
errors: field.getMeta().errors
|
|
1818
1813
|
})
|
|
1819
1814
|
]
|
|
@@ -1828,7 +1823,7 @@ var CheckboxField = (props) => {
|
|
|
1828
1823
|
/* @__PURE__ */ jsxs6("div", {
|
|
1829
1824
|
className: "flex flex-row items-center gap-2",
|
|
1830
1825
|
children: [
|
|
1831
|
-
/* @__PURE__ */
|
|
1826
|
+
/* @__PURE__ */ jsx13(Checkbox, {
|
|
1832
1827
|
id: field.name,
|
|
1833
1828
|
name: field.name,
|
|
1834
1829
|
checked: field.state.value ?? false,
|
|
@@ -1836,16 +1831,16 @@ var CheckboxField = (props) => {
|
|
|
1836
1831
|
onCheckedChange: (checked) => field.handleChange(checked),
|
|
1837
1832
|
"aria-invalid": invalid
|
|
1838
1833
|
}),
|
|
1839
|
-
/* @__PURE__ */
|
|
1834
|
+
/* @__PURE__ */ jsx13(FieldLabel, {
|
|
1840
1835
|
htmlFor: field.name,
|
|
1841
1836
|
children: props.label
|
|
1842
1837
|
})
|
|
1843
1838
|
]
|
|
1844
1839
|
}),
|
|
1845
|
-
props.description && /* @__PURE__ */
|
|
1840
|
+
props.description && /* @__PURE__ */ jsx13(FieldDescription, {
|
|
1846
1841
|
children: props.description
|
|
1847
1842
|
}),
|
|
1848
|
-
/* @__PURE__ */
|
|
1843
|
+
/* @__PURE__ */ jsx13(FieldError, {
|
|
1849
1844
|
errors: field.getMeta().errors
|
|
1850
1845
|
})
|
|
1851
1846
|
]
|
|
@@ -1863,15 +1858,15 @@ var SingleSelectControl = ({
|
|
|
1863
1858
|
onValueChange: (value) => field.handleChange(value ?? ""),
|
|
1864
1859
|
defaultValue: field.state.value,
|
|
1865
1860
|
children: [
|
|
1866
|
-
/* @__PURE__ */
|
|
1861
|
+
/* @__PURE__ */ jsx13(SelectTrigger, {
|
|
1867
1862
|
className: "gap-1",
|
|
1868
1863
|
id: field.name,
|
|
1869
1864
|
"aria-invalid": invalid,
|
|
1870
|
-
children: /* @__PURE__ */
|
|
1865
|
+
children: /* @__PURE__ */ jsx13(SelectValue, {
|
|
1871
1866
|
placeholder
|
|
1872
1867
|
})
|
|
1873
1868
|
}),
|
|
1874
|
-
/* @__PURE__ */
|
|
1869
|
+
/* @__PURE__ */ jsx13(SelectOptions, {
|
|
1875
1870
|
options
|
|
1876
1871
|
})
|
|
1877
1872
|
]
|
|
@@ -1889,15 +1884,15 @@ var MultipleSelectControl = ({
|
|
|
1889
1884
|
multiple: true,
|
|
1890
1885
|
value: field.state.value ?? [],
|
|
1891
1886
|
children: [
|
|
1892
|
-
/* @__PURE__ */
|
|
1887
|
+
/* @__PURE__ */ jsx13(SelectTrigger, {
|
|
1893
1888
|
className: "gap-1",
|
|
1894
1889
|
id: field.name,
|
|
1895
1890
|
"aria-invalid": invalid,
|
|
1896
|
-
children: /* @__PURE__ */
|
|
1891
|
+
children: /* @__PURE__ */ jsx13(SelectValue, {
|
|
1897
1892
|
placeholder
|
|
1898
1893
|
})
|
|
1899
1894
|
}),
|
|
1900
|
-
/* @__PURE__ */
|
|
1895
|
+
/* @__PURE__ */ jsx13(SelectOptions, {
|
|
1901
1896
|
options
|
|
1902
1897
|
})
|
|
1903
1898
|
]
|
|
@@ -1905,9 +1900,9 @@ var MultipleSelectControl = ({
|
|
|
1905
1900
|
};
|
|
1906
1901
|
var SelectOptions = ({
|
|
1907
1902
|
options
|
|
1908
|
-
}) => /* @__PURE__ */
|
|
1909
|
-
children: /* @__PURE__ */
|
|
1910
|
-
children: options.map((option) => /* @__PURE__ */
|
|
1903
|
+
}) => /* @__PURE__ */ jsx13(SelectContent, {
|
|
1904
|
+
children: /* @__PURE__ */ jsx13(SelectGroup, {
|
|
1905
|
+
children: options.map((option) => /* @__PURE__ */ jsx13(SelectItem, {
|
|
1911
1906
|
value: option.value,
|
|
1912
1907
|
children: option.label
|
|
1913
1908
|
}, option.label))
|
|
@@ -1925,23 +1920,23 @@ var SelectField = ({
|
|
|
1925
1920
|
return /* @__PURE__ */ jsxs6(Field, {
|
|
1926
1921
|
"data-invalid": invalid,
|
|
1927
1922
|
children: [
|
|
1928
|
-
/* @__PURE__ */
|
|
1923
|
+
/* @__PURE__ */ jsx13(FieldLabel, {
|
|
1929
1924
|
htmlFor: field.name,
|
|
1930
1925
|
children: label
|
|
1931
1926
|
}),
|
|
1932
|
-
multiple ? /* @__PURE__ */
|
|
1927
|
+
multiple ? /* @__PURE__ */ jsx13(MultipleSelectControl, {
|
|
1933
1928
|
invalid,
|
|
1934
1929
|
options,
|
|
1935
1930
|
placeholder
|
|
1936
|
-
}) : /* @__PURE__ */
|
|
1931
|
+
}) : /* @__PURE__ */ jsx13(SingleSelectControl, {
|
|
1937
1932
|
invalid,
|
|
1938
1933
|
options,
|
|
1939
1934
|
placeholder
|
|
1940
1935
|
}),
|
|
1941
|
-
description ? /* @__PURE__ */
|
|
1936
|
+
description ? /* @__PURE__ */ jsx13(FieldDescription, {
|
|
1942
1937
|
children: description
|
|
1943
1938
|
}) : null,
|
|
1944
|
-
/* @__PURE__ */
|
|
1939
|
+
/* @__PURE__ */ jsx13(FieldError, {
|
|
1945
1940
|
errors: field.getMeta().errors
|
|
1946
1941
|
})
|
|
1947
1942
|
]
|
|
@@ -1971,14 +1966,14 @@ var KeyValueField = (props) => {
|
|
|
1971
1966
|
return /* @__PURE__ */ jsxs6(Field, {
|
|
1972
1967
|
"data-invalid": invalid,
|
|
1973
1968
|
children: [
|
|
1974
|
-
/* @__PURE__ */
|
|
1969
|
+
/* @__PURE__ */ jsx13(FieldLabel, {
|
|
1975
1970
|
htmlFor: field.name,
|
|
1976
1971
|
children: props.label
|
|
1977
1972
|
}),
|
|
1978
1973
|
keyValues.map(([key, value], index) => /* @__PURE__ */ jsxs6("div", {
|
|
1979
1974
|
className: "flex w-full flex-row items-center gap-2",
|
|
1980
1975
|
children: [
|
|
1981
|
-
/* @__PURE__ */
|
|
1976
|
+
/* @__PURE__ */ jsx13(Input, {
|
|
1982
1977
|
id: field.name,
|
|
1983
1978
|
placeholder: labels.keyValueKey,
|
|
1984
1979
|
name: field.name,
|
|
@@ -1989,7 +1984,7 @@ var KeyValueField = (props) => {
|
|
|
1989
1984
|
field.handleChange(updateKeyValue(e.target.value, value, index));
|
|
1990
1985
|
}
|
|
1991
1986
|
}),
|
|
1992
|
-
/* @__PURE__ */
|
|
1987
|
+
/* @__PURE__ */ jsx13(Input, {
|
|
1993
1988
|
id: field.name,
|
|
1994
1989
|
name: field.name,
|
|
1995
1990
|
type: "text",
|
|
@@ -2008,13 +2003,13 @@ var KeyValueField = (props) => {
|
|
|
2008
2003
|
field.handleChange(deleteKeyValue(index));
|
|
2009
2004
|
},
|
|
2010
2005
|
children: [
|
|
2011
|
-
/* @__PURE__ */
|
|
2006
|
+
/* @__PURE__ */ jsx13(Trash, {}),
|
|
2012
2007
|
labels.keyValueDelete
|
|
2013
2008
|
]
|
|
2014
2009
|
})
|
|
2015
2010
|
]
|
|
2016
2011
|
}, index)),
|
|
2017
|
-
/* @__PURE__ */
|
|
2012
|
+
/* @__PURE__ */ jsx13("div", {
|
|
2018
2013
|
className: "flex flex-row items-center gap-2",
|
|
2019
2014
|
children: /* @__PURE__ */ jsxs6(Button, {
|
|
2020
2015
|
size: "sm",
|
|
@@ -2027,21 +2022,21 @@ var KeyValueField = (props) => {
|
|
|
2027
2022
|
});
|
|
2028
2023
|
},
|
|
2029
2024
|
children: [
|
|
2030
|
-
/* @__PURE__ */
|
|
2025
|
+
/* @__PURE__ */ jsx13(Plus, {}),
|
|
2031
2026
|
labels.keyValueAdd
|
|
2032
2027
|
]
|
|
2033
2028
|
})
|
|
2034
2029
|
}),
|
|
2035
|
-
props.description && /* @__PURE__ */
|
|
2030
|
+
props.description && /* @__PURE__ */ jsx13(FieldDescription, {
|
|
2036
2031
|
children: props.description
|
|
2037
2032
|
}),
|
|
2038
|
-
/* @__PURE__ */
|
|
2033
|
+
/* @__PURE__ */ jsx13(FieldError, {
|
|
2039
2034
|
errors: field.getMeta().errors
|
|
2040
2035
|
})
|
|
2041
2036
|
]
|
|
2042
2037
|
});
|
|
2043
2038
|
};
|
|
2044
|
-
var MultiSelectField = (props) => /* @__PURE__ */
|
|
2039
|
+
var MultiSelectField = (props) => /* @__PURE__ */ jsx13(SelectField, {
|
|
2045
2040
|
...props,
|
|
2046
2041
|
multiple: true
|
|
2047
2042
|
});
|
|
@@ -2072,7 +2067,7 @@ var SingleSearchableSelectControl = ({
|
|
|
2072
2067
|
}) => {
|
|
2073
2068
|
const field = useFieldContext();
|
|
2074
2069
|
const { selectedItems, mergedItems } = getSearchableSelectItems(field.state.value ? [field.state.value] : [], initialItems, items);
|
|
2075
|
-
return /* @__PURE__ */
|
|
2070
|
+
return /* @__PURE__ */ jsx13(VirtualizedCombobox, {
|
|
2076
2071
|
ariaInvalid: invalid,
|
|
2077
2072
|
ariaLabel,
|
|
2078
2073
|
emptyLabel,
|
|
@@ -2102,7 +2097,7 @@ var MultipleSearchableSelectControl = ({
|
|
|
2102
2097
|
}) => {
|
|
2103
2098
|
const field = useFieldContext();
|
|
2104
2099
|
const { selectedItems, mergedItems } = getSearchableSelectItems(field.state.value ?? [], initialItems, items);
|
|
2105
|
-
return /* @__PURE__ */
|
|
2100
|
+
return /* @__PURE__ */ jsx13(VirtualizedCombobox, {
|
|
2106
2101
|
ariaInvalid: invalid,
|
|
2107
2102
|
ariaLabel,
|
|
2108
2103
|
emptyLabel,
|
|
@@ -2138,19 +2133,19 @@ var SearchableSelectField = ({
|
|
|
2138
2133
|
className: "min-w-0",
|
|
2139
2134
|
"data-invalid": invalid,
|
|
2140
2135
|
children: [
|
|
2141
|
-
/* @__PURE__ */
|
|
2136
|
+
/* @__PURE__ */ jsx13(FieldLabel, {
|
|
2142
2137
|
htmlFor: field.name,
|
|
2143
2138
|
children: label
|
|
2144
2139
|
}),
|
|
2145
|
-
multiple ? /* @__PURE__ */
|
|
2140
|
+
multiple ? /* @__PURE__ */ jsx13(MultipleSearchableSelectControl, {
|
|
2146
2141
|
...controlProps
|
|
2147
|
-
}) : /* @__PURE__ */
|
|
2142
|
+
}) : /* @__PURE__ */ jsx13(SingleSearchableSelectControl, {
|
|
2148
2143
|
...controlProps
|
|
2149
2144
|
}),
|
|
2150
|
-
description ? /* @__PURE__ */
|
|
2145
|
+
description ? /* @__PURE__ */ jsx13(FieldDescription, {
|
|
2151
2146
|
children: description
|
|
2152
2147
|
}) : null,
|
|
2153
|
-
/* @__PURE__ */
|
|
2148
|
+
/* @__PURE__ */ jsx13(FieldError, {
|
|
2154
2149
|
errors: field.getMeta().errors
|
|
2155
2150
|
})
|
|
2156
2151
|
]
|
|
@@ -2169,11 +2164,11 @@ var FileField = ({
|
|
|
2169
2164
|
return /* @__PURE__ */ jsxs6(Field, {
|
|
2170
2165
|
"data-invalid": invalid,
|
|
2171
2166
|
children: [
|
|
2172
|
-
/* @__PURE__ */
|
|
2167
|
+
/* @__PURE__ */ jsx13(FieldLabel, {
|
|
2173
2168
|
htmlFor: field.name,
|
|
2174
2169
|
children: label
|
|
2175
2170
|
}),
|
|
2176
|
-
/* @__PURE__ */
|
|
2171
|
+
/* @__PURE__ */ jsx13(FilePicker, {
|
|
2177
2172
|
accept,
|
|
2178
2173
|
canClear: field.state.value instanceof File,
|
|
2179
2174
|
...field.state.value instanceof File ? { file: field.state.value } : {},
|
|
@@ -2193,7 +2188,7 @@ var FileField = ({
|
|
|
2193
2188
|
required,
|
|
2194
2189
|
title: field.state.value instanceof File ? field.state.value.name : label
|
|
2195
2190
|
}),
|
|
2196
|
-
/* @__PURE__ */
|
|
2191
|
+
/* @__PURE__ */ jsx13(FieldError, {
|
|
2197
2192
|
errors: field.getMeta().errors
|
|
2198
2193
|
})
|
|
2199
2194
|
]
|
|
@@ -2217,11 +2212,11 @@ var ImageField = ({
|
|
|
2217
2212
|
return /* @__PURE__ */ jsxs6(Field, {
|
|
2218
2213
|
"data-invalid": invalid,
|
|
2219
2214
|
children: [
|
|
2220
|
-
/* @__PURE__ */
|
|
2215
|
+
/* @__PURE__ */ jsx13(FieldLabel, {
|
|
2221
2216
|
htmlFor: field.name,
|
|
2222
2217
|
children: label
|
|
2223
2218
|
}),
|
|
2224
|
-
/* @__PURE__ */
|
|
2219
|
+
/* @__PURE__ */ jsx13(FilePicker, {
|
|
2225
2220
|
accept: "image/*",
|
|
2226
2221
|
canClear: Boolean(field.state.value),
|
|
2227
2222
|
...field.state.value instanceof File ? { file: field.state.value } : {},
|
|
@@ -2235,10 +2230,10 @@ var ImageField = ({
|
|
|
2235
2230
|
onClear: () => field.handleChange(null),
|
|
2236
2231
|
title: field.state.value instanceof File ? field.state.value.name : label
|
|
2237
2232
|
}),
|
|
2238
|
-
size.suggestedWidth && size.suggestedHeight && /* @__PURE__ */
|
|
2233
|
+
size.suggestedWidth && size.suggestedHeight && /* @__PURE__ */ jsx13(FieldDescription, {
|
|
2239
2234
|
children: labels.suggestedImageSize(String(size.suggestedWidth), String(size.suggestedHeight))
|
|
2240
2235
|
}),
|
|
2241
|
-
/* @__PURE__ */
|
|
2236
|
+
/* @__PURE__ */ jsx13(FieldError, {
|
|
2242
2237
|
errors: field.getMeta().errors
|
|
2243
2238
|
})
|
|
2244
2239
|
]
|
|
@@ -2250,31 +2245,31 @@ var BlockNavigation = ({
|
|
|
2250
2245
|
const labels = formMessages(messages4);
|
|
2251
2246
|
const form = useFormContext();
|
|
2252
2247
|
const shouldBlock = useStore(form.store, (formState) => formState.isDirty && !(formState.isSubmitting || formState.isSubmitted));
|
|
2253
|
-
return /* @__PURE__ */
|
|
2248
|
+
return /* @__PURE__ */ jsx13(Block, {
|
|
2254
2249
|
enableBeforeUnload: () => shouldBlock,
|
|
2255
2250
|
shouldBlockFn: () => shouldBlock,
|
|
2256
2251
|
withResolver: true,
|
|
2257
|
-
children: ({ status, proceed, reset }) => /* @__PURE__ */
|
|
2252
|
+
children: ({ status, proceed, reset }) => /* @__PURE__ */ jsx13(AlertDialog, {
|
|
2258
2253
|
open: status === "blocked",
|
|
2259
2254
|
children: /* @__PURE__ */ jsxs6(AlertDialogContent, {
|
|
2260
2255
|
children: [
|
|
2261
2256
|
/* @__PURE__ */ jsxs6(AlertDialogHeader, {
|
|
2262
2257
|
children: [
|
|
2263
|
-
/* @__PURE__ */
|
|
2258
|
+
/* @__PURE__ */ jsx13(AlertDialogTitle, {
|
|
2264
2259
|
children: labels.blockNavigationTitle
|
|
2265
2260
|
}),
|
|
2266
|
-
/* @__PURE__ */
|
|
2261
|
+
/* @__PURE__ */ jsx13(AlertDialogDescription, {
|
|
2267
2262
|
children: labels.blockNavigationDescription
|
|
2268
2263
|
})
|
|
2269
2264
|
]
|
|
2270
2265
|
}),
|
|
2271
2266
|
/* @__PURE__ */ jsxs6(AlertDialogFooter, {
|
|
2272
2267
|
children: [
|
|
2273
|
-
/* @__PURE__ */
|
|
2268
|
+
/* @__PURE__ */ jsx13(AlertDialogCancel, {
|
|
2274
2269
|
onClick: reset,
|
|
2275
2270
|
children: labels.blockNavigationCancel
|
|
2276
2271
|
}),
|
|
2277
|
-
/* @__PURE__ */
|
|
2272
|
+
/* @__PURE__ */ jsx13(AlertDialogAction, {
|
|
2278
2273
|
onClick: proceed,
|
|
2279
2274
|
children: labels.blockNavigationConfirm
|
|
2280
2275
|
})
|
|
@@ -2291,14 +2286,14 @@ var SubmitButton = ({
|
|
|
2291
2286
|
}) => {
|
|
2292
2287
|
const labels = formMessages(messages4);
|
|
2293
2288
|
const form = useFormContext();
|
|
2294
|
-
return /* @__PURE__ */
|
|
2289
|
+
return /* @__PURE__ */ jsx13(form.Subscribe, {
|
|
2295
2290
|
selector: (formState) => [formState.isSubmitting],
|
|
2296
2291
|
children: ([isSubmitting]) => /* @__PURE__ */ jsxs6(Button, {
|
|
2297
2292
|
type: "submit",
|
|
2298
2293
|
disabled: isSubmitting,
|
|
2299
2294
|
className: "self-start",
|
|
2300
2295
|
children: [
|
|
2301
|
-
isSubmitting && /* @__PURE__ */
|
|
2296
|
+
isSubmitting && /* @__PURE__ */ jsx13(Loader2, {
|
|
2302
2297
|
className: "animate-spin"
|
|
2303
2298
|
}),
|
|
2304
2299
|
children ?? labels.submit
|
|
@@ -2316,9 +2311,9 @@ var getFormErrorText = (error) => {
|
|
|
2316
2311
|
};
|
|
2317
2312
|
var FormError = () => {
|
|
2318
2313
|
const form = useFormContext();
|
|
2319
|
-
return /* @__PURE__ */
|
|
2314
|
+
return /* @__PURE__ */ jsx13(form.Subscribe, {
|
|
2320
2315
|
selector: (formState) => getFormErrorText(formState.errorMap.onSubmit),
|
|
2321
|
-
children: (error) => error ? /* @__PURE__ */
|
|
2316
|
+
children: (error) => error ? /* @__PURE__ */ jsx13(ErrorMessage, {
|
|
2322
2317
|
text: error
|
|
2323
2318
|
}) : null
|
|
2324
2319
|
});
|
|
@@ -2340,16 +2335,16 @@ var FieldWrapper = ({
|
|
|
2340
2335
|
localized && editingLocale && locales2 && /* @__PURE__ */ jsxs6(Badge, {
|
|
2341
2336
|
variant: "outline",
|
|
2342
2337
|
children: [
|
|
2343
|
-
/* @__PURE__ */
|
|
2338
|
+
/* @__PURE__ */ jsx13(Languages, {}),
|
|
2344
2339
|
locales2.find((l) => l.value === editingLocale).label
|
|
2345
2340
|
]
|
|
2346
2341
|
})
|
|
2347
2342
|
]
|
|
2348
2343
|
}),
|
|
2349
|
-
description && /* @__PURE__ */
|
|
2344
|
+
description && /* @__PURE__ */ jsx13(FieldDescription, {
|
|
2350
2345
|
children: description
|
|
2351
2346
|
}),
|
|
2352
|
-
/* @__PURE__ */
|
|
2347
|
+
/* @__PURE__ */ jsx13(FieldGroup, {
|
|
2353
2348
|
children
|
|
2354
2349
|
})
|
|
2355
2350
|
]
|
|
@@ -2362,9 +2357,9 @@ var RevertButton = ({
|
|
|
2362
2357
|
const labels = formMessages(messages4);
|
|
2363
2358
|
const field = useFieldContext();
|
|
2364
2359
|
if (field.state.value !== original) {
|
|
2365
|
-
return /* @__PURE__ */
|
|
2360
|
+
return /* @__PURE__ */ jsx13("div", {
|
|
2366
2361
|
className: "flex flex-1 justify-end",
|
|
2367
|
-
children: /* @__PURE__ */
|
|
2362
|
+
children: /* @__PURE__ */ jsx13(Button, {
|
|
2368
2363
|
variant: "link",
|
|
2369
2364
|
className: "-mr-4 h-auto py-0",
|
|
2370
2365
|
onClick: () => field.handleChange(original),
|
|
@@ -2396,12 +2391,12 @@ var { useAppForm, withForm, withFieldGroup } = createFormHook({
|
|
|
2396
2391
|
}
|
|
2397
2392
|
});
|
|
2398
2393
|
export {
|
|
2399
|
-
|
|
2400
|
-
withFieldGroup,
|
|
2401
|
-
useAppForm,
|
|
2402
|
-
formMessages,
|
|
2403
|
-
FieldWrapper,
|
|
2404
|
-
FieldError,
|
|
2394
|
+
BlockNavigation,
|
|
2405
2395
|
ErrorMessage,
|
|
2406
|
-
|
|
2396
|
+
FieldError,
|
|
2397
|
+
FieldWrapper,
|
|
2398
|
+
formMessages,
|
|
2399
|
+
useAppForm,
|
|
2400
|
+
withFieldGroup,
|
|
2401
|
+
withForm
|
|
2407
2402
|
};
|