@krak-stack/registry 0.1.61 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/components/ui/app-brand.js +17 -17
- package/dist/components/ui/code-block.js +6 -6
- package/dist/components/ui/color-picker.d.ts +30 -0
- package/dist/components/ui/color-picker.js +386 -0
- package/dist/components/ui/copy-button.js +4 -4
- package/dist/components/ui/data-table.js +468 -455
- package/dist/components/ui/editing-locale-switcher.js +10 -10
- package/dist/components/ui/effect-form.js +186 -185
- package/dist/components/ui/error-component.js +10 -18
- package/dist/components/ui/file-picker.js +2 -2
- package/dist/components/ui/form.d.ts +131 -335
- package/dist/components/ui/form.js +137 -136
- package/dist/components/ui/google-map.js +38 -6
- package/dist/components/ui/icon-input.js +48 -45
- package/dist/components/ui/krakstack-provider.js +2 -2
- package/dist/components/ui/locale-switcher.js +4 -4
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/search-menu.js +2 -2
- package/dist/components/ui/sidebar-layout.js +82 -80
- package/dist/components/ui/theme-switcher.js +6 -6
- package/dist/components/ui/virtualized-combobox.js +34 -31
- package/dist/lib/docs.d.ts +2 -2
- package/dist/lib/docs.js +187 -185
- package/dist/lib/docs.server.js +45 -23
- package/dist/lib/documentation-toolkit.d.ts +2 -2
- package/dist/lib/documentation-toolkit.js +45 -23
- package/dist/lib/httpapi-adapter.d.ts +11 -3
- package/dist/lib/httpapi-adapter.js +42 -15
- package/dist/lib/httpapi-cli.d.ts +13 -4
- package/dist/lib/httpapi-cli.js +70 -28
- package/dist/lib/httpapi-toolkit.js +40 -13
- package/dist/lib/query.d.ts +4 -4
- package/dist/lib/query.js +13 -13
- package/dist/lib/seo.js +2 -2
- package/dist/lib/webfetch-toolkit.js +7 -7
- package/dist/oxlint/anti-slop/index.js +2 -2
- package/dist/services/agent/client/index.js +155 -153
- package/dist/services/agent/index.js +3 -3
- package/dist/services/agent/schema.js +5 -5
- package/dist/services/events/browser.js +38 -23
- package/dist/services/events/client/audit-log-table.js +472 -459
- package/dist/services/events/client/tracking-notice.js +9 -4
- package/dist/services/events/index.d.ts +3 -1
- package/dist/services/events/index.js +79 -74
- package/dist/services/events/migrations.js +2 -2
- package/dist/services/events/record.js +2 -2
- package/dist/services/events/schema.d.ts +18 -10
- package/dist/services/events/schema.js +42 -42
- package/dist/services/file-extraction/index.js +4 -4
- package/dist/services/file-extraction/schema.d.ts +3 -1
- package/dist/services/file-extraction/schema.js +2 -2
- package/dist/services/health/api.builder.d.ts +8 -8
- package/dist/services/health/api.group.d.ts +8 -8
- package/dist/services/health/index.d.ts +10 -6
- package/dist/services/health/index.js +17 -13
- package/dist/services/health/schema.d.ts +7 -7
- 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 +5 -5
- package/dist/services/notification/index.js +3 -3
- 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 -8
- package/dist/services/notification/schema.d.ts +3 -1
- package/dist/services/notification/schema.js +2 -2
- package/dist/services/opentelemetry/api.js +7 -5
- package/dist/services/opentelemetry/browser.js +9 -9
- package/dist/services/opentelemetry/index.js +2 -2
- package/dist/services/opentelemetry/processor.d.ts +3 -1
- package/dist/services/opentelemetry/web-vitals.js +12 -7
- package/dist/services/s3/index.js +2 -2
- package/dist/services/s3/schema.d.ts +3 -1
- package/dist/services/s3/schema.js +2 -2
- package/dist/services/speech/api.js +3 -1
- package/dist/services/speech/index.js +15 -8
- package/dist/services/speech/schema.d.ts +3 -1
- package/dist/services/speech/schema.js +12 -10
- package/dist/services/webhooks/client/delivery-table.js +506 -493
- package/dist/services/webhooks/http-client.js +5 -5
- package/dist/services/webhooks/index.js +47 -47
- package/dist/services/webhooks/migrations.js +5 -5
- package/dist/services/webhooks/receiver.d.ts +6 -2
- package/dist/services/webhooks/schema.d.ts +7 -5
- package/dist/services/webhooks/schema.js +22 -22
- package/dist/services/webhooks/url.js +5 -5
- package/package.json +6 -1
|
@@ -363,7 +363,7 @@ var FilePicker = ({
|
|
|
363
363
|
image,
|
|
364
364
|
invalid = false,
|
|
365
365
|
locale: localeOverride,
|
|
366
|
-
messages,
|
|
366
|
+
messages: messages2,
|
|
367
367
|
multiple = false,
|
|
368
368
|
name,
|
|
369
369
|
onBlur,
|
|
@@ -374,7 +374,7 @@ var FilePicker = ({
|
|
|
374
374
|
title
|
|
375
375
|
}) => {
|
|
376
376
|
const locale = useKrakstackLocale(localeOverride);
|
|
377
|
-
const labels = filePickerMessages(locale,
|
|
377
|
+
const labels = filePickerMessages(locale, messages2);
|
|
378
378
|
const inputRef = useRef(null);
|
|
379
379
|
const dragDepthRef = useRef(0);
|
|
380
380
|
const [dragging, setDragging] = useState(false);
|
|
@@ -692,11 +692,12 @@ function Label({ className, ...props }) {
|
|
|
692
692
|
|
|
693
693
|
// ../../src/components/ui/separator.tsx
|
|
694
694
|
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
695
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
695
696
|
|
|
696
697
|
// ../../src/components/ui/field.tsx
|
|
697
|
-
import { jsx as
|
|
698
|
+
import { jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
698
699
|
function FieldSet({ className, ...props }) {
|
|
699
|
-
return /* @__PURE__ */
|
|
700
|
+
return /* @__PURE__ */ jsx9("fieldset", {
|
|
700
701
|
"data-slot": "field-set",
|
|
701
702
|
className: cn("flex flex-col gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", className),
|
|
702
703
|
...props
|
|
@@ -707,7 +708,7 @@ function FieldLegend({
|
|
|
707
708
|
variant = "legend",
|
|
708
709
|
...props
|
|
709
710
|
}) {
|
|
710
|
-
return /* @__PURE__ */
|
|
711
|
+
return /* @__PURE__ */ jsx9("legend", {
|
|
711
712
|
"data-slot": "field-legend",
|
|
712
713
|
"data-variant": variant,
|
|
713
714
|
className: cn("mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", className),
|
|
@@ -715,7 +716,7 @@ function FieldLegend({
|
|
|
715
716
|
});
|
|
716
717
|
}
|
|
717
718
|
function FieldGroup({ className, ...props }) {
|
|
718
|
-
return /* @__PURE__ */
|
|
719
|
+
return /* @__PURE__ */ jsx9("div", {
|
|
719
720
|
"data-slot": "field-group",
|
|
720
721
|
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),
|
|
721
722
|
...props
|
|
@@ -738,7 +739,7 @@ function Field({
|
|
|
738
739
|
orientation = "vertical",
|
|
739
740
|
...props
|
|
740
741
|
}) {
|
|
741
|
-
return /* @__PURE__ */
|
|
742
|
+
return /* @__PURE__ */ jsx9("div", {
|
|
742
743
|
role: "group",
|
|
743
744
|
"data-slot": "field",
|
|
744
745
|
"data-orientation": orientation,
|
|
@@ -750,14 +751,14 @@ function FieldLabel({
|
|
|
750
751
|
className,
|
|
751
752
|
...props
|
|
752
753
|
}) {
|
|
753
|
-
return /* @__PURE__ */
|
|
754
|
+
return /* @__PURE__ */ jsx9(Label, {
|
|
754
755
|
"data-slot": "field-label",
|
|
755
756
|
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),
|
|
756
757
|
...props
|
|
757
758
|
});
|
|
758
759
|
}
|
|
759
760
|
function FieldDescription({ className, ...props }) {
|
|
760
|
-
return /* @__PURE__ */
|
|
761
|
+
return /* @__PURE__ */ jsx9("p", {
|
|
761
762
|
"data-slot": "field-description",
|
|
762
763
|
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),
|
|
763
764
|
...props
|
|
@@ -767,18 +768,18 @@ function FieldDescription({ className, ...props }) {
|
|
|
767
768
|
// ../../src/components/ui/select.tsx
|
|
768
769
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
769
770
|
import { ChevronDownIcon, CheckIcon as CheckIcon2, ChevronUpIcon } from "lucide-react";
|
|
770
|
-
import { jsx as
|
|
771
|
+
import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
771
772
|
"use client";
|
|
772
773
|
var Select = SelectPrimitive.Root;
|
|
773
774
|
function SelectGroup({ className, ...props }) {
|
|
774
|
-
return /* @__PURE__ */
|
|
775
|
+
return /* @__PURE__ */ jsx10(SelectPrimitive.Group, {
|
|
775
776
|
"data-slot": "select-group",
|
|
776
777
|
className: cn("scroll-my-1 p-1", className),
|
|
777
778
|
...props
|
|
778
779
|
});
|
|
779
780
|
}
|
|
780
781
|
function SelectValue({ className, ...props }) {
|
|
781
|
-
return /* @__PURE__ */
|
|
782
|
+
return /* @__PURE__ */ jsx10(SelectPrimitive.Value, {
|
|
782
783
|
"data-slot": "select-value",
|
|
783
784
|
className: cn("flex flex-1 text-left", className),
|
|
784
785
|
...props
|
|
@@ -797,8 +798,8 @@ function SelectTrigger({
|
|
|
797
798
|
...props,
|
|
798
799
|
children: [
|
|
799
800
|
children,
|
|
800
|
-
/* @__PURE__ */
|
|
801
|
-
render: /* @__PURE__ */
|
|
801
|
+
/* @__PURE__ */ jsx10(SelectPrimitive.Icon, {
|
|
802
|
+
render: /* @__PURE__ */ jsx10(ChevronDownIcon, {
|
|
802
803
|
className: "text-muted-foreground pointer-events-none size-4"
|
|
803
804
|
})
|
|
804
805
|
})
|
|
@@ -815,8 +816,8 @@ function SelectContent({
|
|
|
815
816
|
alignItemWithTrigger = true,
|
|
816
817
|
...props
|
|
817
818
|
}) {
|
|
818
|
-
return /* @__PURE__ */
|
|
819
|
-
children: /* @__PURE__ */
|
|
819
|
+
return /* @__PURE__ */ jsx10(SelectPrimitive.Portal, {
|
|
820
|
+
children: /* @__PURE__ */ jsx10(SelectPrimitive.Positioner, {
|
|
820
821
|
side,
|
|
821
822
|
sideOffset,
|
|
822
823
|
align,
|
|
@@ -829,11 +830,11 @@ function SelectContent({
|
|
|
829
830
|
className: cn("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-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-out-95", className),
|
|
830
831
|
...props,
|
|
831
832
|
children: [
|
|
832
|
-
/* @__PURE__ */
|
|
833
|
-
/* @__PURE__ */
|
|
833
|
+
/* @__PURE__ */ jsx10(SelectScrollUpButton, {}),
|
|
834
|
+
/* @__PURE__ */ jsx10(SelectPrimitive.List, {
|
|
834
835
|
children
|
|
835
836
|
}),
|
|
836
|
-
/* @__PURE__ */
|
|
837
|
+
/* @__PURE__ */ jsx10(SelectScrollDownButton, {})
|
|
837
838
|
]
|
|
838
839
|
})
|
|
839
840
|
})
|
|
@@ -849,15 +850,15 @@ function SelectItem({
|
|
|
849
850
|
className: cn("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className),
|
|
850
851
|
...props,
|
|
851
852
|
children: [
|
|
852
|
-
/* @__PURE__ */
|
|
853
|
+
/* @__PURE__ */ jsx10(SelectPrimitive.ItemText, {
|
|
853
854
|
className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
|
|
854
855
|
children
|
|
855
856
|
}),
|
|
856
|
-
/* @__PURE__ */
|
|
857
|
-
render: /* @__PURE__ */
|
|
857
|
+
/* @__PURE__ */ jsx10(SelectPrimitive.ItemIndicator, {
|
|
858
|
+
render: /* @__PURE__ */ jsx10("span", {
|
|
858
859
|
className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center"
|
|
859
860
|
}),
|
|
860
|
-
children: /* @__PURE__ */
|
|
861
|
+
children: /* @__PURE__ */ jsx10(CheckIcon2, {
|
|
861
862
|
className: "pointer-events-none"
|
|
862
863
|
})
|
|
863
864
|
})
|
|
@@ -868,29 +869,29 @@ function SelectScrollUpButton({
|
|
|
868
869
|
className,
|
|
869
870
|
...props
|
|
870
871
|
}) {
|
|
871
|
-
return /* @__PURE__ */
|
|
872
|
+
return /* @__PURE__ */ jsx10(SelectPrimitive.ScrollUpArrow, {
|
|
872
873
|
"data-slot": "select-scroll-up-button",
|
|
873
874
|
className: cn("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className),
|
|
874
875
|
...props,
|
|
875
|
-
children: /* @__PURE__ */
|
|
876
|
+
children: /* @__PURE__ */ jsx10(ChevronUpIcon, {})
|
|
876
877
|
});
|
|
877
878
|
}
|
|
878
879
|
function SelectScrollDownButton({
|
|
879
880
|
className,
|
|
880
881
|
...props
|
|
881
882
|
}) {
|
|
882
|
-
return /* @__PURE__ */
|
|
883
|
+
return /* @__PURE__ */ jsx10(SelectPrimitive.ScrollDownArrow, {
|
|
883
884
|
"data-slot": "select-scroll-down-button",
|
|
884
885
|
className: cn("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className),
|
|
885
886
|
...props,
|
|
886
|
-
children: /* @__PURE__ */
|
|
887
|
+
children: /* @__PURE__ */ jsx10(ChevronDownIcon, {})
|
|
887
888
|
});
|
|
888
889
|
}
|
|
889
890
|
|
|
890
891
|
// ../../src/components/ui/textarea.tsx
|
|
891
|
-
import { jsx as
|
|
892
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
892
893
|
function Textarea({ className, ...props }) {
|
|
893
|
-
return /* @__PURE__ */
|
|
894
|
+
return /* @__PURE__ */ jsx11("textarea", {
|
|
894
895
|
"data-slot": "textarea",
|
|
895
896
|
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),
|
|
896
897
|
...props
|
|
@@ -910,9 +911,9 @@ import {
|
|
|
910
911
|
|
|
911
912
|
// ../../src/components/ui/input-group.tsx
|
|
912
913
|
import { cva as cva5 } from "class-variance-authority";
|
|
913
|
-
import { jsx as
|
|
914
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
914
915
|
function InputGroup({ className, ...props }) {
|
|
915
|
-
return /* @__PURE__ */
|
|
916
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
916
917
|
"data-slot": "input-group",
|
|
917
918
|
role: "group",
|
|
918
919
|
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),
|
|
@@ -945,7 +946,7 @@ function InputGroupInput({
|
|
|
945
946
|
className,
|
|
946
947
|
...props
|
|
947
948
|
}) {
|
|
948
|
-
return /* @__PURE__ */
|
|
949
|
+
return /* @__PURE__ */ jsx12(Input, {
|
|
949
950
|
"data-slot": "input-group-control",
|
|
950
951
|
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),
|
|
951
952
|
...props
|
|
@@ -954,7 +955,7 @@ function InputGroupInput({
|
|
|
954
955
|
|
|
955
956
|
// ../../src/components/ui/virtualized-combobox.tsx
|
|
956
957
|
import { useKrakstackLocale as useKrakstackLocale2 } from "@krak-stack/registry/krakstack-provider";
|
|
957
|
-
import { jsx as
|
|
958
|
+
import { jsx as jsx13, jsxs as jsxs5, Fragment as Fragment2 } from "react/jsx-runtime";
|
|
958
959
|
"use client";
|
|
959
960
|
var messages2 = {
|
|
960
961
|
en: {
|
|
@@ -1033,11 +1034,11 @@ var VirtualizedComboboxList = ({
|
|
|
1033
1034
|
}, [virtualizer]);
|
|
1034
1035
|
return /* @__PURE__ */ jsxs5(Fragment2, {
|
|
1035
1036
|
children: [
|
|
1036
|
-
filteredItems.length === 0 && /* @__PURE__ */
|
|
1037
|
+
filteredItems.length === 0 && /* @__PURE__ */ jsx13("div", {
|
|
1037
1038
|
className: "text-muted-foreground flex min-h-0 flex-1 flex-col items-center justify-center overflow-auto py-6 text-center text-sm",
|
|
1038
1039
|
children: emptyLabel
|
|
1039
1040
|
}),
|
|
1040
|
-
/* @__PURE__ */
|
|
1041
|
+
/* @__PURE__ */ jsx13(ComboboxPrimitive.List, {
|
|
1041
1042
|
className: "min-h-0 flex-1 scroll-py-1 overflow-auto overscroll-contain p-1",
|
|
1042
1043
|
hidden: filteredItems.length === 0,
|
|
1043
1044
|
ref: handleScrollElementRef,
|
|
@@ -1045,7 +1046,7 @@ var VirtualizedComboboxList = ({
|
|
|
1045
1046
|
height: Math.min(virtualizer.getTotalSize() + 8, 288),
|
|
1046
1047
|
maxHeight: "var(--available-height)"
|
|
1047
1048
|
},
|
|
1048
|
-
children: /* @__PURE__ */
|
|
1049
|
+
children: /* @__PURE__ */ jsx13("div", {
|
|
1049
1050
|
className: "relative w-full",
|
|
1050
1051
|
role: "presentation",
|
|
1051
1052
|
style: { height: virtualizer.getTotalSize() },
|
|
@@ -1058,9 +1059,9 @@ var VirtualizedComboboxList = ({
|
|
|
1058
1059
|
transform: `translateY(${virtualItem.start}px)`
|
|
1059
1060
|
};
|
|
1060
1061
|
if (entry.kind === "group") {
|
|
1061
|
-
return /* @__PURE__ */
|
|
1062
|
+
return /* @__PURE__ */ jsx13(ComboboxPrimitive.Group, {
|
|
1062
1063
|
className: "contents",
|
|
1063
|
-
children: /* @__PURE__ */
|
|
1064
|
+
children: /* @__PURE__ */ jsx13(ComboboxPrimitive.GroupLabel, {
|
|
1064
1065
|
className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
|
|
1065
1066
|
"data-index": virtualItem.index,
|
|
1066
1067
|
ref: virtualizer.measureElement,
|
|
@@ -1079,13 +1080,13 @@ var VirtualizedComboboxList = ({
|
|
|
1079
1080
|
style,
|
|
1080
1081
|
value: entry.item,
|
|
1081
1082
|
children: [
|
|
1082
|
-
renderItem?.(entry.item) ?? /* @__PURE__ */
|
|
1083
|
+
renderItem?.(entry.item) ?? /* @__PURE__ */ jsx13("span", {
|
|
1083
1084
|
className: "min-w-0 truncate",
|
|
1084
1085
|
children: entry.item.label
|
|
1085
1086
|
}),
|
|
1086
|
-
/* @__PURE__ */
|
|
1087
|
+
/* @__PURE__ */ jsx13(ComboboxPrimitive.ItemIndicator, {
|
|
1087
1088
|
className: "absolute right-2 flex size-4 items-center justify-center",
|
|
1088
|
-
children: /* @__PURE__ */
|
|
1089
|
+
children: /* @__PURE__ */ jsx13(Check, {})
|
|
1089
1090
|
})
|
|
1090
1091
|
]
|
|
1091
1092
|
}, entry.item.value);
|
|
@@ -1107,8 +1108,8 @@ var VirtualizedComboboxContent = ({
|
|
|
1107
1108
|
virtualizerRef
|
|
1108
1109
|
}) => {
|
|
1109
1110
|
const labels = virtualizedComboboxMessages(locale, messageOverrides);
|
|
1110
|
-
return /* @__PURE__ */
|
|
1111
|
-
children: /* @__PURE__ */
|
|
1111
|
+
return /* @__PURE__ */ jsx13(ComboboxPrimitive.Portal, {
|
|
1112
|
+
children: /* @__PURE__ */ jsx13(ComboboxPrimitive.Positioner, {
|
|
1112
1113
|
align: "start",
|
|
1113
1114
|
className: "isolate z-50",
|
|
1114
1115
|
side: "bottom",
|
|
@@ -1116,17 +1117,17 @@ var VirtualizedComboboxContent = ({
|
|
|
1116
1117
|
children: /* @__PURE__ */ jsxs5(ComboboxPrimitive.Popup, {
|
|
1117
1118
|
className: cn("relative flex max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) flex-col 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),
|
|
1118
1119
|
children: [
|
|
1119
|
-
/* @__PURE__ */
|
|
1120
|
+
/* @__PURE__ */ jsx13("div", {
|
|
1120
1121
|
className: "min-w-0 shrink-0 p-1 pb-0",
|
|
1121
|
-
children: /* @__PURE__ */
|
|
1122
|
+
children: /* @__PURE__ */ jsx13(InputGroup, {
|
|
1122
1123
|
className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
|
|
1123
|
-
children: /* @__PURE__ */
|
|
1124
|
+
children: /* @__PURE__ */ jsx13(ComboboxPrimitive.Input, {
|
|
1124
1125
|
placeholder: labels.search,
|
|
1125
|
-
render: /* @__PURE__ */
|
|
1126
|
+
render: /* @__PURE__ */ jsx13(InputGroupInput, {})
|
|
1126
1127
|
})
|
|
1127
1128
|
})
|
|
1128
1129
|
}),
|
|
1129
|
-
/* @__PURE__ */
|
|
1130
|
+
/* @__PURE__ */ jsx13(VirtualizedComboboxList, {
|
|
1130
1131
|
emptyLabel,
|
|
1131
1132
|
groupSelections,
|
|
1132
1133
|
itemIndexRef,
|
|
@@ -1150,20 +1151,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
|
|
|
1150
1151
|
type: "button",
|
|
1151
1152
|
variant: "outline",
|
|
1152
1153
|
children: [
|
|
1153
|
-
/* @__PURE__ */
|
|
1154
|
+
/* @__PURE__ */ jsx13("span", {
|
|
1154
1155
|
className: "min-w-0 flex-1 truncate pr-7 text-left",
|
|
1155
1156
|
children: label
|
|
1156
1157
|
}),
|
|
1157
|
-
/* @__PURE__ */
|
|
1158
|
+
/* @__PURE__ */ jsx13(ChevronsUpDown, {
|
|
1158
1159
|
className: "text-muted-foreground shrink-0 opacity-70"
|
|
1159
1160
|
})
|
|
1160
1161
|
]
|
|
1161
1162
|
});
|
|
1162
|
-
var defaultClear = (label) => /* @__PURE__ */
|
|
1163
|
+
var defaultClear = (label) => /* @__PURE__ */ jsx13(ComboboxPrimitive.Clear, {
|
|
1163
1164
|
"aria-label": label,
|
|
1164
1165
|
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",
|
|
1165
1166
|
type: "button",
|
|
1166
|
-
children: /* @__PURE__ */
|
|
1167
|
+
children: /* @__PURE__ */ jsx13(X, {
|
|
1167
1168
|
className: "size-3.5"
|
|
1168
1169
|
})
|
|
1169
1170
|
});
|
|
@@ -1202,13 +1203,13 @@ var VirtualizedComboboxSingle = (props) => {
|
|
|
1202
1203
|
/* @__PURE__ */ jsxs5("div", {
|
|
1203
1204
|
className: "relative",
|
|
1204
1205
|
children: [
|
|
1205
|
-
/* @__PURE__ */
|
|
1206
|
+
/* @__PURE__ */ jsx13(ComboboxPrimitive.Trigger, {
|
|
1206
1207
|
render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
|
|
1207
1208
|
}),
|
|
1208
1209
|
props.trigger ? null : defaultClear(labels.clear)
|
|
1209
1210
|
]
|
|
1210
1211
|
}),
|
|
1211
|
-
/* @__PURE__ */
|
|
1212
|
+
/* @__PURE__ */ jsx13(VirtualizedComboboxContent, {
|
|
1212
1213
|
...props,
|
|
1213
1214
|
groupSelections: false,
|
|
1214
1215
|
itemIndexRef,
|
|
@@ -1244,13 +1245,13 @@ var VirtualizedComboboxMultiple = (props) => {
|
|
|
1244
1245
|
/* @__PURE__ */ jsxs5("div", {
|
|
1245
1246
|
className: "relative",
|
|
1246
1247
|
children: [
|
|
1247
|
-
/* @__PURE__ */
|
|
1248
|
+
/* @__PURE__ */ jsx13(ComboboxPrimitive.Trigger, {
|
|
1248
1249
|
render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
|
|
1249
1250
|
}),
|
|
1250
1251
|
props.trigger ? null : defaultClear(labels.clear)
|
|
1251
1252
|
]
|
|
1252
1253
|
}),
|
|
1253
|
-
/* @__PURE__ */
|
|
1254
|
+
/* @__PURE__ */ jsx13(VirtualizedComboboxContent, {
|
|
1254
1255
|
...props,
|
|
1255
1256
|
groupSelections: true,
|
|
1256
1257
|
itemIndexRef,
|
|
@@ -1262,10 +1263,10 @@ var VirtualizedComboboxMultiple = (props) => {
|
|
|
1262
1263
|
};
|
|
1263
1264
|
function VirtualizedCombobox(props) {
|
|
1264
1265
|
const locale = useKrakstackLocale2(props.locale);
|
|
1265
|
-
return props.multiple ? /* @__PURE__ */
|
|
1266
|
+
return props.multiple ? /* @__PURE__ */ jsx13(VirtualizedComboboxMultiple, {
|
|
1266
1267
|
...props,
|
|
1267
1268
|
locale
|
|
1268
|
-
}) : /* @__PURE__ */
|
|
1269
|
+
}) : /* @__PURE__ */ jsx13(VirtualizedComboboxSingle, {
|
|
1269
1270
|
...props,
|
|
1270
1271
|
locale
|
|
1271
1272
|
});
|
|
@@ -1273,7 +1274,7 @@ function VirtualizedCombobox(props) {
|
|
|
1273
1274
|
|
|
1274
1275
|
// ../../src/components/ui/effect-form.tsx
|
|
1275
1276
|
import { useKrakstackLocale as useKrakstackLocale3 } from "@krak-stack/registry/krakstack-provider";
|
|
1276
|
-
import { jsx as
|
|
1277
|
+
import { jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1277
1278
|
var messages3 = {
|
|
1278
1279
|
en: {
|
|
1279
1280
|
add: "Add",
|
|
@@ -1334,8 +1335,8 @@ var effectFormMessages = (locale = "en", translations) => ({
|
|
|
1334
1335
|
var useEffectFormMessages = (locale, translations) => effectFormMessages(useKrakstackLocale3(locale), translations);
|
|
1335
1336
|
var SubmitErrorDetails = Schema2.Struct({
|
|
1336
1337
|
_tag: Schema2.optional(Schema2.String),
|
|
1337
|
-
status: Schema2.optional(Schema2.
|
|
1338
|
-
statusCode: Schema2.optional(Schema2.
|
|
1338
|
+
status: Schema2.optional(Schema2.Finite),
|
|
1339
|
+
statusCode: Schema2.optional(Schema2.Finite)
|
|
1339
1340
|
}).annotate({ identifier: "SubmitErrorDetails" });
|
|
1340
1341
|
var submitErrorStatuses = new Map([
|
|
1341
1342
|
["BadRequest", 400],
|
|
@@ -1389,21 +1390,21 @@ var FieldWrapper = ({
|
|
|
1389
1390
|
localized && editingLocale && locales && /* @__PURE__ */ jsxs6(Badge, {
|
|
1390
1391
|
variant: "outline",
|
|
1391
1392
|
children: [
|
|
1392
|
-
/* @__PURE__ */
|
|
1393
|
+
/* @__PURE__ */ jsx14(Languages, {}),
|
|
1393
1394
|
locales.find(({ value }) => value === editingLocale)?.label
|
|
1394
1395
|
]
|
|
1395
1396
|
})
|
|
1396
1397
|
]
|
|
1397
1398
|
}),
|
|
1398
|
-
description && /* @__PURE__ */
|
|
1399
|
+
description && /* @__PURE__ */ jsx14(FieldDescription, {
|
|
1399
1400
|
children: description
|
|
1400
1401
|
}),
|
|
1401
|
-
/* @__PURE__ */
|
|
1402
|
+
/* @__PURE__ */ jsx14(FieldGroup, {
|
|
1402
1403
|
children
|
|
1403
1404
|
})
|
|
1404
1405
|
]
|
|
1405
1406
|
});
|
|
1406
|
-
var ErrorMessage = ({ text }) => /* @__PURE__ */
|
|
1407
|
+
var ErrorMessage = ({ text }) => /* @__PURE__ */ jsx14("em", {
|
|
1407
1408
|
role: "alert",
|
|
1408
1409
|
className: "text-destructive text-sm",
|
|
1409
1410
|
children: text
|
|
@@ -1411,11 +1412,11 @@ var ErrorMessage = ({ text }) => /* @__PURE__ */ jsx13("em", {
|
|
|
1411
1412
|
var SubmitError = ({
|
|
1412
1413
|
result,
|
|
1413
1414
|
locale,
|
|
1414
|
-
messages
|
|
1415
|
+
messages: messages4
|
|
1415
1416
|
}) => {
|
|
1416
|
-
const labels = useEffectFormMessages(locale,
|
|
1417
|
+
const labels = useEffectFormMessages(locale, messages4);
|
|
1417
1418
|
const message = AsyncResult.isFailure(result) ? Schema2.isSchemaError(Cause.squash(result.cause)) ? undefined : getCauseErrorMessage(result.cause, labels) : undefined;
|
|
1418
|
-
return message ? /* @__PURE__ */
|
|
1419
|
+
return message ? /* @__PURE__ */ jsx14(ErrorMessage, {
|
|
1419
1420
|
text: message
|
|
1420
1421
|
}) : null;
|
|
1421
1422
|
};
|
|
@@ -1423,7 +1424,7 @@ var SubmitButton = ({
|
|
|
1423
1424
|
children,
|
|
1424
1425
|
form,
|
|
1425
1426
|
locale,
|
|
1426
|
-
messages,
|
|
1427
|
+
messages: messages4,
|
|
1427
1428
|
onSubmit
|
|
1428
1429
|
}) => {
|
|
1429
1430
|
const submit = useAtomSet(form.submit);
|
|
@@ -1431,7 +1432,7 @@ var SubmitButton = ({
|
|
|
1431
1432
|
const isDirty = useAtomValue(form.isDirty);
|
|
1432
1433
|
const hasChangedSinceSubmit = useAtomValue(form.hasChangedSinceSubmit);
|
|
1433
1434
|
const lastSubmittedValues = useAtomValue(form.lastSubmittedValues);
|
|
1434
|
-
const labels = useEffectFormMessages(locale,
|
|
1435
|
+
const labels = useEffectFormMessages(locale, messages4);
|
|
1435
1436
|
const hasPendingChanges = Option.isNone(lastSubmittedValues) ? isDirty : hasChangedSinceSubmit;
|
|
1436
1437
|
return /* @__PURE__ */ jsxs6(Button, {
|
|
1437
1438
|
type: "button",
|
|
@@ -1442,7 +1443,7 @@ var SubmitButton = ({
|
|
|
1442
1443
|
submit();
|
|
1443
1444
|
},
|
|
1444
1445
|
children: [
|
|
1445
|
-
submitResult.waiting && /* @__PURE__ */
|
|
1446
|
+
submitResult.waiting && /* @__PURE__ */ jsx14(Loader2, {
|
|
1446
1447
|
"data-icon": "inline-start",
|
|
1447
1448
|
className: "animate-spin"
|
|
1448
1449
|
}),
|
|
@@ -1455,7 +1456,7 @@ var FieldError = ({
|
|
|
1455
1456
|
message
|
|
1456
1457
|
}) => Option.match(error, {
|
|
1457
1458
|
onNone: () => null,
|
|
1458
|
-
onSome: (errorMessage) => /* @__PURE__ */
|
|
1459
|
+
onSome: (errorMessage) => /* @__PURE__ */ jsx14(ErrorMessage, {
|
|
1459
1460
|
text: message ?? errorMessage
|
|
1460
1461
|
})
|
|
1461
1462
|
});
|
|
@@ -1470,14 +1471,14 @@ var TextField = ({
|
|
|
1470
1471
|
/* @__PURE__ */ jsxs6("div", {
|
|
1471
1472
|
className: "flex w-full items-center gap-2",
|
|
1472
1473
|
children: [
|
|
1473
|
-
/* @__PURE__ */
|
|
1474
|
+
/* @__PURE__ */ jsx14(FieldLabel, {
|
|
1474
1475
|
htmlFor: field.path,
|
|
1475
1476
|
children: label
|
|
1476
1477
|
}),
|
|
1477
1478
|
children
|
|
1478
1479
|
]
|
|
1479
1480
|
}),
|
|
1480
|
-
/* @__PURE__ */
|
|
1481
|
+
/* @__PURE__ */ jsx14(Input, {
|
|
1481
1482
|
...inputProps,
|
|
1482
1483
|
id: field.path,
|
|
1483
1484
|
name: field.path,
|
|
@@ -1486,10 +1487,10 @@ var TextField = ({
|
|
|
1486
1487
|
onChange: (event) => field.onChange(event.target.value),
|
|
1487
1488
|
"aria-invalid": Option.isSome(field.error)
|
|
1488
1489
|
}),
|
|
1489
|
-
description && /* @__PURE__ */
|
|
1490
|
+
description && /* @__PURE__ */ jsx14(FieldDescription, {
|
|
1490
1491
|
children: description
|
|
1491
1492
|
}),
|
|
1492
|
-
/* @__PURE__ */
|
|
1493
|
+
/* @__PURE__ */ jsx14(FieldError, {
|
|
1493
1494
|
error: field.error,
|
|
1494
1495
|
message: errorMessage
|
|
1495
1496
|
})
|
|
@@ -1500,9 +1501,9 @@ var NameField = ({
|
|
|
1500
1501
|
field,
|
|
1501
1502
|
props
|
|
1502
1503
|
}) => {
|
|
1503
|
-
const { locale, messages, ...fieldProps } = props;
|
|
1504
|
-
const labels = useEffectFormMessages(locale,
|
|
1505
|
-
return /* @__PURE__ */
|
|
1504
|
+
const { locale, messages: messages4, ...fieldProps } = props;
|
|
1505
|
+
const labels = useEffectFormMessages(locale, messages4);
|
|
1506
|
+
return /* @__PURE__ */ jsx14(TextField, {
|
|
1506
1507
|
field,
|
|
1507
1508
|
props: {
|
|
1508
1509
|
...fieldProps,
|
|
@@ -1521,14 +1522,14 @@ var TextAreaField = ({ field, props }) => {
|
|
|
1521
1522
|
/* @__PURE__ */ jsxs6("div", {
|
|
1522
1523
|
className: "flex w-full items-center gap-2",
|
|
1523
1524
|
children: [
|
|
1524
|
-
/* @__PURE__ */
|
|
1525
|
+
/* @__PURE__ */ jsx14(FieldLabel, {
|
|
1525
1526
|
htmlFor: field.path,
|
|
1526
1527
|
children: label
|
|
1527
1528
|
}),
|
|
1528
1529
|
children
|
|
1529
1530
|
]
|
|
1530
1531
|
}),
|
|
1531
|
-
/* @__PURE__ */
|
|
1532
|
+
/* @__PURE__ */ jsx14(Textarea, {
|
|
1532
1533
|
...nativeTextareaProps,
|
|
1533
1534
|
id: field.path,
|
|
1534
1535
|
name: field.path,
|
|
@@ -1537,19 +1538,19 @@ var TextAreaField = ({ field, props }) => {
|
|
|
1537
1538
|
onChange: (event) => field.onChange(event.target.value),
|
|
1538
1539
|
"aria-invalid": Option.isSome(field.error)
|
|
1539
1540
|
}),
|
|
1540
|
-
description && /* @__PURE__ */
|
|
1541
|
+
description && /* @__PURE__ */ jsx14(FieldDescription, {
|
|
1541
1542
|
children: description
|
|
1542
1543
|
}),
|
|
1543
|
-
/* @__PURE__ */
|
|
1544
|
+
/* @__PURE__ */ jsx14(FieldError, {
|
|
1544
1545
|
error: field.error
|
|
1545
1546
|
})
|
|
1546
1547
|
]
|
|
1547
1548
|
});
|
|
1548
1549
|
};
|
|
1549
1550
|
var DescriptionField = ({ field, props }) => {
|
|
1550
|
-
const { locale, messages, ...fieldProps } = props;
|
|
1551
|
-
const labels = useEffectFormMessages(locale,
|
|
1552
|
-
return /* @__PURE__ */
|
|
1551
|
+
const { locale, messages: messages4, ...fieldProps } = props;
|
|
1552
|
+
const labels = useEffectFormMessages(locale, messages4);
|
|
1553
|
+
return /* @__PURE__ */ jsx14(TextAreaField, {
|
|
1553
1554
|
field,
|
|
1554
1555
|
props: {
|
|
1555
1556
|
...fieldProps,
|
|
@@ -1562,11 +1563,11 @@ var FileField = ({ field, props }) => {
|
|
|
1562
1563
|
return /* @__PURE__ */ jsxs6(Field, {
|
|
1563
1564
|
"data-invalid": invalid,
|
|
1564
1565
|
children: [
|
|
1565
|
-
/* @__PURE__ */
|
|
1566
|
+
/* @__PURE__ */ jsx14(FieldLabel, {
|
|
1566
1567
|
htmlFor: field.path,
|
|
1567
1568
|
children: props.label
|
|
1568
1569
|
}),
|
|
1569
|
-
/* @__PURE__ */
|
|
1570
|
+
/* @__PURE__ */ jsx14(FilePicker, {
|
|
1570
1571
|
accept: props.accept ?? "",
|
|
1571
1572
|
canClear: field.value instanceof File,
|
|
1572
1573
|
...field.value ? { file: field.value } : {},
|
|
@@ -1587,10 +1588,10 @@ var FileField = ({ field, props }) => {
|
|
|
1587
1588
|
...props.required === undefined ? {} : { required: props.required },
|
|
1588
1589
|
title: field.value?.name ?? props.label
|
|
1589
1590
|
}),
|
|
1590
|
-
props.description && /* @__PURE__ */
|
|
1591
|
+
props.description && /* @__PURE__ */ jsx14(FieldDescription, {
|
|
1591
1592
|
children: props.description
|
|
1592
1593
|
}),
|
|
1593
|
-
/* @__PURE__ */
|
|
1594
|
+
/* @__PURE__ */ jsx14(FieldError, {
|
|
1594
1595
|
error: field.error
|
|
1595
1596
|
})
|
|
1596
1597
|
]
|
|
@@ -1606,14 +1607,14 @@ var NullableTextAreaField = ({ field, props }) => {
|
|
|
1606
1607
|
/* @__PURE__ */ jsxs6("div", {
|
|
1607
1608
|
className: "flex w-full items-center gap-2",
|
|
1608
1609
|
children: [
|
|
1609
|
-
/* @__PURE__ */
|
|
1610
|
+
/* @__PURE__ */ jsx14(FieldLabel, {
|
|
1610
1611
|
htmlFor: field.path,
|
|
1611
1612
|
children: label
|
|
1612
1613
|
}),
|
|
1613
1614
|
children
|
|
1614
1615
|
]
|
|
1615
1616
|
}),
|
|
1616
|
-
/* @__PURE__ */
|
|
1617
|
+
/* @__PURE__ */ jsx14(Textarea, {
|
|
1617
1618
|
...nativeTextareaProps,
|
|
1618
1619
|
id: field.path,
|
|
1619
1620
|
name: field.path,
|
|
@@ -1622,10 +1623,10 @@ var NullableTextAreaField = ({ field, props }) => {
|
|
|
1622
1623
|
onChange: (event) => field.onChange(event.target.value),
|
|
1623
1624
|
"aria-invalid": Option.isSome(field.error)
|
|
1624
1625
|
}),
|
|
1625
|
-
description && /* @__PURE__ */
|
|
1626
|
+
description && /* @__PURE__ */ jsx14(FieldDescription, {
|
|
1626
1627
|
children: description
|
|
1627
1628
|
}),
|
|
1628
|
-
/* @__PURE__ */
|
|
1629
|
+
/* @__PURE__ */ jsx14(FieldError, {
|
|
1629
1630
|
error: field.error
|
|
1630
1631
|
})
|
|
1631
1632
|
]
|
|
@@ -1640,7 +1641,7 @@ var CheckboxField = ({
|
|
|
1640
1641
|
/* @__PURE__ */ jsxs6("div", {
|
|
1641
1642
|
className: "flex w-full flex-row items-center gap-2",
|
|
1642
1643
|
children: [
|
|
1643
|
-
/* @__PURE__ */
|
|
1644
|
+
/* @__PURE__ */ jsx14(Checkbox, {
|
|
1644
1645
|
id: field.path,
|
|
1645
1646
|
name: field.path,
|
|
1646
1647
|
checked: field.value,
|
|
@@ -1648,17 +1649,17 @@ var CheckboxField = ({
|
|
|
1648
1649
|
onCheckedChange: field.onChange,
|
|
1649
1650
|
"aria-invalid": Option.isSome(field.error)
|
|
1650
1651
|
}),
|
|
1651
|
-
/* @__PURE__ */
|
|
1652
|
+
/* @__PURE__ */ jsx14(FieldLabel, {
|
|
1652
1653
|
htmlFor: field.path,
|
|
1653
1654
|
children: props.label
|
|
1654
1655
|
}),
|
|
1655
1656
|
props.children
|
|
1656
1657
|
]
|
|
1657
1658
|
}),
|
|
1658
|
-
props.description && /* @__PURE__ */
|
|
1659
|
+
props.description && /* @__PURE__ */ jsx14(FieldDescription, {
|
|
1659
1660
|
children: props.description
|
|
1660
1661
|
}),
|
|
1661
|
-
/* @__PURE__ */
|
|
1662
|
+
/* @__PURE__ */ jsx14(FieldError, {
|
|
1662
1663
|
error: field.error
|
|
1663
1664
|
})
|
|
1664
1665
|
]
|
|
@@ -1669,7 +1670,7 @@ var SelectField = ({
|
|
|
1669
1670
|
}) => /* @__PURE__ */ jsxs6(Field, {
|
|
1670
1671
|
"data-invalid": Option.isSome(field.error),
|
|
1671
1672
|
children: [
|
|
1672
|
-
/* @__PURE__ */
|
|
1673
|
+
/* @__PURE__ */ jsx14(FieldLabel, {
|
|
1673
1674
|
htmlFor: field.path,
|
|
1674
1675
|
children: props.label
|
|
1675
1676
|
}),
|
|
@@ -1681,16 +1682,16 @@ var SelectField = ({
|
|
|
1681
1682
|
},
|
|
1682
1683
|
value: field.value,
|
|
1683
1684
|
children: [
|
|
1684
|
-
/* @__PURE__ */
|
|
1685
|
+
/* @__PURE__ */ jsx14(SelectTrigger, {
|
|
1685
1686
|
id: field.path,
|
|
1686
1687
|
"aria-invalid": Option.isSome(field.error),
|
|
1687
|
-
children: /* @__PURE__ */
|
|
1688
|
+
children: /* @__PURE__ */ jsx14(SelectValue, {
|
|
1688
1689
|
placeholder: props.placeholder
|
|
1689
1690
|
})
|
|
1690
1691
|
}),
|
|
1691
|
-
/* @__PURE__ */
|
|
1692
|
-
children: /* @__PURE__ */
|
|
1693
|
-
children: props.options.map((option) => /* @__PURE__ */
|
|
1692
|
+
/* @__PURE__ */ jsx14(SelectContent, {
|
|
1693
|
+
children: /* @__PURE__ */ jsx14(SelectGroup, {
|
|
1694
|
+
children: props.options.map((option) => /* @__PURE__ */ jsx14(SelectItem, {
|
|
1694
1695
|
value: option.value,
|
|
1695
1696
|
children: option.label
|
|
1696
1697
|
}, option.value))
|
|
@@ -1698,10 +1699,10 @@ var SelectField = ({
|
|
|
1698
1699
|
})
|
|
1699
1700
|
]
|
|
1700
1701
|
}),
|
|
1701
|
-
props.description && /* @__PURE__ */
|
|
1702
|
+
props.description && /* @__PURE__ */ jsx14(FieldDescription, {
|
|
1702
1703
|
children: props.description
|
|
1703
1704
|
}),
|
|
1704
|
-
/* @__PURE__ */
|
|
1705
|
+
/* @__PURE__ */ jsx14(FieldError, {
|
|
1705
1706
|
error: field.error
|
|
1706
1707
|
})
|
|
1707
1708
|
]
|
|
@@ -1711,7 +1712,7 @@ var FolderField = ({
|
|
|
1711
1712
|
props
|
|
1712
1713
|
}) => {
|
|
1713
1714
|
const labels = useEffectFormMessages(props.locale, props.messages);
|
|
1714
|
-
return /* @__PURE__ */
|
|
1715
|
+
return /* @__PURE__ */ jsx14(SelectField, {
|
|
1715
1716
|
field,
|
|
1716
1717
|
props: { ...props, label: labels.folder }
|
|
1717
1718
|
});
|
|
@@ -1722,7 +1723,7 @@ var MultiSelectField = ({
|
|
|
1722
1723
|
}) => /* @__PURE__ */ jsxs6(Field, {
|
|
1723
1724
|
"data-invalid": Option.isSome(field.error),
|
|
1724
1725
|
children: [
|
|
1725
|
-
/* @__PURE__ */
|
|
1726
|
+
/* @__PURE__ */ jsx14(FieldLabel, {
|
|
1726
1727
|
htmlFor: field.path,
|
|
1727
1728
|
children: props.label
|
|
1728
1729
|
}),
|
|
@@ -1732,17 +1733,17 @@ var MultiSelectField = ({
|
|
|
1732
1733
|
multiple: true,
|
|
1733
1734
|
value: Array.from(field.value),
|
|
1734
1735
|
children: [
|
|
1735
|
-
/* @__PURE__ */
|
|
1736
|
+
/* @__PURE__ */ jsx14(SelectTrigger, {
|
|
1736
1737
|
className: "gap-1",
|
|
1737
1738
|
id: field.path,
|
|
1738
1739
|
"aria-invalid": Option.isSome(field.error),
|
|
1739
|
-
children: /* @__PURE__ */
|
|
1740
|
+
children: /* @__PURE__ */ jsx14(SelectValue, {
|
|
1740
1741
|
placeholder: props.placeholder
|
|
1741
1742
|
})
|
|
1742
1743
|
}),
|
|
1743
|
-
/* @__PURE__ */
|
|
1744
|
-
children: /* @__PURE__ */
|
|
1745
|
-
children: props.options.map((option) => /* @__PURE__ */
|
|
1744
|
+
/* @__PURE__ */ jsx14(SelectContent, {
|
|
1745
|
+
children: /* @__PURE__ */ jsx14(SelectGroup, {
|
|
1746
|
+
children: props.options.map((option) => /* @__PURE__ */ jsx14(SelectItem, {
|
|
1746
1747
|
value: option.value,
|
|
1747
1748
|
children: option.label
|
|
1748
1749
|
}, option.value))
|
|
@@ -1750,10 +1751,10 @@ var MultiSelectField = ({
|
|
|
1750
1751
|
})
|
|
1751
1752
|
]
|
|
1752
1753
|
}),
|
|
1753
|
-
props.description && /* @__PURE__ */
|
|
1754
|
+
props.description && /* @__PURE__ */ jsx14(FieldDescription, {
|
|
1754
1755
|
children: props.description
|
|
1755
1756
|
}),
|
|
1756
|
-
/* @__PURE__ */
|
|
1757
|
+
/* @__PURE__ */ jsx14(FieldError, {
|
|
1757
1758
|
error: field.error
|
|
1758
1759
|
})
|
|
1759
1760
|
]
|
|
@@ -1764,7 +1765,7 @@ var NullableMultiSelectField = ({
|
|
|
1764
1765
|
}) => /* @__PURE__ */ jsxs6(Field, {
|
|
1765
1766
|
"data-invalid": Option.isSome(field.error),
|
|
1766
1767
|
children: [
|
|
1767
|
-
/* @__PURE__ */
|
|
1768
|
+
/* @__PURE__ */ jsx14(FieldLabel, {
|
|
1768
1769
|
htmlFor: field.path,
|
|
1769
1770
|
children: props.label
|
|
1770
1771
|
}),
|
|
@@ -1774,17 +1775,17 @@ var NullableMultiSelectField = ({
|
|
|
1774
1775
|
multiple: true,
|
|
1775
1776
|
value: field.value ? Array.from(field.value) : [],
|
|
1776
1777
|
children: [
|
|
1777
|
-
/* @__PURE__ */
|
|
1778
|
+
/* @__PURE__ */ jsx14(SelectTrigger, {
|
|
1778
1779
|
className: "gap-1",
|
|
1779
1780
|
id: field.path,
|
|
1780
1781
|
"aria-invalid": Option.isSome(field.error),
|
|
1781
|
-
children: /* @__PURE__ */
|
|
1782
|
+
children: /* @__PURE__ */ jsx14(SelectValue, {
|
|
1782
1783
|
placeholder: props.placeholder
|
|
1783
1784
|
})
|
|
1784
1785
|
}),
|
|
1785
|
-
/* @__PURE__ */
|
|
1786
|
-
children: /* @__PURE__ */
|
|
1787
|
-
children: props.options.map((option) => /* @__PURE__ */
|
|
1786
|
+
/* @__PURE__ */ jsx14(SelectContent, {
|
|
1787
|
+
children: /* @__PURE__ */ jsx14(SelectGroup, {
|
|
1788
|
+
children: props.options.map((option) => /* @__PURE__ */ jsx14(SelectItem, {
|
|
1788
1789
|
value: option.value,
|
|
1789
1790
|
children: option.label
|
|
1790
1791
|
}, option.value))
|
|
@@ -1792,10 +1793,10 @@ var NullableMultiSelectField = ({
|
|
|
1792
1793
|
})
|
|
1793
1794
|
]
|
|
1794
1795
|
}),
|
|
1795
|
-
props.description && /* @__PURE__ */
|
|
1796
|
+
props.description && /* @__PURE__ */ jsx14(FieldDescription, {
|
|
1796
1797
|
children: props.description
|
|
1797
1798
|
}),
|
|
1798
|
-
/* @__PURE__ */
|
|
1799
|
+
/* @__PURE__ */ jsx14(FieldError, {
|
|
1799
1800
|
error: field.error
|
|
1800
1801
|
})
|
|
1801
1802
|
]
|
|
@@ -1825,11 +1826,11 @@ var SearchableSelectField = ({
|
|
|
1825
1826
|
className: "min-w-0",
|
|
1826
1827
|
"data-invalid": invalid,
|
|
1827
1828
|
children: [
|
|
1828
|
-
/* @__PURE__ */
|
|
1829
|
+
/* @__PURE__ */ jsx14(FieldLabel, {
|
|
1829
1830
|
htmlFor: field.path,
|
|
1830
1831
|
children: props.label
|
|
1831
1832
|
}),
|
|
1832
|
-
/* @__PURE__ */
|
|
1833
|
+
/* @__PURE__ */ jsx14(VirtualizedCombobox, {
|
|
1833
1834
|
ariaInvalid: invalid,
|
|
1834
1835
|
ariaLabel,
|
|
1835
1836
|
emptyLabel: props.emptyLabel,
|
|
@@ -1845,10 +1846,10 @@ var SearchableSelectField = ({
|
|
|
1845
1846
|
triggerId: field.path,
|
|
1846
1847
|
value: selectedItems
|
|
1847
1848
|
}),
|
|
1848
|
-
props.description && /* @__PURE__ */
|
|
1849
|
+
props.description && /* @__PURE__ */ jsx14(FieldDescription, {
|
|
1849
1850
|
children: props.description
|
|
1850
1851
|
}),
|
|
1851
|
-
/* @__PURE__ */
|
|
1852
|
+
/* @__PURE__ */ jsx14(FieldError, {
|
|
1852
1853
|
error: field.error
|
|
1853
1854
|
})
|
|
1854
1855
|
]
|
|
@@ -1867,11 +1868,11 @@ var SingleSearchableSelectField = ({
|
|
|
1867
1868
|
className: "min-w-0",
|
|
1868
1869
|
"data-invalid": invalid,
|
|
1869
1870
|
children: [
|
|
1870
|
-
/* @__PURE__ */
|
|
1871
|
+
/* @__PURE__ */ jsx14(FieldLabel, {
|
|
1871
1872
|
htmlFor: field.path,
|
|
1872
1873
|
children: props.label
|
|
1873
1874
|
}),
|
|
1874
|
-
/* @__PURE__ */
|
|
1875
|
+
/* @__PURE__ */ jsx14(VirtualizedCombobox, {
|
|
1875
1876
|
ariaInvalid: invalid,
|
|
1876
1877
|
ariaLabel,
|
|
1877
1878
|
emptyLabel: props.emptyLabel,
|
|
@@ -1886,10 +1887,10 @@ var SingleSearchableSelectField = ({
|
|
|
1886
1887
|
triggerId: field.path,
|
|
1887
1888
|
value: selectedItems[0] ?? null
|
|
1888
1889
|
}),
|
|
1889
|
-
props.description && /* @__PURE__ */
|
|
1890
|
+
props.description && /* @__PURE__ */ jsx14(FieldDescription, {
|
|
1890
1891
|
children: props.description
|
|
1891
1892
|
}),
|
|
1892
|
-
/* @__PURE__ */
|
|
1893
|
+
/* @__PURE__ */ jsx14(FieldError, {
|
|
1893
1894
|
error: field.error
|
|
1894
1895
|
})
|
|
1895
1896
|
]
|
|
@@ -1905,13 +1906,13 @@ var NullableKeyValueField = ({
|
|
|
1905
1906
|
return /* @__PURE__ */ jsxs6(Field, {
|
|
1906
1907
|
"data-invalid": Option.isSome(field.error),
|
|
1907
1908
|
children: [
|
|
1908
|
-
/* @__PURE__ */
|
|
1909
|
+
/* @__PURE__ */ jsx14(FieldLabel, {
|
|
1909
1910
|
children: props.label
|
|
1910
1911
|
}),
|
|
1911
1912
|
entries.map(([key, value], index) => /* @__PURE__ */ jsxs6("div", {
|
|
1912
1913
|
className: "flex w-full flex-row items-center gap-2",
|
|
1913
1914
|
children: [
|
|
1914
|
-
/* @__PURE__ */
|
|
1915
|
+
/* @__PURE__ */ jsx14(Input, {
|
|
1915
1916
|
id: `${field.path}-${index}-key`,
|
|
1916
1917
|
name: `${field.path}.${index}.key`,
|
|
1917
1918
|
type: "text",
|
|
@@ -1922,7 +1923,7 @@ var NullableKeyValueField = ({
|
|
|
1922
1923
|
onChange: (event) => field.onChange(updateEntry(index, event.target.value, value)),
|
|
1923
1924
|
"aria-invalid": Option.isSome(field.error)
|
|
1924
1925
|
}),
|
|
1925
|
-
/* @__PURE__ */
|
|
1926
|
+
/* @__PURE__ */ jsx14(Input, {
|
|
1926
1927
|
id: `${field.path}-${index}-value`,
|
|
1927
1928
|
name: `${field.path}.${index}.value`,
|
|
1928
1929
|
type: "text",
|
|
@@ -1938,7 +1939,7 @@ var NullableKeyValueField = ({
|
|
|
1938
1939
|
variant: "secondary",
|
|
1939
1940
|
onClick: () => field.onChange(Object.fromEntries(entries.filter((_, currentIndex) => currentIndex !== index))),
|
|
1940
1941
|
children: [
|
|
1941
|
-
/* @__PURE__ */
|
|
1942
|
+
/* @__PURE__ */ jsx14(Trash, {
|
|
1942
1943
|
"data-icon": "inline-start"
|
|
1943
1944
|
}),
|
|
1944
1945
|
labels.delete
|
|
@@ -1952,16 +1953,16 @@ var NullableKeyValueField = ({
|
|
|
1952
1953
|
className: "self-start",
|
|
1953
1954
|
onClick: () => field.onChange({ ...field.value, "": "" }),
|
|
1954
1955
|
children: [
|
|
1955
|
-
/* @__PURE__ */
|
|
1956
|
+
/* @__PURE__ */ jsx14(Plus, {
|
|
1956
1957
|
"data-icon": "inline-start"
|
|
1957
1958
|
}),
|
|
1958
1959
|
labels.add
|
|
1959
1960
|
]
|
|
1960
1961
|
}),
|
|
1961
|
-
props.description && /* @__PURE__ */
|
|
1962
|
+
props.description && /* @__PURE__ */ jsx14(FieldDescription, {
|
|
1962
1963
|
children: props.description
|
|
1963
1964
|
}),
|
|
1964
|
-
/* @__PURE__ */
|
|
1965
|
+
/* @__PURE__ */ jsx14(FieldError, {
|
|
1965
1966
|
error: field.error
|
|
1966
1967
|
})
|
|
1967
1968
|
]
|
|
@@ -1977,13 +1978,13 @@ var KeyValueField = ({
|
|
|
1977
1978
|
return /* @__PURE__ */ jsxs6(Field, {
|
|
1978
1979
|
"data-invalid": Option.isSome(field.error),
|
|
1979
1980
|
children: [
|
|
1980
|
-
/* @__PURE__ */
|
|
1981
|
+
/* @__PURE__ */ jsx14(FieldLabel, {
|
|
1981
1982
|
children: props.label
|
|
1982
1983
|
}),
|
|
1983
1984
|
entries.map(([key, value], index) => /* @__PURE__ */ jsxs6("div", {
|
|
1984
1985
|
className: "flex w-full flex-row items-center gap-2",
|
|
1985
1986
|
children: [
|
|
1986
|
-
/* @__PURE__ */
|
|
1987
|
+
/* @__PURE__ */ jsx14(Input, {
|
|
1987
1988
|
id: `${field.path}-${index}-key`,
|
|
1988
1989
|
name: `${field.path}.${index}.key`,
|
|
1989
1990
|
type: "text",
|
|
@@ -1994,7 +1995,7 @@ var KeyValueField = ({
|
|
|
1994
1995
|
onChange: (event) => field.onChange(updateEntry(index, event.target.value, value)),
|
|
1995
1996
|
"aria-invalid": Option.isSome(field.error)
|
|
1996
1997
|
}),
|
|
1997
|
-
/* @__PURE__ */
|
|
1998
|
+
/* @__PURE__ */ jsx14(Input, {
|
|
1998
1999
|
id: `${field.path}-${index}-value`,
|
|
1999
2000
|
name: `${field.path}.${index}.value`,
|
|
2000
2001
|
type: "text",
|
|
@@ -2010,7 +2011,7 @@ var KeyValueField = ({
|
|
|
2010
2011
|
variant: "secondary",
|
|
2011
2012
|
onClick: () => field.onChange(Object.fromEntries(entries.filter((_, currentIndex) => currentIndex !== index))),
|
|
2012
2013
|
children: [
|
|
2013
|
-
/* @__PURE__ */
|
|
2014
|
+
/* @__PURE__ */ jsx14(Trash, {
|
|
2014
2015
|
"data-icon": "inline-start"
|
|
2015
2016
|
}),
|
|
2016
2017
|
labels.delete
|
|
@@ -2024,16 +2025,16 @@ var KeyValueField = ({
|
|
|
2024
2025
|
className: "self-start",
|
|
2025
2026
|
onClick: () => field.onChange({ ...field.value, "": "" }),
|
|
2026
2027
|
children: [
|
|
2027
|
-
/* @__PURE__ */
|
|
2028
|
+
/* @__PURE__ */ jsx14(Plus, {
|
|
2028
2029
|
"data-icon": "inline-start"
|
|
2029
2030
|
}),
|
|
2030
2031
|
labels.add
|
|
2031
2032
|
]
|
|
2032
2033
|
}),
|
|
2033
|
-
props.description && /* @__PURE__ */
|
|
2034
|
+
props.description && /* @__PURE__ */ jsx14(FieldDescription, {
|
|
2034
2035
|
children: props.description
|
|
2035
2036
|
}),
|
|
2036
|
-
/* @__PURE__ */
|
|
2037
|
+
/* @__PURE__ */ jsx14(FieldError, {
|
|
2037
2038
|
error: field.error
|
|
2038
2039
|
})
|
|
2039
2040
|
]
|
|
@@ -2044,9 +2045,9 @@ var RevertButton = ({
|
|
|
2044
2045
|
props
|
|
2045
2046
|
}) => {
|
|
2046
2047
|
const labels = useEffectFormMessages(props.locale, props.messages);
|
|
2047
|
-
return field.value === props.original ? null : /* @__PURE__ */
|
|
2048
|
+
return field.value === props.original ? null : /* @__PURE__ */ jsx14("div", {
|
|
2048
2049
|
className: "flex flex-1 justify-end",
|
|
2049
|
-
children: /* @__PURE__ */
|
|
2050
|
+
children: /* @__PURE__ */ jsx14(Button, {
|
|
2050
2051
|
type: "button",
|
|
2051
2052
|
variant: "link",
|
|
2052
2053
|
className: "-mr-4 h-auto py-0",
|
|
@@ -2062,11 +2063,11 @@ var ImageField = ({ field, props }) => {
|
|
|
2062
2063
|
return /* @__PURE__ */ jsxs6(Field, {
|
|
2063
2064
|
"data-invalid": invalid,
|
|
2064
2065
|
children: [
|
|
2065
|
-
/* @__PURE__ */
|
|
2066
|
+
/* @__PURE__ */ jsx14(FieldLabel, {
|
|
2066
2067
|
htmlFor: field.path,
|
|
2067
2068
|
children: props.label
|
|
2068
2069
|
}),
|
|
2069
|
-
/* @__PURE__ */
|
|
2070
|
+
/* @__PURE__ */ jsx14(FilePicker, {
|
|
2070
2071
|
accept: "image/*",
|
|
2071
2072
|
onBlur: field.onBlur,
|
|
2072
2073
|
canClear: Boolean(field.value),
|
|
@@ -2086,10 +2087,10 @@ var ImageField = ({ field, props }) => {
|
|
|
2086
2087
|
onClear: () => field.onChange(null),
|
|
2087
2088
|
title: field.value instanceof File ? field.value.name : props.label
|
|
2088
2089
|
}),
|
|
2089
|
-
props.size.suggestedWidth && props.size.suggestedHeight ? /* @__PURE__ */
|
|
2090
|
+
props.size.suggestedWidth && props.size.suggestedHeight ? /* @__PURE__ */ jsx14(FieldDescription, {
|
|
2090
2091
|
children: labels.suggestedImageSize(String(props.size.suggestedWidth), String(props.size.suggestedHeight))
|
|
2091
2092
|
}) : null,
|
|
2092
|
-
/* @__PURE__ */
|
|
2093
|
+
/* @__PURE__ */ jsx14(FieldError, {
|
|
2093
2094
|
error: field.error
|
|
2094
2095
|
})
|
|
2095
2096
|
]
|
|
@@ -2097,35 +2098,35 @@ var ImageField = ({ field, props }) => {
|
|
|
2097
2098
|
};
|
|
2098
2099
|
var NavigationBlock = ({
|
|
2099
2100
|
locale,
|
|
2100
|
-
messages,
|
|
2101
|
+
messages: messages4,
|
|
2101
2102
|
shouldBlock
|
|
2102
2103
|
}) => {
|
|
2103
|
-
const labels = useEffectFormMessages(locale,
|
|
2104
|
-
return /* @__PURE__ */
|
|
2104
|
+
const labels = useEffectFormMessages(locale, messages4);
|
|
2105
|
+
return /* @__PURE__ */ jsx14(Block, {
|
|
2105
2106
|
enableBeforeUnload: () => shouldBlock,
|
|
2106
2107
|
shouldBlockFn: () => shouldBlock,
|
|
2107
2108
|
withResolver: true,
|
|
2108
|
-
children: ({ status, proceed, reset }) => /* @__PURE__ */
|
|
2109
|
+
children: ({ status, proceed, reset }) => /* @__PURE__ */ jsx14(AlertDialog, {
|
|
2109
2110
|
open: status === "blocked",
|
|
2110
2111
|
children: /* @__PURE__ */ jsxs6(AlertDialogContent, {
|
|
2111
2112
|
children: [
|
|
2112
2113
|
/* @__PURE__ */ jsxs6(AlertDialogHeader, {
|
|
2113
2114
|
children: [
|
|
2114
|
-
/* @__PURE__ */
|
|
2115
|
+
/* @__PURE__ */ jsx14(AlertDialogTitle, {
|
|
2115
2116
|
children: labels.blockNavigationTitle
|
|
2116
2117
|
}),
|
|
2117
|
-
/* @__PURE__ */
|
|
2118
|
+
/* @__PURE__ */ jsx14(AlertDialogDescription, {
|
|
2118
2119
|
children: labels.blockNavigationDescription
|
|
2119
2120
|
})
|
|
2120
2121
|
]
|
|
2121
2122
|
}),
|
|
2122
2123
|
/* @__PURE__ */ jsxs6(AlertDialogFooter, {
|
|
2123
2124
|
children: [
|
|
2124
|
-
/* @__PURE__ */
|
|
2125
|
+
/* @__PURE__ */ jsx14(AlertDialogCancel, {
|
|
2125
2126
|
onClick: reset,
|
|
2126
2127
|
children: labels.blockNavigationCancel
|
|
2127
2128
|
}),
|
|
2128
|
-
/* @__PURE__ */
|
|
2129
|
+
/* @__PURE__ */ jsx14(AlertDialogAction, {
|
|
2129
2130
|
onClick: proceed,
|
|
2130
2131
|
children: labels.blockNavigationConfirm
|
|
2131
2132
|
})
|
|
@@ -2139,44 +2140,44 @@ var NavigationBlock = ({
|
|
|
2139
2140
|
var FormBlockNavigation = ({
|
|
2140
2141
|
form,
|
|
2141
2142
|
locale,
|
|
2142
|
-
messages
|
|
2143
|
+
messages: messages4
|
|
2143
2144
|
}) => {
|
|
2144
2145
|
const submitResult = useAtomValue(form.submit);
|
|
2145
2146
|
const isDirty = useAtomValue(form.isDirty);
|
|
2146
2147
|
const hasChangedSinceSubmit = useAtomValue(form.hasChangedSinceSubmit);
|
|
2147
2148
|
const lastSubmittedValues = useAtomValue(form.lastSubmittedValues);
|
|
2148
2149
|
const shouldBlock = !submitResult.waiting && (Option.isNone(lastSubmittedValues) ? isDirty : hasChangedSinceSubmit);
|
|
2149
|
-
return /* @__PURE__ */
|
|
2150
|
+
return /* @__PURE__ */ jsx14(NavigationBlock, {
|
|
2150
2151
|
locale,
|
|
2151
|
-
messages,
|
|
2152
|
+
messages: messages4,
|
|
2152
2153
|
shouldBlock
|
|
2153
2154
|
});
|
|
2154
2155
|
};
|
|
2155
|
-
var BlockNavigation = (props) => /* @__PURE__ */
|
|
2156
|
+
var BlockNavigation = (props) => /* @__PURE__ */ jsx14(FormBlockNavigation, {
|
|
2156
2157
|
...props
|
|
2157
2158
|
});
|
|
2158
2159
|
export {
|
|
2159
|
-
|
|
2160
|
-
CheckboxField,
|
|
2161
|
-
DescriptionField,
|
|
2162
|
-
ErrorMessage,
|
|
2163
|
-
FieldWrapper,
|
|
2164
|
-
FileField,
|
|
2165
|
-
FolderField,
|
|
2166
|
-
ImageField,
|
|
2167
|
-
KeyValueField,
|
|
2168
|
-
MultiSelectField,
|
|
2169
|
-
NameField,
|
|
2170
|
-
NullableKeyValueField,
|
|
2171
|
-
NullableMultiSelectField,
|
|
2172
|
-
NullableTextAreaField,
|
|
2173
|
-
RevertButton,
|
|
2174
|
-
SearchableSelectField,
|
|
2175
|
-
SelectField,
|
|
2176
|
-
SingleSearchableSelectField,
|
|
2177
|
-
SubmitButton,
|
|
2178
|
-
SubmitError,
|
|
2179
|
-
TextAreaField,
|
|
2160
|
+
effectFormMessages,
|
|
2180
2161
|
TextField,
|
|
2181
|
-
|
|
2162
|
+
TextAreaField,
|
|
2163
|
+
SubmitError,
|
|
2164
|
+
SubmitButton,
|
|
2165
|
+
SingleSearchableSelectField,
|
|
2166
|
+
SelectField,
|
|
2167
|
+
SearchableSelectField,
|
|
2168
|
+
RevertButton,
|
|
2169
|
+
NullableTextAreaField,
|
|
2170
|
+
NullableMultiSelectField,
|
|
2171
|
+
NullableKeyValueField,
|
|
2172
|
+
NameField,
|
|
2173
|
+
MultiSelectField,
|
|
2174
|
+
KeyValueField,
|
|
2175
|
+
ImageField,
|
|
2176
|
+
FolderField,
|
|
2177
|
+
FileField,
|
|
2178
|
+
FieldWrapper,
|
|
2179
|
+
ErrorMessage,
|
|
2180
|
+
DescriptionField,
|
|
2181
|
+
CheckboxField,
|
|
2182
|
+
BlockNavigation
|
|
2182
2183
|
};
|