@krak-stack/registry 0.11.3 → 0.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +23 -9
  3. package/dist/components/agent/react.js +226 -1072
  4. package/dist/components/app-switcher/html.js +10 -53
  5. package/dist/components/app-switcher/react.js +29 -139
  6. package/dist/components/async-action-button/html.js +3 -34
  7. package/dist/components/async-action-button/react.d.ts +1 -1
  8. package/dist/components/async-action-button/react.js +8 -54
  9. package/dist/components/audit-log-table/react.js +555 -1265
  10. package/dist/components/bulk-list-input/html.js +3 -40
  11. package/dist/components/bulk-list-input/react.d.ts +1 -1
  12. package/dist/components/bulk-list-input/react.js +6 -59
  13. package/dist/components/code-block/html.js +1 -35
  14. package/dist/components/code-block/react.js +12 -59
  15. package/dist/components/color-input/html.js +2 -19
  16. package/dist/components/color-input/react.js +6 -97
  17. package/dist/components/copy-button/html.js +1 -35
  18. package/dist/components/copy-button/react.d.ts +1 -1
  19. package/dist/components/copy-button/react.js +7 -54
  20. package/dist/components/copy-value/html.js +11 -52
  21. package/dist/components/copy-value/react.js +25 -165
  22. package/dist/components/cron-input/html.js +2 -18
  23. package/dist/components/cron-input/react.js +15 -30
  24. package/dist/components/danger-confirmation/html.js +11 -57
  25. package/dist/components/danger-confirmation/react.js +26 -187
  26. package/dist/components/data-table/html.d.ts +12 -12
  27. package/dist/components/data-table/html.js +200 -174
  28. package/dist/components/data-table/react.js +549 -1259
  29. package/dist/components/date-input/html.js +19 -74
  30. package/dist/components/date-input/react.d.ts +1 -1
  31. package/dist/components/date-input/react.js +28 -313
  32. package/dist/components/docs/classes.d.ts +15 -0
  33. package/dist/components/docs/html.d.ts +55 -0
  34. package/dist/components/docs/html.js +837 -0
  35. package/dist/components/docs/index.d.ts +49 -0
  36. package/dist/components/docs/react.d.ts +10 -0
  37. package/dist/components/docs/react.js +949 -0
  38. package/dist/components/docs/schema.d.ts +49 -0
  39. package/dist/components/editable-text/html.js +6 -52
  40. package/dist/components/editable-text/react.js +13 -83
  41. package/dist/components/editing-locale-switcher/html.d.ts +2 -2
  42. package/dist/components/editing-locale-switcher/html.js +13 -43
  43. package/dist/components/editing-locale-switcher/react.js +17 -141
  44. package/dist/components/effect-form/react.js +249 -812
  45. package/dist/components/email-composer/react.js +62 -279
  46. package/dist/components/email-editor/html.js +13 -58
  47. package/dist/components/email-editor/react.js +187 -483
  48. package/dist/components/error-component/html.js +2 -47
  49. package/dist/components/error-component/react.js +33 -137
  50. package/dist/components/file-input/html.js +9 -40
  51. package/dist/components/file-input/react.js +39 -208
  52. package/dist/components/form/react.js +212 -777
  53. package/dist/components/hint/react.d.ts +15 -0
  54. package/dist/components/hint/react.js +133 -0
  55. package/dist/components/icon-input/html.js +9 -56
  56. package/dist/components/icon-input/react.js +43 -143
  57. package/dist/components/image-crop-editor/html.js +1 -35
  58. package/dist/components/image-crop-editor/react.js +21 -66
  59. package/dist/components/locale-switcher/html.js +8 -55
  60. package/dist/components/locale-switcher/react.js +21 -146
  61. package/dist/components/map-menu/html.d.ts +8 -8
  62. package/dist/components/map-menu/html.js +13 -72
  63. package/dist/components/map-menu/react.js +92 -309
  64. package/dist/components/markdown/html.js +1 -35
  65. package/dist/components/markdown/react.js +20 -64
  66. package/dist/components/notification-menu/html.js +14 -50
  67. package/dist/components/notification-menu/react.js +73 -343
  68. package/dist/components/pagination/html.js +17 -73
  69. package/dist/components/pagination/react.js +37 -200
  70. package/dist/components/phone-number-input/html.js +19 -57
  71. package/dist/components/phone-number-input/react.d.ts +1 -1
  72. package/dist/components/phone-number-input/react.js +43 -142
  73. package/dist/components/presence-transition/index.d.ts +2 -2
  74. package/dist/components/registry-previews/component-example.js +26 -126
  75. package/dist/components/rich-text-editor/html.d.ts +12 -12
  76. package/dist/components/rich-text-editor/html.js +12 -85
  77. package/dist/components/rich-text-editor/react.js +55 -272
  78. package/dist/components/search-menu/classes.d.ts +2 -0
  79. package/dist/components/search-menu/html.d.ts +2 -0
  80. package/dist/components/search-menu/html.js +40 -73
  81. package/dist/components/search-menu/index.d.ts +27 -2
  82. package/dist/components/search-menu/react.d.ts +1 -1
  83. package/dist/components/search-menu/react.js +59 -280
  84. package/dist/components/search-menu/schema.d.ts +1 -0
  85. package/dist/components/select-with-custom-input/html.d.ts +2 -2
  86. package/dist/components/select-with-custom-input/html.js +13 -48
  87. package/dist/components/select-with-custom-input/react.js +22 -146
  88. package/dist/components/sidebar-layout/html.d.ts +16 -6
  89. package/dist/components/sidebar-layout/html.js +83 -69
  90. package/dist/components/sidebar-layout/index.d.ts +16 -0
  91. package/dist/components/sidebar-layout/react.js +105 -698
  92. package/dist/components/stats-card/react.js +13 -58
  93. package/dist/components/support/html.js +14 -69
  94. package/dist/components/support/react.js +74 -320
  95. package/dist/components/theme-switcher/html.js +11 -55
  96. package/dist/components/theme-switcher/react.js +28 -152
  97. package/dist/components/time-input/html.d.ts +2 -2
  98. package/dist/components/time-input/html.js +8 -53
  99. package/dist/components/time-input/react.js +34 -188
  100. package/dist/components/timezone-input/html.js +11 -67
  101. package/dist/components/timezone-input/react.js +41 -143
  102. package/dist/components/toast/html.d.ts +6 -6
  103. package/dist/components/toast/html.js +13 -46
  104. package/dist/components/tracking-notice/react.js +39 -188
  105. package/dist/components/unsaved-changes-guard/html.js +9 -43
  106. package/dist/components/unsaved-changes-guard/react.js +19 -169
  107. package/dist/components/upload-attachment/html.d.ts +4 -4
  108. package/dist/components/upload-attachment/html.js +4 -35
  109. package/dist/components/upload-attachment/react.js +25 -164
  110. package/dist/components/virtualized-combobox/html.js +10 -35
  111. package/dist/components/virtualized-combobox/react.js +28 -129
  112. package/dist/components/webhook-delivery-table/html.js +211 -184
  113. package/dist/components/webhook-delivery-table/react.js +585 -1362
  114. package/dist/lib/docs.integrations.server.js +150 -202
  115. package/dist/lib/docs.js +305 -1085
  116. package/dist/lib/docs.server.js +134 -186
  117. package/dist/lib/documentation-toolkit.js +144 -196
  118. package/dist/services/agent/client/index.js +226 -1072
  119. package/dist/services/notification/client/index.js +73 -343
  120. package/dist/services/notification/public.js +73 -343
  121. package/package.json +4 -8
  122. package/dist/components/effectcn/alert-dialog.d.ts +0 -13
  123. package/dist/components/effectcn/button.d.ts +0 -31
  124. package/dist/components/effectcn/calendar.d.ts +0 -12
  125. package/dist/components/effectcn/checkbox.d.ts +0 -10
  126. package/dist/components/effectcn/combobox.d.ts +0 -25
  127. package/dist/components/effectcn/dialog.d.ts +0 -19
  128. package/dist/components/effectcn/field.d.ts +0 -11
  129. package/dist/components/effectcn/file-drop.d.ts +0 -8
  130. package/dist/components/effectcn/input.d.ts +0 -26
  131. package/dist/components/effectcn/menu.d.ts +0 -85
  132. package/dist/components/effectcn/menubar.d.ts +0 -8
  133. package/dist/components/effectcn/popover.d.ts +0 -18
  134. package/dist/components/effectcn/scroll-area.d.ts +0 -12
  135. package/dist/components/effectcn/select.d.ts +0 -68
  136. package/dist/components/effectcn/toast.d.ts +0 -29
  137. package/dist/components/ui/alert-dialog.d.ts +0 -18
  138. package/dist/components/ui/alert.d.ts +0 -10
  139. package/dist/components/ui/attachment.d.ts +0 -23
  140. package/dist/components/ui/badge.d.ts +0 -7
  141. package/dist/components/ui/bubble.d.ts +0 -16
  142. package/dist/components/ui/button.d.ts +0 -8
  143. package/dist/components/ui/calendar.d.ts +0 -10
  144. package/dist/components/ui/card.d.ts +0 -11
  145. package/dist/components/ui/checkbox.d.ts +0 -3
  146. package/dist/components/ui/collapsible.d.ts +0 -5
  147. package/dist/components/ui/command.d.ts +0 -18
  148. package/dist/components/ui/dialog.d.ts +0 -17
  149. package/dist/components/ui/dropdown-menu.d.ts +0 -29
  150. package/dist/components/ui/empty.d.ts +0 -11
  151. package/dist/components/ui/field.d.ts +0 -24
  152. package/dist/components/ui/input-group.d.ts +0 -17
  153. package/dist/components/ui/input.d.ts +0 -3
  154. package/dist/components/ui/item.d.ts +0 -22
  155. package/dist/components/ui/label.d.ts +0 -3
  156. package/dist/components/ui/menubar.d.ts +0 -29
  157. package/dist/components/ui/message-scroller.d.ts +0 -10
  158. package/dist/components/ui/message.d.ts +0 -10
  159. package/dist/components/ui/popover.d.ts +0 -9
  160. package/dist/components/ui/scroll-area.d.ts +0 -4
  161. package/dist/components/ui/select.d.ts +0 -15
  162. package/dist/components/ui/select.js +0 -159
  163. package/dist/components/ui/separator.d.ts +0 -3
  164. package/dist/components/ui/sheet.d.ts +0 -14
  165. package/dist/components/ui/sidebar.d.ts +0 -63
  166. package/dist/components/ui/skeleton.d.ts +0 -2
  167. package/dist/components/ui/table.d.ts +0 -10
  168. package/dist/components/ui/tabs.d.ts +0 -10
  169. package/dist/components/ui/textarea.d.ts +0 -3
  170. package/dist/components/ui/tooltip.d.ts +0 -6
  171. package/dist/components/ui/trace.d.ts +0 -18
  172. package/dist/lib/effectcn-form.d.ts +0 -3
  173. package/dist/lib/effectcn-form.js +0 -54
@@ -1,5 +1,5 @@
1
1
  // ../../src/components/data-table/react.tsx
2
- import { ScrollArea as ScrollAreaPrimitive2 } from "@base-ui/react/scroll-area";
2
+ import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area";
3
3
  import { useVirtualizer, useWindowVirtualizer } from "@tanstack/react-virtual";
4
4
  import { Formatter, Option as Option4, Schema as Schema6 } from "effect";
5
5
  import { Component as Component3, View } from "effect/ui";
@@ -34,479 +34,46 @@ import {
34
34
  useEffect,
35
35
  useId as useId2,
36
36
  useLayoutEffect,
37
- useMemo as useMemo2,
37
+ useMemo,
38
38
  useRef,
39
39
  useState,
40
40
  useSyncExternalStore
41
41
  } from "react";
42
42
  import { createPortal } from "react-dom";
43
-
44
- // ../../src/components/ui/badge.tsx
45
- import { mergeProps } from "@base-ui/react/merge-props";
46
- import { useRender } from "@base-ui/react/use-render";
47
- import { cva } from "class-variance-authority";
48
-
49
- // ../../src/lib/utils.ts
50
- import { cn } from "cn";
51
-
52
- // ../../src/components/ui/badge.tsx
53
- var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
54
- variants: {
55
- variant: {
56
- default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
57
- secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
58
- destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
59
- outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
60
- ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
61
- link: "text-primary underline-offset-4 hover:underline"
62
- }
63
- },
64
- defaultVariants: {
65
- variant: "default"
66
- }
67
- });
68
- function Badge({
69
- className,
70
- variant = "default",
71
- render,
72
- ...props
73
- }) {
74
- return useRender({
75
- defaultTagName: "span",
76
- props: mergeProps({
77
- className: cn(badgeVariants({ variant }), className)
78
- }, props),
79
- render,
80
- state: {
81
- slot: "badge",
82
- variant
83
- }
84
- });
85
- }
86
-
87
- // ../../src/components/ui/button.tsx
88
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
89
- import { cva as cva2 } from "class-variance-authority";
90
- import { jsx } from "react/jsx-runtime";
91
- var buttonVariants = cva2("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
92
- variants: {
93
- variant: {
94
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
95
- outline: "border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
96
- secondary: "bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
97
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
98
- destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
99
- link: "text-primary underline-offset-4 hover:underline"
100
- },
101
- size: {
102
- default: "h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
103
- xs: "h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
104
- sm: "h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
105
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
106
- icon: "size-9",
107
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
108
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
109
- "icon-lg": "size-10"
110
- }
111
- },
112
- defaultVariants: {
113
- variant: "default",
114
- size: "default"
115
- }
116
- });
117
- function Button({
118
- className,
119
- variant = "default",
120
- size = "default",
121
- ...props
122
- }) {
123
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
124
- "data-slot": "button",
125
- className: cn(buttonVariants({ variant, size, className })),
126
- ...props
127
- });
128
- }
129
-
130
- // ../../src/components/ui/card.tsx
131
- import { jsx as jsx2 } from "react/jsx-runtime";
132
- function Card({
133
- className,
134
- size = "default",
135
- ...props
136
- }) {
137
- return /* @__PURE__ */ jsx2("div", {
138
- "data-slot": "card",
139
- "data-size": size,
140
- className: cn("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground shadow-xs ring-1 ring-foreground/10 [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl", className),
141
- ...props
142
- });
143
- }
144
- function CardHeader({ className, ...props }) {
145
- return /* @__PURE__ */ jsx2("div", {
146
- "data-slot": "card-header",
147
- className: cn("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)", className),
148
- ...props
149
- });
150
- }
151
- function CardTitle({ className, ...props }) {
152
- return /* @__PURE__ */ jsx2("div", {
153
- "data-slot": "card-title",
154
- className: cn("text-base leading-normal font-medium group-data-[size=sm]/card:text-sm", className),
155
- ...props
156
- });
157
- }
158
-
159
- // ../../src/components/ui/checkbox.tsx
160
- import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
161
- import { CheckIcon } from "lucide-react";
162
- import { jsx as jsx3 } from "react/jsx-runtime";
163
- "use client";
164
- function Checkbox({ className, ...props }) {
165
- return /* @__PURE__ */ jsx3(CheckboxPrimitive.Root, {
166
- "data-slot": "checkbox",
167
- className: cn("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input shadow-xs transition-shadow outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 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", className),
168
- ...props,
169
- children: /* @__PURE__ */ jsx3(CheckboxPrimitive.Indicator, {
170
- "data-slot": "checkbox-indicator",
171
- className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
172
- children: /* @__PURE__ */ jsx3(CheckIcon, {})
173
- })
174
- });
175
- }
176
-
177
- // ../../src/components/ui/dropdown-menu.tsx
178
- import { Menu as MenuPrimitive } from "@base-ui/react/menu";
179
- import { ChevronRightIcon, CheckIcon as CheckIcon2 } from "lucide-react";
180
- import { jsx as jsx4, jsxs } from "react/jsx-runtime";
181
- function DropdownMenu({ ...props }) {
182
- return /* @__PURE__ */ jsx4(MenuPrimitive.Root, {
183
- "data-slot": "dropdown-menu",
184
- ...props
185
- });
186
- }
187
- function DropdownMenuTrigger({ ...props }) {
188
- return /* @__PURE__ */ jsx4(MenuPrimitive.Trigger, {
189
- "data-slot": "dropdown-menu-trigger",
190
- ...props
191
- });
192
- }
193
- function DropdownMenuContent({
194
- align = "start",
195
- alignOffset = 0,
196
- side = "bottom",
197
- sideOffset = 4,
198
- className,
199
- ...props
200
- }) {
201
- return /* @__PURE__ */ jsx4(MenuPrimitive.Portal, {
202
- children: /* @__PURE__ */ jsx4(MenuPrimitive.Positioner, {
203
- className: "isolate z-50 outline-none",
204
- align,
205
- alignOffset,
206
- side,
207
- sideOffset,
208
- children: /* @__PURE__ */ jsx4(MenuPrimitive.Popup, {
209
- "data-slot": "dropdown-menu-content",
210
- className: cn("z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover 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", className),
211
- ...props
212
- })
213
- })
214
- });
215
- }
216
- function DropdownMenuGroup({ ...props }) {
217
- return /* @__PURE__ */ jsx4(MenuPrimitive.Group, {
218
- "data-slot": "dropdown-menu-group",
219
- ...props
220
- });
221
- }
222
- function DropdownMenuLabel({
223
- className,
224
- inset,
225
- ...props
226
- }) {
227
- return /* @__PURE__ */ jsx4(MenuPrimitive.GroupLabel, {
228
- "data-slot": "dropdown-menu-label",
229
- "data-inset": inset,
230
- className: cn("px-2 py-1.5 text-xs font-medium text-muted-foreground data-inset:pl-8", className),
231
- ...props
232
- });
233
- }
234
- function DropdownMenuItem({
235
- className,
236
- inset,
237
- variant = "default",
238
- ...props
239
- }) {
240
- return /* @__PURE__ */ jsx4(MenuPrimitive.Item, {
241
- "data-slot": "dropdown-menu-item",
242
- "data-inset": inset,
243
- "data-variant": variant,
244
- className: cn("group/dropdown-menu-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 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", className),
245
- ...props
246
- });
247
- }
248
- function DropdownMenuSub({ ...props }) {
249
- return /* @__PURE__ */ jsx4(MenuPrimitive.SubmenuRoot, {
250
- "data-slot": "dropdown-menu-sub",
251
- ...props
252
- });
253
- }
254
- function DropdownMenuSubTrigger({
255
- className,
256
- inset,
257
- children,
258
- ...props
259
- }) {
260
- return /* @__PURE__ */ jsxs(MenuPrimitive.SubmenuTrigger, {
261
- "data-slot": "dropdown-menu-sub-trigger",
262
- "data-inset": inset,
263
- className: cn("flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 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", className),
264
- ...props,
265
- children: [
266
- children,
267
- /* @__PURE__ */ jsx4(ChevronRightIcon, {
268
- className: "ml-auto"
269
- })
270
- ]
271
- });
272
- }
273
- function DropdownMenuSubContent({
274
- align = "start",
275
- alignOffset = -3,
276
- side = "right",
277
- sideOffset = 0,
278
- className,
279
- ...props
280
- }) {
281
- return /* @__PURE__ */ jsx4(DropdownMenuContent, {
282
- "data-slot": "dropdown-menu-sub-content",
283
- className: cn("w-auto min-w-[96px] rounded-md bg-popover 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", className),
284
- align,
285
- alignOffset,
286
- side,
287
- sideOffset,
288
- ...props
289
- });
290
- }
291
- function DropdownMenuRadioGroup({ ...props }) {
292
- return /* @__PURE__ */ jsx4(MenuPrimitive.RadioGroup, {
293
- "data-slot": "dropdown-menu-radio-group",
294
- ...props
295
- });
296
- }
297
- function DropdownMenuSeparator({
298
- className,
299
- ...props
300
- }) {
301
- return /* @__PURE__ */ jsx4(MenuPrimitive.Separator, {
302
- "data-slot": "dropdown-menu-separator",
303
- className: cn("-mx-1 my-1 h-px bg-border", className),
304
- ...props
305
- });
306
- }
307
-
308
- // ../../src/components/ui/input.tsx
309
- import { Input as InputPrimitive } from "@base-ui/react/input";
310
- import { jsx as jsx5 } from "react/jsx-runtime";
311
- function Input({ className, type, ...props }) {
312
- return /* @__PURE__ */ jsx5(InputPrimitive, {
313
- type,
314
- "data-slot": "input",
315
- className: cn("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", className),
316
- ...props
317
- });
318
- }
319
-
320
- // ../../src/components/ui/field.tsx
321
- import { useMemo } from "react";
322
- import { cva as cva3 } from "class-variance-authority";
323
-
324
- // ../../src/components/ui/label.tsx
325
- import { jsx as jsx6 } from "react/jsx-runtime";
326
- "use client";
327
- function Label({ className, ...props }) {
328
- return /* @__PURE__ */ jsx6("label", {
329
- "data-slot": "label",
330
- className: cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className),
331
- ...props
332
- });
333
- }
334
-
335
- // ../../src/components/ui/separator.tsx
336
- import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
337
-
338
- // ../../src/components/ui/field.tsx
339
- import { jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
340
- function FieldGroup({ className, ...props }) {
341
- return /* @__PURE__ */ jsx7("div", {
342
- "data-slot": "field-group",
343
- className: cn("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", className),
344
- ...props
345
- });
346
- }
347
- var fieldVariants = cva3("group/field flex w-full gap-3 data-[invalid=true]:text-destructive", {
348
- variants: {
349
- orientation: {
350
- vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
351
- horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
352
- responsive: "flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
353
- }
354
- },
355
- defaultVariants: {
356
- orientation: "vertical"
357
- }
358
- });
359
- function Field({
360
- className,
361
- orientation = "vertical",
362
- ...props
363
- }) {
364
- return /* @__PURE__ */ jsx7("div", {
365
- role: "group",
366
- "data-slot": "field",
367
- "data-orientation": orientation,
368
- className: cn(fieldVariants({ orientation }), className),
369
- ...props
370
- });
371
- }
372
- function FieldLabel({
373
- className,
374
- ...props
375
- }) {
376
- return /* @__PURE__ */ jsx7(Label, {
377
- "data-slot": "field-label",
378
- className: cn("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-md has-[>[data-slot=field]]:border *:data-[slot=field]:p-3 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", className),
379
- ...props
380
- });
381
- }
382
-
383
- // ../../src/components/ui/select.tsx
384
- import { Select as SelectPrimitive } from "@base-ui/react/select";
385
- import { ChevronDownIcon, CheckIcon as CheckIcon3, ChevronUpIcon } from "lucide-react";
386
- import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
387
- "use client";
388
- var Select = SelectPrimitive.Root;
389
- function SelectGroup({ className, ...props }) {
390
- return /* @__PURE__ */ jsx8(SelectPrimitive.Group, {
391
- "data-slot": "select-group",
392
- className: cn("scroll-my-1 p-1", className),
393
- ...props
394
- });
395
- }
396
- function SelectValue({ className, ...props }) {
397
- return /* @__PURE__ */ jsx8(SelectPrimitive.Value, {
398
- "data-slot": "select-value",
399
- className: cn("flex flex-1 text-left", className),
400
- ...props
401
- });
402
- }
403
- function SelectTrigger({
404
- className,
405
- size = "default",
406
- children,
407
- ...props
408
- }) {
409
- return /* @__PURE__ */ jsxs3(SelectPrimitive.Trigger, {
410
- "data-slot": "select-trigger",
411
- "data-size": size,
412
- className: cn("border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 flex w-fit items-center justify-between gap-1.5 rounded-md border bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
413
- ...props,
414
- children: [
415
- children,
416
- /* @__PURE__ */ jsx8(SelectPrimitive.Icon, {
417
- render: /* @__PURE__ */ jsx8(ChevronDownIcon, {
418
- className: "text-muted-foreground pointer-events-none size-4"
419
- })
420
- })
421
- ]
422
- });
423
- }
424
- function SelectContent({
425
- className,
426
- children,
427
- side = "bottom",
428
- sideOffset = 4,
429
- align = "start",
430
- alignOffset = 0,
431
- alignItemWithTrigger = false,
432
- ...props
433
- }) {
434
- return /* @__PURE__ */ jsx8(SelectPrimitive.Portal, {
435
- children: /* @__PURE__ */ jsx8(SelectPrimitive.Positioner, {
436
- side,
437
- sideOffset,
438
- align,
439
- alignOffset,
440
- alignItemWithTrigger,
441
- className: "isolate z-50",
442
- children: /* @__PURE__ */ jsxs3(SelectPrimitive.Popup, {
443
- "data-slot": "select-content",
444
- "data-align-trigger": alignItemWithTrigger,
445
- className: cn("bg-popover text-popover-foreground ring-foreground/10 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 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md shadow-md ring-1 duration-100 data-[align-trigger=true]:animate-none", className),
446
- ...props,
447
- children: [
448
- /* @__PURE__ */ jsx8(SelectScrollUpButton, {}),
449
- /* @__PURE__ */ jsx8(SelectPrimitive.List, {
450
- children
451
- }),
452
- /* @__PURE__ */ jsx8(SelectScrollDownButton, {})
453
- ]
454
- })
455
- })
456
- });
457
- }
458
- function SelectItem({
459
- className,
460
- children,
461
- ...props
462
- }) {
463
- return /* @__PURE__ */ jsxs3(SelectPrimitive.Item, {
464
- "data-slot": "select-item",
465
- className: cn("focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className),
466
- ...props,
467
- children: [
468
- /* @__PURE__ */ jsx8(SelectPrimitive.ItemText, {
469
- className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
470
- children
471
- }),
472
- /* @__PURE__ */ jsx8(SelectPrimitive.ItemIndicator, {
473
- render: /* @__PURE__ */ jsx8("span", {
474
- className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center"
475
- }),
476
- children: /* @__PURE__ */ jsx8(CheckIcon3, {
477
- className: "pointer-events-none"
478
- })
479
- })
480
- ]
481
- });
482
- }
483
- function SelectScrollUpButton({
484
- className,
485
- ...props
486
- }) {
487
- return /* @__PURE__ */ jsx8(SelectPrimitive.ScrollUpArrow, {
488
- "data-slot": "select-scroll-up-button",
489
- className: cn("bg-popover top-0 z-10 flex w-full cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", className),
490
- ...props,
491
- children: /* @__PURE__ */ jsx8(ChevronUpIcon, {})
492
- });
493
- }
494
- function SelectScrollDownButton({
495
- className,
496
- ...props
497
- }) {
498
- return /* @__PURE__ */ jsx8(SelectPrimitive.ScrollDownArrow, {
499
- "data-slot": "select-scroll-down-button",
500
- className: cn("bg-popover bottom-0 z-10 flex w-full cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", className),
501
- ...props,
502
- children: /* @__PURE__ */ jsx8(ChevronDownIcon, {})
503
- });
504
- }
43
+ import { Badge } from "@/components/ui/badge";
44
+ import { Button as Button2 } from "@/components/ui/button";
45
+ import { Card, CardHeader, CardTitle } from "@/components/ui/card";
46
+ import { Checkbox } from "@/components/ui/checkbox";
47
+ import {
48
+ DropdownMenu,
49
+ DropdownMenuContent as PrimitiveDropdownMenuContent,
50
+ DropdownMenuGroup,
51
+ DropdownMenuItem as PrimitiveDropdownMenuItem,
52
+ DropdownMenuLabel as PrimitiveDropdownMenuLabel,
53
+ DropdownMenuSeparator as PrimitiveDropdownMenuSeparator,
54
+ DropdownMenuSub,
55
+ DropdownMenuSubContent as PrimitiveDropdownMenuSubContent,
56
+ DropdownMenuSubTrigger as PrimitiveDropdownMenuSubTrigger,
57
+ DropdownMenuTrigger as PrimitiveDropdownMenuTrigger
58
+ } from "@/components/ui/dropdown-menu";
59
+ import { Input as PrimitiveInput } from "@/components/ui/input";
60
+ import { Field, FieldGroup, FieldLabel } from "@/components/ui/field";
61
+ import {
62
+ Select as Select2,
63
+ SelectContent as PrimitiveSelectContent,
64
+ SelectGroup,
65
+ SelectItem as SelectItem2,
66
+ SelectTrigger as SelectTrigger2,
67
+ SelectValue as SelectValue2
68
+ } from "@/components/ui/select";
505
69
 
506
70
  // ../../src/components/loading/react.tsx
507
71
  import { Loader2 } from "lucide-react";
508
72
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
509
73
 
74
+ // ../../src/lib/utils.ts
75
+ import { cn } from "cn";
76
+
510
77
  // ../../src/components/loading/classes.ts
511
78
  var resolveLoadingClasses = ({
512
79
  classes,
@@ -525,7 +92,7 @@ var labels = {
525
92
  var loadingLabel = (locale, messages) => messages?.[locale]?.loading ?? messages?.[locale.split("-")[0] ?? locale]?.loading ?? (locale.startsWith("fr") ? labels.fr : labels.en);
526
93
 
527
94
  // ../../src/components/loading/react.tsx
528
- import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
95
+ import { jsx, jsxs } from "react/jsx-runtime";
529
96
  function Loading({
530
97
  className,
531
98
  classes,
@@ -536,11 +103,11 @@ function Loading({
536
103
  }) {
537
104
  const locale = useKrakstackLocale(localeOverride);
538
105
  const slots = resolveLoadingClasses({ classes, variant, className });
539
- return /* @__PURE__ */ jsxs4("div", {
106
+ return /* @__PURE__ */ jsxs("div", {
540
107
  role: "status",
541
108
  className: slots.root,
542
109
  children: [
543
- /* @__PURE__ */ jsx9(Loader2, {
110
+ /* @__PURE__ */ jsx(Loader2, {
544
111
  "aria-hidden": "true",
545
112
  className: slots.icon
546
113
  }),
@@ -548,179 +115,23 @@ function Loading({
548
115
  ]
549
116
  });
550
117
  }
551
- // ../../src/components/ui/menubar.tsx
552
- import { Menu as MenuPrimitive2 } from "@base-ui/react/menu";
553
- import { Menubar as MenubarPrimitive } from "@base-ui/react/menubar";
554
- import { CheckIcon as CheckIcon4 } from "lucide-react";
555
- import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
556
- "use client";
557
- function Menubar({ className, ...props }) {
558
- return /* @__PURE__ */ jsx10(MenubarPrimitive, {
559
- "data-slot": "menubar",
560
- className: cn("flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs", className),
561
- ...props
562
- });
563
- }
564
- function MenubarMenu({ ...props }) {
565
- return /* @__PURE__ */ jsx10(DropdownMenu, {
566
- "data-slot": "menubar-menu",
567
- ...props
568
- });
569
- }
570
- function MenubarGroup({
571
- ...props
572
- }) {
573
- return /* @__PURE__ */ jsx10(DropdownMenuGroup, {
574
- "data-slot": "menubar-group",
575
- ...props
576
- });
577
- }
578
- function MenubarTrigger({
579
- className,
580
- ...props
581
- }) {
582
- return /* @__PURE__ */ jsx10(DropdownMenuTrigger, {
583
- "data-slot": "menubar-trigger",
584
- className: cn("flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none hover:bg-muted aria-expanded:bg-muted", className),
585
- ...props
586
- });
587
- }
588
- function MenubarContent({
589
- className,
590
- align = "start",
591
- alignOffset = -4,
592
- sideOffset = 8,
593
- ...props
594
- }) {
595
- return /* @__PURE__ */ jsx10(DropdownMenuContent, {
596
- "data-slot": "menubar-content",
597
- align,
598
- alignOffset,
599
- sideOffset,
600
- className: cn("min-w-36 rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 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", className),
601
- ...props
602
- });
603
- }
604
- function MenubarItem({
605
- className,
606
- inset,
607
- variant = "default",
608
- ...props
609
- }) {
610
- return /* @__PURE__ */ jsx10(DropdownMenuItem, {
611
- "data-slot": "menubar-item",
612
- "data-inset": inset,
613
- "data-variant": variant,
614
- className: cn("group/menubar-item gap-2 rounded-sm px-2 py-1.5 text-sm focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 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:opacity-50 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive!", className),
615
- ...props
616
- });
617
- }
618
- function MenubarCheckboxItem({
619
- className,
620
- children,
621
- checked,
622
- inset,
623
- ...props
624
- }) {
625
- return /* @__PURE__ */ jsxs5(MenuPrimitive2.CheckboxItem, {
626
- "data-slot": "menubar-checkbox-item",
627
- "data-inset": inset,
628
- className: cn("relative flex cursor-default items-center gap-2 rounded-md py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
629
- checked,
630
- ...props,
631
- children: [
632
- /* @__PURE__ */ jsx10("span", {
633
- className: "pointer-events-none absolute left-2 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
634
- children: /* @__PURE__ */ jsx10(MenuPrimitive2.CheckboxItemIndicator, {
635
- children: /* @__PURE__ */ jsx10(CheckIcon4, {})
636
- })
637
- }),
638
- children
639
- ]
640
- });
641
- }
642
- function MenubarRadioGroup({
643
- ...props
644
- }) {
645
- return /* @__PURE__ */ jsx10(DropdownMenuRadioGroup, {
646
- "data-slot": "menubar-radio-group",
647
- ...props
648
- });
649
- }
650
- function MenubarRadioItem({
651
- className,
652
- children,
653
- inset,
654
- ...props
655
- }) {
656
- return /* @__PURE__ */ jsxs5(MenuPrimitive2.RadioItem, {
657
- "data-slot": "menubar-radio-item",
658
- "data-inset": inset,
659
- className: cn("relative flex cursor-default items-center gap-2 rounded-md py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
660
- ...props,
661
- children: [
662
- /* @__PURE__ */ jsx10("span", {
663
- className: "pointer-events-none absolute left-2 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
664
- children: /* @__PURE__ */ jsx10(MenuPrimitive2.RadioItemIndicator, {
665
- children: /* @__PURE__ */ jsx10(CheckIcon4, {})
666
- })
667
- }),
668
- children
669
- ]
670
- });
671
- }
672
- function MenubarLabel({
673
- className,
674
- inset,
675
- ...props
676
- }) {
677
- return /* @__PURE__ */ jsx10(DropdownMenuLabel, {
678
- "data-slot": "menubar-label",
679
- "data-inset": inset,
680
- className: cn("px-2 py-1.5 text-sm font-medium data-inset:pl-8", className),
681
- ...props
682
- });
683
- }
684
- function MenubarSeparator({
685
- className,
686
- ...props
687
- }) {
688
- return /* @__PURE__ */ jsx10(DropdownMenuSeparator, {
689
- "data-slot": "menubar-separator",
690
- className: cn("-mx-1 my-1 h-px bg-border", className),
691
- ...props
692
- });
693
- }
694
- function MenubarSub({
695
- ...props
696
- }) {
697
- return /* @__PURE__ */ jsx10(DropdownMenuSub, {
698
- "data-slot": "menubar-sub",
699
- ...props
700
- });
701
- }
702
- function MenubarSubTrigger({
703
- className,
704
- inset,
705
- ...props
706
- }) {
707
- return /* @__PURE__ */ jsx10(DropdownMenuSubTrigger, {
708
- "data-slot": "menubar-sub-trigger",
709
- "data-inset": inset,
710
- className: cn("gap-2 rounded-sm px-2 py-1.5 text-sm focus:bg-accent focus:text-accent-foreground data-inset:pl-8 data-open:bg-accent data-open:text-accent-foreground [&_svg:not([class*='size-'])]:size-4", className),
711
- ...props
712
- });
713
- }
714
- function MenubarSubContent({
715
- className,
716
- ...props
717
- }) {
718
- return /* @__PURE__ */ jsx10(DropdownMenuSubContent, {
719
- "data-slot": "menubar-sub-content",
720
- className: cn("min-w-32 rounded-md bg-popover 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", className),
721
- ...props
722
- });
723
- }
118
+ // ../../src/components/data-table/react.tsx
119
+ import {
120
+ Menubar as PrimitiveMenubar,
121
+ MenubarCheckboxItem as PrimitiveMenubarCheckboxItem,
122
+ MenubarContent as PrimitiveMenubarContent,
123
+ MenubarGroup,
124
+ MenubarItem as PrimitiveMenubarItem,
125
+ MenubarLabel as PrimitiveMenubarLabel,
126
+ MenubarMenu,
127
+ MenubarRadioGroup,
128
+ MenubarRadioItem as PrimitiveMenubarRadioItem,
129
+ MenubarSeparator as PrimitiveMenubarSeparator,
130
+ MenubarSub,
131
+ MenubarSubContent as PrimitiveMenubarSubContent,
132
+ MenubarSubTrigger as PrimitiveMenubarSubTrigger,
133
+ MenubarTrigger as PrimitiveMenubarTrigger
134
+ } from "@/components/ui/menubar";
724
135
 
725
136
  // ../../src/components/pagination/react.tsx
726
137
  import {
@@ -730,6 +141,15 @@ import {
730
141
  ChevronsRight
731
142
  } from "lucide-react";
732
143
  import { useId } from "react";
144
+ import { Button } from "@/components/ui/button";
145
+ import { Label } from "@/components/ui/label";
146
+ import {
147
+ Select,
148
+ SelectContent,
149
+ SelectItem,
150
+ SelectTrigger,
151
+ SelectValue
152
+ } from "@/components/ui/select";
733
153
  import { useKrakstackLocale as useKrakstackLocale2 } from "@krak-stack/registry/krakstack-provider/react";
734
154
 
735
155
  // ../../src/components/pagination/classes.ts
@@ -856,7 +276,7 @@ var paginationNavigation = (page, pageCount) => ({
856
276
  });
857
277
 
858
278
  // ../../src/components/pagination/react.tsx
859
- import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
279
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
860
280
  function Pagination({
861
281
  classes: classOverrides,
862
282
  className,
@@ -880,33 +300,33 @@ function Pagination({
880
300
  const pageSizeId = useId();
881
301
  const navigation = paginationNavigation(page, pageCount);
882
302
  const pageLabel = paginationPageLabel(page, pageCount, labels.pageOf);
883
- return /* @__PURE__ */ jsxs6("div", {
303
+ return /* @__PURE__ */ jsxs2("div", {
884
304
  "data-slot": "pagination",
885
305
  className: cn(paginationClasses.root, compact && paginationClasses.compactRoot, className),
886
306
  children: [
887
- showResults ? /* @__PURE__ */ jsxs6("div", {
307
+ showResults ? /* @__PURE__ */ jsxs2("div", {
888
308
  className: paginationClasses.summary,
889
309
  children: [
890
- /* @__PURE__ */ jsx11("span", {
310
+ /* @__PURE__ */ jsx2("span", {
891
311
  children: labels.results(totalRows)
892
312
  }),
893
- selectedRows > 0 ? /* @__PURE__ */ jsx11("span", {
313
+ selectedRows > 0 ? /* @__PURE__ */ jsx2("span", {
894
314
  children: labels.selectedOf(selectedRows, totalRows)
895
315
  }) : null
896
316
  ]
897
317
  }) : null,
898
- /* @__PURE__ */ jsxs6("div", {
318
+ /* @__PURE__ */ jsxs2("div", {
899
319
  className: cn(paginationClasses.controls, compact && paginationClasses.compactControls),
900
320
  children: [
901
- /* @__PURE__ */ jsxs6("div", {
321
+ /* @__PURE__ */ jsxs2("div", {
902
322
  className: paginationClasses.controlGroup,
903
323
  children: [
904
- /* @__PURE__ */ jsx11(Label, {
324
+ /* @__PURE__ */ jsx2(Label, {
905
325
  htmlFor: pageSizeId,
906
326
  className: cn("hidden text-sm sm:block", compact && "block"),
907
327
  children: labels.pageSize
908
328
  }),
909
- /* @__PURE__ */ jsxs6(Select, {
329
+ /* @__PURE__ */ jsxs2(Select, {
910
330
  items: pageSizes.map((size) => ({
911
331
  label: size.toString(),
912
332
  value: size.toString()
@@ -914,17 +334,17 @@ function Pagination({
914
334
  value: `${pageSize}`,
915
335
  onValueChange: (value) => onPageSizeChange(Number(value)),
916
336
  children: [
917
- /* @__PURE__ */ jsx11(SelectTrigger, {
337
+ /* @__PURE__ */ jsx2(SelectTrigger, {
918
338
  className: "h-8 w-[70px]",
919
339
  id: pageSizeId,
920
- children: /* @__PURE__ */ jsx11(SelectValue, {
340
+ children: /* @__PURE__ */ jsx2(SelectValue, {
921
341
  placeholder: pageSize
922
342
  })
923
343
  }),
924
- /* @__PURE__ */ jsx11(SelectContent, {
344
+ /* @__PURE__ */ jsx2(SelectContent, {
925
345
  side: "top",
926
346
  className: pageSizeContentClassName,
927
- children: pageSizes.map((size) => /* @__PURE__ */ jsx11(SelectItem, {
347
+ children: pageSizes.map((size) => /* @__PURE__ */ jsx2(SelectItem, {
928
348
  value: `${size}`,
929
349
  children: size
930
350
  }, size))
@@ -933,66 +353,66 @@ function Pagination({
933
353
  })
934
354
  ]
935
355
  }),
936
- /* @__PURE__ */ jsxs6("div", {
356
+ /* @__PURE__ */ jsxs2("div", {
937
357
  className: paginationClasses.controlGroup,
938
358
  children: [
939
- pageLabel !== undefined && /* @__PURE__ */ jsx11("div", {
359
+ pageLabel !== undefined && /* @__PURE__ */ jsx2("div", {
940
360
  className: "flex items-center justify-center text-sm font-medium sm:block",
941
361
  children: pageLabel
942
362
  }),
943
- /* @__PURE__ */ jsxs6("div", {
363
+ /* @__PURE__ */ jsxs2("div", {
944
364
  className: paginationClasses.navigation,
945
365
  children: [
946
- /* @__PURE__ */ jsxs6(Button, {
366
+ /* @__PURE__ */ jsxs2(Button, {
947
367
  className: cn("hidden h-8 w-8 p-0 lg:flex", compact && "!hidden"),
948
368
  disabled: navigation.goToFirstPage.disabled,
949
369
  onClick: () => onPageChange(navigation.goToFirstPage.page),
950
370
  type: "button",
951
371
  children: [
952
- /* @__PURE__ */ jsx11("span", {
372
+ /* @__PURE__ */ jsx2("span", {
953
373
  className: "sr-only",
954
374
  children: labels.goToFirstPage
955
375
  }),
956
- /* @__PURE__ */ jsx11(ChevronsLeft, {})
376
+ /* @__PURE__ */ jsx2(ChevronsLeft, {})
957
377
  ]
958
378
  }),
959
- /* @__PURE__ */ jsxs6(Button, {
379
+ /* @__PURE__ */ jsxs2(Button, {
960
380
  className: "h-8 w-8 p-0",
961
381
  disabled: navigation.goToPreviousPage.disabled,
962
382
  onClick: () => onPageChange(navigation.goToPreviousPage.page),
963
383
  type: "button",
964
384
  children: [
965
- /* @__PURE__ */ jsx11("span", {
385
+ /* @__PURE__ */ jsx2("span", {
966
386
  className: "sr-only",
967
387
  children: labels.goToPreviousPage
968
388
  }),
969
- /* @__PURE__ */ jsx11(ChevronLeft, {})
389
+ /* @__PURE__ */ jsx2(ChevronLeft, {})
970
390
  ]
971
391
  }),
972
- /* @__PURE__ */ jsxs6(Button, {
392
+ /* @__PURE__ */ jsxs2(Button, {
973
393
  className: "h-8 w-8 p-0",
974
394
  disabled: navigation.goToNextPage.disabled,
975
395
  onClick: () => onPageChange(navigation.goToNextPage.page),
976
396
  type: "button",
977
397
  children: [
978
- /* @__PURE__ */ jsx11("span", {
398
+ /* @__PURE__ */ jsx2("span", {
979
399
  className: "sr-only",
980
400
  children: labels.goToNextPage
981
401
  }),
982
- /* @__PURE__ */ jsx11(ChevronRight, {})
402
+ /* @__PURE__ */ jsx2(ChevronRight, {})
983
403
  ]
984
404
  }),
985
- /* @__PURE__ */ jsxs6(Button, {
405
+ /* @__PURE__ */ jsxs2(Button, {
986
406
  className: cn("hidden h-8 w-8 p-0 lg:flex", compact && "!hidden"),
987
407
  disabled: navigation.goToLastPage.disabled,
988
408
  onClick: () => onPageChange(navigation.goToLastPage.page),
989
409
  type: "button",
990
410
  children: [
991
- /* @__PURE__ */ jsx11("span", {
411
+ /* @__PURE__ */ jsx2("span", {
992
412
  className: "sr-only",
993
413
  children: labels.goToLastPage
994
414
  }),
995
- /* @__PURE__ */ jsx11(ChevronsRight, {})
415
+ /* @__PURE__ */ jsx2(ChevronsRight, {})
996
416
  ]
997
417
  })
998
418
  ]
@@ -1004,152 +424,22 @@ function Pagination({
1004
424
  ]
1005
425
  });
1006
426
  }
1007
- // ../../src/components/ui/scroll-area.tsx
1008
- import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area";
1009
- import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
1010
- function ScrollArea({
1011
- className,
1012
- children,
1013
- ...props
1014
- }) {
1015
- return /* @__PURE__ */ jsxs7(ScrollAreaPrimitive.Root, {
1016
- "data-slot": "scroll-area",
1017
- className: cn("relative", className),
1018
- ...props,
1019
- children: [
1020
- /* @__PURE__ */ jsx12(ScrollAreaPrimitive.Viewport, {
1021
- "data-slot": "scroll-area-viewport",
1022
- className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
1023
- children
1024
- }),
1025
- /* @__PURE__ */ jsx12(ScrollBar, {}),
1026
- /* @__PURE__ */ jsx12(ScrollAreaPrimitive.Corner, {})
1027
- ]
1028
- });
1029
- }
1030
- function ScrollBar({
1031
- className,
1032
- orientation = "vertical",
1033
- ...props
1034
- }) {
1035
- return /* @__PURE__ */ jsx12(ScrollAreaPrimitive.Scrollbar, {
1036
- "data-slot": "scroll-area-scrollbar",
1037
- "data-orientation": orientation,
1038
- orientation,
1039
- className: cn("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent", className),
1040
- ...props,
1041
- children: /* @__PURE__ */ jsx12(ScrollAreaPrimitive.Thumb, {
1042
- "data-slot": "scroll-area-thumb",
1043
- className: "bg-border relative flex-1 rounded-full"
1044
- })
1045
- });
1046
- }
1047
-
1048
- // ../../src/components/ui/table.tsx
1049
- import { jsx as jsx13 } from "react/jsx-runtime";
1050
- function Table({ className, ...props }) {
1051
- return /* @__PURE__ */ jsx13("div", {
1052
- "data-slot": "table-container",
1053
- className: "relative w-full overflow-x-auto",
1054
- children: /* @__PURE__ */ jsx13("table", {
1055
- "data-slot": "table",
1056
- className: cn("w-full caption-bottom text-sm", className),
1057
- ...props
1058
- })
1059
- });
1060
- }
1061
- function TableHeader({ className, ...props }) {
1062
- return /* @__PURE__ */ jsx13("thead", {
1063
- "data-slot": "table-header",
1064
- className: cn("[&_tr]:border-b", className),
1065
- ...props
1066
- });
1067
- }
1068
- function TableBody({ className, ...props }) {
1069
- return /* @__PURE__ */ jsx13("tbody", {
1070
- "data-slot": "table-body",
1071
- className: cn("[&_tr:last-child]:border-0", className),
1072
- ...props
1073
- });
1074
- }
1075
- function TableRow({ className, ...props }) {
1076
- return /* @__PURE__ */ jsx13("tr", {
1077
- "data-slot": "table-row",
1078
- className: cn("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted", className),
1079
- ...props
1080
- });
1081
- }
1082
- function TableHead({ className, ...props }) {
1083
- return /* @__PURE__ */ jsx13("th", {
1084
- "data-slot": "table-head",
1085
- className: cn("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0", className),
1086
- ...props
1087
- });
1088
- }
1089
- function TableCell({ className, ...props }) {
1090
- return /* @__PURE__ */ jsx13("td", {
1091
- "data-slot": "table-cell",
1092
- className: cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0", className),
1093
- ...props
1094
- });
1095
- }
1096
-
1097
- // ../../src/components/ui/tooltip.tsx
1098
- import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
1099
- import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
1100
- "use client";
1101
- function TooltipProvider({
1102
- delay = 0,
1103
- ...props
1104
- }) {
1105
- return /* @__PURE__ */ jsx14(TooltipPrimitive.Provider, {
1106
- "data-slot": "tooltip-provider",
1107
- delay,
1108
- ...props
1109
- });
1110
- }
1111
- function Tooltip({ ...props }) {
1112
- return /* @__PURE__ */ jsx14(TooltipPrimitive.Root, {
1113
- "data-slot": "tooltip",
1114
- ...props
1115
- });
1116
- }
1117
- function TooltipTrigger({ ...props }) {
1118
- return /* @__PURE__ */ jsx14(TooltipPrimitive.Trigger, {
1119
- "data-slot": "tooltip-trigger",
1120
- ...props
1121
- });
1122
- }
1123
- function TooltipContent({
1124
- className,
1125
- side = "top",
1126
- sideOffset = 4,
1127
- align = "center",
1128
- alignOffset = 0,
1129
- children,
1130
- ...props
1131
- }) {
1132
- return /* @__PURE__ */ jsx14(TooltipPrimitive.Portal, {
1133
- children: /* @__PURE__ */ jsx14(TooltipPrimitive.Positioner, {
1134
- align,
1135
- alignOffset,
1136
- side,
1137
- sideOffset,
1138
- className: "isolate z-50",
1139
- children: /* @__PURE__ */ jsxs8(TooltipPrimitive.Popup, {
1140
- "data-slot": "tooltip-content",
1141
- className: cn("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 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-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
1142
- ...props,
1143
- children: [
1144
- children,
1145
- /* @__PURE__ */ jsx14(TooltipPrimitive.Arrow, {
1146
- className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"
1147
- })
1148
- ]
1149
- })
1150
- })
1151
- });
1152
- }
427
+ // ../../src/components/data-table/react.tsx
428
+ import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area";
429
+ import {
430
+ Table as PrimitiveTable,
431
+ TableBody as PrimitiveTableBody,
432
+ TableCell as PrimitiveTableCell,
433
+ TableHead as PrimitiveTableHead,
434
+ TableHeader as PrimitiveTableHeader,
435
+ TableRow as PrimitiveTableRow
436
+ } from "@/components/ui/table";
437
+ import {
438
+ Tooltip,
439
+ TooltipContent as PrimitiveTooltipContent,
440
+ TooltipProvider,
441
+ TooltipTrigger
442
+ } from "@/components/ui/tooltip";
1153
443
 
1154
444
  // ../../src/lib/query.ts
1155
445
  import {
@@ -2618,14 +1908,14 @@ var dataTableBehaviours = {
2618
1908
  };
2619
1909
 
2620
1910
  // ../../src/components/data-table/react.tsx
2621
- import { jsx as jsx15, jsxs as jsxs9, Fragment } from "react/jsx-runtime";
1911
+ import { jsx as jsx3, jsxs as jsxs3, Fragment } from "react/jsx-runtime";
2622
1912
  var DataTableStylesContext = createContext(undefined);
2623
1913
  var DataTableSlotClassesContext = createContext(resolveTableClasses());
2624
1914
  var styledTablePart = (Part, slot, style) => {
2625
1915
  const StyledPart = (props) => {
2626
1916
  const styles = useContext(DataTableStylesContext);
2627
1917
  const className = cn(props.className, style(styles));
2628
- return /* @__PURE__ */ jsx15(Part, {
1918
+ return /* @__PURE__ */ jsx3(Part, {
2629
1919
  "data-table-slot": slot,
2630
1920
  ...props,
2631
1921
  className
@@ -2633,32 +1923,32 @@ var styledTablePart = (Part, slot, style) => {
2633
1923
  };
2634
1924
  return StyledPart;
2635
1925
  };
2636
- var Table2 = styledTablePart(Table, "table", (s) => s?.table?.content);
2637
- var TableHeader2 = styledTablePart(TableHeader, "header", (s) => s?.table?.header);
2638
- var TableBody2 = styledTablePart(TableBody, "body", (s) => s?.table?.body);
2639
- var TableRow2 = styledTablePart(TableRow, "row", (s) => s?.table?.row);
2640
- var TableHead2 = styledTablePart(TableHead, "head", (s) => s?.table?.head);
2641
- var TableCell2 = styledTablePart(TableCell, "cell", (s) => s?.table?.cell);
2642
- var Input2 = styledTablePart(Input, "input", (s) => s?.toolbar?.search);
2643
- var Menubar2 = styledTablePart(Menubar, "menubar", (s) => s?.toolbar?.content);
2644
- var MenubarTrigger2 = styledTablePart(MenubarTrigger, "menu-trigger", (s) => s?.toolbar?.trigger);
2645
- var MenubarContent2 = styledTablePart(MenubarContent, "menu", (s) => s?.menu?.content);
2646
- var MenubarSubContent2 = styledTablePart(MenubarSubContent, "submenu", (s) => s?.menu?.subContent);
2647
- var MenubarSubTrigger2 = styledTablePart(MenubarSubTrigger, "submenu-trigger", (s) => s?.menu?.subTrigger);
2648
- var MenubarItem2 = styledTablePart(MenubarItem, "menu-item", (s) => s?.menu?.item);
2649
- var MenubarCheckboxItem2 = styledTablePart(MenubarCheckboxItem, "menu-checkbox-item", (s) => s?.menu?.item);
2650
- var MenubarRadioItem2 = styledTablePart(MenubarRadioItem, "menu-radio-item", (s) => s?.menu?.item);
2651
- var MenubarLabel2 = styledTablePart(MenubarLabel, "menu-label", (s) => s?.menu?.label);
2652
- var MenubarSeparator2 = styledTablePart(MenubarSeparator, "menu-separator", (s) => s?.menu?.separator);
2653
- var DropdownMenuTrigger2 = styledTablePart(DropdownMenuTrigger, "row-menu-trigger", (s) => s?.toolbar?.trigger);
2654
- var DropdownMenuContent2 = styledTablePart(DropdownMenuContent, "row-menu", (s) => s?.menu?.content);
2655
- var DropdownMenuSubContent2 = styledTablePart(DropdownMenuSubContent, "row-submenu", (s) => s?.menu?.subContent);
2656
- var DropdownMenuSubTrigger2 = styledTablePart(DropdownMenuSubTrigger, "row-submenu-trigger", (s) => s?.menu?.subTrigger);
2657
- var DropdownMenuItem2 = styledTablePart(DropdownMenuItem, "row-menu-item", (s) => s?.menu?.item);
2658
- var DropdownMenuLabel2 = styledTablePart(DropdownMenuLabel, "row-menu-label", (s) => s?.menu?.label);
2659
- var DropdownMenuSeparator2 = styledTablePart(DropdownMenuSeparator, "row-menu-separator", (s) => s?.menu?.separator);
2660
- var SelectContent2 = styledTablePart(SelectContent, "select-popup", (s) => s?.popup?.select);
2661
- var TooltipContent2 = styledTablePart(TooltipContent, "tooltip", (s) => s?.popup?.tooltip);
1926
+ var Table = styledTablePart(PrimitiveTable, "table", (s) => s?.table?.content);
1927
+ var TableHeader = styledTablePart(PrimitiveTableHeader, "header", (s) => s?.table?.header);
1928
+ var TableBody = styledTablePart(PrimitiveTableBody, "body", (s) => s?.table?.body);
1929
+ var TableRow = styledTablePart(PrimitiveTableRow, "row", (s) => s?.table?.row);
1930
+ var TableHead = styledTablePart(PrimitiveTableHead, "head", (s) => s?.table?.head);
1931
+ var TableCell = styledTablePart(PrimitiveTableCell, "cell", (s) => s?.table?.cell);
1932
+ var Input = styledTablePart(PrimitiveInput, "input", (s) => s?.toolbar?.search);
1933
+ var Menubar = styledTablePart(PrimitiveMenubar, "menubar", (s) => s?.toolbar?.content);
1934
+ var MenubarTrigger = styledTablePart(PrimitiveMenubarTrigger, "menu-trigger", (s) => s?.toolbar?.trigger);
1935
+ var MenubarContent = styledTablePart(PrimitiveMenubarContent, "menu", (s) => s?.menu?.content);
1936
+ var MenubarSubContent = styledTablePart(PrimitiveMenubarSubContent, "submenu", (s) => s?.menu?.subContent);
1937
+ var MenubarSubTrigger = styledTablePart(PrimitiveMenubarSubTrigger, "submenu-trigger", (s) => s?.menu?.subTrigger);
1938
+ var MenubarItem = styledTablePart(PrimitiveMenubarItem, "menu-item", (s) => s?.menu?.item);
1939
+ var MenubarCheckboxItem = styledTablePart(PrimitiveMenubarCheckboxItem, "menu-checkbox-item", (s) => s?.menu?.item);
1940
+ var MenubarRadioItem = styledTablePart(PrimitiveMenubarRadioItem, "menu-radio-item", (s) => s?.menu?.item);
1941
+ var MenubarLabel = styledTablePart(PrimitiveMenubarLabel, "menu-label", (s) => s?.menu?.label);
1942
+ var MenubarSeparator = styledTablePart(PrimitiveMenubarSeparator, "menu-separator", (s) => s?.menu?.separator);
1943
+ var DropdownMenuTrigger = styledTablePart(PrimitiveDropdownMenuTrigger, "row-menu-trigger", (s) => s?.toolbar?.trigger);
1944
+ var DropdownMenuContent = styledTablePart(PrimitiveDropdownMenuContent, "row-menu", (s) => s?.menu?.content);
1945
+ var DropdownMenuSubContent = styledTablePart(PrimitiveDropdownMenuSubContent, "row-submenu", (s) => s?.menu?.subContent);
1946
+ var DropdownMenuSubTrigger = styledTablePart(PrimitiveDropdownMenuSubTrigger, "row-submenu-trigger", (s) => s?.menu?.subTrigger);
1947
+ var DropdownMenuItem = styledTablePart(PrimitiveDropdownMenuItem, "row-menu-item", (s) => s?.menu?.item);
1948
+ var DropdownMenuLabel = styledTablePart(PrimitiveDropdownMenuLabel, "row-menu-label", (s) => s?.menu?.label);
1949
+ var DropdownMenuSeparator = styledTablePart(PrimitiveDropdownMenuSeparator, "row-menu-separator", (s) => s?.menu?.separator);
1950
+ var SelectContent2 = styledTablePart(PrimitiveSelectContent, "select-popup", (s) => s?.popup?.select);
1951
+ var TooltipContent = styledTablePart(PrimitiveTooltipContent, "tooltip", (s) => s?.popup?.tooltip);
2662
1952
  var DataTableReferenceCell = ({
2663
1953
  item,
2664
1954
  emptyLabel = "—",
@@ -2669,33 +1959,33 @@ var DataTableReferenceCell = ({
2669
1959
  if (!item)
2670
1960
  return emptyLabel;
2671
1961
  const initials = tableInitials(item.label);
2672
- return /* @__PURE__ */ jsxs9("div", {
1962
+ return /* @__PURE__ */ jsxs3("div", {
2673
1963
  className: tableClasses.reference,
2674
1964
  children: [
2675
- /* @__PURE__ */ jsx15("div", {
1965
+ /* @__PURE__ */ jsx3("div", {
2676
1966
  className: cn(tableClasses.referenceAvatar, imageVariant === "circle" ? "rounded-full" : "rounded-md", item.iconClassName),
2677
- children: item.icon ? /* @__PURE__ */ jsx15("span", {
1967
+ children: item.icon ? /* @__PURE__ */ jsx3("span", {
2678
1968
  "aria-hidden": "true",
2679
1969
  className: "[&_svg]:size-4",
2680
1970
  children: item.icon
2681
- }) : item.imageSrc && item.imageSrc !== failedImage ? /* @__PURE__ */ jsx15("img", {
1971
+ }) : item.imageSrc && item.imageSrc !== failedImage ? /* @__PURE__ */ jsx3("img", {
2682
1972
  src: item.imageSrc,
2683
1973
  alt: item.label,
2684
1974
  className: "size-full object-cover",
2685
1975
  onError: () => setFailedImage(item.imageSrc ?? undefined)
2686
- }) : /* @__PURE__ */ jsx15("span", {
1976
+ }) : /* @__PURE__ */ jsx3("span", {
2687
1977
  "aria-hidden": "true",
2688
1978
  children: initials
2689
1979
  })
2690
1980
  }),
2691
- /* @__PURE__ */ jsxs9("div", {
1981
+ /* @__PURE__ */ jsxs3("div", {
2692
1982
  className: tableClasses.referenceText,
2693
1983
  children: [
2694
- /* @__PURE__ */ jsx15("span", {
1984
+ /* @__PURE__ */ jsx3("span", {
2695
1985
  className: tableClasses.referenceName,
2696
1986
  children: item.label
2697
1987
  }),
2698
- item.description ? /* @__PURE__ */ jsx15("span", {
1988
+ item.description ? /* @__PURE__ */ jsx3("span", {
2699
1989
  className: tableClasses.referenceDescription,
2700
1990
  children: item.description
2701
1991
  }) : null
@@ -3076,14 +2366,14 @@ var renderCell = (row, column, locale = "en", labels = dataTableMessages(locale)
3076
2366
  };
3077
2367
  const CellRenderer = column.colDef.cellRenderer;
3078
2368
  if (CellRenderer)
3079
- return /* @__PURE__ */ jsx15(CellRenderer, {
2369
+ return /* @__PURE__ */ jsx3(CellRenderer, {
3080
2370
  ...params
3081
2371
  });
3082
2372
  const colDef = column.colDef;
3083
2373
  if (colDef.type === "reference") {
3084
2374
  if (colDef.valueFormatter)
3085
2375
  return colDef.valueFormatter(params);
3086
- return /* @__PURE__ */ jsx15(DataTableReferenceCell, {
2376
+ return /* @__PURE__ */ jsx3(DataTableReferenceCell, {
3087
2377
  item: colDef.typeOptions.getItem(row.data),
3088
2378
  emptyLabel: colDef.typeOptions.emptyLabel,
3089
2379
  ...colDef.typeOptions.imageVariant ? { imageVariant: colDef.typeOptions.imageVariant } : {}
@@ -3093,7 +2383,7 @@ var renderCell = (row, column, locale = "en", labels = dataTableMessages(locale)
3093
2383
  if (colDef.valueFormatter)
3094
2384
  return colDef.valueFormatter(params);
3095
2385
  const number = Option4.getOrUndefined(decodeNumberValue(value));
3096
- return /* @__PURE__ */ jsx15("span", {
2386
+ return /* @__PURE__ */ jsx3("span", {
3097
2387
  className: "block text-left tabular-nums",
3098
2388
  children: number === undefined ? colDef.typeOptions?.emptyLabel ?? "—" : formatNumberValue(number, colDef.typeOptions, locale)
3099
2389
  });
@@ -3105,12 +2395,12 @@ var renderCell = (row, column, locale = "en", labels = dataTableMessages(locale)
3105
2395
  if (boolean === undefined)
3106
2396
  return colDef.typeOptions?.emptyLabel ?? "—";
3107
2397
  const options = colDef.typeOptions;
3108
- return /* @__PURE__ */ jsx15("label", {
2398
+ return /* @__PURE__ */ jsx3("label", {
3109
2399
  "data-slot": "data-table-boolean-cell",
3110
2400
  className: cn("focus-within:border-ring focus-within:ring-ring/50 flex min-h-16 w-full items-center justify-start border border-transparent px-2 outline-none focus-within:ring-3 focus-within:ring-inset in-[[data-slot=table-cell]]:absolute in-[[data-slot=table-cell]]:inset-0 in-[[data-slot=table-cell]]:min-h-0", options?.onChange && !options.disabled?.(row.data) && "hover:bg-muted/50 cursor-pointer"),
3111
2401
  onClick: (event) => event.stopPropagation(),
3112
2402
  onPointerDown: (event) => event.stopPropagation(),
3113
- children: /* @__PURE__ */ jsx15(Checkbox, {
2403
+ children: /* @__PURE__ */ jsx3(Checkbox, {
3114
2404
  "aria-label": options?.getAriaLabel?.(row.data) ?? columnLabel(column),
3115
2405
  className: "focus-visible:ring-0 focus-visible:outline-none",
3116
2406
  checked: boolean,
@@ -3124,7 +2414,7 @@ var renderCell = (row, column, locale = "en", labels = dataTableMessages(locale)
3124
2414
  if (colDef.valueFormatter)
3125
2415
  return colDef.valueFormatter(params);
3126
2416
  const date = resolveDate(value, colDef.type);
3127
- return date ? /* @__PURE__ */ jsx15("time", {
2417
+ return date ? /* @__PURE__ */ jsx3("time", {
3128
2418
  dateTime: dateIsoValue(date),
3129
2419
  children: formatDateValue(date, colDef, locale)
3130
2420
  }) : colDef.typeOptions?.emptyLabel ?? "—";
@@ -3138,7 +2428,7 @@ var renderCell = (row, column, locale = "en", labels = dataTableMessages(locale)
3138
2428
  disabled: (item) => action.disabled?.({ item, row: row.data }) ?? false
3139
2429
  }));
3140
2430
  if (config.getOptions) {
3141
- return /* @__PURE__ */ jsx15(DataTableListCell, {
2431
+ return /* @__PURE__ */ jsx3(DataTableListCell, {
3142
2432
  ...config,
3143
2433
  itemActions,
3144
2434
  onItemClick: config.onItemClick ? (item) => config.onItemClick?.({ item, row: row.data }) : undefined,
@@ -3151,7 +2441,7 @@ var renderCell = (row, column, locale = "en", labels = dataTableMessages(locale)
3151
2441
  onRemove: config.onRemove ? (value) => config.onRemove?.({ value, row: row.data }) : undefined
3152
2442
  });
3153
2443
  }
3154
- return /* @__PURE__ */ jsx15(DataTableListCell, {
2444
+ return /* @__PURE__ */ jsx3(DataTableListCell, {
3155
2445
  ...config,
3156
2446
  itemActions,
3157
2447
  onItemClick: config.onItemClick ? (item) => config.onItemClick?.({ item, row: row.data }) : undefined,
@@ -3186,33 +2476,33 @@ var DataTableRowActions = ({
3186
2476
  const visible = actions.filter((action) => !action.visible || action.visible(row));
3187
2477
  if (!visible.length)
3188
2478
  return null;
3189
- return /* @__PURE__ */ jsxs9(DropdownMenu, {
2479
+ return /* @__PURE__ */ jsxs3(DropdownMenu, {
3190
2480
  children: [
3191
- /* @__PURE__ */ jsx15(DropdownMenuTrigger2, {
2481
+ /* @__PURE__ */ jsx3(DropdownMenuTrigger, {
3192
2482
  onClick: (event) => event.stopPropagation(),
3193
- render: /* @__PURE__ */ jsxs9(Button, {
2483
+ render: /* @__PURE__ */ jsxs3(Button2, {
3194
2484
  className: cn(tableClasses.actionTrigger, "[&_svg:not([class*='size-'])]:size-4"),
3195
2485
  size: "icon",
3196
2486
  variant: "ghost",
3197
2487
  children: [
3198
- /* @__PURE__ */ jsx15("span", {
2488
+ /* @__PURE__ */ jsx3("span", {
3199
2489
  className: "sr-only",
3200
2490
  children: title
3201
2491
  }),
3202
- /* @__PURE__ */ jsx15(MoreHorizontal, {})
2492
+ /* @__PURE__ */ jsx3(MoreHorizontal, {})
3203
2493
  ]
3204
2494
  })
3205
2495
  }),
3206
- /* @__PURE__ */ jsx15(DropdownMenuContent2, {
2496
+ /* @__PURE__ */ jsx3(DropdownMenuContent, {
3207
2497
  align: "end",
3208
2498
  className: "w-max",
3209
- children: /* @__PURE__ */ jsxs9(DropdownMenuGroup, {
2499
+ children: /* @__PURE__ */ jsxs3(DropdownMenuGroup, {
3210
2500
  children: [
3211
- /* @__PURE__ */ jsx15(DropdownMenuLabel2, {
2501
+ /* @__PURE__ */ jsx3(DropdownMenuLabel, {
3212
2502
  children: title
3213
2503
  }),
3214
- /* @__PURE__ */ jsx15(DropdownMenuSeparator2, {}),
3215
- visible.map((action) => /* @__PURE__ */ jsxs9(DropdownMenuItem2, {
2504
+ /* @__PURE__ */ jsx3(DropdownMenuSeparator, {}),
2505
+ visible.map((action) => /* @__PURE__ */ jsxs3(DropdownMenuItem, {
3216
2506
  onClick: (event) => {
3217
2507
  event.stopPropagation();
3218
2508
  action.onClick(row);
@@ -3247,7 +2537,7 @@ var DataTableRowActionMenu = ({
3247
2537
  reorderActions.push({
3248
2538
  id: "data-table-move-up",
3249
2539
  name: store.config.labels.moveUp,
3250
- icon: /* @__PURE__ */ jsx15(ArrowUp, {}),
2540
+ icon: /* @__PURE__ */ jsx3(ArrowUp, {}),
3251
2541
  onClick: () => move(rowIndex - 1)
3252
2542
  });
3253
2543
  }
@@ -3255,12 +2545,12 @@ var DataTableRowActionMenu = ({
3255
2545
  reorderActions.push({
3256
2546
  id: "data-table-move-down",
3257
2547
  name: store.config.labels.moveDown,
3258
- icon: /* @__PURE__ */ jsx15(ArrowDown, {}),
2548
+ icon: /* @__PURE__ */ jsx3(ArrowDown, {}),
3259
2549
  onClick: () => move(rowIndex + 1)
3260
2550
  });
3261
2551
  }
3262
2552
  }
3263
- return /* @__PURE__ */ jsx15(DataTableRowActions, {
2553
+ return /* @__PURE__ */ jsx3(DataTableRowActions, {
3264
2554
  actions: [...reorderActions, ...rowActions ? rowActions.items : []],
3265
2555
  row: row.data,
3266
2556
  title: rowActions?.label ?? store.config.labels.actions
@@ -3306,60 +2596,60 @@ var DataTableToolbar = ({
3306
2596
  send(DataTableMessage.ExportFinished({ failed }));
3307
2597
  }
3308
2598
  };
3309
- return /* @__PURE__ */ jsxs9("div", {
2599
+ return /* @__PURE__ */ jsxs3("div", {
3310
2600
  className: cn(tableClasses.toolbar, "pb-4"),
3311
2601
  children: [
3312
- features.search !== false ? /* @__PURE__ */ jsxs9("div", {
2602
+ features.search !== false ? /* @__PURE__ */ jsxs3("div", {
3313
2603
  className: tableClasses.toolbarSearch,
3314
2604
  children: [
3315
- /* @__PURE__ */ jsx15(Search, {
2605
+ /* @__PURE__ */ jsx3(Search, {
3316
2606
  className: "text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2"
3317
2607
  }),
3318
- /* @__PURE__ */ jsx15(Input2, {
2608
+ /* @__PURE__ */ jsx3(Input, {
3319
2609
  className: "px-9",
3320
2610
  onChange: (event) => send(DataTableMessage.SearchChanged({ value: event.target.value })),
3321
2611
  placeholder: labels.filter,
3322
2612
  value: store.state.globalFilter ?? ""
3323
2613
  }),
3324
- store.state.globalFilter ? /* @__PURE__ */ jsx15(Button, {
2614
+ store.state.globalFilter ? /* @__PURE__ */ jsx3(Button2, {
3325
2615
  "aria-label": labels.filter,
3326
2616
  className: "absolute top-1/2 right-1 size-7 -translate-y-1/2 active:not-aria-[haspopup]:-translate-y-1/2",
3327
2617
  onClick: () => send(DataTableMessage.SearchChanged({ value: "" })),
3328
2618
  size: "icon",
3329
2619
  variant: "ghost",
3330
- children: /* @__PURE__ */ jsx15(X, {})
2620
+ children: /* @__PURE__ */ jsx3(X, {})
3331
2621
  }) : null
3332
2622
  ]
3333
2623
  }) : null,
3334
- /* @__PURE__ */ jsx15("div", {
2624
+ /* @__PURE__ */ jsx3("div", {
3335
2625
  className: tableClasses.toolbarMenus,
3336
- children: /* @__PURE__ */ jsxs9(Menubar2, {
2626
+ children: /* @__PURE__ */ jsxs3(Menubar, {
3337
2627
  modal: false,
3338
2628
  className: cn(tableClasses.menubar, "[&_[data-slot=menubar-trigger]]:gap-2 [&_[data-slot=menubar-trigger]_svg]:size-4"),
3339
2629
  children: [
3340
- visibleBulkActions.length ? /* @__PURE__ */ jsxs9(MenubarMenu, {
2630
+ visibleBulkActions.length ? /* @__PURE__ */ jsxs3(MenubarMenu, {
3341
2631
  children: [
3342
- /* @__PURE__ */ jsxs9(MenubarTrigger2, {
2632
+ /* @__PURE__ */ jsxs3(MenubarTrigger, {
3343
2633
  className: cn(tableClasses.selectedTrigger, "aria-expanded:bg-primary/90"),
3344
2634
  children: [
3345
2635
  labels.selected,
3346
- /* @__PURE__ */ jsx15("span", {
2636
+ /* @__PURE__ */ jsx3("span", {
3347
2637
  className: tableClasses.count,
3348
2638
  children: selectedRows.length
3349
2639
  }),
3350
- /* @__PURE__ */ jsx15(ChevronDown, {})
2640
+ /* @__PURE__ */ jsx3(ChevronDown, {})
3351
2641
  ]
3352
2642
  }),
3353
- /* @__PURE__ */ jsx15(MenubarContent2, {
2643
+ /* @__PURE__ */ jsx3(MenubarContent, {
3354
2644
  align: "end",
3355
2645
  className: "w-max",
3356
- children: /* @__PURE__ */ jsxs9(MenubarGroup, {
2646
+ children: /* @__PURE__ */ jsxs3(MenubarGroup, {
3357
2647
  children: [
3358
- /* @__PURE__ */ jsx15(MenubarLabel2, {
2648
+ /* @__PURE__ */ jsx3(MenubarLabel, {
3359
2649
  children: bulkActions && bulkActions.label ? bulkActions.label : labels.actions
3360
2650
  }),
3361
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3362
- visibleBulkActions.map((action) => /* @__PURE__ */ jsxs9(MenubarItem2, {
2651
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
2652
+ visibleBulkActions.map((action) => /* @__PURE__ */ jsxs3(MenubarItem, {
3363
2653
  onClick: () => action.onClick(selectedRows),
3364
2654
  variant: action.variant ?? "default",
3365
2655
  children: [
@@ -3373,30 +2663,30 @@ var DataTableToolbar = ({
3373
2663
  ]
3374
2664
  }) : null,
3375
2665
  toolbar && toolbar.items,
3376
- features.filtering !== false ? /* @__PURE__ */ jsx15(FilterMenu, {
2666
+ features.filtering !== false ? /* @__PURE__ */ jsx3(FilterMenu, {
3377
2667
  table
3378
2668
  }) : null,
3379
- grouping ? /* @__PURE__ */ jsxs9(MenubarMenu, {
2669
+ grouping ? /* @__PURE__ */ jsxs3(MenubarMenu, {
3380
2670
  children: [
3381
- /* @__PURE__ */ jsxs9(MenubarTrigger2, {
2671
+ /* @__PURE__ */ jsxs3(MenubarTrigger, {
3382
2672
  "aria-label": labels.groupBy,
3383
2673
  children: [
3384
- /* @__PURE__ */ jsx15(Rows3, {}),
3385
- /* @__PURE__ */ jsx15("span", {
2674
+ /* @__PURE__ */ jsx3(Rows3, {}),
2675
+ /* @__PURE__ */ jsx3("span", {
3386
2676
  className: "hidden sm:inline",
3387
2677
  children: labels.groupBy
3388
2678
  })
3389
2679
  ]
3390
2680
  }),
3391
- /* @__PURE__ */ jsx15(MenubarContent2, {
2681
+ /* @__PURE__ */ jsx3(MenubarContent, {
3392
2682
  align: "end",
3393
- children: /* @__PURE__ */ jsxs9(MenubarGroup, {
2683
+ children: /* @__PURE__ */ jsxs3(MenubarGroup, {
3394
2684
  children: [
3395
- /* @__PURE__ */ jsx15(MenubarLabel2, {
2685
+ /* @__PURE__ */ jsx3(MenubarLabel, {
3396
2686
  children: labels.groupBy
3397
2687
  }),
3398
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3399
- grouping.fields.map((field) => /* @__PURE__ */ jsx15(MenubarCheckboxItem2, {
2688
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
2689
+ grouping.fields.map((field) => /* @__PURE__ */ jsx3(MenubarCheckboxItem, {
3400
2690
  checked: store.state.grouping.includes(field.id),
3401
2691
  onCheckedChange: () => send(DataTableMessage.GroupingToggled({ fieldId: field.id })),
3402
2692
  children: field.label
@@ -3406,77 +2696,77 @@ var DataTableToolbar = ({
3406
2696
  })
3407
2697
  ]
3408
2698
  }) : null,
3409
- features.sorting !== false ? /* @__PURE__ */ jsx15(SortMenu, {
2699
+ features.sorting !== false ? /* @__PURE__ */ jsx3(SortMenu, {
3410
2700
  table
3411
2701
  }) : null,
3412
- features.gallery ? /* @__PURE__ */ jsx15(ViewMenu, {
2702
+ features.gallery ? /* @__PURE__ */ jsx3(ViewMenu, {
3413
2703
  table
3414
2704
  }) : null,
3415
- features.columnVisibility !== false ? /* @__PURE__ */ jsx15(ColumnMenu, {
2705
+ features.columnVisibility !== false ? /* @__PURE__ */ jsx3(ColumnMenu, {
3416
2706
  table
3417
2707
  }) : null,
3418
- features.refresh ? /* @__PURE__ */ jsx15(MenubarMenu, {
3419
- children: /* @__PURE__ */ jsxs9(MenubarTrigger2, {
2708
+ features.refresh ? /* @__PURE__ */ jsx3(MenubarMenu, {
2709
+ children: /* @__PURE__ */ jsxs3(MenubarTrigger, {
3420
2710
  "aria-label": labels.refresh,
3421
2711
  onClick: features.refresh,
3422
2712
  children: [
3423
- /* @__PURE__ */ jsx15(RefreshCw, {}),
3424
- /* @__PURE__ */ jsx15("span", {
2713
+ /* @__PURE__ */ jsx3(RefreshCw, {}),
2714
+ /* @__PURE__ */ jsx3("span", {
3425
2715
  className: "hidden sm:inline",
3426
2716
  children: labels.refresh
3427
2717
  })
3428
2718
  ]
3429
2719
  })
3430
2720
  }) : null,
3431
- features.export ? /* @__PURE__ */ jsxs9(MenubarMenu, {
2721
+ features.export ? /* @__PURE__ */ jsxs3(MenubarMenu, {
3432
2722
  children: [
3433
- /* @__PURE__ */ jsxs9(MenubarTrigger2, {
2723
+ /* @__PURE__ */ jsxs3(MenubarTrigger, {
3434
2724
  "aria-label": labels.export,
3435
2725
  "aria-busy": exporting,
3436
2726
  disabled: exporting || !canExport,
3437
2727
  children: [
3438
- exporting ? /* @__PURE__ */ jsx15(RefreshCw, {
2728
+ exporting ? /* @__PURE__ */ jsx3(RefreshCw, {
3439
2729
  className: "animate-spin"
3440
- }) : /* @__PURE__ */ jsx15(Download, {}),
3441
- /* @__PURE__ */ jsx15("span", {
2730
+ }) : /* @__PURE__ */ jsx3(Download, {}),
2731
+ /* @__PURE__ */ jsx3("span", {
3442
2732
  className: "hidden sm:inline",
3443
2733
  children: exporting ? labels.loading : labels.export
3444
2734
  })
3445
2735
  ]
3446
2736
  }),
3447
- /* @__PURE__ */ jsx15(MenubarContent2, {
2737
+ /* @__PURE__ */ jsx3(MenubarContent, {
3448
2738
  align: "end",
3449
- children: /* @__PURE__ */ jsxs9(MenubarGroup, {
2739
+ children: /* @__PURE__ */ jsxs3(MenubarGroup, {
3450
2740
  children: [
3451
- /* @__PURE__ */ jsx15(MenubarLabel2, {
2741
+ /* @__PURE__ */ jsx3(MenubarLabel, {
3452
2742
  children: labels.export
3453
2743
  }),
3454
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3455
- builtInExport ? /* @__PURE__ */ jsxs9(Fragment, {
2744
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
2745
+ builtInExport ? /* @__PURE__ */ jsxs3(Fragment, {
3456
2746
  children: [
3457
- /* @__PURE__ */ jsxs9(MenubarItem2, {
2747
+ /* @__PURE__ */ jsxs3(MenubarItem, {
3458
2748
  disabled: exporting || !exportRows.length,
3459
2749
  onClick: () => downloadCsv(exportColumns.map(columnLabel), exportRows.map((row) => exportColumns.map((column) => dataTableValueText(getDataTableExportValue(row, column, store.config.locale) ?? ""))), features.export ? features.export.baseName : "table"),
3460
2750
  children: [
3461
- /* @__PURE__ */ jsx15(FileText, {}),
2751
+ /* @__PURE__ */ jsx3(FileText, {}),
3462
2752
  labels.exportCsv
3463
2753
  ]
3464
2754
  }),
3465
- /* @__PURE__ */ jsxs9(MenubarItem2, {
2755
+ /* @__PURE__ */ jsxs3(MenubarItem, {
3466
2756
  disabled: exporting || !exportRows.length,
3467
2757
  onClick: () => downloadJson(exportRows.map((row) => Object.fromEntries(exportColumns.map((column) => [
3468
2758
  column.id,
3469
2759
  getDataTableExportValue(row, column, store.config.locale)
3470
2760
  ]))), features.export ? features.export.baseName : "table"),
3471
2761
  children: [
3472
- /* @__PURE__ */ jsx15(FileJson, {}),
2762
+ /* @__PURE__ */ jsx3(FileJson, {}),
3473
2763
  labels.exportJson
3474
2764
  ]
3475
2765
  })
3476
2766
  ]
3477
2767
  }) : null,
3478
- builtInExport && exportActions.length ? /* @__PURE__ */ jsx15(MenubarSeparator2, {}) : null,
3479
- exportActions.map((action) => /* @__PURE__ */ jsxs9(MenubarItem2, {
2768
+ builtInExport && exportActions.length ? /* @__PURE__ */ jsx3(MenubarSeparator, {}) : null,
2769
+ exportActions.map((action) => /* @__PURE__ */ jsxs3(MenubarItem, {
3480
2770
  disabled: exporting || action.disabled,
3481
2771
  onClick: () => void runExport(action),
3482
2772
  children: [
@@ -3492,7 +2782,7 @@ var DataTableToolbar = ({
3492
2782
  ]
3493
2783
  })
3494
2784
  }),
3495
- exportFeature && exportFailed ? /* @__PURE__ */ jsx15("p", {
2785
+ exportFeature && exportFailed ? /* @__PURE__ */ jsx3("p", {
3496
2786
  role: "alert",
3497
2787
  className: "text-destructive basis-full text-sm",
3498
2788
  children: labels.exportFailed ?? dataTableMessages(store.config.locale).exportFailed
@@ -3529,26 +2819,26 @@ var FilterEditor = ({
3529
2819
  onChange(decoded.value);
3530
2820
  };
3531
2821
  if (kind === "boolean") {
3532
- return /* @__PURE__ */ jsxs9(MenubarGroup, {
2822
+ return /* @__PURE__ */ jsxs3(MenubarGroup, {
3533
2823
  children: [
3534
- /* @__PURE__ */ jsxs9(MenubarRadioGroup, {
2824
+ /* @__PURE__ */ jsxs3(MenubarRadioGroup, {
3535
2825
  value: current?.kind === "boolean" ? String(current.value) : "",
3536
2826
  onValueChange: (value) => apply({ ...draft, primary: value }),
3537
2827
  children: [
3538
- /* @__PURE__ */ jsx15(MenubarRadioItem2, {
2828
+ /* @__PURE__ */ jsx3(MenubarRadioItem, {
3539
2829
  value: "true",
3540
2830
  closeOnClick: false,
3541
2831
  children: column.colDef.type === "boolean" ? column.colDef.typeOptions?.trueLabel ?? labels.filterTrue : labels.filterTrue
3542
2832
  }),
3543
- /* @__PURE__ */ jsx15(MenubarRadioItem2, {
2833
+ /* @__PURE__ */ jsx3(MenubarRadioItem, {
3544
2834
  value: "false",
3545
2835
  closeOnClick: false,
3546
2836
  children: column.colDef.type === "boolean" ? column.colDef.typeOptions?.falseLabel ?? labels.filterFalse : labels.filterFalse
3547
2837
  })
3548
2838
  ]
3549
2839
  }),
3550
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3551
- /* @__PURE__ */ jsx15(MenubarItem2, {
2840
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
2841
+ /* @__PURE__ */ jsx3(MenubarItem, {
3552
2842
  closeOnClick: false,
3553
2843
  onClick: () => onChange(undefined),
3554
2844
  children: labels.filterClear
@@ -3560,11 +2850,11 @@ var FilterEditor = ({
3560
2850
  const selected = current?.kind === "values" ? current.values : [];
3561
2851
  const options = getDataTableFilterOptions(rows, column);
3562
2852
  const filteredOptions = options.filter((option) => option.label.toLocaleLowerCase().includes(optionSearch.trim().toLocaleLowerCase()));
3563
- return /* @__PURE__ */ jsxs9(MenubarGroup, {
2853
+ return /* @__PURE__ */ jsxs3(MenubarGroup, {
3564
2854
  children: [
3565
- options.length > 8 ? /* @__PURE__ */ jsx15("div", {
2855
+ options.length > 8 ? /* @__PURE__ */ jsx3("div", {
3566
2856
  className: "p-1",
3567
- children: /* @__PURE__ */ jsx15(Input2, {
2857
+ children: /* @__PURE__ */ jsx3(Input, {
3568
2858
  "aria-label": labels.filter,
3569
2859
  placeholder: labels.filter,
3570
2860
  value: optionSearch,
@@ -3575,7 +2865,7 @@ var FilterEditor = ({
3575
2865
  }
3576
2866
  })
3577
2867
  }) : null,
3578
- filteredOptions.map((option) => /* @__PURE__ */ jsxs9(MenubarCheckboxItem2, {
2868
+ filteredOptions.map((option) => /* @__PURE__ */ jsxs3(MenubarCheckboxItem, {
3579
2869
  checked: selected.includes(option.value),
3580
2870
  closeOnClick: false,
3581
2871
  onCheckedChange: (checked) => {
@@ -3586,23 +2876,23 @@ var FilterEditor = ({
3586
2876
  onChange(undefined);
3587
2877
  },
3588
2878
  children: [
3589
- /* @__PURE__ */ jsx15("span", {
2879
+ /* @__PURE__ */ jsx3("span", {
3590
2880
  className: "min-w-0 flex-1 truncate",
3591
2881
  children: option.label
3592
2882
  }),
3593
- option.count !== undefined ? /* @__PURE__ */ jsx15(Badge, {
2883
+ option.count !== undefined ? /* @__PURE__ */ jsx3(Badge, {
3594
2884
  variant: "secondary",
3595
2885
  className: "ml-auto shrink-0",
3596
2886
  children: option.count
3597
2887
  }) : null
3598
2888
  ]
3599
2889
  }, option.value)),
3600
- !filteredOptions.length ? /* @__PURE__ */ jsx15("div", {
2890
+ !filteredOptions.length ? /* @__PURE__ */ jsx3("div", {
3601
2891
  className: "text-muted-foreground px-2 py-1.5 text-sm",
3602
2892
  children: labels.empty
3603
2893
  }) : null,
3604
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3605
- /* @__PURE__ */ jsx15(MenubarItem2, {
2894
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
2895
+ /* @__PURE__ */ jsx3(MenubarItem, {
3606
2896
  closeOnClick: false,
3607
2897
  onClick: () => onChange(undefined),
3608
2898
  children: labels.filterClear
@@ -3610,7 +2900,7 @@ var FilterEditor = ({
3610
2900
  ]
3611
2901
  });
3612
2902
  }
3613
- return /* @__PURE__ */ jsxs9("form", {
2903
+ return /* @__PURE__ */ jsxs3("form", {
3614
2904
  className: "flex flex-col gap-3 p-2",
3615
2905
  onKeyDown: (event) => {
3616
2906
  if (event.key !== "Escape")
@@ -3621,15 +2911,15 @@ var FilterEditor = ({
3621
2911
  apply(draft);
3622
2912
  },
3623
2913
  children: [
3624
- /* @__PURE__ */ jsxs9(FieldGroup, {
2914
+ /* @__PURE__ */ jsxs3(FieldGroup, {
3625
2915
  children: [
3626
- kind === "text" ? /* @__PURE__ */ jsxs9(Field, {
2916
+ kind === "text" ? /* @__PURE__ */ jsxs3(Field, {
3627
2917
  children: [
3628
- /* @__PURE__ */ jsx15(FieldLabel, {
2918
+ /* @__PURE__ */ jsx3(FieldLabel, {
3629
2919
  htmlFor: `${inputId}-operator`,
3630
2920
  children: labels.filterOperator
3631
2921
  }),
3632
- /* @__PURE__ */ jsxs9(Select, {
2922
+ /* @__PURE__ */ jsxs3(Select2, {
3633
2923
  items: operatorOptions,
3634
2924
  value: operator,
3635
2925
  onValueChange: (value) => {
@@ -3638,13 +2928,13 @@ var FilterEditor = ({
3638
2928
  setDraft({ ...draft, operator: decoded.value });
3639
2929
  },
3640
2930
  children: [
3641
- /* @__PURE__ */ jsx15(SelectTrigger, {
2931
+ /* @__PURE__ */ jsx3(SelectTrigger2, {
3642
2932
  id: `${inputId}-operator`,
3643
- children: /* @__PURE__ */ jsx15(SelectValue, {})
2933
+ children: /* @__PURE__ */ jsx3(SelectValue2, {})
3644
2934
  }),
3645
- /* @__PURE__ */ jsx15(SelectContent2, {
3646
- children: /* @__PURE__ */ jsx15(SelectGroup, {
3647
- children: operatorOptions.map((option) => /* @__PURE__ */ jsx15(SelectItem, {
2935
+ /* @__PURE__ */ jsx3(SelectContent2, {
2936
+ children: /* @__PURE__ */ jsx3(SelectGroup, {
2937
+ children: operatorOptions.map((option) => /* @__PURE__ */ jsx3(SelectItem2, {
3648
2938
  value: option.value,
3649
2939
  children: option.label
3650
2940
  }, option.value))
@@ -3654,14 +2944,14 @@ var FilterEditor = ({
3654
2944
  })
3655
2945
  ]
3656
2946
  }) : null,
3657
- /* @__PURE__ */ jsxs9(Field, {
2947
+ /* @__PURE__ */ jsxs3(Field, {
3658
2948
  "data-invalid": invalid || undefined,
3659
2949
  children: [
3660
- /* @__PURE__ */ jsx15(FieldLabel, {
2950
+ /* @__PURE__ */ jsx3(FieldLabel, {
3661
2951
  htmlFor: `${inputId}-primary`,
3662
2952
  children: kind === "text" ? labels.filterValue : kind === "date" ? labels.filterFrom : labels.filterMin
3663
2953
  }),
3664
- /* @__PURE__ */ jsx15(Input2, {
2954
+ /* @__PURE__ */ jsx3(Input, {
3665
2955
  id: `${inputId}-primary`,
3666
2956
  type: kind === "text" ? "text" : kind === "date" ? "date" : "number",
3667
2957
  step: kind === "number" ? "any" : undefined,
@@ -3674,14 +2964,14 @@ var FilterEditor = ({
3674
2964
  })
3675
2965
  ]
3676
2966
  }),
3677
- kind !== "text" ? /* @__PURE__ */ jsxs9(Field, {
2967
+ kind !== "text" ? /* @__PURE__ */ jsxs3(Field, {
3678
2968
  "data-invalid": invalid || undefined,
3679
2969
  children: [
3680
- /* @__PURE__ */ jsx15(FieldLabel, {
2970
+ /* @__PURE__ */ jsx3(FieldLabel, {
3681
2971
  htmlFor: `${inputId}-secondary`,
3682
2972
  children: kind === "date" ? labels.filterTo : labels.filterMax
3683
2973
  }),
3684
- /* @__PURE__ */ jsx15(Input2, {
2974
+ /* @__PURE__ */ jsx3(Input, {
3685
2975
  id: `${inputId}-secondary`,
3686
2976
  type: kind === "date" ? "date" : "number",
3687
2977
  step: kind === "number" ? "any" : undefined,
@@ -3696,20 +2986,20 @@ var FilterEditor = ({
3696
2986
  }) : null
3697
2987
  ]
3698
2988
  }),
3699
- invalid ? /* @__PURE__ */ jsx15("p", {
2989
+ invalid ? /* @__PURE__ */ jsx3("p", {
3700
2990
  role: "alert",
3701
2991
  className: "text-destructive text-sm",
3702
2992
  children: labels.filterInvalid
3703
2993
  }) : null,
3704
- /* @__PURE__ */ jsxs9("div", {
2994
+ /* @__PURE__ */ jsxs3("div", {
3705
2995
  className: "flex gap-2",
3706
2996
  children: [
3707
- /* @__PURE__ */ jsx15(Button, {
2997
+ /* @__PURE__ */ jsx3(Button2, {
3708
2998
  type: "submit",
3709
2999
  size: "sm",
3710
3000
  children: labels.filterApply
3711
3001
  }),
3712
- /* @__PURE__ */ jsx15(Button, {
3002
+ /* @__PURE__ */ jsx3(Button2, {
3713
3003
  type: "button",
3714
3004
  size: "sm",
3715
3005
  variant: "outline",
@@ -3738,45 +3028,45 @@ var FilterMenu = ({
3738
3028
  return null;
3739
3029
  const filters = store.state.filters ?? [];
3740
3030
  const update = (id, filter) => send(DataTableMessage.ColumnFilterChanged({ id, filter: filter ?? null }));
3741
- return /* @__PURE__ */ jsxs9(MenubarMenu, {
3031
+ return /* @__PURE__ */ jsxs3(MenubarMenu, {
3742
3032
  children: [
3743
- /* @__PURE__ */ jsxs9(MenubarTrigger2, {
3033
+ /* @__PURE__ */ jsxs3(MenubarTrigger, {
3744
3034
  "aria-label": store.config.labels.filters,
3745
3035
  children: [
3746
- /* @__PURE__ */ jsx15(ListFilter, {}),
3747
- /* @__PURE__ */ jsx15("span", {
3036
+ /* @__PURE__ */ jsx3(ListFilter, {}),
3037
+ /* @__PURE__ */ jsx3("span", {
3748
3038
  className: "hidden sm:inline",
3749
3039
  children: store.config.labels.filters
3750
3040
  }),
3751
- filters.length ? /* @__PURE__ */ jsx15(Badge, {
3041
+ filters.length ? /* @__PURE__ */ jsx3(Badge, {
3752
3042
  variant: "secondary",
3753
3043
  children: filters.length
3754
3044
  }) : null
3755
3045
  ]
3756
3046
  }),
3757
- /* @__PURE__ */ jsx15(MenubarContent2, {
3047
+ /* @__PURE__ */ jsx3(MenubarContent, {
3758
3048
  align: "end",
3759
3049
  className: "w-80 max-w-[calc(100vw-2rem)]",
3760
- children: /* @__PURE__ */ jsxs9(MenubarGroup, {
3050
+ children: /* @__PURE__ */ jsxs3(MenubarGroup, {
3761
3051
  children: [
3762
- /* @__PURE__ */ jsx15(MenubarLabel2, {
3052
+ /* @__PURE__ */ jsx3(MenubarLabel, {
3763
3053
  children: store.config.labels.filters
3764
3054
  }),
3765
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3766
- columns.map(({ column, label }) => /* @__PURE__ */ jsxs9(MenubarSub, {
3055
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
3056
+ columns.map(({ column, label }) => /* @__PURE__ */ jsxs3(MenubarSub, {
3767
3057
  children: [
3768
- /* @__PURE__ */ jsxs9(MenubarSubTrigger2, {
3058
+ /* @__PURE__ */ jsxs3(MenubarSubTrigger, {
3769
3059
  children: [
3770
- /* @__PURE__ */ jsx15("span", {
3060
+ /* @__PURE__ */ jsx3("span", {
3771
3061
  className: "min-w-0 flex-1 truncate",
3772
3062
  children: label
3773
3063
  }),
3774
- filters.some((filter) => filter.id === column.id) ? /* @__PURE__ */ jsx15(Check, {}) : null
3064
+ filters.some((filter) => filter.id === column.id) ? /* @__PURE__ */ jsx3(Check, {}) : null
3775
3065
  ]
3776
3066
  }),
3777
- /* @__PURE__ */ jsx15(MenubarSubContent2, {
3067
+ /* @__PURE__ */ jsx3(MenubarSubContent, {
3778
3068
  className: "w-80 max-w-[calc(100vw-2rem)]",
3779
- children: /* @__PURE__ */ jsx15(FilterEditor, {
3069
+ children: /* @__PURE__ */ jsx3(FilterEditor, {
3780
3070
  column,
3781
3071
  rows: model.rows,
3782
3072
  current: filters.find((filter) => filter.id === column.id),
@@ -3786,13 +3076,13 @@ var FilterMenu = ({
3786
3076
  })
3787
3077
  ]
3788
3078
  }, column.id)),
3789
- filters.length ? /* @__PURE__ */ jsxs9(Fragment, {
3079
+ filters.length ? /* @__PURE__ */ jsxs3(Fragment, {
3790
3080
  children: [
3791
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3792
- /* @__PURE__ */ jsxs9(MenubarItem2, {
3081
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
3082
+ /* @__PURE__ */ jsxs3(MenubarItem, {
3793
3083
  onClick: () => send(DataTableMessage.FiltersCleared()),
3794
3084
  children: [
3795
- /* @__PURE__ */ jsx15(X, {}),
3085
+ /* @__PURE__ */ jsx3(X, {}),
3796
3086
  store.config.labels.filtersClear
3797
3087
  ]
3798
3088
  })
@@ -3819,65 +3109,65 @@ var SortMenu = ({
3819
3109
  return null;
3820
3110
  const current = store.state.sort?.[0];
3821
3111
  const sort = (id, direction) => send(DataTableMessage.SortRequested({ columnId: id, direction }));
3822
- return /* @__PURE__ */ jsxs9(MenubarMenu, {
3112
+ return /* @__PURE__ */ jsxs3(MenubarMenu, {
3823
3113
  children: [
3824
- /* @__PURE__ */ jsxs9(MenubarTrigger2, {
3114
+ /* @__PURE__ */ jsxs3(MenubarTrigger, {
3825
3115
  "aria-label": store.config.labels.sortBy,
3826
3116
  children: [
3827
- current ? current.direction === "desc" ? /* @__PURE__ */ jsx15(ArrowDown, {}) : /* @__PURE__ */ jsx15(ArrowUp, {}) : /* @__PURE__ */ jsx15(ChevronsUpDown, {}),
3828
- /* @__PURE__ */ jsx15("span", {
3117
+ current ? current.direction === "desc" ? /* @__PURE__ */ jsx3(ArrowDown, {}) : /* @__PURE__ */ jsx3(ArrowUp, {}) : /* @__PURE__ */ jsx3(ChevronsUpDown, {}),
3118
+ /* @__PURE__ */ jsx3("span", {
3829
3119
  className: "hidden sm:inline",
3830
3120
  children: store.config.labels.sortBy
3831
3121
  })
3832
3122
  ]
3833
3123
  }),
3834
- /* @__PURE__ */ jsx15(MenubarContent2, {
3124
+ /* @__PURE__ */ jsx3(MenubarContent, {
3835
3125
  align: "end",
3836
3126
  className: "w-52",
3837
- children: /* @__PURE__ */ jsxs9(MenubarGroup, {
3127
+ children: /* @__PURE__ */ jsxs3(MenubarGroup, {
3838
3128
  children: [
3839
- /* @__PURE__ */ jsx15(MenubarLabel2, {
3129
+ /* @__PURE__ */ jsx3(MenubarLabel, {
3840
3130
  children: store.config.labels.sortBy
3841
3131
  }),
3842
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3132
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
3843
3133
  columns.map((column) => {
3844
3134
  const sortState = store.state.sort?.find(({ id }) => id === column.id);
3845
- return /* @__PURE__ */ jsxs9(MenubarSub, {
3135
+ return /* @__PURE__ */ jsxs3(MenubarSub, {
3846
3136
  children: [
3847
- /* @__PURE__ */ jsxs9(MenubarSubTrigger2, {
3137
+ /* @__PURE__ */ jsxs3(MenubarSubTrigger, {
3848
3138
  children: [
3849
- sortState ? sortState.direction === "desc" ? /* @__PURE__ */ jsx15(ArrowDown, {}) : /* @__PURE__ */ jsx15(ArrowUp, {}) : null,
3139
+ sortState ? sortState.direction === "desc" ? /* @__PURE__ */ jsx3(ArrowDown, {}) : /* @__PURE__ */ jsx3(ArrowUp, {}) : null,
3850
3140
  columnLabel(column)
3851
3141
  ]
3852
3142
  }),
3853
- /* @__PURE__ */ jsxs9(MenubarSubContent2, {
3143
+ /* @__PURE__ */ jsxs3(MenubarSubContent, {
3854
3144
  children: [
3855
- /* @__PURE__ */ jsxs9(MenubarItem2, {
3145
+ /* @__PURE__ */ jsxs3(MenubarItem, {
3856
3146
  onClick: () => sort(column.id, "asc"),
3857
3147
  children: [
3858
- /* @__PURE__ */ jsx15(ArrowUp, {}),
3148
+ /* @__PURE__ */ jsx3(ArrowUp, {}),
3859
3149
  " ",
3860
3150
  store.config.labels.sortAsc
3861
3151
  ]
3862
3152
  }),
3863
- /* @__PURE__ */ jsxs9(MenubarItem2, {
3153
+ /* @__PURE__ */ jsxs3(MenubarItem, {
3864
3154
  onClick: () => sort(column.id, "desc"),
3865
3155
  children: [
3866
- /* @__PURE__ */ jsx15(ArrowDown, {}),
3156
+ /* @__PURE__ */ jsx3(ArrowDown, {}),
3867
3157
  " ",
3868
3158
  store.config.labels.sortDesc
3869
3159
  ]
3870
3160
  }),
3871
- sortState ? /* @__PURE__ */ jsxs9(Fragment, {
3161
+ sortState ? /* @__PURE__ */ jsxs3(Fragment, {
3872
3162
  children: [
3873
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3874
- /* @__PURE__ */ jsxs9(MenubarItem2, {
3163
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
3164
+ /* @__PURE__ */ jsxs3(MenubarItem, {
3875
3165
  onClick: () => send(DataTableMessage.SortRequested({
3876
3166
  columnId: column.id,
3877
3167
  direction: null
3878
3168
  })),
3879
3169
  children: [
3880
- /* @__PURE__ */ jsx15(X, {}),
3170
+ /* @__PURE__ */ jsx3(X, {}),
3881
3171
  " ",
3882
3172
  store.config.labels.sortClear
3883
3173
  ]
@@ -3899,27 +3189,27 @@ var ViewMenu = ({
3899
3189
  table
3900
3190
  }) => {
3901
3191
  const [store, send] = table;
3902
- return /* @__PURE__ */ jsxs9(MenubarMenu, {
3192
+ return /* @__PURE__ */ jsxs3(MenubarMenu, {
3903
3193
  children: [
3904
- /* @__PURE__ */ jsxs9(MenubarTrigger2, {
3194
+ /* @__PURE__ */ jsxs3(MenubarTrigger, {
3905
3195
  "aria-label": store.config.labels.view,
3906
3196
  children: [
3907
- store.state.view === "gallery" ? /* @__PURE__ */ jsx15(LayoutGrid, {}) : /* @__PURE__ */ jsx15(Rows3, {}),
3908
- /* @__PURE__ */ jsx15("span", {
3197
+ store.state.view === "gallery" ? /* @__PURE__ */ jsx3(LayoutGrid, {}) : /* @__PURE__ */ jsx3(Rows3, {}),
3198
+ /* @__PURE__ */ jsx3("span", {
3909
3199
  className: "hidden sm:inline",
3910
3200
  children: store.config.labels.view
3911
3201
  })
3912
3202
  ]
3913
3203
  }),
3914
- /* @__PURE__ */ jsx15(MenubarContent2, {
3204
+ /* @__PURE__ */ jsx3(MenubarContent, {
3915
3205
  align: "end",
3916
- children: /* @__PURE__ */ jsxs9(MenubarGroup, {
3206
+ children: /* @__PURE__ */ jsxs3(MenubarGroup, {
3917
3207
  children: [
3918
- /* @__PURE__ */ jsx15(MenubarLabel2, {
3208
+ /* @__PURE__ */ jsx3(MenubarLabel, {
3919
3209
  children: store.config.labels.view
3920
3210
  }),
3921
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3922
- /* @__PURE__ */ jsxs9(MenubarRadioGroup, {
3211
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
3212
+ /* @__PURE__ */ jsxs3(MenubarRadioGroup, {
3923
3213
  onValueChange: (input) => {
3924
3214
  const view = Schema6.decodeUnknownOption(DataTableViewSchema)(input);
3925
3215
  if (Option4.isSome(view)) {
@@ -3928,18 +3218,18 @@ var ViewMenu = ({
3928
3218
  },
3929
3219
  value: store.state.view,
3930
3220
  children: [
3931
- /* @__PURE__ */ jsxs9(MenubarRadioItem2, {
3221
+ /* @__PURE__ */ jsxs3(MenubarRadioItem, {
3932
3222
  value: "table",
3933
3223
  children: [
3934
- /* @__PURE__ */ jsx15(Rows3, {}),
3224
+ /* @__PURE__ */ jsx3(Rows3, {}),
3935
3225
  " ",
3936
3226
  store.config.labels.tableView
3937
3227
  ]
3938
3228
  }),
3939
- /* @__PURE__ */ jsxs9(MenubarRadioItem2, {
3229
+ /* @__PURE__ */ jsxs3(MenubarRadioItem, {
3940
3230
  value: "gallery",
3941
3231
  children: [
3942
- /* @__PURE__ */ jsx15(LayoutGrid, {}),
3232
+ /* @__PURE__ */ jsx3(LayoutGrid, {}),
3943
3233
  " ",
3944
3234
  store.config.labels.galleryView
3945
3235
  ]
@@ -3959,27 +3249,27 @@ var ColumnMenu = ({
3959
3249
  const columns = deriveModel(store).columns.filter(({ colDef }) => colDef.hideable !== false);
3960
3250
  if (!columns.length)
3961
3251
  return null;
3962
- return /* @__PURE__ */ jsxs9(MenubarMenu, {
3252
+ return /* @__PURE__ */ jsxs3(MenubarMenu, {
3963
3253
  children: [
3964
- /* @__PURE__ */ jsxs9(MenubarTrigger2, {
3254
+ /* @__PURE__ */ jsxs3(MenubarTrigger, {
3965
3255
  "aria-label": store.config.labels.columns,
3966
3256
  children: [
3967
- /* @__PURE__ */ jsx15(Settings2, {}),
3968
- /* @__PURE__ */ jsx15("span", {
3257
+ /* @__PURE__ */ jsx3(Settings2, {}),
3258
+ /* @__PURE__ */ jsx3("span", {
3969
3259
  className: "hidden sm:inline",
3970
3260
  children: store.config.labels.columns
3971
3261
  })
3972
3262
  ]
3973
3263
  }),
3974
- /* @__PURE__ */ jsx15(MenubarContent2, {
3264
+ /* @__PURE__ */ jsx3(MenubarContent, {
3975
3265
  align: "end",
3976
- children: /* @__PURE__ */ jsxs9(MenubarGroup, {
3266
+ children: /* @__PURE__ */ jsxs3(MenubarGroup, {
3977
3267
  children: [
3978
- /* @__PURE__ */ jsx15(MenubarLabel2, {
3268
+ /* @__PURE__ */ jsx3(MenubarLabel, {
3979
3269
  children: store.config.labels.columns
3980
3270
  }),
3981
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3982
- columns.map((column) => /* @__PURE__ */ jsx15(MenubarCheckboxItem2, {
3271
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
3272
+ columns.map((column) => /* @__PURE__ */ jsx3(MenubarCheckboxItem, {
3983
3273
  checked: store.state.columnVisibility[column.id] !== false,
3984
3274
  onCheckedChange: (visible) => send(DataTableMessage.ColumnVisibilityChanged({ id: column.id, visible })),
3985
3275
  children: columnLabel(column)
@@ -4015,7 +3305,7 @@ var ResizeHandle = ({
4015
3305
  send(DataTableMessage.ResizeMoved({ x: event.clientX, pointerId: event.pointerId }));
4016
3306
  };
4017
3307
  const reset = (event) => send(DataTableMessage.ResizeEnded({ pointerId: event.pointerId }));
4018
- return /* @__PURE__ */ jsx15("button", {
3308
+ return /* @__PURE__ */ jsx3("button", {
4019
3309
  "aria-label": store.config.labels.resizeColumn(columnLabel(column)),
4020
3310
  "aria-orientation": "vertical",
4021
3311
  "aria-valuemax": max,
@@ -4137,9 +3427,9 @@ var DragHandle = ({
4137
3427
  reordering.onReorder(reorderDataTableRows(model.rows, rowId, target.id));
4138
3428
  }
4139
3429
  };
4140
- return /* @__PURE__ */ jsxs9(Fragment, {
3430
+ return /* @__PURE__ */ jsxs3(Fragment, {
4141
3431
  children: [
4142
- /* @__PURE__ */ jsx15(Button, {
3432
+ /* @__PURE__ */ jsx3(Button2, {
4143
3433
  "aria-label": store.config.features.reordering && store.config.features.reordering.handleLabel ? store.config.features.reordering.handleLabel : store.config.labels.reorder,
4144
3434
  className: "size-8 cursor-grab touch-none active:cursor-grabbing",
4145
3435
  onClick: (event) => event.stopPropagation(),
@@ -4157,9 +3447,9 @@ var DragHandle = ({
4157
3447
  onPointerUp: finish,
4158
3448
  size: "icon",
4159
3449
  variant: "ghost",
4160
- children: /* @__PURE__ */ jsx15(GripVertical, {})
3450
+ children: /* @__PURE__ */ jsx3(GripVertical, {})
4161
3451
  }),
4162
- overlay ? createPortal(/* @__PURE__ */ jsx15("div", {
3452
+ overlay ? createPortal(/* @__PURE__ */ jsx3("div", {
4163
3453
  "aria-hidden": "true",
4164
3454
  className: "bg-background pointer-events-none fixed z-[100] rounded-md border px-3 py-2 text-sm shadow-lg",
4165
3455
  style: { left: overlay.x + 12, top: overlay.y + 12 },
@@ -4181,7 +3471,7 @@ var TableDataRow = ({
4181
3471
  const selection = store.config.features.selection;
4182
3472
  const selectable = !!selection && (selection.isRowSelectable?.(row.data) ?? true);
4183
3473
  const draggable = canDragRows(store);
4184
- return /* @__PURE__ */ jsxs9(TableRow2, {
3474
+ return /* @__PURE__ */ jsxs3(TableRow, {
4185
3475
  ref: measureRef,
4186
3476
  "data-index": virtualIndex,
4187
3477
  "aria-rowindex": virtualIndex === undefined ? undefined : virtualIndex + 2,
@@ -4197,12 +3487,12 @@ var TableDataRow = ({
4197
3487
  },
4198
3488
  tabIndex: store.config.onRowClicked ? 0 : undefined,
4199
3489
  children: [
4200
- selection ? /* @__PURE__ */ jsx15(TableCell2, {
3490
+ selection ? /* @__PURE__ */ jsx3(TableCell, {
4201
3491
  className: tableClasses.selectionCell,
4202
3492
  onClick: (event) => event.stopPropagation(),
4203
- children: /* @__PURE__ */ jsx15("div", {
3493
+ children: /* @__PURE__ */ jsx3("div", {
4204
3494
  className: tableClasses.selectionCenter,
4205
- children: /* @__PURE__ */ jsx15(Checkbox, {
3495
+ children: /* @__PURE__ */ jsx3(Checkbox, {
4206
3496
  "aria-label": store.config.labels.selectRow,
4207
3497
  checked: !!store.state.rowSelection[row.id],
4208
3498
  disabled: !selectable,
@@ -4210,26 +3500,26 @@ var TableDataRow = ({
4210
3500
  })
4211
3501
  })
4212
3502
  }) : null,
4213
- draggable ? /* @__PURE__ */ jsx15(TableCell2, {
3503
+ draggable ? /* @__PURE__ */ jsx3(TableCell, {
4214
3504
  className: "w-10 pr-0",
4215
- children: /* @__PURE__ */ jsx15(DragHandle, {
3505
+ children: /* @__PURE__ */ jsx3(DragHandle, {
4216
3506
  table
4217
3507
  })
4218
3508
  }) : null,
4219
- model.visibleColumns.map((column) => /* @__PURE__ */ jsx15(TableCell2, {
3509
+ model.visibleColumns.map((column) => /* @__PURE__ */ jsx3(TableCell, {
4220
3510
  className: cn(tableClasses.cell, "min-w-24 has-[[data-slot=data-table-boolean-cell]]:relative has-[[data-slot=data-table-boolean-cell]]:p-0 has-[[data-slot=data-table-list-cell]]:relative has-[[data-slot=data-table-list-cell]]:p-0", column.colDef.truncate ? "whitespace-nowrap" : "whitespace-normal"),
4221
3511
  style: { width: column.width },
4222
- children: /* @__PURE__ */ jsx15("div", {
3512
+ children: /* @__PURE__ */ jsx3("div", {
4223
3513
  className: cn(tableClasses.cellContent, column.colDef.truncate && "truncate"),
4224
3514
  children: renderCell(row, column, store.config.locale, store.config.labels)
4225
3515
  })
4226
3516
  }, column.id)),
4227
- hasRowActionMenu(store) ? /* @__PURE__ */ jsx15(TableCell2, {
3517
+ hasRowActionMenu(store) ? /* @__PURE__ */ jsx3(TableCell, {
4228
3518
  className: cn(tableClasses.actionsCell, "group-data-[state=selected]/row:bg-muted"),
4229
3519
  onClick: (event) => event.stopPropagation(),
4230
- children: /* @__PURE__ */ jsx15("div", {
3520
+ children: /* @__PURE__ */ jsx3("div", {
4231
3521
  className: tableClasses.actionsAlign,
4232
- children: /* @__PURE__ */ jsx15(DataTableRowActionMenu, {
3522
+ children: /* @__PURE__ */ jsx3(DataTableRowActionMenu, {
4233
3523
  row,
4234
3524
  table
4235
3525
  })
@@ -4246,27 +3536,27 @@ var GroupActions = ({
4246
3536
  const visible = actions?.filter((action) => !action.visible || action.visible(groupId));
4247
3537
  if (!visible?.length)
4248
3538
  return null;
4249
- return /* @__PURE__ */ jsxs9(DropdownMenu, {
3539
+ return /* @__PURE__ */ jsxs3(DropdownMenu, {
4250
3540
  children: [
4251
- /* @__PURE__ */ jsx15(DropdownMenuTrigger2, {
3541
+ /* @__PURE__ */ jsx3(DropdownMenuTrigger, {
4252
3542
  onClick: (event) => event.stopPropagation(),
4253
- render: /* @__PURE__ */ jsxs9(Button, {
3543
+ render: /* @__PURE__ */ jsxs3(Button2, {
4254
3544
  size: "icon-sm",
4255
3545
  variant: "ghost",
4256
3546
  children: [
4257
- /* @__PURE__ */ jsx15("span", {
3547
+ /* @__PURE__ */ jsx3("span", {
4258
3548
  className: "sr-only",
4259
3549
  children: title
4260
3550
  }),
4261
- /* @__PURE__ */ jsx15(MoreHorizontal, {})
3551
+ /* @__PURE__ */ jsx3(MoreHorizontal, {})
4262
3552
  ]
4263
3553
  })
4264
3554
  }),
4265
- /* @__PURE__ */ jsx15(DropdownMenuContent2, {
3555
+ /* @__PURE__ */ jsx3(DropdownMenuContent, {
4266
3556
  align: "end",
4267
3557
  onClick: (event) => event.stopPropagation(),
4268
- children: /* @__PURE__ */ jsx15(DropdownMenuGroup, {
4269
- children: visible.map((action) => /* @__PURE__ */ jsxs9(DropdownMenuItem2, {
3558
+ children: /* @__PURE__ */ jsx3(DropdownMenuGroup, {
3559
+ children: visible.map((action) => /* @__PURE__ */ jsxs3(DropdownMenuItem, {
4270
3560
  onClick: () => action.onClick(groupId),
4271
3561
  variant: action.variant ?? "default",
4272
3562
  children: [
@@ -4290,40 +3580,40 @@ var GroupHeaderRow = ({
4290
3580
  const tableClasses = useContext(DataTableSlotClassesContext);
4291
3581
  const [store, send] = table;
4292
3582
  const collapsed = !!store.state.collapsedGroups[section.key];
4293
- return /* @__PURE__ */ jsx15(TableRow2, {
3583
+ return /* @__PURE__ */ jsx3(TableRow, {
4294
3584
  ref: measureRef,
4295
3585
  "data-index": virtualIndex,
4296
3586
  "aria-rowindex": virtualIndex === undefined ? undefined : virtualIndex + 2,
4297
3587
  className: cn(tableClasses.group, "cursor-pointer"),
4298
3588
  onClick: () => send(DataTableMessage.GroupToggled({ key: section.key })),
4299
- children: /* @__PURE__ */ jsx15(TableCell2, {
3589
+ children: /* @__PURE__ */ jsx3(TableCell, {
4300
3590
  className: "p-0",
4301
3591
  colSpan,
4302
- children: /* @__PURE__ */ jsxs9("div", {
3592
+ children: /* @__PURE__ */ jsxs3("div", {
4303
3593
  className: cn(tableClasses.groupContent, tableClasses.groupSticky),
4304
3594
  children: [
4305
- /* @__PURE__ */ jsxs9("button", {
3595
+ /* @__PURE__ */ jsxs3("button", {
4306
3596
  "aria-expanded": !collapsed,
4307
3597
  className: tableClasses.groupTrigger,
4308
3598
  style: { paddingLeft: section.depth * 20 },
4309
3599
  type: "button",
4310
3600
  children: [
4311
- collapsed ? /* @__PURE__ */ jsx15(ChevronRight2, {
3601
+ collapsed ? /* @__PURE__ */ jsx3(ChevronRight2, {
4312
3602
  className: "size-4 shrink-0"
4313
- }) : /* @__PURE__ */ jsx15(ChevronDown, {
3603
+ }) : /* @__PURE__ */ jsx3(ChevronDown, {
4314
3604
  className: "size-4 shrink-0"
4315
3605
  }),
4316
- /* @__PURE__ */ jsx15("span", {
3606
+ /* @__PURE__ */ jsx3("span", {
4317
3607
  className: "min-w-0 flex-1 truncate",
4318
3608
  children: section.field.renderGroupLabel?.(section.groupId, section.rows.map((row) => row.data)) ?? section.groupId
4319
3609
  })
4320
3610
  ]
4321
3611
  }),
4322
- /* @__PURE__ */ jsx15("span", {
3612
+ /* @__PURE__ */ jsx3("span", {
4323
3613
  className: tableClasses.count,
4324
3614
  children: section.rows.length
4325
3615
  }),
4326
- /* @__PURE__ */ jsx15(GroupActions, {
3616
+ /* @__PURE__ */ jsx3(GroupActions, {
4327
3617
  actions: section.field.actions,
4328
3618
  groupId: section.groupId,
4329
3619
  title: section.field.actionsLabel ?? store.config.labels.actions
@@ -4343,24 +3633,24 @@ var GroupedTable = ({
4343
3633
  const renderSections = (items) => items.flatMap((section) => {
4344
3634
  const collapsed = !!store.state.collapsedGroups[section.key];
4345
3635
  const targetKey = getGroupDropKey(section.field.id, section.groupId);
4346
- const body = /* @__PURE__ */ jsxs9(TableBody2, {
3636
+ const body = /* @__PURE__ */ jsxs3(TableBody, {
4347
3637
  className: "data-[drop-target=true]:outline-primary relative data-[drop-target=true]:z-30 data-[drop-target=true]:outline-2 data-[drop-target=true]:-outline-offset-2 data-[drop-target=true]:[&>tr]:border-transparent data-[drop-target=true]:[&>tr>td:last-child]:z-0",
4348
3638
  "data-table-group": section.field.onMoveToGroup ? targetKey : undefined,
4349
3639
  children: [
4350
- /* @__PURE__ */ jsx15(GroupHeaderRow, {
3640
+ /* @__PURE__ */ jsx3(GroupHeaderRow, {
4351
3641
  table,
4352
3642
  section,
4353
3643
  colSpan: model.visibleColumns.length + extra
4354
3644
  }),
4355
- !collapsed && !section.children.length ? section.rows.length ? section.rows.map((row) => /* @__PURE__ */ jsx15(RowIdContext.Provider, {
3645
+ !collapsed && !section.children.length ? section.rows.length ? section.rows.map((row) => /* @__PURE__ */ jsx3(RowIdContext.Provider, {
4356
3646
  value: row.id,
4357
- children: /* @__PURE__ */ jsx15(TableDataRow, {
3647
+ children: /* @__PURE__ */ jsx3(TableDataRow, {
4358
3648
  row,
4359
3649
  table
4360
3650
  })
4361
3651
  }, `${section.key}:${row.id}`)) : [
4362
- /* @__PURE__ */ jsx15(TableRow2, {
4363
- children: /* @__PURE__ */ jsx15(TableCell2, {
3652
+ /* @__PURE__ */ jsx3(TableRow, {
3653
+ children: /* @__PURE__ */ jsx3(TableCell, {
4364
3654
  className: "text-muted-foreground h-16",
4365
3655
  colSpan: model.visibleColumns.length + extra,
4366
3656
  children: section.field.renderEmptyGroup?.(section.groupId) ?? store.config.labels.empty
@@ -4371,7 +3661,7 @@ var GroupedTable = ({
4371
3661
  }, section.key);
4372
3662
  return !collapsed && section.children.length ? [body, renderSections(section.children)] : [body];
4373
3663
  });
4374
- return /* @__PURE__ */ jsx15(Fragment, {
3664
+ return /* @__PURE__ */ jsx3(Fragment, {
4375
3665
  children: renderSections(sections)
4376
3666
  });
4377
3667
  };
@@ -4390,7 +3680,7 @@ var ColumnHeaderMenu = ({
4390
3680
  const filteringEnabled = store.config.features.filtering !== false && filterColumns.length > 0;
4391
3681
  const ownsFilter = (id) => id === column.id || getDataTableFieldColumns(column).some((field) => field.id === id);
4392
3682
  const activeFilters = (store.state.filters ?? []).filter(({ id }) => ownsFilter(id));
4393
- const filterEditor = (field) => /* @__PURE__ */ jsx15(FilterEditor, {
3683
+ const filterEditor = (field) => /* @__PURE__ */ jsx3(FilterEditor, {
4394
3684
  column: field,
4395
3685
  rows: model.rows,
4396
3686
  current: store.state.filters?.find((filter) => filter.id === field.id),
@@ -4403,20 +3693,20 @@ var ColumnHeaderMenu = ({
4403
3693
  const sort = store.state.sort?.find(({ id }) => ownsSort(id));
4404
3694
  const setSort = (id, direction) => send(DataTableMessage.SortRequested({ columnId: id, direction }));
4405
3695
  const label = columnLabel(column);
4406
- const sortItems = (field) => /* @__PURE__ */ jsxs9(Fragment, {
3696
+ const sortItems = (field) => /* @__PURE__ */ jsxs3(Fragment, {
4407
3697
  children: [
4408
- /* @__PURE__ */ jsxs9(DropdownMenuItem2, {
3698
+ /* @__PURE__ */ jsxs3(DropdownMenuItem, {
4409
3699
  onClick: () => setSort(field.id, "asc"),
4410
3700
  children: [
4411
- /* @__PURE__ */ jsx15(ArrowUp, {}),
3701
+ /* @__PURE__ */ jsx3(ArrowUp, {}),
4412
3702
  " ",
4413
3703
  store.config.labels.sortAsc
4414
3704
  ]
4415
3705
  }),
4416
- /* @__PURE__ */ jsxs9(DropdownMenuItem2, {
3706
+ /* @__PURE__ */ jsxs3(DropdownMenuItem, {
4417
3707
  onClick: () => setSort(field.id, "desc"),
4418
3708
  children: [
4419
- /* @__PURE__ */ jsx15(ArrowDown, {}),
3709
+ /* @__PURE__ */ jsx3(ArrowDown, {}),
4420
3710
  " ",
4421
3711
  store.config.labels.sortDesc
4422
3712
  ]
@@ -4424,81 +3714,81 @@ var ColumnHeaderMenu = ({
4424
3714
  ]
4425
3715
  });
4426
3716
  if (!sortingEnabled && !hidingEnabled && !filteringEnabled) {
4427
- return /* @__PURE__ */ jsx15("div", {
3717
+ return /* @__PURE__ */ jsx3("div", {
4428
3718
  className: "truncate px-2",
4429
3719
  children: column.colDef.headerName
4430
3720
  });
4431
3721
  }
4432
- return /* @__PURE__ */ jsxs9(DropdownMenu, {
3722
+ return /* @__PURE__ */ jsxs3(DropdownMenu, {
4433
3723
  children: [
4434
- /* @__PURE__ */ jsx15(DropdownMenuTrigger2, {
4435
- render: /* @__PURE__ */ jsxs9(Button, {
3724
+ /* @__PURE__ */ jsx3(DropdownMenuTrigger, {
3725
+ render: /* @__PURE__ */ jsxs3(Button2, {
4436
3726
  "aria-label": label,
4437
3727
  "aria-description": activeFilters.length ? `${store.config.labels.filters}: ${activeFilters.length}` : undefined,
4438
3728
  className: tableClasses.headerTrigger,
4439
3729
  variant: "ghost",
4440
3730
  children: [
4441
- /* @__PURE__ */ jsx15("span", {
3731
+ /* @__PURE__ */ jsx3("span", {
4442
3732
  className: "truncate",
4443
3733
  children: column.colDef.headerName
4444
3734
  }),
4445
- activeFilters.length ? /* @__PURE__ */ jsx15(ListFilter, {}) : null,
4446
- sort ? sort.direction === "desc" ? /* @__PURE__ */ jsx15(ArrowDown, {}) : /* @__PURE__ */ jsx15(ArrowUp, {}) : null
3735
+ activeFilters.length ? /* @__PURE__ */ jsx3(ListFilter, {}) : null,
3736
+ sort ? sort.direction === "desc" ? /* @__PURE__ */ jsx3(ArrowDown, {}) : /* @__PURE__ */ jsx3(ArrowUp, {}) : null
4447
3737
  ]
4448
3738
  })
4449
3739
  }),
4450
- /* @__PURE__ */ jsx15(DropdownMenuContent2, {
3740
+ /* @__PURE__ */ jsx3(DropdownMenuContent, {
4451
3741
  align: "start",
4452
3742
  className: "w-48",
4453
- children: /* @__PURE__ */ jsxs9(DropdownMenuGroup, {
3743
+ children: /* @__PURE__ */ jsxs3(DropdownMenuGroup, {
4454
3744
  children: [
4455
- sortingEnabled ? /* @__PURE__ */ jsxs9(Fragment, {
3745
+ sortingEnabled ? /* @__PURE__ */ jsxs3(Fragment, {
4456
3746
  children: [
4457
- column.colDef.fields?.length ? sortColumns.map((field) => /* @__PURE__ */ jsxs9(DropdownMenuSub, {
3747
+ column.colDef.fields?.length ? sortColumns.map((field) => /* @__PURE__ */ jsxs3(DropdownMenuSub, {
4458
3748
  children: [
4459
- /* @__PURE__ */ jsx15(DropdownMenuSubTrigger2, {
3749
+ /* @__PURE__ */ jsx3(DropdownMenuSubTrigger, {
4460
3750
  children: columnLabel(field)
4461
3751
  }),
4462
- /* @__PURE__ */ jsx15(DropdownMenuSubContent2, {
4463
- children: /* @__PURE__ */ jsx15(DropdownMenuGroup, {
3752
+ /* @__PURE__ */ jsx3(DropdownMenuSubContent, {
3753
+ children: /* @__PURE__ */ jsx3(DropdownMenuGroup, {
4464
3754
  children: sortItems(field)
4465
3755
  })
4466
3756
  })
4467
3757
  ]
4468
3758
  }, field.id)) : sortItems(column),
4469
- sort ? /* @__PURE__ */ jsxs9(DropdownMenuItem2, {
3759
+ sort ? /* @__PURE__ */ jsxs3(DropdownMenuItem, {
4470
3760
  onClick: () => send(DataTableMessage.ColumnSortCleared({ id: column.id })),
4471
3761
  children: [
4472
- /* @__PURE__ */ jsx15(X, {}),
3762
+ /* @__PURE__ */ jsx3(X, {}),
4473
3763
  " ",
4474
3764
  store.config.labels.sortClear
4475
3765
  ]
4476
3766
  }) : null
4477
3767
  ]
4478
3768
  }) : null,
4479
- sortingEnabled && filteringEnabled ? /* @__PURE__ */ jsx15(DropdownMenuSeparator2, {}) : null,
4480
- filteringEnabled ? /* @__PURE__ */ jsxs9(Fragment, {
3769
+ sortingEnabled && filteringEnabled ? /* @__PURE__ */ jsx3(DropdownMenuSeparator, {}) : null,
3770
+ filteringEnabled ? /* @__PURE__ */ jsxs3(Fragment, {
4481
3771
  children: [
4482
- /* @__PURE__ */ jsxs9(DropdownMenuSub, {
3772
+ /* @__PURE__ */ jsxs3(DropdownMenuSub, {
4483
3773
  children: [
4484
- /* @__PURE__ */ jsxs9(DropdownMenuSubTrigger2, {
3774
+ /* @__PURE__ */ jsxs3(DropdownMenuSubTrigger, {
4485
3775
  children: [
4486
- /* @__PURE__ */ jsx15(ListFilter, {}),
3776
+ /* @__PURE__ */ jsx3(ListFilter, {}),
4487
3777
  store.config.labels.filters
4488
3778
  ]
4489
3779
  }),
4490
- /* @__PURE__ */ jsx15(DropdownMenuSubContent2, {
3780
+ /* @__PURE__ */ jsx3(DropdownMenuSubContent, {
4491
3781
  className: "w-80 max-w-[calc(100vw-2rem)]",
4492
- children: column.colDef.fields?.length ? /* @__PURE__ */ jsx15(DropdownMenuGroup, {
4493
- children: filterColumns.map((field) => /* @__PURE__ */ jsxs9(DropdownMenuSub, {
3782
+ children: column.colDef.fields?.length ? /* @__PURE__ */ jsx3(DropdownMenuGroup, {
3783
+ children: filterColumns.map((field) => /* @__PURE__ */ jsxs3(DropdownMenuSub, {
4494
3784
  children: [
4495
- /* @__PURE__ */ jsxs9(DropdownMenuSubTrigger2, {
3785
+ /* @__PURE__ */ jsxs3(DropdownMenuSubTrigger, {
4496
3786
  children: [
4497
3787
  columnLabel(field),
4498
- activeFilters.some((filter) => filter.id === field.id) ? /* @__PURE__ */ jsx15(Check, {}) : null
3788
+ activeFilters.some((filter) => filter.id === field.id) ? /* @__PURE__ */ jsx3(Check, {}) : null
4499
3789
  ]
4500
3790
  }),
4501
- /* @__PURE__ */ jsx15(DropdownMenuSubContent2, {
3791
+ /* @__PURE__ */ jsx3(DropdownMenuSubContent, {
4502
3792
  className: "w-80 max-w-[calc(100vw-2rem)]",
4503
3793
  children: filterEditor(field)
4504
3794
  })
@@ -4508,23 +3798,23 @@ var ColumnHeaderMenu = ({
4508
3798
  })
4509
3799
  ]
4510
3800
  }),
4511
- activeFilters.length ? /* @__PURE__ */ jsxs9(DropdownMenuItem2, {
3801
+ activeFilters.length ? /* @__PURE__ */ jsxs3(DropdownMenuItem, {
4512
3802
  onClick: () => send(DataTableMessage.ColumnFiltersCleared({ id: column.id })),
4513
3803
  children: [
4514
- /* @__PURE__ */ jsx15(X, {}),
3804
+ /* @__PURE__ */ jsx3(X, {}),
4515
3805
  store.config.labels.filterClear
4516
3806
  ]
4517
3807
  }) : null
4518
3808
  ]
4519
3809
  }) : null,
4520
- (sortingEnabled || filteringEnabled) && hidingEnabled ? /* @__PURE__ */ jsx15(DropdownMenuSeparator2, {}) : null,
4521
- hidingEnabled ? /* @__PURE__ */ jsxs9(DropdownMenuItem2, {
3810
+ (sortingEnabled || filteringEnabled) && hidingEnabled ? /* @__PURE__ */ jsx3(DropdownMenuSeparator, {}) : null,
3811
+ hidingEnabled ? /* @__PURE__ */ jsxs3(DropdownMenuItem, {
4522
3812
  onClick: () => send(DataTableMessage.ColumnVisibilityChanged({
4523
3813
  id: column.id,
4524
3814
  visible: false
4525
3815
  })),
4526
3816
  children: [
4527
- /* @__PURE__ */ jsx15(EyeOff, {}),
3817
+ /* @__PURE__ */ jsx3(EyeOff, {}),
4528
3818
  " ",
4529
3819
  store.config.labels.hideColumn
4530
3820
  ]
@@ -4547,16 +3837,16 @@ var DataTableHeader = ({
4547
3837
  const selectableRows = model.pageRows.filter((row) => !selection || (selection.isRowSelectable?.(row.data) ?? true));
4548
3838
  const allSelected = selectableRows.length > 0 && selectableRows.every((row) => store.state.rowSelection[row.id]);
4549
3839
  const someSelected = selectableRows.some((row) => store.state.rowSelection[row.id]);
4550
- return /* @__PURE__ */ jsx15(TableHeader2, {
3840
+ return /* @__PURE__ */ jsx3(TableHeader, {
4551
3841
  className: sticky ? cn(tableClasses.stickyHeader, tableClasses.stickyHeaderRule, "[&_tr]:border-b-0") : undefined,
4552
- children: /* @__PURE__ */ jsxs9(TableRow2, {
3842
+ children: /* @__PURE__ */ jsxs3(TableRow, {
4553
3843
  "aria-rowindex": sticky ? 1 : undefined,
4554
3844
  children: [
4555
- selection ? /* @__PURE__ */ jsx15(TableHead2, {
3845
+ selection ? /* @__PURE__ */ jsx3(TableHead, {
4556
3846
  className: tableClasses.selectionCell,
4557
- children: /* @__PURE__ */ jsx15("div", {
3847
+ children: /* @__PURE__ */ jsx3("div", {
4558
3848
  className: tableClasses.selectionCenter,
4559
- children: /* @__PURE__ */ jsx15(Checkbox, {
3849
+ children: /* @__PURE__ */ jsx3(Checkbox, {
4560
3850
  "aria-label": store.config.labels.selectAllRows,
4561
3851
  checked: allSelected,
4562
3852
  indeterminate: someSelected && !allSelected,
@@ -4569,30 +3859,30 @@ var DataTableHeader = ({
4569
3859
  })
4570
3860
  })
4571
3861
  }) : null,
4572
- draggable ? /* @__PURE__ */ jsx15(TableHead2, {
3862
+ draggable ? /* @__PURE__ */ jsx3(TableHead, {
4573
3863
  className: "w-10"
4574
3864
  }) : null,
4575
3865
  model.visibleColumns.map((column) => {
4576
3866
  const direction = store.state.sort?.find(({ id }) => id === column.id)?.direction;
4577
- return /* @__PURE__ */ jsx15(TableHead2, {
3867
+ return /* @__PURE__ */ jsx3(TableHead, {
4578
3868
  "aria-sort": direction === "asc" ? "ascending" : direction === "desc" ? "descending" : undefined,
4579
3869
  className: tableClasses.header,
4580
3870
  scope: "col",
4581
3871
  style: { width: column.width },
4582
- children: /* @__PURE__ */ jsxs9(ColumnIdContext.Provider, {
3872
+ children: /* @__PURE__ */ jsxs3(ColumnIdContext.Provider, {
4583
3873
  value: column.id,
4584
3874
  children: [
4585
- /* @__PURE__ */ jsx15(ColumnHeaderMenu, {
3875
+ /* @__PURE__ */ jsx3(ColumnHeaderMenu, {
4586
3876
  table
4587
3877
  }),
4588
- /* @__PURE__ */ jsx15(ResizeHandle, {
3878
+ /* @__PURE__ */ jsx3(ResizeHandle, {
4589
3879
  table
4590
3880
  })
4591
3881
  ]
4592
3882
  })
4593
3883
  }, column.id);
4594
3884
  }),
4595
- hasRowActionMenu(store) ? /* @__PURE__ */ jsx15(TableHead2, {
3885
+ hasRowActionMenu(store) ? /* @__PURE__ */ jsx3(TableHead, {
4596
3886
  className: "w-10"
4597
3887
  }) : null
4598
3888
  ]
@@ -4610,7 +3900,7 @@ var VirtualTableRows = ({
4610
3900
  const { element: scrollElement, headerHeight } = viewport;
4611
3901
  const pageScroll = viewport.options.scroll === "page";
4612
3902
  const scrollMargin = viewport.pageOffset ?? headerHeight;
4613
- const entries = useMemo2(() => {
3903
+ const entries = useMemo(() => {
4614
3904
  const result = [];
4615
3905
  const addSections = (groups) => {
4616
3906
  for (const section of groups) {
@@ -4674,39 +3964,39 @@ var VirtualTableRows = ({
4674
3964
  const last = items.at(-1);
4675
3965
  const before = first ? first.start - scrollMargin : 0;
4676
3966
  const after = virtualizer.getTotalSize() - (last ? last.end - scrollMargin : 0);
4677
- const spacer = (height) => height > 0 ? /* @__PURE__ */ jsx15("tr", {
3967
+ const spacer = (height) => height > 0 ? /* @__PURE__ */ jsx3("tr", {
4678
3968
  "aria-hidden": "true",
4679
- children: /* @__PURE__ */ jsx15("td", {
3969
+ children: /* @__PURE__ */ jsx3("td", {
4680
3970
  colSpan: Math.max(1, colSpan),
4681
3971
  className: "border-0 p-0",
4682
3972
  style: { height }
4683
3973
  })
4684
3974
  }) : null;
4685
- return /* @__PURE__ */ jsxs9(Fragment, {
3975
+ return /* @__PURE__ */ jsxs3(Fragment, {
4686
3976
  children: [
4687
3977
  spacer(before),
4688
3978
  items.map(({ index, key }) => {
4689
3979
  const entry = entries[index];
4690
3980
  if (entry.kind === "data")
4691
- return /* @__PURE__ */ jsx15(TableDataRow, {
3981
+ return /* @__PURE__ */ jsx3(TableDataRow, {
4692
3982
  measureRef: virtualizer.measureElement,
4693
3983
  row: entry.row,
4694
3984
  table,
4695
3985
  virtualIndex: index
4696
3986
  }, key);
4697
3987
  if (entry.kind === "header")
4698
- return /* @__PURE__ */ jsx15(GroupHeaderRow, {
3988
+ return /* @__PURE__ */ jsx3(GroupHeaderRow, {
4699
3989
  measureRef: virtualizer.measureElement,
4700
3990
  section: entry.section,
4701
3991
  colSpan,
4702
3992
  table,
4703
3993
  virtualIndex: index
4704
3994
  }, key);
4705
- return /* @__PURE__ */ jsx15(TableRow2, {
3995
+ return /* @__PURE__ */ jsx3(TableRow, {
4706
3996
  ref: virtualizer.measureElement,
4707
3997
  "data-index": index,
4708
3998
  "aria-rowindex": index + 2,
4709
- children: /* @__PURE__ */ jsx15(TableCell2, {
3999
+ children: /* @__PURE__ */ jsx3(TableCell, {
4710
4000
  className: "text-muted-foreground h-16",
4711
4001
  colSpan,
4712
4002
  children: entry.section.field.renderEmptyGroup?.(entry.section.groupId) ?? config.labels.empty
@@ -4726,42 +4016,42 @@ var DataTableBody = ({
4726
4016
  const model = deriveModel(store);
4727
4017
  const fields = getActiveGrouping(store);
4728
4018
  const rows = model.pageRows;
4729
- const sections = useMemo2(() => groupDataTableRows(rows, fields), [rows, fields]);
4019
+ const sections = useMemo(() => groupDataTableRows(rows, fields), [rows, fields]);
4730
4020
  const colSpan = model.visibleColumns.length + (store.config.features.selection ? 1 : 0) + (hasRowActionMenu(store) ? 1 : 0) + (canDragRows(store) ? 1 : 0);
4731
4021
  const showGroups = sections.length && (rows.length || !store.config.status.loading) && !store.config.status.error;
4732
4022
  if (showGroups && !viewport) {
4733
- return /* @__PURE__ */ jsx15(GroupedTable, {
4023
+ return /* @__PURE__ */ jsx3(GroupedTable, {
4734
4024
  table,
4735
4025
  sections
4736
4026
  });
4737
4027
  }
4738
- return /* @__PURE__ */ jsx15(TableBody2, {
4739
- children: store.config.status.error || !showGroups && !rows.length && !store.config.status.loading ? /* @__PURE__ */ jsx15(TableRow2, {
4740
- children: /* @__PURE__ */ jsx15(TableCell2, {
4028
+ return /* @__PURE__ */ jsx3(TableBody, {
4029
+ children: store.config.status.error || !showGroups && !rows.length && !store.config.status.loading ? /* @__PURE__ */ jsx3(TableRow, {
4030
+ children: /* @__PURE__ */ jsx3(TableCell, {
4741
4031
  "data-table-slot": store.config.status.error ? "error" : "empty",
4742
4032
  className: cn("h-24 text-center", store.config.status.error ? styles?.feedback?.error : styles?.feedback?.empty),
4743
4033
  colSpan: Math.max(colSpan, 1),
4744
4034
  children: store.config.status.error ?? store.config.status.empty ?? store.config.labels.empty
4745
4035
  })
4746
- }) : !showGroups && store.config.status.loading && !rows.length ? /* @__PURE__ */ jsx15(TableRow2, {
4747
- children: /* @__PURE__ */ jsx15(TableCell2, {
4036
+ }) : !showGroups && store.config.status.loading && !rows.length ? /* @__PURE__ */ jsx3(TableRow, {
4037
+ children: /* @__PURE__ */ jsx3(TableCell, {
4748
4038
  "data-table-slot": "loading",
4749
4039
  className: cn("h-24 p-0", styles?.feedback?.loading),
4750
4040
  colSpan: Math.max(colSpan, 1),
4751
- children: /* @__PURE__ */ jsx15(Loading, {
4041
+ children: /* @__PURE__ */ jsx3(Loading, {
4752
4042
  className: "sticky left-0 w-[100cqw] max-w-full px-2",
4753
4043
  label: store.config.labels.loading
4754
4044
  })
4755
4045
  })
4756
- }) : viewport ? /* @__PURE__ */ jsx15(VirtualTableRows, {
4046
+ }) : viewport ? /* @__PURE__ */ jsx3(VirtualTableRows, {
4757
4047
  colSpan,
4758
4048
  rows,
4759
4049
  sections,
4760
4050
  table,
4761
4051
  viewport
4762
- }) : rows.map((row) => /* @__PURE__ */ jsx15(RowIdContext.Provider, {
4052
+ }) : rows.map((row) => /* @__PURE__ */ jsx3(RowIdContext.Provider, {
4763
4053
  value: row.id,
4764
- children: /* @__PURE__ */ jsx15(TableDataRow, {
4054
+ children: /* @__PURE__ */ jsx3(TableDataRow, {
4765
4055
  row,
4766
4056
  table
4767
4057
  })
@@ -4779,13 +4069,13 @@ var GalleryTag = ({
4779
4069
  if ((value == null || value === "") && !column.colDef.cellRenderer)
4780
4070
  return null;
4781
4071
  const content = renderCell(row, column, locale, labels);
4782
- return column.colDef.cellRenderer || column.colDef.valueFormatter ? /* @__PURE__ */ jsxs9("div", {
4072
+ return column.colDef.cellRenderer || column.colDef.valueFormatter ? /* @__PURE__ */ jsxs3("div", {
4783
4073
  className: "flex min-w-0 items-center gap-1",
4784
4074
  children: [
4785
4075
  icon,
4786
4076
  content
4787
4077
  ]
4788
- }) : /* @__PURE__ */ jsxs9(Badge, {
4078
+ }) : /* @__PURE__ */ jsxs3(Badge, {
4789
4079
  variant: "secondary",
4790
4080
  children: [
4791
4081
  icon,
@@ -4813,7 +4103,7 @@ var GalleryCard = ({
4813
4103
  const selection = store.config.features.selection;
4814
4104
  const selectable = !!selection && (selection.isRowSelectable?.(row.data) ?? true);
4815
4105
  const draggable = canDragRows(store);
4816
- return /* @__PURE__ */ jsxs9(Card, {
4106
+ return /* @__PURE__ */ jsxs3(Card, {
4817
4107
  className: cn("data-[drop-position=before]:border-t-primary data-[drop-position=after]:border-b-primary relative gap-3 data-[drag-source=true]:opacity-40 data-[drop-position=after]:border-b-2 data-[drop-position=before]:border-t-2", store.config.onRowClicked && "cursor-pointer"),
4818
4108
  "data-table-row": row.id,
4819
4109
  onClick: () => store.config.onRowClicked?.(row.data),
@@ -4825,7 +4115,7 @@ var GalleryCard = ({
4825
4115
  },
4826
4116
  tabIndex: store.config.onRowClicked ? 0 : undefined,
4827
4117
  children: [
4828
- imageSrc && !store.ui.failedImages.includes(imageSrc) ? /* @__PURE__ */ jsx15("img", {
4118
+ imageSrc && !store.ui.failedImages.includes(imageSrc) ? /* @__PURE__ */ jsx3("img", {
4829
4119
  src: imageSrc,
4830
4120
  alt: gallery.image?.getAlt?.(row.data) ?? "",
4831
4121
  loading: "lazy",
@@ -4833,32 +4123,32 @@ var GalleryCard = ({
4833
4123
  className: "aspect-video w-full object-cover",
4834
4124
  onError: () => send(DataTableMessage.ReferenceImageFailed({ src: imageSrc }))
4835
4125
  }) : null,
4836
- /* @__PURE__ */ jsxs9(CardHeader, {
4126
+ /* @__PURE__ */ jsxs3(CardHeader, {
4837
4127
  className: cn("relative", hasRowActionMenu(store) && "pr-12"),
4838
4128
  children: [
4839
- selection || draggable ? /* @__PURE__ */ jsxs9("div", {
4129
+ selection || draggable ? /* @__PURE__ */ jsxs3("div", {
4840
4130
  className: "flex items-center gap-2",
4841
4131
  children: [
4842
- selection ? /* @__PURE__ */ jsx15(Checkbox, {
4132
+ selection ? /* @__PURE__ */ jsx3(Checkbox, {
4843
4133
  "aria-label": store.config.labels.selectRow,
4844
4134
  checked: !!store.state.rowSelection[row.id],
4845
4135
  disabled: !selectable,
4846
4136
  onCheckedChange: (checked) => toggleRow(send, row.id, checked),
4847
4137
  onClick: (event) => event.stopPropagation()
4848
4138
  }) : null,
4849
- draggable ? /* @__PURE__ */ jsx15(DragHandle, {
4139
+ draggable ? /* @__PURE__ */ jsx3(DragHandle, {
4850
4140
  table
4851
4141
  }) : null
4852
4142
  ]
4853
4143
  }) : null,
4854
- /* @__PURE__ */ jsx15(CardTitle, {
4144
+ /* @__PURE__ */ jsx3(CardTitle, {
4855
4145
  children: name ? renderCell(row, name, store.config.locale, store.config.labels) : row.id
4856
4146
  }),
4857
- tagIds.length ? /* @__PURE__ */ jsx15("div", {
4147
+ tagIds.length ? /* @__PURE__ */ jsx3("div", {
4858
4148
  className: "flex flex-wrap items-center gap-2",
4859
4149
  children: tagIds.map((id) => {
4860
4150
  const column = find(id);
4861
- return column ? /* @__PURE__ */ jsx15(GalleryTag, {
4151
+ return column ? /* @__PURE__ */ jsx3(GalleryTag, {
4862
4152
  row,
4863
4153
  column,
4864
4154
  locale: store.config.locale,
@@ -4867,14 +4157,14 @@ var GalleryCard = ({
4867
4157
  }, id) : null;
4868
4158
  })
4869
4159
  }) : null,
4870
- description ? /* @__PURE__ */ jsx15("div", {
4160
+ description ? /* @__PURE__ */ jsx3("div", {
4871
4161
  className: "text-muted-foreground line-clamp-3 text-sm",
4872
4162
  children: renderCell(row, description, store.config.locale, store.config.labels)
4873
4163
  }) : null,
4874
- hasRowActionMenu(store) ? /* @__PURE__ */ jsx15("div", {
4164
+ hasRowActionMenu(store) ? /* @__PURE__ */ jsx3("div", {
4875
4165
  className: "absolute top-0 right-4",
4876
4166
  onClick: (event) => event.stopPropagation(),
4877
- children: /* @__PURE__ */ jsx15(DataTableRowActionMenu, {
4167
+ children: /* @__PURE__ */ jsx3(DataTableRowActionMenu, {
4878
4168
  row,
4879
4169
  table
4880
4170
  })
@@ -4894,35 +4184,35 @@ var DataTableGallery = ({
4894
4184
  const rows = model.pageRows;
4895
4185
  const sections = groupDataTableRows(rows, fields);
4896
4186
  if (store.config.status.error) {
4897
- return /* @__PURE__ */ jsx15("div", {
4187
+ return /* @__PURE__ */ jsx3("div", {
4898
4188
  "data-table-slot": "error",
4899
4189
  className: cn("text-destructive rounded-lg border border-dashed p-10 text-center", styles?.feedback?.error),
4900
4190
  children: store.config.status.error
4901
4191
  });
4902
4192
  }
4903
4193
  if (store.config.status.loading && !rows.length) {
4904
- return /* @__PURE__ */ jsx15("div", {
4194
+ return /* @__PURE__ */ jsx3("div", {
4905
4195
  "data-table-slot": "loading",
4906
4196
  className: cn("rounded-lg border border-dashed p-10 text-center", styles?.feedback?.loading),
4907
- children: /* @__PURE__ */ jsx15(Loading, {
4197
+ children: /* @__PURE__ */ jsx3(Loading, {
4908
4198
  label: store.config.labels.loading
4909
4199
  })
4910
4200
  });
4911
4201
  }
4912
4202
  if (!rows.length && !sections.length) {
4913
- return /* @__PURE__ */ jsx15("div", {
4203
+ return /* @__PURE__ */ jsx3("div", {
4914
4204
  "data-table-slot": "empty",
4915
4205
  className: cn("text-muted-foreground rounded-lg border border-dashed p-10 text-center", styles?.feedback?.empty),
4916
4206
  children: store.config.status.empty ?? store.config.labels.empty
4917
4207
  });
4918
4208
  }
4919
4209
  if (!fields.length) {
4920
- return /* @__PURE__ */ jsx15("div", {
4210
+ return /* @__PURE__ */ jsx3("div", {
4921
4211
  "data-table-slot": "gallery",
4922
4212
  className: cn("grid gap-3 sm:grid-cols-2 xl:grid-cols-3", styles?.gallery),
4923
- children: rows.map((row) => /* @__PURE__ */ jsx15(RowIdContext.Provider, {
4213
+ children: rows.map((row) => /* @__PURE__ */ jsx3(RowIdContext.Provider, {
4924
4214
  value: row.id,
4925
- children: /* @__PURE__ */ jsx15(GalleryCard, {
4215
+ children: /* @__PURE__ */ jsx3(GalleryCard, {
4926
4216
  table
4927
4217
  })
4928
4218
  }, row.id))
@@ -4932,58 +4222,58 @@ var DataTableGallery = ({
4932
4222
  const collapsed = !!store.state.collapsedGroups[section.key];
4933
4223
  const targetKey = getGroupDropKey(section.field.id, section.groupId);
4934
4224
  const toggleCollapsed = () => send(DataTableMessage.GroupToggled({ key: section.key }));
4935
- return /* @__PURE__ */ jsxs9("section", {
4225
+ return /* @__PURE__ */ jsxs3("section", {
4936
4226
  className: "data-[drop-target=true]:ring-primary space-y-3 rounded-lg transition-shadow data-[drop-target=true]:ring-2",
4937
4227
  "data-table-group": section.field.onMoveToGroup ? targetKey : undefined,
4938
4228
  children: [
4939
- /* @__PURE__ */ jsxs9("div", {
4229
+ /* @__PURE__ */ jsxs3("div", {
4940
4230
  className: "hover:bg-accent flex cursor-pointer items-center gap-2 rounded-lg border p-3 transition-colors",
4941
4231
  onClick: toggleCollapsed,
4942
4232
  children: [
4943
- /* @__PURE__ */ jsxs9("button", {
4233
+ /* @__PURE__ */ jsxs3("button", {
4944
4234
  "aria-expanded": !collapsed,
4945
4235
  className: "flex flex-1 cursor-pointer items-center gap-2 text-left font-medium",
4946
4236
  type: "button",
4947
4237
  children: [
4948
- collapsed ? /* @__PURE__ */ jsx15(ChevronRight2, {
4238
+ collapsed ? /* @__PURE__ */ jsx3(ChevronRight2, {
4949
4239
  className: "size-4"
4950
- }) : /* @__PURE__ */ jsx15(ChevronDown, {
4240
+ }) : /* @__PURE__ */ jsx3(ChevronDown, {
4951
4241
  className: "size-4"
4952
4242
  }),
4953
- /* @__PURE__ */ jsx15("span", {
4243
+ /* @__PURE__ */ jsx3("span", {
4954
4244
  className: "flex-1",
4955
4245
  children: section.field.renderGroupLabel?.(section.groupId, section.rows.map((row) => row.data)) ?? section.groupId
4956
4246
  }),
4957
- /* @__PURE__ */ jsx15(Badge, {
4247
+ /* @__PURE__ */ jsx3(Badge, {
4958
4248
  variant: "secondary",
4959
4249
  children: section.rows.length
4960
4250
  })
4961
4251
  ]
4962
4252
  }),
4963
- /* @__PURE__ */ jsx15(GroupActions, {
4253
+ /* @__PURE__ */ jsx3(GroupActions, {
4964
4254
  actions: section.field.actions,
4965
4255
  groupId: section.groupId,
4966
4256
  title: section.field.actionsLabel ?? store.config.labels.actions
4967
4257
  })
4968
4258
  ]
4969
4259
  }),
4970
- !collapsed ? section.children.length ? renderSections(section.children) : section.rows.length ? /* @__PURE__ */ jsx15("div", {
4260
+ !collapsed ? section.children.length ? renderSections(section.children) : section.rows.length ? /* @__PURE__ */ jsx3("div", {
4971
4261
  "data-table-slot": "gallery",
4972
4262
  className: cn("grid gap-3 sm:grid-cols-2 xl:grid-cols-3", styles?.gallery),
4973
- children: section.rows.map((row) => /* @__PURE__ */ jsx15(RowIdContext.Provider, {
4263
+ children: section.rows.map((row) => /* @__PURE__ */ jsx3(RowIdContext.Provider, {
4974
4264
  value: row.id,
4975
- children: /* @__PURE__ */ jsx15(GalleryCard, {
4265
+ children: /* @__PURE__ */ jsx3(GalleryCard, {
4976
4266
  table
4977
4267
  })
4978
4268
  }, `${section.key}:${row.id}`))
4979
- }) : /* @__PURE__ */ jsx15("div", {
4269
+ }) : /* @__PURE__ */ jsx3("div", {
4980
4270
  className: "text-muted-foreground rounded-lg border border-dashed p-8 text-center",
4981
4271
  children: section.field.renderEmptyGroup?.(section.groupId) ?? store.config.labels.empty
4982
4272
  }) : null
4983
4273
  ]
4984
4274
  }, section.key);
4985
4275
  });
4986
- return /* @__PURE__ */ jsx15("div", {
4276
+ return /* @__PURE__ */ jsx3("div", {
4987
4277
  className: "space-y-4",
4988
4278
  children: renderSections(sections)
4989
4279
  });
@@ -5005,10 +4295,10 @@ var DataTablePagination = ({
5005
4295
  if (!paginationVisible || !pagination)
5006
4296
  return null;
5007
4297
  const selected = model.rows.filter((row) => store.state.rowSelection[row.id]).length;
5008
- return /* @__PURE__ */ jsx15("div", {
4298
+ return /* @__PURE__ */ jsx3("div", {
5009
4299
  "data-table-slot": "pagination",
5010
4300
  className: cn("shrink-0 pt-4", styles?.pagination),
5011
- children: /* @__PURE__ */ jsx15(Pagination, {
4301
+ children: /* @__PURE__ */ jsx3(Pagination, {
5012
4302
  pageSizeContentClassName: styles?.popup?.select,
5013
4303
  locale: store.config.locale,
5014
4304
  messages: { [store.config.locale]: store.config.labels },
@@ -5057,10 +4347,10 @@ var modelColumns = (definitions) => normalizeDataTableColumns(definitions).map((
5057
4347
  });
5058
4348
  var getTableLayoutClass = (virtualization) => virtualization && virtualization !== true && virtualization.scroll === "internal" ? "flex min-h-0 flex-1 flex-col" : undefined;
5059
4349
  var HydratedDataTable = (props) => {
5060
- const config = useMemo2(() => resolveConfig(props), [props]);
5061
- const columns = useMemo2(() => modelColumns(props.columnDefs), [props.columnDefs]);
4350
+ const config = useMemo(() => resolveConfig(props), [props]);
4351
+ const columns = useMemo(() => modelColumns(props.columnDefs), [props.columnDefs]);
5062
4352
  const selection = config.features.selection;
5063
- const modelProps = useMemo2(() => {
4353
+ const modelProps = useMemo(() => {
5064
4354
  const { features } = config;
5065
4355
  const grouping = features.grouping;
5066
4356
  const pagination = features.pagination;
@@ -5158,7 +4448,7 @@ var HydratedDataTable = (props) => {
5158
4448
  const query = modelProps.state ?? model.query;
5159
4449
  const { collapsedGroups, selectedRowIds } = model;
5160
4450
  const galleryEnabled = !!props.features?.gallery;
5161
- const state = useMemo2(() => ({
4451
+ const state = useMemo(() => ({
5162
4452
  ...query,
5163
4453
  columnVisibility,
5164
4454
  columnSizing,
@@ -5176,7 +4466,7 @@ var HydratedDataTable = (props) => {
5176
4466
  collapsedGroups,
5177
4467
  selectedRowIds
5178
4468
  ]);
5179
- const store = useMemo2(() => {
4469
+ const store = useMemo(() => {
5180
4470
  const source = {
5181
4471
  rowData: props.rowData,
5182
4472
  columnDefs: props.columnDefs,
@@ -5187,20 +4477,20 @@ var HydratedDataTable = (props) => {
5187
4477
  }, [props.rowData, props.columnDefs, config, state]);
5188
4478
  const table = [{ ...store, ui: model }, send];
5189
4479
  if (!preferencesLoaded)
5190
- return /* @__PURE__ */ jsx15(TablePlaceholder, {
4480
+ return /* @__PURE__ */ jsx3(TablePlaceholder, {
5191
4481
  props
5192
4482
  });
5193
- return /* @__PURE__ */ jsxs9("div", {
4483
+ return /* @__PURE__ */ jsxs3("div", {
5194
4484
  className: cn("w-full max-w-full min-w-0 rounded-md", getTableLayoutClass(props.features?.virtualization), props.className),
5195
4485
  "data-table-root": "",
5196
4486
  children: [
5197
- /* @__PURE__ */ jsx15(DataTableToolbar, {
4487
+ /* @__PURE__ */ jsx3(DataTableToolbar, {
5198
4488
  table
5199
4489
  }),
5200
- /* @__PURE__ */ jsx15(DataTableContent, {
4490
+ /* @__PURE__ */ jsx3(DataTableContent, {
5201
4491
  table
5202
4492
  }),
5203
- /* @__PURE__ */ jsx15(DataTablePagination, {
4493
+ /* @__PURE__ */ jsx3(DataTablePagination, {
5204
4494
  table
5205
4495
  })
5206
4496
  ]
@@ -5211,7 +4501,7 @@ var clientSnapshot = () => true;
5211
4501
  var serverSnapshot = () => false;
5212
4502
  var TablePlaceholder = ({
5213
4503
  props
5214
- }) => /* @__PURE__ */ jsx15("div", {
4504
+ }) => /* @__PURE__ */ jsx3("div", {
5215
4505
  "aria-busy": "true",
5216
4506
  className: cn("invisible w-full max-w-full min-w-0 rounded-md", getTableLayoutClass(props.features?.virtualization), props.className),
5217
4507
  "data-table-root": ""
@@ -5220,14 +4510,14 @@ var DataTable = (props) => {
5220
4510
  const locale = useKrakstackLocale3(props.locale);
5221
4511
  const hydrated = useSyncExternalStore(subscribeToHydration, clientSnapshot, serverSnapshot);
5222
4512
  if (!hydrated)
5223
- return /* @__PURE__ */ jsx15(TablePlaceholder, {
4513
+ return /* @__PURE__ */ jsx3(TablePlaceholder, {
5224
4514
  props
5225
4515
  });
5226
- return /* @__PURE__ */ jsx15(DataTableStylesContext.Provider, {
4516
+ return /* @__PURE__ */ jsx3(DataTableStylesContext.Provider, {
5227
4517
  value: props.classNames,
5228
- children: /* @__PURE__ */ jsx15(DataTableSlotClassesContext.Provider, {
4518
+ children: /* @__PURE__ */ jsx3(DataTableSlotClassesContext.Provider, {
5229
4519
  value: resolveTableClasses(props.classes),
5230
- children: /* @__PURE__ */ jsx15(HydratedDataTable, {
4520
+ children: /* @__PURE__ */ jsx3(HydratedDataTable, {
5231
4521
  ...props,
5232
4522
  locale
5233
4523
  })
@@ -5270,7 +4560,7 @@ var DataTableContent = ({
5270
4560
  return () => observer.disconnect();
5271
4561
  }, [scrollElement]);
5272
4562
  if (store.config.features.gallery && store.state.view === "gallery") {
5273
- return /* @__PURE__ */ jsx15(DataTableGallery, {
4563
+ return /* @__PURE__ */ jsx3(DataTableGallery, {
5274
4564
  table
5275
4565
  });
5276
4566
  }
@@ -5284,22 +4574,22 @@ var DataTableContent = ({
5284
4574
  const options = virtualization && virtualization !== true ? virtualization : {};
5285
4575
  const rowCount = !getActiveGrouping(store).length && model.pageRows.length && !store.config.status.error ? model.pageRows.length + 1 : undefined;
5286
4576
  if (options.scroll === "page") {
5287
- return /* @__PURE__ */ jsx15("div", {
4577
+ return /* @__PURE__ */ jsx3("div", {
5288
4578
  ref: setPageTable,
5289
4579
  "data-table-page-virtualization": "",
5290
4580
  className: "[overflow-anchor:none]",
5291
- children: /* @__PURE__ */ jsxs9(ScrollArea, {
4581
+ children: /* @__PURE__ */ jsxs3(ScrollArea, {
5292
4582
  className: "@container max-w-full min-w-0",
5293
4583
  children: [
5294
- /* @__PURE__ */ jsxs9(Table2, {
4584
+ /* @__PURE__ */ jsxs3(Table, {
5295
4585
  "aria-rowcount": rowCount,
5296
4586
  className: "table-fixed",
5297
4587
  style: { width: `max(100%, ${width}px)` },
5298
4588
  children: [
5299
- /* @__PURE__ */ jsx15(DataTableHeader, {
4589
+ /* @__PURE__ */ jsx3(DataTableHeader, {
5300
4590
  table
5301
4591
  }),
5302
- /* @__PURE__ */ jsx15(DataTableBody, {
4592
+ /* @__PURE__ */ jsx3(DataTableBody, {
5303
4593
  table,
5304
4594
  viewport: {
5305
4595
  element: null,
@@ -5310,7 +4600,7 @@ var DataTableContent = ({
5310
4600
  })
5311
4601
  ]
5312
4602
  }),
5313
- /* @__PURE__ */ jsx15(ScrollBar, {
4603
+ /* @__PURE__ */ jsx3(ScrollBar, {
5314
4604
  orientation: "horizontal"
5315
4605
  })
5316
4606
  ]
@@ -5318,10 +4608,10 @@ var DataTableContent = ({
5318
4608
  });
5319
4609
  }
5320
4610
  const fillHeight = options.scroll === "internal";
5321
- return /* @__PURE__ */ jsxs9(ScrollAreaPrimitive2.Root, {
4611
+ return /* @__PURE__ */ jsxs3(ScrollAreaPrimitive.Root, {
5322
4612
  className: cn("relative isolate max-w-full min-w-0", fillHeight && "flex min-h-0 flex-1 flex-col"),
5323
4613
  children: [
5324
- /* @__PURE__ */ jsx15(ScrollAreaPrimitive2.Viewport, {
4614
+ /* @__PURE__ */ jsx3(ScrollAreaPrimitive.Viewport, {
5325
4615
  ref: setScrollElement,
5326
4616
  "data-table-virtual-viewport": "",
5327
4617
  className: cn("@container [overflow-anchor:none] data-has-overflow-y:me-2.5 [&_[data-slot=table-container]]:overflow-visible", fillHeight && "min-h-0 flex-1"),
@@ -5329,17 +4619,17 @@ var DataTableContent = ({
5329
4619
  maxHeight: fillHeight ? undefined : options.height ?? 480,
5330
4620
  scrollPaddingTop: headerHeight
5331
4621
  },
5332
- children: /* @__PURE__ */ jsx15(ScrollAreaPrimitive2.Content, {
5333
- children: /* @__PURE__ */ jsxs9(Table2, {
4622
+ children: /* @__PURE__ */ jsx3(ScrollAreaPrimitive.Content, {
4623
+ children: /* @__PURE__ */ jsxs3(Table, {
5334
4624
  "aria-rowcount": rowCount,
5335
4625
  className: "table-fixed",
5336
4626
  style: { width: `max(100%, ${width}px)` },
5337
4627
  children: [
5338
- /* @__PURE__ */ jsx15(DataTableHeader, {
4628
+ /* @__PURE__ */ jsx3(DataTableHeader, {
5339
4629
  sticky: true,
5340
4630
  table
5341
4631
  }),
5342
- /* @__PURE__ */ jsx15(DataTableBody, {
4632
+ /* @__PURE__ */ jsx3(DataTableBody, {
5343
4633
  table,
5344
4634
  viewport: { element: scrollElement, headerHeight, options }
5345
4635
  })
@@ -5347,33 +4637,33 @@ var DataTableContent = ({
5347
4637
  })
5348
4638
  })
5349
4639
  }),
5350
- /* @__PURE__ */ jsx15(ScrollBar, {
4640
+ /* @__PURE__ */ jsx3(ScrollBar, {
5351
4641
  className: "data-vertical:h-auto",
5352
4642
  style: { top: headerHeight }
5353
4643
  }),
5354
- /* @__PURE__ */ jsx15(ScrollBar, {
4644
+ /* @__PURE__ */ jsx3(ScrollBar, {
5355
4645
  orientation: "horizontal"
5356
4646
  }),
5357
- /* @__PURE__ */ jsx15(ScrollAreaPrimitive2.Corner, {})
4647
+ /* @__PURE__ */ jsx3(ScrollAreaPrimitive.Corner, {})
5358
4648
  ]
5359
4649
  });
5360
4650
  }
5361
- return /* @__PURE__ */ jsxs9(ScrollArea, {
4651
+ return /* @__PURE__ */ jsxs3(ScrollArea, {
5362
4652
  className: "@container max-w-full min-w-0",
5363
4653
  children: [
5364
- /* @__PURE__ */ jsxs9(Table2, {
4654
+ /* @__PURE__ */ jsxs3(Table, {
5365
4655
  className: "table-fixed",
5366
4656
  style: { width: `max(100%, ${width}px)` },
5367
4657
  children: [
5368
- /* @__PURE__ */ jsx15(DataTableHeader, {
4658
+ /* @__PURE__ */ jsx3(DataTableHeader, {
5369
4659
  table
5370
4660
  }),
5371
- /* @__PURE__ */ jsx15(DataTableBody, {
4661
+ /* @__PURE__ */ jsx3(DataTableBody, {
5372
4662
  table
5373
4663
  })
5374
4664
  ]
5375
4665
  }),
5376
- /* @__PURE__ */ jsx15(ScrollBar, {
4666
+ /* @__PURE__ */ jsx3(ScrollBar, {
5377
4667
  orientation: "horizontal"
5378
4668
  })
5379
4669
  ]
@@ -5384,7 +4674,7 @@ var DataTableListCell = (props) => {
5384
4674
  const locale = useKrakstackLocale3(props.locale);
5385
4675
  const resolvedProps = { ...props, locale };
5386
4676
  if (resolvedProps.options && (resolvedProps.onAdd || resolvedProps.onRemove)) {
5387
- return /* @__PURE__ */ jsx15(EditableDataTableListCell, {
4677
+ return /* @__PURE__ */ jsx3(EditableDataTableListCell, {
5388
4678
  ...resolvedProps
5389
4679
  });
5390
4680
  }
@@ -5392,17 +4682,17 @@ var DataTableListCell = (props) => {
5392
4682
  const labels = dataTableMessages(locale, resolvedProps.messages);
5393
4683
  const hasItems = resolvedProps.items.length > 0;
5394
4684
  if (!itemActions?.length && !hasItems) {
5395
- return /* @__PURE__ */ jsx15(DataTableListSummary, {
4685
+ return /* @__PURE__ */ jsx3(DataTableListSummary, {
5396
4686
  ...summaryProps
5397
4687
  });
5398
4688
  }
5399
4689
  const menuLabel = actionsLabel ?? (itemActions?.length ? labels.actions : labels.listDetails);
5400
- return /* @__PURE__ */ jsx15("div", {
4690
+ return /* @__PURE__ */ jsx3("div", {
5401
4691
  className: tableClasses.relationshipCell,
5402
4692
  "data-slot": "data-table-list-cell",
5403
4693
  onClick: (event) => event.stopPropagation(),
5404
4694
  onPointerDown: (event) => event.stopPropagation(),
5405
- children: /* @__PURE__ */ jsx15(DataTableListMenu, {
4695
+ children: /* @__PURE__ */ jsx3(DataTableListMenu, {
5406
4696
  actions: itemActions ?? [],
5407
4697
  display: resolvedProps.display,
5408
4698
  force: hasItems,
@@ -5411,16 +4701,16 @@ var DataTableListCell = (props) => {
5411
4701
  locale,
5412
4702
  messages: resolvedProps.messages,
5413
4703
  onItemClick,
5414
- trigger: /* @__PURE__ */ jsxs9(Button, {
4704
+ trigger: /* @__PURE__ */ jsxs3(Button2, {
5415
4705
  "aria-label": menuLabel,
5416
4706
  className: tableClasses.relationshipTrigger,
5417
4707
  variant: "ghost",
5418
4708
  children: [
5419
- /* @__PURE__ */ jsx15(DataTableListSummaryContent, {
4709
+ /* @__PURE__ */ jsx3(DataTableListSummaryContent, {
5420
4710
  ...summaryProps,
5421
4711
  showMenu: false
5422
4712
  }),
5423
- /* @__PURE__ */ jsx15(ChevronDown, {})
4713
+ /* @__PURE__ */ jsx3(ChevronDown, {})
5424
4714
  ]
5425
4715
  })
5426
4716
  })
@@ -5461,7 +4751,7 @@ var EditableDataTableListCell = ({
5461
4751
  id: "data-table-list-remove",
5462
4752
  closeOnClick: false,
5463
4753
  name: labels.removeItem,
5464
- icon: /* @__PURE__ */ jsx15(Trash2, {}),
4754
+ icon: /* @__PURE__ */ jsx3(Trash2, {}),
5465
4755
  variant: "destructive",
5466
4756
  onClick: (item) => {
5467
4757
  if (item.value === undefined)
@@ -5472,12 +4762,12 @@ var EditableDataTableListCell = ({
5472
4762
  }
5473
4763
  ] : []
5474
4764
  ];
5475
- return /* @__PURE__ */ jsx15("div", {
4765
+ return /* @__PURE__ */ jsx3("div", {
5476
4766
  "data-slot": "data-table-list-cell",
5477
4767
  className: tableClasses.relationshipCell,
5478
4768
  onClick: (event) => event.stopPropagation(),
5479
4769
  onPointerDown: (event) => event.stopPropagation(),
5480
- children: /* @__PURE__ */ jsx15(DataTableListMenu, {
4770
+ children: /* @__PURE__ */ jsx3(DataTableListMenu, {
5481
4771
  actions,
5482
4772
  addEmptyLabel: emptyLabel,
5483
4773
  addLabel: labels.addItem,
@@ -5494,12 +4784,12 @@ var EditableDataTableListCell = ({
5494
4784
  onAdd(item.value);
5495
4785
  setSelected((current) => [...current, item]);
5496
4786
  } : undefined,
5497
- trigger: /* @__PURE__ */ jsxs9(Button, {
4787
+ trigger: /* @__PURE__ */ jsxs3(Button2, {
5498
4788
  "aria-label": manageLabel,
5499
4789
  className: "h-full w-full min-w-0 justify-between rounded-none px-2 focus-visible:ring-inset",
5500
4790
  variant: "ghost",
5501
4791
  children: [
5502
- /* @__PURE__ */ jsx15(DataTableListSummaryContent, {
4792
+ /* @__PURE__ */ jsx3(DataTableListSummaryContent, {
5503
4793
  emptyLabel,
5504
4794
  items: selected,
5505
4795
  display,
@@ -5507,7 +4797,7 @@ var EditableDataTableListCell = ({
5507
4797
  visibleCount,
5508
4798
  totalCount: selectedTotal
5509
4799
  }),
5510
- /* @__PURE__ */ jsx15(ChevronDown, {})
4800
+ /* @__PURE__ */ jsx3(ChevronDown, {})
5511
4801
  ]
5512
4802
  })
5513
4803
  })
@@ -5540,42 +4830,42 @@ var DataTableListMenu = ({
5540
4830
  return null;
5541
4831
  const labels = dataTableMessages(locale, messages);
5542
4832
  const resolvedLabel = label ?? (hasActions ? labels.actions : labels.listDetails);
5543
- return /* @__PURE__ */ jsxs9(DropdownMenu, {
4833
+ return /* @__PURE__ */ jsxs3(DropdownMenu, {
5544
4834
  modal: false,
5545
4835
  children: [
5546
- /* @__PURE__ */ jsx15(DropdownMenuTrigger2, {
4836
+ /* @__PURE__ */ jsx3(DropdownMenuTrigger, {
5547
4837
  onClick: (event) => event.stopPropagation(),
5548
4838
  onPointerDown: (event) => event.stopPropagation(),
5549
- render: trigger ?? /* @__PURE__ */ jsx15(Button, {
4839
+ render: trigger ?? /* @__PURE__ */ jsx3(Button2, {
5550
4840
  "aria-label": resolvedLabel,
5551
4841
  className: cn("size-8 shrink-0", className),
5552
4842
  size: "icon",
5553
4843
  variant: "ghost",
5554
- children: /* @__PURE__ */ jsx15(MoreHorizontal, {})
4844
+ children: /* @__PURE__ */ jsx3(MoreHorizontal, {})
5555
4845
  })
5556
4846
  }),
5557
- /* @__PURE__ */ jsx15(DropdownMenuContent2, {
4847
+ /* @__PURE__ */ jsx3(DropdownMenuContent, {
5558
4848
  align: "end",
5559
4849
  className: "max-h-[min(18rem,var(--available-height))] w-72 max-w-[calc(100vw-2rem)]",
5560
4850
  onClick: (event) => event.stopPropagation(),
5561
4851
  onPointerDown: (event) => event.stopPropagation(),
5562
- children: /* @__PURE__ */ jsxs9(DropdownMenuGroup, {
4852
+ children: /* @__PURE__ */ jsxs3(DropdownMenuGroup, {
5563
4853
  children: [
5564
- /* @__PURE__ */ jsx15(DropdownMenuLabel2, {
4854
+ /* @__PURE__ */ jsx3(DropdownMenuLabel, {
5565
4855
  children: resolvedLabel
5566
4856
  }),
5567
- /* @__PURE__ */ jsx15(DropdownMenuSeparator2, {}),
5568
- entries.map(({ item, visibleActions }, index) => visibleActions.length ? /* @__PURE__ */ jsxs9(DropdownMenuSub, {
4857
+ /* @__PURE__ */ jsx3(DropdownMenuSeparator, {}),
4858
+ entries.map(({ item, visibleActions }, index) => visibleActions.length ? /* @__PURE__ */ jsxs3(DropdownMenuSub, {
5569
4859
  children: [
5570
- /* @__PURE__ */ jsx15(DropdownMenuSubTrigger2, {
5571
- children: /* @__PURE__ */ jsx15(DataTableListEntry, {
4860
+ /* @__PURE__ */ jsx3(DropdownMenuSubTrigger, {
4861
+ children: /* @__PURE__ */ jsx3(DataTableListEntry, {
5572
4862
  item,
5573
4863
  appearance: display === "icon" ? "detail" : "list"
5574
4864
  })
5575
4865
  }),
5576
- /* @__PURE__ */ jsx15(DropdownMenuSubContent2, {
4866
+ /* @__PURE__ */ jsx3(DropdownMenuSubContent, {
5577
4867
  className: "w-max",
5578
- children: visibleActions.map((action) => /* @__PURE__ */ jsxs9(DropdownMenuItem2, {
4868
+ children: visibleActions.map((action) => /* @__PURE__ */ jsxs3(DropdownMenuItem, {
5579
4869
  closeOnClick: action.closeOnClick,
5580
4870
  disabled: action.disabled?.(item),
5581
4871
  onClick: (event) => {
@@ -5590,21 +4880,21 @@ var DataTableListMenu = ({
5590
4880
  }, action.id ?? action.name))
5591
4881
  })
5592
4882
  ]
5593
- }, item.value ?? `${item.label}-${index}`) : /* @__PURE__ */ jsx15(DropdownMenuItem2, {
4883
+ }, item.value ?? `${item.label}-${index}`) : /* @__PURE__ */ jsx3(DropdownMenuItem, {
5594
4884
  closeOnClick: Boolean(onItemClick),
5595
4885
  onClick: (event) => {
5596
4886
  event.stopPropagation();
5597
4887
  onItemClick?.(item);
5598
4888
  },
5599
- children: /* @__PURE__ */ jsx15(DataTableListEntry, {
4889
+ children: /* @__PURE__ */ jsx3(DataTableListEntry, {
5600
4890
  item,
5601
4891
  appearance: display === "icon" ? "detail" : "list"
5602
4892
  })
5603
4893
  }, item.value ?? `${item.label}-${index}`)),
5604
- onAdd && addOptions?.length ? /* @__PURE__ */ jsxs9(Fragment, {
4894
+ onAdd && addOptions?.length ? /* @__PURE__ */ jsxs3(Fragment, {
5605
4895
  children: [
5606
- entries.length ? /* @__PURE__ */ jsx15(DropdownMenuSeparator2, {}) : null,
5607
- /* @__PURE__ */ jsx15(DataTableListAddMenu, {
4896
+ entries.length ? /* @__PURE__ */ jsx3(DropdownMenuSeparator, {}) : null,
4897
+ /* @__PURE__ */ jsx3(DataTableListAddMenu, {
5608
4898
  emptyLabel: addEmptyLabel,
5609
4899
  label: addLabel ?? labels.addItem,
5610
4900
  locale,
@@ -5639,28 +4929,28 @@ var DataTableListAddMenu = ({
5639
4929
  const labels = dataTableMessages(locale, messages);
5640
4930
  const normalizedSearch = search.trim().toLocaleLowerCase(locale);
5641
4931
  const filtered = normalizedSearch ? options.filter((item) => item.label.toLocaleLowerCase(locale).includes(normalizedSearch)) : options;
5642
- return /* @__PURE__ */ jsxs9(DropdownMenuSub, {
4932
+ return /* @__PURE__ */ jsxs3(DropdownMenuSub, {
5643
4933
  onOpenChange: (open) => {
5644
4934
  if (!open)
5645
4935
  setSearch("");
5646
4936
  },
5647
4937
  children: [
5648
- /* @__PURE__ */ jsxs9(DropdownMenuSubTrigger2, {
4938
+ /* @__PURE__ */ jsxs3(DropdownMenuSubTrigger, {
5649
4939
  children: [
5650
- /* @__PURE__ */ jsx15(Plus, {}),
4940
+ /* @__PURE__ */ jsx3(Plus, {}),
5651
4941
  label
5652
4942
  ]
5653
4943
  }),
5654
- /* @__PURE__ */ jsxs9(DropdownMenuSubContent2, {
4944
+ /* @__PURE__ */ jsxs3(DropdownMenuSubContent, {
5655
4945
  className: "w-64",
5656
4946
  children: [
5657
- /* @__PURE__ */ jsxs9("div", {
4947
+ /* @__PURE__ */ jsxs3("div", {
5658
4948
  className: "relative p-1",
5659
4949
  children: [
5660
- /* @__PURE__ */ jsx15(Search, {
4950
+ /* @__PURE__ */ jsx3(Search, {
5661
4951
  className: "text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2"
5662
4952
  }),
5663
- /* @__PURE__ */ jsx15(Input2, {
4953
+ /* @__PURE__ */ jsx3(Input, {
5664
4954
  "aria-label": searchLabel,
5665
4955
  className: "h-8 pl-8",
5666
4956
  onChange: (event) => setSearch(event.target.value),
@@ -5674,15 +4964,15 @@ var DataTableListAddMenu = ({
5674
4964
  })
5675
4965
  ]
5676
4966
  }),
5677
- /* @__PURE__ */ jsx15(DropdownMenuSeparator2, {}),
5678
- filtered.length ? filtered.map((item) => /* @__PURE__ */ jsx15(DropdownMenuItem2, {
4967
+ /* @__PURE__ */ jsx3(DropdownMenuSeparator, {}),
4968
+ filtered.length ? filtered.map((item) => /* @__PURE__ */ jsx3(DropdownMenuItem, {
5679
4969
  closeOnClick: false,
5680
4970
  onClick: () => onAdd(item),
5681
- children: /* @__PURE__ */ jsx15(DataTableListEntry, {
4971
+ children: /* @__PURE__ */ jsx3(DataTableListEntry, {
5682
4972
  item,
5683
4973
  appearance: display === "icon" ? "detail" : "list"
5684
4974
  })
5685
- }, item.value)) : /* @__PURE__ */ jsx15("div", {
4975
+ }, item.value)) : /* @__PURE__ */ jsx3("div", {
5686
4976
  className: "text-muted-foreground px-2 py-1.5 text-sm",
5687
4977
  children: emptyLabel
5688
4978
  })
@@ -5703,29 +4993,29 @@ var DataTableListSummaryContent = ({
5703
4993
  }) => {
5704
4994
  const normalized = items.map((item) => Schema6.is(Schema6.String)(item) ? { label: item } : item);
5705
4995
  if (!normalized.length)
5706
- return /* @__PURE__ */ jsx15("span", {
4996
+ return /* @__PURE__ */ jsx3("span", {
5707
4997
  className: "text-muted-foreground",
5708
4998
  children: emptyLabel
5709
4999
  });
5710
5000
  const visible = normalized.slice(0, Math.max(0, visibleCount));
5711
5001
  const remaining = Math.max(totalCount - visible.length, 0);
5712
5002
  if (display === "icon") {
5713
- return /* @__PURE__ */ jsx15(TooltipProvider, {
5714
- children: /* @__PURE__ */ jsxs9("span", {
5003
+ return /* @__PURE__ */ jsx3(TooltipProvider, {
5004
+ children: /* @__PURE__ */ jsxs3("span", {
5715
5005
  className: "flex items-center",
5716
5006
  children: [
5717
- visible.map((item, index) => /* @__PURE__ */ jsx15(DataTableListEntry, {
5007
+ visible.map((item, index) => /* @__PURE__ */ jsx3(DataTableListEntry, {
5718
5008
  item,
5719
5009
  appearance: "icon"
5720
5010
  }, item.value ?? `${item.label}-${index}`)),
5721
- remaining ? /* @__PURE__ */ jsxs9("span", {
5011
+ remaining ? /* @__PURE__ */ jsxs3("span", {
5722
5012
  className: "bg-secondary text-secondary-foreground -ml-1 flex size-8 items-center justify-center rounded-full",
5723
5013
  children: [
5724
5014
  "+",
5725
5015
  remaining
5726
5016
  ]
5727
5017
  }) : null,
5728
- remaining && showMenu ? /* @__PURE__ */ jsx15(DataTableListMenu, {
5018
+ remaining && showMenu ? /* @__PURE__ */ jsx3(DataTableListMenu, {
5729
5019
  actions: [],
5730
5020
  display,
5731
5021
  force: true,
@@ -5737,17 +5027,17 @@ var DataTableListSummaryContent = ({
5737
5027
  })
5738
5028
  });
5739
5029
  }
5740
- return /* @__PURE__ */ jsxs9("span", {
5030
+ return /* @__PURE__ */ jsxs3("span", {
5741
5031
  className: "inline-flex min-w-0 items-center gap-2 text-sm",
5742
5032
  children: [
5743
- /* @__PURE__ */ jsxs9("span", {
5033
+ /* @__PURE__ */ jsxs3("span", {
5744
5034
  className: "truncate",
5745
5035
  children: [
5746
5036
  visible.map((item) => item.label).join(", "),
5747
5037
  remaining ? ` +${remaining}` : ""
5748
5038
  ]
5749
5039
  }),
5750
- remaining && showMenu ? /* @__PURE__ */ jsx15(DataTableListMenu, {
5040
+ remaining && showMenu ? /* @__PURE__ */ jsx3(DataTableListMenu, {
5751
5041
  actions: [],
5752
5042
  display,
5753
5043
  force: true,
@@ -5758,7 +5048,7 @@ var DataTableListSummaryContent = ({
5758
5048
  ]
5759
5049
  });
5760
5050
  };
5761
- var DataTableListSummary = (props) => /* @__PURE__ */ jsx15(DataTableListSummaryContent, {
5051
+ var DataTableListSummary = (props) => /* @__PURE__ */ jsx3(DataTableListSummaryContent, {
5762
5052
  ...props,
5763
5053
  showMenu: true
5764
5054
  });
@@ -5766,40 +5056,40 @@ var DataTableListEntry = ({
5766
5056
  item,
5767
5057
  appearance
5768
5058
  }) => {
5769
- const icon = /* @__PURE__ */ jsx15("span", {
5059
+ const icon = /* @__PURE__ */ jsx3("span", {
5770
5060
  "aria-hidden": "true",
5771
5061
  className: "bg-secondary text-secondary-foreground flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full",
5772
- children: item.imageSrc ? /* @__PURE__ */ jsx15("img", {
5062
+ children: item.imageSrc ? /* @__PURE__ */ jsx3("img", {
5773
5063
  alt: "",
5774
5064
  src: item.imageSrc,
5775
5065
  className: "size-full object-cover"
5776
5066
  }) : item.icon ?? item.label.slice(0, 2).toUpperCase()
5777
5067
  });
5778
5068
  if (appearance === "list") {
5779
- return /* @__PURE__ */ jsx15("span", {
5069
+ return /* @__PURE__ */ jsx3("span", {
5780
5070
  className: "min-w-0 flex-1 truncate",
5781
5071
  title: item.label,
5782
5072
  children: item.label
5783
5073
  });
5784
5074
  }
5785
- return appearance === "icon" ? /* @__PURE__ */ jsxs9(Tooltip, {
5075
+ return appearance === "icon" ? /* @__PURE__ */ jsxs3(Tooltip, {
5786
5076
  children: [
5787
- /* @__PURE__ */ jsx15(TooltipTrigger, {
5788
- render: /* @__PURE__ */ jsx15("span", {
5077
+ /* @__PURE__ */ jsx3(TooltipTrigger, {
5078
+ render: /* @__PURE__ */ jsx3("span", {
5789
5079
  className: "-ml-1 inline-flex rounded-full",
5790
5080
  "aria-label": item.label
5791
5081
  }),
5792
5082
  children: icon
5793
5083
  }),
5794
- /* @__PURE__ */ jsx15(TooltipContent2, {
5084
+ /* @__PURE__ */ jsx3(TooltipContent, {
5795
5085
  children: item.label
5796
5086
  })
5797
5087
  ]
5798
- }) : /* @__PURE__ */ jsxs9("span", {
5088
+ }) : /* @__PURE__ */ jsxs3("span", {
5799
5089
  className: "flex min-w-0 flex-1 items-center gap-2 text-left",
5800
5090
  children: [
5801
5091
  icon,
5802
- /* @__PURE__ */ jsx15("span", {
5092
+ /* @__PURE__ */ jsx3("span", {
5803
5093
  className: "truncate",
5804
5094
  children: item.label
5805
5095
  })