@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
|
@@ -102,299 +102,29 @@ import {
|
|
|
102
102
|
} from "lucide-react";
|
|
103
103
|
import { useState } from "react";
|
|
104
104
|
import { Schema as Schema4 } from "effect";
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
import {
|
|
108
|
-
|
|
109
|
-
|
|
105
|
+
import { Badge } from "@/components/ui/badge";
|
|
106
|
+
import { Button, buttonVariants } from "@/components/ui/button";
|
|
107
|
+
import {
|
|
108
|
+
Empty,
|
|
109
|
+
EmptyDescription,
|
|
110
|
+
EmptyHeader,
|
|
111
|
+
EmptyMedia,
|
|
112
|
+
EmptyTitle
|
|
113
|
+
} from "@/components/ui/empty";
|
|
114
|
+
import {
|
|
115
|
+
Popover,
|
|
116
|
+
PopoverContent,
|
|
117
|
+
PopoverHeader,
|
|
118
|
+
PopoverTitle,
|
|
119
|
+
PopoverTrigger
|
|
120
|
+
} from "@/components/ui/popover";
|
|
121
|
+
import { ScrollArea } from "@/components/ui/scroll-area";
|
|
122
|
+
import { Skeleton } from "@/components/ui/skeleton";
|
|
123
|
+
import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
|
|
110
124
|
|
|
111
125
|
// ../../src/lib/utils.ts
|
|
112
126
|
import { cn } from "cn";
|
|
113
127
|
|
|
114
|
-
// ../../src/components/ui/badge.tsx
|
|
115
|
-
var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
|
|
116
|
-
variants: {
|
|
117
|
-
variant: {
|
|
118
|
-
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
119
|
-
secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
|
|
120
|
-
destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
|
|
121
|
-
outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
|
|
122
|
-
ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
|
|
123
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
defaultVariants: {
|
|
127
|
-
variant: "default"
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
function Badge({
|
|
131
|
-
className,
|
|
132
|
-
variant = "default",
|
|
133
|
-
render,
|
|
134
|
-
...props
|
|
135
|
-
}) {
|
|
136
|
-
return useRender({
|
|
137
|
-
defaultTagName: "span",
|
|
138
|
-
props: mergeProps({
|
|
139
|
-
className: cn(badgeVariants({ variant }), className)
|
|
140
|
-
}, props),
|
|
141
|
-
render,
|
|
142
|
-
state: {
|
|
143
|
-
slot: "badge",
|
|
144
|
-
variant
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// ../../src/components/ui/button.tsx
|
|
150
|
-
import { Button as ButtonPrimitive } from "@base-ui/react/button";
|
|
151
|
-
import { cva as cva2 } from "class-variance-authority";
|
|
152
|
-
import { jsx } from "react/jsx-runtime";
|
|
153
|
-
var buttonVariants = cva2("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
154
|
-
variants: {
|
|
155
|
-
variant: {
|
|
156
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
157
|
-
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",
|
|
158
|
-
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",
|
|
159
|
-
ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
|
|
160
|
-
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",
|
|
161
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
162
|
-
},
|
|
163
|
-
size: {
|
|
164
|
-
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",
|
|
165
|
-
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",
|
|
166
|
-
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",
|
|
167
|
-
lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
168
|
-
icon: "size-9",
|
|
169
|
-
"icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
|
|
170
|
-
"icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
|
|
171
|
-
"icon-lg": "size-10"
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
defaultVariants: {
|
|
175
|
-
variant: "default",
|
|
176
|
-
size: "default"
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
function Button({
|
|
180
|
-
className,
|
|
181
|
-
variant = "default",
|
|
182
|
-
size = "default",
|
|
183
|
-
...props
|
|
184
|
-
}) {
|
|
185
|
-
return /* @__PURE__ */ jsx(ButtonPrimitive, {
|
|
186
|
-
"data-slot": "button",
|
|
187
|
-
className: cn(buttonVariants({ variant, size, className })),
|
|
188
|
-
...props
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
// ../../src/components/ui/empty.tsx
|
|
193
|
-
import { cva as cva3 } from "class-variance-authority";
|
|
194
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
195
|
-
function Empty({ className, ...props }) {
|
|
196
|
-
return /* @__PURE__ */ jsx2("div", {
|
|
197
|
-
"data-slot": "empty",
|
|
198
|
-
className: cn("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-lg border-dashed p-12 text-center text-balance", className),
|
|
199
|
-
...props
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
function EmptyHeader({ className, ...props }) {
|
|
203
|
-
return /* @__PURE__ */ jsx2("div", {
|
|
204
|
-
"data-slot": "empty-header",
|
|
205
|
-
className: cn("flex max-w-sm flex-col items-center gap-2", className),
|
|
206
|
-
...props
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
var emptyMediaVariants = cva3("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
210
|
-
variants: {
|
|
211
|
-
variant: {
|
|
212
|
-
default: "bg-transparent",
|
|
213
|
-
icon: "flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-6"
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
defaultVariants: {
|
|
217
|
-
variant: "default"
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
function EmptyMedia({
|
|
221
|
-
className,
|
|
222
|
-
variant = "default",
|
|
223
|
-
...props
|
|
224
|
-
}) {
|
|
225
|
-
return /* @__PURE__ */ jsx2("div", {
|
|
226
|
-
"data-slot": "empty-icon",
|
|
227
|
-
"data-variant": variant,
|
|
228
|
-
className: cn(emptyMediaVariants({ variant, className })),
|
|
229
|
-
...props
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
function EmptyTitle({ className, ...props }) {
|
|
233
|
-
return /* @__PURE__ */ jsx2("div", {
|
|
234
|
-
"data-slot": "empty-title",
|
|
235
|
-
className: cn("text-lg font-medium tracking-tight", className),
|
|
236
|
-
...props
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
function EmptyDescription({ className, ...props }) {
|
|
240
|
-
return /* @__PURE__ */ jsx2("div", {
|
|
241
|
-
"data-slot": "empty-description",
|
|
242
|
-
className: cn("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
|
|
243
|
-
...props
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
// ../../src/components/ui/popover.tsx
|
|
248
|
-
import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
|
|
249
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
250
|
-
function Popover({ ...props }) {
|
|
251
|
-
return /* @__PURE__ */ jsx3(PopoverPrimitive.Root, {
|
|
252
|
-
"data-slot": "popover",
|
|
253
|
-
...props
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
function PopoverTrigger({ ...props }) {
|
|
257
|
-
return /* @__PURE__ */ jsx3(PopoverPrimitive.Trigger, {
|
|
258
|
-
"data-slot": "popover-trigger",
|
|
259
|
-
...props
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
function PopoverContent({
|
|
263
|
-
className,
|
|
264
|
-
align = "center",
|
|
265
|
-
alignOffset = 0,
|
|
266
|
-
side = "bottom",
|
|
267
|
-
sideOffset = 4,
|
|
268
|
-
...props
|
|
269
|
-
}) {
|
|
270
|
-
return /* @__PURE__ */ jsx3(PopoverPrimitive.Portal, {
|
|
271
|
-
children: /* @__PURE__ */ jsx3(PopoverPrimitive.Positioner, {
|
|
272
|
-
align,
|
|
273
|
-
alignOffset,
|
|
274
|
-
side,
|
|
275
|
-
sideOffset,
|
|
276
|
-
className: "isolate z-50",
|
|
277
|
-
children: /* @__PURE__ */ jsx3(PopoverPrimitive.Popup, {
|
|
278
|
-
"data-slot": "popover-content",
|
|
279
|
-
className: cn("z-50 flex w-72 origin-(--transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
280
|
-
...props
|
|
281
|
-
})
|
|
282
|
-
})
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
function PopoverHeader({ className, ...props }) {
|
|
286
|
-
return /* @__PURE__ */ jsx3("div", {
|
|
287
|
-
"data-slot": "popover-header",
|
|
288
|
-
className: cn("flex flex-col gap-1 text-sm", className),
|
|
289
|
-
...props
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
function PopoverTitle({ className, ...props }) {
|
|
293
|
-
return /* @__PURE__ */ jsx3(PopoverPrimitive.Title, {
|
|
294
|
-
"data-slot": "popover-title",
|
|
295
|
-
className: cn("font-medium", className),
|
|
296
|
-
...props
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
// ../../src/components/ui/scroll-area.tsx
|
|
301
|
-
import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area";
|
|
302
|
-
import { jsx as jsx4, jsxs } from "react/jsx-runtime";
|
|
303
|
-
function ScrollArea({
|
|
304
|
-
className,
|
|
305
|
-
children,
|
|
306
|
-
...props
|
|
307
|
-
}) {
|
|
308
|
-
return /* @__PURE__ */ jsxs(ScrollAreaPrimitive.Root, {
|
|
309
|
-
"data-slot": "scroll-area",
|
|
310
|
-
className: cn("relative", className),
|
|
311
|
-
...props,
|
|
312
|
-
children: [
|
|
313
|
-
/* @__PURE__ */ jsx4(ScrollAreaPrimitive.Viewport, {
|
|
314
|
-
"data-slot": "scroll-area-viewport",
|
|
315
|
-
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
316
|
-
children
|
|
317
|
-
}),
|
|
318
|
-
/* @__PURE__ */ jsx4(ScrollBar, {}),
|
|
319
|
-
/* @__PURE__ */ jsx4(ScrollAreaPrimitive.Corner, {})
|
|
320
|
-
]
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
function ScrollBar({
|
|
324
|
-
className,
|
|
325
|
-
orientation = "vertical",
|
|
326
|
-
...props
|
|
327
|
-
}) {
|
|
328
|
-
return /* @__PURE__ */ jsx4(ScrollAreaPrimitive.Scrollbar, {
|
|
329
|
-
"data-slot": "scroll-area-scrollbar",
|
|
330
|
-
"data-orientation": orientation,
|
|
331
|
-
orientation,
|
|
332
|
-
className: cn("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent", className),
|
|
333
|
-
...props,
|
|
334
|
-
children: /* @__PURE__ */ jsx4(ScrollAreaPrimitive.Thumb, {
|
|
335
|
-
"data-slot": "scroll-area-thumb",
|
|
336
|
-
className: "bg-border relative flex-1 rounded-full"
|
|
337
|
-
})
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
// ../../src/components/ui/skeleton.tsx
|
|
342
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
343
|
-
function Skeleton({ className, ...props }) {
|
|
344
|
-
return /* @__PURE__ */ jsx5("div", {
|
|
345
|
-
"data-slot": "skeleton",
|
|
346
|
-
className: cn("animate-pulse rounded-md bg-muted", className),
|
|
347
|
-
...props
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
// ../../src/components/ui/tabs.tsx
|
|
352
|
-
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
353
|
-
import { cva as cva4 } from "class-variance-authority";
|
|
354
|
-
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
355
|
-
function Tabs({
|
|
356
|
-
className,
|
|
357
|
-
orientation = "horizontal",
|
|
358
|
-
...props
|
|
359
|
-
}) {
|
|
360
|
-
return /* @__PURE__ */ jsx6(TabsPrimitive.Root, {
|
|
361
|
-
"data-slot": "tabs",
|
|
362
|
-
"data-orientation": orientation,
|
|
363
|
-
className: cn("group/tabs flex gap-2 data-horizontal:flex-col", className),
|
|
364
|
-
...props
|
|
365
|
-
});
|
|
366
|
-
}
|
|
367
|
-
var tabsListVariants = cva4("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-9 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none", {
|
|
368
|
-
variants: {
|
|
369
|
-
variant: {
|
|
370
|
-
default: "bg-muted",
|
|
371
|
-
line: "gap-1 bg-transparent"
|
|
372
|
-
}
|
|
373
|
-
},
|
|
374
|
-
defaultVariants: {
|
|
375
|
-
variant: "default"
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
function TabsList({
|
|
379
|
-
className,
|
|
380
|
-
variant = "default",
|
|
381
|
-
...props
|
|
382
|
-
}) {
|
|
383
|
-
return /* @__PURE__ */ jsx6(TabsPrimitive.List, {
|
|
384
|
-
"data-slot": "tabs-list",
|
|
385
|
-
"data-variant": variant,
|
|
386
|
-
className: cn(tabsListVariants({ variant }), className),
|
|
387
|
-
...props
|
|
388
|
-
});
|
|
389
|
-
}
|
|
390
|
-
function TabsTrigger({ className, ...props }) {
|
|
391
|
-
return /* @__PURE__ */ jsx6(TabsPrimitive.Tab, {
|
|
392
|
-
"data-slot": "tabs-trigger",
|
|
393
|
-
className: cn("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", className),
|
|
394
|
-
...props
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
|
|
398
128
|
// ../../src/components/notification-menu/react.tsx
|
|
399
129
|
import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
|
|
400
130
|
|
|
@@ -558,7 +288,7 @@ var update = Component.define(notificationMenuOptions).update({
|
|
|
558
288
|
});
|
|
559
289
|
|
|
560
290
|
// ../../src/components/notification-menu/react.tsx
|
|
561
|
-
import { jsx
|
|
291
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
562
292
|
function NotificationMenu({
|
|
563
293
|
classes: classOverrides,
|
|
564
294
|
className,
|
|
@@ -597,63 +327,63 @@ function NotificationMenu({
|
|
|
597
327
|
onMarkRead?.(unreadIds);
|
|
598
328
|
}
|
|
599
329
|
};
|
|
600
|
-
return /* @__PURE__ */
|
|
330
|
+
return /* @__PURE__ */ jsxs(Popover, {
|
|
601
331
|
open,
|
|
602
332
|
onOpenChange: handleOpenChange,
|
|
603
333
|
children: [
|
|
604
|
-
renderTrigger ? /* @__PURE__ */
|
|
334
|
+
renderTrigger ? /* @__PURE__ */ jsx(PopoverTrigger, {
|
|
605
335
|
render: renderTrigger(triggerState)
|
|
606
|
-
}) : /* @__PURE__ */
|
|
336
|
+
}) : /* @__PURE__ */ jsx(NotificationMenuTrigger, {
|
|
607
337
|
labels,
|
|
608
338
|
unreadCount: unreadIds.length
|
|
609
339
|
}),
|
|
610
|
-
/* @__PURE__ */
|
|
340
|
+
/* @__PURE__ */ jsxs(PopoverContent, {
|
|
611
341
|
align: "end",
|
|
612
342
|
className: cn(notificationMenuClasses.popup, className),
|
|
613
343
|
children: [
|
|
614
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ jsx(PopoverHeader, {
|
|
615
345
|
className: notificationMenuClasses.header,
|
|
616
|
-
children: /* @__PURE__ */
|
|
346
|
+
children: /* @__PURE__ */ jsx(PopoverTitle, {
|
|
617
347
|
children: labels.notifications
|
|
618
348
|
})
|
|
619
349
|
}),
|
|
620
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ jsxs(Tabs, {
|
|
621
351
|
value: tab,
|
|
622
352
|
onValueChange: (value) => setTab(value === "archive" ? "archive" : "inbox"),
|
|
623
353
|
className: "min-h-0 min-w-0 flex-1 gap-0",
|
|
624
354
|
children: [
|
|
625
|
-
/* @__PURE__ */
|
|
355
|
+
/* @__PURE__ */ jsxs("div", {
|
|
626
356
|
className: "flex shrink-0 flex-col gap-2 border-b p-2",
|
|
627
357
|
children: [
|
|
628
|
-
/* @__PURE__ */
|
|
358
|
+
/* @__PURE__ */ jsxs(TabsList, {
|
|
629
359
|
className: "w-full min-w-0 gap-2",
|
|
630
360
|
children: [
|
|
631
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ jsxs(TabsTrigger, {
|
|
632
362
|
className: "min-w-0",
|
|
633
363
|
value: "inbox",
|
|
634
364
|
children: [
|
|
635
|
-
/* @__PURE__ */
|
|
365
|
+
/* @__PURE__ */ jsx(Inbox, {
|
|
636
366
|
"data-icon": "inline-start"
|
|
637
367
|
}),
|
|
638
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ jsx("span", {
|
|
639
369
|
className: "truncate",
|
|
640
370
|
children: labels.inbox
|
|
641
371
|
}),
|
|
642
|
-
inbox.length > 0 ? /* @__PURE__ */
|
|
372
|
+
inbox.length > 0 ? /* @__PURE__ */ jsx(Badge, {
|
|
643
373
|
className: "shrink-0 tabular-nums",
|
|
644
374
|
variant: "secondary",
|
|
645
375
|
children: inbox.length
|
|
646
376
|
}) : null
|
|
647
377
|
]
|
|
648
378
|
}),
|
|
649
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ jsxs(TabsTrigger, {
|
|
650
380
|
className: "min-w-0",
|
|
651
381
|
value: "archive",
|
|
652
382
|
children: [
|
|
653
|
-
/* @__PURE__ */
|
|
383
|
+
/* @__PURE__ */ jsx(ArchiveRestore, {
|
|
654
384
|
"data-icon": "inline-start"
|
|
655
385
|
}),
|
|
656
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ jsx("span", {
|
|
657
387
|
className: "truncate",
|
|
658
388
|
children: labels.archived
|
|
659
389
|
})
|
|
@@ -661,7 +391,7 @@ function NotificationMenu({
|
|
|
661
391
|
})
|
|
662
392
|
]
|
|
663
393
|
}),
|
|
664
|
-
tab === "inbox" && inbox.length > 0 && onArchive ? /* @__PURE__ */
|
|
394
|
+
tab === "inbox" && inbox.length > 0 && onArchive ? /* @__PURE__ */ jsx(ArchiveButton, {
|
|
665
395
|
showLabel: true,
|
|
666
396
|
className: "w-full",
|
|
667
397
|
label: labels.archiveAll,
|
|
@@ -670,7 +400,7 @@ function NotificationMenu({
|
|
|
670
400
|
}) : null
|
|
671
401
|
]
|
|
672
402
|
}),
|
|
673
|
-
/* @__PURE__ */
|
|
403
|
+
/* @__PURE__ */ jsx(NotificationList, {
|
|
674
404
|
error,
|
|
675
405
|
isLoading,
|
|
676
406
|
labels,
|
|
@@ -696,13 +426,13 @@ function NotificationMenuTrigger({
|
|
|
696
426
|
}) {
|
|
697
427
|
const locale = useKrakstackLocale(localeOverride);
|
|
698
428
|
const labels = providedLabels ?? notificationMenuMessages(locale, messages);
|
|
699
|
-
return /* @__PURE__ */
|
|
429
|
+
return /* @__PURE__ */ jsxs(PopoverTrigger, {
|
|
700
430
|
"aria-label": unreadCount > 0 ? `${labels.notifications}, ${labels.unread(unreadCount)}` : labels.notifications,
|
|
701
431
|
className: cn(buttonVariants({ variant: "outline", size: "icon" }), "relative"),
|
|
702
432
|
type: "button",
|
|
703
433
|
children: [
|
|
704
|
-
/* @__PURE__ */
|
|
705
|
-
unreadCount > 0 ? /* @__PURE__ */
|
|
434
|
+
/* @__PURE__ */ jsx(Bell, {}),
|
|
435
|
+
unreadCount > 0 ? /* @__PURE__ */ jsx(Badge, {
|
|
706
436
|
"aria-hidden": "true",
|
|
707
437
|
className: "absolute -top-1 -right-1 min-w-5 px-1 tabular-nums",
|
|
708
438
|
children: unreadCount > 99 ? "99+" : unreadCount
|
|
@@ -722,28 +452,28 @@ function NotificationList({
|
|
|
722
452
|
tab
|
|
723
453
|
}) {
|
|
724
454
|
if (isLoading)
|
|
725
|
-
return /* @__PURE__ */
|
|
455
|
+
return /* @__PURE__ */ jsx(NotificationListLoading, {
|
|
726
456
|
label: labels.loading
|
|
727
457
|
});
|
|
728
458
|
if (error) {
|
|
729
|
-
return /* @__PURE__ */
|
|
459
|
+
return /* @__PURE__ */ jsx(NotificationEmpty, {
|
|
730
460
|
description: labels.errorDescription,
|
|
731
|
-
icon: /* @__PURE__ */
|
|
461
|
+
icon: /* @__PURE__ */ jsx(TriangleAlert, {}),
|
|
732
462
|
title: labels.errorTitle
|
|
733
463
|
});
|
|
734
464
|
}
|
|
735
465
|
if (notifications.length === 0) {
|
|
736
|
-
return /* @__PURE__ */
|
|
466
|
+
return /* @__PURE__ */ jsx(NotificationEmpty, {
|
|
737
467
|
description: tab === "inbox" ? labels.emptyInboxDescription : labels.emptyArchiveDescription,
|
|
738
|
-
icon: tab === "inbox" ? /* @__PURE__ */
|
|
468
|
+
icon: tab === "inbox" ? /* @__PURE__ */ jsx(BellDot, {}) : /* @__PURE__ */ jsx(Archive, {}),
|
|
739
469
|
title: tab === "inbox" ? labels.emptyInboxTitle : labels.emptyArchiveTitle
|
|
740
470
|
});
|
|
741
471
|
}
|
|
742
|
-
return /* @__PURE__ */
|
|
472
|
+
return /* @__PURE__ */ jsx(ScrollArea, {
|
|
743
473
|
className: "flex max-h-[min(24rem,60svh)] min-h-0 min-w-0 flex-auto flex-col overflow-hidden [&>[data-slot=scroll-area-viewport]]:h-auto [&>[data-slot=scroll-area-viewport]]:min-h-0 [&>[data-slot=scroll-area-viewport][data-has-overflow-y]]:[--notification-scrollbar-gutter:--spacing(2.5)]",
|
|
744
|
-
children: /* @__PURE__ */
|
|
474
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
745
475
|
className: "divide-border flex min-w-0 flex-col divide-y pe-[var(--notification-scrollbar-gutter,0px)]",
|
|
746
|
-
children: notifications.map((notification) => /* @__PURE__ */
|
|
476
|
+
children: notifications.map((notification) => /* @__PURE__ */ jsx(NotificationListItem, {
|
|
747
477
|
labels,
|
|
748
478
|
locale,
|
|
749
479
|
notification,
|
|
@@ -767,37 +497,37 @@ function NotificationListItem({
|
|
|
767
497
|
const canArchive = !notification.archivedAt && onArchive;
|
|
768
498
|
const rowClassName = cn("h-auto justify-start rounded-none", notificationRowLayout, canArchive && notificationArchiveInset);
|
|
769
499
|
const actionClassName = cn(rowClassName, "focus-visible:inset-ring-ring/50 focus-visible:ring-0 focus-visible:inset-ring-3 forced-colors:focus-visible:outline-2 forced-colors:focus-visible:-outline-offset-2 forced-colors:focus-visible:outline-solid");
|
|
770
|
-
const content = renderItem?.(notification) ?? /* @__PURE__ */
|
|
500
|
+
const content = renderItem?.(notification) ?? /* @__PURE__ */ jsxs("span", {
|
|
771
501
|
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
772
502
|
children: [
|
|
773
|
-
/* @__PURE__ */
|
|
503
|
+
/* @__PURE__ */ jsxs("span", {
|
|
774
504
|
className: "flex min-w-0 items-start gap-2",
|
|
775
505
|
children: [
|
|
776
|
-
unread ? /* @__PURE__ */
|
|
506
|
+
unread ? /* @__PURE__ */ jsx("span", {
|
|
777
507
|
"aria-hidden": "true",
|
|
778
508
|
className: "bg-primary mt-1.5 size-2 shrink-0 rounded-full"
|
|
779
509
|
}) : null,
|
|
780
|
-
/* @__PURE__ */
|
|
510
|
+
/* @__PURE__ */ jsx("span", {
|
|
781
511
|
className: "min-w-0 flex-1 font-medium",
|
|
782
512
|
children: notification.title
|
|
783
513
|
})
|
|
784
514
|
]
|
|
785
515
|
}),
|
|
786
|
-
notification.description ? /* @__PURE__ */
|
|
516
|
+
notification.description ? /* @__PURE__ */ jsx("span", {
|
|
787
517
|
className: "text-muted-foreground line-clamp-2 text-xs font-normal",
|
|
788
518
|
children: notification.description
|
|
789
519
|
}) : null,
|
|
790
|
-
notification.timestampLabel || notification.createdAt ? /* @__PURE__ */
|
|
520
|
+
notification.timestampLabel || notification.createdAt ? /* @__PURE__ */ jsx("span", {
|
|
791
521
|
className: "text-muted-foreground text-xs font-normal",
|
|
792
522
|
children: notification.timestampLabel ?? formatNotificationDate(notification.createdAt, locale)
|
|
793
523
|
}) : null
|
|
794
524
|
]
|
|
795
525
|
});
|
|
796
|
-
return /* @__PURE__ */
|
|
526
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
797
527
|
className: cn("relative flex min-w-0", unread && "bg-muted/70"),
|
|
798
528
|
"data-unread": unread || undefined,
|
|
799
529
|
children: [
|
|
800
|
-
href ? /* @__PURE__ */
|
|
530
|
+
href ? /* @__PURE__ */ jsx("a", {
|
|
801
531
|
className: cn(buttonVariants({ variant: "ghost" }), actionClassName),
|
|
802
532
|
href,
|
|
803
533
|
onClick: (event) => {
|
|
@@ -808,17 +538,17 @@ function NotificationListItem({
|
|
|
808
538
|
onNavigate(notification);
|
|
809
539
|
},
|
|
810
540
|
children: content
|
|
811
|
-
}) : onNavigate ? /* @__PURE__ */
|
|
541
|
+
}) : onNavigate ? /* @__PURE__ */ jsx(Button, {
|
|
812
542
|
className: actionClassName,
|
|
813
543
|
onClick: () => onNavigate(notification),
|
|
814
544
|
type: "button",
|
|
815
545
|
variant: "ghost",
|
|
816
546
|
children: content
|
|
817
|
-
}) : /* @__PURE__ */
|
|
547
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
818
548
|
className: cn(rowClassName, "flex items-center text-sm font-medium"),
|
|
819
549
|
children: content
|
|
820
550
|
}),
|
|
821
|
-
canArchive ? /* @__PURE__ */
|
|
551
|
+
canArchive ? /* @__PURE__ */ jsx(ArchiveButton, {
|
|
822
552
|
className: "absolute end-2 top-2",
|
|
823
553
|
label: labels.archiveItem(notificationTitle(notification)),
|
|
824
554
|
notificationIds: [notification.id],
|
|
@@ -832,19 +562,19 @@ function NotificationEmpty({
|
|
|
832
562
|
icon,
|
|
833
563
|
title
|
|
834
564
|
}) {
|
|
835
|
-
return /* @__PURE__ */
|
|
565
|
+
return /* @__PURE__ */ jsx(Empty, {
|
|
836
566
|
className: "min-h-48 p-6",
|
|
837
|
-
children: /* @__PURE__ */
|
|
567
|
+
children: /* @__PURE__ */ jsxs(EmptyHeader, {
|
|
838
568
|
children: [
|
|
839
|
-
/* @__PURE__ */
|
|
569
|
+
/* @__PURE__ */ jsx(EmptyMedia, {
|
|
840
570
|
variant: "icon",
|
|
841
571
|
children: icon
|
|
842
572
|
}),
|
|
843
|
-
/* @__PURE__ */
|
|
573
|
+
/* @__PURE__ */ jsx(EmptyTitle, {
|
|
844
574
|
className: "text-sm",
|
|
845
575
|
children: title
|
|
846
576
|
}),
|
|
847
|
-
/* @__PURE__ */
|
|
577
|
+
/* @__PURE__ */ jsx(EmptyDescription, {
|
|
848
578
|
className: "text-xs",
|
|
849
579
|
children: description
|
|
850
580
|
})
|
|
@@ -868,7 +598,7 @@ function ArchiveButton({
|
|
|
868
598
|
setPending(false);
|
|
869
599
|
}
|
|
870
600
|
};
|
|
871
|
-
return /* @__PURE__ */
|
|
601
|
+
return /* @__PURE__ */ jsxs(Button, {
|
|
872
602
|
"aria-label": label,
|
|
873
603
|
className,
|
|
874
604
|
disabled: pending,
|
|
@@ -878,7 +608,7 @@ function ArchiveButton({
|
|
|
878
608
|
type: "button",
|
|
879
609
|
variant: showLabel ? "outline" : "ghost",
|
|
880
610
|
children: [
|
|
881
|
-
/* @__PURE__ */
|
|
611
|
+
/* @__PURE__ */ jsx(Archive, {
|
|
882
612
|
"data-icon": showLabel ? "inline-start" : undefined
|
|
883
613
|
}),
|
|
884
614
|
showLabel ? label : null
|
|
@@ -886,23 +616,23 @@ function ArchiveButton({
|
|
|
886
616
|
});
|
|
887
617
|
}
|
|
888
618
|
function NotificationListLoading({ label }) {
|
|
889
|
-
return /* @__PURE__ */
|
|
619
|
+
return /* @__PURE__ */ jsx("div", {
|
|
890
620
|
"aria-label": label,
|
|
891
621
|
className: "flex flex-col gap-2 p-3",
|
|
892
622
|
role: "status",
|
|
893
|
-
children: [0, 1, 2].map((item) => /* @__PURE__ */
|
|
623
|
+
children: [0, 1, 2].map((item) => /* @__PURE__ */ jsxs("div", {
|
|
894
624
|
className: "flex items-center gap-3 p-2",
|
|
895
625
|
children: [
|
|
896
|
-
/* @__PURE__ */
|
|
626
|
+
/* @__PURE__ */ jsx(Skeleton, {
|
|
897
627
|
className: "size-2 shrink-0 rounded-full"
|
|
898
628
|
}),
|
|
899
|
-
/* @__PURE__ */
|
|
629
|
+
/* @__PURE__ */ jsxs("div", {
|
|
900
630
|
className: "flex flex-1 flex-col gap-2",
|
|
901
631
|
children: [
|
|
902
|
-
/* @__PURE__ */
|
|
632
|
+
/* @__PURE__ */ jsx(Skeleton, {
|
|
903
633
|
className: "h-4 w-4/5"
|
|
904
634
|
}),
|
|
905
|
-
/* @__PURE__ */
|
|
635
|
+
/* @__PURE__ */ jsx(Skeleton, {
|
|
906
636
|
className: "h-3 w-2/5"
|
|
907
637
|
})
|
|
908
638
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krak-stack/registry",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.6",
|
|
4
4
|
"description": "Tree-shakable KrakStack components and Effect services.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"type": "module",
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"exports": {
|
|
20
|
-
"./
|
|
21
|
-
"types": "./dist/components/
|
|
22
|
-
"import": "./dist/components/
|
|
20
|
+
"./hint": {
|
|
21
|
+
"types": "./dist/components/hint/react.d.ts",
|
|
22
|
+
"import": "./dist/components/hint/react.js"
|
|
23
23
|
},
|
|
24
24
|
"./effect-ui-adapter/react": {
|
|
25
25
|
"types": "./dist/lib/effect-ui-adapter/use-model.d.ts",
|
|
@@ -297,10 +297,6 @@
|
|
|
297
297
|
"types": "./dist/components/registry-previews/html-preview.d.ts",
|
|
298
298
|
"import": "./dist/components/registry-previews/html-preview.js"
|
|
299
299
|
},
|
|
300
|
-
"./effectcn/form": {
|
|
301
|
-
"types": "./dist/lib/effectcn-form.d.ts",
|
|
302
|
-
"import": "./dist/lib/effectcn-form.js"
|
|
303
|
-
},
|
|
304
300
|
"./docs/integrations": {
|
|
305
301
|
"types": "./dist/lib/docs.integrations.server.d.ts",
|
|
306
302
|
"import": "./dist/lib/docs.integrations.server.js"
|
|
@@ -465,11 +461,7 @@
|
|
|
465
461
|
"import": "./dist/services/health/index.js"
|
|
466
462
|
},
|
|
467
463
|
"./tailwind.css": "./tailwind.css",
|
|
468
|
-
"./package.json": "./package.json"
|
|
469
|
-
"./hint": {
|
|
470
|
-
"types": "./dist/components/hint/react.d.ts",
|
|
471
|
-
"import": "./dist/components/hint/react.js"
|
|
472
|
-
}
|
|
464
|
+
"./package.json": "./package.json"
|
|
473
465
|
},
|
|
474
466
|
"publishConfig": {
|
|
475
467
|
"access": "public"
|