@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,58 +1,13 @@
|
|
|
1
1
|
// ../../src/components/stats-card/react.tsx
|
|
2
2
|
import { cloneElement, isValidElement } from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
size = "default",
|
|
12
|
-
...props
|
|
13
|
-
}) {
|
|
14
|
-
return /* @__PURE__ */ jsx("div", {
|
|
15
|
-
"data-slot": "card",
|
|
16
|
-
"data-size": size,
|
|
17
|
-
className: cn("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10 [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl", className),
|
|
18
|
-
...props
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function CardHeader({ className, ...props }) {
|
|
22
|
-
return /* @__PURE__ */ jsx("div", {
|
|
23
|
-
"data-slot": "card-header",
|
|
24
|
-
className: cn("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)", className),
|
|
25
|
-
...props
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
function CardTitle({ className, ...props }) {
|
|
29
|
-
return /* @__PURE__ */ jsx("div", {
|
|
30
|
-
"data-slot": "card-title",
|
|
31
|
-
className: cn("text-base leading-normal font-medium group-data-[size=sm]/card:text-sm", className),
|
|
32
|
-
...props
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
function CardDescription({ className, ...props }) {
|
|
36
|
-
return /* @__PURE__ */ jsx("div", {
|
|
37
|
-
"data-slot": "card-description",
|
|
38
|
-
className: cn("text-sm text-muted-foreground", className),
|
|
39
|
-
...props
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
function CardContent({ className, ...props }) {
|
|
43
|
-
return /* @__PURE__ */ jsx("div", {
|
|
44
|
-
"data-slot": "card-content",
|
|
45
|
-
className: cn("px-(--card-spacing)", className),
|
|
46
|
-
...props
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function CardFooter({ className, ...props }) {
|
|
50
|
-
return /* @__PURE__ */ jsx("div", {
|
|
51
|
-
"data-slot": "card-footer",
|
|
52
|
-
className: cn("flex items-center rounded-b-xl px-(--card-spacing) [.border-t]:pt-(--card-spacing)", className),
|
|
53
|
-
...props
|
|
54
|
-
});
|
|
55
|
-
}
|
|
3
|
+
import {
|
|
4
|
+
Card,
|
|
5
|
+
CardContent,
|
|
6
|
+
CardDescription,
|
|
7
|
+
CardFooter,
|
|
8
|
+
CardHeader,
|
|
9
|
+
CardTitle
|
|
10
|
+
} from "@/components/ui/card";
|
|
56
11
|
|
|
57
12
|
// ../../src/components/stats-card/classes.ts
|
|
58
13
|
var statsCardClasses = {
|
|
@@ -66,7 +21,7 @@ var resolveStatsCardClasses = (overrides) => ({
|
|
|
66
21
|
});
|
|
67
22
|
|
|
68
23
|
// ../../src/components/stats-card/react.tsx
|
|
69
|
-
import { jsx
|
|
24
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
70
25
|
var normalizeIcon = (icon) => {
|
|
71
26
|
if (!isValidElement(icon))
|
|
72
27
|
return icon;
|
|
@@ -101,18 +56,18 @@ var StatsCard = ({
|
|
|
101
56
|
normalizedIcon
|
|
102
57
|
]
|
|
103
58
|
}),
|
|
104
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ jsx(CardTitle, {
|
|
105
60
|
className: [statsCardClasses.value, valueClassName].filter(Boolean).join(" "),
|
|
106
61
|
children: value
|
|
107
62
|
})
|
|
108
63
|
]
|
|
109
64
|
}),
|
|
110
|
-
children ? /* @__PURE__ */
|
|
65
|
+
children ? /* @__PURE__ */ jsx(CardContent, {
|
|
111
66
|
children
|
|
112
67
|
}) : null,
|
|
113
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ jsx(CardFooter, {
|
|
114
69
|
className: "flex-col items-start gap-1 text-sm",
|
|
115
|
-
children: /* @__PURE__ */
|
|
70
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
116
71
|
className: statsCardClasses.description,
|
|
117
72
|
children: description
|
|
118
73
|
})
|
|
@@ -2,77 +2,19 @@
|
|
|
2
2
|
import { Mount } from "effect/ui";
|
|
3
3
|
import { Html } from "effect/ui/html";
|
|
4
4
|
import { Dialog, Field } from "effect/ui/kit";
|
|
5
|
-
|
|
6
|
-
// ../../src/components/effectcn/button.ts
|
|
7
|
-
import {
|
|
8
|
-
Button as KitButton
|
|
9
|
-
} from "effect/ui/kit";
|
|
10
|
-
|
|
11
|
-
// ../../src/lib/utils.ts
|
|
12
|
-
import { cn } from "cn";
|
|
13
|
-
|
|
14
|
-
// ../../src/components/effectcn/button.ts
|
|
15
|
-
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";
|
|
16
|
-
var variants = {
|
|
17
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/85",
|
|
18
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-accent",
|
|
19
|
-
outline: "border-input bg-background text-foreground shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
20
|
-
ghost: "text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
21
|
-
brand: "bg-brand-soft text-brand-soft-foreground hover:bg-brand-soft/85",
|
|
22
|
-
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85",
|
|
23
|
-
link: "h-auto px-0 text-foreground underline decoration-transparent underline-offset-4 hover:decoration-current"
|
|
24
|
-
};
|
|
25
|
-
var sizes = {
|
|
26
|
-
default: "",
|
|
27
|
-
sm: "h-7 rounded-sm px-2.5 text-xs",
|
|
28
|
-
lg: "h-10 px-5 text-sm",
|
|
29
|
-
icon: "w-8.5 px-0",
|
|
30
|
-
"icon-sm": "h-7 w-7 rounded-sm px-0"
|
|
31
|
-
};
|
|
32
|
-
var buttonVariants = (options = {}) => cn(base, variants[options.variant ?? "default"], sizes[options.size ?? "default"], options.class);
|
|
33
|
-
var Button = (h, options = {}) => KitButton(h, {
|
|
34
|
-
element: options.element,
|
|
35
|
-
onPress: options.onPress,
|
|
36
|
-
props: options.loading ? { ...options.props, disabled: true, focusableWhenDisabled: true } : options.props
|
|
37
|
-
}).class(buttonVariants(options)).attr("data-loading", options.loading ? "" : undefined);
|
|
38
|
-
|
|
39
|
-
// ../../src/components/support/html.ts
|
|
5
|
+
import { Button, buttonVariants } from "@/components/effectcn/button";
|
|
40
6
|
import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
|
|
41
|
-
|
|
42
|
-
// ../../src/components/effectcn/dialog.ts
|
|
43
|
-
var DialogBackdrop = (h, dialog, options = {}) => dialog.backdrop(h.div.class(cn("fixed inset-0 bg-[color-mix(in_oklab,var(--shadow-color,#000)_45%,transparent)] transition-opacity duration-200 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", options.class)));
|
|
44
|
-
var DialogViewport = (h, dialog, options = {}) => dialog.viewport(h.div.class(cn("pointer-events-none fixed inset-0 grid place-items-center p-4", options.class)));
|
|
45
|
-
var DialogPopup = (h, dialog, options = {}) => dialog.popup(h.div.class(cn("bg-popover text-popover-foreground pointer-events-auto relative flex max-h-full w-full max-w-[440px] flex-col gap-4 rounded-lg border p-6 text-sm shadow-lg outline-none", "transition-[opacity,scale,translate,filter] duration-200 ease-out data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0", "data-[nested-dialog-open]:-translate-y-[calc(14px*var(--nested-dialogs))] data-[nested-dialog-open]:scale-[calc(1-0.05*var(--nested-dialogs))] data-[nested-dialog-open]:brightness-95", options.class)));
|
|
46
|
-
var DialogHeader = (h, options = {}) => h.div.class(cn("flex flex-col gap-1.5 pr-6", options.class));
|
|
47
|
-
var DialogTitle = (h, dialog, options = {}) => dialog.title(h.h2.class(cn("m-0 border-0 p-0 text-[16px] leading-snug font-semibold tracking-tight", options.class)));
|
|
48
|
-
var DialogDescription = (h, dialog, options = {}) => dialog.description(h.p.class(cn("text-muted-foreground m-0 text-[13px] leading-normal", options.class)));
|
|
49
|
-
var DialogCloseIcon = (h, dialog, options) => dialog.close(h.button.class(cn("text-muted-foreground hover:bg-accent hover:text-foreground absolute top-3.5 right-3.5 grid size-7 place-items-center rounded-sm transition-colors duration-150 disabled:opacity-50", options.class)).attr("aria-label", options.label).disabled(options.disabled === true)).children(options.icon ?? h.svg.class("size-[15px]").attrs({
|
|
50
|
-
viewBox: "0 0 24 24",
|
|
51
|
-
fill: "none",
|
|
52
|
-
stroke: "currentColor",
|
|
53
|
-
"stroke-width": "2",
|
|
54
|
-
"stroke-linecap": "round",
|
|
55
|
-
"aria-hidden": "true"
|
|
56
|
-
}).children(h.path.attr("d", "M6 6l12 12M18 6L6 18")));
|
|
57
|
-
|
|
58
|
-
// ../../src/components/effectcn/field.ts
|
|
59
|
-
var FieldRoot = (h, field, options = {}) => field.root(h.div.class(cn("flex w-full min-w-0 flex-col gap-1.5", options.class)));
|
|
60
|
-
var FieldLabel = (h, field, options = {}) => field.label(h.label.class(cn("data-[invalid]:text-destructive text-[13px] leading-snug font-medium data-[disabled]:opacity-50", options.class)));
|
|
61
|
-
var FieldError = (h, field, options = {}) => field.error(h.div.class(cn("text-destructive text-xs leading-normal", options.class)));
|
|
62
|
-
|
|
63
|
-
// ../../src/components/effectcn/input.ts
|
|
64
7
|
import {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
// ../../src/components/support/html.ts
|
|
8
|
+
DialogBackdrop,
|
|
9
|
+
DialogCloseIcon,
|
|
10
|
+
DialogDescription,
|
|
11
|
+
DialogHeader,
|
|
12
|
+
DialogPopup,
|
|
13
|
+
DialogTitle,
|
|
14
|
+
DialogViewport
|
|
15
|
+
} from "@/components/effectcn/dialog";
|
|
16
|
+
import { FieldError, FieldLabel, FieldRoot } from "@/components/effectcn/field";
|
|
17
|
+
import { inputVariants } from "@/components/effectcn/input";
|
|
76
18
|
import { Redacted as Redacted2, Result as Result2, Schema as Schema4, Stream } from "effect";
|
|
77
19
|
|
|
78
20
|
// ../../src/components/support/index.ts
|
|
@@ -387,6 +329,9 @@ var SupportDialogModel = SupportDefinition.make({
|
|
|
387
329
|
view: () => View.text("")
|
|
388
330
|
});
|
|
389
331
|
|
|
332
|
+
// ../../src/lib/utils.ts
|
|
333
|
+
import { cn } from "cn";
|
|
334
|
+
|
|
390
335
|
// ../../src/components/support/html.ts
|
|
391
336
|
import { Check, Image, Paperclip, X } from "@krak-stack/registry/lucide-effect";
|
|
392
337
|
var ObserveScreenshotPaste = Mount.makeStream("ObserveScreenshotPaste", {}, (textarea) => Stream.fromEventListener(textarea, "paste").pipe(Stream.filterMap((event) => {
|