@krak-stack/registry 0.11.4 → 0.11.5
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 +13 -1
- package/README.md +23 -9
- package/dist/components/agent/react.js +226 -1072
- package/dist/components/app-switcher/html.js +10 -53
- package/dist/components/app-switcher/react.js +29 -139
- package/dist/components/async-action-button/html.js +3 -34
- package/dist/components/async-action-button/react.d.ts +1 -1
- package/dist/components/async-action-button/react.js +8 -54
- package/dist/components/audit-log-table/react.js +555 -1265
- package/dist/components/bulk-list-input/html.js +3 -40
- package/dist/components/bulk-list-input/react.d.ts +1 -1
- package/dist/components/bulk-list-input/react.js +6 -59
- package/dist/components/code-block/html.js +1 -35
- package/dist/components/code-block/react.js +12 -59
- package/dist/components/color-input/html.js +2 -19
- package/dist/components/color-input/react.js +6 -97
- package/dist/components/copy-button/html.js +1 -35
- package/dist/components/copy-button/react.d.ts +1 -1
- package/dist/components/copy-button/react.js +7 -54
- package/dist/components/copy-value/html.js +11 -52
- package/dist/components/copy-value/react.js +25 -165
- package/dist/components/cron-input/html.js +2 -18
- package/dist/components/cron-input/react.js +15 -30
- package/dist/components/danger-confirmation/html.js +11 -57
- package/dist/components/danger-confirmation/react.js +26 -187
- package/dist/components/data-table/html.d.ts +12 -12
- package/dist/components/data-table/html.js +200 -174
- package/dist/components/data-table/react.js +549 -1259
- package/dist/components/date-input/html.js +19 -74
- package/dist/components/date-input/react.d.ts +1 -1
- package/dist/components/date-input/react.js +28 -313
- package/dist/components/docs/classes.d.ts +15 -0
- package/dist/components/docs/html.d.ts +55 -0
- package/dist/components/docs/html.js +837 -0
- package/dist/components/docs/index.d.ts +49 -0
- package/dist/components/docs/react.d.ts +10 -0
- package/dist/components/docs/react.js +949 -0
- package/dist/components/docs/schema.d.ts +49 -0
- package/dist/components/editable-text/html.js +6 -52
- package/dist/components/editable-text/react.js +13 -83
- package/dist/components/editing-locale-switcher/html.d.ts +2 -2
- package/dist/components/editing-locale-switcher/html.js +13 -43
- package/dist/components/editing-locale-switcher/react.js +17 -141
- package/dist/components/effect-form/react.js +249 -812
- package/dist/components/email-composer/react.js +62 -279
- package/dist/components/email-editor/html.js +13 -58
- package/dist/components/email-editor/react.js +187 -483
- package/dist/components/error-component/html.js +2 -47
- package/dist/components/error-component/react.js +33 -137
- package/dist/components/file-input/html.js +9 -40
- package/dist/components/file-input/react.js +39 -208
- package/dist/components/form/react.js +212 -777
- package/dist/components/icon-input/html.js +9 -56
- package/dist/components/icon-input/react.js +43 -143
- package/dist/components/image-crop-editor/html.js +1 -35
- package/dist/components/image-crop-editor/react.js +21 -66
- package/dist/components/locale-switcher/html.js +8 -55
- package/dist/components/locale-switcher/react.js +21 -146
- package/dist/components/map-menu/html.d.ts +8 -8
- package/dist/components/map-menu/html.js +13 -72
- package/dist/components/map-menu/react.js +92 -309
- package/dist/components/markdown/html.js +1 -35
- package/dist/components/markdown/react.js +20 -64
- package/dist/components/notification-menu/html.js +14 -50
- package/dist/components/notification-menu/react.js +73 -343
- package/dist/components/pagination/html.js +17 -73
- package/dist/components/pagination/react.js +37 -200
- package/dist/components/phone-number-input/html.js +19 -57
- package/dist/components/phone-number-input/react.d.ts +1 -1
- package/dist/components/phone-number-input/react.js +43 -142
- package/dist/components/presence-transition/index.d.ts +2 -2
- package/dist/components/registry-previews/component-example.js +26 -126
- package/dist/components/rich-text-editor/html.d.ts +12 -12
- package/dist/components/rich-text-editor/html.js +12 -85
- package/dist/components/rich-text-editor/react.js +55 -272
- package/dist/components/search-menu/classes.d.ts +2 -0
- package/dist/components/search-menu/html.d.ts +2 -0
- package/dist/components/search-menu/html.js +40 -73
- package/dist/components/search-menu/index.d.ts +27 -2
- package/dist/components/search-menu/react.d.ts +1 -1
- package/dist/components/search-menu/react.js +59 -280
- package/dist/components/search-menu/schema.d.ts +1 -0
- package/dist/components/select-with-custom-input/html.d.ts +2 -2
- package/dist/components/select-with-custom-input/html.js +13 -48
- package/dist/components/select-with-custom-input/react.js +22 -146
- package/dist/components/sidebar-layout/html.d.ts +16 -6
- package/dist/components/sidebar-layout/html.js +83 -69
- package/dist/components/sidebar-layout/index.d.ts +16 -0
- package/dist/components/sidebar-layout/react.js +105 -698
- package/dist/components/stats-card/react.js +13 -58
- package/dist/components/support/html.js +14 -69
- package/dist/components/support/react.js +74 -320
- package/dist/components/theme-switcher/html.js +11 -55
- package/dist/components/theme-switcher/react.js +28 -152
- package/dist/components/time-input/html.d.ts +2 -2
- package/dist/components/time-input/html.js +8 -53
- package/dist/components/time-input/react.js +34 -188
- package/dist/components/timezone-input/html.js +11 -67
- package/dist/components/timezone-input/react.js +41 -143
- package/dist/components/toast/html.d.ts +6 -6
- package/dist/components/toast/html.js +13 -46
- package/dist/components/tracking-notice/react.js +39 -188
- package/dist/components/unsaved-changes-guard/html.js +9 -43
- package/dist/components/unsaved-changes-guard/react.js +19 -169
- package/dist/components/upload-attachment/html.d.ts +4 -4
- package/dist/components/upload-attachment/html.js +4 -35
- package/dist/components/upload-attachment/react.js +25 -164
- package/dist/components/virtualized-combobox/html.js +10 -35
- package/dist/components/virtualized-combobox/react.js +28 -129
- package/dist/components/webhook-delivery-table/html.js +211 -184
- package/dist/components/webhook-delivery-table/react.js +585 -1362
- package/dist/lib/docs.integrations.server.js +150 -202
- package/dist/lib/docs.js +305 -1085
- package/dist/lib/docs.server.js +134 -186
- package/dist/lib/documentation-toolkit.js +144 -196
- package/dist/services/agent/client/index.js +226 -1072
- package/dist/services/notification/client/index.js +73 -343
- package/dist/services/notification/public.js +73 -343
- package/package.json +5 -13
- package/dist/components/effectcn/alert-dialog.d.ts +0 -13
- package/dist/components/effectcn/button.d.ts +0 -31
- package/dist/components/effectcn/calendar.d.ts +0 -12
- package/dist/components/effectcn/checkbox.d.ts +0 -10
- package/dist/components/effectcn/combobox.d.ts +0 -25
- package/dist/components/effectcn/dialog.d.ts +0 -19
- package/dist/components/effectcn/field.d.ts +0 -11
- package/dist/components/effectcn/file-drop.d.ts +0 -8
- package/dist/components/effectcn/input.d.ts +0 -26
- package/dist/components/effectcn/menu.d.ts +0 -85
- package/dist/components/effectcn/menubar.d.ts +0 -8
- package/dist/components/effectcn/popover.d.ts +0 -18
- package/dist/components/effectcn/scroll-area.d.ts +0 -12
- package/dist/components/effectcn/select.d.ts +0 -68
- package/dist/components/effectcn/toast.d.ts +0 -29
- package/dist/components/ui/alert-dialog.d.ts +0 -18
- package/dist/components/ui/alert.d.ts +0 -10
- package/dist/components/ui/attachment.d.ts +0 -23
- package/dist/components/ui/badge.d.ts +0 -7
- package/dist/components/ui/bubble.d.ts +0 -16
- package/dist/components/ui/button.d.ts +0 -8
- package/dist/components/ui/calendar.d.ts +0 -10
- package/dist/components/ui/card.d.ts +0 -11
- package/dist/components/ui/checkbox.d.ts +0 -3
- package/dist/components/ui/collapsible.d.ts +0 -5
- package/dist/components/ui/command.d.ts +0 -18
- package/dist/components/ui/dialog.d.ts +0 -17
- package/dist/components/ui/dropdown-menu.d.ts +0 -29
- package/dist/components/ui/empty.d.ts +0 -11
- package/dist/components/ui/field.d.ts +0 -24
- package/dist/components/ui/input-group.d.ts +0 -17
- package/dist/components/ui/input.d.ts +0 -3
- package/dist/components/ui/item.d.ts +0 -22
- package/dist/components/ui/label.d.ts +0 -3
- package/dist/components/ui/menubar.d.ts +0 -29
- package/dist/components/ui/message-scroller.d.ts +0 -10
- package/dist/components/ui/message.d.ts +0 -10
- package/dist/components/ui/popover.d.ts +0 -9
- package/dist/components/ui/scroll-area.d.ts +0 -4
- package/dist/components/ui/select.d.ts +0 -15
- package/dist/components/ui/select.js +0 -159
- package/dist/components/ui/separator.d.ts +0 -3
- package/dist/components/ui/sheet.d.ts +0 -14
- package/dist/components/ui/sidebar.d.ts +0 -63
- package/dist/components/ui/skeleton.d.ts +0 -2
- package/dist/components/ui/table.d.ts +0 -10
- package/dist/components/ui/tabs.d.ts +0 -10
- package/dist/components/ui/textarea.d.ts +0 -3
- package/dist/components/ui/tooltip.d.ts +0 -6
- package/dist/components/ui/trace.d.ts +0 -18
- package/dist/lib/effectcn-form.d.ts +0 -3
- package/dist/lib/effectcn-form.js +0 -54
|
@@ -1,64 +1,18 @@
|
|
|
1
1
|
// ../../src/components/danger-confirmation/html.ts
|
|
2
2
|
import { Html } from "effect/ui/html";
|
|
3
3
|
import { AlertDialog } from "effect/ui/kit";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
Button as KitButton
|
|
8
|
-
} from "effect/ui/kit";
|
|
9
|
-
|
|
10
|
-
// ../../src/lib/utils.ts
|
|
11
|
-
import { cn } from "cn";
|
|
12
|
-
|
|
13
|
-
// ../../src/components/effectcn/button.ts
|
|
14
|
-
var base = "inline-flex h-8.5 shrink-0 items-center justify-center gap-1.5 rounded-md border border-transparent px-3.5 text-[13px] leading-none font-medium whitespace-nowrap no-underline select-none transition-[background-color,border-color,color,opacity] duration-150 active:translate-y-px data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg]:size-[15px] [&_svg]:shrink-0 data-[loading]:before:size-3 data-[loading]:before:animate-spin data-[loading]:before:rounded-full data-[loading]:before:border-2 data-[loading]:before:border-current data-[loading]:before:border-r-transparent";
|
|
15
|
-
var variants = {
|
|
16
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/85",
|
|
17
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-accent",
|
|
18
|
-
outline: "border-input bg-background text-foreground shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
19
|
-
ghost: "text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
20
|
-
brand: "bg-brand-soft text-brand-soft-foreground hover:bg-brand-soft/85",
|
|
21
|
-
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85",
|
|
22
|
-
link: "h-auto px-0 text-foreground underline decoration-transparent underline-offset-4 hover:decoration-current"
|
|
23
|
-
};
|
|
24
|
-
var sizes = {
|
|
25
|
-
default: "",
|
|
26
|
-
sm: "h-7 rounded-sm px-2.5 text-xs",
|
|
27
|
-
lg: "h-10 px-5 text-sm",
|
|
28
|
-
icon: "w-8.5 px-0",
|
|
29
|
-
"icon-sm": "h-7 w-7 rounded-sm px-0"
|
|
30
|
-
};
|
|
31
|
-
var buttonVariants = (options = {}) => cn(base, variants[options.variant ?? "default"], sizes[options.size ?? "default"], options.class);
|
|
32
|
-
var Button = (h, options = {}) => KitButton(h, {
|
|
33
|
-
element: options.element,
|
|
34
|
-
onPress: options.onPress,
|
|
35
|
-
props: options.loading ? { ...options.props, disabled: true, focusableWhenDisabled: true } : options.props
|
|
36
|
-
}).class(buttonVariants(options)).attr("data-loading", options.loading ? "" : undefined);
|
|
37
|
-
|
|
38
|
-
// ../../src/components/effectcn/input.ts
|
|
39
|
-
import {
|
|
40
|
-
Input as KitInput
|
|
41
|
-
} from "effect/ui/kit";
|
|
42
|
-
var base2 = "block h-8.5 w-full min-w-0 rounded-md border border-input bg-background px-3 text-[13px] text-foreground shadow-sm outline-none " + "transition-[border-color,box-shadow] duration-150 placeholder:text-muted-foreground " + "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/20 " + "aria-invalid:border-destructive aria-invalid:focus-visible:ring-destructive/20 " + "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 " + "[&[readonly]]:bg-muted [&[readonly]]:text-muted-foreground [&[readonly]]:shadow-none " + "[&[type=file]]:cursor-pointer [&[type=file]]:pl-0 [&[type=file]]:leading-8 [&[type=file]]:text-muted-foreground " + "file:mr-3 file:h-8 file:cursor-pointer file:border-0 file:border-r file:border-solid file:border-input file:bg-muted file:px-3 " + "file:text-[13px] file:font-medium file:text-foreground";
|
|
43
|
-
var sizes2 = {
|
|
44
|
-
default: "",
|
|
45
|
-
sm: "h-7 rounded-sm px-2.5 text-xs",
|
|
46
|
-
lg: "h-10 px-3.5 text-sm"
|
|
47
|
-
};
|
|
48
|
-
var inputVariants = (options = {}) => cn(base2, sizes2[options.size ?? "default"], options.class);
|
|
49
|
-
var Input = (h, options) => KitInput(h, options).class(inputVariants(options));
|
|
50
|
-
|
|
51
|
-
// ../../src/components/danger-confirmation/html.ts
|
|
4
|
+
import { Button, buttonVariants } from "@/components/effectcn/button";
|
|
5
|
+
import { Input } from "@/components/effectcn/input";
|
|
52
6
|
import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
7
|
+
import {
|
|
8
|
+
AlertDialogBackdrop,
|
|
9
|
+
AlertDialogDescription,
|
|
10
|
+
AlertDialogFooter,
|
|
11
|
+
AlertDialogHeader,
|
|
12
|
+
AlertDialogPopup,
|
|
13
|
+
AlertDialogTitle,
|
|
14
|
+
AlertDialogViewport
|
|
15
|
+
} from "@/components/effectcn/alert-dialog";
|
|
62
16
|
|
|
63
17
|
// ../../src/components/danger-confirmation/classes.ts
|
|
64
18
|
var dangerConfirmationClasses = {
|
|
@@ -7,179 +7,18 @@ import {
|
|
|
7
7
|
useRef,
|
|
8
8
|
useState
|
|
9
9
|
} from "react";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
variants: {
|
|
23
|
-
variant: {
|
|
24
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
25
|
-
outline: "border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
|
|
26
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
|
|
27
|
-
ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
|
|
28
|
-
destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
|
|
29
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
30
|
-
},
|
|
31
|
-
size: {
|
|
32
|
-
default: "h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
33
|
-
xs: "h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
34
|
-
sm: "h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
|
|
35
|
-
lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
36
|
-
icon: "size-9",
|
|
37
|
-
"icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
|
|
38
|
-
"icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
|
|
39
|
-
"icon-lg": "size-10"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
defaultVariants: {
|
|
43
|
-
variant: "default",
|
|
44
|
-
size: "default"
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
function Button({
|
|
48
|
-
className,
|
|
49
|
-
variant = "default",
|
|
50
|
-
size = "default",
|
|
51
|
-
...props
|
|
52
|
-
}) {
|
|
53
|
-
return /* @__PURE__ */ jsx(ButtonPrimitive, {
|
|
54
|
-
"data-slot": "button",
|
|
55
|
-
className: cn(buttonVariants({ variant, size, className })),
|
|
56
|
-
...props
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// ../../src/components/ui/alert-dialog.tsx
|
|
61
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
62
|
-
"use client";
|
|
63
|
-
function AlertDialog({ ...props }) {
|
|
64
|
-
return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Root, {
|
|
65
|
-
"data-slot": "alert-dialog",
|
|
66
|
-
...props
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
function AlertDialogPortal({ ...props }) {
|
|
70
|
-
return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Portal, {
|
|
71
|
-
"data-slot": "alert-dialog-portal",
|
|
72
|
-
...props
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
function AlertDialogOverlay({
|
|
76
|
-
className,
|
|
77
|
-
...props
|
|
78
|
-
}) {
|
|
79
|
-
return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Backdrop, {
|
|
80
|
-
"data-slot": "alert-dialog-overlay",
|
|
81
|
-
className: cn("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", className),
|
|
82
|
-
...props
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
function AlertDialogContent({
|
|
86
|
-
className,
|
|
87
|
-
size = "default",
|
|
88
|
-
...props
|
|
89
|
-
}) {
|
|
90
|
-
return /* @__PURE__ */ jsxs(AlertDialogPortal, {
|
|
91
|
-
children: [
|
|
92
|
-
/* @__PURE__ */ jsx2(AlertDialogOverlay, {}),
|
|
93
|
-
/* @__PURE__ */ jsx2(AlertDialogPrimitive.Popup, {
|
|
94
|
-
"data-slot": "alert-dialog-content",
|
|
95
|
-
"data-size": size,
|
|
96
|
-
className: cn("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg 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),
|
|
97
|
-
...props
|
|
98
|
-
})
|
|
99
|
-
]
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
function AlertDialogHeader({
|
|
103
|
-
className,
|
|
104
|
-
...props
|
|
105
|
-
}) {
|
|
106
|
-
return /* @__PURE__ */ jsx2("div", {
|
|
107
|
-
"data-slot": "alert-dialog-header",
|
|
108
|
-
className: cn("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", className),
|
|
109
|
-
...props
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
function AlertDialogFooter({
|
|
113
|
-
className,
|
|
114
|
-
...props
|
|
115
|
-
}) {
|
|
116
|
-
return /* @__PURE__ */ jsx2("div", {
|
|
117
|
-
"data-slot": "alert-dialog-footer",
|
|
118
|
-
className: cn("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", className),
|
|
119
|
-
...props
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
function AlertDialogTitle({
|
|
123
|
-
className,
|
|
124
|
-
...props
|
|
125
|
-
}) {
|
|
126
|
-
return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Title, {
|
|
127
|
-
"data-slot": "alert-dialog-title",
|
|
128
|
-
className: cn("text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", className),
|
|
129
|
-
...props
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
function AlertDialogDescription({
|
|
133
|
-
className,
|
|
134
|
-
...props
|
|
135
|
-
}) {
|
|
136
|
-
return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Description, {
|
|
137
|
-
"data-slot": "alert-dialog-description",
|
|
138
|
-
className: cn("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
|
|
139
|
-
...props
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
function AlertDialogCancel({
|
|
143
|
-
className,
|
|
144
|
-
variant = "outline",
|
|
145
|
-
size = "default",
|
|
146
|
-
...props
|
|
147
|
-
}) {
|
|
148
|
-
return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Close, {
|
|
149
|
-
"data-slot": "alert-dialog-cancel",
|
|
150
|
-
className: cn(className),
|
|
151
|
-
render: /* @__PURE__ */ jsx2(Button, {
|
|
152
|
-
variant,
|
|
153
|
-
size
|
|
154
|
-
}),
|
|
155
|
-
...props
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// ../../src/components/ui/input.tsx
|
|
160
|
-
import { Input as InputPrimitive } from "@base-ui/react/input";
|
|
161
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
162
|
-
function Input({ className, type, ...props }) {
|
|
163
|
-
return /* @__PURE__ */ jsx3(InputPrimitive, {
|
|
164
|
-
type,
|
|
165
|
-
"data-slot": "input",
|
|
166
|
-
className: cn("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none 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),
|
|
167
|
-
...props
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
// ../../src/components/ui/label.tsx
|
|
172
|
-
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
173
|
-
"use client";
|
|
174
|
-
function Label({ className, ...props }) {
|
|
175
|
-
return /* @__PURE__ */ jsx4("label", {
|
|
176
|
-
"data-slot": "label",
|
|
177
|
-
className: cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className),
|
|
178
|
-
...props
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// ../../src/components/danger-confirmation/react.tsx
|
|
10
|
+
import {
|
|
11
|
+
AlertDialog,
|
|
12
|
+
AlertDialogCancel,
|
|
13
|
+
AlertDialogContent,
|
|
14
|
+
AlertDialogDescription,
|
|
15
|
+
AlertDialogFooter,
|
|
16
|
+
AlertDialogHeader,
|
|
17
|
+
AlertDialogTitle
|
|
18
|
+
} from "@/components/ui/alert-dialog";
|
|
19
|
+
import { Button } from "@/components/ui/button";
|
|
20
|
+
import { Input } from "@/components/ui/input";
|
|
21
|
+
import { Label } from "@/components/ui/label";
|
|
183
22
|
import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
|
|
184
23
|
import { useModel } from "@krak-stack/registry/effect-ui-adapter/react";
|
|
185
24
|
|
|
@@ -293,7 +132,7 @@ var DangerConfirmationModel = Definition.make({
|
|
|
293
132
|
});
|
|
294
133
|
|
|
295
134
|
// ../../src/components/danger-confirmation/react.tsx
|
|
296
|
-
import { jsx
|
|
135
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
297
136
|
"use client";
|
|
298
137
|
var DangerConfirmation = (props) => {
|
|
299
138
|
const dangerConfirmationClasses = resolveDangerConfirmationClasses(props.classes);
|
|
@@ -319,7 +158,7 @@ var DangerConfirmation = (props) => {
|
|
|
319
158
|
if (!open && (model.open || status === "succeeded"))
|
|
320
159
|
send(DangerConfirmationMessage.Dismissed());
|
|
321
160
|
}, [model.open, onOpenChange, open, send, status]);
|
|
322
|
-
return /* @__PURE__ */
|
|
161
|
+
return /* @__PURE__ */ jsx(AlertDialog, {
|
|
323
162
|
open,
|
|
324
163
|
onOpenChange: (next, event) => {
|
|
325
164
|
if (!next && pending) {
|
|
@@ -328,33 +167,33 @@ var DangerConfirmation = (props) => {
|
|
|
328
167
|
}
|
|
329
168
|
onOpenChange(next);
|
|
330
169
|
},
|
|
331
|
-
children: /* @__PURE__ */
|
|
170
|
+
children: /* @__PURE__ */ jsxs(AlertDialogContent, {
|
|
332
171
|
"data-component": "danger-confirmation",
|
|
333
172
|
className: props.className,
|
|
334
173
|
children: [
|
|
335
|
-
/* @__PURE__ */
|
|
174
|
+
/* @__PURE__ */ jsxs(AlertDialogHeader, {
|
|
336
175
|
children: [
|
|
337
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ jsx(AlertDialogTitle, {
|
|
338
177
|
children: title
|
|
339
178
|
}),
|
|
340
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ jsx(AlertDialogDescription, {
|
|
341
180
|
children: description
|
|
342
181
|
})
|
|
343
182
|
]
|
|
344
183
|
}),
|
|
345
|
-
confirmation !== undefined ? /* @__PURE__ */
|
|
184
|
+
confirmation !== undefined ? /* @__PURE__ */ jsxs("div", {
|
|
346
185
|
className: dangerConfirmationClasses.confirmationField,
|
|
347
186
|
children: [
|
|
348
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ jsx(Label, {
|
|
349
188
|
htmlFor: id,
|
|
350
189
|
children: copy.typeToConfirm
|
|
351
190
|
}),
|
|
352
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ jsx("code", {
|
|
353
192
|
id: `${id}-phrase`,
|
|
354
193
|
className: "text-sm break-all",
|
|
355
194
|
children: confirmation
|
|
356
195
|
}),
|
|
357
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ jsx(Input, {
|
|
358
197
|
id,
|
|
359
198
|
"aria-describedby": `${id}-phrase`,
|
|
360
199
|
value: text,
|
|
@@ -365,14 +204,14 @@ var DangerConfirmation = (props) => {
|
|
|
365
204
|
})
|
|
366
205
|
]
|
|
367
206
|
}) : null,
|
|
368
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ jsxs(AlertDialogFooter, {
|
|
369
208
|
children: [
|
|
370
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ jsx(AlertDialogCancel, {
|
|
371
210
|
type: "button",
|
|
372
211
|
disabled: pending,
|
|
373
212
|
children: copy.cancel
|
|
374
213
|
}),
|
|
375
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ jsx(Button, {
|
|
376
215
|
type: "button",
|
|
377
216
|
variant: "destructive",
|
|
378
217
|
disabled: pending || !matchesConfirmation(confirmation, text),
|
|
@@ -382,7 +221,7 @@ var DangerConfirmation = (props) => {
|
|
|
382
221
|
})
|
|
383
222
|
]
|
|
384
223
|
}),
|
|
385
|
-
status === "failed" && /* @__PURE__ */
|
|
224
|
+
status === "failed" && /* @__PURE__ */ jsx("p", {
|
|
386
225
|
role: "status",
|
|
387
226
|
className: "text-destructive text-sm",
|
|
388
227
|
children: copy.error
|
|
@@ -1639,18 +1639,6 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
1639
1639
|
} | null;
|
|
1640
1640
|
readonly invalidFilter: boolean;
|
|
1641
1641
|
}, {
|
|
1642
|
-
readonly _tag: "PreferencesLoaded";
|
|
1643
|
-
readonly preferences: {
|
|
1644
|
-
readonly columnVisibility: {
|
|
1645
|
-
readonly [x: string]: boolean;
|
|
1646
|
-
};
|
|
1647
|
-
readonly columnSizing: {
|
|
1648
|
-
readonly [x: string]: number;
|
|
1649
|
-
};
|
|
1650
|
-
readonly grouping?: readonly string[] | undefined;
|
|
1651
|
-
readonly view: "gallery" | "table";
|
|
1652
|
-
} | null;
|
|
1653
|
-
} | {
|
|
1654
1642
|
readonly _tag: "BuiltInExportRequested";
|
|
1655
1643
|
readonly format: "csv" | "json";
|
|
1656
1644
|
readonly locale?: string | undefined;
|
|
@@ -1790,6 +1778,18 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
1790
1778
|
} | {
|
|
1791
1779
|
readonly _tag: "PageSizeRequested";
|
|
1792
1780
|
readonly pageSize: number;
|
|
1781
|
+
} | {
|
|
1782
|
+
readonly _tag: "PreferencesLoaded";
|
|
1783
|
+
readonly preferences: {
|
|
1784
|
+
readonly columnVisibility: {
|
|
1785
|
+
readonly [x: string]: boolean;
|
|
1786
|
+
};
|
|
1787
|
+
readonly columnSizing: {
|
|
1788
|
+
readonly [x: string]: number;
|
|
1789
|
+
};
|
|
1790
|
+
readonly grouping?: readonly string[] | undefined;
|
|
1791
|
+
readonly view: "gallery" | "table";
|
|
1792
|
+
} | null;
|
|
1793
1793
|
} | {
|
|
1794
1794
|
readonly _tag: "ReferenceImageFailed";
|
|
1795
1795
|
readonly src: string;
|