rockin 0.0.15 → 0.0.17

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/dist/ui/index.js CHANGED
@@ -1,8 +1,13 @@
1
1
  "use client";
2
2
  import {
3
+ DataTableRoot,
4
+ useDataTable,
5
+ useDataTablePagination,
6
+ useDataTableRows,
7
+ useDataTableSearch,
3
8
  useMediaQuery,
4
9
  useMounted
5
- } from "../chunk-C3RGHTDI.js";
10
+ } from "../chunk-MO55ECUZ.js";
6
11
  import {
7
12
  Tooltip,
8
13
  TooltipContent,
@@ -18,7 +23,7 @@ import {
18
23
  } from "../chunk-ATPUW3SQ.js";
19
24
  import {
20
25
  IconSwap
21
- } from "../chunk-5LE4X3CW.js";
26
+ } from "../chunk-5QSYZSVL.js";
22
27
 
23
28
  // src/ui/accordion.tsx
24
29
  import { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
@@ -117,7 +122,7 @@ import { cva } from "class-variance-authority";
117
122
  import { cn as cn2 } from "cn";
118
123
  import { jsx as jsx2 } from "react/jsx-runtime";
119
124
  var buttonVariants = cva(
120
- "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-[background-color,border-color,color,box-shadow,opacity,transform] duration-150 ease-[var(--ease-out)] outline-none select-none motion-reduce:transition-none focus-visible:border-ring focus-visible:ring-2 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-2 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]:opacity-70 [&_svg:not([class*='size-'])]:size-4",
125
+ "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-[background-color,border-color,color,box-shadow,opacity,transform] duration-150 ease-[var(--ease-out)] outline-none select-none focus-visible:border-ring focus-visible:ring-2 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-2 aria-invalid:ring-destructive/20 motion-reduce:transition-none dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:opacity-70 [&_svg:not([class*='size-'])]:size-4",
121
126
  {
122
127
  variants: {
123
128
  variant: {
@@ -1184,7 +1189,7 @@ import { useRender } from "@base-ui/react/use-render";
1184
1189
  import { cva as cva2 } from "class-variance-authority";
1185
1190
  import { cn as cn11 } from "cn";
1186
1191
  var badgeVariants = cva2(
1187
- "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-[background-color,border-color,color,box-shadow,opacity] duration-150 ease-[var(--ease-out)] motion-reduce:transition-none 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!",
1192
+ "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-[background-color,border-color,color,box-shadow,opacity] duration-150 ease-[var(--ease-out)] 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 motion-reduce:transition-none dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
1188
1193
  {
1189
1194
  variants: {
1190
1195
  variant: {
@@ -2067,13 +2072,17 @@ function getPayloadConfigFromPayload(config, payload, key) {
2067
2072
  import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
2068
2073
  import { cn as cn18 } from "cn";
2069
2074
  import { jsx as jsx18 } from "react/jsx-runtime";
2070
- function Checkbox({ className, children, ...props }) {
2075
+ function Checkbox({
2076
+ className,
2077
+ children,
2078
+ ...props
2079
+ }) {
2071
2080
  return /* @__PURE__ */ jsx18(
2072
2081
  CheckboxPrimitive.Root,
2073
2082
  {
2074
2083
  "data-slot": "checkbox",
2075
2084
  className: cn18(
2076
- "peer inline-flex size-5 shrink-0 items-center justify-center rounded border border-border bg-background text-primary outline-none transition-[background-color,border-color,box-shadow,opacity] duration-150 ease-out focus-visible:ring-2 focus-visible:ring-ring/50 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground data-disabled:cursor-not-allowed data-disabled:opacity-50 motion-reduce:transition-none",
2085
+ "peer inline-flex size-5 shrink-0 items-center justify-center rounded border border-border bg-background text-primary transition-[background-color,border-color,box-shadow,opacity] duration-150 ease-out outline-none focus-visible:ring-2 focus-visible:ring-ring/50 motion-reduce:transition-none data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground data-disabled:cursor-not-allowed data-disabled:opacity-50",
2077
2086
  className
2078
2087
  ),
2079
2088
  ...props,
@@ -2994,11 +3003,374 @@ function DashedSeparator({
2994
3003
  );
2995
3004
  }
2996
3005
 
2997
- // src/ui/dock.tsx
3006
+ // src/ui/data-table/core/data-table.tsx
2998
3007
  import { cn as cn26 } from "cn";
3008
+ import { jsx as jsx26 } from "react/jsx-runtime";
3009
+ function DataTable({
3010
+ className,
3011
+ children,
3012
+ ...props
3013
+ }) {
3014
+ return /* @__PURE__ */ jsx26(
3015
+ "div",
3016
+ {
3017
+ className: cn26("overflow-x-auto rounded-lg border", className),
3018
+ ...props,
3019
+ children: /* @__PURE__ */ jsx26("table", { className: "w-full text-sm", children })
3020
+ }
3021
+ );
3022
+ }
3023
+ function DataTableCell({
3024
+ className,
3025
+ ...props
3026
+ }) {
3027
+ return /* @__PURE__ */ jsx26("td", { className: cn26("px-3 py-2.5 align-middle", className), ...props });
3028
+ }
3029
+ function DataTableRow({
3030
+ className,
3031
+ ...props
3032
+ }) {
3033
+ return /* @__PURE__ */ jsx26("tr", { className: cn26("border-b last:border-0", className), ...props });
3034
+ }
3035
+ function DataTableRows() {
3036
+ const { columns, pageData, getRowId } = useDataTable();
3037
+ return /* @__PURE__ */ jsx26("tbody", { children: pageData.map((row, rowIndex) => /* @__PURE__ */ jsx26(DataTableRow, { children: columns.map((column, columnIndex) => {
3038
+ const value = column.accessorFn ? column.accessorFn(row) : column.accessorKey ? row[column.accessorKey] : void 0;
3039
+ return /* @__PURE__ */ jsx26(
3040
+ DataTableCell,
3041
+ {
3042
+ children: column.cell ? column.cell(value, row, rowIndex) : String(value ?? "\u2014")
3043
+ },
3044
+ column.id ?? column.accessorKey ?? columnIndex
3045
+ );
3046
+ }) }, getRowId(row, rowIndex))) });
3047
+ }
3048
+
3049
+ // src/ui/data-table/core/data-table-structure.tsx
3050
+ import { cn as cn28 } from "cn";
3051
+
3052
+ // src/ui/skeleton.tsx
3053
+ import {
3054
+ forwardRef as forwardRef2,
3055
+ useLayoutEffect
3056
+ } from "react";
3057
+ import { cn as cn27 } from "cn";
3058
+ import { jsx as jsx27 } from "react/jsx-runtime";
3059
+ var componentThemeClassName = "[--ic-background:#ffffff] [--ic-foreground:#111111] [--ic-primary:#111111] [--ic-secondary:#646b75] [--ic-surface-border:#e9edf2] [--ic-border:#e3e7ec] [--ic-card:#ffffff] [--ic-card-foreground:#111111] [--ic-muted:#f5f7fa] [--ic-muted-foreground:#6d7480] [--ic-accent:#f3f5f8] [--color-accent:var(--ic-accent)] [--color-accent-foreground:var(--ic-accent-foreground)] [--ic-accent-foreground:#111111] [--ic-input:#e3e7ec] [--ic-ring:rgba(17,17,17,0.16)] [--ic-destructive:#dc2626] [--ic-paper:#fcfcfd] [--ic-popover-foreground:#111111] [--ic-brand:#0ea5e9] [--ic-brand-soft:#bae6fd] [--ic-shadow-soft:0_18px_38px_-24px_rgba(15,23,42,0.35)] [--ic-chart-1:oklch(0.52_0.19_254)] [--ic-chart-2:oklch(0.74_0.11_232)] [--ic-chart-3:oklch(0.42_0.16_262)] [--ic-chart-4:oklch(0.84_0.07_228)] [--ic-chart-5:oklch(0.62_0.14_240)] [--color-background:var(--ic-background)] [--color-foreground:var(--ic-foreground)] [--color-primary:var(--ic-primary)] [--color-secondary:var(--ic-secondary)] [--color-border:var(--ic-border)] [--color-card:var(--ic-card)] [--color-card-foreground:var(--ic-card-foreground)] [--color-muted:var(--ic-muted)] [--color-muted-foreground:var(--ic-muted-foreground)] [--color-accent:var(--ic-accent)] [--color-accent-foreground:var(--ic-accent-foreground)] [--color-input:var(--ic-input)] [--color-ring:var(--ic-ring)] [--color-destructive:var(--ic-destructive)] [--color-paper:var(--ic-paper)] [--color-popover-foreground:var(--ic-popover-foreground)] [--color-brand:var(--ic-brand)] [--color-brand-soft:var(--ic-brand-soft)] [--color-chart-1:var(--ic-chart-1)] [--color-chart-2:var(--ic-chart-2)] [--color-chart-3:var(--ic-chart-3)] [--color-chart-4:var(--ic-chart-4)] [--color-chart-5:var(--ic-chart-5)] dark:[--ic-background:#111111] dark:[--ic-foreground:#f6f3ec] dark:[--ic-primary:#f6f3ec] dark:[--ic-secondary:#cbc6bb] dark:[--ic-surface-border:#2a2a25] dark:[--ic-border:#2b2a25] dark:[--ic-card:#111111] dark:[--ic-card-foreground:#f6f3ec] dark:[--ic-muted:#171716] dark:[--ic-muted-foreground:#9a958a] dark:[--ic-accent:#1a1a18] [--color-accent:var(--ic-accent)] [--color-accent-foreground:var(--ic-accent-foreground)] dark:[--ic-accent-foreground:#f6f3ec] dark:[--ic-input:#2b2a25] dark:[--ic-ring:rgba(246,243,236,0.18)] dark:[--ic-destructive:#f87171] dark:[--ic-paper:#171716] dark:[--ic-popover-foreground:#f6f3ec] dark:[--ic-brand:#38bdf8] dark:[--ic-brand-soft:#0c4a6e] dark:[--ic-shadow-soft:0_20px_44px_-28px_rgba(0,0,0,0.6)] dark:[--ic-chart-1:oklch(0.68_0.17_250)] dark:[--ic-chart-2:oklch(0.82_0.09_225)] dark:[--ic-chart-3:oklch(0.58_0.15_260)] dark:[--ic-chart-4:oklch(0.75_0.12_235)] dark:[--ic-chart-5:oklch(0.88_0.06_220)]";
3060
+ var STYLE_ID = "iconiq-skeleton-styles";
3061
+ var SKELETON_CSS = `
3062
+ @keyframes iconiq-skeleton-shimmer {
3063
+ to {
3064
+ transform: translateX(200%);
3065
+ }
3066
+ }
3067
+
3068
+ @keyframes iconiq-skeleton-fade {
3069
+ 0%,
3070
+ 100% {
3071
+ opacity: 1;
3072
+ }
3073
+
3074
+ 50% {
3075
+ opacity: 0.38;
3076
+ }
3077
+ }
3078
+
3079
+ .iconiq-skeleton-surface {
3080
+ background-color: #f5f7fa;
3081
+ background-color: var(--ic-muted);
3082
+ }
3083
+
3084
+ .iconiq-skeleton-shimmer {
3085
+ background: linear-gradient(
3086
+ 90deg,
3087
+ transparent 0%,
3088
+ rgba(17, 17, 17, 0.06) 50%,
3089
+ transparent 100%
3090
+ );
3091
+ background: linear-gradient(
3092
+ 90deg,
3093
+ transparent 0%,
3094
+ color-mix(in srgb, var(--ic-foreground) 6%, transparent) 50%,
3095
+ transparent 100%
3096
+ );
3097
+ animation: iconiq-skeleton-shimmer var(--iconiq-skeleton-duration, 1.6s)
3098
+ ease-in-out infinite;
3099
+ }
3100
+
3101
+ .iconiq-skeleton-fade-root {
3102
+ animation: iconiq-skeleton-fade var(--iconiq-skeleton-duration, 2.4s)
3103
+ ease-in-out infinite;
3104
+ }
3105
+
3106
+ @media (prefers-reduced-motion: reduce) {
3107
+ .iconiq-skeleton-shimmer,
3108
+ .iconiq-skeleton-fade-root {
3109
+ animation: none;
3110
+ }
3111
+ }
3112
+ `;
3113
+ var skeletonRoundedClasses = {
3114
+ none: "rounded-none",
3115
+ sm: "rounded-sm",
3116
+ md: "rounded-md",
3117
+ lg: "rounded-lg",
3118
+ full: "rounded-full"
3119
+ };
3120
+ var skeletonVariantDefaultDuration = {
3121
+ shimmer: 1.6,
3122
+ fade: 2.4
3123
+ };
3124
+ function getSkeletonVariantDuration(variant, duration = 1.6) {
3125
+ if (duration !== 1.6) {
3126
+ return duration;
3127
+ }
3128
+ return skeletonVariantDefaultDuration[variant];
3129
+ }
3130
+ function ensureSkeletonStyles() {
3131
+ if (typeof document === "undefined") {
3132
+ return;
3133
+ }
3134
+ let style = document.getElementById(STYLE_ID);
3135
+ if (!style) {
3136
+ style = document.createElement("style");
3137
+ style.id = STYLE_ID;
3138
+ document.head.appendChild(style);
3139
+ }
3140
+ style.textContent = SKELETON_CSS;
3141
+ }
3142
+ function resolveSkeletonA11yProps({
3143
+ animate: animate2 = true,
3144
+ decorative = true,
3145
+ label
3146
+ }) {
3147
+ if (decorative || label === null) {
3148
+ return { "aria-hidden": true };
3149
+ }
3150
+ return {
3151
+ "aria-label": label ?? (animate2 ? "Loading" : "Placeholder"),
3152
+ "aria-live": "polite",
3153
+ role: "status"
3154
+ };
3155
+ }
3156
+ var Skeleton = forwardRef2(function Skeleton2({
3157
+ animate: animate2 = true,
3158
+ className,
3159
+ decorative = true,
3160
+ duration = 1.6,
3161
+ label,
3162
+ rounded = "md",
3163
+ style,
3164
+ variant = "shimmer",
3165
+ ...props
3166
+ }, ref) {
3167
+ const variantDuration = getSkeletonVariantDuration(variant, duration);
3168
+ const showShimmer = animate2 && variant === "shimmer";
3169
+ const showFade = animate2 && variant === "fade";
3170
+ useLayoutEffect(() => {
3171
+ if (animate2) {
3172
+ ensureSkeletonStyles();
3173
+ }
3174
+ }, [animate2]);
3175
+ const animatedStyle = showShimmer || showFade ? {
3176
+ ...style,
3177
+ "--iconiq-skeleton-duration": `${variantDuration}s`
3178
+ } : style;
3179
+ return /* @__PURE__ */ jsx27(
3180
+ "div",
3181
+ {
3182
+ className: cn27(
3183
+ componentThemeClassName,
3184
+ "iconiq-skeleton-surface relative block h-4 w-full overflow-hidden",
3185
+ showFade && "iconiq-skeleton-fade-root",
3186
+ skeletonRoundedClasses[rounded],
3187
+ className
3188
+ ),
3189
+ ref,
3190
+ style: animatedStyle,
3191
+ ...resolveSkeletonA11yProps({ animate: animate2, decorative, label }),
3192
+ ...props,
3193
+ children: showShimmer ? /* @__PURE__ */ jsx27(
3194
+ "span",
3195
+ {
3196
+ "aria-hidden": "true",
3197
+ className: "iconiq-skeleton-shimmer pointer-events-none absolute inset-0 -translate-x-full"
3198
+ }
3199
+ ) : null
3200
+ }
3201
+ );
3202
+ });
3203
+ Skeleton.displayName = "Skeleton";
3204
+ function SkeletonAvatar({
3205
+ className,
3206
+ ...props
3207
+ }) {
3208
+ return /* @__PURE__ */ jsx27(
3209
+ Skeleton,
3210
+ {
3211
+ className: cn27("size-10", className),
3212
+ decorative: true,
3213
+ rounded: "full",
3214
+ ...props
3215
+ }
3216
+ );
3217
+ }
3218
+ function SkeletonText({ className, ...props }) {
3219
+ return /* @__PURE__ */ jsx27(Skeleton, { className: cn27("h-3", className), decorative: true, ...props });
3220
+ }
3221
+ function SkeletonButton({
3222
+ className,
3223
+ ...props
3224
+ }) {
3225
+ return /* @__PURE__ */ jsx27(
3226
+ Skeleton,
3227
+ {
3228
+ className: cn27("h-9 w-24", className),
3229
+ decorative: true,
3230
+ rounded: "lg",
3231
+ ...props
3232
+ }
3233
+ );
3234
+ }
3235
+ var ShimmerSkeleton = Skeleton;
3236
+
3237
+ // src/ui/data-table/core/data-table-structure.tsx
3238
+ import { Fragment as Fragment2, jsx as jsx28, jsxs as jsxs14 } from "react/jsx-runtime";
3239
+ function DataTableHeader({ className }) {
3240
+ const { columns } = useDataTable();
3241
+ return /* @__PURE__ */ jsx28("thead", { className: cn28("bg-muted/60", className), children: /* @__PURE__ */ jsx28(DataTableRow, { children: columns.map((column, index) => /* @__PURE__ */ jsx28(
3242
+ "th",
3243
+ {
3244
+ className: "px-3 py-2.5 text-left text-xs font-medium text-muted-foreground",
3245
+ children: typeof column.header === "function" ? column.header(column) : column.header
3246
+ },
3247
+ column.id ?? column.accessorKey ?? index
3248
+ )) }) });
3249
+ }
3250
+ function DataTableBody({ children }) {
3251
+ return /* @__PURE__ */ jsxs14(Fragment2, { children: [
3252
+ /* @__PURE__ */ jsx28(DataTableRows, {}),
3253
+ children
3254
+ ] });
3255
+ }
3256
+ function DataTableSkeleton({ rows = 3 }) {
3257
+ const { columns, isLoading } = useDataTable();
3258
+ if (!isLoading) return null;
3259
+ return /* @__PURE__ */ jsx28("tbody", { "aria-label": "Loading rows", children: Array.from({ length: rows }, (_, rowIndex) => /* @__PURE__ */ jsx28(DataTableRow, { children: columns.map((column, columnIndex) => /* @__PURE__ */ jsx28(DataTableCell, { children: /* @__PURE__ */ jsx28(Skeleton, { className: "h-4" }) }, column.id ?? column.accessorKey ?? columnIndex)) }, rowIndex)) });
3260
+ }
3261
+ function DataTableEmptyBody({
3262
+ children = "No results found."
3263
+ }) {
3264
+ const { pageData, isLoading } = useDataTable();
3265
+ if (isLoading || pageData.length > 0) return null;
3266
+ return /* @__PURE__ */ jsx28("tbody", { children: /* @__PURE__ */ jsx28(DataTableRow, { children: /* @__PURE__ */ jsx28(
3267
+ DataTableCell,
3268
+ {
3269
+ className: "h-24 text-center text-muted-foreground",
3270
+ colSpan: 100,
3271
+ children
3272
+ }
3273
+ ) }) });
3274
+ }
3275
+
3276
+ // src/ui/data-table/components/data-table-pagination.tsx
3277
+ import { ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight2 } from "lucide-react";
3278
+ import { jsx as jsx29, jsxs as jsxs15 } from "react/jsx-runtime";
3279
+ function DataTablePagination() {
3280
+ const { totalRows } = useDataTableRows();
3281
+ const {
3282
+ pageIndex,
3283
+ pageSize,
3284
+ pageCount,
3285
+ canPreviousPage,
3286
+ canNextPage,
3287
+ previousPage,
3288
+ nextPage
3289
+ } = useDataTablePagination();
3290
+ const first = totalRows === 0 ? 0 : pageIndex * pageSize + 1;
3291
+ const last = Math.min((pageIndex + 1) * pageSize, totalRows);
3292
+ return /* @__PURE__ */ jsxs15("div", { className: "flex items-center justify-between gap-3 text-sm text-muted-foreground", children: [
3293
+ /* @__PURE__ */ jsx29("span", { children: totalRows ? `${first}\u2013${last} of ${totalRows}` : "0 results" }),
3294
+ /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-1", children: [
3295
+ /* @__PURE__ */ jsx29(
3296
+ Button,
3297
+ {
3298
+ "aria-label": "Previous page",
3299
+ disabled: !canPreviousPage,
3300
+ onClick: previousPage,
3301
+ size: "icon-sm",
3302
+ variant: "outline",
3303
+ children: /* @__PURE__ */ jsx29(ChevronLeft2, {})
3304
+ }
3305
+ ),
3306
+ /* @__PURE__ */ jsxs15("span", { className: "min-w-16 text-center text-xs", children: [
3307
+ "Page ",
3308
+ pageIndex + 1,
3309
+ " of ",
3310
+ pageCount
3311
+ ] }),
3312
+ /* @__PURE__ */ jsx29(
3313
+ Button,
3314
+ {
3315
+ "aria-label": "Next page",
3316
+ disabled: !canNextPage,
3317
+ onClick: nextPage,
3318
+ size: "icon-sm",
3319
+ variant: "outline",
3320
+ children: /* @__PURE__ */ jsx29(ChevronRight2, {})
3321
+ }
3322
+ )
3323
+ ] })
3324
+ ] });
3325
+ }
3326
+
3327
+ // src/ui/data-table/components/data-table-search-filter.tsx
3328
+ import { Search } from "lucide-react";
3329
+ import { jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
3330
+ function DataTableSearchFilter({
3331
+ placeholder = "Search...",
3332
+ className
3333
+ }) {
3334
+ const { search, setSearch } = useDataTableSearch();
3335
+ return /* @__PURE__ */ jsxs16("div", { className: `relative w-full max-w-sm ${className ?? ""}`, children: [
3336
+ /* @__PURE__ */ jsx30(Search, { className: "pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground" }),
3337
+ /* @__PURE__ */ jsx30(
3338
+ Input,
3339
+ {
3340
+ "aria-label": placeholder,
3341
+ className: "pl-8",
3342
+ onChange: (event) => setSearch(event.target.value),
3343
+ placeholder,
3344
+ value: search
3345
+ }
3346
+ )
3347
+ ] });
3348
+ }
3349
+
3350
+ // src/ui/data-table/components/data-table-toolbar-section.tsx
3351
+ import { cn as cn29 } from "cn";
3352
+ import { jsx as jsx31 } from "react/jsx-runtime";
3353
+ function DataTableToolbarSection({
3354
+ className,
3355
+ ...props
3356
+ }) {
3357
+ return /* @__PURE__ */ jsx31(
3358
+ "div",
3359
+ {
3360
+ className: cn29(
3361
+ "flex flex-wrap items-center justify-between gap-2",
3362
+ className
3363
+ ),
3364
+ ...props
3365
+ }
3366
+ );
3367
+ }
3368
+
3369
+ // src/ui/dock.tsx
3370
+ import { cn as cn30 } from "cn";
2999
3371
  import { motion as motion4 } from "motion/react";
3000
3372
  import * as React8 from "react";
3001
- import { jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
3373
+ import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
3002
3374
  var floatingAnimation = {
3003
3375
  initial: { y: 0 },
3004
3376
  animate: {
@@ -3012,24 +3384,24 @@ var floatingAnimation = {
3012
3384
  };
3013
3385
  var DockIconButton = React8.forwardRef(
3014
3386
  ({ icon: Icon, label, onClick, className }, ref) => {
3015
- return /* @__PURE__ */ jsxs14(
3387
+ return /* @__PURE__ */ jsxs17(
3016
3388
  motion4.button,
3017
3389
  {
3018
3390
  ref,
3019
3391
  whileHover: { scale: 1.1, y: -2 },
3020
3392
  whileTap: { scale: 0.95 },
3021
3393
  onClick,
3022
- className: cn26(
3394
+ className: cn30(
3023
3395
  "group relative rounded-lg p-3",
3024
3396
  "transition-colors hover:bg-secondary",
3025
3397
  className
3026
3398
  ),
3027
3399
  children: [
3028
- /* @__PURE__ */ jsx26(Icon, { className: "h-5 w-5 text-foreground" }),
3029
- /* @__PURE__ */ jsx26(
3400
+ /* @__PURE__ */ jsx32(Icon, { className: "h-5 w-5 text-foreground" }),
3401
+ /* @__PURE__ */ jsx32(
3030
3402
  "span",
3031
3403
  {
3032
- className: cn26(
3404
+ className: cn30(
3033
3405
  "absolute -top-8 left-1/2 -translate-x-1/2",
3034
3406
  "rounded px-2 py-1 text-xs",
3035
3407
  "bg-background text-popover-foreground",
@@ -3047,27 +3419,27 @@ var DockIconButton = React8.forwardRef(
3047
3419
  DockIconButton.displayName = "DockIconButton";
3048
3420
  var Dock = React8.forwardRef(
3049
3421
  ({ items, className }, ref) => {
3050
- return /* @__PURE__ */ jsx26(
3422
+ return /* @__PURE__ */ jsx32(
3051
3423
  "div",
3052
3424
  {
3053
3425
  ref,
3054
- className: cn26(
3426
+ className: cn30(
3055
3427
  "flex h-64 w-full items-center justify-center p-2",
3056
3428
  className
3057
3429
  ),
3058
- children: /* @__PURE__ */ jsx26("div", { className: "relative flex h-64 w-full max-w-4xl items-center justify-center rounded-2xl", children: /* @__PURE__ */ jsx26(
3430
+ children: /* @__PURE__ */ jsx32("div", { className: "relative flex h-64 w-full max-w-4xl items-center justify-center rounded-2xl", children: /* @__PURE__ */ jsx32(
3059
3431
  motion4.div,
3060
3432
  {
3061
3433
  initial: "initial",
3062
3434
  animate: "animate",
3063
3435
  variants: floatingAnimation,
3064
- className: cn26(
3436
+ className: cn30(
3065
3437
  "flex items-center gap-1 rounded-2xl p-2",
3066
3438
  "border shadow-lg backdrop-blur-lg",
3067
3439
  "border-border bg-background/90",
3068
3440
  "transition-shadow duration-300 hover:shadow-xl"
3069
3441
  ),
3070
- children: items.map((item) => /* @__PURE__ */ jsx26(DockIconButton, { ...item }, item.label))
3442
+ children: items.map((item) => /* @__PURE__ */ jsx32(DockIconButton, { ...item }, item.label))
3071
3443
  }
3072
3444
  ) })
3073
3445
  }
@@ -3079,8 +3451,8 @@ Dock.displayName = "Dock";
3079
3451
  // src/ui/drawer.tsx
3080
3452
  import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer";
3081
3453
  import * as React9 from "react";
3082
- import { cn as cn27 } from "cn";
3083
- import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
3454
+ import { cn as cn31 } from "cn";
3455
+ import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
3084
3456
  var DrawerContext = React9.createContext(null);
3085
3457
  function useDrawer() {
3086
3458
  const context = React9.useContext(DrawerContext);
@@ -3107,7 +3479,7 @@ function Drawer({
3107
3479
  }),
3108
3480
  [hasSnapPoints, modal, resolvedShowSwipeHandle, swipeDirection]
3109
3481
  );
3110
- return /* @__PURE__ */ jsx27(DrawerContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx27(
3482
+ return /* @__PURE__ */ jsx33(DrawerContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx33(
3111
3483
  DrawerPrimitive.Root,
3112
3484
  {
3113
3485
  "data-slot": "drawer",
@@ -3119,23 +3491,23 @@ function Drawer({
3119
3491
  ) });
3120
3492
  }
3121
3493
  function DrawerTrigger({ ...props }) {
3122
- return /* @__PURE__ */ jsx27(DrawerPrimitive.Trigger, { "data-slot": "drawer-trigger", ...props });
3494
+ return /* @__PURE__ */ jsx33(DrawerPrimitive.Trigger, { "data-slot": "drawer-trigger", ...props });
3123
3495
  }
3124
3496
  function DrawerPortal({ ...props }) {
3125
- return /* @__PURE__ */ jsx27(DrawerPrimitive.Portal, { "data-slot": "drawer-portal", ...props });
3497
+ return /* @__PURE__ */ jsx33(DrawerPrimitive.Portal, { "data-slot": "drawer-portal", ...props });
3126
3498
  }
3127
3499
  function DrawerClose({ ...props }) {
3128
- return /* @__PURE__ */ jsx27(DrawerPrimitive.Close, { "data-slot": "drawer-close", ...props });
3500
+ return /* @__PURE__ */ jsx33(DrawerPrimitive.Close, { "data-slot": "drawer-close", ...props });
3129
3501
  }
3130
3502
  function DrawerOverlay({
3131
3503
  className,
3132
3504
  ...props
3133
3505
  }) {
3134
- return /* @__PURE__ */ jsx27(
3506
+ return /* @__PURE__ */ jsx33(
3135
3507
  DrawerPrimitive.Backdrop,
3136
3508
  {
3137
3509
  "data-slot": "drawer-overlay",
3138
- className: cn27(
3510
+ className: cn31(
3139
3511
  "ease-out-fluid fixed inset-0 z-50 min-h-dvh bg-black/10 opacity-[max(var(--drawer-overlay-min-opacity,0),calc(1-var(--drawer-swipe-progress)))] transition-opacity duration-450 select-none data-ending-style:pointer-events-none data-ending-style:opacity-0 data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-snap-points:[--drawer-overlay-min-opacity:0.5] data-starting-style:opacity-0 data-swiping:duration-0 supports-backdrop-filter:backdrop-blur-xs supports-[-webkit-touch-callout:none]:absolute",
3140
3512
  className
3141
3513
  ),
@@ -3147,12 +3519,12 @@ function DrawerSwipeHandle({
3147
3519
  className,
3148
3520
  ...props
3149
3521
  }) {
3150
- return /* @__PURE__ */ jsx27(
3522
+ return /* @__PURE__ */ jsx33(
3151
3523
  "div",
3152
3524
  {
3153
3525
  "data-slot": "drawer-swipe-handle",
3154
3526
  "aria-hidden": "true",
3155
- className: cn27(
3527
+ className: cn31(
3156
3528
  "flex shrink-0 cursor-grab transition-opacity duration-200 group-data-nested-drawer-open/drawer-popup:opacity-0 group-data-nested-drawer-swiping/drawer-popup:opacity-100 group-data-[swipe-axis=x]/drawer-popup:h-full group-data-[swipe-axis=x]/drawer-popup:w-3 group-data-[swipe-axis=x]/drawer-popup:items-center group-data-[swipe-axis=y]/drawer-popup:h-3 group-data-[swipe-axis=y]/drawer-popup:w-full group-data-[swipe-axis=y]/drawer-popup:justify-center group-data-[swipe-direction=down]/drawer-popup:items-end group-data-[swipe-direction=left]/drawer-popup:order-last group-data-[swipe-direction=left]/drawer-popup:justify-start group-data-[swipe-direction=right]/drawer-popup:justify-end group-data-[swipe-direction=up]/drawer-popup:order-last group-data-[swipe-direction=up]/drawer-popup:items-start after:block after:shrink-0 after:rounded-full after:bg-muted group-data-[swipe-axis=x]/drawer-popup:after:h-24 group-data-[swipe-axis=x]/drawer-popup:after:w-1 group-data-[swipe-axis=y]/drawer-popup:after:h-1 group-data-[swipe-axis=y]/drawer-popup:after:w-20 active:cursor-grabbing",
3157
3529
  className
3158
3530
  ),
@@ -3167,21 +3539,21 @@ function DrawerContent({
3167
3539
  }) {
3168
3540
  const { hasSnapPoints, modal, showSwipeHandle, swipeDirection } = useDrawer();
3169
3541
  const swipeAxis = swipeDirection === "down" || swipeDirection === "up" ? "y" : "x";
3170
- return /* @__PURE__ */ jsxs15(DrawerPortal, { "data-slot": "drawer-portal", children: [
3171
- modal === true && /* @__PURE__ */ jsx27(DrawerOverlay, { "data-snap-points": hasSnapPoints ? "" : void 0 }),
3172
- /* @__PURE__ */ jsx27(
3542
+ return /* @__PURE__ */ jsxs18(DrawerPortal, { "data-slot": "drawer-portal", children: [
3543
+ modal === true && /* @__PURE__ */ jsx33(DrawerOverlay, { "data-snap-points": hasSnapPoints ? "" : void 0 }),
3544
+ /* @__PURE__ */ jsx33(
3173
3545
  DrawerPrimitive.Viewport,
3174
3546
  {
3175
3547
  "data-slot": "drawer-viewport",
3176
3548
  "data-modal": modal,
3177
3549
  className: "pointer-events-none fixed inset-0 z-50 select-none data-[modal=true]:pointer-events-auto",
3178
- children: /* @__PURE__ */ jsxs15(
3550
+ children: /* @__PURE__ */ jsxs18(
3179
3551
  DrawerPrimitive.Popup,
3180
3552
  {
3181
3553
  "data-slot": "drawer-popup",
3182
3554
  "data-swipe-axis": swipeAxis,
3183
3555
  "data-snap-points": hasSnapPoints ? "" : void 0,
3184
- className: cn27(
3556
+ className: cn31(
3185
3557
  // Base.
3186
3558
  "group/drawer-popup pointer-events-auto fixed z-50 m-(--drawer-inset,0px) flex h-(--drawer-content-height) max-h-(--drawer-content-max-height,none) min-h-0 w-(--drawer-content-width,auto) transform-[translate3d(var(--translate-x,0px),var(--translate-y,0px),0)_scale(var(--stack-scale))] flex-col rounded-4xl border bg-card text-sm text-popover-foreground transition-[transform,height,opacity,filter] duration-450 ease-[cubic-bezier(0.22,1,0.36,1)] will-change-transform outline-none select-none [--drawer-bleed-background:transparent] [--drawer-inset:--spacing(2)] [interpolate-size:allow-keywords] max-md:pb-(--app-safe-bottom) md:pb-0 dark:border-border",
3187
3559
  // Nested.
@@ -3210,12 +3582,12 @@ function DrawerContent({
3210
3582
  ),
3211
3583
  ...props,
3212
3584
  children: [
3213
- showSwipeHandle && /* @__PURE__ */ jsx27(DrawerSwipeHandle, {}),
3214
- /* @__PURE__ */ jsx27(
3585
+ showSwipeHandle && /* @__PURE__ */ jsx33(DrawerSwipeHandle, {}),
3586
+ /* @__PURE__ */ jsx33(
3215
3587
  DrawerPrimitive.Content,
3216
3588
  {
3217
3589
  "data-slot": "drawer-content",
3218
- className: cn27(
3590
+ className: cn31(
3219
3591
  "flex min-h-0 flex-1 flex-col overflow-hidden overscroll-contain rounded-[inherit] transition-opacity duration-300 ease-[cubic-bezier(0.45,1.005,0,1.005)] select-text group-data-nested-drawer-open/drawer-popup:opacity-0 group-data-nested-drawer-swiping/drawer-popup:opacity-100 group-data-swiping/drawer-popup:select-none"
3220
3592
  ),
3221
3593
  children
@@ -3229,11 +3601,11 @@ function DrawerContent({
3229
3601
  ] });
3230
3602
  }
3231
3603
  function DrawerHeader({ className, ...props }) {
3232
- return /* @__PURE__ */ jsx27(
3604
+ return /* @__PURE__ */ jsx33(
3233
3605
  "div",
3234
3606
  {
3235
3607
  "data-slot": "drawer-header",
3236
- className: cn27(
3608
+ className: cn31(
3237
3609
  "flex shrink-0 flex-col gap-0.5 p-4 pb-0 group-data-[swipe-axis=y]/drawer-popup:text-center md:gap-1.5 md:text-left",
3238
3610
  className
3239
3611
  ),
@@ -3242,21 +3614,21 @@ function DrawerHeader({ className, ...props }) {
3242
3614
  );
3243
3615
  }
3244
3616
  function DrawerFooter({ className, ...props }) {
3245
- return /* @__PURE__ */ jsx27(
3617
+ return /* @__PURE__ */ jsx33(
3246
3618
  "div",
3247
3619
  {
3248
3620
  "data-slot": "drawer-footer",
3249
- className: cn27("mt-auto flex shrink-0 flex-col gap-2 p-4 pt-0", className),
3621
+ className: cn31("mt-auto flex shrink-0 flex-col gap-2 p-4 pt-0", className),
3250
3622
  ...props
3251
3623
  }
3252
3624
  );
3253
3625
  }
3254
3626
  function DrawerTitle({ className, ...props }) {
3255
- return /* @__PURE__ */ jsx27(
3627
+ return /* @__PURE__ */ jsx33(
3256
3628
  DrawerPrimitive.Title,
3257
3629
  {
3258
3630
  "data-slot": "drawer-title",
3259
- className: cn27(
3631
+ className: cn31(
3260
3632
  "font-heading text-base font-medium text-foreground",
3261
3633
  className
3262
3634
  ),
@@ -3268,11 +3640,11 @@ function DrawerDescription({
3268
3640
  className,
3269
3641
  ...props
3270
3642
  }) {
3271
- return /* @__PURE__ */ jsx27(
3643
+ return /* @__PURE__ */ jsx33(
3272
3644
  DrawerPrimitive.Description,
3273
3645
  {
3274
3646
  "data-slot": "drawer-description",
3275
- className: cn27("text-sm text-balance text-muted-foreground", className),
3647
+ className: cn31("text-sm text-balance text-muted-foreground", className),
3276
3648
  ...props
3277
3649
  }
3278
3650
  );
@@ -3280,17 +3652,17 @@ function DrawerDescription({
3280
3652
 
3281
3653
  // src/ui/dropdown-menu.tsx
3282
3654
  import { Menu as MenuPrimitive } from "@base-ui/react/menu";
3283
- import { cn as cn28 } from "cn";
3655
+ import { cn as cn32 } from "cn";
3284
3656
  import { CheckIcon, ChevronRightIcon } from "lucide-react";
3285
- import { jsx as jsx28, jsxs as jsxs16 } from "react/jsx-runtime";
3657
+ import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
3286
3658
  function DropdownMenu({ ...props }) {
3287
- return /* @__PURE__ */ jsx28(MenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
3659
+ return /* @__PURE__ */ jsx34(MenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
3288
3660
  }
3289
3661
  function DropdownMenuPortal({ ...props }) {
3290
- return /* @__PURE__ */ jsx28(MenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
3662
+ return /* @__PURE__ */ jsx34(MenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
3291
3663
  }
3292
3664
  function DropdownMenuTrigger({ ...props }) {
3293
- return /* @__PURE__ */ jsx28(MenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
3665
+ return /* @__PURE__ */ jsx34(MenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
3294
3666
  }
3295
3667
  function DropdownMenuContent({
3296
3668
  align = "start",
@@ -3300,7 +3672,7 @@ function DropdownMenuContent({
3300
3672
  className,
3301
3673
  ...props
3302
3674
  }) {
3303
- return /* @__PURE__ */ jsx28(MenuPrimitive.Portal, { children: /* @__PURE__ */ jsx28(
3675
+ return /* @__PURE__ */ jsx34(MenuPrimitive.Portal, { children: /* @__PURE__ */ jsx34(
3304
3676
  MenuPrimitive.Positioner,
3305
3677
  {
3306
3678
  className: "isolate z-50 outline-none",
@@ -3308,11 +3680,11 @@ function DropdownMenuContent({
3308
3680
  alignOffset,
3309
3681
  side,
3310
3682
  sideOffset,
3311
- children: /* @__PURE__ */ jsx28(
3683
+ children: /* @__PURE__ */ jsx34(
3312
3684
  MenuPrimitive.Popup,
3313
3685
  {
3314
3686
  "data-slot": "dropdown-menu-content",
3315
- className: cn28(
3687
+ className: cn32(
3316
3688
  "z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-background p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95",
3317
3689
  className
3318
3690
  ),
@@ -3323,19 +3695,19 @@ function DropdownMenuContent({
3323
3695
  ) });
3324
3696
  }
3325
3697
  function DropdownMenuGroup({ ...props }) {
3326
- return /* @__PURE__ */ jsx28(MenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
3698
+ return /* @__PURE__ */ jsx34(MenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
3327
3699
  }
3328
3700
  function DropdownMenuLabel({
3329
3701
  className,
3330
3702
  inset,
3331
3703
  ...props
3332
3704
  }) {
3333
- return /* @__PURE__ */ jsx28(
3705
+ return /* @__PURE__ */ jsx34(
3334
3706
  MenuPrimitive.GroupLabel,
3335
3707
  {
3336
3708
  "data-slot": "dropdown-menu-label",
3337
3709
  "data-inset": inset,
3338
- className: cn28(
3710
+ className: cn32(
3339
3711
  "px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",
3340
3712
  className
3341
3713
  ),
@@ -3349,13 +3721,13 @@ function DropdownMenuItem({
3349
3721
  variant = "default",
3350
3722
  ...props
3351
3723
  }) {
3352
- return /* @__PURE__ */ jsx28(
3724
+ return /* @__PURE__ */ jsx34(
3353
3725
  MenuPrimitive.Item,
3354
3726
  {
3355
3727
  "data-slot": "dropdown-menu-item",
3356
3728
  "data-inset": inset,
3357
3729
  "data-variant": variant,
3358
- className: cn28(
3730
+ className: cn32(
3359
3731
  "group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",
3360
3732
  className
3361
3733
  ),
@@ -3364,7 +3736,7 @@ function DropdownMenuItem({
3364
3736
  );
3365
3737
  }
3366
3738
  function DropdownMenuSub({ ...props }) {
3367
- return /* @__PURE__ */ jsx28(MenuPrimitive.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...props });
3739
+ return /* @__PURE__ */ jsx34(MenuPrimitive.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...props });
3368
3740
  }
3369
3741
  function DropdownMenuSubTrigger({
3370
3742
  className,
@@ -3372,19 +3744,19 @@ function DropdownMenuSubTrigger({
3372
3744
  children,
3373
3745
  ...props
3374
3746
  }) {
3375
- return /* @__PURE__ */ jsxs16(
3747
+ return /* @__PURE__ */ jsxs19(
3376
3748
  MenuPrimitive.SubmenuTrigger,
3377
3749
  {
3378
3750
  "data-slot": "dropdown-menu-sub-trigger",
3379
3751
  "data-inset": inset,
3380
- className: cn28(
3752
+ className: cn32(
3381
3753
  "flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-popup-open:bg-accent data-popup-open:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
3382
3754
  className
3383
3755
  ),
3384
3756
  ...props,
3385
3757
  children: [
3386
3758
  children,
3387
- /* @__PURE__ */ jsx28(ChevronRightIcon, { className: "ml-auto" })
3759
+ /* @__PURE__ */ jsx34(ChevronRightIcon, { className: "ml-auto" })
3388
3760
  ]
3389
3761
  }
3390
3762
  );
@@ -3397,11 +3769,11 @@ function DropdownMenuSubContent({
3397
3769
  className,
3398
3770
  ...props
3399
3771
  }) {
3400
- return /* @__PURE__ */ jsx28(
3772
+ return /* @__PURE__ */ jsx34(
3401
3773
  DropdownMenuContent,
3402
3774
  {
3403
3775
  "data-slot": "dropdown-menu-sub-content",
3404
- className: cn28(
3776
+ className: cn32(
3405
3777
  "w-auto min-w-[96px] rounded-lg bg-background p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-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",
3406
3778
  className
3407
3779
  ),
@@ -3420,24 +3792,24 @@ function DropdownMenuCheckboxItem({
3420
3792
  inset,
3421
3793
  ...props
3422
3794
  }) {
3423
- return /* @__PURE__ */ jsxs16(
3795
+ return /* @__PURE__ */ jsxs19(
3424
3796
  MenuPrimitive.CheckboxItem,
3425
3797
  {
3426
3798
  "data-slot": "dropdown-menu-checkbox-item",
3427
3799
  "data-inset": inset,
3428
- className: cn28(
3800
+ className: cn32(
3429
3801
  "relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
3430
3802
  className
3431
3803
  ),
3432
3804
  checked,
3433
3805
  ...props,
3434
3806
  children: [
3435
- /* @__PURE__ */ jsx28(
3807
+ /* @__PURE__ */ jsx34(
3436
3808
  "span",
3437
3809
  {
3438
3810
  className: "pointer-events-none absolute right-2 flex items-center justify-center",
3439
3811
  "data-slot": "dropdown-menu-checkbox-item-indicator",
3440
- children: /* @__PURE__ */ jsx28(MenuPrimitive.CheckboxItemIndicator, { children: /* @__PURE__ */ jsx28(CheckIcon, {}) })
3812
+ children: /* @__PURE__ */ jsx34(MenuPrimitive.CheckboxItemIndicator, { children: /* @__PURE__ */ jsx34(CheckIcon, {}) })
3441
3813
  }
3442
3814
  ),
3443
3815
  children
@@ -3446,7 +3818,7 @@ function DropdownMenuCheckboxItem({
3446
3818
  );
3447
3819
  }
3448
3820
  function DropdownMenuRadioGroup({ ...props }) {
3449
- return /* @__PURE__ */ jsx28(
3821
+ return /* @__PURE__ */ jsx34(
3450
3822
  MenuPrimitive.RadioGroup,
3451
3823
  {
3452
3824
  "data-slot": "dropdown-menu-radio-group",
@@ -3460,23 +3832,23 @@ function DropdownMenuRadioItem({
3460
3832
  inset,
3461
3833
  ...props
3462
3834
  }) {
3463
- return /* @__PURE__ */ jsxs16(
3835
+ return /* @__PURE__ */ jsxs19(
3464
3836
  MenuPrimitive.RadioItem,
3465
3837
  {
3466
3838
  "data-slot": "dropdown-menu-radio-item",
3467
3839
  "data-inset": inset,
3468
- className: cn28(
3840
+ className: cn32(
3469
3841
  "relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
3470
3842
  className
3471
3843
  ),
3472
3844
  ...props,
3473
3845
  children: [
3474
- /* @__PURE__ */ jsx28(
3846
+ /* @__PURE__ */ jsx34(
3475
3847
  "span",
3476
3848
  {
3477
3849
  className: "pointer-events-none absolute right-2 flex items-center justify-center",
3478
3850
  "data-slot": "dropdown-menu-radio-item-indicator",
3479
- children: /* @__PURE__ */ jsx28(MenuPrimitive.RadioItemIndicator, { children: /* @__PURE__ */ jsx28(CheckIcon, {}) })
3851
+ children: /* @__PURE__ */ jsx34(MenuPrimitive.RadioItemIndicator, { children: /* @__PURE__ */ jsx34(CheckIcon, {}) })
3480
3852
  }
3481
3853
  ),
3482
3854
  children
@@ -3488,11 +3860,11 @@ function DropdownMenuSeparator({
3488
3860
  className,
3489
3861
  ...props
3490
3862
  }) {
3491
- return /* @__PURE__ */ jsx28(
3863
+ return /* @__PURE__ */ jsx34(
3492
3864
  MenuPrimitive.Separator,
3493
3865
  {
3494
3866
  "data-slot": "dropdown-menu-separator",
3495
- className: cn28("-mx-1 my-1 h-px bg-border", className),
3867
+ className: cn32("-mx-1 my-1 h-px bg-border", className),
3496
3868
  ...props
3497
3869
  }
3498
3870
  );
@@ -3501,11 +3873,11 @@ function DropdownMenuShortcut({
3501
3873
  className,
3502
3874
  ...props
3503
3875
  }) {
3504
- return /* @__PURE__ */ jsx28(
3876
+ return /* @__PURE__ */ jsx34(
3505
3877
  "span",
3506
3878
  {
3507
3879
  "data-slot": "dropdown-menu-shortcut",
3508
- className: cn28(
3880
+ className: cn32(
3509
3881
  "ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground",
3510
3882
  className
3511
3883
  ),
@@ -3516,14 +3888,14 @@ function DropdownMenuShortcut({
3516
3888
 
3517
3889
  // src/ui/empty.tsx
3518
3890
  import { cva as cva6 } from "class-variance-authority";
3519
- import { cn as cn29 } from "cn";
3520
- import { jsx as jsx29 } from "react/jsx-runtime";
3891
+ import { cn as cn33 } from "cn";
3892
+ import { jsx as jsx35 } from "react/jsx-runtime";
3521
3893
  function Empty({ className, ...props }) {
3522
- return /* @__PURE__ */ jsx29(
3894
+ return /* @__PURE__ */ jsx35(
3523
3895
  "div",
3524
3896
  {
3525
3897
  "data-slot": "empty",
3526
- className: cn29(
3898
+ className: cn33(
3527
3899
  "flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",
3528
3900
  className
3529
3901
  ),
@@ -3532,11 +3904,11 @@ function Empty({ className, ...props }) {
3532
3904
  );
3533
3905
  }
3534
3906
  function EmptyHeader({ className, ...props }) {
3535
- return /* @__PURE__ */ jsx29(
3907
+ return /* @__PURE__ */ jsx35(
3536
3908
  "div",
3537
3909
  {
3538
3910
  "data-slot": "empty-header",
3539
- className: cn29("flex max-w-sm flex-col items-center gap-2", className),
3911
+ className: cn33("flex max-w-sm flex-col items-center gap-2", className),
3540
3912
  ...props
3541
3913
  }
3542
3914
  );
@@ -3560,32 +3932,32 @@ function EmptyMedia({
3560
3932
  variant = "default",
3561
3933
  ...props
3562
3934
  }) {
3563
- return /* @__PURE__ */ jsx29(
3935
+ return /* @__PURE__ */ jsx35(
3564
3936
  "div",
3565
3937
  {
3566
3938
  "data-slot": "empty-icon",
3567
3939
  "data-variant": variant,
3568
- className: cn29(emptyMediaVariants({ variant, className })),
3940
+ className: cn33(emptyMediaVariants({ variant, className })),
3569
3941
  ...props
3570
3942
  }
3571
3943
  );
3572
3944
  }
3573
3945
  function EmptyTitle({ className, ...props }) {
3574
- return /* @__PURE__ */ jsx29(
3946
+ return /* @__PURE__ */ jsx35(
3575
3947
  "div",
3576
3948
  {
3577
3949
  "data-slot": "empty-title",
3578
- className: cn29("text-sm font-medium tracking-tight", className),
3950
+ className: cn33("text-sm font-medium tracking-tight", className),
3579
3951
  ...props
3580
3952
  }
3581
3953
  );
3582
3954
  }
3583
3955
  function EmptyDescription({ className, ...props }) {
3584
- return /* @__PURE__ */ jsx29(
3956
+ return /* @__PURE__ */ jsx35(
3585
3957
  "div",
3586
3958
  {
3587
3959
  "data-slot": "empty-description",
3588
- className: cn29(
3960
+ className: cn33(
3589
3961
  "text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
3590
3962
  className
3591
3963
  ),
@@ -3594,11 +3966,11 @@ function EmptyDescription({ className, ...props }) {
3594
3966
  );
3595
3967
  }
3596
3968
  function EmptyContent({ className, ...props }) {
3597
- return /* @__PURE__ */ jsx29(
3969
+ return /* @__PURE__ */ jsx35(
3598
3970
  "div",
3599
3971
  {
3600
3972
  "data-slot": "empty-content",
3601
- className: cn29(
3973
+ className: cn33(
3602
3974
  "flex w-full max-w-sm min-w-0 flex-col items-center gap-2.5 text-sm text-balance",
3603
3975
  className
3604
3976
  ),
@@ -3610,12 +3982,12 @@ function EmptyContent({ className, ...props }) {
3610
3982
  // src/ui/farmer/div.tsx
3611
3983
  import { motion as motion5 } from "motion/react";
3612
3984
  import React10 from "react";
3613
- import { jsx as jsx30 } from "react/jsx-runtime";
3985
+ import { jsx as jsx36 } from "react/jsx-runtime";
3614
3986
  var AnimatedDiv = React10.forwardRef(
3615
3987
  ({ variants, mobileVariants, className, children, infinity, ...motionProps }, ref) => {
3616
3988
  const isDesktop = useMediaQuery("(min-width: 768px)");
3617
3989
  const selectedVariants = !isDesktop && mobileVariants ? mobileVariants : variants;
3618
- return /* @__PURE__ */ jsx30(
3990
+ return /* @__PURE__ */ jsx36(
3619
3991
  motion5.div,
3620
3992
  {
3621
3993
  ref,
@@ -3933,17 +4305,17 @@ var kanbanOrderCardLayoutTransition = {
3933
4305
  // src/ui/field.tsx
3934
4306
  import { cva as cva7 } from "class-variance-authority";
3935
4307
  import { useMemo as useMemo3 } from "react";
3936
- import { cn as cn31 } from "cn";
4308
+ import { cn as cn35 } from "cn";
3937
4309
 
3938
4310
  // src/ui/label.tsx
3939
- import { cn as cn30 } from "cn";
3940
- import { jsx as jsx31 } from "react/jsx-runtime";
4311
+ import { cn as cn34 } from "cn";
4312
+ import { jsx as jsx37 } from "react/jsx-runtime";
3941
4313
  function Label({ className, ...props }) {
3942
- return /* @__PURE__ */ jsx31(
4314
+ return /* @__PURE__ */ jsx37(
3943
4315
  "label",
3944
4316
  {
3945
4317
  "data-slot": "label",
3946
- className: cn30(
4318
+ className: cn34(
3947
4319
  "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",
3948
4320
  className
3949
4321
  ),
@@ -3953,13 +4325,13 @@ function Label({ className, ...props }) {
3953
4325
  }
3954
4326
 
3955
4327
  // src/ui/field.tsx
3956
- import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
4328
+ import { jsx as jsx38, jsxs as jsxs20 } from "react/jsx-runtime";
3957
4329
  function FieldSet({ className, ...props }) {
3958
- return /* @__PURE__ */ jsx32(
4330
+ return /* @__PURE__ */ jsx38(
3959
4331
  "fieldset",
3960
4332
  {
3961
4333
  "data-slot": "field-set",
3962
- className: cn31(
4334
+ className: cn35(
3963
4335
  "flex flex-col gap-1 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3",
3964
4336
  className
3965
4337
  ),
@@ -3972,12 +4344,12 @@ function FieldLegend({
3972
4344
  variant = "legend",
3973
4345
  ...props
3974
4346
  }) {
3975
- return /* @__PURE__ */ jsx32(
4347
+ return /* @__PURE__ */ jsx38(
3976
4348
  "legend",
3977
4349
  {
3978
4350
  "data-slot": "field-legend",
3979
4351
  "data-variant": variant,
3980
- className: cn31(
4352
+ className: cn35(
3981
4353
  "mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base",
3982
4354
  className
3983
4355
  ),
@@ -3986,11 +4358,11 @@ function FieldLegend({
3986
4358
  );
3987
4359
  }
3988
4360
  function FieldGroup({ className, ...props }) {
3989
- return /* @__PURE__ */ jsx32(
4361
+ return /* @__PURE__ */ jsx38(
3990
4362
  "div",
3991
4363
  {
3992
4364
  "data-slot": "field-group",
3993
- className: cn31(
4365
+ className: cn35(
3994
4366
  "group/field-group @container/field-group flex w-full flex-col gap-2 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",
3995
4367
  className
3996
4368
  ),
@@ -4018,23 +4390,23 @@ function Field({
4018
4390
  orientation = "vertical",
4019
4391
  ...props
4020
4392
  }) {
4021
- return /* @__PURE__ */ jsx32(
4393
+ return /* @__PURE__ */ jsx38(
4022
4394
  "div",
4023
4395
  {
4024
4396
  role: "group",
4025
4397
  "data-slot": "field",
4026
4398
  "data-orientation": orientation,
4027
- className: cn31(fieldVariants({ orientation }), className),
4399
+ className: cn35(fieldVariants({ orientation }), className),
4028
4400
  ...props
4029
4401
  }
4030
4402
  );
4031
4403
  }
4032
4404
  function FieldContent({ className, ...props }) {
4033
- return /* @__PURE__ */ jsx32(
4405
+ return /* @__PURE__ */ jsx38(
4034
4406
  "div",
4035
4407
  {
4036
4408
  "data-slot": "field-content",
4037
- className: cn31(
4409
+ className: cn35(
4038
4410
  "group/field-content flex flex-1 flex-col gap-0.5 leading-snug",
4039
4411
  className
4040
4412
  ),
@@ -4046,11 +4418,11 @@ function FieldLabel({
4046
4418
  className,
4047
4419
  ...props
4048
4420
  }) {
4049
- return /* @__PURE__ */ jsx32(
4421
+ return /* @__PURE__ */ jsx38(
4050
4422
  Label,
4051
4423
  {
4052
4424
  "data-slot": "field-label",
4053
- className: cn31(
4425
+ className: cn35(
4054
4426
  "group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10",
4055
4427
  "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",
4056
4428
  className
@@ -4060,11 +4432,11 @@ function FieldLabel({
4060
4432
  );
4061
4433
  }
4062
4434
  function FieldTitle({ className, ...props }) {
4063
- return /* @__PURE__ */ jsx32(
4435
+ return /* @__PURE__ */ jsx38(
4064
4436
  "div",
4065
4437
  {
4066
4438
  "data-slot": "field-label",
4067
- className: cn31(
4439
+ className: cn35(
4068
4440
  "flex w-fit items-center gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50",
4069
4441
  className
4070
4442
  ),
@@ -4073,11 +4445,11 @@ function FieldTitle({ className, ...props }) {
4073
4445
  );
4074
4446
  }
4075
4447
  function FieldDescription({ className, ...props }) {
4076
- return /* @__PURE__ */ jsx32(
4448
+ return /* @__PURE__ */ jsx38(
4077
4449
  "p",
4078
4450
  {
4079
4451
  "data-slot": "field-description",
4080
- className: cn31(
4452
+ className: cn35(
4081
4453
  "text-left text-[10px] leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5",
4082
4454
  "last:mt-0 nth-last-2:-mt-1",
4083
4455
  "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
@@ -4092,19 +4464,19 @@ function FieldSeparator({
4092
4464
  className,
4093
4465
  ...props
4094
4466
  }) {
4095
- return /* @__PURE__ */ jsxs17(
4467
+ return /* @__PURE__ */ jsxs20(
4096
4468
  "div",
4097
4469
  {
4098
4470
  "data-slot": "field-separator",
4099
4471
  "data-content": !!children,
4100
- className: cn31(
4472
+ className: cn35(
4101
4473
  "relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2",
4102
4474
  className
4103
4475
  ),
4104
4476
  ...props,
4105
4477
  children: [
4106
- /* @__PURE__ */ jsx32(Separator, { className: "absolute inset-0 top-1/2" }),
4107
- children && /* @__PURE__ */ jsx32(
4478
+ /* @__PURE__ */ jsx38(Separator, { className: "absolute inset-0 top-1/2" }),
4479
+ children && /* @__PURE__ */ jsx38(
4108
4480
  "span",
4109
4481
  {
4110
4482
  className: "relative mx-auto block w-fit px-2 text-muted-foreground",
@@ -4135,19 +4507,19 @@ function FieldError({
4135
4507
  if (uniqueErrors?.length == 1) {
4136
4508
  return uniqueErrors[0]?.message;
4137
4509
  }
4138
- return /* @__PURE__ */ jsx32("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
4139
- (error, index) => error?.message && /* @__PURE__ */ jsx32("li", { children: error.message }, index)
4510
+ return /* @__PURE__ */ jsx38("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map(
4511
+ (error, index) => error?.message && /* @__PURE__ */ jsx38("li", { children: error.message }, index)
4140
4512
  ) });
4141
4513
  }, [children, errors]);
4142
4514
  if (!content) {
4143
4515
  return null;
4144
4516
  }
4145
- return /* @__PURE__ */ jsx32(
4517
+ return /* @__PURE__ */ jsx38(
4146
4518
  "div",
4147
4519
  {
4148
4520
  role: "alert",
4149
4521
  "data-slot": "field-error",
4150
- className: cn31("text-sm font-normal text-destructive", className),
4522
+ className: cn35("text-sm font-normal text-destructive", className),
4151
4523
  ...props,
4152
4524
  children: content
4153
4525
  }
@@ -4169,14 +4541,14 @@ import {
4169
4541
  } from "react";
4170
4542
 
4171
4543
  // src/ui/kbd.tsx
4172
- import { cn as cn32 } from "cn";
4173
- import { jsx as jsx33 } from "react/jsx-runtime";
4544
+ import { cn as cn36 } from "cn";
4545
+ import { jsx as jsx39 } from "react/jsx-runtime";
4174
4546
  function Kbd({ className, ...props }) {
4175
- return /* @__PURE__ */ jsx33(
4547
+ return /* @__PURE__ */ jsx39(
4176
4548
  "kbd",
4177
4549
  {
4178
4550
  "data-slot": "kbd",
4179
- className: cn32(
4551
+ className: cn36(
4180
4552
  "pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 text-xs font-medium text-muted-foreground select-none in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3",
4181
4553
  className
4182
4554
  ),
@@ -4185,20 +4557,20 @@ function Kbd({ className, ...props }) {
4185
4557
  );
4186
4558
  }
4187
4559
  function KbdGroup({ className, ...props }) {
4188
- return /* @__PURE__ */ jsx33(
4560
+ return /* @__PURE__ */ jsx39(
4189
4561
  "kbd",
4190
4562
  {
4191
4563
  "data-slot": "kbd-group",
4192
- className: cn32("inline-flex items-center gap-1", className),
4564
+ className: cn36("inline-flex items-center gap-1", className),
4193
4565
  ...props
4194
4566
  }
4195
4567
  );
4196
4568
  }
4197
4569
 
4198
4570
  // src/ui/filters.tsx
4199
- import { cn as cn33 } from "cn";
4571
+ import { cn as cn37 } from "cn";
4200
4572
  import { AlertCircleIcon, CheckIcon as CheckIcon2, PlusIcon, XIcon } from "lucide-react";
4201
- import { Fragment as Fragment2, jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
4573
+ import { Fragment as Fragment3, jsx as jsx40, jsxs as jsxs21 } from "react/jsx-runtime";
4202
4574
  var DEFAULT_I18N = {
4203
4575
  // UI Labels
4204
4576
  addFilter: "Filter",
@@ -4364,10 +4736,10 @@ function FilterInput({
4364
4736
  }
4365
4737
  onKeyDown?.(e);
4366
4738
  };
4367
- return /* @__PURE__ */ jsxs18(
4739
+ return /* @__PURE__ */ jsxs21(
4368
4740
  InputGroup,
4369
4741
  {
4370
- className: cn33(
4742
+ className: cn37(
4371
4743
  "w-36",
4372
4744
  // Height follows each style's own control ladder. `default` sets no
4373
4745
  // height on purpose so the style's `.cn-input-group` applies (h-8 nova,
@@ -4382,8 +4754,8 @@ function FilterInput({
4382
4754
  className
4383
4755
  ),
4384
4756
  children: [
4385
- field?.prefix && /* @__PURE__ */ jsx34(InputGroupAddon, { children: /* @__PURE__ */ jsx34(InputGroupText, { children: field.prefix }) }),
4386
- /* @__PURE__ */ jsx34(
4757
+ field?.prefix && /* @__PURE__ */ jsx40(InputGroupAddon, { children: /* @__PURE__ */ jsx40(InputGroupText, { children: field.prefix }) }),
4758
+ /* @__PURE__ */ jsx40(
4387
4759
  InputGroupInput,
4388
4760
  {
4389
4761
  ref: inputRef,
@@ -4391,29 +4763,29 @@ function FilterInput({
4391
4763
  "aria-describedby": !isValid && validationMessage ? `${field?.key || "input"}-error` : void 0,
4392
4764
  onBlur: handleBlur,
4393
4765
  onKeyDown: handleKeyDown,
4394
- className: cn33(
4766
+ className: cn37(
4395
4767
  context.size == "sm" && "h-7! text-xs",
4396
4768
  context.size == "lg" && "h-9!"
4397
4769
  ),
4398
4770
  ...props
4399
4771
  }
4400
4772
  ),
4401
- !isValid && validationMessage && /* @__PURE__ */ jsx34(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxs18(Tooltip, { children: [
4402
- /* @__PURE__ */ jsx34(TooltipTrigger, { render: /* @__PURE__ */ jsx34(InputGroupButton, { size: "icon-xs" }), children: /* @__PURE__ */ jsx34(AlertCircleIcon, { className: "size-3.5 text-destructive" }) }),
4403
- /* @__PURE__ */ jsx34(TooltipContent, { children: /* @__PURE__ */ jsx34("p", { className: "text-sm", children: validationMessage }) })
4773
+ !isValid && validationMessage && /* @__PURE__ */ jsx40(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxs21(Tooltip, { children: [
4774
+ /* @__PURE__ */ jsx40(TooltipTrigger, { render: /* @__PURE__ */ jsx40(InputGroupButton, { size: "icon-xs" }), children: /* @__PURE__ */ jsx40(AlertCircleIcon, { className: "size-3.5 text-destructive" }) }),
4775
+ /* @__PURE__ */ jsx40(TooltipContent, { children: /* @__PURE__ */ jsx40("p", { className: "text-sm", children: validationMessage }) })
4404
4776
  ] }) }),
4405
- field?.suffix && /* @__PURE__ */ jsx34(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsx34(InputGroupText, { children: field.suffix }) })
4777
+ field?.suffix && /* @__PURE__ */ jsx40(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsx40(InputGroupText, { children: field.suffix }) })
4406
4778
  ]
4407
4779
  }
4408
4780
  );
4409
4781
  }
4410
4782
  function FilterRemoveButton({
4411
4783
  className,
4412
- icon = /* @__PURE__ */ jsx34(XIcon, {}),
4784
+ icon = /* @__PURE__ */ jsx40(XIcon, {}),
4413
4785
  ...props
4414
4786
  }) {
4415
4787
  const context = useFilterContext();
4416
- return /* @__PURE__ */ jsx34(
4788
+ return /* @__PURE__ */ jsx40(
4417
4789
  Button,
4418
4790
  {
4419
4791
  variant: "outline",
@@ -4584,11 +4956,11 @@ function FilterOperatorDropdown({
4584
4956
  [field, values, context.i18n]
4585
4957
  );
4586
4958
  const operatorLabel = operators.find((op) => op.value === operator)?.label || context.i18n.helpers.formatOperator(operator);
4587
- return /* @__PURE__ */ jsxs18(DropdownMenu, { children: [
4588
- /* @__PURE__ */ jsx34(
4959
+ return /* @__PURE__ */ jsxs21(DropdownMenu, { children: [
4960
+ /* @__PURE__ */ jsx40(
4589
4961
  DropdownMenuTrigger,
4590
4962
  {
4591
- render: /* @__PURE__ */ jsx34(
4963
+ render: /* @__PURE__ */ jsx40(
4592
4964
  Button,
4593
4965
  {
4594
4966
  variant: "outline",
@@ -4599,19 +4971,19 @@ function FilterOperatorDropdown({
4599
4971
  )
4600
4972
  }
4601
4973
  ),
4602
- /* @__PURE__ */ jsx34(DropdownMenuContent, { align: "start", className: "w-fit min-w-fit", children: operators.map((op) => /* @__PURE__ */ jsxs18(
4974
+ /* @__PURE__ */ jsx40(DropdownMenuContent, { align: "start", className: "w-fit min-w-fit", children: operators.map((op) => /* @__PURE__ */ jsxs21(
4603
4975
  DropdownMenuItem,
4604
4976
  {
4605
4977
  onClick: () => onChange(op.value),
4606
- className: cn33(
4978
+ className: cn37(
4607
4979
  "flex items-center justify-between data-highlighted:bg-accent data-highlighted:text-accent-foreground"
4608
4980
  ),
4609
4981
  children: [
4610
- /* @__PURE__ */ jsx34("span", { children: op.label }),
4611
- /* @__PURE__ */ jsx34(
4982
+ /* @__PURE__ */ jsx40("span", { children: op.label }),
4983
+ /* @__PURE__ */ jsx40(
4612
4984
  CheckIcon2,
4613
4985
  {
4614
- className: cn33(
4986
+ className: cn37(
4615
4987
  "ms-auto text-primary",
4616
4988
  op.value === operator ? "opacity-100" : "opacity-0"
4617
4989
  )
@@ -4692,7 +5064,7 @@ function SelectOptionsPopover({
4692
5064
  const isSelected = effectiveValues.includes(option.value);
4693
5065
  const isHighlighted = highlightedIndex === overallIndex;
4694
5066
  const itemId = `${baseId}-item-${overallIndex}`;
4695
- return /* @__PURE__ */ jsxs18(
5067
+ return /* @__PURE__ */ jsxs21(
4696
5068
  DropdownMenuCheckboxItem,
4697
5069
  {
4698
5070
  id: itemId,
@@ -4701,7 +5073,7 @@ function SelectOptionsPopover({
4701
5073
  "data-highlighted": isHighlighted || void 0,
4702
5074
  onMouseEnter: () => setHighlightedIndex(overallIndex),
4703
5075
  checked: isSelected,
4704
- className: cn33(
5076
+ className: cn37(
4705
5077
  "data-highlighted:bg-accent data-highlighted:text-accent-foreground",
4706
5078
  option.className
4707
5079
  ),
@@ -4711,15 +5083,15 @@ function SelectOptionsPopover({
4711
5083
  onCheckedChange: () => toggleOption(option),
4712
5084
  children: [
4713
5085
  option.icon && option.icon,
4714
- /* @__PURE__ */ jsx34("span", { className: "truncate", children: option.label })
5086
+ /* @__PURE__ */ jsx40("span", { className: "truncate", children: option.label })
4715
5087
  ]
4716
5088
  },
4717
5089
  String(option.value)
4718
5090
  );
4719
5091
  };
4720
- const renderMenuContent = () => /* @__PURE__ */ jsxs18(Fragment2, { children: [
4721
- field.searchable !== false && /* @__PURE__ */ jsxs18(Fragment2, { children: [
4722
- /* @__PURE__ */ jsx34(
5092
+ const renderMenuContent = () => /* @__PURE__ */ jsxs21(Fragment3, { children: [
5093
+ field.searchable !== false && /* @__PURE__ */ jsxs21(Fragment3, { children: [
5094
+ /* @__PURE__ */ jsx40(
4723
5095
  Input,
4724
5096
  {
4725
5097
  ref: inputRef,
@@ -4732,7 +5104,7 @@ function SelectOptionsPopover({
4732
5104
  placeholder: context.i18n.placeholders.searchField(
4733
5105
  field.label || ""
4734
5106
  ),
4735
- className: cn33(
5107
+ className: cn37(
4736
5108
  "h-8 rounded-none border-0 border-input bg-transparent! px-2 text-sm shadow-none",
4737
5109
  "focus-visible:border-border focus-visible:ring-0 focus-visible:ring-offset-0",
4738
5110
  open && "placeholder:text-foreground"
@@ -4780,24 +5152,24 @@ function SelectOptionsPopover({
4780
5152
  }
4781
5153
  }
4782
5154
  ),
4783
- /* @__PURE__ */ jsx34(DropdownMenuSeparator, {})
5155
+ /* @__PURE__ */ jsx40(DropdownMenuSeparator, {})
4784
5156
  ] }),
4785
- /* @__PURE__ */ jsx34("div", { className: "relative flex max-h-full", children: /* @__PURE__ */ jsx34(
5157
+ /* @__PURE__ */ jsx40("div", { className: "relative flex max-h-full", children: /* @__PURE__ */ jsx40(
4786
5158
  "div",
4787
5159
  {
4788
5160
  className: "flex max-h-[min(var(--available-height),24rem)] w-full scroll-pt-2 scroll-pb-2 flex-col overscroll-contain",
4789
5161
  role: "listbox",
4790
5162
  id: `${baseId}-listbox`,
4791
- children: isAsync && loading && allFilteredOptions.length === 0 ? /* @__PURE__ */ jsx34("div", { className: "py-2 text-center text-sm text-muted-foreground", children: context.i18n.loadingOptions ?? DEFAULT_I18N.loadingOptions }) : isAsync && error ? /* @__PURE__ */ jsx34("div", { className: "py-2 text-center text-sm text-muted-foreground", children: context.i18n.errorLoadingOptions ?? DEFAULT_I18N.errorLoadingOptions }) : allFilteredOptions.length === 0 ? /* @__PURE__ */ jsx34("div", { className: "py-2 text-center text-sm text-muted-foreground", children: context.i18n.noResultsFound }) : field.renderOptionList ? field.renderOptionList({
5163
+ children: isAsync && loading && allFilteredOptions.length === 0 ? /* @__PURE__ */ jsx40("div", { className: "py-2 text-center text-sm text-muted-foreground", children: context.i18n.loadingOptions ?? DEFAULT_I18N.loadingOptions }) : isAsync && error ? /* @__PURE__ */ jsx40("div", { className: "py-2 text-center text-sm text-muted-foreground", children: context.i18n.errorLoadingOptions ?? DEFAULT_I18N.errorLoadingOptions }) : allFilteredOptions.length === 0 ? /* @__PURE__ */ jsx40("div", { className: "py-2 text-center text-sm text-muted-foreground", children: context.i18n.noResultsFound }) : field.renderOptionList ? field.renderOptionList({
4792
5164
  options: allFilteredOptions,
4793
5165
  highlightedIndex,
4794
5166
  renderOption: renderOptionItem
4795
- }) : /* @__PURE__ */ jsxs18(ScrollArea, { className: "size-full min-h-0 **:data-[slot=scroll-area-scrollbar]:m-0 **:data-[slot=scroll-area-viewport]:h-full **:data-[slot=scroll-area-viewport]:overscroll-contain", children: [
4796
- filteredSelectedOptions.length > 0 && /* @__PURE__ */ jsx34(DropdownMenuGroup, { className: "px-1", children: filteredSelectedOptions.map(
5167
+ }) : /* @__PURE__ */ jsxs21(ScrollArea, { className: "size-full min-h-0 **:data-[slot=scroll-area-scrollbar]:m-0 **:data-[slot=scroll-area-viewport]:h-full **:data-[slot=scroll-area-viewport]:overscroll-contain", children: [
5168
+ filteredSelectedOptions.length > 0 && /* @__PURE__ */ jsx40(DropdownMenuGroup, { className: "px-1", children: filteredSelectedOptions.map(
4797
5169
  (option, index) => renderOptionItem(option, index)
4798
5170
  ) }),
4799
- filteredSelectedOptions.length > 0 && filteredUnselectedOptions.length > 0 && /* @__PURE__ */ jsx34(DropdownMenuSeparator, { className: "mx-0" }),
4800
- filteredUnselectedOptions.length > 0 && /* @__PURE__ */ jsx34(DropdownMenuGroup, { className: "px-1", children: filteredUnselectedOptions.map(
5171
+ filteredSelectedOptions.length > 0 && filteredUnselectedOptions.length > 0 && /* @__PURE__ */ jsx40(DropdownMenuSeparator, { className: "mx-0" }),
5172
+ filteredUnselectedOptions.length > 0 && /* @__PURE__ */ jsx40(DropdownMenuGroup, { className: "px-1", children: filteredUnselectedOptions.map(
4801
5173
  (option, index) => renderOptionItem(
4802
5174
  option,
4803
5175
  index + filteredSelectedOptions.length
@@ -4808,9 +5180,9 @@ function SelectOptionsPopover({
4808
5180
  ) })
4809
5181
  ] });
4810
5182
  if (inline) {
4811
- return /* @__PURE__ */ jsx34("div", { className: "w-full", children: renderMenuContent() });
5183
+ return /* @__PURE__ */ jsx40("div", { className: "w-full", children: renderMenuContent() });
4812
5184
  }
4813
- return /* @__PURE__ */ jsxs18(
5185
+ return /* @__PURE__ */ jsxs21(
4814
5186
  DropdownMenu,
4815
5187
  {
4816
5188
  open,
@@ -4821,23 +5193,23 @@ function SelectOptionsPopover({
4821
5193
  }
4822
5194
  },
4823
5195
  children: [
4824
- /* @__PURE__ */ jsx34(
5196
+ /* @__PURE__ */ jsx40(
4825
5197
  DropdownMenuTrigger,
4826
5198
  {
4827
- render: /* @__PURE__ */ jsx34(Button, { variant: "outline", size: context.size, children: /* @__PURE__ */ jsx34("div", { className: "flex items-center gap-1.5", children: field.customValueRenderer ? field.customValueRenderer(
5199
+ render: /* @__PURE__ */ jsx40(Button, { variant: "outline", size: context.size, children: /* @__PURE__ */ jsx40("div", { className: "flex items-center gap-1.5", children: field.customValueRenderer ? field.customValueRenderer(
4828
5200
  values,
4829
5201
  isAsync ? resolveSelected(values) : field.options || []
4830
- ) : /* @__PURE__ */ jsxs18(Fragment2, { children: [
4831
- selectedOptions.length > 0 && /* @__PURE__ */ jsx34("div", { className: "flex items-center -space-x-1.5", children: selectedOptions.slice(0, 3).map((option) => /* @__PURE__ */ jsx34("div", { children: option.icon }, String(option.value))) }),
5202
+ ) : /* @__PURE__ */ jsxs21(Fragment3, { children: [
5203
+ selectedOptions.length > 0 && /* @__PURE__ */ jsx40("div", { className: "flex items-center -space-x-1.5", children: selectedOptions.slice(0, 3).map((option) => /* @__PURE__ */ jsx40("div", { children: option.icon }, String(option.value))) }),
4832
5204
  selectedOptions.length === 1 ? selectedOptions[0].label : selectedOptions.length > 1 ? `${selectedOptions.length} ${context.i18n.selectedCount}` : context.i18n.select
4833
5205
  ] }) }) })
4834
5206
  }
4835
5207
  ),
4836
- /* @__PURE__ */ jsx34(
5208
+ /* @__PURE__ */ jsx40(
4837
5209
  DropdownMenuContent,
4838
5210
  {
4839
5211
  align: "start",
4840
- className: cn33("w-50 px-0", field.className),
5212
+ className: cn37("w-50 px-0", field.className),
4841
5213
  children: renderMenuContent()
4842
5214
  }
4843
5215
  )
@@ -4856,10 +5228,10 @@ function FilterValueSelector({
4856
5228
  return null;
4857
5229
  }
4858
5230
  if (field.customRenderer) {
4859
- return /* @__PURE__ */ jsx34(ButtonGroupText, { className: "bg-background text-start whitespace-nowrap outline-hidden hover:bg-accent aria-expanded:bg-accent dark:bg-input/30", children: field.customRenderer({ field, values, onChange, operator }) });
5231
+ return /* @__PURE__ */ jsx40(ButtonGroupText, { className: "bg-background text-start whitespace-nowrap outline-hidden hover:bg-accent aria-expanded:bg-accent dark:bg-input/30", children: field.customRenderer({ field, values, onChange, operator }) });
4860
5232
  }
4861
5233
  if (field.type === "text") {
4862
- return /* @__PURE__ */ jsx34(
5234
+ return /* @__PURE__ */ jsx40(
4863
5235
  FilterInput,
4864
5236
  {
4865
5237
  type: "text",
@@ -4868,15 +5240,15 @@ function FilterValueSelector({
4868
5240
  placeholder: field.placeholder,
4869
5241
  pattern: field.pattern,
4870
5242
  field,
4871
- className: cn33("w-36", field.className),
5243
+ className: cn37("w-36", field.className),
4872
5244
  autoFocus
4873
5245
  }
4874
5246
  );
4875
5247
  }
4876
5248
  if (field.type === "select" || field.type === "multiselect") {
4877
- return /* @__PURE__ */ jsx34(SelectOptionsPopover, { field, values, onChange });
5249
+ return /* @__PURE__ */ jsx40(SelectOptionsPopover, { field, values, onChange });
4878
5250
  }
4879
- return /* @__PURE__ */ jsx34(SelectOptionsPopover, { field, values, onChange });
5251
+ return /* @__PURE__ */ jsx40(SelectOptionsPopover, { field, values, onChange });
4880
5252
  }
4881
5253
  var FiltersContent = ({
4882
5254
  filters,
@@ -4908,10 +5280,10 @@ var FiltersContent = ({
4908
5280
  },
4909
5281
  [filters, onChange]
4910
5282
  );
4911
- return /* @__PURE__ */ jsx34(
5283
+ return /* @__PURE__ */ jsx40(
4912
5284
  "div",
4913
5285
  {
4914
- className: cn33(
5286
+ className: cn37(
4915
5287
  filtersContainerVariants({
4916
5288
  variant: context.variant,
4917
5289
  size: context.size
@@ -4921,16 +5293,16 @@ var FiltersContent = ({
4921
5293
  children: filters.map((filter) => {
4922
5294
  const field = fieldsMap[filter.field];
4923
5295
  if (!field) return null;
4924
- return /* @__PURE__ */ jsxs18(
5296
+ return /* @__PURE__ */ jsxs21(
4925
5297
  ButtonGroup,
4926
5298
  {
4927
5299
  className: "",
4928
5300
  children: [
4929
- /* @__PURE__ */ jsxs18(ButtonGroupText, { children: [
5301
+ /* @__PURE__ */ jsxs21(ButtonGroupText, { children: [
4930
5302
  field.icon && field.icon,
4931
5303
  field.label
4932
5304
  ] }),
4933
- /* @__PURE__ */ jsx34(
5305
+ /* @__PURE__ */ jsx40(
4934
5306
  FilterOperatorDropdown,
4935
5307
  {
4936
5308
  field,
@@ -4939,7 +5311,7 @@ var FiltersContent = ({
4939
5311
  onChange: (operator) => updateFilter(filter.id, { operator })
4940
5312
  }
4941
5313
  ),
4942
- /* @__PURE__ */ jsx34(
5314
+ /* @__PURE__ */ jsx40(
4943
5315
  FilterValueSelector,
4944
5316
  {
4945
5317
  field,
@@ -4949,7 +5321,7 @@ var FiltersContent = ({
4949
5321
  autoFocus: false
4950
5322
  }
4951
5323
  ),
4952
- /* @__PURE__ */ jsx34(FilterRemoveButton, { onClick: () => removeFilter(filter.id) })
5324
+ /* @__PURE__ */ jsx40(FilterRemoveButton, { onClick: () => removeFilter(filter.id) })
4953
5325
  ]
4954
5326
  },
4955
5327
  filter.id
@@ -5027,7 +5399,7 @@ function FilterSubmenuContent({
5027
5399
  const isSelected = currentValues.includes(option.value);
5028
5400
  const isHighlighted = highlightedIndex === index;
5029
5401
  const itemId = `${baseId}-item-${index}`;
5030
- return /* @__PURE__ */ jsxs18(
5402
+ return /* @__PURE__ */ jsxs21(
5031
5403
  DropdownMenuCheckboxItem,
5032
5404
  {
5033
5405
  id: itemId,
@@ -5036,7 +5408,7 @@ function FilterSubmenuContent({
5036
5408
  "data-highlighted": isHighlighted || void 0,
5037
5409
  onMouseEnter: () => setHighlightedIndex(index),
5038
5410
  checked: isSelected,
5039
- className: cn33(
5411
+ className: cn37(
5040
5412
  "data-highlighted:bg-accent data-highlighted:text-accent-foreground",
5041
5413
  option.className
5042
5414
  ),
@@ -5046,7 +5418,7 @@ function FilterSubmenuContent({
5046
5418
  onCheckedChange: () => onToggle(option.value, isSelected),
5047
5419
  children: [
5048
5420
  option.icon && option.icon,
5049
- /* @__PURE__ */ jsx34("span", { className: "truncate", children: option.label })
5421
+ /* @__PURE__ */ jsx40("span", { className: "truncate", children: option.label })
5050
5422
  ]
5051
5423
  },
5052
5424
  String(option.value)
@@ -5057,9 +5429,9 @@ function FilterSubmenuContent({
5057
5429
  setHighlightedIndex(0);
5058
5430
  }
5059
5431
  }, [isActive, filteredOptions.length]);
5060
- return /* @__PURE__ */ jsxs18("div", { className: "flex flex-col", onMouseEnter: onActive, children: [
5061
- field.searchable !== false && /* @__PURE__ */ jsxs18(Fragment2, { children: [
5062
- /* @__PURE__ */ jsx34(
5432
+ return /* @__PURE__ */ jsxs21("div", { className: "flex flex-col", onMouseEnter: onActive, children: [
5433
+ field.searchable !== false && /* @__PURE__ */ jsxs21(Fragment3, { children: [
5434
+ /* @__PURE__ */ jsx40(
5063
5435
  Input,
5064
5436
  {
5065
5437
  ref: inputRef,
@@ -5070,7 +5442,7 @@ function FilterSubmenuContent({
5070
5442
  "aria-controls": `${baseId}-listbox`,
5071
5443
  "aria-activedescendant": highlightedIndex >= 0 ? `${baseId}-item-${highlightedIndex}` : void 0,
5072
5444
  placeholder: i18n.placeholders.searchField(field.label || ""),
5073
- className: cn33(
5445
+ className: cn37(
5074
5446
  "h-8 rounded-none border-0 bg-transparent! px-2 text-sm shadow-none",
5075
5447
  "focus-visible:border-border focus-visible:ring-0 focus-visible:ring-offset-0",
5076
5448
  isActive && "placeholder:text-foreground"
@@ -5122,9 +5494,9 @@ function FilterSubmenuContent({
5122
5494
  }
5123
5495
  }
5124
5496
  ),
5125
- /* @__PURE__ */ jsx34(DropdownMenuSeparator, {})
5497
+ /* @__PURE__ */ jsx40(DropdownMenuSeparator, {})
5126
5498
  ] }),
5127
- /* @__PURE__ */ jsx34("div", { className: "relative flex max-h-full", children: /* @__PURE__ */ jsx34(
5499
+ /* @__PURE__ */ jsx40("div", { className: "relative flex max-h-full", children: /* @__PURE__ */ jsx40(
5128
5500
  "div",
5129
5501
  {
5130
5502
  className: "flex max-h-[min(var(--available-height),24rem)] w-full scroll-pt-2 scroll-pb-2 flex-col overscroll-contain outline-hidden",
@@ -5169,11 +5541,11 @@ function FilterSubmenuContent({
5169
5541
  e.stopPropagation();
5170
5542
  }
5171
5543
  },
5172
- children: isAsync && loading && filteredOptions.length === 0 ? /* @__PURE__ */ jsx34("div", { className: "py-2 text-center text-sm text-muted-foreground", children: i18n.loadingOptions ?? DEFAULT_I18N.loadingOptions }) : isAsync && error ? /* @__PURE__ */ jsx34("div", { className: "py-2 text-center text-sm text-muted-foreground", children: i18n.errorLoadingOptions ?? DEFAULT_I18N.errorLoadingOptions }) : filteredOptions.length === 0 ? /* @__PURE__ */ jsx34("div", { className: "py-2 text-center text-sm text-muted-foreground", children: i18n.noResultsFound }) : field.renderOptionList ? field.renderOptionList({
5544
+ children: isAsync && loading && filteredOptions.length === 0 ? /* @__PURE__ */ jsx40("div", { className: "py-2 text-center text-sm text-muted-foreground", children: i18n.loadingOptions ?? DEFAULT_I18N.loadingOptions }) : isAsync && error ? /* @__PURE__ */ jsx40("div", { className: "py-2 text-center text-sm text-muted-foreground", children: i18n.errorLoadingOptions ?? DEFAULT_I18N.errorLoadingOptions }) : filteredOptions.length === 0 ? /* @__PURE__ */ jsx40("div", { className: "py-2 text-center text-sm text-muted-foreground", children: i18n.noResultsFound }) : field.renderOptionList ? field.renderOptionList({
5173
5545
  options: filteredOptions,
5174
5546
  highlightedIndex,
5175
5547
  renderOption: renderOptionItem
5176
- }) : /* @__PURE__ */ jsx34(ScrollArea, { className: "size-full min-h-0 **:data-[slot=scroll-area-scrollbar]:m-0 **:data-[slot=scroll-area-viewport]:h-full **:data-[slot=scroll-area-viewport]:overscroll-contain", children: /* @__PURE__ */ jsx34(DropdownMenuGroup, { children: filteredOptions.map(
5548
+ }) : /* @__PURE__ */ jsx40(ScrollArea, { className: "size-full min-h-0 **:data-[slot=scroll-area-scrollbar]:m-0 **:data-[slot=scroll-area-viewport]:h-full **:data-[slot=scroll-area-viewport]:overscroll-contain", children: /* @__PURE__ */ jsx40(DropdownMenuGroup, { children: filteredOptions.map(
5177
5549
  (option, index) => renderOptionItem(option, index)
5178
5550
  ) }) })
5179
5551
  }
@@ -5320,8 +5692,8 @@ function Filters({
5320
5692
  }
5321
5693
  }, [addFilterOpen, filteredFields.length]);
5322
5694
  const triggerButton = useRender4({
5323
- render: trigger ?? /* @__PURE__ */ jsxs18(Button, { variant: "outline", children: [
5324
- /* @__PURE__ */ jsx34(PlusIcon, {}),
5695
+ render: trigger ?? /* @__PURE__ */ jsxs21(Button, { variant: "outline", children: [
5696
+ /* @__PURE__ */ jsx40(PlusIcon, {}),
5325
5697
  mergedI18n.addFilter
5326
5698
  ] }),
5327
5699
  defaultTagName: "button"
@@ -5338,12 +5710,12 @@ function Filters({
5338
5710
  }),
5339
5711
  [variant, size, radius, mergedI18n, className, trigger, allowMultiple]
5340
5712
  );
5341
- return /* @__PURE__ */ jsx34(FilterContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs18(
5713
+ return /* @__PURE__ */ jsx40(FilterContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs21(
5342
5714
  "div",
5343
5715
  {
5344
- className: cn33(filtersContainerVariants({ variant, size }), className),
5716
+ className: cn37(filtersContainerVariants({ variant, size }), className),
5345
5717
  children: [
5346
- selectableFields.length > 0 && /* @__PURE__ */ jsxs18(
5718
+ selectableFields.length > 0 && /* @__PURE__ */ jsxs21(
5347
5719
  DropdownMenu,
5348
5720
  {
5349
5721
  open: addFilterOpen,
@@ -5357,16 +5729,16 @@ function Filters({
5357
5729
  }
5358
5730
  },
5359
5731
  children: [
5360
- /* @__PURE__ */ jsx34(DropdownMenuTrigger, { render: triggerButton }),
5361
- /* @__PURE__ */ jsxs18(
5732
+ /* @__PURE__ */ jsx40(DropdownMenuTrigger, { render: triggerButton }),
5733
+ /* @__PURE__ */ jsxs21(
5362
5734
  DropdownMenuContent,
5363
5735
  {
5364
- className: cn33("w-55", menuPopupClassName),
5736
+ className: cn37("w-55", menuPopupClassName),
5365
5737
  align: "start",
5366
5738
  children: [
5367
- showSearchInput && /* @__PURE__ */ jsxs18(Fragment2, { children: [
5368
- /* @__PURE__ */ jsxs18("div", { className: "relative", children: [
5369
- /* @__PURE__ */ jsx34(
5739
+ showSearchInput && /* @__PURE__ */ jsxs21(Fragment3, { children: [
5740
+ /* @__PURE__ */ jsxs21("div", { className: "relative", children: [
5741
+ /* @__PURE__ */ jsx40(
5370
5742
  Input,
5371
5743
  {
5372
5744
  ref: rootInputRef,
@@ -5374,7 +5746,7 @@ function Filters({
5374
5746
  "aria-controls": `${rootId}-listbox`,
5375
5747
  "aria-activedescendant": highlightedIndex >= 0 ? `${rootId}-item-${highlightedIndex}` : void 0,
5376
5748
  placeholder: mergedI18n.searchFields,
5377
- className: cn33(
5749
+ className: cn37(
5378
5750
  "h-8 rounded-none border-0 bg-transparent! px-2 text-sm shadow-none",
5379
5751
  "focus-visible:border-border focus-visible:ring-0 focus-visible:ring-offset-0",
5380
5752
  activeMenu === "root" && "placeholder:text-foreground"
@@ -5438,20 +5810,20 @@ function Filters({
5438
5810
  }
5439
5811
  }
5440
5812
  ),
5441
- enableShortcut && shortcutLabel && /* @__PURE__ */ jsx34(Kbd, { className: "absolute top-1/2 right-2 -translate-y-1/2 border bg-background", children: shortcutLabel })
5813
+ enableShortcut && shortcutLabel && /* @__PURE__ */ jsx40(Kbd, { className: "absolute top-1/2 right-2 -translate-y-1/2 border bg-background", children: shortcutLabel })
5442
5814
  ] }),
5443
- /* @__PURE__ */ jsx34(DropdownMenuSeparator, {})
5815
+ /* @__PURE__ */ jsx40(DropdownMenuSeparator, {})
5444
5816
  ] }),
5445
- /* @__PURE__ */ jsx34("div", { className: "relative flex max-h-full", children: /* @__PURE__ */ jsx34(
5817
+ /* @__PURE__ */ jsx40("div", { className: "relative flex max-h-full", children: /* @__PURE__ */ jsx40(
5446
5818
  "div",
5447
5819
  {
5448
5820
  className: "flex max-h-[min(var(--available-height),24rem)] w-full scroll-pt-2 scroll-pb-2 flex-col overscroll-contain",
5449
5821
  role: "listbox",
5450
5822
  id: `${rootId}-listbox`,
5451
5823
  onMouseEnter: () => setActiveMenu("root"),
5452
- children: /* @__PURE__ */ jsx34(ScrollArea, { className: "**:data-[slot=scroll-area-scrollbar]:m-0", children: (() => {
5824
+ children: /* @__PURE__ */ jsx40(ScrollArea, { className: "**:data-[slot=scroll-area-scrollbar]:m-0", children: (() => {
5453
5825
  if (filteredFields.length === 0) {
5454
- return /* @__PURE__ */ jsx34("div", { className: "py-2 text-center text-sm text-muted-foreground", children: mergedI18n.noFieldsFound });
5826
+ return /* @__PURE__ */ jsx40("div", { className: "py-2 text-center text-sm text-muted-foreground", children: mergedI18n.noFieldsFound });
5455
5827
  }
5456
5828
  return filteredFields.map((field, index) => {
5457
5829
  const isHighlighted = highlightedIndex === index;
@@ -5463,7 +5835,7 @@ function Filters({
5463
5835
  const sessionFilterId = sessionFilterIds[fieldKey];
5464
5836
  const sessionFilter = sessionFilterId ? filters.find((f) => f.id === sessionFilterId) : null;
5465
5837
  const currentValues = sessionFilter?.values || [];
5466
- return /* @__PURE__ */ jsxs18(
5838
+ return /* @__PURE__ */ jsxs21(
5467
5839
  DropdownMenuSub,
5468
5840
  {
5469
5841
  open: openSubMenu === fieldKey,
@@ -5478,7 +5850,7 @@ function Filters({
5478
5850
  }
5479
5851
  },
5480
5852
  children: [
5481
- /* @__PURE__ */ jsxs18(
5853
+ /* @__PURE__ */ jsxs21(
5482
5854
  DropdownMenuSubTrigger,
5483
5855
  {
5484
5856
  id: itemId,
@@ -5492,16 +5864,16 @@ function Filters({
5492
5864
  className: "data-highlighted:bg-accent data-highlighted:text-accent-foreground data-popup-open:bg-accent data-popup-open:text-accent-foreground",
5493
5865
  children: [
5494
5866
  field.icon,
5495
- /* @__PURE__ */ jsx34("span", { children: field.label })
5867
+ /* @__PURE__ */ jsx40("span", { children: field.label })
5496
5868
  ]
5497
5869
  }
5498
5870
  ),
5499
- /* @__PURE__ */ jsx34(
5871
+ /* @__PURE__ */ jsx40(
5500
5872
  DropdownMenuSubContent,
5501
5873
  {
5502
5874
  className: "w-50",
5503
5875
  side: "right",
5504
- children: /* @__PURE__ */ jsx34(
5876
+ children: /* @__PURE__ */ jsx40(
5505
5877
  FilterSubmenuContent,
5506
5878
  {
5507
5879
  field,
@@ -5574,7 +5946,7 @@ function Filters({
5574
5946
  fieldKey
5575
5947
  );
5576
5948
  }
5577
- return /* @__PURE__ */ jsxs18(
5949
+ return /* @__PURE__ */ jsxs21(
5578
5950
  DropdownMenuItem,
5579
5951
  {
5580
5952
  id: itemId,
@@ -5586,7 +5958,7 @@ function Filters({
5586
5958
  className: "data-highlighted:bg-accent data-highlighted:text-accent-foreground",
5587
5959
  children: [
5588
5960
  field.icon,
5589
- /* @__PURE__ */ jsx34("span", { children: field.label })
5961
+ /* @__PURE__ */ jsx40("span", { children: field.label })
5590
5962
  ]
5591
5963
  },
5592
5964
  field.key
@@ -5604,16 +5976,16 @@ function Filters({
5604
5976
  filters.map((filter) => {
5605
5977
  const field = fieldsMap[filter.field];
5606
5978
  if (!field) return null;
5607
- return /* @__PURE__ */ jsxs18(
5979
+ return /* @__PURE__ */ jsxs21(
5608
5980
  ButtonGroup,
5609
5981
  {
5610
5982
  className: "",
5611
5983
  children: [
5612
- /* @__PURE__ */ jsxs18(ButtonGroupText, { className: "bg-background dark:bg-input/30", children: [
5984
+ /* @__PURE__ */ jsxs21(ButtonGroupText, { className: "bg-background dark:bg-input/30", children: [
5613
5985
  field.icon && field.icon,
5614
5986
  field.label
5615
5987
  ] }),
5616
- /* @__PURE__ */ jsx34(
5988
+ /* @__PURE__ */ jsx40(
5617
5989
  FilterOperatorDropdown,
5618
5990
  {
5619
5991
  field,
@@ -5622,7 +5994,7 @@ function Filters({
5622
5994
  onChange: (operator) => updateFilter(filter.id, { operator })
5623
5995
  }
5624
5996
  ),
5625
- /* @__PURE__ */ jsx34(
5997
+ /* @__PURE__ */ jsx40(
5626
5998
  FilterValueSelector,
5627
5999
  {
5628
6000
  field,
@@ -5632,7 +6004,7 @@ function Filters({
5632
6004
  autoFocus: filter.id === lastAddedFilterId
5633
6005
  }
5634
6006
  ),
5635
- /* @__PURE__ */ jsx34(FilterRemoveButton, { onClick: () => removeFilter(filter.id) })
6007
+ /* @__PURE__ */ jsx40(FilterRemoveButton, { onClick: () => removeFilter(filter.id) })
5636
6008
  ]
5637
6009
  },
5638
6010
  filter.id
@@ -5658,8 +6030,8 @@ var createFilterGroup = (id, label, fields, initialFilters = []) => ({
5658
6030
  // src/ui/image.tsx
5659
6031
  import NextImage from "next/image";
5660
6032
  import { useCallback as useCallback3, useState as useState6 } from "react";
5661
- import { cn as cn34 } from "cn";
5662
- import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
6033
+ import { cn as cn38 } from "cn";
6034
+ import { jsx as jsx41, jsxs as jsxs22 } from "react/jsx-runtime";
5663
6035
  function srcValue(src) {
5664
6036
  if (!src) return null;
5665
6037
  if (typeof src === "string") return src;
@@ -5679,7 +6051,7 @@ function Image({
5679
6051
  onLoad,
5680
6052
  onError,
5681
6053
  children,
5682
- fallback = /* @__PURE__ */ jsx35(JellyMini, { mood: "curious", className: "size-full p-4" }),
6054
+ fallback = /* @__PURE__ */ jsx41(JellyMini, { mood: "curious", className: "size-full p-4" }),
5683
6055
  ...props
5684
6056
  }) {
5685
6057
  const currentSrc = srcValue(src);
@@ -5699,9 +6071,9 @@ function Image({
5699
6071
  if (!currentSrc) return;
5700
6072
  setFailedSrc(currentSrc);
5701
6073
  }, [currentSrc]);
5702
- return /* @__PURE__ */ jsxs19("section", { className: cn34("relative block overflow-hidden", wrapper), children: [
5703
- showSkeleton && !loaded && !failed && hasSource && /* @__PURE__ */ jsx35(Skeleton, { className: "absolute inset-0 size-full" }),
5704
- hasSource && !failed ? /* @__PURE__ */ jsx35(
6074
+ return /* @__PURE__ */ jsxs22("section", { className: cn38("relative block overflow-hidden", wrapper), children: [
6075
+ showSkeleton && !loaded && !failed && hasSource && /* @__PURE__ */ jsx41(Skeleton, { className: "absolute inset-0 size-full" }),
6076
+ hasSource && !failed ? /* @__PURE__ */ jsx41(
5705
6077
  NextImage,
5706
6078
  {
5707
6079
  ...props,
@@ -5711,7 +6083,7 @@ function Image({
5711
6083
  loading: imageLoading,
5712
6084
  preload: shouldPreload,
5713
6085
  fetchPriority: fetchPriority ?? (imageLoading === "eager" ? "high" : void 0),
5714
- className: cn34(
6086
+ className: cn38(
5715
6087
  "transition-opacity duration-200",
5716
6088
  loaded ? "opacity-100" : "opacity-0",
5717
6089
  className
@@ -5733,34 +6105,34 @@ function Image({
5733
6105
  // src/ui/input-otp.tsx
5734
6106
  import * as React11 from "react";
5735
6107
  import { OTPInput, OTPInputContext, REGEXP_ONLY_DIGITS } from "input-otp";
5736
- import { cn as cn35 } from "cn";
6108
+ import { cn as cn39 } from "cn";
5737
6109
  import { MinusIcon } from "lucide-react";
5738
- import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
6110
+ import { jsx as jsx42, jsxs as jsxs23 } from "react/jsx-runtime";
5739
6111
  function InputOTP({
5740
6112
  className,
5741
6113
  containerClassName,
5742
6114
  ...props
5743
6115
  }) {
5744
- return /* @__PURE__ */ jsx36(
6116
+ return /* @__PURE__ */ jsx42(
5745
6117
  OTPInput,
5746
6118
  {
5747
6119
  "data-slot": "input-otp",
5748
- containerClassName: cn35(
6120
+ containerClassName: cn39(
5749
6121
  "cn-input-otp flex items-center has-disabled:opacity-50",
5750
6122
  containerClassName
5751
6123
  ),
5752
6124
  spellCheck: false,
5753
- className: cn35("disabled:cursor-not-allowed", className),
6125
+ className: cn39("disabled:cursor-not-allowed", className),
5754
6126
  ...props
5755
6127
  }
5756
6128
  );
5757
6129
  }
5758
6130
  function InputOTPGroup({ className, ...props }) {
5759
- return /* @__PURE__ */ jsx36(
6131
+ return /* @__PURE__ */ jsx42(
5760
6132
  "div",
5761
6133
  {
5762
6134
  "data-slot": "input-otp-group",
5763
- className: cn35(
6135
+ className: cn39(
5764
6136
  "flex items-center rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40",
5765
6137
  className
5766
6138
  ),
@@ -5775,32 +6147,32 @@ function InputOTPSlot({
5775
6147
  }) {
5776
6148
  const inputOTPContext = React11.useContext(OTPInputContext);
5777
6149
  const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
5778
- return /* @__PURE__ */ jsxs20(
6150
+ return /* @__PURE__ */ jsxs23(
5779
6151
  "div",
5780
6152
  {
5781
6153
  "data-slot": "input-otp-slot",
5782
6154
  "data-active": isActive,
5783
- className: cn35(
5784
- "relative flex size-8 items-center justify-center border-y border-r border-input text-sm transition-[background-color,border-color,box-shadow,opacity] duration-150 ease-out outline-none motion-reduce:transition-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40",
6155
+ className: cn39(
6156
+ "relative flex size-8 items-center justify-center border-y border-r border-input text-sm transition-[background-color,border-color,box-shadow,opacity] duration-150 ease-out outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 motion-reduce:transition-none dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40",
5785
6157
  className
5786
6158
  ),
5787
6159
  ...props,
5788
6160
  children: [
5789
6161
  char,
5790
- hasFakeCaret && /* @__PURE__ */ jsx36("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx36("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
6162
+ hasFakeCaret && /* @__PURE__ */ jsx42("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx42("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
5791
6163
  ]
5792
6164
  }
5793
6165
  );
5794
6166
  }
5795
6167
  function InputOTPSeparator({ ...props }) {
5796
- return /* @__PURE__ */ jsx36(
6168
+ return /* @__PURE__ */ jsx42(
5797
6169
  "div",
5798
6170
  {
5799
6171
  "data-slot": "input-otp-separator",
5800
6172
  className: "flex items-center [&_svg:not([class*='size-'])]:size-4",
5801
6173
  role: "separator",
5802
6174
  ...props,
5803
- children: /* @__PURE__ */ jsx36(MinusIcon, {})
6175
+ children: /* @__PURE__ */ jsx42(MinusIcon, {})
5804
6176
  }
5805
6177
  );
5806
6178
  }
@@ -5809,15 +6181,15 @@ function InputOTPSeparator({ ...props }) {
5809
6181
  import { mergeProps as mergeProps4 } from "@base-ui/react/merge-props";
5810
6182
  import { useRender as useRender5 } from "@base-ui/react/use-render";
5811
6183
  import { cva as cva9 } from "class-variance-authority";
5812
- import { cn as cn36 } from "cn";
5813
- import { jsx as jsx37 } from "react/jsx-runtime";
6184
+ import { cn as cn40 } from "cn";
6185
+ import { jsx as jsx43 } from "react/jsx-runtime";
5814
6186
  function ItemGroup({ className, ...props }) {
5815
- return /* @__PURE__ */ jsx37(
6187
+ return /* @__PURE__ */ jsx43(
5816
6188
  "div",
5817
6189
  {
5818
6190
  role: "list",
5819
6191
  "data-slot": "item-group",
5820
- className: cn36(
6192
+ className: cn40(
5821
6193
  "group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2",
5822
6194
  className
5823
6195
  ),
@@ -5829,12 +6201,12 @@ function ItemSeparator({
5829
6201
  className,
5830
6202
  ...props
5831
6203
  }) {
5832
- return /* @__PURE__ */ jsx37(
6204
+ return /* @__PURE__ */ jsx43(
5833
6205
  Separator,
5834
6206
  {
5835
6207
  "data-slot": "item-separator",
5836
6208
  orientation: "horizontal",
5837
- className: cn36("my-2", className),
6209
+ className: cn40("my-2", className),
5838
6210
  ...props
5839
6211
  }
5840
6212
  );
@@ -5871,7 +6243,7 @@ function Item({
5871
6243
  defaultTagName: "div",
5872
6244
  props: mergeProps4(
5873
6245
  {
5874
- className: cn36(itemVariants({ variant, size, className }))
6246
+ className: cn40(itemVariants({ variant, size, className }))
5875
6247
  },
5876
6248
  props
5877
6249
  ),
@@ -5903,22 +6275,22 @@ function ItemMedia({
5903
6275
  variant = "default",
5904
6276
  ...props
5905
6277
  }) {
5906
- return /* @__PURE__ */ jsx37(
6278
+ return /* @__PURE__ */ jsx43(
5907
6279
  "div",
5908
6280
  {
5909
6281
  "data-slot": "item-media",
5910
6282
  "data-variant": variant,
5911
- className: cn36(itemMediaVariants({ variant, className })),
6283
+ className: cn40(itemMediaVariants({ variant, className })),
5912
6284
  ...props
5913
6285
  }
5914
6286
  );
5915
6287
  }
5916
6288
  function ItemContent({ className, ...props }) {
5917
- return /* @__PURE__ */ jsx37(
6289
+ return /* @__PURE__ */ jsx43(
5918
6290
  "div",
5919
6291
  {
5920
6292
  "data-slot": "item-content",
5921
- className: cn36(
6293
+ className: cn40(
5922
6294
  "flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none",
5923
6295
  className
5924
6296
  ),
@@ -5927,11 +6299,11 @@ function ItemContent({ className, ...props }) {
5927
6299
  );
5928
6300
  }
5929
6301
  function ItemTitle({ className, ...props }) {
5930
- return /* @__PURE__ */ jsx37(
6302
+ return /* @__PURE__ */ jsx43(
5931
6303
  "div",
5932
6304
  {
5933
6305
  "data-slot": "item-title",
5934
- className: cn36(
6306
+ className: cn40(
5935
6307
  "line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4",
5936
6308
  className
5937
6309
  ),
@@ -5940,11 +6312,11 @@ function ItemTitle({ className, ...props }) {
5940
6312
  );
5941
6313
  }
5942
6314
  function ItemDescription({ className, ...props }) {
5943
- return /* @__PURE__ */ jsx37(
6315
+ return /* @__PURE__ */ jsx43(
5944
6316
  "p",
5945
6317
  {
5946
6318
  "data-slot": "item-description",
5947
- className: cn36(
6319
+ className: cn40(
5948
6320
  "line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
5949
6321
  className
5950
6322
  ),
@@ -5953,21 +6325,21 @@ function ItemDescription({ className, ...props }) {
5953
6325
  );
5954
6326
  }
5955
6327
  function ItemActions({ className, ...props }) {
5956
- return /* @__PURE__ */ jsx37(
6328
+ return /* @__PURE__ */ jsx43(
5957
6329
  "div",
5958
6330
  {
5959
6331
  "data-slot": "item-actions",
5960
- className: cn36("flex items-center gap-2", className),
6332
+ className: cn40("flex items-center gap-2", className),
5961
6333
  ...props
5962
6334
  }
5963
6335
  );
5964
6336
  }
5965
6337
  function ItemHeader({ className, ...props }) {
5966
- return /* @__PURE__ */ jsx37(
6338
+ return /* @__PURE__ */ jsx43(
5967
6339
  "div",
5968
6340
  {
5969
6341
  "data-slot": "item-header",
5970
- className: cn36(
6342
+ className: cn40(
5971
6343
  "flex basis-full items-center justify-between gap-2",
5972
6344
  className
5973
6345
  ),
@@ -5976,11 +6348,11 @@ function ItemHeader({ className, ...props }) {
5976
6348
  );
5977
6349
  }
5978
6350
  function ItemFooter({ className, ...props }) {
5979
- return /* @__PURE__ */ jsx37(
6351
+ return /* @__PURE__ */ jsx43(
5980
6352
  "div",
5981
6353
  {
5982
6354
  "data-slot": "item-footer",
5983
- className: cn36(
6355
+ className: cn40(
5984
6356
  "flex basis-full items-center justify-between gap-2",
5985
6357
  className
5986
6358
  ),
@@ -5995,19 +6367,19 @@ import {
5995
6367
  JellyBlobMascot
5996
6368
  } from "feral-blob";
5997
6369
  import * as React12 from "react";
5998
- import { cn as cn37 } from "cn";
6370
+ import { cn as cn41 } from "cn";
5999
6371
  import {
6000
6372
  BlobSpeech as BlobSpeech2,
6001
6373
  JellyBlobMascot as JellyBlobMascot2,
6002
6374
  JellyBlobMascotDemo
6003
6375
  } from "feral-blob";
6004
- import { jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
6376
+ import { jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
6005
6377
  function JellyBlob({ ...props }) {
6006
- return /* @__PURE__ */ jsx38("span", { className: "inline-block", children: /* @__PURE__ */ jsx38(
6378
+ return /* @__PURE__ */ jsx44("span", { className: "inline-block", children: /* @__PURE__ */ jsx44(
6007
6379
  JellyBlobMascot,
6008
6380
  {
6009
6381
  ...props,
6010
- className: cn37("h-auto w-full", props.className)
6382
+ className: cn41("h-auto w-full", props.className)
6011
6383
  }
6012
6384
  ) });
6013
6385
  }
@@ -6033,15 +6405,15 @@ function JellyMini({
6033
6405
  ...props
6034
6406
  }) {
6035
6407
  const { mounted } = useMounted();
6036
- return /* @__PURE__ */ jsx38(
6408
+ return /* @__PURE__ */ jsx44(
6037
6409
  "span",
6038
6410
  {
6039
6411
  "aria-hidden": "true",
6040
- className: cn37(
6412
+ className: cn41(
6041
6413
  "inline-flex size-5 shrink-0 items-center justify-center select-none",
6042
6414
  className
6043
6415
  ),
6044
- children: mounted ? /* @__PURE__ */ jsx38(
6416
+ children: mounted ? /* @__PURE__ */ jsx44(
6045
6417
  JellyBlobMascot,
6046
6418
  {
6047
6419
  ...props,
@@ -6083,14 +6455,14 @@ function JellyAction({
6083
6455
  ...props
6084
6456
  }) {
6085
6457
  const preview = useJellyMood();
6086
- return /* @__PURE__ */ jsx38(Button, { ...props, ...withPreviewHandlers(preview, { ...props, mood }) });
6458
+ return /* @__PURE__ */ jsx44(Button, { ...props, ...withPreviewHandlers(preview, { ...props, mood }) });
6087
6459
  }
6088
6460
  function JellyLink({
6089
6461
  mood,
6090
6462
  ...props
6091
6463
  }) {
6092
6464
  const preview = useJellyMood();
6093
- return /* @__PURE__ */ jsx38("a", { ...props, ...withPreviewHandlers(preview, { ...props, mood }) });
6465
+ return /* @__PURE__ */ jsx44("a", { ...props, ...withPreviewHandlers(preview, { ...props, mood }) });
6094
6466
  }
6095
6467
  function JellyMascotProvider({
6096
6468
  mood = "neutral",
@@ -6112,7 +6484,7 @@ function JellyMascotProvider({
6112
6484
  blobProps,
6113
6485
  setPreview: setPreviewMood
6114
6486
  };
6115
- return /* @__PURE__ */ jsx38(JellyMascotContext.Provider, { value, children });
6487
+ return /* @__PURE__ */ jsx44(JellyMascotContext.Provider, { value, children });
6116
6488
  }
6117
6489
  var SIZE_WRAPPER = {
6118
6490
  sm: "w-20",
@@ -6126,24 +6498,24 @@ function JellyMascotFace({
6126
6498
  }) {
6127
6499
  const mascot = React12.useContext(JellyMascotContext);
6128
6500
  if (!mascot) return null;
6129
- return /* @__PURE__ */ jsxs21(
6501
+ return /* @__PURE__ */ jsxs24(
6130
6502
  "div",
6131
6503
  {
6132
6504
  "aria-hidden": "true",
6133
- className: cn37(
6505
+ className: cn41(
6134
6506
  "flex flex-col items-center select-none",
6135
6507
  SIZE_WRAPPER[size],
6136
6508
  className
6137
6509
  ),
6138
6510
  children: [
6139
- mascot.speech ? /* @__PURE__ */ jsx38(
6511
+ mascot.speech ? /* @__PURE__ */ jsx44(
6140
6512
  BlobSpeech,
6141
6513
  {
6142
6514
  mood: mascot.mood,
6143
6515
  messages: { [mascot.mood]: mascot.speech }
6144
6516
  }
6145
6517
  ) : null,
6146
- mascot.mounted ? /* @__PURE__ */ jsx38(
6518
+ mascot.mounted ? /* @__PURE__ */ jsx44(
6147
6519
  JellyBlobMascot,
6148
6520
  {
6149
6521
  ...mascot.blobProps,
@@ -6163,14 +6535,14 @@ function JellyMascot({
6163
6535
  ...config
6164
6536
  }) {
6165
6537
  const existing = React12.useContext(JellyMascotContext);
6166
- if (existing) return /* @__PURE__ */ jsx38(JellyMascotFace, { size, className });
6167
- return /* @__PURE__ */ jsx38(JellyMascotProvider, { ...config, children: /* @__PURE__ */ jsx38(JellyMascotFace, { size, className }) });
6538
+ if (existing) return /* @__PURE__ */ jsx44(JellyMascotFace, { size, className });
6539
+ return /* @__PURE__ */ jsx44(JellyMascotProvider, { ...config, children: /* @__PURE__ */ jsx44(JellyMascotFace, { size, className }) });
6168
6540
  }
6169
6541
  function JellyGroup({
6170
6542
  children,
6171
6543
  ...config
6172
6544
  }) {
6173
- return /* @__PURE__ */ jsx38(JellyMascotProvider, { ...config, children });
6545
+ return /* @__PURE__ */ jsx44(JellyMascotProvider, { ...config, children });
6174
6546
  }
6175
6547
  function JellyEmpty({
6176
6548
  title,
@@ -6180,25 +6552,25 @@ function JellyEmpty({
6180
6552
  className,
6181
6553
  ...config
6182
6554
  }) {
6183
- return /* @__PURE__ */ jsx38(JellyMascotProvider, { ...config, children: /* @__PURE__ */ jsxs21(Empty, { className: cn37("gap-4", className), children: [
6184
- /* @__PURE__ */ jsxs21(EmptyHeader, { className: "gap-2", children: [
6185
- /* @__PURE__ */ jsx38(JellyMascotFace, { size }),
6186
- title ? /* @__PURE__ */ jsx38(EmptyTitle, { className: "text-base font-semibold sm:text-lg", children: title }) : null,
6187
- description ? /* @__PURE__ */ jsx38(EmptyDescription, { className: "max-w-sm", children: description }) : null
6555
+ return /* @__PURE__ */ jsx44(JellyMascotProvider, { ...config, children: /* @__PURE__ */ jsxs24(Empty, { className: cn41("gap-4", className), children: [
6556
+ /* @__PURE__ */ jsxs24(EmptyHeader, { className: "gap-2", children: [
6557
+ /* @__PURE__ */ jsx44(JellyMascotFace, { size }),
6558
+ title ? /* @__PURE__ */ jsx44(EmptyTitle, { className: "text-base font-semibold sm:text-lg", children: title }) : null,
6559
+ description ? /* @__PURE__ */ jsx44(EmptyDescription, { className: "max-w-sm", children: description }) : null
6188
6560
  ] }),
6189
- actions ? /* @__PURE__ */ jsx38(EmptyContent, { children: actions }) : null
6561
+ actions ? /* @__PURE__ */ jsx44(EmptyContent, { children: actions }) : null
6190
6562
  ] }) });
6191
6563
  }
6192
6564
 
6193
6565
  // src/ui/message.tsx
6194
- import { cn as cn38 } from "cn";
6195
- import { jsx as jsx39 } from "react/jsx-runtime";
6566
+ import { cn as cn42 } from "cn";
6567
+ import { jsx as jsx45 } from "react/jsx-runtime";
6196
6568
  function MessageGroup({ className, ...props }) {
6197
- return /* @__PURE__ */ jsx39(
6569
+ return /* @__PURE__ */ jsx45(
6198
6570
  "div",
6199
6571
  {
6200
6572
  "data-slot": "message-group",
6201
- className: cn38("flex min-w-0 flex-col gap-2", className),
6573
+ className: cn42("flex min-w-0 flex-col gap-2", className),
6202
6574
  ...props
6203
6575
  }
6204
6576
  );
@@ -6208,12 +6580,12 @@ function Message({
6208
6580
  align = "start",
6209
6581
  ...props
6210
6582
  }) {
6211
- return /* @__PURE__ */ jsx39(
6583
+ return /* @__PURE__ */ jsx45(
6212
6584
  "div",
6213
6585
  {
6214
6586
  "data-slot": "message",
6215
6587
  "data-align": align,
6216
- className: cn38(
6588
+ className: cn42(
6217
6589
  "group/message relative flex w-full min-w-0 gap-2 text-sm data-[align=end]:flex-row-reverse",
6218
6590
  className
6219
6591
  ),
@@ -6222,11 +6594,11 @@ function Message({
6222
6594
  );
6223
6595
  }
6224
6596
  function MessageAvatar({ className, ...props }) {
6225
- return /* @__PURE__ */ jsx39(
6597
+ return /* @__PURE__ */ jsx45(
6226
6598
  "div",
6227
6599
  {
6228
6600
  "data-slot": "message-avatar",
6229
- className: cn38(
6601
+ className: cn42(
6230
6602
  "flex w-fit min-w-8 shrink-0 items-center justify-center self-end overflow-hidden rounded-full bg-muted group-has-data-[slot=message-footer]/message:-translate-y-8",
6231
6603
  className
6232
6604
  ),
@@ -6235,11 +6607,11 @@ function MessageAvatar({ className, ...props }) {
6235
6607
  );
6236
6608
  }
6237
6609
  function MessageContent({ className, ...props }) {
6238
- return /* @__PURE__ */ jsx39(
6610
+ return /* @__PURE__ */ jsx45(
6239
6611
  "div",
6240
6612
  {
6241
6613
  "data-slot": "message-content",
6242
- className: cn38(
6614
+ className: cn42(
6243
6615
  "flex w-full min-w-0 flex-col gap-2.5 wrap-break-word group-data-[align=end]/message:*:data-slot:self-end",
6244
6616
  className
6245
6617
  ),
@@ -6248,11 +6620,11 @@ function MessageContent({ className, ...props }) {
6248
6620
  );
6249
6621
  }
6250
6622
  function MessageHeader({ className, ...props }) {
6251
- return /* @__PURE__ */ jsx39(
6623
+ return /* @__PURE__ */ jsx45(
6252
6624
  "div",
6253
6625
  {
6254
6626
  "data-slot": "message-header",
6255
- className: cn38(
6627
+ className: cn42(
6256
6628
  "flex max-w-full min-w-0 items-center px-3 text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0",
6257
6629
  className
6258
6630
  ),
@@ -6261,11 +6633,11 @@ function MessageHeader({ className, ...props }) {
6261
6633
  );
6262
6634
  }
6263
6635
  function MessageFooter({ className, ...props }) {
6264
- return /* @__PURE__ */ jsx39(
6636
+ return /* @__PURE__ */ jsx45(
6265
6637
  "div",
6266
6638
  {
6267
6639
  "data-slot": "message-footer",
6268
- className: cn38(
6640
+ className: cn42(
6269
6641
  "flex max-w-full min-w-0 items-center px-3 text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0 group-data-[align=end]/message:justify-end",
6270
6642
  className
6271
6643
  ),
@@ -6281,21 +6653,21 @@ import {
6281
6653
  useMessageScrollerScrollable,
6282
6654
  useMessageScrollerVisibility
6283
6655
  } from "@shadcn/react/message-scroller";
6284
- import { cn as cn39 } from "cn";
6656
+ import { cn as cn43 } from "cn";
6285
6657
  import { ArrowDownIcon } from "lucide-react";
6286
- import { Fragment as Fragment3, jsx as jsx40, jsxs as jsxs22 } from "react/jsx-runtime";
6658
+ import { Fragment as Fragment4, jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
6287
6659
  function MessageScrollerProvider(props) {
6288
- return /* @__PURE__ */ jsx40(MessageScrollerPrimitive.Provider, { ...props });
6660
+ return /* @__PURE__ */ jsx46(MessageScrollerPrimitive.Provider, { ...props });
6289
6661
  }
6290
6662
  function MessageScroller({
6291
6663
  className,
6292
6664
  ...props
6293
6665
  }) {
6294
- return /* @__PURE__ */ jsx40(
6666
+ return /* @__PURE__ */ jsx46(
6295
6667
  MessageScrollerPrimitive.Root,
6296
6668
  {
6297
6669
  "data-slot": "message-scroller",
6298
- className: cn39(
6670
+ className: cn43(
6299
6671
  "group/message-scroller relative flex size-full min-h-0 flex-col overflow-hidden",
6300
6672
  className
6301
6673
  ),
@@ -6307,11 +6679,11 @@ function MessageScrollerViewport({
6307
6679
  className,
6308
6680
  ...props
6309
6681
  }) {
6310
- return /* @__PURE__ */ jsx40(
6682
+ return /* @__PURE__ */ jsx46(
6311
6683
  MessageScrollerPrimitive.Viewport,
6312
6684
  {
6313
6685
  "data-slot": "message-scroller-viewport",
6314
- className: cn39(
6686
+ className: cn43(
6315
6687
  "size-full min-h-0 min-w-0 scroll-fade scrollbar-thin scrollbar-gutter-stable overflow-y-auto overscroll-contain contain-content data-autoscrolling:scrollbar-thumb-transparent data-autoscrolling:scrollbar-track-transparent",
6316
6688
  className
6317
6689
  ),
@@ -6323,11 +6695,11 @@ function MessageScrollerContent({
6323
6695
  className,
6324
6696
  ...props
6325
6697
  }) {
6326
- return /* @__PURE__ */ jsx40(
6698
+ return /* @__PURE__ */ jsx46(
6327
6699
  MessageScrollerPrimitive.Content,
6328
6700
  {
6329
6701
  "data-slot": "message-scroller-content",
6330
- className: cn39("flex h-max min-h-full flex-col gap-6", className),
6702
+ className: cn43("flex h-max min-h-full flex-col gap-6", className),
6331
6703
  ...props
6332
6704
  }
6333
6705
  );
@@ -6337,12 +6709,12 @@ function MessageScrollerItem({
6337
6709
  scrollAnchor = false,
6338
6710
  ...props
6339
6711
  }) {
6340
- return /* @__PURE__ */ jsx40(
6712
+ return /* @__PURE__ */ jsx46(
6341
6713
  MessageScrollerPrimitive.Item,
6342
6714
  {
6343
6715
  "data-slot": "message-scroller-item",
6344
6716
  scrollAnchor,
6345
- className: cn39(
6717
+ className: cn43(
6346
6718
  "min-w-0 shrink-0 [contain-intrinsic-size:auto_10rem] [content-visibility:auto]",
6347
6719
  className
6348
6720
  ),
@@ -6359,7 +6731,7 @@ function MessageScrollerButton({
6359
6731
  size = "icon-sm",
6360
6732
  ...props
6361
6733
  }) {
6362
- return /* @__PURE__ */ jsx40(
6734
+ return /* @__PURE__ */ jsx46(
6363
6735
  MessageScrollerPrimitive.Button,
6364
6736
  {
6365
6737
  "data-slot": "message-scroller-button",
@@ -6367,32 +6739,32 @@ function MessageScrollerButton({
6367
6739
  "data-variant": variant,
6368
6740
  "data-size": size,
6369
6741
  direction,
6370
- className: cn39(
6742
+ className: cn43(
6371
6743
  "data-[active=true]:ease-out-quint absolute inset-s-1/2 -translate-x-1/2 border-border bg-background text-foreground transition-[translate,scale,opacity] duration-200 hover:bg-muted hover:text-foreground data-[active=false]:pointer-events-none data-[active=false]:scale-95 data-[active=false]:opacity-0 data-[active=false]:duration-400 data-[active=false]:ease-[cubic-bezier(0.7,0,0.84,0)] data-[active=true]:translate-y-0 data-[active=true]:scale-100 data-[active=true]:opacity-100 data-[direction=end]:bottom-4 data-[direction=end]:data-[active=false]:translate-y-full data-[direction=start]:top-4 data-[direction=start]:data-[active=false]:-translate-y-full rtl:translate-x-1/2 data-[direction=start]:[&_svg]:rotate-180",
6372
6744
  className
6373
6745
  ),
6374
- render: render ?? /* @__PURE__ */ jsx40(Button, { variant, size }),
6746
+ render: render ?? /* @__PURE__ */ jsx46(Button, { variant, size }),
6375
6747
  ...props,
6376
- children: children ?? /* @__PURE__ */ jsxs22(Fragment3, { children: [
6377
- /* @__PURE__ */ jsx40(ArrowDownIcon, {}),
6378
- /* @__PURE__ */ jsx40("span", { className: "sr-only", children: direction === "end" ? "Scroll to end" : "Scroll to start" })
6748
+ children: children ?? /* @__PURE__ */ jsxs25(Fragment4, { children: [
6749
+ /* @__PURE__ */ jsx46(ArrowDownIcon, {}),
6750
+ /* @__PURE__ */ jsx46("span", { className: "sr-only", children: direction === "end" ? "Scroll to end" : "Scroll to start" })
6379
6751
  ] })
6380
6752
  }
6381
6753
  );
6382
6754
  }
6383
6755
 
6384
6756
  // src/ui/numberstepper.tsx
6385
- import { cn as cn40 } from "cn";
6757
+ import { cn as cn44 } from "cn";
6386
6758
  import { AnimatePresence as AnimatePresence2, motion as motion6, useReducedMotion } from "motion/react";
6387
6759
  import {
6388
- forwardRef as forwardRef3,
6760
+ forwardRef as forwardRef4,
6389
6761
  useEffect as useEffect6,
6390
6762
  useId as useId3,
6391
- useLayoutEffect,
6763
+ useLayoutEffect as useLayoutEffect2,
6392
6764
  useRef as useRef4,
6393
6765
  useState as useState8
6394
6766
  } from "react";
6395
- import { jsx as jsx41, jsxs as jsxs23 } from "react/jsx-runtime";
6767
+ import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
6396
6768
  var EASE_OUT = [0.23, 1, 0.32, 1];
6397
6769
  var ROLL = { duration: 0.18, ease: EASE_OUT };
6398
6770
  var SLIDE = { type: "spring", visualDuration: 0.2, bounce: 0 };
@@ -6446,15 +6818,15 @@ function RollingNumber({
6446
6818
  }) {
6447
6819
  const direction = useDirection(value);
6448
6820
  const chars = [...format(value)];
6449
- return /* @__PURE__ */ jsx41(
6821
+ return /* @__PURE__ */ jsx47(
6450
6822
  "span",
6451
6823
  {
6452
6824
  "aria-hidden": true,
6453
- className: cn40("relative inline-flex tabular-nums", className),
6454
- children: /* @__PURE__ */ jsx41(AnimatePresence2, { mode: "popLayout", initial: false, custom: direction, children: chars.map((char, index) => {
6825
+ className: cn44("relative inline-flex tabular-nums", className),
6826
+ children: /* @__PURE__ */ jsx47(AnimatePresence2, { mode: "popLayout", initial: false, custom: direction, children: chars.map((char, index) => {
6455
6827
  const place = chars.length - index;
6456
6828
  const digit = /\d/.test(char);
6457
- return /* @__PURE__ */ jsx41(Place, { digit, children: digit ? /* @__PURE__ */ jsx41(Digit, { char, direction }) : char }, digit ? `d${place}` : `s${place}${char}`);
6829
+ return /* @__PURE__ */ jsx47(Place, { digit, children: digit ? /* @__PURE__ */ jsx47(Digit, { char, direction }) : char }, digit ? `d${place}` : `s${place}${char}`);
6458
6830
  }) })
6459
6831
  }
6460
6832
  );
@@ -6464,7 +6836,7 @@ function Place({
6464
6836
  children
6465
6837
  }) {
6466
6838
  const reduceMotion = useReducedMotion();
6467
- return /* @__PURE__ */ jsx41(
6839
+ return /* @__PURE__ */ jsx47(
6468
6840
  motion6.span,
6469
6841
  {
6470
6842
  layout: reduceMotion ? false : "position",
@@ -6476,7 +6848,7 @@ function Place({
6476
6848
  transition: { duration: 0.1 }
6477
6849
  },
6478
6850
  transition: { ...ROLL, layout: SLIDE },
6479
- className: cn40("inline-grid", digit && "overflow-hidden"),
6851
+ className: cn44("inline-grid", digit && "overflow-hidden"),
6480
6852
  children
6481
6853
  }
6482
6854
  );
@@ -6484,7 +6856,7 @@ function Place({
6484
6856
  function Digit({ char, direction }) {
6485
6857
  const reduceMotion = useReducedMotion();
6486
6858
  const offset = (value) => reduceMotion ? "0%" : `${value * 100}%`;
6487
- return /* @__PURE__ */ jsx41(AnimatePresence2, { initial: false, custom: direction, children: /* @__PURE__ */ jsx41(
6859
+ return /* @__PURE__ */ jsx47(AnimatePresence2, { initial: false, custom: direction, children: /* @__PURE__ */ jsx47(
6488
6860
  motion6.span,
6489
6861
  {
6490
6862
  custom: direction,
@@ -6512,7 +6884,7 @@ function Digit({ char, direction }) {
6512
6884
  char
6513
6885
  ) });
6514
6886
  }
6515
- var NumberStepper = forwardRef3(
6887
+ var NumberStepper = forwardRef4(
6516
6888
  function NumberStepper2({
6517
6889
  label,
6518
6890
  value,
@@ -6540,7 +6912,7 @@ var NumberStepper = forwardRef3(
6540
6912
  max,
6541
6913
  disabled
6542
6914
  });
6543
- useLayoutEffect(() => {
6915
+ useLayoutEffect2(() => {
6544
6916
  latest.current = {
6545
6917
  value,
6546
6918
  onChange,
@@ -6608,7 +6980,7 @@ var NumberStepper = forwardRef3(
6608
6980
  if (Number.isNaN(parsed)) return;
6609
6981
  setTo(parsed, parsed > latest.current.value ? 1 : -1);
6610
6982
  };
6611
- const button = (delta, atLimit, name, path) => /* @__PURE__ */ jsx41(
6983
+ const button = (delta, atLimit, name, path) => /* @__PURE__ */ jsx47(
6612
6984
  "button",
6613
6985
  {
6614
6986
  type: "button",
@@ -6632,13 +7004,13 @@ var NumberStepper = forwardRef3(
6632
7004
  stepBy(delta);
6633
7005
  }
6634
7006
  },
6635
- className: cn40(
7007
+ className: cn44(
6636
7008
  "flex shrink-0 touch-manipulation items-center justify-center rounded-full text-foreground outline-hidden select-none",
6637
7009
  styles.button,
6638
7010
  "transition-[scale,opacity,background-color] duration-150 ease-out hover:bg-foreground/6 active:scale-[0.96] motion-reduce:transition-[opacity,background-color]",
6639
7011
  (disabled || atLimit) && "opacity-35 hover:bg-transparent"
6640
7012
  ),
6641
- children: /* @__PURE__ */ jsx41(
7013
+ children: /* @__PURE__ */ jsx47(
6642
7014
  "svg",
6643
7015
  {
6644
7016
  viewBox: "0 0 16 16",
@@ -6648,18 +7020,18 @@ var NumberStepper = forwardRef3(
6648
7020
  stroke: "currentColor",
6649
7021
  strokeWidth: 1.5,
6650
7022
  strokeLinecap: "round",
6651
- children: /* @__PURE__ */ jsx41("path", { d: path })
7023
+ children: /* @__PURE__ */ jsx47("path", { d: path })
6652
7024
  }
6653
7025
  )
6654
7026
  }
6655
7027
  );
6656
7028
  const editing = draft !== null;
6657
7029
  const styles = sizeStyles[size];
6658
- return /* @__PURE__ */ jsxs23(
7030
+ return /* @__PURE__ */ jsxs26(
6659
7031
  "div",
6660
7032
  {
6661
7033
  "data-slot": "input-group",
6662
- className: cn40(
7034
+ className: cn44(
6663
7035
  "shadow-raised inline-flex items-center rounded-full border",
6664
7036
  disabled && "opacity-50",
6665
7037
  styles.container,
@@ -6667,13 +7039,13 @@ var NumberStepper = forwardRef3(
6667
7039
  ),
6668
7040
  children: [
6669
7041
  button(-step, value <= min, "Decrease", "M3.5 8h9"),
6670
- /* @__PURE__ */ jsxs23(
7042
+ /* @__PURE__ */ jsxs26(
6671
7043
  "span",
6672
7044
  {
6673
7045
  ref: valueRef,
6674
- className: cn40("relative grid place-items-center", styles.value),
7046
+ className: cn44("relative grid place-items-center", styles.value),
6675
7047
  children: [
6676
- /* @__PURE__ */ jsx41(
7048
+ /* @__PURE__ */ jsx47(
6677
7049
  "input",
6678
7050
  {
6679
7051
  ref,
@@ -6724,18 +7096,18 @@ var NumberStepper = forwardRef3(
6724
7096
  setDraft(null);
6725
7097
  }
6726
7098
  },
6727
- className: cn40(
7099
+ className: cn44(
6728
7100
  "col-start-1 row-start-1 w-full bg-transparent text-center font-medium tabular-nums caret-foreground outline-hidden",
6729
7101
  styles.text,
6730
7102
  editing ? "text-foreground" : "text-transparent"
6731
7103
  )
6732
7104
  }
6733
7105
  ),
6734
- !editing && /* @__PURE__ */ jsx41(
7106
+ !editing && /* @__PURE__ */ jsx47(
6735
7107
  RollingNumber,
6736
7108
  {
6737
7109
  value,
6738
- className: cn40(
7110
+ className: cn44(
6739
7111
  "pointer-events-none col-start-1 row-start-1 font-medium text-foreground",
6740
7112
  styles.text
6741
7113
  )
@@ -6752,15 +7124,15 @@ var NumberStepper = forwardRef3(
6752
7124
  );
6753
7125
 
6754
7126
  // src/ui/otp.tsx
6755
- import { cn as cn41 } from "cn";
7127
+ import { cn as cn45 } from "cn";
6756
7128
  import {
6757
7129
  AnimatePresence as AnimatePresence3,
6758
7130
  animate,
6759
7131
  motion as motion7,
6760
7132
  useReducedMotion as useReducedMotion2
6761
7133
  } from "motion/react";
6762
- import { Fragment as Fragment4, useEffect as useEffect7, useId as useId4, useRef as useRef5, useState as useState9 } from "react";
6763
- import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
7134
+ import { Fragment as Fragment5, useEffect as useEffect7, useId as useId4, useRef as useRef5, useState as useState9 } from "react";
7135
+ import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
6764
7136
  var EASE_OUT2 = [0.16, 1, 0.3, 1];
6765
7137
  var EASE_IN_OUT = [0.77, 0, 0.175, 1];
6766
7138
  var EASE_DRAWER = [0.32, 0.72, 0, 1];
@@ -6925,8 +7297,8 @@ function OTPInput2({
6925
7297
  const showSuccess = status === "success";
6926
7298
  const activeIndex = focused ? active : -1;
6927
7299
  const message = showSuccess ? successMessage : status === "error" ? errorMessage : hint;
6928
- return /* @__PURE__ */ jsxs24("div", { className: cn41("inline-flex flex-col gap-2", className), children: [
6929
- label ? /* @__PURE__ */ jsx42(
7300
+ return /* @__PURE__ */ jsxs27("div", { className: cn45("inline-flex flex-col gap-2", className), children: [
7301
+ label ? /* @__PURE__ */ jsx48(
6930
7302
  "label",
6931
7303
  {
6932
7304
  htmlFor: `${uid}-input`,
@@ -6934,7 +7306,7 @@ function OTPInput2({
6934
7306
  children: label
6935
7307
  }
6936
7308
  ) : null,
6937
- /* @__PURE__ */ jsxs24(
7309
+ /* @__PURE__ */ jsxs27(
6938
7310
  "div",
6939
7311
  {
6940
7312
  className: "relative inline-flex w-max",
@@ -6947,7 +7319,7 @@ function OTPInput2({
6947
7319
  inputRef.current?.focus();
6948
7320
  },
6949
7321
  children: [
6950
- /* @__PURE__ */ jsx42(
7322
+ /* @__PURE__ */ jsx48(
6951
7323
  "input",
6952
7324
  {
6953
7325
  ref: inputRef,
@@ -6974,24 +7346,24 @@ function OTPInput2({
6974
7346
  className: "absolute inset-0 z-20 h-full w-full cursor-text bg-transparent text-transparent caret-transparent opacity-0 outline-none disabled:cursor-not-allowed"
6975
7347
  }
6976
7348
  ),
6977
- /* @__PURE__ */ jsx42("div", { ref: slotsRef, className: "flex items-center gap-3", children: Array.from({ length }, (_, i) => {
7349
+ /* @__PURE__ */ jsx48("div", { ref: slotsRef, className: "flex items-center gap-3", children: Array.from({ length }, (_, i) => {
6978
7350
  const char = slots[i] ?? "";
6979
7351
  const isActive = i === activeIndex;
6980
- return /* @__PURE__ */ jsxs24(Fragment4, { children: [
6981
- /* @__PURE__ */ jsxs24(
7352
+ return /* @__PURE__ */ jsxs27(Fragment5, { children: [
7353
+ /* @__PURE__ */ jsxs27(
6982
7354
  "div",
6983
7355
  {
6984
7356
  "data-otp-slot": true,
6985
7357
  "data-active": isActive,
6986
7358
  "data-filled": char !== "",
6987
- className: cn41(
7359
+ className: cn45(
6988
7360
  "relative grid size-11 place-items-center overflow-hidden rounded-xl border bg-card text-xl font-semibold tabular-nums transition-colors duration-200",
6989
7361
  showSuccess ? "border-emerald-500/60 text-foreground" : status === "error" ? "border-destructive/60 text-foreground" : char ? "border-border-strong text-foreground" : "border-border text-muted-foreground",
6990
- isActive && !showSuccess && status !== "error" && "border-brand border-2 ring-0",
7362
+ isActive && !showSuccess && status !== "error" && "border-2 border-brand ring-0",
6991
7363
  disabled && "opacity-50"
6992
7364
  ),
6993
7365
  children: [
6994
- isActive && !showSuccess ? /* @__PURE__ */ jsx42(
7366
+ isActive && !showSuccess ? /* @__PURE__ */ jsx48(
6995
7367
  motion7.span,
6996
7368
  {
6997
7369
  "aria-hidden": true,
@@ -7001,13 +7373,13 @@ function OTPInput2({
7001
7373
  repeat: Number.POSITIVE_INFINITY,
7002
7374
  ease: "linear"
7003
7375
  },
7004
- className: cn41(
7005
- "bg-brand pointer-events-none absolute top-1/2 h-6 w-px -translate-y-1/2",
7376
+ className: cn45(
7377
+ "pointer-events-none absolute top-1/2 h-6 w-px -translate-y-1/2 bg-brand",
7006
7378
  char ? "right-3" : "left-1/2 -translate-x-1/2"
7007
7379
  )
7008
7380
  }
7009
7381
  ) : null,
7010
- /* @__PURE__ */ jsx42(AnimatePresence3, { initial: false, children: char ? /* @__PURE__ */ jsx42(
7382
+ /* @__PURE__ */ jsx48(AnimatePresence3, { initial: false, children: char ? /* @__PURE__ */ jsx48(
7011
7383
  motion7.span,
7012
7384
  {
7013
7385
  initial: reduce ? {
@@ -7045,10 +7417,10 @@ function OTPInput2({
7045
7417
  ]
7046
7418
  }
7047
7419
  ),
7048
- i === 2 ? /* @__PURE__ */ jsx42("span", { "aria-hidden": "true", className: "h-0.5 w-4 bg-primary" }) : null
7420
+ i === 2 ? /* @__PURE__ */ jsx48("span", { "aria-hidden": "true", className: "h-0.5 w-4 bg-primary" }) : null
7049
7421
  ] }, `${uid}-${i}`);
7050
7422
  }) }),
7051
- /* @__PURE__ */ jsx42(AnimatePresence3, { children: showSuccess ? /* @__PURE__ */ jsx42(
7423
+ /* @__PURE__ */ jsx48(AnimatePresence3, { children: showSuccess ? /* @__PURE__ */ jsx48(
7052
7424
  motion7.span,
7053
7425
  {
7054
7426
  initial: reduce ? {
@@ -7078,7 +7450,7 @@ function OTPInput2({
7078
7450
  },
7079
7451
  className: "pointer-events-none absolute top-1/2 -right-7 -translate-y-1/2 text-emerald-500",
7080
7452
  "aria-hidden": true,
7081
- children: /* @__PURE__ */ jsxs24(
7453
+ children: /* @__PURE__ */ jsxs27(
7082
7454
  "svg",
7083
7455
  {
7084
7456
  width: "20",
@@ -7090,8 +7462,8 @@ function OTPInput2({
7090
7462
  strokeLinecap: "round",
7091
7463
  strokeLinejoin: "round",
7092
7464
  children: [
7093
- /* @__PURE__ */ jsx42("title", { children: "Verified" }),
7094
- /* @__PURE__ */ jsx42(
7465
+ /* @__PURE__ */ jsx48("title", { children: "Verified" }),
7466
+ /* @__PURE__ */ jsx48(
7095
7467
  motion7.path,
7096
7468
  {
7097
7469
  d: "M5 13l4 4L19 7",
@@ -7120,11 +7492,11 @@ function OTPInput2({
7120
7492
  ]
7121
7493
  }
7122
7494
  ),
7123
- message ? /* @__PURE__ */ jsx42(
7495
+ message ? /* @__PURE__ */ jsx48(
7124
7496
  "p",
7125
7497
  {
7126
7498
  "aria-live": "polite",
7127
- className: cn41(
7499
+ className: cn45(
7128
7500
  "text-sm",
7129
7501
  showSuccess ? "text-emerald-500" : status === "error" ? "text-destructive" : "text-muted-foreground"
7130
7502
  ),
@@ -7143,13 +7515,13 @@ function toSlots(raw, length) {
7143
7515
 
7144
7516
  // src/ui/popover.tsx
7145
7517
  import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
7146
- import { cn as cn42 } from "cn";
7147
- import { jsx as jsx43 } from "react/jsx-runtime";
7518
+ import { cn as cn46 } from "cn";
7519
+ import { jsx as jsx49 } from "react/jsx-runtime";
7148
7520
  function Popover({ ...props }) {
7149
- return /* @__PURE__ */ jsx43(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
7521
+ return /* @__PURE__ */ jsx49(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
7150
7522
  }
7151
7523
  function PopoverTrigger({ ...props }) {
7152
- return /* @__PURE__ */ jsx43(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
7524
+ return /* @__PURE__ */ jsx49(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
7153
7525
  }
7154
7526
  function PopoverContent({
7155
7527
  className,
@@ -7159,7 +7531,7 @@ function PopoverContent({
7159
7531
  sideOffset = 4,
7160
7532
  ...props
7161
7533
  }) {
7162
- return /* @__PURE__ */ jsx43(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx43(
7534
+ return /* @__PURE__ */ jsx49(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx49(
7163
7535
  PopoverPrimitive.Positioner,
7164
7536
  {
7165
7537
  align,
@@ -7167,11 +7539,11 @@ function PopoverContent({
7167
7539
  side,
7168
7540
  sideOffset,
7169
7541
  className: "isolate z-50",
7170
- children: /* @__PURE__ */ jsx43(
7542
+ children: /* @__PURE__ */ jsx49(
7171
7543
  PopoverPrimitive.Popup,
7172
7544
  {
7173
7545
  "data-slot": "popover-content",
7174
- className: cn42(
7546
+ className: cn46(
7175
7547
  "z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-background p-2.5 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",
7176
7548
  className
7177
7549
  ),
@@ -7182,21 +7554,21 @@ function PopoverContent({
7182
7554
  ) });
7183
7555
  }
7184
7556
  function PopoverHeader({ className, ...props }) {
7185
- return /* @__PURE__ */ jsx43(
7557
+ return /* @__PURE__ */ jsx49(
7186
7558
  "div",
7187
7559
  {
7188
7560
  "data-slot": "popover-header",
7189
- className: cn42("flex flex-col gap-0.5 text-sm", className),
7561
+ className: cn46("flex flex-col gap-0.5 text-sm", className),
7190
7562
  ...props
7191
7563
  }
7192
7564
  );
7193
7565
  }
7194
7566
  function PopoverTitle({ className, ...props }) {
7195
- return /* @__PURE__ */ jsx43(
7567
+ return /* @__PURE__ */ jsx49(
7196
7568
  PopoverPrimitive.Title,
7197
7569
  {
7198
7570
  "data-slot": "popover-title",
7199
- className: cn42("font-medium", className),
7571
+ className: cn46("font-medium", className),
7200
7572
  ...props
7201
7573
  }
7202
7574
  );
@@ -7205,11 +7577,11 @@ function PopoverDescription({
7205
7577
  className,
7206
7578
  ...props
7207
7579
  }) {
7208
- return /* @__PURE__ */ jsx43(
7580
+ return /* @__PURE__ */ jsx49(
7209
7581
  PopoverPrimitive.Description,
7210
7582
  {
7211
7583
  "data-slot": "popover-description",
7212
- className: cn42("text-muted-foreground", className),
7584
+ className: cn46("text-muted-foreground", className),
7213
7585
  ...props
7214
7586
  }
7215
7587
  );
@@ -7219,11 +7591,11 @@ function PopoverDescription({
7219
7591
  import { NumberField } from "@base-ui/react/number-field";
7220
7592
  import { Minus, Plus } from "@gravity-ui/icons";
7221
7593
  import * as React13 from "react";
7222
- import { jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
7594
+ import { jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
7223
7595
  var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref) {
7224
7596
  const id = React13.useId();
7225
- return /* @__PURE__ */ jsx44(NumberField.Root, { id, ...props, className: "flex flex-col items-start", children: /* @__PURE__ */ jsxs25(NumberField.Group, { className: "flex h-8 gap-1", children: [
7226
- /* @__PURE__ */ jsx44(
7597
+ return /* @__PURE__ */ jsx50(NumberField.Root, { id, ...props, className: "flex flex-col items-start", children: /* @__PURE__ */ jsxs28(NumberField.Group, { className: "flex h-8 gap-1", children: [
7598
+ /* @__PURE__ */ jsx50(
7227
7599
  NumberField.Decrement,
7228
7600
  {
7229
7601
  className: buttonVariants({
@@ -7231,10 +7603,10 @@ var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref
7231
7603
  size: "icon-sm",
7232
7604
  className: "rounded-full! border-border!"
7233
7605
  }),
7234
- children: /* @__PURE__ */ jsx44(Minus, {})
7606
+ children: /* @__PURE__ */ jsx50(Minus, {})
7235
7607
  }
7236
7608
  ),
7237
- /* @__PURE__ */ jsx44(
7609
+ /* @__PURE__ */ jsx50(
7238
7610
  NumberField.Input,
7239
7611
  {
7240
7612
  ref,
@@ -7242,7 +7614,7 @@ var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref
7242
7614
  "data-no-ring": true
7243
7615
  }
7244
7616
  ),
7245
- /* @__PURE__ */ jsx44(
7617
+ /* @__PURE__ */ jsx50(
7246
7618
  NumberField.Increment,
7247
7619
  {
7248
7620
  className: buttonVariants({
@@ -7250,7 +7622,7 @@ var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref
7250
7622
  size: "icon-sm",
7251
7623
  className: "rounded-full! border-border!"
7252
7624
  }),
7253
- children: /* @__PURE__ */ jsx44(Plus, {})
7625
+ children: /* @__PURE__ */ jsx50(Plus, {})
7254
7626
  }
7255
7627
  )
7256
7628
  ] }) });
@@ -7259,34 +7631,34 @@ var QuantityInput = React13.forwardRef(function QuantityInput2({ ...props }, ref
7259
7631
  // src/ui/radio-group.tsx
7260
7632
  import { Radio as RadioPrimitive } from "@base-ui/react/radio";
7261
7633
  import { RadioGroup as RadioGroupPrimitive } from "@base-ui/react/radio-group";
7262
- import { cn as cn43 } from "cn";
7263
- import { jsx as jsx45 } from "react/jsx-runtime";
7634
+ import { cn as cn47 } from "cn";
7635
+ import { jsx as jsx51 } from "react/jsx-runtime";
7264
7636
  function RadioGroup({ className, ...props }) {
7265
- return /* @__PURE__ */ jsx45(
7637
+ return /* @__PURE__ */ jsx51(
7266
7638
  RadioGroupPrimitive,
7267
7639
  {
7268
7640
  "data-slot": "radio-group",
7269
- className: cn43("grid w-full gap-2", className),
7641
+ className: cn47("grid w-full gap-2", className),
7270
7642
  ...props
7271
7643
  }
7272
7644
  );
7273
7645
  }
7274
7646
  function RadioGroupItem({ className, ...props }) {
7275
- return /* @__PURE__ */ jsx45(
7647
+ return /* @__PURE__ */ jsx51(
7276
7648
  RadioPrimitive.Root,
7277
7649
  {
7278
7650
  "data-slot": "radio-group-item",
7279
- className: cn43(
7651
+ className: cn47(
7280
7652
  "group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",
7281
7653
  className
7282
7654
  ),
7283
7655
  ...props,
7284
- children: /* @__PURE__ */ jsx45(
7656
+ children: /* @__PURE__ */ jsx51(
7285
7657
  RadioPrimitive.Indicator,
7286
7658
  {
7287
7659
  "data-slot": "radio-group-indicator",
7288
7660
  className: "flex size-4 items-center justify-center",
7289
- children: /* @__PURE__ */ jsx45("span", { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground" })
7661
+ children: /* @__PURE__ */ jsx51("span", { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground" })
7290
7662
  }
7291
7663
  )
7292
7664
  }
@@ -7294,18 +7666,18 @@ function RadioGroupItem({ className, ...props }) {
7294
7666
  }
7295
7667
 
7296
7668
  // src/ui/resizable.tsx
7297
- import { cn as cn44 } from "cn";
7669
+ import { cn as cn48 } from "cn";
7298
7670
  import * as ResizablePrimitive from "react-resizable-panels";
7299
- import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
7671
+ import { jsx as jsx52, jsxs as jsxs29 } from "react/jsx-runtime";
7300
7672
  function ResizablePanelGroup({
7301
7673
  className,
7302
7674
  ...props
7303
7675
  }) {
7304
- return /* @__PURE__ */ jsx46(
7676
+ return /* @__PURE__ */ jsx52(
7305
7677
  ResizablePrimitive.Group,
7306
7678
  {
7307
7679
  "data-slot": "resizable-panel-group",
7308
- className: cn44(
7680
+ className: cn48(
7309
7681
  "flex h-full w-full aria-[orientation=vertical]:flex-col",
7310
7682
  className
7311
7683
  ),
@@ -7314,26 +7686,26 @@ function ResizablePanelGroup({
7314
7686
  );
7315
7687
  }
7316
7688
  function ResizablePanel({ ...props }) {
7317
- return /* @__PURE__ */ jsx46(ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
7689
+ return /* @__PURE__ */ jsx52(ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
7318
7690
  }
7319
7691
  function ResizableHandle({
7320
7692
  withHandle,
7321
7693
  className,
7322
7694
  ...props
7323
7695
  }) {
7324
- return /* @__PURE__ */ jsx46(
7696
+ return /* @__PURE__ */ jsx52(
7325
7697
  ResizablePrimitive.Separator,
7326
7698
  {
7327
7699
  "data-slot": "resizable-handle",
7328
- className: cn44(
7700
+ className: cn48(
7329
7701
  "relative mx-0.5 flex w-px items-center justify-center",
7330
7702
  className
7331
7703
  ),
7332
7704
  ...props,
7333
- children: withHandle && /* @__PURE__ */ jsxs26("div", { className: "flex cursor-col-resize flex-col gap-[4px]", children: [
7334
- /* @__PURE__ */ jsx46("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" }),
7335
- /* @__PURE__ */ jsx46("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" }),
7336
- /* @__PURE__ */ jsx46("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" })
7705
+ children: withHandle && /* @__PURE__ */ jsxs29("div", { className: "flex cursor-col-resize flex-col gap-[4px]", children: [
7706
+ /* @__PURE__ */ jsx52("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" }),
7707
+ /* @__PURE__ */ jsx52("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" }),
7708
+ /* @__PURE__ */ jsx52("span", { className: "size-[2px] rounded-full bg-muted-foreground/60" })
7337
7709
  ] })
7338
7710
  }
7339
7711
  );
@@ -7341,26 +7713,26 @@ function ResizableHandle({
7341
7713
 
7342
7714
  // src/ui/select.tsx
7343
7715
  import { Select as SelectPrimitive } from "@base-ui/react/select";
7344
- import { cn as cn45 } from "cn";
7716
+ import { cn as cn49 } from "cn";
7345
7717
  import { Check as Check3, ChevronDown as ChevronDown3, ChevronUp as ChevronUp2 } from "@gravity-ui/icons";
7346
- import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
7718
+ import { jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
7347
7719
  var Select = SelectPrimitive.Root;
7348
7720
  function SelectGroup({ className, ...props }) {
7349
- return /* @__PURE__ */ jsx47(
7721
+ return /* @__PURE__ */ jsx53(
7350
7722
  SelectPrimitive.Group,
7351
7723
  {
7352
7724
  "data-slot": "select-group",
7353
- className: cn45("scroll-my-1 p-1", className),
7725
+ className: cn49("scroll-my-1 p-1", className),
7354
7726
  ...props
7355
7727
  }
7356
7728
  );
7357
7729
  }
7358
7730
  function SelectValue({ className, ...props }) {
7359
- return /* @__PURE__ */ jsx47(
7731
+ return /* @__PURE__ */ jsx53(
7360
7732
  SelectPrimitive.Value,
7361
7733
  {
7362
7734
  "data-slot": "select-value",
7363
- className: cn45("flex flex-1 text-left", className),
7735
+ className: cn49("flex flex-1 text-left", className),
7364
7736
  ...props
7365
7737
  }
7366
7738
  );
@@ -7371,22 +7743,22 @@ function SelectTrigger({
7371
7743
  children,
7372
7744
  ...props
7373
7745
  }) {
7374
- return /* @__PURE__ */ jsxs27(
7746
+ return /* @__PURE__ */ jsxs30(
7375
7747
  SelectPrimitive.Trigger,
7376
7748
  {
7377
7749
  "data-slot": "select-trigger",
7378
7750
  "data-size": size,
7379
- className: cn45(
7751
+ className: cn49(
7380
7752
  "flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-placeholder:text-muted-foreground data-[size=default]:h-8 *:data-[slot=select-value]:line-clamp-1 dark:hover:bg-input/50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
7381
7753
  className
7382
7754
  ),
7383
7755
  ...props,
7384
7756
  children: [
7385
7757
  children,
7386
- /* @__PURE__ */ jsx47(
7758
+ /* @__PURE__ */ jsx53(
7387
7759
  SelectPrimitive.Icon,
7388
7760
  {
7389
- render: /* @__PURE__ */ jsx47(ChevronDown3, { className: "pointer-events-none size-4 text-muted-foreground" })
7761
+ render: /* @__PURE__ */ jsx53(ChevronDown3, { className: "pointer-events-none size-4 text-muted-foreground" })
7390
7762
  }
7391
7763
  )
7392
7764
  ]
@@ -7403,7 +7775,7 @@ function SelectContent({
7403
7775
  alignItemWithTrigger = true,
7404
7776
  ...props
7405
7777
  }) {
7406
- return /* @__PURE__ */ jsx47(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx47(
7778
+ return /* @__PURE__ */ jsx53(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx53(
7407
7779
  SelectPrimitive.Positioner,
7408
7780
  {
7409
7781
  side,
@@ -7412,20 +7784,20 @@ function SelectContent({
7412
7784
  alignOffset,
7413
7785
  alignItemWithTrigger,
7414
7786
  className: "isolate z-50",
7415
- children: /* @__PURE__ */ jsxs27(
7787
+ children: /* @__PURE__ */ jsxs30(
7416
7788
  SelectPrimitive.Popup,
7417
7789
  {
7418
7790
  "data-slot": "select-content",
7419
7791
  "data-align-trigger": alignItemWithTrigger,
7420
- className: cn45(
7792
+ className: cn49(
7421
7793
  "relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-background text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-open:fade-in-0 data-open:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95",
7422
7794
  className
7423
7795
  ),
7424
7796
  ...props,
7425
7797
  children: [
7426
- /* @__PURE__ */ jsx47(SelectScrollUpButton, {}),
7427
- /* @__PURE__ */ jsx47(SelectPrimitive.List, { className: "p-1", children }),
7428
- /* @__PURE__ */ jsx47(SelectScrollDownButton, {})
7798
+ /* @__PURE__ */ jsx53(SelectScrollUpButton, {}),
7799
+ /* @__PURE__ */ jsx53(SelectPrimitive.List, { className: "p-1", children }),
7800
+ /* @__PURE__ */ jsx53(SelectScrollDownButton, {})
7429
7801
  ]
7430
7802
  }
7431
7803
  )
@@ -7436,11 +7808,11 @@ function SelectLabel({
7436
7808
  className,
7437
7809
  ...props
7438
7810
  }) {
7439
- return /* @__PURE__ */ jsx47(
7811
+ return /* @__PURE__ */ jsx53(
7440
7812
  SelectPrimitive.GroupLabel,
7441
7813
  {
7442
7814
  "data-slot": "select-label",
7443
- className: cn45("px-1.5 py-1 text-xs text-muted-foreground", className),
7815
+ className: cn49("px-1.5 py-1 text-xs text-muted-foreground", className),
7444
7816
  ...props
7445
7817
  }
7446
7818
  );
@@ -7450,22 +7822,22 @@ function SelectItem({
7450
7822
  children,
7451
7823
  ...props
7452
7824
  }) {
7453
- return /* @__PURE__ */ jsxs27(
7825
+ return /* @__PURE__ */ jsxs30(
7454
7826
  SelectPrimitive.Item,
7455
7827
  {
7456
7828
  "data-slot": "select-item",
7457
- className: cn45(
7829
+ className: cn49(
7458
7830
  "relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
7459
7831
  className
7460
7832
  ),
7461
7833
  ...props,
7462
7834
  children: [
7463
- /* @__PURE__ */ jsx47(SelectPrimitive.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
7464
- /* @__PURE__ */ jsx47(
7835
+ /* @__PURE__ */ jsx53(SelectPrimitive.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
7836
+ /* @__PURE__ */ jsx53(
7465
7837
  SelectPrimitive.ItemIndicator,
7466
7838
  {
7467
- render: /* @__PURE__ */ jsx47("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
7468
- children: /* @__PURE__ */ jsx47(Check3, { className: "pointer-events-none" })
7839
+ render: /* @__PURE__ */ jsx53("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
7840
+ children: /* @__PURE__ */ jsx53(Check3, { className: "pointer-events-none" })
7469
7841
  }
7470
7842
  )
7471
7843
  ]
@@ -7476,11 +7848,11 @@ function SelectSeparator({
7476
7848
  className,
7477
7849
  ...props
7478
7850
  }) {
7479
- return /* @__PURE__ */ jsx47(
7851
+ return /* @__PURE__ */ jsx53(
7480
7852
  SelectPrimitive.Separator,
7481
7853
  {
7482
7854
  "data-slot": "select-separator",
7483
- className: cn45("pointer-events-none -mx-1 my-1 h-px bg-border", className),
7855
+ className: cn49("pointer-events-none -mx-1 my-1 h-px bg-border", className),
7484
7856
  ...props
7485
7857
  }
7486
7858
  );
@@ -7489,16 +7861,16 @@ function SelectScrollUpButton({
7489
7861
  className,
7490
7862
  ...props
7491
7863
  }) {
7492
- return /* @__PURE__ */ jsx47(
7864
+ return /* @__PURE__ */ jsx53(
7493
7865
  SelectPrimitive.ScrollUpArrow,
7494
7866
  {
7495
7867
  "data-slot": "select-scroll-up-button",
7496
- className: cn45(
7868
+ className: cn49(
7497
7869
  "top-0 z-10 flex w-full cursor-default items-center justify-center bg-background py-1 [&_svg:not([class*='size-'])]:size-4",
7498
7870
  className
7499
7871
  ),
7500
7872
  ...props,
7501
- children: /* @__PURE__ */ jsx47(ChevronUp2, {})
7873
+ children: /* @__PURE__ */ jsx53(ChevronUp2, {})
7502
7874
  }
7503
7875
  );
7504
7876
  }
@@ -7506,213 +7878,28 @@ function SelectScrollDownButton({
7506
7878
  className,
7507
7879
  ...props
7508
7880
  }) {
7509
- return /* @__PURE__ */ jsx47(
7881
+ return /* @__PURE__ */ jsx53(
7510
7882
  SelectPrimitive.ScrollDownArrow,
7511
7883
  {
7512
7884
  "data-slot": "select-scroll-down-button",
7513
- className: cn45(
7885
+ className: cn49(
7514
7886
  "bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-background py-1 [&_svg:not([class*='size-'])]:size-4",
7515
7887
  className
7516
7888
  ),
7517
7889
  ...props,
7518
- children: /* @__PURE__ */ jsx47(ChevronDown3, {})
7519
- }
7520
- );
7521
- }
7522
-
7523
- // src/ui/skeleton.tsx
7524
- import {
7525
- forwardRef as forwardRef5,
7526
- useLayoutEffect as useLayoutEffect2
7527
- } from "react";
7528
- import { cn as cn46 } from "cn";
7529
- import { jsx as jsx48 } from "react/jsx-runtime";
7530
- var componentThemeClassName = "[--ic-background:#ffffff] [--ic-foreground:#111111] [--ic-primary:#111111] [--ic-secondary:#646b75] [--ic-surface-border:#e9edf2] [--ic-border:#e3e7ec] [--ic-card:#ffffff] [--ic-card-foreground:#111111] [--ic-muted:#f5f7fa] [--ic-muted-foreground:#6d7480] [--ic-accent:#f3f5f8] [--color-accent:var(--ic-accent)] [--color-accent-foreground:var(--ic-accent-foreground)] [--ic-accent-foreground:#111111] [--ic-input:#e3e7ec] [--ic-ring:rgba(17,17,17,0.16)] [--ic-destructive:#dc2626] [--ic-paper:#fcfcfd] [--ic-popover-foreground:#111111] [--ic-brand:#0ea5e9] [--ic-brand-soft:#bae6fd] [--ic-shadow-soft:0_18px_38px_-24px_rgba(15,23,42,0.35)] [--ic-chart-1:oklch(0.52_0.19_254)] [--ic-chart-2:oklch(0.74_0.11_232)] [--ic-chart-3:oklch(0.42_0.16_262)] [--ic-chart-4:oklch(0.84_0.07_228)] [--ic-chart-5:oklch(0.62_0.14_240)] [--color-background:var(--ic-background)] [--color-foreground:var(--ic-foreground)] [--color-primary:var(--ic-primary)] [--color-secondary:var(--ic-secondary)] [--color-border:var(--ic-border)] [--color-card:var(--ic-card)] [--color-card-foreground:var(--ic-card-foreground)] [--color-muted:var(--ic-muted)] [--color-muted-foreground:var(--ic-muted-foreground)] [--color-accent:var(--ic-accent)] [--color-accent-foreground:var(--ic-accent-foreground)] [--color-input:var(--ic-input)] [--color-ring:var(--ic-ring)] [--color-destructive:var(--ic-destructive)] [--color-paper:var(--ic-paper)] [--color-popover-foreground:var(--ic-popover-foreground)] [--color-brand:var(--ic-brand)] [--color-brand-soft:var(--ic-brand-soft)] [--color-chart-1:var(--ic-chart-1)] [--color-chart-2:var(--ic-chart-2)] [--color-chart-3:var(--ic-chart-3)] [--color-chart-4:var(--ic-chart-4)] [--color-chart-5:var(--ic-chart-5)] dark:[--ic-background:#111111] dark:[--ic-foreground:#f6f3ec] dark:[--ic-primary:#f6f3ec] dark:[--ic-secondary:#cbc6bb] dark:[--ic-surface-border:#2a2a25] dark:[--ic-border:#2b2a25] dark:[--ic-card:#111111] dark:[--ic-card-foreground:#f6f3ec] dark:[--ic-muted:#171716] dark:[--ic-muted-foreground:#9a958a] dark:[--ic-accent:#1a1a18] [--color-accent:var(--ic-accent)] [--color-accent-foreground:var(--ic-accent-foreground)] dark:[--ic-accent-foreground:#f6f3ec] dark:[--ic-input:#2b2a25] dark:[--ic-ring:rgba(246,243,236,0.18)] dark:[--ic-destructive:#f87171] dark:[--ic-paper:#171716] dark:[--ic-popover-foreground:#f6f3ec] dark:[--ic-brand:#38bdf8] dark:[--ic-brand-soft:#0c4a6e] dark:[--ic-shadow-soft:0_20px_44px_-28px_rgba(0,0,0,0.6)] dark:[--ic-chart-1:oklch(0.68_0.17_250)] dark:[--ic-chart-2:oklch(0.82_0.09_225)] dark:[--ic-chart-3:oklch(0.58_0.15_260)] dark:[--ic-chart-4:oklch(0.75_0.12_235)] dark:[--ic-chart-5:oklch(0.88_0.06_220)]";
7531
- var STYLE_ID = "iconiq-skeleton-styles";
7532
- var SKELETON_CSS = `
7533
- @keyframes iconiq-skeleton-shimmer {
7534
- to {
7535
- transform: translateX(200%);
7536
- }
7537
- }
7538
-
7539
- @keyframes iconiq-skeleton-fade {
7540
- 0%,
7541
- 100% {
7542
- opacity: 1;
7543
- }
7544
-
7545
- 50% {
7546
- opacity: 0.38;
7547
- }
7548
- }
7549
-
7550
- .iconiq-skeleton-surface {
7551
- background-color: #f5f7fa;
7552
- background-color: var(--ic-muted);
7553
- }
7554
-
7555
- .iconiq-skeleton-shimmer {
7556
- background: linear-gradient(
7557
- 90deg,
7558
- transparent 0%,
7559
- rgba(17, 17, 17, 0.06) 50%,
7560
- transparent 100%
7561
- );
7562
- background: linear-gradient(
7563
- 90deg,
7564
- transparent 0%,
7565
- color-mix(in srgb, var(--ic-foreground) 6%, transparent) 50%,
7566
- transparent 100%
7567
- );
7568
- animation: iconiq-skeleton-shimmer var(--iconiq-skeleton-duration, 1.6s)
7569
- ease-in-out infinite;
7570
- }
7571
-
7572
- .iconiq-skeleton-fade-root {
7573
- animation: iconiq-skeleton-fade var(--iconiq-skeleton-duration, 2.4s)
7574
- ease-in-out infinite;
7575
- }
7576
-
7577
- @media (prefers-reduced-motion: reduce) {
7578
- .iconiq-skeleton-shimmer,
7579
- .iconiq-skeleton-fade-root {
7580
- animation: none;
7581
- }
7582
- }
7583
- `;
7584
- var skeletonRoundedClasses = {
7585
- none: "rounded-none",
7586
- sm: "rounded-sm",
7587
- md: "rounded-md",
7588
- lg: "rounded-lg",
7589
- full: "rounded-full"
7590
- };
7591
- var skeletonVariantDefaultDuration = {
7592
- shimmer: 1.6,
7593
- fade: 2.4
7594
- };
7595
- function getSkeletonVariantDuration(variant, duration = 1.6) {
7596
- if (duration !== 1.6) {
7597
- return duration;
7598
- }
7599
- return skeletonVariantDefaultDuration[variant];
7600
- }
7601
- function ensureSkeletonStyles() {
7602
- if (typeof document === "undefined") {
7603
- return;
7604
- }
7605
- let style = document.getElementById(STYLE_ID);
7606
- if (!style) {
7607
- style = document.createElement("style");
7608
- style.id = STYLE_ID;
7609
- document.head.appendChild(style);
7610
- }
7611
- style.textContent = SKELETON_CSS;
7612
- }
7613
- function resolveSkeletonA11yProps({
7614
- animate: animate2 = true,
7615
- decorative = true,
7616
- label
7617
- }) {
7618
- if (decorative || label === null) {
7619
- return { "aria-hidden": true };
7620
- }
7621
- return {
7622
- "aria-label": label ?? (animate2 ? "Loading" : "Placeholder"),
7623
- "aria-live": "polite",
7624
- role: "status"
7625
- };
7626
- }
7627
- var Skeleton = forwardRef5(function Skeleton2({
7628
- animate: animate2 = true,
7629
- className,
7630
- decorative = true,
7631
- duration = 1.6,
7632
- label,
7633
- rounded = "md",
7634
- style,
7635
- variant = "shimmer",
7636
- ...props
7637
- }, ref) {
7638
- const variantDuration = getSkeletonVariantDuration(variant, duration);
7639
- const showShimmer = animate2 && variant === "shimmer";
7640
- const showFade = animate2 && variant === "fade";
7641
- useLayoutEffect2(() => {
7642
- if (animate2) {
7643
- ensureSkeletonStyles();
7644
- }
7645
- }, [animate2]);
7646
- const animatedStyle = showShimmer || showFade ? {
7647
- ...style,
7648
- "--iconiq-skeleton-duration": `${variantDuration}s`
7649
- } : style;
7650
- return /* @__PURE__ */ jsx48(
7651
- "div",
7652
- {
7653
- className: cn46(
7654
- componentThemeClassName,
7655
- "iconiq-skeleton-surface relative block h-4 w-full overflow-hidden",
7656
- showFade && "iconiq-skeleton-fade-root",
7657
- skeletonRoundedClasses[rounded],
7658
- className
7659
- ),
7660
- ref,
7661
- style: animatedStyle,
7662
- ...resolveSkeletonA11yProps({ animate: animate2, decorative, label }),
7663
- ...props,
7664
- children: showShimmer ? /* @__PURE__ */ jsx48(
7665
- "span",
7666
- {
7667
- "aria-hidden": "true",
7668
- className: "iconiq-skeleton-shimmer pointer-events-none absolute inset-0 -translate-x-full"
7669
- }
7670
- ) : null
7671
- }
7672
- );
7673
- });
7674
- Skeleton.displayName = "Skeleton";
7675
- function SkeletonAvatar({
7676
- className,
7677
- ...props
7678
- }) {
7679
- return /* @__PURE__ */ jsx48(
7680
- Skeleton,
7681
- {
7682
- className: cn46("size-10", className),
7683
- decorative: true,
7684
- rounded: "full",
7685
- ...props
7686
- }
7687
- );
7688
- }
7689
- function SkeletonText({ className, ...props }) {
7690
- return /* @__PURE__ */ jsx48(Skeleton, { className: cn46("h-3", className), decorative: true, ...props });
7691
- }
7692
- function SkeletonButton({
7693
- className,
7694
- ...props
7695
- }) {
7696
- return /* @__PURE__ */ jsx48(
7697
- Skeleton,
7698
- {
7699
- className: cn46("h-9 w-24", className),
7700
- decorative: true,
7701
- rounded: "lg",
7702
- ...props
7890
+ children: /* @__PURE__ */ jsx53(ChevronDown3, {})
7703
7891
  }
7704
7892
  );
7705
7893
  }
7706
- var ShimmerSkeleton = Skeleton;
7707
7894
 
7708
7895
  // src/ui/sonner.tsx
7709
7896
  import { GooeyToaster } from "goey-toast";
7710
7897
  import { useTheme as useTheme2 } from "next-themes";
7711
- import { jsx as jsx49 } from "react/jsx-runtime";
7898
+ import { jsx as jsx54 } from "react/jsx-runtime";
7712
7899
  var Toaster = ({ closeButton = "top-left", ...props }) => {
7713
7900
  const { theme = "system" } = useTheme2();
7714
7901
  const toasterTheme = theme === "dark" ? "dark" : "light";
7715
- return /* @__PURE__ */ jsx49(
7902
+ return /* @__PURE__ */ jsx54(
7716
7903
  GooeyToaster,
7717
7904
  {
7718
7905
  theme: toasterTheme,
@@ -7754,7 +7941,6 @@ import {
7754
7941
  import { CSS } from "@dnd-kit/utilities";
7755
7942
  import * as React16 from "react";
7756
7943
  import * as ReactDOM from "react-dom";
7757
- import { cn as cn47 } from "cn";
7758
7944
 
7759
7945
  // src/hooks/use-isomorphic-layout-effect.ts
7760
7946
  import * as React14 from "react";
@@ -7799,7 +7985,8 @@ function useComposedRefs(...refs) {
7799
7985
  }
7800
7986
 
7801
7987
  // src/ui/sortable.tsx
7802
- import { jsx as jsx50 } from "react/jsx-runtime";
7988
+ import { cn as cn50 } from "cn";
7989
+ import { jsx as jsx55 } from "react/jsx-runtime";
7803
7990
  var orientationConfig = {
7804
7991
  vertical: {
7805
7992
  modifiers: [restrictToVerticalAxis, restrictToParentElement],
@@ -7984,11 +8171,11 @@ function Sortable(props) {
7984
8171
  flatCursor
7985
8172
  ]
7986
8173
  );
7987
- return /* @__PURE__ */ jsx50(
8174
+ return /* @__PURE__ */ jsx55(
7988
8175
  SortableRootContext.Provider,
7989
8176
  {
7990
8177
  value: contextValue,
7991
- children: /* @__PURE__ */ jsx50(
8178
+ children: /* @__PURE__ */ jsx55(
7992
8179
  DndContext,
7993
8180
  {
7994
8181
  collisionDetection: collisionDetection ?? config.collisionDetection,
@@ -8037,7 +8224,7 @@ function SortableContent(props) {
8037
8224
  },
8038
8225
  enabled: !withoutSlot
8039
8226
  });
8040
- return /* @__PURE__ */ jsx50(SortableContentContext.Provider, { value: true, children: /* @__PURE__ */ jsx50(
8227
+ return /* @__PURE__ */ jsx55(SortableContentContext.Provider, { value: true, children: /* @__PURE__ */ jsx55(
8041
8228
  SortableContext,
8042
8229
  {
8043
8230
  items: context.items,
@@ -8121,7 +8308,7 @@ function SortableItem(props) {
8121
8308
  id,
8122
8309
  ref: composedRef,
8123
8310
  style: composedStyle,
8124
- className: cn47(
8311
+ className: cn50(
8125
8312
  "focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:outline-hidden",
8126
8313
  {
8127
8314
  "touch-none select-none": asHandle,
@@ -8144,7 +8331,7 @@ function SortableItem(props) {
8144
8331
  ...isDragging && { dragging: "" }
8145
8332
  }
8146
8333
  });
8147
- return /* @__PURE__ */ jsx50(SortableItemContext.Provider, { value: itemContext, children: element });
8334
+ return /* @__PURE__ */ jsx55(SortableItemContext.Provider, { value: itemContext, children: element });
8148
8335
  }
8149
8336
  function SortableItemHandle(props) {
8150
8337
  const { disabled, className, render, ref, ...itemHandleProps } = props;
@@ -8169,7 +8356,7 @@ function SortableItemHandle(props) {
8169
8356
  "aria-controls": itemContext.id,
8170
8357
  ref: composedRef,
8171
8358
  disabled: isDisabled,
8172
- className: cn47(
8359
+ className: cn50(
8173
8360
  "select-none disabled:pointer-events-none disabled:opacity-50",
8174
8361
  context.flatCursor ? "cursor-default" : "cursor-grab data-dragging:cursor-grabbing",
8175
8362
  className
@@ -8204,40 +8391,77 @@ function SortableOverlay(props) {
8204
8391
  const container = containerProp ?? (mounted ? globalThis.document?.body : null);
8205
8392
  if (!container) return null;
8206
8393
  return ReactDOM.createPortal(
8207
- /* @__PURE__ */ jsx50(
8394
+ /* @__PURE__ */ jsx55(
8208
8395
  DragOverlay,
8209
8396
  {
8210
8397
  dropAnimation,
8211
8398
  modifiers: context.modifiers,
8212
- className: cn47(!context.flatCursor && "cursor-grabbing"),
8399
+ className: cn50(!context.flatCursor && "cursor-grabbing"),
8213
8400
  ...overlayProps,
8214
- children: /* @__PURE__ */ jsx50(SortableOverlayContext.Provider, { value: true, children: context.activeId ? typeof children === "function" ? children({ value: context.activeId }) : children : null })
8401
+ children: /* @__PURE__ */ jsx55(SortableOverlayContext.Provider, { value: true, children: context.activeId ? typeof children === "function" ? children({ value: context.activeId }) : children : null })
8215
8402
  }
8216
8403
  ),
8217
8404
  container
8218
8405
  );
8219
8406
  }
8220
8407
 
8408
+ // src/ui/swipe-actions.tsx
8409
+ import * as SwipeActionsPrimitive from "@ncdai/react-swipe-actions";
8410
+ import { cn as cn51 } from "cn";
8411
+ import { jsx as jsx56 } from "react/jsx-runtime";
8412
+ var SwipeRoot2 = SwipeActionsPrimitive.SwipeRoot;
8413
+ var SwipeItem2 = SwipeActionsPrimitive.SwipeItem;
8414
+ var SwipeActions2 = SwipeActionsPrimitive.SwipeActions;
8415
+ function SwipeAction2({
8416
+ className,
8417
+ children,
8418
+ ...props
8419
+ }) {
8420
+ return /* @__PURE__ */ jsx56(
8421
+ SwipeActionsPrimitive.SwipeAction,
8422
+ {
8423
+ className: cn51(
8424
+ "bg-secondary text-xs font-medium whitespace-nowrap text-secondary-foreground select-none focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-foreground data-armed:brightness-90 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
8425
+ className
8426
+ ),
8427
+ ...props,
8428
+ children: /* @__PURE__ */ jsx56(SwipeActionsPrimitive.SwipeActionContent, { className: "min-w-20 flex-col items-center justify-center gap-1.5 px-4", children })
8429
+ }
8430
+ );
8431
+ }
8432
+ function SwipeContent2({
8433
+ className,
8434
+ ...props
8435
+ }) {
8436
+ return /* @__PURE__ */ jsx56(
8437
+ SwipeActionsPrimitive.SwipeContent,
8438
+ {
8439
+ className: cn51("data-dragging:cursor-grabbing", className),
8440
+ ...props
8441
+ }
8442
+ );
8443
+ }
8444
+
8221
8445
  // src/ui/switch.tsx
8222
8446
  import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
8223
- import { cn as cn48 } from "cn";
8224
- import { jsx as jsx51 } from "react/jsx-runtime";
8447
+ import { cn as cn52 } from "cn";
8448
+ import { jsx as jsx57 } from "react/jsx-runtime";
8225
8449
  function Switch({
8226
8450
  className,
8227
8451
  size = "default",
8228
8452
  ...props
8229
8453
  }) {
8230
- return /* @__PURE__ */ jsx51(
8454
+ return /* @__PURE__ */ jsx57(
8231
8455
  SwitchPrimitive.Root,
8232
8456
  {
8233
8457
  "data-slot": "switch",
8234
8458
  "data-size": size,
8235
- className: cn48(
8459
+ className: cn52(
8236
8460
  "peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-[background-color,border-color,box-shadow,opacity] duration-150 ease-out outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 motion-reduce:transition-none dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50",
8237
8461
  className
8238
8462
  ),
8239
8463
  ...props,
8240
- children: /* @__PURE__ */ jsx51(
8464
+ children: /* @__PURE__ */ jsx57(
8241
8465
  SwitchPrimitive.Thumb,
8242
8466
  {
8243
8467
  "data-slot": "switch-thumb",
@@ -8249,11 +8473,11 @@ function Switch({
8249
8473
  }
8250
8474
 
8251
8475
  // src/ui/theme-toggle.tsx
8252
- import { cn as cn49 } from "cn";
8476
+ import { cn as cn53 } from "cn";
8253
8477
  import { motion as motion8, useReducedMotion as useReducedMotion3 } from "motion/react";
8254
8478
  import { useTheme as useTheme3 } from "next-themes";
8255
8479
  import { useId as useId7 } from "react";
8256
- import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
8480
+ import { jsx as jsx58, jsxs as jsxs31 } from "react/jsx-runtime";
8257
8481
  var MORPH = { type: "spring", visualDuration: 0.4, bounce: 0 };
8258
8482
  var RAY_STAGGER = 0.018;
8259
8483
  var EASE_OUT3 = [0.23, 1, 0.32, 1];
@@ -8284,14 +8508,14 @@ function ThemeToggle({
8284
8508
  const activeVariant = variant ?? "ghost";
8285
8509
  const maskId = `moon-${useId7().replace(/[^\w-]/g, "")}`;
8286
8510
  const morph = reduceMotion ? { duration: 0 } : MORPH;
8287
- return /* @__PURE__ */ jsx52(
8511
+ return /* @__PURE__ */ jsx58(
8288
8512
  "button",
8289
8513
  {
8290
8514
  type: "button",
8291
8515
  "aria-label": "Toggle theme",
8292
8516
  "aria-pressed": dark,
8293
8517
  onClick: () => setTheme(dark ? "light" : "dark"),
8294
- className: cn49(
8518
+ className: cn53(
8295
8519
  buttonVariants({ variant: activeVariant }),
8296
8520
  "shadow-raised relative touch-manipulation rounded-full outline-hidden select-none",
8297
8521
  "transition-[scale,background-color] duration-150 ease-out active:scale-[0.96] motion-reduce:transition-[background-color]",
@@ -8302,7 +8526,7 @@ function ThemeToggle({
8302
8526
  size === "lg" && "size-9",
8303
8527
  className
8304
8528
  ),
8305
- children: /* @__PURE__ */ jsxs28(
8529
+ children: /* @__PURE__ */ jsxs31(
8306
8530
  motion8.svg,
8307
8531
  {
8308
8532
  "aria-hidden": true,
@@ -8312,7 +8536,7 @@ function ThemeToggle({
8312
8536
  animate: { rotate: dark ? MOON_TILT : 0 },
8313
8537
  transition: morph,
8314
8538
  children: [
8315
- /* @__PURE__ */ jsx52("defs", { children: /* @__PURE__ */ jsxs28(
8539
+ /* @__PURE__ */ jsx58("defs", { children: /* @__PURE__ */ jsxs31(
8316
8540
  "mask",
8317
8541
  {
8318
8542
  id: maskId,
@@ -8322,8 +8546,8 @@ function ThemeToggle({
8322
8546
  width: "24",
8323
8547
  height: "24",
8324
8548
  children: [
8325
- /* @__PURE__ */ jsx52("rect", { width: "24", height: "24", fill: "white" }),
8326
- /* @__PURE__ */ jsx52(
8549
+ /* @__PURE__ */ jsx58("rect", { width: "24", height: "24", fill: "white" }),
8550
+ /* @__PURE__ */ jsx58(
8327
8551
  motion8.circle,
8328
8552
  {
8329
8553
  r: BITE_R,
@@ -8336,7 +8560,7 @@ function ThemeToggle({
8336
8560
  ]
8337
8561
  }
8338
8562
  ) }),
8339
- /* @__PURE__ */ jsx52(
8563
+ /* @__PURE__ */ jsx58(
8340
8564
  motion8.circle,
8341
8565
  {
8342
8566
  cx: "12",
@@ -8348,10 +8572,10 @@ function ThemeToggle({
8348
8572
  transition: morph
8349
8573
  }
8350
8574
  ),
8351
- /* @__PURE__ */ jsx52("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", children: RAYS.map((ray, i) => {
8575
+ /* @__PURE__ */ jsx58("g", { stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", children: RAYS.map((ray, i) => {
8352
8576
  const { inner, outer } = dark ? RAY_IN : RAY_OUT;
8353
8577
  const delay = reduceMotion ? 0 : dark ? i * RAY_STAGGER : 0.06 + (RAYS.length - 1 - i) * RAY_STAGGER;
8354
- return /* @__PURE__ */ jsx52(
8578
+ return /* @__PURE__ */ jsx58(
8355
8579
  motion8.line,
8356
8580
  {
8357
8581
  initial: false,
@@ -8485,6 +8709,17 @@ export {
8485
8709
  DEFAULT_I18N,
8486
8710
  DEFAULT_OPERATORS,
8487
8711
  DashedSeparator,
8712
+ DataTable,
8713
+ DataTableBody,
8714
+ DataTableCell,
8715
+ DataTableEmptyBody,
8716
+ DataTableHeader,
8717
+ DataTablePagination,
8718
+ DataTableRoot,
8719
+ DataTableRow,
8720
+ DataTableSearchFilter,
8721
+ DataTableSkeleton,
8722
+ DataTableToolbarSection,
8488
8723
  Dialog,
8489
8724
  DialogClose,
8490
8725
  DialogContent,
@@ -8637,6 +8872,11 @@ export {
8637
8872
  SortableItem,
8638
8873
  SortableItemHandle,
8639
8874
  SortableOverlay,
8875
+ SwipeAction2 as SwipeAction,
8876
+ SwipeActions2 as SwipeActions,
8877
+ SwipeContent2 as SwipeContent,
8878
+ SwipeItem2 as SwipeItem,
8879
+ SwipeRoot2 as SwipeRoot,
8640
8880
  Switch,
8641
8881
  Textarea,
8642
8882
  ThemeToggle,
@@ -8675,6 +8915,10 @@ export {
8675
8915
  useCarousel,
8676
8916
  useComboboxAnchor,
8677
8917
  useCommandState,
8918
+ useDataTable,
8919
+ useDataTablePagination,
8920
+ useDataTableRows,
8921
+ useDataTableSearch,
8678
8922
  useJellyMood,
8679
8923
  useMessageScroller,
8680
8924
  useMessageScrollerScrollable,