@krak-stack/registry 0.11.4 → 0.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -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 +706 -1279
- 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/classes.d.ts +9 -3
- package/dist/components/data-table/html.d.ts +93 -21
- package/dist/components/data-table/html.js +309 -196
- package/dist/components/data-table/index.d.ts +97 -9
- package/dist/components/data-table/react.d.ts +14 -3
- package/dist/components/data-table/react.js +700 -1273
- package/dist/components/data-table/schema.d.ts +175 -16
- 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 +320 -206
- package/dist/components/webhook-delivery-table/react.js +736 -1376
- 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
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { TableClassesOverrides } from "./schema.js";
|
|
2
|
+
export declare const booleanCellControl = "flex min-h-16 w-full items-center justify-start px-2 in-[[data-slot=table-cell]]:absolute in-[[data-slot=table-cell]]:inset-0 in-[[data-slot=table-cell]]:min-h-0 has-[:focus-visible]:outline-2 has-[:focus-visible]:-outline-offset-2 has-[:focus-visible]:outline-ring";
|
|
3
|
+
export declare const tableBadgeTones: {
|
|
4
|
+
success: string;
|
|
5
|
+
info: string;
|
|
6
|
+
muted: string;
|
|
7
|
+
};
|
|
2
8
|
export declare const tableClasses: {
|
|
3
9
|
readonly selectionCell: "w-10 p-0 align-middle";
|
|
4
10
|
readonly selectionCenter: "grid place-items-center";
|
|
@@ -10,16 +16,16 @@ export declare const tableClasses: {
|
|
|
10
16
|
readonly menubar: "h-auto w-full flex-wrap justify-start border border-input bg-transparent";
|
|
11
17
|
readonly cell: "overflow-hidden";
|
|
12
18
|
readonly cellContent: "min-w-0 wrap-anywhere";
|
|
13
|
-
readonly actionTrigger: "size-8 focus-visible:ring-
|
|
19
|
+
readonly actionTrigger: "size-8 focus-visible:ring-0 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring";
|
|
14
20
|
readonly actionsCell: "sticky right-0 z-20 w-10 min-w-10 cursor-default bg-background p-0 transition-colors group-hover/row:bg-[color-mix(in_oklab,var(--muted)_50%,var(--background))]";
|
|
15
21
|
readonly actionsAlign: "flex min-h-12 items-center justify-end pe-1";
|
|
16
22
|
readonly header: "relative h-12 p-0";
|
|
17
23
|
readonly stickyHeader: "sticky top-0 z-30 bg-background";
|
|
18
24
|
readonly stickyHeaderRule: "after:border-border after:pointer-events-none after:absolute after:inset-x-0 after:bottom-0 after:border-b";
|
|
19
|
-
readonly headerTrigger: "absolute inset-0 h-full w-full min-w-0 justify-start rounded-none px-2 pe-4 focus-visible:ring-
|
|
25
|
+
readonly headerTrigger: "absolute inset-0 h-full w-full min-w-0 justify-start rounded-none px-2 pe-4 focus-visible:ring-0 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring";
|
|
20
26
|
readonly resizeHandle: "absolute inset-y-0 right-0 z-10 w-2 cursor-col-resize touch-none outline-none after:absolute after:inset-y-3 after:right-0 after:w-px after:bg-border hover:after:w-0.5 hover:after:bg-primary/60 focus-visible:after:w-0.5 focus-visible:after:bg-ring";
|
|
21
27
|
readonly relationshipCell: "grid min-h-16 in-[[data-slot=table-cell]]:absolute in-[[data-slot=table-cell]]:inset-0 in-[[data-slot=table-cell]]:min-h-0";
|
|
22
|
-
readonly relationshipTrigger: "h-full w-full min-w-0 justify-between rounded-none px-2 text-start focus-visible:ring-
|
|
28
|
+
readonly relationshipTrigger: "h-full w-full min-w-0 justify-between rounded-none px-2 text-start focus-visible:ring-0 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring";
|
|
23
29
|
readonly reference: "flex min-w-0 items-center gap-2";
|
|
24
30
|
readonly referenceAvatar: "relative grid size-8 shrink-0 place-items-center overflow-hidden bg-muted text-xs font-medium";
|
|
25
31
|
readonly referenceText: "flex min-w-0 flex-col leading-tight";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Component } from "effect/ui";
|
|
2
2
|
import { Html } from "effect/ui/html";
|
|
3
3
|
export { DataTableEdit, DataTableEvents } from "./index.js";
|
|
4
|
-
export type { DataTableAction, DataTableCellValue, DataTableColumn, DataTableProps, DataTablePublicState, DataTableRow, DataTableSort, } from "./schema.js";
|
|
4
|
+
export type { DataTableAction, DataTableCellValue, DataTableColumn, DataTableProps, DataTablePublicState, DataTableRow, DataTableSort, DataTableBadgeOptions, } from "./schema.js";
|
|
5
5
|
export declare const DataTable: Component.Component<"DataTable", {
|
|
6
6
|
readonly classes?: {
|
|
7
7
|
readonly actionTrigger?: string | undefined;
|
|
@@ -80,6 +80,15 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
80
80
|
readonly emptyLabel?: string | undefined;
|
|
81
81
|
readonly nulls?: "first" | "last" | undefined;
|
|
82
82
|
readonly type: "text";
|
|
83
|
+
readonly display?: "badge" | undefined;
|
|
84
|
+
readonly typeOptions?: {
|
|
85
|
+
readonly options?: readonly {
|
|
86
|
+
readonly value: string;
|
|
87
|
+
readonly label?: string | undefined;
|
|
88
|
+
readonly variant?: "default" | "destructive" | "info" | "muted" | "outline" | "secondary" | "success" | undefined;
|
|
89
|
+
readonly icon?: (<Msg>(h: Html.H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => Html.SvgElement<Msg, never, SVGSVGElement, "svg">) | undefined;
|
|
90
|
+
}[] | undefined;
|
|
91
|
+
} | undefined;
|
|
83
92
|
readonly fields?: readonly ({
|
|
84
93
|
readonly id: string;
|
|
85
94
|
readonly headerName: string;
|
|
@@ -96,6 +105,15 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
96
105
|
readonly emptyLabel?: string | undefined;
|
|
97
106
|
readonly nulls?: "first" | "last" | undefined;
|
|
98
107
|
readonly type: "text";
|
|
108
|
+
readonly display?: "badge" | undefined;
|
|
109
|
+
readonly typeOptions?: {
|
|
110
|
+
readonly options?: readonly {
|
|
111
|
+
readonly value: string;
|
|
112
|
+
readonly label?: string | undefined;
|
|
113
|
+
readonly variant?: "default" | "destructive" | "info" | "muted" | "outline" | "secondary" | "success" | undefined;
|
|
114
|
+
readonly icon?: (<Msg>(h: Html.H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => Html.SvgElement<Msg, never, SVGSVGElement, "svg">) | undefined;
|
|
115
|
+
}[] | undefined;
|
|
116
|
+
} | undefined;
|
|
99
117
|
} | {
|
|
100
118
|
readonly id: string;
|
|
101
119
|
readonly headerName: string;
|
|
@@ -237,7 +255,7 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
237
255
|
readonly variant?: "default" | "destructive" | undefined;
|
|
238
256
|
readonly disabled?: boolean | undefined;
|
|
239
257
|
}[] | undefined;
|
|
240
|
-
readonly display?: "icon" | "list" | undefined;
|
|
258
|
+
readonly display?: "badge" | "icon" | "list" | undefined;
|
|
241
259
|
readonly visibleCount?: number | undefined;
|
|
242
260
|
readonly actionsLabel?: string | undefined;
|
|
243
261
|
readonly manageLabel?: string | undefined;
|
|
@@ -284,6 +302,15 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
284
302
|
readonly emptyLabel?: string | undefined;
|
|
285
303
|
readonly nulls?: "first" | "last" | undefined;
|
|
286
304
|
readonly type: "text";
|
|
305
|
+
readonly display?: "badge" | undefined;
|
|
306
|
+
readonly typeOptions?: {
|
|
307
|
+
readonly options?: readonly {
|
|
308
|
+
readonly value: string;
|
|
309
|
+
readonly label?: string | undefined;
|
|
310
|
+
readonly variant?: "default" | "destructive" | "info" | "muted" | "outline" | "secondary" | "success" | undefined;
|
|
311
|
+
readonly icon?: (<Msg>(h: Html.H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => Html.SvgElement<Msg, never, SVGSVGElement, "svg">) | undefined;
|
|
312
|
+
}[] | undefined;
|
|
313
|
+
} | undefined;
|
|
287
314
|
} | {
|
|
288
315
|
readonly id: string;
|
|
289
316
|
readonly headerName: string;
|
|
@@ -425,7 +452,7 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
425
452
|
readonly variant?: "default" | "destructive" | undefined;
|
|
426
453
|
readonly disabled?: boolean | undefined;
|
|
427
454
|
}[] | undefined;
|
|
428
|
-
readonly display?: "icon" | "list" | undefined;
|
|
455
|
+
readonly display?: "badge" | "icon" | "list" | undefined;
|
|
429
456
|
readonly visibleCount?: number | undefined;
|
|
430
457
|
readonly actionsLabel?: string | undefined;
|
|
431
458
|
readonly manageLabel?: string | undefined;
|
|
@@ -462,6 +489,15 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
462
489
|
readonly emptyLabel?: string | undefined;
|
|
463
490
|
readonly nulls?: "first" | "last" | undefined;
|
|
464
491
|
readonly type: "text";
|
|
492
|
+
readonly display?: "badge" | undefined;
|
|
493
|
+
readonly typeOptions?: {
|
|
494
|
+
readonly options?: readonly {
|
|
495
|
+
readonly value: string;
|
|
496
|
+
readonly label?: string | undefined;
|
|
497
|
+
readonly variant?: "default" | "destructive" | "info" | "muted" | "outline" | "secondary" | "success" | undefined;
|
|
498
|
+
readonly icon?: (<Msg>(h: Html.H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => Html.SvgElement<Msg, never, SVGSVGElement, "svg">) | undefined;
|
|
499
|
+
}[] | undefined;
|
|
500
|
+
} | undefined;
|
|
465
501
|
} | {
|
|
466
502
|
readonly id: string;
|
|
467
503
|
readonly headerName: string;
|
|
@@ -603,7 +639,7 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
603
639
|
readonly variant?: "default" | "destructive" | undefined;
|
|
604
640
|
readonly disabled?: boolean | undefined;
|
|
605
641
|
}[] | undefined;
|
|
606
|
-
readonly display?: "icon" | "list" | undefined;
|
|
642
|
+
readonly display?: "badge" | "icon" | "list" | undefined;
|
|
607
643
|
readonly visibleCount?: number | undefined;
|
|
608
644
|
readonly actionsLabel?: string | undefined;
|
|
609
645
|
readonly manageLabel?: string | undefined;
|
|
@@ -646,6 +682,15 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
646
682
|
readonly emptyLabel?: string | undefined;
|
|
647
683
|
readonly nulls?: "first" | "last" | undefined;
|
|
648
684
|
readonly type: "text";
|
|
685
|
+
readonly display?: "badge" | undefined;
|
|
686
|
+
readonly typeOptions?: {
|
|
687
|
+
readonly options?: readonly {
|
|
688
|
+
readonly value: string;
|
|
689
|
+
readonly label?: string | undefined;
|
|
690
|
+
readonly variant?: "default" | "destructive" | "info" | "muted" | "outline" | "secondary" | "success" | undefined;
|
|
691
|
+
readonly icon?: (<Msg>(h: Html.H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => Html.SvgElement<Msg, never, SVGSVGElement, "svg">) | undefined;
|
|
692
|
+
}[] | undefined;
|
|
693
|
+
} | undefined;
|
|
649
694
|
} | {
|
|
650
695
|
readonly id: string;
|
|
651
696
|
readonly headerName: string;
|
|
@@ -787,7 +832,7 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
787
832
|
readonly variant?: "default" | "destructive" | undefined;
|
|
788
833
|
readonly disabled?: boolean | undefined;
|
|
789
834
|
}[] | undefined;
|
|
790
|
-
readonly display?: "icon" | "list" | undefined;
|
|
835
|
+
readonly display?: "badge" | "icon" | "list" | undefined;
|
|
791
836
|
readonly visibleCount?: number | undefined;
|
|
792
837
|
readonly actionsLabel?: string | undefined;
|
|
793
838
|
readonly manageLabel?: string | undefined;
|
|
@@ -832,6 +877,15 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
832
877
|
readonly emptyLabel?: string | undefined;
|
|
833
878
|
readonly nulls?: "first" | "last" | undefined;
|
|
834
879
|
readonly type: "text";
|
|
880
|
+
readonly display?: "badge" | undefined;
|
|
881
|
+
readonly typeOptions?: {
|
|
882
|
+
readonly options?: readonly {
|
|
883
|
+
readonly value: string;
|
|
884
|
+
readonly label?: string | undefined;
|
|
885
|
+
readonly variant?: "default" | "destructive" | "info" | "muted" | "outline" | "secondary" | "success" | undefined;
|
|
886
|
+
readonly icon?: (<Msg>(h: Html.H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => Html.SvgElement<Msg, never, SVGSVGElement, "svg">) | undefined;
|
|
887
|
+
}[] | undefined;
|
|
888
|
+
} | undefined;
|
|
835
889
|
} | {
|
|
836
890
|
readonly id: string;
|
|
837
891
|
readonly headerName: string;
|
|
@@ -973,7 +1027,7 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
973
1027
|
readonly variant?: "default" | "destructive" | undefined;
|
|
974
1028
|
readonly disabled?: boolean | undefined;
|
|
975
1029
|
}[] | undefined;
|
|
976
|
-
readonly display?: "icon" | "list" | undefined;
|
|
1030
|
+
readonly display?: "badge" | "icon" | "list" | undefined;
|
|
977
1031
|
readonly visibleCount?: number | undefined;
|
|
978
1032
|
readonly actionsLabel?: string | undefined;
|
|
979
1033
|
readonly manageLabel?: string | undefined;
|
|
@@ -1016,6 +1070,15 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
1016
1070
|
readonly emptyLabel?: string | undefined;
|
|
1017
1071
|
readonly nulls?: "first" | "last" | undefined;
|
|
1018
1072
|
readonly type: "text";
|
|
1073
|
+
readonly display?: "badge" | undefined;
|
|
1074
|
+
readonly typeOptions?: {
|
|
1075
|
+
readonly options?: readonly {
|
|
1076
|
+
readonly value: string;
|
|
1077
|
+
readonly label?: string | undefined;
|
|
1078
|
+
readonly variant?: "default" | "destructive" | "info" | "muted" | "outline" | "secondary" | "success" | undefined;
|
|
1079
|
+
readonly icon?: (<Msg>(h: Html.H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => Html.SvgElement<Msg, never, SVGSVGElement, "svg">) | undefined;
|
|
1080
|
+
}[] | undefined;
|
|
1081
|
+
} | undefined;
|
|
1019
1082
|
} | {
|
|
1020
1083
|
readonly id: string;
|
|
1021
1084
|
readonly headerName: string;
|
|
@@ -1157,7 +1220,7 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
1157
1220
|
readonly variant?: "default" | "destructive" | undefined;
|
|
1158
1221
|
readonly disabled?: boolean | undefined;
|
|
1159
1222
|
}[] | undefined;
|
|
1160
|
-
readonly display?: "icon" | "list" | undefined;
|
|
1223
|
+
readonly display?: "badge" | "icon" | "list" | undefined;
|
|
1161
1224
|
readonly visibleCount?: number | undefined;
|
|
1162
1225
|
readonly actionsLabel?: string | undefined;
|
|
1163
1226
|
readonly manageLabel?: string | undefined;
|
|
@@ -1193,7 +1256,7 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
1193
1256
|
readonly variant?: "default" | "destructive" | undefined;
|
|
1194
1257
|
readonly disabled?: boolean | undefined;
|
|
1195
1258
|
}[] | undefined;
|
|
1196
|
-
readonly display?: "icon" | "list" | undefined;
|
|
1259
|
+
readonly display?: "badge" | "icon" | "list" | undefined;
|
|
1197
1260
|
readonly visibleCount?: number | undefined;
|
|
1198
1261
|
readonly actionsLabel?: string | undefined;
|
|
1199
1262
|
readonly manageLabel?: string | undefined;
|
|
@@ -1213,6 +1276,15 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
1213
1276
|
readonly emptyLabel?: string | undefined;
|
|
1214
1277
|
readonly nulls?: "first" | "last" | undefined;
|
|
1215
1278
|
readonly type: "text";
|
|
1279
|
+
readonly display?: "badge" | undefined;
|
|
1280
|
+
readonly typeOptions?: {
|
|
1281
|
+
readonly options?: readonly {
|
|
1282
|
+
readonly value: string;
|
|
1283
|
+
readonly label?: string | undefined;
|
|
1284
|
+
readonly variant?: "default" | "destructive" | "info" | "muted" | "outline" | "secondary" | "success" | undefined;
|
|
1285
|
+
readonly icon?: (<Msg>(h: Html.H<Msg>, { size, color, strokeWidth, className, }?: import("../../lib/lucide-effect.js").LucideIconProps) => Html.SvgElement<Msg, never, SVGSVGElement, "svg">) | undefined;
|
|
1286
|
+
}[] | undefined;
|
|
1287
|
+
} | undefined;
|
|
1216
1288
|
} | {
|
|
1217
1289
|
readonly id: string;
|
|
1218
1290
|
readonly headerName: string;
|
|
@@ -1354,7 +1426,7 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
1354
1426
|
readonly variant?: "default" | "destructive" | undefined;
|
|
1355
1427
|
readonly disabled?: boolean | undefined;
|
|
1356
1428
|
}[] | undefined;
|
|
1357
|
-
readonly display?: "icon" | "list" | undefined;
|
|
1429
|
+
readonly display?: "badge" | "icon" | "list" | undefined;
|
|
1358
1430
|
readonly visibleCount?: number | undefined;
|
|
1359
1431
|
readonly actionsLabel?: string | undefined;
|
|
1360
1432
|
readonly manageLabel?: string | undefined;
|
|
@@ -1639,18 +1711,6 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
1639
1711
|
} | null;
|
|
1640
1712
|
readonly invalidFilter: boolean;
|
|
1641
1713
|
}, {
|
|
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
1714
|
readonly _tag: "BuiltInExportRequested";
|
|
1655
1715
|
readonly format: "csv" | "json";
|
|
1656
1716
|
readonly locale?: string | undefined;
|
|
@@ -1790,6 +1850,18 @@ export declare const DataTable: Component.Component<"DataTable", {
|
|
|
1790
1850
|
} | {
|
|
1791
1851
|
readonly _tag: "PageSizeRequested";
|
|
1792
1852
|
readonly pageSize: number;
|
|
1853
|
+
} | {
|
|
1854
|
+
readonly _tag: "PreferencesLoaded";
|
|
1855
|
+
readonly preferences: {
|
|
1856
|
+
readonly columnVisibility: {
|
|
1857
|
+
readonly [x: string]: boolean;
|
|
1858
|
+
};
|
|
1859
|
+
readonly columnSizing: {
|
|
1860
|
+
readonly [x: string]: number;
|
|
1861
|
+
};
|
|
1862
|
+
readonly grouping?: readonly string[] | undefined;
|
|
1863
|
+
readonly view: "gallery" | "table";
|
|
1864
|
+
} | null;
|
|
1793
1865
|
} | {
|
|
1794
1866
|
readonly _tag: "ReferenceImageFailed";
|
|
1795
1867
|
readonly src: string;
|