@krak-stack/registry 0.11.4 → 0.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/CHANGELOG.md +23 -1
  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 +706 -1279
  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/classes.d.ts +9 -3
  27. package/dist/components/data-table/html.d.ts +93 -21
  28. package/dist/components/data-table/html.js +309 -196
  29. package/dist/components/data-table/index.d.ts +97 -9
  30. package/dist/components/data-table/react.d.ts +14 -3
  31. package/dist/components/data-table/react.js +700 -1273
  32. package/dist/components/data-table/schema.d.ts +175 -16
  33. package/dist/components/date-input/html.js +19 -74
  34. package/dist/components/date-input/react.d.ts +1 -1
  35. package/dist/components/date-input/react.js +28 -313
  36. package/dist/components/docs/classes.d.ts +15 -0
  37. package/dist/components/docs/html.d.ts +55 -0
  38. package/dist/components/docs/html.js +837 -0
  39. package/dist/components/docs/index.d.ts +49 -0
  40. package/dist/components/docs/react.d.ts +10 -0
  41. package/dist/components/docs/react.js +949 -0
  42. package/dist/components/docs/schema.d.ts +49 -0
  43. package/dist/components/editable-text/html.js +6 -52
  44. package/dist/components/editable-text/react.js +13 -83
  45. package/dist/components/editing-locale-switcher/html.d.ts +2 -2
  46. package/dist/components/editing-locale-switcher/html.js +13 -43
  47. package/dist/components/editing-locale-switcher/react.js +17 -141
  48. package/dist/components/effect-form/react.js +249 -812
  49. package/dist/components/email-composer/react.js +62 -279
  50. package/dist/components/email-editor/html.js +13 -58
  51. package/dist/components/email-editor/react.js +187 -483
  52. package/dist/components/error-component/html.js +2 -47
  53. package/dist/components/error-component/react.js +33 -137
  54. package/dist/components/file-input/html.js +9 -40
  55. package/dist/components/file-input/react.js +39 -208
  56. package/dist/components/form/react.js +212 -777
  57. package/dist/components/icon-input/html.js +9 -56
  58. package/dist/components/icon-input/react.js +43 -143
  59. package/dist/components/image-crop-editor/html.js +1 -35
  60. package/dist/components/image-crop-editor/react.js +21 -66
  61. package/dist/components/locale-switcher/html.js +8 -55
  62. package/dist/components/locale-switcher/react.js +21 -146
  63. package/dist/components/map-menu/html.d.ts +8 -8
  64. package/dist/components/map-menu/html.js +13 -72
  65. package/dist/components/map-menu/react.js +92 -309
  66. package/dist/components/markdown/html.js +1 -35
  67. package/dist/components/markdown/react.js +20 -64
  68. package/dist/components/notification-menu/html.js +14 -50
  69. package/dist/components/notification-menu/react.js +73 -343
  70. package/dist/components/pagination/html.js +17 -73
  71. package/dist/components/pagination/react.js +37 -200
  72. package/dist/components/phone-number-input/html.js +19 -57
  73. package/dist/components/phone-number-input/react.d.ts +1 -1
  74. package/dist/components/phone-number-input/react.js +43 -142
  75. package/dist/components/presence-transition/index.d.ts +2 -2
  76. package/dist/components/registry-previews/component-example.js +26 -126
  77. package/dist/components/rich-text-editor/html.d.ts +12 -12
  78. package/dist/components/rich-text-editor/html.js +12 -85
  79. package/dist/components/rich-text-editor/react.js +55 -272
  80. package/dist/components/search-menu/classes.d.ts +2 -0
  81. package/dist/components/search-menu/html.d.ts +2 -0
  82. package/dist/components/search-menu/html.js +40 -73
  83. package/dist/components/search-menu/index.d.ts +27 -2
  84. package/dist/components/search-menu/react.d.ts +1 -1
  85. package/dist/components/search-menu/react.js +59 -280
  86. package/dist/components/search-menu/schema.d.ts +1 -0
  87. package/dist/components/select-with-custom-input/html.d.ts +2 -2
  88. package/dist/components/select-with-custom-input/html.js +13 -48
  89. package/dist/components/select-with-custom-input/react.js +22 -146
  90. package/dist/components/sidebar-layout/html.d.ts +16 -6
  91. package/dist/components/sidebar-layout/html.js +83 -69
  92. package/dist/components/sidebar-layout/index.d.ts +16 -0
  93. package/dist/components/sidebar-layout/react.js +105 -698
  94. package/dist/components/stats-card/react.js +13 -58
  95. package/dist/components/support/html.js +14 -69
  96. package/dist/components/support/react.js +74 -320
  97. package/dist/components/theme-switcher/html.js +11 -55
  98. package/dist/components/theme-switcher/react.js +28 -152
  99. package/dist/components/time-input/html.d.ts +2 -2
  100. package/dist/components/time-input/html.js +8 -53
  101. package/dist/components/time-input/react.js +34 -188
  102. package/dist/components/timezone-input/html.js +11 -67
  103. package/dist/components/timezone-input/react.js +41 -143
  104. package/dist/components/toast/html.d.ts +6 -6
  105. package/dist/components/toast/html.js +13 -46
  106. package/dist/components/tracking-notice/react.js +39 -188
  107. package/dist/components/unsaved-changes-guard/html.js +9 -43
  108. package/dist/components/unsaved-changes-guard/react.js +19 -169
  109. package/dist/components/upload-attachment/html.d.ts +4 -4
  110. package/dist/components/upload-attachment/html.js +4 -35
  111. package/dist/components/upload-attachment/react.js +25 -164
  112. package/dist/components/virtualized-combobox/html.js +10 -35
  113. package/dist/components/virtualized-combobox/react.js +28 -129
  114. package/dist/components/webhook-delivery-table/html.js +320 -206
  115. package/dist/components/webhook-delivery-table/react.js +736 -1376
  116. package/dist/lib/docs.integrations.server.js +150 -202
  117. package/dist/lib/docs.js +305 -1085
  118. package/dist/lib/docs.server.js +134 -186
  119. package/dist/lib/documentation-toolkit.js +144 -196
  120. package/dist/services/agent/client/index.js +226 -1072
  121. package/dist/services/notification/client/index.js +73 -343
  122. package/dist/services/notification/public.js +73 -343
  123. package/package.json +5 -13
  124. package/dist/components/effectcn/alert-dialog.d.ts +0 -13
  125. package/dist/components/effectcn/button.d.ts +0 -31
  126. package/dist/components/effectcn/calendar.d.ts +0 -12
  127. package/dist/components/effectcn/checkbox.d.ts +0 -10
  128. package/dist/components/effectcn/combobox.d.ts +0 -25
  129. package/dist/components/effectcn/dialog.d.ts +0 -19
  130. package/dist/components/effectcn/field.d.ts +0 -11
  131. package/dist/components/effectcn/file-drop.d.ts +0 -8
  132. package/dist/components/effectcn/input.d.ts +0 -26
  133. package/dist/components/effectcn/menu.d.ts +0 -85
  134. package/dist/components/effectcn/menubar.d.ts +0 -8
  135. package/dist/components/effectcn/popover.d.ts +0 -18
  136. package/dist/components/effectcn/scroll-area.d.ts +0 -12
  137. package/dist/components/effectcn/select.d.ts +0 -68
  138. package/dist/components/effectcn/toast.d.ts +0 -29
  139. package/dist/components/ui/alert-dialog.d.ts +0 -18
  140. package/dist/components/ui/alert.d.ts +0 -10
  141. package/dist/components/ui/attachment.d.ts +0 -23
  142. package/dist/components/ui/badge.d.ts +0 -7
  143. package/dist/components/ui/bubble.d.ts +0 -16
  144. package/dist/components/ui/button.d.ts +0 -8
  145. package/dist/components/ui/calendar.d.ts +0 -10
  146. package/dist/components/ui/card.d.ts +0 -11
  147. package/dist/components/ui/checkbox.d.ts +0 -3
  148. package/dist/components/ui/collapsible.d.ts +0 -5
  149. package/dist/components/ui/command.d.ts +0 -18
  150. package/dist/components/ui/dialog.d.ts +0 -17
  151. package/dist/components/ui/dropdown-menu.d.ts +0 -29
  152. package/dist/components/ui/empty.d.ts +0 -11
  153. package/dist/components/ui/field.d.ts +0 -24
  154. package/dist/components/ui/input-group.d.ts +0 -17
  155. package/dist/components/ui/input.d.ts +0 -3
  156. package/dist/components/ui/item.d.ts +0 -22
  157. package/dist/components/ui/label.d.ts +0 -3
  158. package/dist/components/ui/menubar.d.ts +0 -29
  159. package/dist/components/ui/message-scroller.d.ts +0 -10
  160. package/dist/components/ui/message.d.ts +0 -10
  161. package/dist/components/ui/popover.d.ts +0 -9
  162. package/dist/components/ui/scroll-area.d.ts +0 -4
  163. package/dist/components/ui/select.d.ts +0 -15
  164. package/dist/components/ui/select.js +0 -159
  165. package/dist/components/ui/separator.d.ts +0 -3
  166. package/dist/components/ui/sheet.d.ts +0 -14
  167. package/dist/components/ui/sidebar.d.ts +0 -63
  168. package/dist/components/ui/skeleton.d.ts +0 -2
  169. package/dist/components/ui/table.d.ts +0 -10
  170. package/dist/components/ui/tabs.d.ts +0 -10
  171. package/dist/components/ui/textarea.d.ts +0 -3
  172. package/dist/components/ui/tooltip.d.ts +0 -6
  173. package/dist/components/ui/trace.d.ts +0 -18
  174. package/dist/lib/effectcn-form.d.ts +0 -3
  175. 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 {
@@ -1324,6 +614,13 @@ import { useModel } from "@krak-stack/registry/effect-ui-adapter/react";
1324
614
  import { useKrakstackLocale as useKrakstackLocale3 } from "@krak-stack/registry/krakstack-provider/react";
1325
615
 
1326
616
  // ../../src/components/data-table/classes.ts
617
+ var booleanCellControl = "flex min-h-16 w-full items-center justify-start px-2 in-[[data-slot=table-cell]]:absolute in-[[data-slot=table-cell]]:inset-0 in-[[data-slot=table-cell]]:min-h-0 has-[:focus-visible]:outline-2 has-[:focus-visible]:-outline-offset-2 has-[:focus-visible]:outline-ring";
618
+ var cellTriggerFocus = "focus-visible:ring-0 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-ring";
619
+ var tableBadgeTones = {
620
+ success: "border-emerald-200 bg-emerald-100 text-emerald-900 dark:border-emerald-900/50 dark:bg-emerald-950/50 dark:text-emerald-200",
621
+ info: "border-blue-200 bg-blue-100 text-blue-900 dark:border-blue-900/50 dark:bg-blue-950/50 dark:text-blue-200",
622
+ muted: "border-muted bg-muted text-muted-foreground dark:bg-muted/50"
623
+ };
1327
624
  var tableClasses = {
1328
625
  selectionCell: "w-10 p-0 align-middle",
1329
626
  selectionCenter: "grid place-items-center",
@@ -1335,16 +632,16 @@ var tableClasses = {
1335
632
  menubar: "h-auto w-full flex-wrap justify-start border border-input bg-transparent",
1336
633
  cell: "overflow-hidden",
1337
634
  cellContent: "min-w-0 wrap-anywhere",
1338
- actionTrigger: "size-8 focus-visible:ring-inset",
635
+ actionTrigger: `size-8 ${cellTriggerFocus}`,
1339
636
  actionsCell: "sticky right-0 z-20 w-10 min-w-10 cursor-default bg-background p-0 transition-colors group-hover/row:bg-[color-mix(in_oklab,var(--muted)_50%,var(--background))]",
1340
637
  actionsAlign: "flex min-h-12 items-center justify-end pe-1",
1341
638
  header: "relative h-12 p-0",
1342
639
  stickyHeader: "sticky top-0 z-30 bg-background",
1343
640
  stickyHeaderRule: "after:border-border after:pointer-events-none after:absolute after:inset-x-0 after:bottom-0 after:border-b",
1344
- headerTrigger: "absolute inset-0 h-full w-full min-w-0 justify-start rounded-none px-2 pe-4 focus-visible:ring-inset",
641
+ headerTrigger: `absolute inset-0 h-full w-full min-w-0 justify-start rounded-none px-2 pe-4 ${cellTriggerFocus}`,
1345
642
  resizeHandle: "absolute inset-y-0 right-0 z-10 w-2 cursor-col-resize touch-none outline-none after:absolute after:inset-y-3 after:right-0 after:w-px after:bg-border hover:after:w-0.5 hover:after:bg-primary/60 focus-visible:after:w-0.5 focus-visible:after:bg-ring",
1346
643
  relationshipCell: "grid min-h-16 in-[[data-slot=table-cell]]:absolute in-[[data-slot=table-cell]]:inset-0 in-[[data-slot=table-cell]]:min-h-0",
1347
- relationshipTrigger: "h-full w-full min-w-0 justify-between rounded-none px-2 text-start focus-visible:ring-inset",
644
+ relationshipTrigger: `h-full w-full min-w-0 justify-between rounded-none px-2 text-start ${cellTriggerFocus}`,
1348
645
  reference: "flex min-w-0 items-center gap-2",
1349
646
  referenceAvatar: "relative grid size-8 shrink-0 place-items-center overflow-hidden bg-muted text-xs font-medium",
1350
647
  referenceText: "flex min-w-0 flex-col leading-tight",
@@ -1366,7 +663,7 @@ import { Csv } from "effect/encoding";
1366
663
  import { Command, Component as Component2, Subscription, UiSchema as UiSchema2 } from "effect/ui";
1367
664
 
1368
665
  // ../../src/components/data-table/schema.ts
1369
- import { DateTime as DateTime2, Option as Option2, Schema as Schema4, Struct as Struct2, Tuple } from "effect";
666
+ import { DateTime as DateTime2, Option as Option2, Predicate, Schema as Schema4, Struct as Struct2, Tuple } from "effect";
1370
667
  var TableClassesOverridesSchema = Schema4.Record(Schema4.Literals(Struct2.keys(tableClasses)), Schema4.optionalKey(Schema4.String)).annotate({ identifier: "TableClassesOverrides" });
1371
668
  var DataTableCommonPropsSchema = Schema4.Struct({
1372
669
  classes: Schema4.optional(TableClassesOverridesSchema),
@@ -1474,8 +771,33 @@ var column = {
1474
771
  emptyLabel: Schema4.optionalKey(Schema4.String),
1475
772
  nulls: Schema4.optionalKey(Schema4.Literals(["first", "last"]))
1476
773
  };
774
+ var DataTableBadgeOptionSchema = Schema4.Struct({
775
+ value: Schema4.NonEmptyString,
776
+ label: Schema4.optionalKey(Schema4.String),
777
+ variant: Schema4.optionalKey(Schema4.Literals([
778
+ "default",
779
+ "secondary",
780
+ "outline",
781
+ "destructive",
782
+ "success",
783
+ "info",
784
+ "muted"
785
+ ]))
786
+ }).annotate({ identifier: "DataTableBadgeOption" });
787
+ var BadgeIcon = Schema4.declare((value) => Predicate.isFunction(value)).annotate({ identifier: "DataTableBadgeIcon" });
788
+ var DataTableBadgeOptionsSchema = Schema4.Struct({
789
+ options: Schema4.optionalKey(Schema4.Array(DataTableBadgeOptionSchema.mapFields((fields) => ({
790
+ ...fields,
791
+ icon: Schema4.optionalKey(BadgeIcon)
792
+ }))))
793
+ }).annotate({ identifier: "DataTableBadgeOptions" });
1477
794
  var DataTableFieldSchema = Schema4.Union([
1478
- Schema4.Struct({ ...column, type: Schema4.Literal("text") }),
795
+ Schema4.Struct({
796
+ ...column,
797
+ type: Schema4.Literal("text"),
798
+ display: Schema4.optionalKey(Schema4.Literal("badge")),
799
+ typeOptions: Schema4.optionalKey(DataTableBadgeOptionsSchema)
800
+ }),
1479
801
  Schema4.Struct({
1480
802
  ...column,
1481
803
  type: Schema4.Literal("number"),
@@ -1518,7 +840,7 @@ var DataTableFieldSchema = Schema4.Union([
1518
840
  options: Schema4.optionalKey(Schema4.Array(DataTableItemSchema)),
1519
841
  allowRemove: Schema4.optionalKey(Schema4.Boolean),
1520
842
  itemActions: Schema4.optionalKey(Schema4.Array(DataTableActionSchema)),
1521
- display: Schema4.optionalKey(Schema4.Literals(["list", "icon"])),
843
+ display: Schema4.optionalKey(Schema4.Literals(["list", "icon", "badge"])),
1522
844
  visibleCount: Schema4.optionalKey(Schema4.Int.check(Schema4.isGreaterThanOrEqualTo(0))),
1523
845
  actionsLabel: Schema4.optionalKey(Schema4.String),
1524
846
  manageLabel: Schema4.optionalKey(Schema4.String)
@@ -1812,7 +1134,33 @@ var matchesFilterText = (value, filter) => {
1812
1134
  return text.endsWith(query);
1813
1135
  }
1814
1136
  };
1815
- var tableFilterKind = (column, hasOptions = false) => hasOptions || column.type === "list" ? "values" : column.type === "reference" ? "text" : column.type === "dateTime" ? "date" : column.type ?? "text";
1137
+ var tableFilterKind = (column, hasOptions = false) => hasOptions || column.type === "list" || column.display === "badge" ? "values" : column.type === "reference" ? "text" : column.type === "dateTime" ? "date" : column.type ?? "text";
1138
+ var tableBadgeValue = (value) => isTableText(value) && value !== "" ? value : null;
1139
+ var tableBadge = (input, config) => {
1140
+ const value = tableBadgeValue(input);
1141
+ if (value === null)
1142
+ return null;
1143
+ const option = config?.options?.find((option) => option.value === value);
1144
+ return {
1145
+ value,
1146
+ label: option?.label ?? value,
1147
+ variant: option?.variant ?? "secondary",
1148
+ option
1149
+ };
1150
+ };
1151
+ var tableBadgeFilterOptions = (values, config) => {
1152
+ const options = new Map(config?.options?.map(({ value, label }) => [value, label ?? value]));
1153
+ for (const input of values) {
1154
+ const value = tableBadgeValue(input);
1155
+ if (value !== null && !options.has(value))
1156
+ options.set(value, value);
1157
+ }
1158
+ return [...options].map(([value, label]) => ({ value, label }));
1159
+ };
1160
+ var tableBadgeSearchText = (value, config) => {
1161
+ const badge = tableBadge(value, config);
1162
+ return badge ? `${badge.label} ${badge.value}` : "";
1163
+ };
1816
1164
  var matchesTableFilter = (filter, value, type, text, values) => {
1817
1165
  switch (filter.kind) {
1818
1166
  case "text":
@@ -1846,13 +1194,20 @@ var filterTableColumns = (rows, columns, filters) => {
1846
1194
  return rows;
1847
1195
  return rows.filter((row) => active.every((filter) => {
1848
1196
  const value = row.cells[filter.id];
1849
- return matchesTableFilter(filter, value, byId.get(filter.id)?.type, () => isTableText(value) ? value : isTableReference(value) ? `${value.label} ${value.description ?? ""}`.trim() : "", () => isTableList(value) ? value.map(({ value }) => value) : []);
1197
+ const column = byId.get(filter.id);
1198
+ return matchesTableFilter(filter, value, column?.type, () => isTableText(value) ? value : isTableReference(value) ? `${value.label} ${value.description ?? ""}`.trim() : "", () => {
1199
+ if (column?.type === "text" && column.display === "badge") {
1200
+ const key = tableBadgeValue(value);
1201
+ return key === null ? [] : [key];
1202
+ }
1203
+ return isTableList(value) ? value.map(({ value }) => value) : [];
1204
+ });
1850
1205
  }));
1851
1206
  };
1852
1207
  var columnValue = (column, value) => {
1853
1208
  switch (column.type) {
1854
1209
  case "text":
1855
- return isTableText(value) ? value : null;
1210
+ return column.display === "badge" ? tableBadgeValue(value) : isTableText(value) ? value : null;
1856
1211
  case "number":
1857
1212
  case "boolean":
1858
1213
  case "date":
@@ -1906,6 +1261,8 @@ var filterTableRows = (rows, columns, search, locale) => {
1906
1261
  const searchable = columns.filter(({ searchable }) => searchable !== false);
1907
1262
  return rows.filter((row) => searchable.some((column) => {
1908
1263
  const value = row.cells[column.id];
1264
+ if (column.type === "text" && column.display === "badge")
1265
+ return tableBadgeSearchText(value, column.typeOptions).toLocaleLowerCase(locale).includes(query);
1909
1266
  if (column.type === "date" || column.type === "dateTime") {
1910
1267
  const date = resolveDate(value, column.type);
1911
1268
  return !!date && `${formatDateValue(date, column, locale)} ${dateIsoValue(date)}`.toLocaleLowerCase(locale).includes(query);
@@ -2618,14 +1975,14 @@ var dataTableBehaviours = {
2618
1975
  };
2619
1976
 
2620
1977
  // ../../src/components/data-table/react.tsx
2621
- import { jsx as jsx15, jsxs as jsxs9, Fragment } from "react/jsx-runtime";
1978
+ import { jsx as jsx3, jsxs as jsxs3, Fragment } from "react/jsx-runtime";
2622
1979
  var DataTableStylesContext = createContext(undefined);
2623
1980
  var DataTableSlotClassesContext = createContext(resolveTableClasses());
2624
1981
  var styledTablePart = (Part, slot, style) => {
2625
1982
  const StyledPart = (props) => {
2626
1983
  const styles = useContext(DataTableStylesContext);
2627
1984
  const className = cn(props.className, style(styles));
2628
- return /* @__PURE__ */ jsx15(Part, {
1985
+ return /* @__PURE__ */ jsx3(Part, {
2629
1986
  "data-table-slot": slot,
2630
1987
  ...props,
2631
1988
  className
@@ -2633,32 +1990,32 @@ var styledTablePart = (Part, slot, style) => {
2633
1990
  };
2634
1991
  return StyledPart;
2635
1992
  };
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);
1993
+ var Table = styledTablePart(PrimitiveTable, "table", (s) => s?.table?.content);
1994
+ var TableHeader = styledTablePart(PrimitiveTableHeader, "header", (s) => s?.table?.header);
1995
+ var TableBody = styledTablePart(PrimitiveTableBody, "body", (s) => s?.table?.body);
1996
+ var TableRow = styledTablePart(PrimitiveTableRow, "row", (s) => s?.table?.row);
1997
+ var TableHead = styledTablePart(PrimitiveTableHead, "head", (s) => s?.table?.head);
1998
+ var TableCell = styledTablePart(PrimitiveTableCell, "cell", (s) => s?.table?.cell);
1999
+ var Input = styledTablePart(PrimitiveInput, "input", (s) => s?.toolbar?.search);
2000
+ var Menubar = styledTablePart(PrimitiveMenubar, "menubar", (s) => s?.toolbar?.content);
2001
+ var MenubarTrigger = styledTablePart(PrimitiveMenubarTrigger, "menu-trigger", (s) => s?.toolbar?.trigger);
2002
+ var MenubarContent = styledTablePart(PrimitiveMenubarContent, "menu", (s) => s?.menu?.content);
2003
+ var MenubarSubContent = styledTablePart(PrimitiveMenubarSubContent, "submenu", (s) => s?.menu?.subContent);
2004
+ var MenubarSubTrigger = styledTablePart(PrimitiveMenubarSubTrigger, "submenu-trigger", (s) => s?.menu?.subTrigger);
2005
+ var MenubarItem = styledTablePart(PrimitiveMenubarItem, "menu-item", (s) => s?.menu?.item);
2006
+ var MenubarCheckboxItem = styledTablePart(PrimitiveMenubarCheckboxItem, "menu-checkbox-item", (s) => s?.menu?.item);
2007
+ var MenubarRadioItem = styledTablePart(PrimitiveMenubarRadioItem, "menu-radio-item", (s) => s?.menu?.item);
2008
+ var MenubarLabel = styledTablePart(PrimitiveMenubarLabel, "menu-label", (s) => s?.menu?.label);
2009
+ var MenubarSeparator = styledTablePart(PrimitiveMenubarSeparator, "menu-separator", (s) => s?.menu?.separator);
2010
+ var DropdownMenuTrigger = styledTablePart(PrimitiveDropdownMenuTrigger, "row-menu-trigger", (s) => s?.toolbar?.trigger);
2011
+ var DropdownMenuContent = styledTablePart(PrimitiveDropdownMenuContent, "row-menu", (s) => s?.menu?.content);
2012
+ var DropdownMenuSubContent = styledTablePart(PrimitiveDropdownMenuSubContent, "row-submenu", (s) => s?.menu?.subContent);
2013
+ var DropdownMenuSubTrigger = styledTablePart(PrimitiveDropdownMenuSubTrigger, "row-submenu-trigger", (s) => s?.menu?.subTrigger);
2014
+ var DropdownMenuItem = styledTablePart(PrimitiveDropdownMenuItem, "row-menu-item", (s) => s?.menu?.item);
2015
+ var DropdownMenuLabel = styledTablePart(PrimitiveDropdownMenuLabel, "row-menu-label", (s) => s?.menu?.label);
2016
+ var DropdownMenuSeparator = styledTablePart(PrimitiveDropdownMenuSeparator, "row-menu-separator", (s) => s?.menu?.separator);
2017
+ var SelectContent2 = styledTablePart(PrimitiveSelectContent, "select-popup", (s) => s?.popup?.select);
2018
+ var TooltipContent = styledTablePart(PrimitiveTooltipContent, "tooltip", (s) => s?.popup?.tooltip);
2662
2019
  var DataTableReferenceCell = ({
2663
2020
  item,
2664
2021
  emptyLabel = "—",
@@ -2669,33 +2026,33 @@ var DataTableReferenceCell = ({
2669
2026
  if (!item)
2670
2027
  return emptyLabel;
2671
2028
  const initials = tableInitials(item.label);
2672
- return /* @__PURE__ */ jsxs9("div", {
2029
+ return /* @__PURE__ */ jsxs3("div", {
2673
2030
  className: tableClasses.reference,
2674
2031
  children: [
2675
- /* @__PURE__ */ jsx15("div", {
2032
+ /* @__PURE__ */ jsx3("div", {
2676
2033
  className: cn(tableClasses.referenceAvatar, imageVariant === "circle" ? "rounded-full" : "rounded-md", item.iconClassName),
2677
- children: item.icon ? /* @__PURE__ */ jsx15("span", {
2034
+ children: item.icon ? /* @__PURE__ */ jsx3("span", {
2678
2035
  "aria-hidden": "true",
2679
2036
  className: "[&_svg]:size-4",
2680
2037
  children: item.icon
2681
- }) : item.imageSrc && item.imageSrc !== failedImage ? /* @__PURE__ */ jsx15("img", {
2038
+ }) : item.imageSrc && item.imageSrc !== failedImage ? /* @__PURE__ */ jsx3("img", {
2682
2039
  src: item.imageSrc,
2683
2040
  alt: item.label,
2684
2041
  className: "size-full object-cover",
2685
2042
  onError: () => setFailedImage(item.imageSrc ?? undefined)
2686
- }) : /* @__PURE__ */ jsx15("span", {
2043
+ }) : /* @__PURE__ */ jsx3("span", {
2687
2044
  "aria-hidden": "true",
2688
2045
  children: initials
2689
2046
  })
2690
2047
  }),
2691
- /* @__PURE__ */ jsxs9("div", {
2048
+ /* @__PURE__ */ jsxs3("div", {
2692
2049
  className: tableClasses.referenceText,
2693
2050
  children: [
2694
- /* @__PURE__ */ jsx15("span", {
2051
+ /* @__PURE__ */ jsx3("span", {
2695
2052
  className: tableClasses.referenceName,
2696
2053
  children: item.label
2697
2054
  }),
2698
- item.description ? /* @__PURE__ */ jsx15("span", {
2055
+ item.description ? /* @__PURE__ */ jsx3("span", {
2699
2056
  className: tableClasses.referenceDescription,
2700
2057
  children: item.description
2701
2058
  }) : null
@@ -2835,6 +2192,8 @@ var booleanLabel = (value, options) => value ? options?.trueLabel : options?.fal
2835
2192
  var getDataTableExportValue = (row, column, locale = "en") => {
2836
2193
  const value = row.values.get(column.id);
2837
2194
  const colDef = column.colDef;
2195
+ if (colDef.type === "text" && colDef.display === "badge")
2196
+ return tableBadgeValue(value);
2838
2197
  if (colDef.type === "number") {
2839
2198
  const number = Option4.getOrUndefined(decodeNumberValue(value));
2840
2199
  if (number === undefined)
@@ -2863,7 +2222,9 @@ var filterDataTableRows = (rows, columns, globalFilter, locale = "en") => {
2863
2222
  const value = row.values.get(column.id);
2864
2223
  const colDef = column.colDef;
2865
2224
  let text = dataTableValueText(value);
2866
- if (colDef.type === "date" || colDef.type === "dateTime") {
2225
+ if (colDef.type === "text" && colDef.display === "badge") {
2226
+ text = tableBadgeSearchText(value, colDef.typeOptions);
2227
+ } else if (colDef.type === "date" || colDef.type === "dateTime") {
2867
2228
  const date = resolveDate(value, colDef.type);
2868
2229
  text = date ? `${formatDateValue(date, colDef, locale)} ${dateIsoValue(date)}` : "";
2869
2230
  } else if (colDef.type === "number") {
@@ -2879,11 +2240,14 @@ var filterDataTableRows = (rows, columns, globalFilter, locale = "en") => {
2879
2240
  var getDataTableFilterColumns = (columns) => columns.flatMap((column) => column.colDef.filterable === false ? [] : ((column.colDef.fields?.length) ? getDataTableFieldColumns(column) : [column]).filter(({ colDef }) => colDef.filterable !== false));
2880
2241
  var getDataTableFilterKind = ({
2881
2242
  colDef
2882
- }) => tableFilterKind(colDef, !!colDef.filterOptions);
2243
+ }) => tableFilterKind(colDef.type === "text" ? colDef : { type: colDef.type }, !!colDef.filterOptions);
2883
2244
  var getDataTableFilterOptions = (rows, column) => {
2884
2245
  const { colDef } = column;
2885
2246
  if (colDef.filterOptions)
2886
2247
  return colDef.filterOptions;
2248
+ if (colDef.type === "text" && colDef.display === "badge") {
2249
+ return tableBadgeFilterOptions(rows.map((row) => row.values.get(column.id)), colDef.typeOptions);
2250
+ }
2887
2251
  const options = new Map;
2888
2252
  if (colDef.type === "list") {
2889
2253
  for (const row of rows) {
@@ -2908,7 +2272,15 @@ var filterDataTableColumnRows = (rows, columns, filters) => {
2908
2272
  colDef: column.colDef
2909
2273
  }) : row.values.get(column.id);
2910
2274
  const { colDef } = column;
2911
- return matchesTableFilter(filter, value, colDef.type, () => dataTableValueText(value), () => colDef.type === "list" ? colDef.typeOptions.getItems(row.data).map((item) => item.value ?? item.label) : [dataTableValueText(value)]);
2275
+ return matchesTableFilter(filter, value, colDef.type, () => dataTableValueText(value), () => {
2276
+ if (colDef.type === "list")
2277
+ return colDef.typeOptions.getItems(row.data).map((item) => item.value ?? item.label);
2278
+ if (colDef.type === "text" && colDef.display === "badge") {
2279
+ const key = tableBadgeValue(value);
2280
+ return key === null ? [] : [key];
2281
+ }
2282
+ return [dataTableValueText(value)];
2283
+ });
2912
2284
  }));
2913
2285
  };
2914
2286
  var sortDataTableRows = (rows, columns, sorting) => {
@@ -2924,6 +2296,12 @@ var sortDataTableRows = (rows, columns, sorting) => {
2924
2296
  const leftValue = left.row.values.get(sort.id);
2925
2297
  const rightValue = right.row.values.get(sort.id);
2926
2298
  const colDef = column.colDef;
2299
+ if (!colDef.comparator && colDef.type === "text" && colDef.display === "badge") {
2300
+ const comparison = compareTableSortValues(tableBadgeValue(leftValue), tableBadgeValue(rightValue), sort.direction);
2301
+ if (comparison !== 0)
2302
+ return comparison;
2303
+ continue;
2304
+ }
2927
2305
  if (!colDef.comparator && (colDef.type === "number" || colDef.type === "boolean" || colDef.type === "date" || colDef.type === "dateTime")) {
2928
2306
  const comparison = compareTableSortValues(tableSortScalar(colDef.type, leftValue), tableSortScalar(colDef.type, rightValue), sort.direction, colDef.typeOptions?.nulls);
2929
2307
  if (comparison !== 0)
@@ -3071,14 +2449,35 @@ var renderCell = (row, column, locale = "en", labels = dataTableMessages(locale)
3071
2449
  };
3072
2450
  const CellRenderer = column.colDef.cellRenderer;
3073
2451
  if (CellRenderer)
3074
- return /* @__PURE__ */ jsx15(CellRenderer, {
2452
+ return /* @__PURE__ */ jsx3(CellRenderer, {
3075
2453
  ...params
3076
2454
  });
3077
2455
  const colDef = column.colDef;
2456
+ if (colDef.type === "text" && colDef.display === "badge") {
2457
+ if (colDef.valueFormatter)
2458
+ return colDef.valueFormatter(params);
2459
+ const badge = tableBadge(value, colDef.typeOptions);
2460
+ if (!badge)
2461
+ return colDef.typeOptions?.emptyLabel ?? "—";
2462
+ const { variant, label, option } = badge;
2463
+ const tone = variant === "success" || variant === "info" || variant === "muted" ? tableBadgeTones[variant] : undefined;
2464
+ return /* @__PURE__ */ jsxs3(Badge, {
2465
+ variant: variant === "success" || variant === "info" || variant === "muted" ? "outline" : variant,
2466
+ className: tone,
2467
+ children: [
2468
+ option?.icon && /* @__PURE__ */ jsx3("span", {
2469
+ "aria-hidden": "true",
2470
+ className: "inline-flex shrink-0 [&_svg]:size-3",
2471
+ children: option.icon
2472
+ }),
2473
+ label
2474
+ ]
2475
+ });
2476
+ }
3078
2477
  if (colDef.type === "reference") {
3079
2478
  if (colDef.valueFormatter)
3080
2479
  return colDef.valueFormatter(params);
3081
- return /* @__PURE__ */ jsx15(DataTableReferenceCell, {
2480
+ return /* @__PURE__ */ jsx3(DataTableReferenceCell, {
3082
2481
  item: colDef.typeOptions.getItem(row.data),
3083
2482
  emptyLabel: colDef.typeOptions.emptyLabel,
3084
2483
  ...colDef.typeOptions.imageVariant ? { imageVariant: colDef.typeOptions.imageVariant } : {}
@@ -3088,7 +2487,7 @@ var renderCell = (row, column, locale = "en", labels = dataTableMessages(locale)
3088
2487
  if (colDef.valueFormatter)
3089
2488
  return colDef.valueFormatter(params);
3090
2489
  const number = Option4.getOrUndefined(decodeNumberValue(value));
3091
- return /* @__PURE__ */ jsx15("span", {
2490
+ return /* @__PURE__ */ jsx3("span", {
3092
2491
  className: "block text-left tabular-nums",
3093
2492
  children: number === undefined ? colDef.typeOptions?.emptyLabel ?? "—" : formatNumberValue(number, colDef.typeOptions, locale)
3094
2493
  });
@@ -3100,12 +2499,12 @@ var renderCell = (row, column, locale = "en", labels = dataTableMessages(locale)
3100
2499
  if (boolean === undefined)
3101
2500
  return colDef.typeOptions?.emptyLabel ?? "—";
3102
2501
  const options = colDef.typeOptions;
3103
- return /* @__PURE__ */ jsx15("label", {
2502
+ return /* @__PURE__ */ jsx3("label", {
3104
2503
  "data-slot": "data-table-boolean-cell",
3105
- 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"),
2504
+ className: cn(booleanCellControl, options?.onChange && !options.disabled?.(row.data) && "hover:bg-muted/50 cursor-pointer"),
3106
2505
  onClick: (event) => event.stopPropagation(),
3107
2506
  onPointerDown: (event) => event.stopPropagation(),
3108
- children: /* @__PURE__ */ jsx15(Checkbox, {
2507
+ children: /* @__PURE__ */ jsx3(Checkbox, {
3109
2508
  "aria-label": options?.getAriaLabel?.(row.data) ?? columnLabel(column),
3110
2509
  className: "focus-visible:ring-0 focus-visible:outline-none",
3111
2510
  checked: boolean,
@@ -3119,7 +2518,7 @@ var renderCell = (row, column, locale = "en", labels = dataTableMessages(locale)
3119
2518
  if (colDef.valueFormatter)
3120
2519
  return colDef.valueFormatter(params);
3121
2520
  const date = resolveDate(value, colDef.type);
3122
- return date ? /* @__PURE__ */ jsx15("time", {
2521
+ return date ? /* @__PURE__ */ jsx3("time", {
3123
2522
  dateTime: dateIsoValue(date),
3124
2523
  children: formatDateValue(date, colDef, locale)
3125
2524
  }) : colDef.typeOptions?.emptyLabel ?? "—";
@@ -3133,7 +2532,7 @@ var renderCell = (row, column, locale = "en", labels = dataTableMessages(locale)
3133
2532
  disabled: (item) => action.disabled?.({ item, row: row.data }) ?? false
3134
2533
  }));
3135
2534
  if (config.getOptions) {
3136
- return /* @__PURE__ */ jsx15(DataTableListCell, {
2535
+ return /* @__PURE__ */ jsx3(DataTableListCell, {
3137
2536
  ...config,
3138
2537
  itemActions,
3139
2538
  onItemClick: config.onItemClick ? (item) => config.onItemClick?.({ item, row: row.data }) : undefined,
@@ -3146,7 +2545,7 @@ var renderCell = (row, column, locale = "en", labels = dataTableMessages(locale)
3146
2545
  onRemove: config.onRemove ? (value) => config.onRemove?.({ value, row: row.data }) : undefined
3147
2546
  });
3148
2547
  }
3149
- return /* @__PURE__ */ jsx15(DataTableListCell, {
2548
+ return /* @__PURE__ */ jsx3(DataTableListCell, {
3150
2549
  ...config,
3151
2550
  itemActions,
3152
2551
  onItemClick: config.onItemClick ? (item) => config.onItemClick?.({ item, row: row.data }) : undefined,
@@ -3181,33 +2580,33 @@ var DataTableRowActions = ({
3181
2580
  const visible = actions.filter((action) => !action.visible || action.visible(row));
3182
2581
  if (!visible.length)
3183
2582
  return null;
3184
- return /* @__PURE__ */ jsxs9(DropdownMenu, {
2583
+ return /* @__PURE__ */ jsxs3(DropdownMenu, {
3185
2584
  children: [
3186
- /* @__PURE__ */ jsx15(DropdownMenuTrigger2, {
2585
+ /* @__PURE__ */ jsx3(DropdownMenuTrigger, {
3187
2586
  onClick: (event) => event.stopPropagation(),
3188
- render: /* @__PURE__ */ jsxs9(Button, {
2587
+ render: /* @__PURE__ */ jsxs3(Button2, {
3189
2588
  className: cn(tableClasses.actionTrigger, "[&_svg:not([class*='size-'])]:size-4"),
3190
2589
  size: "icon",
3191
2590
  variant: "ghost",
3192
2591
  children: [
3193
- /* @__PURE__ */ jsx15("span", {
2592
+ /* @__PURE__ */ jsx3("span", {
3194
2593
  className: "sr-only",
3195
2594
  children: title
3196
2595
  }),
3197
- /* @__PURE__ */ jsx15(MoreHorizontal, {})
2596
+ /* @__PURE__ */ jsx3(MoreHorizontal, {})
3198
2597
  ]
3199
2598
  })
3200
2599
  }),
3201
- /* @__PURE__ */ jsx15(DropdownMenuContent2, {
2600
+ /* @__PURE__ */ jsx3(DropdownMenuContent, {
3202
2601
  align: "end",
3203
2602
  className: "w-max",
3204
- children: /* @__PURE__ */ jsxs9(DropdownMenuGroup, {
2603
+ children: /* @__PURE__ */ jsxs3(DropdownMenuGroup, {
3205
2604
  children: [
3206
- /* @__PURE__ */ jsx15(DropdownMenuLabel2, {
2605
+ /* @__PURE__ */ jsx3(DropdownMenuLabel, {
3207
2606
  children: title
3208
2607
  }),
3209
- /* @__PURE__ */ jsx15(DropdownMenuSeparator2, {}),
3210
- visible.map((action) => /* @__PURE__ */ jsxs9(DropdownMenuItem2, {
2608
+ /* @__PURE__ */ jsx3(DropdownMenuSeparator, {}),
2609
+ visible.map((action) => /* @__PURE__ */ jsxs3(DropdownMenuItem, {
3211
2610
  onClick: (event) => {
3212
2611
  event.stopPropagation();
3213
2612
  action.onClick(row);
@@ -3242,7 +2641,7 @@ var DataTableRowActionMenu = ({
3242
2641
  reorderActions.push({
3243
2642
  id: "data-table-move-up",
3244
2643
  name: store.config.labels.moveUp,
3245
- icon: /* @__PURE__ */ jsx15(ArrowUp, {}),
2644
+ icon: /* @__PURE__ */ jsx3(ArrowUp, {}),
3246
2645
  onClick: () => move(rowIndex - 1)
3247
2646
  });
3248
2647
  }
@@ -3250,12 +2649,12 @@ var DataTableRowActionMenu = ({
3250
2649
  reorderActions.push({
3251
2650
  id: "data-table-move-down",
3252
2651
  name: store.config.labels.moveDown,
3253
- icon: /* @__PURE__ */ jsx15(ArrowDown, {}),
2652
+ icon: /* @__PURE__ */ jsx3(ArrowDown, {}),
3254
2653
  onClick: () => move(rowIndex + 1)
3255
2654
  });
3256
2655
  }
3257
2656
  }
3258
- return /* @__PURE__ */ jsx15(DataTableRowActions, {
2657
+ return /* @__PURE__ */ jsx3(DataTableRowActions, {
3259
2658
  actions: [...reorderActions, ...rowActions ? rowActions.items : []],
3260
2659
  row: row.data,
3261
2660
  title: rowActions?.label ?? store.config.labels.actions
@@ -3301,60 +2700,60 @@ var DataTableToolbar = ({
3301
2700
  send(DataTableMessage.ExportFinished({ failed }));
3302
2701
  }
3303
2702
  };
3304
- return /* @__PURE__ */ jsxs9("div", {
2703
+ return /* @__PURE__ */ jsxs3("div", {
3305
2704
  className: cn(tableClasses.toolbar, "pb-4"),
3306
2705
  children: [
3307
- features.search !== false ? /* @__PURE__ */ jsxs9("div", {
2706
+ features.search !== false ? /* @__PURE__ */ jsxs3("div", {
3308
2707
  className: tableClasses.toolbarSearch,
3309
2708
  children: [
3310
- /* @__PURE__ */ jsx15(Search, {
2709
+ /* @__PURE__ */ jsx3(Search, {
3311
2710
  className: "text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2"
3312
2711
  }),
3313
- /* @__PURE__ */ jsx15(Input2, {
2712
+ /* @__PURE__ */ jsx3(Input, {
3314
2713
  className: "px-9",
3315
2714
  onChange: (event) => send(DataTableMessage.SearchChanged({ value: event.target.value })),
3316
2715
  placeholder: labels.filter,
3317
2716
  value: store.state.globalFilter ?? ""
3318
2717
  }),
3319
- store.state.globalFilter ? /* @__PURE__ */ jsx15(Button, {
2718
+ store.state.globalFilter ? /* @__PURE__ */ jsx3(Button2, {
3320
2719
  "aria-label": labels.filter,
3321
2720
  className: "absolute top-1/2 right-1 size-7 -translate-y-1/2 active:not-aria-[haspopup]:-translate-y-1/2",
3322
2721
  onClick: () => send(DataTableMessage.SearchChanged({ value: "" })),
3323
2722
  size: "icon",
3324
2723
  variant: "ghost",
3325
- children: /* @__PURE__ */ jsx15(X, {})
2724
+ children: /* @__PURE__ */ jsx3(X, {})
3326
2725
  }) : null
3327
2726
  ]
3328
2727
  }) : null,
3329
- /* @__PURE__ */ jsx15("div", {
2728
+ /* @__PURE__ */ jsx3("div", {
3330
2729
  className: tableClasses.toolbarMenus,
3331
- children: /* @__PURE__ */ jsxs9(Menubar2, {
2730
+ children: /* @__PURE__ */ jsxs3(Menubar, {
3332
2731
  modal: false,
3333
2732
  className: cn(tableClasses.menubar, "[&_[data-slot=menubar-trigger]]:gap-2 [&_[data-slot=menubar-trigger]_svg]:size-4"),
3334
2733
  children: [
3335
- visibleBulkActions.length ? /* @__PURE__ */ jsxs9(MenubarMenu, {
2734
+ visibleBulkActions.length ? /* @__PURE__ */ jsxs3(MenubarMenu, {
3336
2735
  children: [
3337
- /* @__PURE__ */ jsxs9(MenubarTrigger2, {
2736
+ /* @__PURE__ */ jsxs3(MenubarTrigger, {
3338
2737
  className: cn(tableClasses.selectedTrigger, "aria-expanded:bg-primary/90"),
3339
2738
  children: [
3340
2739
  labels.selected,
3341
- /* @__PURE__ */ jsx15("span", {
2740
+ /* @__PURE__ */ jsx3("span", {
3342
2741
  className: tableClasses.count,
3343
2742
  children: selectedRows.length
3344
2743
  }),
3345
- /* @__PURE__ */ jsx15(ChevronDown, {})
2744
+ /* @__PURE__ */ jsx3(ChevronDown, {})
3346
2745
  ]
3347
2746
  }),
3348
- /* @__PURE__ */ jsx15(MenubarContent2, {
2747
+ /* @__PURE__ */ jsx3(MenubarContent, {
3349
2748
  align: "end",
3350
2749
  className: "w-max",
3351
- children: /* @__PURE__ */ jsxs9(MenubarGroup, {
2750
+ children: /* @__PURE__ */ jsxs3(MenubarGroup, {
3352
2751
  children: [
3353
- /* @__PURE__ */ jsx15(MenubarLabel2, {
2752
+ /* @__PURE__ */ jsx3(MenubarLabel, {
3354
2753
  children: bulkActions && bulkActions.label ? bulkActions.label : labels.actions
3355
2754
  }),
3356
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3357
- visibleBulkActions.map((action) => /* @__PURE__ */ jsxs9(MenubarItem2, {
2755
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
2756
+ visibleBulkActions.map((action) => /* @__PURE__ */ jsxs3(MenubarItem, {
3358
2757
  onClick: () => action.onClick(selectedRows),
3359
2758
  variant: action.variant ?? "default",
3360
2759
  children: [
@@ -3368,30 +2767,30 @@ var DataTableToolbar = ({
3368
2767
  ]
3369
2768
  }) : null,
3370
2769
  toolbar && toolbar.items,
3371
- features.filtering !== false ? /* @__PURE__ */ jsx15(FilterMenu, {
2770
+ features.filtering !== false ? /* @__PURE__ */ jsx3(FilterMenu, {
3372
2771
  table
3373
2772
  }) : null,
3374
- grouping ? /* @__PURE__ */ jsxs9(MenubarMenu, {
2773
+ grouping ? /* @__PURE__ */ jsxs3(MenubarMenu, {
3375
2774
  children: [
3376
- /* @__PURE__ */ jsxs9(MenubarTrigger2, {
2775
+ /* @__PURE__ */ jsxs3(MenubarTrigger, {
3377
2776
  "aria-label": labels.groupBy,
3378
2777
  children: [
3379
- /* @__PURE__ */ jsx15(Rows3, {}),
3380
- /* @__PURE__ */ jsx15("span", {
2778
+ /* @__PURE__ */ jsx3(Rows3, {}),
2779
+ /* @__PURE__ */ jsx3("span", {
3381
2780
  className: "hidden sm:inline",
3382
2781
  children: labels.groupBy
3383
2782
  })
3384
2783
  ]
3385
2784
  }),
3386
- /* @__PURE__ */ jsx15(MenubarContent2, {
2785
+ /* @__PURE__ */ jsx3(MenubarContent, {
3387
2786
  align: "end",
3388
- children: /* @__PURE__ */ jsxs9(MenubarGroup, {
2787
+ children: /* @__PURE__ */ jsxs3(MenubarGroup, {
3389
2788
  children: [
3390
- /* @__PURE__ */ jsx15(MenubarLabel2, {
2789
+ /* @__PURE__ */ jsx3(MenubarLabel, {
3391
2790
  children: labels.groupBy
3392
2791
  }),
3393
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3394
- grouping.fields.map((field) => /* @__PURE__ */ jsx15(MenubarCheckboxItem2, {
2792
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
2793
+ grouping.fields.map((field) => /* @__PURE__ */ jsx3(MenubarCheckboxItem, {
3395
2794
  checked: store.state.grouping.includes(field.id),
3396
2795
  onCheckedChange: () => send(DataTableMessage.GroupingToggled({ fieldId: field.id })),
3397
2796
  children: field.label
@@ -3401,77 +2800,77 @@ var DataTableToolbar = ({
3401
2800
  })
3402
2801
  ]
3403
2802
  }) : null,
3404
- features.sorting !== false ? /* @__PURE__ */ jsx15(SortMenu, {
2803
+ features.sorting !== false ? /* @__PURE__ */ jsx3(SortMenu, {
3405
2804
  table
3406
2805
  }) : null,
3407
- features.gallery ? /* @__PURE__ */ jsx15(ViewMenu, {
2806
+ features.gallery ? /* @__PURE__ */ jsx3(ViewMenu, {
3408
2807
  table
3409
2808
  }) : null,
3410
- features.columnVisibility !== false ? /* @__PURE__ */ jsx15(ColumnMenu, {
2809
+ features.columnVisibility !== false ? /* @__PURE__ */ jsx3(ColumnMenu, {
3411
2810
  table
3412
2811
  }) : null,
3413
- features.refresh ? /* @__PURE__ */ jsx15(MenubarMenu, {
3414
- children: /* @__PURE__ */ jsxs9(MenubarTrigger2, {
2812
+ features.refresh ? /* @__PURE__ */ jsx3(MenubarMenu, {
2813
+ children: /* @__PURE__ */ jsxs3(MenubarTrigger, {
3415
2814
  "aria-label": labels.refresh,
3416
2815
  onClick: features.refresh,
3417
2816
  children: [
3418
- /* @__PURE__ */ jsx15(RefreshCw, {}),
3419
- /* @__PURE__ */ jsx15("span", {
2817
+ /* @__PURE__ */ jsx3(RefreshCw, {}),
2818
+ /* @__PURE__ */ jsx3("span", {
3420
2819
  className: "hidden sm:inline",
3421
2820
  children: labels.refresh
3422
2821
  })
3423
2822
  ]
3424
2823
  })
3425
2824
  }) : null,
3426
- features.export ? /* @__PURE__ */ jsxs9(MenubarMenu, {
2825
+ features.export ? /* @__PURE__ */ jsxs3(MenubarMenu, {
3427
2826
  children: [
3428
- /* @__PURE__ */ jsxs9(MenubarTrigger2, {
2827
+ /* @__PURE__ */ jsxs3(MenubarTrigger, {
3429
2828
  "aria-label": labels.export,
3430
2829
  "aria-busy": exporting,
3431
2830
  disabled: exporting || !canExport,
3432
2831
  children: [
3433
- exporting ? /* @__PURE__ */ jsx15(RefreshCw, {
2832
+ exporting ? /* @__PURE__ */ jsx3(RefreshCw, {
3434
2833
  className: "animate-spin"
3435
- }) : /* @__PURE__ */ jsx15(Download, {}),
3436
- /* @__PURE__ */ jsx15("span", {
2834
+ }) : /* @__PURE__ */ jsx3(Download, {}),
2835
+ /* @__PURE__ */ jsx3("span", {
3437
2836
  className: "hidden sm:inline",
3438
2837
  children: exporting ? labels.loading : labels.export
3439
2838
  })
3440
2839
  ]
3441
2840
  }),
3442
- /* @__PURE__ */ jsx15(MenubarContent2, {
2841
+ /* @__PURE__ */ jsx3(MenubarContent, {
3443
2842
  align: "end",
3444
- children: /* @__PURE__ */ jsxs9(MenubarGroup, {
2843
+ children: /* @__PURE__ */ jsxs3(MenubarGroup, {
3445
2844
  children: [
3446
- /* @__PURE__ */ jsx15(MenubarLabel2, {
2845
+ /* @__PURE__ */ jsx3(MenubarLabel, {
3447
2846
  children: labels.export
3448
2847
  }),
3449
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3450
- builtInExport ? /* @__PURE__ */ jsxs9(Fragment, {
2848
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
2849
+ builtInExport ? /* @__PURE__ */ jsxs3(Fragment, {
3451
2850
  children: [
3452
- /* @__PURE__ */ jsxs9(MenubarItem2, {
2851
+ /* @__PURE__ */ jsxs3(MenubarItem, {
3453
2852
  disabled: exporting || !exportRows.length,
3454
2853
  onClick: () => downloadCsv(exportColumns.map(columnLabel), exportRows.map((row) => exportColumns.map((column) => dataTableValueText(getDataTableExportValue(row, column, store.config.locale) ?? ""))), features.export ? features.export.baseName : "table"),
3455
2854
  children: [
3456
- /* @__PURE__ */ jsx15(FileText, {}),
2855
+ /* @__PURE__ */ jsx3(FileText, {}),
3457
2856
  labels.exportCsv
3458
2857
  ]
3459
2858
  }),
3460
- /* @__PURE__ */ jsxs9(MenubarItem2, {
2859
+ /* @__PURE__ */ jsxs3(MenubarItem, {
3461
2860
  disabled: exporting || !exportRows.length,
3462
2861
  onClick: () => downloadJson(exportRows.map((row) => Object.fromEntries(exportColumns.map((column) => [
3463
2862
  column.id,
3464
2863
  getDataTableExportValue(row, column, store.config.locale)
3465
2864
  ]))), features.export ? features.export.baseName : "table"),
3466
2865
  children: [
3467
- /* @__PURE__ */ jsx15(FileJson, {}),
2866
+ /* @__PURE__ */ jsx3(FileJson, {}),
3468
2867
  labels.exportJson
3469
2868
  ]
3470
2869
  })
3471
2870
  ]
3472
2871
  }) : null,
3473
- builtInExport && exportActions.length ? /* @__PURE__ */ jsx15(MenubarSeparator2, {}) : null,
3474
- exportActions.map((action) => /* @__PURE__ */ jsxs9(MenubarItem2, {
2872
+ builtInExport && exportActions.length ? /* @__PURE__ */ jsx3(MenubarSeparator, {}) : null,
2873
+ exportActions.map((action) => /* @__PURE__ */ jsxs3(MenubarItem, {
3475
2874
  disabled: exporting || action.disabled,
3476
2875
  onClick: () => void runExport(action),
3477
2876
  children: [
@@ -3487,7 +2886,7 @@ var DataTableToolbar = ({
3487
2886
  ]
3488
2887
  })
3489
2888
  }),
3490
- exportFeature && exportFailed ? /* @__PURE__ */ jsx15("p", {
2889
+ exportFeature && exportFailed ? /* @__PURE__ */ jsx3("p", {
3491
2890
  role: "alert",
3492
2891
  className: "text-destructive basis-full text-sm",
3493
2892
  children: labels.exportFailed ?? dataTableMessages(store.config.locale).exportFailed
@@ -3524,26 +2923,26 @@ var FilterEditor = ({
3524
2923
  onChange(decoded.value);
3525
2924
  };
3526
2925
  if (kind === "boolean") {
3527
- return /* @__PURE__ */ jsxs9(MenubarGroup, {
2926
+ return /* @__PURE__ */ jsxs3(MenubarGroup, {
3528
2927
  children: [
3529
- /* @__PURE__ */ jsxs9(MenubarRadioGroup, {
2928
+ /* @__PURE__ */ jsxs3(MenubarRadioGroup, {
3530
2929
  value: current?.kind === "boolean" ? String(current.value) : "",
3531
2930
  onValueChange: (value) => apply({ ...draft, primary: value }),
3532
2931
  children: [
3533
- /* @__PURE__ */ jsx15(MenubarRadioItem2, {
2932
+ /* @__PURE__ */ jsx3(MenubarRadioItem, {
3534
2933
  value: "true",
3535
2934
  closeOnClick: false,
3536
2935
  children: column.colDef.type === "boolean" ? column.colDef.typeOptions?.trueLabel ?? labels.filterTrue : labels.filterTrue
3537
2936
  }),
3538
- /* @__PURE__ */ jsx15(MenubarRadioItem2, {
2937
+ /* @__PURE__ */ jsx3(MenubarRadioItem, {
3539
2938
  value: "false",
3540
2939
  closeOnClick: false,
3541
2940
  children: column.colDef.type === "boolean" ? column.colDef.typeOptions?.falseLabel ?? labels.filterFalse : labels.filterFalse
3542
2941
  })
3543
2942
  ]
3544
2943
  }),
3545
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3546
- /* @__PURE__ */ jsx15(MenubarItem2, {
2944
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
2945
+ /* @__PURE__ */ jsx3(MenubarItem, {
3547
2946
  closeOnClick: false,
3548
2947
  onClick: () => onChange(undefined),
3549
2948
  children: labels.filterClear
@@ -3555,11 +2954,11 @@ var FilterEditor = ({
3555
2954
  const selected = current?.kind === "values" ? current.values : [];
3556
2955
  const options = getDataTableFilterOptions(rows, column);
3557
2956
  const filteredOptions = options.filter((option) => option.label.toLocaleLowerCase().includes(optionSearch.trim().toLocaleLowerCase()));
3558
- return /* @__PURE__ */ jsxs9(MenubarGroup, {
2957
+ return /* @__PURE__ */ jsxs3(MenubarGroup, {
3559
2958
  children: [
3560
- options.length > 8 ? /* @__PURE__ */ jsx15("div", {
2959
+ options.length > 8 ? /* @__PURE__ */ jsx3("div", {
3561
2960
  className: "p-1",
3562
- children: /* @__PURE__ */ jsx15(Input2, {
2961
+ children: /* @__PURE__ */ jsx3(Input, {
3563
2962
  "aria-label": labels.filter,
3564
2963
  placeholder: labels.filter,
3565
2964
  value: optionSearch,
@@ -3570,7 +2969,7 @@ var FilterEditor = ({
3570
2969
  }
3571
2970
  })
3572
2971
  }) : null,
3573
- filteredOptions.map((option) => /* @__PURE__ */ jsxs9(MenubarCheckboxItem2, {
2972
+ filteredOptions.map((option) => /* @__PURE__ */ jsxs3(MenubarCheckboxItem, {
3574
2973
  checked: selected.includes(option.value),
3575
2974
  closeOnClick: false,
3576
2975
  onCheckedChange: (checked) => {
@@ -3581,23 +2980,23 @@ var FilterEditor = ({
3581
2980
  onChange(undefined);
3582
2981
  },
3583
2982
  children: [
3584
- /* @__PURE__ */ jsx15("span", {
2983
+ /* @__PURE__ */ jsx3("span", {
3585
2984
  className: "min-w-0 flex-1 truncate",
3586
2985
  children: option.label
3587
2986
  }),
3588
- option.count !== undefined ? /* @__PURE__ */ jsx15(Badge, {
2987
+ option.count !== undefined ? /* @__PURE__ */ jsx3(Badge, {
3589
2988
  variant: "secondary",
3590
2989
  className: "ml-auto shrink-0",
3591
2990
  children: option.count
3592
2991
  }) : null
3593
2992
  ]
3594
2993
  }, option.value)),
3595
- !filteredOptions.length ? /* @__PURE__ */ jsx15("div", {
2994
+ !filteredOptions.length ? /* @__PURE__ */ jsx3("div", {
3596
2995
  className: "text-muted-foreground px-2 py-1.5 text-sm",
3597
2996
  children: labels.empty
3598
2997
  }) : null,
3599
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3600
- /* @__PURE__ */ jsx15(MenubarItem2, {
2998
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
2999
+ /* @__PURE__ */ jsx3(MenubarItem, {
3601
3000
  closeOnClick: false,
3602
3001
  onClick: () => onChange(undefined),
3603
3002
  children: labels.filterClear
@@ -3605,7 +3004,7 @@ var FilterEditor = ({
3605
3004
  ]
3606
3005
  });
3607
3006
  }
3608
- return /* @__PURE__ */ jsxs9("form", {
3007
+ return /* @__PURE__ */ jsxs3("form", {
3609
3008
  className: "flex flex-col gap-3 p-2",
3610
3009
  onKeyDown: (event) => {
3611
3010
  if (event.key !== "Escape")
@@ -3616,15 +3015,15 @@ var FilterEditor = ({
3616
3015
  apply(draft);
3617
3016
  },
3618
3017
  children: [
3619
- /* @__PURE__ */ jsxs9(FieldGroup, {
3018
+ /* @__PURE__ */ jsxs3(FieldGroup, {
3620
3019
  children: [
3621
- kind === "text" ? /* @__PURE__ */ jsxs9(Field, {
3020
+ kind === "text" ? /* @__PURE__ */ jsxs3(Field, {
3622
3021
  children: [
3623
- /* @__PURE__ */ jsx15(FieldLabel, {
3022
+ /* @__PURE__ */ jsx3(FieldLabel, {
3624
3023
  htmlFor: `${inputId}-operator`,
3625
3024
  children: labels.filterOperator
3626
3025
  }),
3627
- /* @__PURE__ */ jsxs9(Select, {
3026
+ /* @__PURE__ */ jsxs3(Select2, {
3628
3027
  items: operatorOptions,
3629
3028
  value: operator,
3630
3029
  onValueChange: (value) => {
@@ -3633,13 +3032,13 @@ var FilterEditor = ({
3633
3032
  setDraft({ ...draft, operator: decoded.value });
3634
3033
  },
3635
3034
  children: [
3636
- /* @__PURE__ */ jsx15(SelectTrigger, {
3035
+ /* @__PURE__ */ jsx3(SelectTrigger2, {
3637
3036
  id: `${inputId}-operator`,
3638
- children: /* @__PURE__ */ jsx15(SelectValue, {})
3037
+ children: /* @__PURE__ */ jsx3(SelectValue2, {})
3639
3038
  }),
3640
- /* @__PURE__ */ jsx15(SelectContent2, {
3641
- children: /* @__PURE__ */ jsx15(SelectGroup, {
3642
- children: operatorOptions.map((option) => /* @__PURE__ */ jsx15(SelectItem, {
3039
+ /* @__PURE__ */ jsx3(SelectContent2, {
3040
+ children: /* @__PURE__ */ jsx3(SelectGroup, {
3041
+ children: operatorOptions.map((option) => /* @__PURE__ */ jsx3(SelectItem2, {
3643
3042
  value: option.value,
3644
3043
  children: option.label
3645
3044
  }, option.value))
@@ -3649,14 +3048,14 @@ var FilterEditor = ({
3649
3048
  })
3650
3049
  ]
3651
3050
  }) : null,
3652
- /* @__PURE__ */ jsxs9(Field, {
3051
+ /* @__PURE__ */ jsxs3(Field, {
3653
3052
  "data-invalid": invalid || undefined,
3654
3053
  children: [
3655
- /* @__PURE__ */ jsx15(FieldLabel, {
3054
+ /* @__PURE__ */ jsx3(FieldLabel, {
3656
3055
  htmlFor: `${inputId}-primary`,
3657
3056
  children: kind === "text" ? labels.filterValue : kind === "date" ? labels.filterFrom : labels.filterMin
3658
3057
  }),
3659
- /* @__PURE__ */ jsx15(Input2, {
3058
+ /* @__PURE__ */ jsx3(Input, {
3660
3059
  id: `${inputId}-primary`,
3661
3060
  type: kind === "text" ? "text" : kind === "date" ? "date" : "number",
3662
3061
  step: kind === "number" ? "any" : undefined,
@@ -3669,14 +3068,14 @@ var FilterEditor = ({
3669
3068
  })
3670
3069
  ]
3671
3070
  }),
3672
- kind !== "text" ? /* @__PURE__ */ jsxs9(Field, {
3071
+ kind !== "text" ? /* @__PURE__ */ jsxs3(Field, {
3673
3072
  "data-invalid": invalid || undefined,
3674
3073
  children: [
3675
- /* @__PURE__ */ jsx15(FieldLabel, {
3074
+ /* @__PURE__ */ jsx3(FieldLabel, {
3676
3075
  htmlFor: `${inputId}-secondary`,
3677
3076
  children: kind === "date" ? labels.filterTo : labels.filterMax
3678
3077
  }),
3679
- /* @__PURE__ */ jsx15(Input2, {
3078
+ /* @__PURE__ */ jsx3(Input, {
3680
3079
  id: `${inputId}-secondary`,
3681
3080
  type: kind === "date" ? "date" : "number",
3682
3081
  step: kind === "number" ? "any" : undefined,
@@ -3691,20 +3090,20 @@ var FilterEditor = ({
3691
3090
  }) : null
3692
3091
  ]
3693
3092
  }),
3694
- invalid ? /* @__PURE__ */ jsx15("p", {
3093
+ invalid ? /* @__PURE__ */ jsx3("p", {
3695
3094
  role: "alert",
3696
3095
  className: "text-destructive text-sm",
3697
3096
  children: labels.filterInvalid
3698
3097
  }) : null,
3699
- /* @__PURE__ */ jsxs9("div", {
3098
+ /* @__PURE__ */ jsxs3("div", {
3700
3099
  className: "flex gap-2",
3701
3100
  children: [
3702
- /* @__PURE__ */ jsx15(Button, {
3101
+ /* @__PURE__ */ jsx3(Button2, {
3703
3102
  type: "submit",
3704
3103
  size: "sm",
3705
3104
  children: labels.filterApply
3706
3105
  }),
3707
- /* @__PURE__ */ jsx15(Button, {
3106
+ /* @__PURE__ */ jsx3(Button2, {
3708
3107
  type: "button",
3709
3108
  size: "sm",
3710
3109
  variant: "outline",
@@ -3733,45 +3132,45 @@ var FilterMenu = ({
3733
3132
  return null;
3734
3133
  const filters = store.state.filters ?? [];
3735
3134
  const update = (id, filter) => send(DataTableMessage.ColumnFilterChanged({ id, filter: filter ?? null }));
3736
- return /* @__PURE__ */ jsxs9(MenubarMenu, {
3135
+ return /* @__PURE__ */ jsxs3(MenubarMenu, {
3737
3136
  children: [
3738
- /* @__PURE__ */ jsxs9(MenubarTrigger2, {
3137
+ /* @__PURE__ */ jsxs3(MenubarTrigger, {
3739
3138
  "aria-label": store.config.labels.filters,
3740
3139
  children: [
3741
- /* @__PURE__ */ jsx15(ListFilter, {}),
3742
- /* @__PURE__ */ jsx15("span", {
3140
+ /* @__PURE__ */ jsx3(ListFilter, {}),
3141
+ /* @__PURE__ */ jsx3("span", {
3743
3142
  className: "hidden sm:inline",
3744
3143
  children: store.config.labels.filters
3745
3144
  }),
3746
- filters.length ? /* @__PURE__ */ jsx15(Badge, {
3145
+ filters.length ? /* @__PURE__ */ jsx3(Badge, {
3747
3146
  variant: "secondary",
3748
3147
  children: filters.length
3749
3148
  }) : null
3750
3149
  ]
3751
3150
  }),
3752
- /* @__PURE__ */ jsx15(MenubarContent2, {
3151
+ /* @__PURE__ */ jsx3(MenubarContent, {
3753
3152
  align: "end",
3754
3153
  className: "w-80 max-w-[calc(100vw-2rem)]",
3755
- children: /* @__PURE__ */ jsxs9(MenubarGroup, {
3154
+ children: /* @__PURE__ */ jsxs3(MenubarGroup, {
3756
3155
  children: [
3757
- /* @__PURE__ */ jsx15(MenubarLabel2, {
3156
+ /* @__PURE__ */ jsx3(MenubarLabel, {
3758
3157
  children: store.config.labels.filters
3759
3158
  }),
3760
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3761
- columns.map(({ column, label }) => /* @__PURE__ */ jsxs9(MenubarSub, {
3159
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
3160
+ columns.map(({ column, label }) => /* @__PURE__ */ jsxs3(MenubarSub, {
3762
3161
  children: [
3763
- /* @__PURE__ */ jsxs9(MenubarSubTrigger2, {
3162
+ /* @__PURE__ */ jsxs3(MenubarSubTrigger, {
3764
3163
  children: [
3765
- /* @__PURE__ */ jsx15("span", {
3164
+ /* @__PURE__ */ jsx3("span", {
3766
3165
  className: "min-w-0 flex-1 truncate",
3767
3166
  children: label
3768
3167
  }),
3769
- filters.some((filter) => filter.id === column.id) ? /* @__PURE__ */ jsx15(Check, {}) : null
3168
+ filters.some((filter) => filter.id === column.id) ? /* @__PURE__ */ jsx3(Check, {}) : null
3770
3169
  ]
3771
3170
  }),
3772
- /* @__PURE__ */ jsx15(MenubarSubContent2, {
3171
+ /* @__PURE__ */ jsx3(MenubarSubContent, {
3773
3172
  className: "w-80 max-w-[calc(100vw-2rem)]",
3774
- children: /* @__PURE__ */ jsx15(FilterEditor, {
3173
+ children: /* @__PURE__ */ jsx3(FilterEditor, {
3775
3174
  column,
3776
3175
  rows: model.rows,
3777
3176
  current: filters.find((filter) => filter.id === column.id),
@@ -3781,13 +3180,13 @@ var FilterMenu = ({
3781
3180
  })
3782
3181
  ]
3783
3182
  }, column.id)),
3784
- filters.length ? /* @__PURE__ */ jsxs9(Fragment, {
3183
+ filters.length ? /* @__PURE__ */ jsxs3(Fragment, {
3785
3184
  children: [
3786
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3787
- /* @__PURE__ */ jsxs9(MenubarItem2, {
3185
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
3186
+ /* @__PURE__ */ jsxs3(MenubarItem, {
3788
3187
  onClick: () => send(DataTableMessage.FiltersCleared()),
3789
3188
  children: [
3790
- /* @__PURE__ */ jsx15(X, {}),
3189
+ /* @__PURE__ */ jsx3(X, {}),
3791
3190
  store.config.labels.filtersClear
3792
3191
  ]
3793
3192
  })
@@ -3814,65 +3213,65 @@ var SortMenu = ({
3814
3213
  return null;
3815
3214
  const current = store.state.sort?.[0];
3816
3215
  const sort = (id, direction) => send(DataTableMessage.SortRequested({ columnId: id, direction }));
3817
- return /* @__PURE__ */ jsxs9(MenubarMenu, {
3216
+ return /* @__PURE__ */ jsxs3(MenubarMenu, {
3818
3217
  children: [
3819
- /* @__PURE__ */ jsxs9(MenubarTrigger2, {
3218
+ /* @__PURE__ */ jsxs3(MenubarTrigger, {
3820
3219
  "aria-label": store.config.labels.sortBy,
3821
3220
  children: [
3822
- current ? current.direction === "desc" ? /* @__PURE__ */ jsx15(ArrowDown, {}) : /* @__PURE__ */ jsx15(ArrowUp, {}) : /* @__PURE__ */ jsx15(ChevronsUpDown, {}),
3823
- /* @__PURE__ */ jsx15("span", {
3221
+ current ? current.direction === "desc" ? /* @__PURE__ */ jsx3(ArrowDown, {}) : /* @__PURE__ */ jsx3(ArrowUp, {}) : /* @__PURE__ */ jsx3(ChevronsUpDown, {}),
3222
+ /* @__PURE__ */ jsx3("span", {
3824
3223
  className: "hidden sm:inline",
3825
3224
  children: store.config.labels.sortBy
3826
3225
  })
3827
3226
  ]
3828
3227
  }),
3829
- /* @__PURE__ */ jsx15(MenubarContent2, {
3228
+ /* @__PURE__ */ jsx3(MenubarContent, {
3830
3229
  align: "end",
3831
3230
  className: "w-52",
3832
- children: /* @__PURE__ */ jsxs9(MenubarGroup, {
3231
+ children: /* @__PURE__ */ jsxs3(MenubarGroup, {
3833
3232
  children: [
3834
- /* @__PURE__ */ jsx15(MenubarLabel2, {
3233
+ /* @__PURE__ */ jsx3(MenubarLabel, {
3835
3234
  children: store.config.labels.sortBy
3836
3235
  }),
3837
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3236
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
3838
3237
  columns.map((column) => {
3839
3238
  const sortState = store.state.sort?.find(({ id }) => id === column.id);
3840
- return /* @__PURE__ */ jsxs9(MenubarSub, {
3239
+ return /* @__PURE__ */ jsxs3(MenubarSub, {
3841
3240
  children: [
3842
- /* @__PURE__ */ jsxs9(MenubarSubTrigger2, {
3241
+ /* @__PURE__ */ jsxs3(MenubarSubTrigger, {
3843
3242
  children: [
3844
- sortState ? sortState.direction === "desc" ? /* @__PURE__ */ jsx15(ArrowDown, {}) : /* @__PURE__ */ jsx15(ArrowUp, {}) : null,
3243
+ sortState ? sortState.direction === "desc" ? /* @__PURE__ */ jsx3(ArrowDown, {}) : /* @__PURE__ */ jsx3(ArrowUp, {}) : null,
3845
3244
  columnLabel(column)
3846
3245
  ]
3847
3246
  }),
3848
- /* @__PURE__ */ jsxs9(MenubarSubContent2, {
3247
+ /* @__PURE__ */ jsxs3(MenubarSubContent, {
3849
3248
  children: [
3850
- /* @__PURE__ */ jsxs9(MenubarItem2, {
3249
+ /* @__PURE__ */ jsxs3(MenubarItem, {
3851
3250
  onClick: () => sort(column.id, "asc"),
3852
3251
  children: [
3853
- /* @__PURE__ */ jsx15(ArrowUp, {}),
3252
+ /* @__PURE__ */ jsx3(ArrowUp, {}),
3854
3253
  " ",
3855
3254
  store.config.labels.sortAsc
3856
3255
  ]
3857
3256
  }),
3858
- /* @__PURE__ */ jsxs9(MenubarItem2, {
3257
+ /* @__PURE__ */ jsxs3(MenubarItem, {
3859
3258
  onClick: () => sort(column.id, "desc"),
3860
3259
  children: [
3861
- /* @__PURE__ */ jsx15(ArrowDown, {}),
3260
+ /* @__PURE__ */ jsx3(ArrowDown, {}),
3862
3261
  " ",
3863
3262
  store.config.labels.sortDesc
3864
3263
  ]
3865
3264
  }),
3866
- sortState ? /* @__PURE__ */ jsxs9(Fragment, {
3265
+ sortState ? /* @__PURE__ */ jsxs3(Fragment, {
3867
3266
  children: [
3868
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3869
- /* @__PURE__ */ jsxs9(MenubarItem2, {
3267
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
3268
+ /* @__PURE__ */ jsxs3(MenubarItem, {
3870
3269
  onClick: () => send(DataTableMessage.SortRequested({
3871
3270
  columnId: column.id,
3872
3271
  direction: null
3873
3272
  })),
3874
3273
  children: [
3875
- /* @__PURE__ */ jsx15(X, {}),
3274
+ /* @__PURE__ */ jsx3(X, {}),
3876
3275
  " ",
3877
3276
  store.config.labels.sortClear
3878
3277
  ]
@@ -3894,27 +3293,27 @@ var ViewMenu = ({
3894
3293
  table
3895
3294
  }) => {
3896
3295
  const [store, send] = table;
3897
- return /* @__PURE__ */ jsxs9(MenubarMenu, {
3296
+ return /* @__PURE__ */ jsxs3(MenubarMenu, {
3898
3297
  children: [
3899
- /* @__PURE__ */ jsxs9(MenubarTrigger2, {
3298
+ /* @__PURE__ */ jsxs3(MenubarTrigger, {
3900
3299
  "aria-label": store.config.labels.view,
3901
3300
  children: [
3902
- store.state.view === "gallery" ? /* @__PURE__ */ jsx15(LayoutGrid, {}) : /* @__PURE__ */ jsx15(Rows3, {}),
3903
- /* @__PURE__ */ jsx15("span", {
3301
+ store.state.view === "gallery" ? /* @__PURE__ */ jsx3(LayoutGrid, {}) : /* @__PURE__ */ jsx3(Rows3, {}),
3302
+ /* @__PURE__ */ jsx3("span", {
3904
3303
  className: "hidden sm:inline",
3905
3304
  children: store.config.labels.view
3906
3305
  })
3907
3306
  ]
3908
3307
  }),
3909
- /* @__PURE__ */ jsx15(MenubarContent2, {
3308
+ /* @__PURE__ */ jsx3(MenubarContent, {
3910
3309
  align: "end",
3911
- children: /* @__PURE__ */ jsxs9(MenubarGroup, {
3310
+ children: /* @__PURE__ */ jsxs3(MenubarGroup, {
3912
3311
  children: [
3913
- /* @__PURE__ */ jsx15(MenubarLabel2, {
3312
+ /* @__PURE__ */ jsx3(MenubarLabel, {
3914
3313
  children: store.config.labels.view
3915
3314
  }),
3916
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3917
- /* @__PURE__ */ jsxs9(MenubarRadioGroup, {
3315
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
3316
+ /* @__PURE__ */ jsxs3(MenubarRadioGroup, {
3918
3317
  onValueChange: (input) => {
3919
3318
  const view = Schema6.decodeUnknownOption(DataTableViewSchema)(input);
3920
3319
  if (Option4.isSome(view)) {
@@ -3923,18 +3322,18 @@ var ViewMenu = ({
3923
3322
  },
3924
3323
  value: store.state.view,
3925
3324
  children: [
3926
- /* @__PURE__ */ jsxs9(MenubarRadioItem2, {
3325
+ /* @__PURE__ */ jsxs3(MenubarRadioItem, {
3927
3326
  value: "table",
3928
3327
  children: [
3929
- /* @__PURE__ */ jsx15(Rows3, {}),
3328
+ /* @__PURE__ */ jsx3(Rows3, {}),
3930
3329
  " ",
3931
3330
  store.config.labels.tableView
3932
3331
  ]
3933
3332
  }),
3934
- /* @__PURE__ */ jsxs9(MenubarRadioItem2, {
3333
+ /* @__PURE__ */ jsxs3(MenubarRadioItem, {
3935
3334
  value: "gallery",
3936
3335
  children: [
3937
- /* @__PURE__ */ jsx15(LayoutGrid, {}),
3336
+ /* @__PURE__ */ jsx3(LayoutGrid, {}),
3938
3337
  " ",
3939
3338
  store.config.labels.galleryView
3940
3339
  ]
@@ -3954,27 +3353,27 @@ var ColumnMenu = ({
3954
3353
  const columns = deriveModel(store).columns.filter(({ colDef }) => colDef.hideable !== false);
3955
3354
  if (!columns.length)
3956
3355
  return null;
3957
- return /* @__PURE__ */ jsxs9(MenubarMenu, {
3356
+ return /* @__PURE__ */ jsxs3(MenubarMenu, {
3958
3357
  children: [
3959
- /* @__PURE__ */ jsxs9(MenubarTrigger2, {
3358
+ /* @__PURE__ */ jsxs3(MenubarTrigger, {
3960
3359
  "aria-label": store.config.labels.columns,
3961
3360
  children: [
3962
- /* @__PURE__ */ jsx15(Settings2, {}),
3963
- /* @__PURE__ */ jsx15("span", {
3361
+ /* @__PURE__ */ jsx3(Settings2, {}),
3362
+ /* @__PURE__ */ jsx3("span", {
3964
3363
  className: "hidden sm:inline",
3965
3364
  children: store.config.labels.columns
3966
3365
  })
3967
3366
  ]
3968
3367
  }),
3969
- /* @__PURE__ */ jsx15(MenubarContent2, {
3368
+ /* @__PURE__ */ jsx3(MenubarContent, {
3970
3369
  align: "end",
3971
- children: /* @__PURE__ */ jsxs9(MenubarGroup, {
3370
+ children: /* @__PURE__ */ jsxs3(MenubarGroup, {
3972
3371
  children: [
3973
- /* @__PURE__ */ jsx15(MenubarLabel2, {
3372
+ /* @__PURE__ */ jsx3(MenubarLabel, {
3974
3373
  children: store.config.labels.columns
3975
3374
  }),
3976
- /* @__PURE__ */ jsx15(MenubarSeparator2, {}),
3977
- columns.map((column) => /* @__PURE__ */ jsx15(MenubarCheckboxItem2, {
3375
+ /* @__PURE__ */ jsx3(MenubarSeparator, {}),
3376
+ columns.map((column) => /* @__PURE__ */ jsx3(MenubarCheckboxItem, {
3978
3377
  checked: store.state.columnVisibility[column.id] !== false,
3979
3378
  onCheckedChange: (visible) => send(DataTableMessage.ColumnVisibilityChanged({ id: column.id, visible })),
3980
3379
  children: columnLabel(column)
@@ -4010,7 +3409,7 @@ var ResizeHandle = ({
4010
3409
  send(DataTableMessage.ResizeMoved({ x: event.clientX, pointerId: event.pointerId }));
4011
3410
  };
4012
3411
  const reset = (event) => send(DataTableMessage.ResizeEnded({ pointerId: event.pointerId }));
4013
- return /* @__PURE__ */ jsx15("button", {
3412
+ return /* @__PURE__ */ jsx3("button", {
4014
3413
  "aria-label": store.config.labels.resizeColumn(columnLabel(column)),
4015
3414
  "aria-orientation": "vertical",
4016
3415
  "aria-valuemax": max,
@@ -4132,9 +3531,9 @@ var DragHandle = ({
4132
3531
  reordering.onReorder(reorderDataTableRows(model.rows, rowId, target.id));
4133
3532
  }
4134
3533
  };
4135
- return /* @__PURE__ */ jsxs9(Fragment, {
3534
+ return /* @__PURE__ */ jsxs3(Fragment, {
4136
3535
  children: [
4137
- /* @__PURE__ */ jsx15(Button, {
3536
+ /* @__PURE__ */ jsx3(Button2, {
4138
3537
  "aria-label": store.config.features.reordering && store.config.features.reordering.handleLabel ? store.config.features.reordering.handleLabel : store.config.labels.reorder,
4139
3538
  className: "size-8 cursor-grab touch-none active:cursor-grabbing",
4140
3539
  onClick: (event) => event.stopPropagation(),
@@ -4152,9 +3551,9 @@ var DragHandle = ({
4152
3551
  onPointerUp: finish,
4153
3552
  size: "icon",
4154
3553
  variant: "ghost",
4155
- children: /* @__PURE__ */ jsx15(GripVertical, {})
3554
+ children: /* @__PURE__ */ jsx3(GripVertical, {})
4156
3555
  }),
4157
- overlay ? createPortal(/* @__PURE__ */ jsx15("div", {
3556
+ overlay ? createPortal(/* @__PURE__ */ jsx3("div", {
4158
3557
  "aria-hidden": "true",
4159
3558
  className: "bg-background pointer-events-none fixed z-[100] rounded-md border px-3 py-2 text-sm shadow-lg",
4160
3559
  style: { left: overlay.x + 12, top: overlay.y + 12 },
@@ -4176,7 +3575,7 @@ var TableDataRow = ({
4176
3575
  const selection = store.config.features.selection;
4177
3576
  const selectable = !!selection && (selection.isRowSelectable?.(row.data) ?? true);
4178
3577
  const draggable = canDragRows(store);
4179
- return /* @__PURE__ */ jsxs9(TableRow2, {
3578
+ return /* @__PURE__ */ jsxs3(TableRow, {
4180
3579
  ref: measureRef,
4181
3580
  "data-index": virtualIndex,
4182
3581
  "aria-rowindex": virtualIndex === undefined ? undefined : virtualIndex + 2,
@@ -4192,12 +3591,12 @@ var TableDataRow = ({
4192
3591
  },
4193
3592
  tabIndex: store.config.onRowClicked ? 0 : undefined,
4194
3593
  children: [
4195
- selection ? /* @__PURE__ */ jsx15(TableCell2, {
3594
+ selection ? /* @__PURE__ */ jsx3(TableCell, {
4196
3595
  className: tableClasses.selectionCell,
4197
3596
  onClick: (event) => event.stopPropagation(),
4198
- children: /* @__PURE__ */ jsx15("div", {
3597
+ children: /* @__PURE__ */ jsx3("div", {
4199
3598
  className: tableClasses.selectionCenter,
4200
- children: /* @__PURE__ */ jsx15(Checkbox, {
3599
+ children: /* @__PURE__ */ jsx3(Checkbox, {
4201
3600
  "aria-label": store.config.labels.selectRow,
4202
3601
  checked: !!store.state.rowSelection[row.id],
4203
3602
  disabled: !selectable,
@@ -4205,26 +3604,26 @@ var TableDataRow = ({
4205
3604
  })
4206
3605
  })
4207
3606
  }) : null,
4208
- draggable ? /* @__PURE__ */ jsx15(TableCell2, {
3607
+ draggable ? /* @__PURE__ */ jsx3(TableCell, {
4209
3608
  className: "w-10 pr-0",
4210
- children: /* @__PURE__ */ jsx15(DragHandle, {
3609
+ children: /* @__PURE__ */ jsx3(DragHandle, {
4211
3610
  table
4212
3611
  })
4213
3612
  }) : null,
4214
- model.visibleColumns.map((column) => /* @__PURE__ */ jsx15(TableCell2, {
3613
+ model.visibleColumns.map((column) => /* @__PURE__ */ jsx3(TableCell, {
4215
3614
  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"),
4216
3615
  style: { width: column.width },
4217
- children: /* @__PURE__ */ jsx15("div", {
3616
+ children: /* @__PURE__ */ jsx3("div", {
4218
3617
  className: cn(tableClasses.cellContent, column.colDef.truncate && "truncate"),
4219
3618
  children: renderCell(row, column, store.config.locale, store.config.labels)
4220
3619
  })
4221
3620
  }, column.id)),
4222
- hasRowActionMenu(store) ? /* @__PURE__ */ jsx15(TableCell2, {
3621
+ hasRowActionMenu(store) ? /* @__PURE__ */ jsx3(TableCell, {
4223
3622
  className: cn(tableClasses.actionsCell, "group-data-[state=selected]/row:bg-muted"),
4224
3623
  onClick: (event) => event.stopPropagation(),
4225
- children: /* @__PURE__ */ jsx15("div", {
3624
+ children: /* @__PURE__ */ jsx3("div", {
4226
3625
  className: tableClasses.actionsAlign,
4227
- children: /* @__PURE__ */ jsx15(DataTableRowActionMenu, {
3626
+ children: /* @__PURE__ */ jsx3(DataTableRowActionMenu, {
4228
3627
  row,
4229
3628
  table
4230
3629
  })
@@ -4241,27 +3640,27 @@ var GroupActions = ({
4241
3640
  const visible = actions?.filter((action) => !action.visible || action.visible(groupId));
4242
3641
  if (!visible?.length)
4243
3642
  return null;
4244
- return /* @__PURE__ */ jsxs9(DropdownMenu, {
3643
+ return /* @__PURE__ */ jsxs3(DropdownMenu, {
4245
3644
  children: [
4246
- /* @__PURE__ */ jsx15(DropdownMenuTrigger2, {
3645
+ /* @__PURE__ */ jsx3(DropdownMenuTrigger, {
4247
3646
  onClick: (event) => event.stopPropagation(),
4248
- render: /* @__PURE__ */ jsxs9(Button, {
3647
+ render: /* @__PURE__ */ jsxs3(Button2, {
4249
3648
  size: "icon-sm",
4250
3649
  variant: "ghost",
4251
3650
  children: [
4252
- /* @__PURE__ */ jsx15("span", {
3651
+ /* @__PURE__ */ jsx3("span", {
4253
3652
  className: "sr-only",
4254
3653
  children: title
4255
3654
  }),
4256
- /* @__PURE__ */ jsx15(MoreHorizontal, {})
3655
+ /* @__PURE__ */ jsx3(MoreHorizontal, {})
4257
3656
  ]
4258
3657
  })
4259
3658
  }),
4260
- /* @__PURE__ */ jsx15(DropdownMenuContent2, {
3659
+ /* @__PURE__ */ jsx3(DropdownMenuContent, {
4261
3660
  align: "end",
4262
3661
  onClick: (event) => event.stopPropagation(),
4263
- children: /* @__PURE__ */ jsx15(DropdownMenuGroup, {
4264
- children: visible.map((action) => /* @__PURE__ */ jsxs9(DropdownMenuItem2, {
3662
+ children: /* @__PURE__ */ jsx3(DropdownMenuGroup, {
3663
+ children: visible.map((action) => /* @__PURE__ */ jsxs3(DropdownMenuItem, {
4265
3664
  onClick: () => action.onClick(groupId),
4266
3665
  variant: action.variant ?? "default",
4267
3666
  children: [
@@ -4285,40 +3684,40 @@ var GroupHeaderRow = ({
4285
3684
  const tableClasses = useContext(DataTableSlotClassesContext);
4286
3685
  const [store, send] = table;
4287
3686
  const collapsed = !!store.state.collapsedGroups[section.key];
4288
- return /* @__PURE__ */ jsx15(TableRow2, {
3687
+ return /* @__PURE__ */ jsx3(TableRow, {
4289
3688
  ref: measureRef,
4290
3689
  "data-index": virtualIndex,
4291
3690
  "aria-rowindex": virtualIndex === undefined ? undefined : virtualIndex + 2,
4292
3691
  className: cn(tableClasses.group, "cursor-pointer"),
4293
3692
  onClick: () => send(DataTableMessage.GroupToggled({ key: section.key })),
4294
- children: /* @__PURE__ */ jsx15(TableCell2, {
3693
+ children: /* @__PURE__ */ jsx3(TableCell, {
4295
3694
  className: "p-0",
4296
3695
  colSpan,
4297
- children: /* @__PURE__ */ jsxs9("div", {
3696
+ children: /* @__PURE__ */ jsxs3("div", {
4298
3697
  className: cn(tableClasses.groupContent, tableClasses.groupSticky),
4299
3698
  children: [
4300
- /* @__PURE__ */ jsxs9("button", {
3699
+ /* @__PURE__ */ jsxs3("button", {
4301
3700
  "aria-expanded": !collapsed,
4302
3701
  className: tableClasses.groupTrigger,
4303
3702
  style: { paddingLeft: section.depth * 20 },
4304
3703
  type: "button",
4305
3704
  children: [
4306
- collapsed ? /* @__PURE__ */ jsx15(ChevronRight2, {
3705
+ collapsed ? /* @__PURE__ */ jsx3(ChevronRight2, {
4307
3706
  className: "size-4 shrink-0"
4308
- }) : /* @__PURE__ */ jsx15(ChevronDown, {
3707
+ }) : /* @__PURE__ */ jsx3(ChevronDown, {
4309
3708
  className: "size-4 shrink-0"
4310
3709
  }),
4311
- /* @__PURE__ */ jsx15("span", {
3710
+ /* @__PURE__ */ jsx3("span", {
4312
3711
  className: "min-w-0 flex-1 truncate",
4313
3712
  children: section.field.renderGroupLabel?.(section.groupId, section.rows.map((row) => row.data)) ?? section.groupId
4314
3713
  })
4315
3714
  ]
4316
3715
  }),
4317
- /* @__PURE__ */ jsx15("span", {
3716
+ /* @__PURE__ */ jsx3("span", {
4318
3717
  className: tableClasses.count,
4319
3718
  children: section.rows.length
4320
3719
  }),
4321
- /* @__PURE__ */ jsx15(GroupActions, {
3720
+ /* @__PURE__ */ jsx3(GroupActions, {
4322
3721
  actions: section.field.actions,
4323
3722
  groupId: section.groupId,
4324
3723
  title: section.field.actionsLabel ?? store.config.labels.actions
@@ -4338,24 +3737,24 @@ var GroupedTable = ({
4338
3737
  const renderSections = (items) => items.flatMap((section) => {
4339
3738
  const collapsed = !!store.state.collapsedGroups[section.key];
4340
3739
  const targetKey = getGroupDropKey(section.field.id, section.groupId);
4341
- const body = /* @__PURE__ */ jsxs9(TableBody2, {
3740
+ const body = /* @__PURE__ */ jsxs3(TableBody, {
4342
3741
  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",
4343
3742
  "data-table-group": section.field.onMoveToGroup ? targetKey : undefined,
4344
3743
  children: [
4345
- /* @__PURE__ */ jsx15(GroupHeaderRow, {
3744
+ /* @__PURE__ */ jsx3(GroupHeaderRow, {
4346
3745
  table,
4347
3746
  section,
4348
3747
  colSpan: model.visibleColumns.length + extra
4349
3748
  }),
4350
- !collapsed && !section.children.length ? section.rows.length ? section.rows.map((row) => /* @__PURE__ */ jsx15(RowIdContext.Provider, {
3749
+ !collapsed && !section.children.length ? section.rows.length ? section.rows.map((row) => /* @__PURE__ */ jsx3(RowIdContext.Provider, {
4351
3750
  value: row.id,
4352
- children: /* @__PURE__ */ jsx15(TableDataRow, {
3751
+ children: /* @__PURE__ */ jsx3(TableDataRow, {
4353
3752
  row,
4354
3753
  table
4355
3754
  })
4356
3755
  }, `${section.key}:${row.id}`)) : [
4357
- /* @__PURE__ */ jsx15(TableRow2, {
4358
- children: /* @__PURE__ */ jsx15(TableCell2, {
3756
+ /* @__PURE__ */ jsx3(TableRow, {
3757
+ children: /* @__PURE__ */ jsx3(TableCell, {
4359
3758
  className: "text-muted-foreground h-16",
4360
3759
  colSpan: model.visibleColumns.length + extra,
4361
3760
  children: section.field.renderEmptyGroup?.(section.groupId) ?? store.config.labels.empty
@@ -4366,7 +3765,7 @@ var GroupedTable = ({
4366
3765
  }, section.key);
4367
3766
  return !collapsed && section.children.length ? [body, renderSections(section.children)] : [body];
4368
3767
  });
4369
- return /* @__PURE__ */ jsx15(Fragment, {
3768
+ return /* @__PURE__ */ jsx3(Fragment, {
4370
3769
  children: renderSections(sections)
4371
3770
  });
4372
3771
  };
@@ -4385,7 +3784,7 @@ var ColumnHeaderMenu = ({
4385
3784
  const filteringEnabled = store.config.features.filtering !== false && filterColumns.length > 0;
4386
3785
  const ownsFilter = (id) => id === column.id || getDataTableFieldColumns(column).some((field) => field.id === id);
4387
3786
  const activeFilters = (store.state.filters ?? []).filter(({ id }) => ownsFilter(id));
4388
- const filterEditor = (field) => /* @__PURE__ */ jsx15(FilterEditor, {
3787
+ const filterEditor = (field) => /* @__PURE__ */ jsx3(FilterEditor, {
4389
3788
  column: field,
4390
3789
  rows: model.rows,
4391
3790
  current: store.state.filters?.find((filter) => filter.id === field.id),
@@ -4398,20 +3797,20 @@ var ColumnHeaderMenu = ({
4398
3797
  const sort = store.state.sort?.find(({ id }) => ownsSort(id));
4399
3798
  const setSort = (id, direction) => send(DataTableMessage.SortRequested({ columnId: id, direction }));
4400
3799
  const label = columnLabel(column);
4401
- const sortItems = (field) => /* @__PURE__ */ jsxs9(Fragment, {
3800
+ const sortItems = (field) => /* @__PURE__ */ jsxs3(Fragment, {
4402
3801
  children: [
4403
- /* @__PURE__ */ jsxs9(DropdownMenuItem2, {
3802
+ /* @__PURE__ */ jsxs3(DropdownMenuItem, {
4404
3803
  onClick: () => setSort(field.id, "asc"),
4405
3804
  children: [
4406
- /* @__PURE__ */ jsx15(ArrowUp, {}),
3805
+ /* @__PURE__ */ jsx3(ArrowUp, {}),
4407
3806
  " ",
4408
3807
  store.config.labels.sortAsc
4409
3808
  ]
4410
3809
  }),
4411
- /* @__PURE__ */ jsxs9(DropdownMenuItem2, {
3810
+ /* @__PURE__ */ jsxs3(DropdownMenuItem, {
4412
3811
  onClick: () => setSort(field.id, "desc"),
4413
3812
  children: [
4414
- /* @__PURE__ */ jsx15(ArrowDown, {}),
3813
+ /* @__PURE__ */ jsx3(ArrowDown, {}),
4415
3814
  " ",
4416
3815
  store.config.labels.sortDesc
4417
3816
  ]
@@ -4419,81 +3818,81 @@ var ColumnHeaderMenu = ({
4419
3818
  ]
4420
3819
  });
4421
3820
  if (!sortingEnabled && !hidingEnabled && !filteringEnabled) {
4422
- return /* @__PURE__ */ jsx15("div", {
3821
+ return /* @__PURE__ */ jsx3("div", {
4423
3822
  className: "truncate px-2",
4424
3823
  children: column.colDef.headerName
4425
3824
  });
4426
3825
  }
4427
- return /* @__PURE__ */ jsxs9(DropdownMenu, {
3826
+ return /* @__PURE__ */ jsxs3(DropdownMenu, {
4428
3827
  children: [
4429
- /* @__PURE__ */ jsx15(DropdownMenuTrigger2, {
4430
- render: /* @__PURE__ */ jsxs9(Button, {
3828
+ /* @__PURE__ */ jsx3(DropdownMenuTrigger, {
3829
+ render: /* @__PURE__ */ jsxs3(Button2, {
4431
3830
  "aria-label": label,
4432
3831
  "aria-description": activeFilters.length ? `${store.config.labels.filters}: ${activeFilters.length}` : undefined,
4433
3832
  className: tableClasses.headerTrigger,
4434
3833
  variant: "ghost",
4435
3834
  children: [
4436
- /* @__PURE__ */ jsx15("span", {
3835
+ /* @__PURE__ */ jsx3("span", {
4437
3836
  className: "truncate",
4438
3837
  children: column.colDef.headerName
4439
3838
  }),
4440
- activeFilters.length ? /* @__PURE__ */ jsx15(ListFilter, {}) : null,
4441
- sort ? sort.direction === "desc" ? /* @__PURE__ */ jsx15(ArrowDown, {}) : /* @__PURE__ */ jsx15(ArrowUp, {}) : null
3839
+ activeFilters.length ? /* @__PURE__ */ jsx3(ListFilter, {}) : null,
3840
+ sort ? sort.direction === "desc" ? /* @__PURE__ */ jsx3(ArrowDown, {}) : /* @__PURE__ */ jsx3(ArrowUp, {}) : null
4442
3841
  ]
4443
3842
  })
4444
3843
  }),
4445
- /* @__PURE__ */ jsx15(DropdownMenuContent2, {
3844
+ /* @__PURE__ */ jsx3(DropdownMenuContent, {
4446
3845
  align: "start",
4447
3846
  className: "w-48",
4448
- children: /* @__PURE__ */ jsxs9(DropdownMenuGroup, {
3847
+ children: /* @__PURE__ */ jsxs3(DropdownMenuGroup, {
4449
3848
  children: [
4450
- sortingEnabled ? /* @__PURE__ */ jsxs9(Fragment, {
3849
+ sortingEnabled ? /* @__PURE__ */ jsxs3(Fragment, {
4451
3850
  children: [
4452
- column.colDef.fields?.length ? sortColumns.map((field) => /* @__PURE__ */ jsxs9(DropdownMenuSub, {
3851
+ column.colDef.fields?.length ? sortColumns.map((field) => /* @__PURE__ */ jsxs3(DropdownMenuSub, {
4453
3852
  children: [
4454
- /* @__PURE__ */ jsx15(DropdownMenuSubTrigger2, {
3853
+ /* @__PURE__ */ jsx3(DropdownMenuSubTrigger, {
4455
3854
  children: columnLabel(field)
4456
3855
  }),
4457
- /* @__PURE__ */ jsx15(DropdownMenuSubContent2, {
4458
- children: /* @__PURE__ */ jsx15(DropdownMenuGroup, {
3856
+ /* @__PURE__ */ jsx3(DropdownMenuSubContent, {
3857
+ children: /* @__PURE__ */ jsx3(DropdownMenuGroup, {
4459
3858
  children: sortItems(field)
4460
3859
  })
4461
3860
  })
4462
3861
  ]
4463
3862
  }, field.id)) : sortItems(column),
4464
- sort ? /* @__PURE__ */ jsxs9(DropdownMenuItem2, {
3863
+ sort ? /* @__PURE__ */ jsxs3(DropdownMenuItem, {
4465
3864
  onClick: () => send(DataTableMessage.ColumnSortCleared({ id: column.id })),
4466
3865
  children: [
4467
- /* @__PURE__ */ jsx15(X, {}),
3866
+ /* @__PURE__ */ jsx3(X, {}),
4468
3867
  " ",
4469
3868
  store.config.labels.sortClear
4470
3869
  ]
4471
3870
  }) : null
4472
3871
  ]
4473
3872
  }) : null,
4474
- sortingEnabled && filteringEnabled ? /* @__PURE__ */ jsx15(DropdownMenuSeparator2, {}) : null,
4475
- filteringEnabled ? /* @__PURE__ */ jsxs9(Fragment, {
3873
+ sortingEnabled && filteringEnabled ? /* @__PURE__ */ jsx3(DropdownMenuSeparator, {}) : null,
3874
+ filteringEnabled ? /* @__PURE__ */ jsxs3(Fragment, {
4476
3875
  children: [
4477
- /* @__PURE__ */ jsxs9(DropdownMenuSub, {
3876
+ /* @__PURE__ */ jsxs3(DropdownMenuSub, {
4478
3877
  children: [
4479
- /* @__PURE__ */ jsxs9(DropdownMenuSubTrigger2, {
3878
+ /* @__PURE__ */ jsxs3(DropdownMenuSubTrigger, {
4480
3879
  children: [
4481
- /* @__PURE__ */ jsx15(ListFilter, {}),
3880
+ /* @__PURE__ */ jsx3(ListFilter, {}),
4482
3881
  store.config.labels.filters
4483
3882
  ]
4484
3883
  }),
4485
- /* @__PURE__ */ jsx15(DropdownMenuSubContent2, {
3884
+ /* @__PURE__ */ jsx3(DropdownMenuSubContent, {
4486
3885
  className: "w-80 max-w-[calc(100vw-2rem)]",
4487
- children: column.colDef.fields?.length ? /* @__PURE__ */ jsx15(DropdownMenuGroup, {
4488
- children: filterColumns.map((field) => /* @__PURE__ */ jsxs9(DropdownMenuSub, {
3886
+ children: column.colDef.fields?.length ? /* @__PURE__ */ jsx3(DropdownMenuGroup, {
3887
+ children: filterColumns.map((field) => /* @__PURE__ */ jsxs3(DropdownMenuSub, {
4489
3888
  children: [
4490
- /* @__PURE__ */ jsxs9(DropdownMenuSubTrigger2, {
3889
+ /* @__PURE__ */ jsxs3(DropdownMenuSubTrigger, {
4491
3890
  children: [
4492
3891
  columnLabel(field),
4493
- activeFilters.some((filter) => filter.id === field.id) ? /* @__PURE__ */ jsx15(Check, {}) : null
3892
+ activeFilters.some((filter) => filter.id === field.id) ? /* @__PURE__ */ jsx3(Check, {}) : null
4494
3893
  ]
4495
3894
  }),
4496
- /* @__PURE__ */ jsx15(DropdownMenuSubContent2, {
3895
+ /* @__PURE__ */ jsx3(DropdownMenuSubContent, {
4497
3896
  className: "w-80 max-w-[calc(100vw-2rem)]",
4498
3897
  children: filterEditor(field)
4499
3898
  })
@@ -4503,23 +3902,23 @@ var ColumnHeaderMenu = ({
4503
3902
  })
4504
3903
  ]
4505
3904
  }),
4506
- activeFilters.length ? /* @__PURE__ */ jsxs9(DropdownMenuItem2, {
3905
+ activeFilters.length ? /* @__PURE__ */ jsxs3(DropdownMenuItem, {
4507
3906
  onClick: () => send(DataTableMessage.ColumnFiltersCleared({ id: column.id })),
4508
3907
  children: [
4509
- /* @__PURE__ */ jsx15(X, {}),
3908
+ /* @__PURE__ */ jsx3(X, {}),
4510
3909
  store.config.labels.filterClear
4511
3910
  ]
4512
3911
  }) : null
4513
3912
  ]
4514
3913
  }) : null,
4515
- (sortingEnabled || filteringEnabled) && hidingEnabled ? /* @__PURE__ */ jsx15(DropdownMenuSeparator2, {}) : null,
4516
- hidingEnabled ? /* @__PURE__ */ jsxs9(DropdownMenuItem2, {
3914
+ (sortingEnabled || filteringEnabled) && hidingEnabled ? /* @__PURE__ */ jsx3(DropdownMenuSeparator, {}) : null,
3915
+ hidingEnabled ? /* @__PURE__ */ jsxs3(DropdownMenuItem, {
4517
3916
  onClick: () => send(DataTableMessage.ColumnVisibilityChanged({
4518
3917
  id: column.id,
4519
3918
  visible: false
4520
3919
  })),
4521
3920
  children: [
4522
- /* @__PURE__ */ jsx15(EyeOff, {}),
3921
+ /* @__PURE__ */ jsx3(EyeOff, {}),
4523
3922
  " ",
4524
3923
  store.config.labels.hideColumn
4525
3924
  ]
@@ -4542,16 +3941,16 @@ var DataTableHeader = ({
4542
3941
  const selectableRows = model.pageRows.filter((row) => !selection || (selection.isRowSelectable?.(row.data) ?? true));
4543
3942
  const allSelected = selectableRows.length > 0 && selectableRows.every((row) => store.state.rowSelection[row.id]);
4544
3943
  const someSelected = selectableRows.some((row) => store.state.rowSelection[row.id]);
4545
- return /* @__PURE__ */ jsx15(TableHeader2, {
3944
+ return /* @__PURE__ */ jsx3(TableHeader, {
4546
3945
  className: sticky ? cn(tableClasses.stickyHeader, tableClasses.stickyHeaderRule, "[&_tr]:border-b-0") : undefined,
4547
- children: /* @__PURE__ */ jsxs9(TableRow2, {
3946
+ children: /* @__PURE__ */ jsxs3(TableRow, {
4548
3947
  "aria-rowindex": sticky ? 1 : undefined,
4549
3948
  children: [
4550
- selection ? /* @__PURE__ */ jsx15(TableHead2, {
3949
+ selection ? /* @__PURE__ */ jsx3(TableHead, {
4551
3950
  className: tableClasses.selectionCell,
4552
- children: /* @__PURE__ */ jsx15("div", {
3951
+ children: /* @__PURE__ */ jsx3("div", {
4553
3952
  className: tableClasses.selectionCenter,
4554
- children: /* @__PURE__ */ jsx15(Checkbox, {
3953
+ children: /* @__PURE__ */ jsx3(Checkbox, {
4555
3954
  "aria-label": store.config.labels.selectAllRows,
4556
3955
  checked: allSelected,
4557
3956
  indeterminate: someSelected && !allSelected,
@@ -4564,30 +3963,30 @@ var DataTableHeader = ({
4564
3963
  })
4565
3964
  })
4566
3965
  }) : null,
4567
- draggable ? /* @__PURE__ */ jsx15(TableHead2, {
3966
+ draggable ? /* @__PURE__ */ jsx3(TableHead, {
4568
3967
  className: "w-10"
4569
3968
  }) : null,
4570
3969
  model.visibleColumns.map((column) => {
4571
3970
  const direction = store.state.sort?.find(({ id }) => id === column.id)?.direction;
4572
- return /* @__PURE__ */ jsx15(TableHead2, {
3971
+ return /* @__PURE__ */ jsx3(TableHead, {
4573
3972
  "aria-sort": direction === "asc" ? "ascending" : direction === "desc" ? "descending" : undefined,
4574
3973
  className: tableClasses.header,
4575
3974
  scope: "col",
4576
3975
  style: { width: column.width },
4577
- children: /* @__PURE__ */ jsxs9(ColumnIdContext.Provider, {
3976
+ children: /* @__PURE__ */ jsxs3(ColumnIdContext.Provider, {
4578
3977
  value: column.id,
4579
3978
  children: [
4580
- /* @__PURE__ */ jsx15(ColumnHeaderMenu, {
3979
+ /* @__PURE__ */ jsx3(ColumnHeaderMenu, {
4581
3980
  table
4582
3981
  }),
4583
- /* @__PURE__ */ jsx15(ResizeHandle, {
3982
+ /* @__PURE__ */ jsx3(ResizeHandle, {
4584
3983
  table
4585
3984
  })
4586
3985
  ]
4587
3986
  })
4588
3987
  }, column.id);
4589
3988
  }),
4590
- hasRowActionMenu(store) ? /* @__PURE__ */ jsx15(TableHead2, {
3989
+ hasRowActionMenu(store) ? /* @__PURE__ */ jsx3(TableHead, {
4591
3990
  className: "w-10"
4592
3991
  }) : null
4593
3992
  ]
@@ -4605,7 +4004,7 @@ var VirtualTableRows = ({
4605
4004
  const { element: scrollElement, headerHeight } = viewport;
4606
4005
  const pageScroll = viewport.options.scroll === "page";
4607
4006
  const scrollMargin = viewport.pageOffset ?? headerHeight;
4608
- const entries = useMemo2(() => {
4007
+ const entries = useMemo(() => {
4609
4008
  const result = [];
4610
4009
  const addSections = (groups) => {
4611
4010
  for (const section of groups) {
@@ -4669,39 +4068,39 @@ var VirtualTableRows = ({
4669
4068
  const last = items.at(-1);
4670
4069
  const before = first ? first.start - scrollMargin : 0;
4671
4070
  const after = virtualizer.getTotalSize() - (last ? last.end - scrollMargin : 0);
4672
- const spacer = (height) => height > 0 ? /* @__PURE__ */ jsx15("tr", {
4071
+ const spacer = (height) => height > 0 ? /* @__PURE__ */ jsx3("tr", {
4673
4072
  "aria-hidden": "true",
4674
- children: /* @__PURE__ */ jsx15("td", {
4073
+ children: /* @__PURE__ */ jsx3("td", {
4675
4074
  colSpan: Math.max(1, colSpan),
4676
4075
  className: "border-0 p-0",
4677
4076
  style: { height }
4678
4077
  })
4679
4078
  }) : null;
4680
- return /* @__PURE__ */ jsxs9(Fragment, {
4079
+ return /* @__PURE__ */ jsxs3(Fragment, {
4681
4080
  children: [
4682
4081
  spacer(before),
4683
4082
  items.map(({ index, key }) => {
4684
4083
  const entry = entries[index];
4685
4084
  if (entry.kind === "data")
4686
- return /* @__PURE__ */ jsx15(TableDataRow, {
4085
+ return /* @__PURE__ */ jsx3(TableDataRow, {
4687
4086
  measureRef: virtualizer.measureElement,
4688
4087
  row: entry.row,
4689
4088
  table,
4690
4089
  virtualIndex: index
4691
4090
  }, key);
4692
4091
  if (entry.kind === "header")
4693
- return /* @__PURE__ */ jsx15(GroupHeaderRow, {
4092
+ return /* @__PURE__ */ jsx3(GroupHeaderRow, {
4694
4093
  measureRef: virtualizer.measureElement,
4695
4094
  section: entry.section,
4696
4095
  colSpan,
4697
4096
  table,
4698
4097
  virtualIndex: index
4699
4098
  }, key);
4700
- return /* @__PURE__ */ jsx15(TableRow2, {
4099
+ return /* @__PURE__ */ jsx3(TableRow, {
4701
4100
  ref: virtualizer.measureElement,
4702
4101
  "data-index": index,
4703
4102
  "aria-rowindex": index + 2,
4704
- children: /* @__PURE__ */ jsx15(TableCell2, {
4103
+ children: /* @__PURE__ */ jsx3(TableCell, {
4705
4104
  className: "text-muted-foreground h-16",
4706
4105
  colSpan,
4707
4106
  children: entry.section.field.renderEmptyGroup?.(entry.section.groupId) ?? config.labels.empty
@@ -4721,42 +4120,42 @@ var DataTableBody = ({
4721
4120
  const model = deriveModel(store);
4722
4121
  const fields = getActiveGrouping(store);
4723
4122
  const rows = model.pageRows;
4724
- const sections = useMemo2(() => groupDataTableRows(rows, fields), [rows, fields]);
4123
+ const sections = useMemo(() => groupDataTableRows(rows, fields), [rows, fields]);
4725
4124
  const colSpan = model.visibleColumns.length + (store.config.features.selection ? 1 : 0) + (hasRowActionMenu(store) ? 1 : 0) + (canDragRows(store) ? 1 : 0);
4726
4125
  const showGroups = sections.length && (rows.length || !store.config.status.loading) && !store.config.status.error;
4727
4126
  if (showGroups && !viewport) {
4728
- return /* @__PURE__ */ jsx15(GroupedTable, {
4127
+ return /* @__PURE__ */ jsx3(GroupedTable, {
4729
4128
  table,
4730
4129
  sections
4731
4130
  });
4732
4131
  }
4733
- return /* @__PURE__ */ jsx15(TableBody2, {
4734
- children: store.config.status.error || !showGroups && !rows.length && !store.config.status.loading ? /* @__PURE__ */ jsx15(TableRow2, {
4735
- children: /* @__PURE__ */ jsx15(TableCell2, {
4132
+ return /* @__PURE__ */ jsx3(TableBody, {
4133
+ children: store.config.status.error || !showGroups && !rows.length && !store.config.status.loading ? /* @__PURE__ */ jsx3(TableRow, {
4134
+ children: /* @__PURE__ */ jsx3(TableCell, {
4736
4135
  "data-table-slot": store.config.status.error ? "error" : "empty",
4737
4136
  className: cn("h-24 text-center", store.config.status.error ? styles?.feedback?.error : styles?.feedback?.empty),
4738
4137
  colSpan: Math.max(colSpan, 1),
4739
4138
  children: store.config.status.error ?? store.config.status.empty ?? store.config.labels.empty
4740
4139
  })
4741
- }) : !showGroups && store.config.status.loading && !rows.length ? /* @__PURE__ */ jsx15(TableRow2, {
4742
- children: /* @__PURE__ */ jsx15(TableCell2, {
4140
+ }) : !showGroups && store.config.status.loading && !rows.length ? /* @__PURE__ */ jsx3(TableRow, {
4141
+ children: /* @__PURE__ */ jsx3(TableCell, {
4743
4142
  "data-table-slot": "loading",
4744
4143
  className: cn("h-24 p-0", styles?.feedback?.loading),
4745
4144
  colSpan: Math.max(colSpan, 1),
4746
- children: /* @__PURE__ */ jsx15(Loading, {
4145
+ children: /* @__PURE__ */ jsx3(Loading, {
4747
4146
  className: "sticky left-0 w-[100cqw] max-w-full px-2",
4748
4147
  label: store.config.labels.loading
4749
4148
  })
4750
4149
  })
4751
- }) : viewport ? /* @__PURE__ */ jsx15(VirtualTableRows, {
4150
+ }) : viewport ? /* @__PURE__ */ jsx3(VirtualTableRows, {
4752
4151
  colSpan,
4753
4152
  rows,
4754
4153
  sections,
4755
4154
  table,
4756
4155
  viewport
4757
- }) : rows.map((row) => /* @__PURE__ */ jsx15(RowIdContext.Provider, {
4156
+ }) : rows.map((row) => /* @__PURE__ */ jsx3(RowIdContext.Provider, {
4758
4157
  value: row.id,
4759
- children: /* @__PURE__ */ jsx15(TableDataRow, {
4158
+ children: /* @__PURE__ */ jsx3(TableDataRow, {
4760
4159
  row,
4761
4160
  table
4762
4161
  })
@@ -4774,13 +4173,15 @@ var GalleryTag = ({
4774
4173
  if ((value == null || value === "") && !column.colDef.cellRenderer)
4775
4174
  return null;
4776
4175
  const content = renderCell(row, column, locale, labels);
4777
- return column.colDef.cellRenderer || column.colDef.valueFormatter ? /* @__PURE__ */ jsxs9("div", {
4176
+ const { colDef } = column;
4177
+ const displaysBadges = colDef.type === "text" && colDef.display === "badge" || colDef.type === "list" && colDef.typeOptions.display === "badge";
4178
+ return colDef.cellRenderer || colDef.valueFormatter || displaysBadges ? /* @__PURE__ */ jsxs3("div", {
4778
4179
  className: "flex min-w-0 items-center gap-1",
4779
4180
  children: [
4780
4181
  icon,
4781
4182
  content
4782
4183
  ]
4783
- }) : /* @__PURE__ */ jsxs9(Badge, {
4184
+ }) : /* @__PURE__ */ jsxs3(Badge, {
4784
4185
  variant: "secondary",
4785
4186
  children: [
4786
4187
  icon,
@@ -4808,7 +4209,7 @@ var GalleryCard = ({
4808
4209
  const selection = store.config.features.selection;
4809
4210
  const selectable = !!selection && (selection.isRowSelectable?.(row.data) ?? true);
4810
4211
  const draggable = canDragRows(store);
4811
- return /* @__PURE__ */ jsxs9(Card, {
4212
+ return /* @__PURE__ */ jsxs3(Card, {
4812
4213
  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"),
4813
4214
  "data-table-row": row.id,
4814
4215
  onClick: () => store.config.onRowClicked?.(row.data),
@@ -4820,7 +4221,7 @@ var GalleryCard = ({
4820
4221
  },
4821
4222
  tabIndex: store.config.onRowClicked ? 0 : undefined,
4822
4223
  children: [
4823
- imageSrc && !store.ui.failedImages.includes(imageSrc) ? /* @__PURE__ */ jsx15("img", {
4224
+ imageSrc && !store.ui.failedImages.includes(imageSrc) ? /* @__PURE__ */ jsx3("img", {
4824
4225
  src: imageSrc,
4825
4226
  alt: gallery.image?.getAlt?.(row.data) ?? "",
4826
4227
  loading: "lazy",
@@ -4828,32 +4229,32 @@ var GalleryCard = ({
4828
4229
  className: "aspect-video w-full object-cover",
4829
4230
  onError: () => send(DataTableMessage.ReferenceImageFailed({ src: imageSrc }))
4830
4231
  }) : null,
4831
- /* @__PURE__ */ jsxs9(CardHeader, {
4232
+ /* @__PURE__ */ jsxs3(CardHeader, {
4832
4233
  className: cn("relative", hasRowActionMenu(store) && "pr-12"),
4833
4234
  children: [
4834
- selection || draggable ? /* @__PURE__ */ jsxs9("div", {
4235
+ selection || draggable ? /* @__PURE__ */ jsxs3("div", {
4835
4236
  className: "flex items-center gap-2",
4836
4237
  children: [
4837
- selection ? /* @__PURE__ */ jsx15(Checkbox, {
4238
+ selection ? /* @__PURE__ */ jsx3(Checkbox, {
4838
4239
  "aria-label": store.config.labels.selectRow,
4839
4240
  checked: !!store.state.rowSelection[row.id],
4840
4241
  disabled: !selectable,
4841
4242
  onCheckedChange: (checked) => toggleRow(send, row.id, checked),
4842
4243
  onClick: (event) => event.stopPropagation()
4843
4244
  }) : null,
4844
- draggable ? /* @__PURE__ */ jsx15(DragHandle, {
4245
+ draggable ? /* @__PURE__ */ jsx3(DragHandle, {
4845
4246
  table
4846
4247
  }) : null
4847
4248
  ]
4848
4249
  }) : null,
4849
- /* @__PURE__ */ jsx15(CardTitle, {
4250
+ /* @__PURE__ */ jsx3(CardTitle, {
4850
4251
  children: name ? renderCell(row, name, store.config.locale, store.config.labels) : row.id
4851
4252
  }),
4852
- tagIds.length ? /* @__PURE__ */ jsx15("div", {
4253
+ tagIds.length ? /* @__PURE__ */ jsx3("div", {
4853
4254
  className: "flex flex-wrap items-center gap-2",
4854
4255
  children: tagIds.map((id) => {
4855
4256
  const column = find(id);
4856
- return column ? /* @__PURE__ */ jsx15(GalleryTag, {
4257
+ return column ? /* @__PURE__ */ jsx3(GalleryTag, {
4857
4258
  row,
4858
4259
  column,
4859
4260
  locale: store.config.locale,
@@ -4862,14 +4263,14 @@ var GalleryCard = ({
4862
4263
  }, id) : null;
4863
4264
  })
4864
4265
  }) : null,
4865
- description ? /* @__PURE__ */ jsx15("div", {
4266
+ description ? /* @__PURE__ */ jsx3("div", {
4866
4267
  className: "text-muted-foreground line-clamp-3 text-sm",
4867
4268
  children: renderCell(row, description, store.config.locale, store.config.labels)
4868
4269
  }) : null,
4869
- hasRowActionMenu(store) ? /* @__PURE__ */ jsx15("div", {
4270
+ hasRowActionMenu(store) ? /* @__PURE__ */ jsx3("div", {
4870
4271
  className: "absolute top-0 right-4",
4871
4272
  onClick: (event) => event.stopPropagation(),
4872
- children: /* @__PURE__ */ jsx15(DataTableRowActionMenu, {
4273
+ children: /* @__PURE__ */ jsx3(DataTableRowActionMenu, {
4873
4274
  row,
4874
4275
  table
4875
4276
  })
@@ -4889,35 +4290,35 @@ var DataTableGallery = ({
4889
4290
  const rows = model.pageRows;
4890
4291
  const sections = groupDataTableRows(rows, fields);
4891
4292
  if (store.config.status.error) {
4892
- return /* @__PURE__ */ jsx15("div", {
4293
+ return /* @__PURE__ */ jsx3("div", {
4893
4294
  "data-table-slot": "error",
4894
4295
  className: cn("text-destructive rounded-lg border border-dashed p-10 text-center", styles?.feedback?.error),
4895
4296
  children: store.config.status.error
4896
4297
  });
4897
4298
  }
4898
4299
  if (store.config.status.loading && !rows.length) {
4899
- return /* @__PURE__ */ jsx15("div", {
4300
+ return /* @__PURE__ */ jsx3("div", {
4900
4301
  "data-table-slot": "loading",
4901
4302
  className: cn("rounded-lg border border-dashed p-10 text-center", styles?.feedback?.loading),
4902
- children: /* @__PURE__ */ jsx15(Loading, {
4303
+ children: /* @__PURE__ */ jsx3(Loading, {
4903
4304
  label: store.config.labels.loading
4904
4305
  })
4905
4306
  });
4906
4307
  }
4907
4308
  if (!rows.length && !sections.length) {
4908
- return /* @__PURE__ */ jsx15("div", {
4309
+ return /* @__PURE__ */ jsx3("div", {
4909
4310
  "data-table-slot": "empty",
4910
4311
  className: cn("text-muted-foreground rounded-lg border border-dashed p-10 text-center", styles?.feedback?.empty),
4911
4312
  children: store.config.status.empty ?? store.config.labels.empty
4912
4313
  });
4913
4314
  }
4914
4315
  if (!fields.length) {
4915
- return /* @__PURE__ */ jsx15("div", {
4316
+ return /* @__PURE__ */ jsx3("div", {
4916
4317
  "data-table-slot": "gallery",
4917
4318
  className: cn("grid gap-3 sm:grid-cols-2 xl:grid-cols-3", styles?.gallery),
4918
- children: rows.map((row) => /* @__PURE__ */ jsx15(RowIdContext.Provider, {
4319
+ children: rows.map((row) => /* @__PURE__ */ jsx3(RowIdContext.Provider, {
4919
4320
  value: row.id,
4920
- children: /* @__PURE__ */ jsx15(GalleryCard, {
4321
+ children: /* @__PURE__ */ jsx3(GalleryCard, {
4921
4322
  table
4922
4323
  })
4923
4324
  }, row.id))
@@ -4927,58 +4328,58 @@ var DataTableGallery = ({
4927
4328
  const collapsed = !!store.state.collapsedGroups[section.key];
4928
4329
  const targetKey = getGroupDropKey(section.field.id, section.groupId);
4929
4330
  const toggleCollapsed = () => send(DataTableMessage.GroupToggled({ key: section.key }));
4930
- return /* @__PURE__ */ jsxs9("section", {
4331
+ return /* @__PURE__ */ jsxs3("section", {
4931
4332
  className: "data-[drop-target=true]:ring-primary space-y-3 rounded-lg transition-shadow data-[drop-target=true]:ring-2",
4932
4333
  "data-table-group": section.field.onMoveToGroup ? targetKey : undefined,
4933
4334
  children: [
4934
- /* @__PURE__ */ jsxs9("div", {
4335
+ /* @__PURE__ */ jsxs3("div", {
4935
4336
  className: "hover:bg-accent flex cursor-pointer items-center gap-2 rounded-lg border p-3 transition-colors",
4936
4337
  onClick: toggleCollapsed,
4937
4338
  children: [
4938
- /* @__PURE__ */ jsxs9("button", {
4339
+ /* @__PURE__ */ jsxs3("button", {
4939
4340
  "aria-expanded": !collapsed,
4940
4341
  className: "flex flex-1 cursor-pointer items-center gap-2 text-left font-medium",
4941
4342
  type: "button",
4942
4343
  children: [
4943
- collapsed ? /* @__PURE__ */ jsx15(ChevronRight2, {
4344
+ collapsed ? /* @__PURE__ */ jsx3(ChevronRight2, {
4944
4345
  className: "size-4"
4945
- }) : /* @__PURE__ */ jsx15(ChevronDown, {
4346
+ }) : /* @__PURE__ */ jsx3(ChevronDown, {
4946
4347
  className: "size-4"
4947
4348
  }),
4948
- /* @__PURE__ */ jsx15("span", {
4349
+ /* @__PURE__ */ jsx3("span", {
4949
4350
  className: "flex-1",
4950
4351
  children: section.field.renderGroupLabel?.(section.groupId, section.rows.map((row) => row.data)) ?? section.groupId
4951
4352
  }),
4952
- /* @__PURE__ */ jsx15(Badge, {
4353
+ /* @__PURE__ */ jsx3(Badge, {
4953
4354
  variant: "secondary",
4954
4355
  children: section.rows.length
4955
4356
  })
4956
4357
  ]
4957
4358
  }),
4958
- /* @__PURE__ */ jsx15(GroupActions, {
4359
+ /* @__PURE__ */ jsx3(GroupActions, {
4959
4360
  actions: section.field.actions,
4960
4361
  groupId: section.groupId,
4961
4362
  title: section.field.actionsLabel ?? store.config.labels.actions
4962
4363
  })
4963
4364
  ]
4964
4365
  }),
4965
- !collapsed ? section.children.length ? renderSections(section.children) : section.rows.length ? /* @__PURE__ */ jsx15("div", {
4366
+ !collapsed ? section.children.length ? renderSections(section.children) : section.rows.length ? /* @__PURE__ */ jsx3("div", {
4966
4367
  "data-table-slot": "gallery",
4967
4368
  className: cn("grid gap-3 sm:grid-cols-2 xl:grid-cols-3", styles?.gallery),
4968
- children: section.rows.map((row) => /* @__PURE__ */ jsx15(RowIdContext.Provider, {
4369
+ children: section.rows.map((row) => /* @__PURE__ */ jsx3(RowIdContext.Provider, {
4969
4370
  value: row.id,
4970
- children: /* @__PURE__ */ jsx15(GalleryCard, {
4371
+ children: /* @__PURE__ */ jsx3(GalleryCard, {
4971
4372
  table
4972
4373
  })
4973
4374
  }, `${section.key}:${row.id}`))
4974
- }) : /* @__PURE__ */ jsx15("div", {
4375
+ }) : /* @__PURE__ */ jsx3("div", {
4975
4376
  className: "text-muted-foreground rounded-lg border border-dashed p-8 text-center",
4976
4377
  children: section.field.renderEmptyGroup?.(section.groupId) ?? store.config.labels.empty
4977
4378
  }) : null
4978
4379
  ]
4979
4380
  }, section.key);
4980
4381
  });
4981
- return /* @__PURE__ */ jsx15("div", {
4382
+ return /* @__PURE__ */ jsx3("div", {
4982
4383
  className: "space-y-4",
4983
4384
  children: renderSections(sections)
4984
4385
  });
@@ -5000,10 +4401,10 @@ var DataTablePagination = ({
5000
4401
  if (!paginationVisible || !pagination)
5001
4402
  return null;
5002
4403
  const selected = model.rows.filter((row) => store.state.rowSelection[row.id]).length;
5003
- return /* @__PURE__ */ jsx15("div", {
4404
+ return /* @__PURE__ */ jsx3("div", {
5004
4405
  "data-table-slot": "pagination",
5005
4406
  className: cn("shrink-0 pt-4", styles?.pagination),
5006
- children: /* @__PURE__ */ jsx15(Pagination, {
4407
+ children: /* @__PURE__ */ jsx3(Pagination, {
5007
4408
  pageSizeContentClassName: styles?.popup?.select,
5008
4409
  locale: store.config.locale,
5009
4410
  messages: { [store.config.locale]: store.config.labels },
@@ -5052,10 +4453,10 @@ var modelColumns = (definitions) => normalizeDataTableColumns(definitions).map((
5052
4453
  });
5053
4454
  var getTableLayoutClass = (virtualization) => virtualization && virtualization !== true && virtualization.scroll === "internal" ? "flex min-h-0 flex-1 flex-col" : undefined;
5054
4455
  var HydratedDataTable = (props) => {
5055
- const config = useMemo2(() => resolveConfig(props), [props]);
5056
- const columns = useMemo2(() => modelColumns(props.columnDefs), [props.columnDefs]);
4456
+ const config = useMemo(() => resolveConfig(props), [props]);
4457
+ const columns = useMemo(() => modelColumns(props.columnDefs), [props.columnDefs]);
5057
4458
  const selection = config.features.selection;
5058
- const modelProps = useMemo2(() => {
4459
+ const modelProps = useMemo(() => {
5059
4460
  const { features } = config;
5060
4461
  const grouping = features.grouping;
5061
4462
  const pagination = features.pagination;
@@ -5153,7 +4554,7 @@ var HydratedDataTable = (props) => {
5153
4554
  const query = modelProps.state ?? model.query;
5154
4555
  const { collapsedGroups, selectedRowIds } = model;
5155
4556
  const galleryEnabled = !!props.features?.gallery;
5156
- const state = useMemo2(() => ({
4557
+ const state = useMemo(() => ({
5157
4558
  ...query,
5158
4559
  columnVisibility,
5159
4560
  columnSizing,
@@ -5171,7 +4572,7 @@ var HydratedDataTable = (props) => {
5171
4572
  collapsedGroups,
5172
4573
  selectedRowIds
5173
4574
  ]);
5174
- const store = useMemo2(() => {
4575
+ const store = useMemo(() => {
5175
4576
  const source = {
5176
4577
  rowData: props.rowData,
5177
4578
  columnDefs: props.columnDefs,
@@ -5182,20 +4583,20 @@ var HydratedDataTable = (props) => {
5182
4583
  }, [props.rowData, props.columnDefs, config, state]);
5183
4584
  const table = [{ ...store, ui: model }, send];
5184
4585
  if (!preferencesLoaded)
5185
- return /* @__PURE__ */ jsx15(TablePlaceholder, {
4586
+ return /* @__PURE__ */ jsx3(TablePlaceholder, {
5186
4587
  props
5187
4588
  });
5188
- return /* @__PURE__ */ jsxs9("div", {
4589
+ return /* @__PURE__ */ jsxs3("div", {
5189
4590
  className: cn("w-full max-w-full min-w-0 rounded-md", getTableLayoutClass(props.features?.virtualization), props.className),
5190
4591
  "data-table-root": "",
5191
4592
  children: [
5192
- /* @__PURE__ */ jsx15(DataTableToolbar, {
4593
+ /* @__PURE__ */ jsx3(DataTableToolbar, {
5193
4594
  table
5194
4595
  }),
5195
- /* @__PURE__ */ jsx15(DataTableContent, {
4596
+ /* @__PURE__ */ jsx3(DataTableContent, {
5196
4597
  table
5197
4598
  }),
5198
- /* @__PURE__ */ jsx15(DataTablePagination, {
4599
+ /* @__PURE__ */ jsx3(DataTablePagination, {
5199
4600
  table
5200
4601
  })
5201
4602
  ]
@@ -5206,7 +4607,7 @@ var clientSnapshot = () => true;
5206
4607
  var serverSnapshot = () => false;
5207
4608
  var TablePlaceholder = ({
5208
4609
  props
5209
- }) => /* @__PURE__ */ jsx15("div", {
4610
+ }) => /* @__PURE__ */ jsx3("div", {
5210
4611
  "aria-busy": "true",
5211
4612
  className: cn("invisible w-full max-w-full min-w-0 rounded-md", getTableLayoutClass(props.features?.virtualization), props.className),
5212
4613
  "data-table-root": ""
@@ -5215,14 +4616,14 @@ var DataTable = (props) => {
5215
4616
  const locale = useKrakstackLocale3(props.locale);
5216
4617
  const hydrated = useSyncExternalStore(subscribeToHydration, clientSnapshot, serverSnapshot);
5217
4618
  if (!hydrated)
5218
- return /* @__PURE__ */ jsx15(TablePlaceholder, {
4619
+ return /* @__PURE__ */ jsx3(TablePlaceholder, {
5219
4620
  props
5220
4621
  });
5221
- return /* @__PURE__ */ jsx15(DataTableStylesContext.Provider, {
4622
+ return /* @__PURE__ */ jsx3(DataTableStylesContext.Provider, {
5222
4623
  value: props.classNames,
5223
- children: /* @__PURE__ */ jsx15(DataTableSlotClassesContext.Provider, {
4624
+ children: /* @__PURE__ */ jsx3(DataTableSlotClassesContext.Provider, {
5224
4625
  value: resolveTableClasses(props.classes),
5225
- children: /* @__PURE__ */ jsx15(HydratedDataTable, {
4626
+ children: /* @__PURE__ */ jsx3(HydratedDataTable, {
5226
4627
  ...props,
5227
4628
  locale
5228
4629
  })
@@ -5265,7 +4666,7 @@ var DataTableContent = ({
5265
4666
  return () => observer.disconnect();
5266
4667
  }, [scrollElement]);
5267
4668
  if (store.config.features.gallery && store.state.view === "gallery") {
5268
- return /* @__PURE__ */ jsx15(DataTableGallery, {
4669
+ return /* @__PURE__ */ jsx3(DataTableGallery, {
5269
4670
  table
5270
4671
  });
5271
4672
  }
@@ -5279,22 +4680,22 @@ var DataTableContent = ({
5279
4680
  const options = virtualization && virtualization !== true ? virtualization : {};
5280
4681
  const rowCount = !getActiveGrouping(store).length && model.pageRows.length && !store.config.status.error ? model.pageRows.length + 1 : undefined;
5281
4682
  if (options.scroll === "page") {
5282
- return /* @__PURE__ */ jsx15("div", {
4683
+ return /* @__PURE__ */ jsx3("div", {
5283
4684
  ref: setPageTable,
5284
4685
  "data-table-page-virtualization": "",
5285
4686
  className: "[overflow-anchor:none]",
5286
- children: /* @__PURE__ */ jsxs9(ScrollArea, {
4687
+ children: /* @__PURE__ */ jsxs3(ScrollArea, {
5287
4688
  className: "@container max-w-full min-w-0",
5288
4689
  children: [
5289
- /* @__PURE__ */ jsxs9(Table2, {
4690
+ /* @__PURE__ */ jsxs3(Table, {
5290
4691
  "aria-rowcount": rowCount,
5291
4692
  className: "table-fixed",
5292
4693
  style: { width: `max(100%, ${width}px)` },
5293
4694
  children: [
5294
- /* @__PURE__ */ jsx15(DataTableHeader, {
4695
+ /* @__PURE__ */ jsx3(DataTableHeader, {
5295
4696
  table
5296
4697
  }),
5297
- /* @__PURE__ */ jsx15(DataTableBody, {
4698
+ /* @__PURE__ */ jsx3(DataTableBody, {
5298
4699
  table,
5299
4700
  viewport: {
5300
4701
  element: null,
@@ -5305,7 +4706,7 @@ var DataTableContent = ({
5305
4706
  })
5306
4707
  ]
5307
4708
  }),
5308
- /* @__PURE__ */ jsx15(ScrollBar, {
4709
+ /* @__PURE__ */ jsx3(ScrollBar, {
5309
4710
  orientation: "horizontal"
5310
4711
  })
5311
4712
  ]
@@ -5313,10 +4714,10 @@ var DataTableContent = ({
5313
4714
  });
5314
4715
  }
5315
4716
  const fillHeight = options.scroll === "internal";
5316
- return /* @__PURE__ */ jsxs9(ScrollAreaPrimitive2.Root, {
4717
+ return /* @__PURE__ */ jsxs3(ScrollAreaPrimitive.Root, {
5317
4718
  className: cn("relative isolate max-w-full min-w-0", fillHeight && "flex min-h-0 flex-1 flex-col"),
5318
4719
  children: [
5319
- /* @__PURE__ */ jsx15(ScrollAreaPrimitive2.Viewport, {
4720
+ /* @__PURE__ */ jsx3(ScrollAreaPrimitive.Viewport, {
5320
4721
  ref: setScrollElement,
5321
4722
  "data-table-virtual-viewport": "",
5322
4723
  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"),
@@ -5324,17 +4725,17 @@ var DataTableContent = ({
5324
4725
  maxHeight: fillHeight ? undefined : options.height ?? 480,
5325
4726
  scrollPaddingTop: headerHeight
5326
4727
  },
5327
- children: /* @__PURE__ */ jsx15(ScrollAreaPrimitive2.Content, {
5328
- children: /* @__PURE__ */ jsxs9(Table2, {
4728
+ children: /* @__PURE__ */ jsx3(ScrollAreaPrimitive.Content, {
4729
+ children: /* @__PURE__ */ jsxs3(Table, {
5329
4730
  "aria-rowcount": rowCount,
5330
4731
  className: "table-fixed",
5331
4732
  style: { width: `max(100%, ${width}px)` },
5332
4733
  children: [
5333
- /* @__PURE__ */ jsx15(DataTableHeader, {
4734
+ /* @__PURE__ */ jsx3(DataTableHeader, {
5334
4735
  sticky: true,
5335
4736
  table
5336
4737
  }),
5337
- /* @__PURE__ */ jsx15(DataTableBody, {
4738
+ /* @__PURE__ */ jsx3(DataTableBody, {
5338
4739
  table,
5339
4740
  viewport: { element: scrollElement, headerHeight, options }
5340
4741
  })
@@ -5342,33 +4743,33 @@ var DataTableContent = ({
5342
4743
  })
5343
4744
  })
5344
4745
  }),
5345
- /* @__PURE__ */ jsx15(ScrollBar, {
4746
+ /* @__PURE__ */ jsx3(ScrollBar, {
5346
4747
  className: "data-vertical:h-auto",
5347
4748
  style: { top: headerHeight }
5348
4749
  }),
5349
- /* @__PURE__ */ jsx15(ScrollBar, {
4750
+ /* @__PURE__ */ jsx3(ScrollBar, {
5350
4751
  orientation: "horizontal"
5351
4752
  }),
5352
- /* @__PURE__ */ jsx15(ScrollAreaPrimitive2.Corner, {})
4753
+ /* @__PURE__ */ jsx3(ScrollAreaPrimitive.Corner, {})
5353
4754
  ]
5354
4755
  });
5355
4756
  }
5356
- return /* @__PURE__ */ jsxs9(ScrollArea, {
4757
+ return /* @__PURE__ */ jsxs3(ScrollArea, {
5357
4758
  className: "@container max-w-full min-w-0",
5358
4759
  children: [
5359
- /* @__PURE__ */ jsxs9(Table2, {
4760
+ /* @__PURE__ */ jsxs3(Table, {
5360
4761
  className: "table-fixed",
5361
4762
  style: { width: `max(100%, ${width}px)` },
5362
4763
  children: [
5363
- /* @__PURE__ */ jsx15(DataTableHeader, {
4764
+ /* @__PURE__ */ jsx3(DataTableHeader, {
5364
4765
  table
5365
4766
  }),
5366
- /* @__PURE__ */ jsx15(DataTableBody, {
4767
+ /* @__PURE__ */ jsx3(DataTableBody, {
5367
4768
  table
5368
4769
  })
5369
4770
  ]
5370
4771
  }),
5371
- /* @__PURE__ */ jsx15(ScrollBar, {
4772
+ /* @__PURE__ */ jsx3(ScrollBar, {
5372
4773
  orientation: "horizontal"
5373
4774
  })
5374
4775
  ]
@@ -5379,7 +4780,7 @@ var DataTableListCell = (props) => {
5379
4780
  const locale = useKrakstackLocale3(props.locale);
5380
4781
  const resolvedProps = { ...props, locale };
5381
4782
  if (resolvedProps.options && (resolvedProps.onAdd || resolvedProps.onRemove)) {
5382
- return /* @__PURE__ */ jsx15(EditableDataTableListCell, {
4783
+ return /* @__PURE__ */ jsx3(EditableDataTableListCell, {
5383
4784
  ...resolvedProps
5384
4785
  });
5385
4786
  }
@@ -5387,17 +4788,17 @@ var DataTableListCell = (props) => {
5387
4788
  const labels = dataTableMessages(locale, resolvedProps.messages);
5388
4789
  const hasItems = resolvedProps.items.length > 0;
5389
4790
  if (!itemActions?.length && !hasItems) {
5390
- return /* @__PURE__ */ jsx15(DataTableListSummary, {
4791
+ return /* @__PURE__ */ jsx3(DataTableListSummary, {
5391
4792
  ...summaryProps
5392
4793
  });
5393
4794
  }
5394
4795
  const menuLabel = actionsLabel ?? (itemActions?.length ? labels.actions : labels.listDetails);
5395
- return /* @__PURE__ */ jsx15("div", {
4796
+ return /* @__PURE__ */ jsx3("div", {
5396
4797
  className: tableClasses.relationshipCell,
5397
4798
  "data-slot": "data-table-list-cell",
5398
4799
  onClick: (event) => event.stopPropagation(),
5399
4800
  onPointerDown: (event) => event.stopPropagation(),
5400
- children: /* @__PURE__ */ jsx15(DataTableListMenu, {
4801
+ children: /* @__PURE__ */ jsx3(DataTableListMenu, {
5401
4802
  actions: itemActions ?? [],
5402
4803
  display: resolvedProps.display,
5403
4804
  force: hasItems,
@@ -5406,16 +4807,16 @@ var DataTableListCell = (props) => {
5406
4807
  locale,
5407
4808
  messages: resolvedProps.messages,
5408
4809
  onItemClick,
5409
- trigger: /* @__PURE__ */ jsxs9(Button, {
4810
+ trigger: /* @__PURE__ */ jsxs3(Button2, {
5410
4811
  "aria-label": menuLabel,
5411
4812
  className: tableClasses.relationshipTrigger,
5412
4813
  variant: "ghost",
5413
4814
  children: [
5414
- /* @__PURE__ */ jsx15(DataTableListSummaryContent, {
4815
+ /* @__PURE__ */ jsx3(DataTableListSummaryContent, {
5415
4816
  ...summaryProps,
5416
4817
  showMenu: false
5417
4818
  }),
5418
- /* @__PURE__ */ jsx15(ChevronDown, {})
4819
+ /* @__PURE__ */ jsx3(ChevronDown, {})
5419
4820
  ]
5420
4821
  })
5421
4822
  })
@@ -5456,7 +4857,7 @@ var EditableDataTableListCell = ({
5456
4857
  id: "data-table-list-remove",
5457
4858
  closeOnClick: false,
5458
4859
  name: labels.removeItem,
5459
- icon: /* @__PURE__ */ jsx15(Trash2, {}),
4860
+ icon: /* @__PURE__ */ jsx3(Trash2, {}),
5460
4861
  variant: "destructive",
5461
4862
  onClick: (item) => {
5462
4863
  if (item.value === undefined)
@@ -5467,12 +4868,12 @@ var EditableDataTableListCell = ({
5467
4868
  }
5468
4869
  ] : []
5469
4870
  ];
5470
- return /* @__PURE__ */ jsx15("div", {
4871
+ return /* @__PURE__ */ jsx3("div", {
5471
4872
  "data-slot": "data-table-list-cell",
5472
4873
  className: tableClasses.relationshipCell,
5473
4874
  onClick: (event) => event.stopPropagation(),
5474
4875
  onPointerDown: (event) => event.stopPropagation(),
5475
- children: /* @__PURE__ */ jsx15(DataTableListMenu, {
4876
+ children: /* @__PURE__ */ jsx3(DataTableListMenu, {
5476
4877
  actions,
5477
4878
  addEmptyLabel: emptyLabel,
5478
4879
  addLabel: labels.addItem,
@@ -5489,12 +4890,12 @@ var EditableDataTableListCell = ({
5489
4890
  onAdd(item.value);
5490
4891
  setSelected((current) => [...current, item]);
5491
4892
  } : undefined,
5492
- trigger: /* @__PURE__ */ jsxs9(Button, {
4893
+ trigger: /* @__PURE__ */ jsxs3(Button2, {
5493
4894
  "aria-label": manageLabel,
5494
- className: "h-full w-full min-w-0 justify-between rounded-none px-2 focus-visible:ring-inset",
4895
+ className: tableClasses.relationshipTrigger,
5495
4896
  variant: "ghost",
5496
4897
  children: [
5497
- /* @__PURE__ */ jsx15(DataTableListSummaryContent, {
4898
+ /* @__PURE__ */ jsx3(DataTableListSummaryContent, {
5498
4899
  emptyLabel,
5499
4900
  items: selected,
5500
4901
  display,
@@ -5502,7 +4903,7 @@ var EditableDataTableListCell = ({
5502
4903
  visibleCount,
5503
4904
  totalCount: selectedTotal
5504
4905
  }),
5505
- /* @__PURE__ */ jsx15(ChevronDown, {})
4906
+ /* @__PURE__ */ jsx3(ChevronDown, {})
5506
4907
  ]
5507
4908
  })
5508
4909
  })
@@ -5535,42 +4936,42 @@ var DataTableListMenu = ({
5535
4936
  return null;
5536
4937
  const labels = dataTableMessages(locale, messages);
5537
4938
  const resolvedLabel = label ?? (hasActions ? labels.actions : labels.listDetails);
5538
- return /* @__PURE__ */ jsxs9(DropdownMenu, {
4939
+ return /* @__PURE__ */ jsxs3(DropdownMenu, {
5539
4940
  modal: false,
5540
4941
  children: [
5541
- /* @__PURE__ */ jsx15(DropdownMenuTrigger2, {
4942
+ /* @__PURE__ */ jsx3(DropdownMenuTrigger, {
5542
4943
  onClick: (event) => event.stopPropagation(),
5543
4944
  onPointerDown: (event) => event.stopPropagation(),
5544
- render: trigger ?? /* @__PURE__ */ jsx15(Button, {
4945
+ render: trigger ?? /* @__PURE__ */ jsx3(Button2, {
5545
4946
  "aria-label": resolvedLabel,
5546
4947
  className: cn("size-8 shrink-0", className),
5547
4948
  size: "icon",
5548
4949
  variant: "ghost",
5549
- children: /* @__PURE__ */ jsx15(MoreHorizontal, {})
4950
+ children: /* @__PURE__ */ jsx3(MoreHorizontal, {})
5550
4951
  })
5551
4952
  }),
5552
- /* @__PURE__ */ jsx15(DropdownMenuContent2, {
4953
+ /* @__PURE__ */ jsx3(DropdownMenuContent, {
5553
4954
  align: "end",
5554
4955
  className: "max-h-[min(18rem,var(--available-height))] w-72 max-w-[calc(100vw-2rem)]",
5555
4956
  onClick: (event) => event.stopPropagation(),
5556
4957
  onPointerDown: (event) => event.stopPropagation(),
5557
- children: /* @__PURE__ */ jsxs9(DropdownMenuGroup, {
4958
+ children: /* @__PURE__ */ jsxs3(DropdownMenuGroup, {
5558
4959
  children: [
5559
- /* @__PURE__ */ jsx15(DropdownMenuLabel2, {
4960
+ /* @__PURE__ */ jsx3(DropdownMenuLabel, {
5560
4961
  children: resolvedLabel
5561
4962
  }),
5562
- /* @__PURE__ */ jsx15(DropdownMenuSeparator2, {}),
5563
- entries.map(({ item, visibleActions }, index) => visibleActions.length ? /* @__PURE__ */ jsxs9(DropdownMenuSub, {
4963
+ /* @__PURE__ */ jsx3(DropdownMenuSeparator, {}),
4964
+ entries.map(({ item, visibleActions }, index) => visibleActions.length ? /* @__PURE__ */ jsxs3(DropdownMenuSub, {
5564
4965
  children: [
5565
- /* @__PURE__ */ jsx15(DropdownMenuSubTrigger2, {
5566
- children: /* @__PURE__ */ jsx15(DataTableListEntry, {
4966
+ /* @__PURE__ */ jsx3(DropdownMenuSubTrigger, {
4967
+ children: /* @__PURE__ */ jsx3(DataTableListEntry, {
5567
4968
  item,
5568
4969
  appearance: display === "icon" ? "detail" : "list"
5569
4970
  })
5570
4971
  }),
5571
- /* @__PURE__ */ jsx15(DropdownMenuSubContent2, {
4972
+ /* @__PURE__ */ jsx3(DropdownMenuSubContent, {
5572
4973
  className: "w-max",
5573
- children: visibleActions.map((action) => /* @__PURE__ */ jsxs9(DropdownMenuItem2, {
4974
+ children: visibleActions.map((action) => /* @__PURE__ */ jsxs3(DropdownMenuItem, {
5574
4975
  closeOnClick: action.closeOnClick,
5575
4976
  disabled: action.disabled?.(item),
5576
4977
  onClick: (event) => {
@@ -5585,21 +4986,21 @@ var DataTableListMenu = ({
5585
4986
  }, action.id ?? action.name))
5586
4987
  })
5587
4988
  ]
5588
- }, item.value ?? `${item.label}-${index}`) : /* @__PURE__ */ jsx15(DropdownMenuItem2, {
4989
+ }, item.value ?? `${item.label}-${index}`) : /* @__PURE__ */ jsx3(DropdownMenuItem, {
5589
4990
  closeOnClick: Boolean(onItemClick),
5590
4991
  onClick: (event) => {
5591
4992
  event.stopPropagation();
5592
4993
  onItemClick?.(item);
5593
4994
  },
5594
- children: /* @__PURE__ */ jsx15(DataTableListEntry, {
4995
+ children: /* @__PURE__ */ jsx3(DataTableListEntry, {
5595
4996
  item,
5596
4997
  appearance: display === "icon" ? "detail" : "list"
5597
4998
  })
5598
4999
  }, item.value ?? `${item.label}-${index}`)),
5599
- onAdd && addOptions?.length ? /* @__PURE__ */ jsxs9(Fragment, {
5000
+ onAdd && addOptions?.length ? /* @__PURE__ */ jsxs3(Fragment, {
5600
5001
  children: [
5601
- entries.length ? /* @__PURE__ */ jsx15(DropdownMenuSeparator2, {}) : null,
5602
- /* @__PURE__ */ jsx15(DataTableListAddMenu, {
5002
+ entries.length ? /* @__PURE__ */ jsx3(DropdownMenuSeparator, {}) : null,
5003
+ /* @__PURE__ */ jsx3(DataTableListAddMenu, {
5603
5004
  emptyLabel: addEmptyLabel,
5604
5005
  label: addLabel ?? labels.addItem,
5605
5006
  locale,
@@ -5634,28 +5035,28 @@ var DataTableListAddMenu = ({
5634
5035
  const labels = dataTableMessages(locale, messages);
5635
5036
  const normalizedSearch = search.trim().toLocaleLowerCase(locale);
5636
5037
  const filtered = normalizedSearch ? options.filter((item) => item.label.toLocaleLowerCase(locale).includes(normalizedSearch)) : options;
5637
- return /* @__PURE__ */ jsxs9(DropdownMenuSub, {
5038
+ return /* @__PURE__ */ jsxs3(DropdownMenuSub, {
5638
5039
  onOpenChange: (open) => {
5639
5040
  if (!open)
5640
5041
  setSearch("");
5641
5042
  },
5642
5043
  children: [
5643
- /* @__PURE__ */ jsxs9(DropdownMenuSubTrigger2, {
5044
+ /* @__PURE__ */ jsxs3(DropdownMenuSubTrigger, {
5644
5045
  children: [
5645
- /* @__PURE__ */ jsx15(Plus, {}),
5046
+ /* @__PURE__ */ jsx3(Plus, {}),
5646
5047
  label
5647
5048
  ]
5648
5049
  }),
5649
- /* @__PURE__ */ jsxs9(DropdownMenuSubContent2, {
5050
+ /* @__PURE__ */ jsxs3(DropdownMenuSubContent, {
5650
5051
  className: "w-64",
5651
5052
  children: [
5652
- /* @__PURE__ */ jsxs9("div", {
5053
+ /* @__PURE__ */ jsxs3("div", {
5653
5054
  className: "relative p-1",
5654
5055
  children: [
5655
- /* @__PURE__ */ jsx15(Search, {
5056
+ /* @__PURE__ */ jsx3(Search, {
5656
5057
  className: "text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2"
5657
5058
  }),
5658
- /* @__PURE__ */ jsx15(Input2, {
5059
+ /* @__PURE__ */ jsx3(Input, {
5659
5060
  "aria-label": searchLabel,
5660
5061
  className: "h-8 pl-8",
5661
5062
  onChange: (event) => setSearch(event.target.value),
@@ -5669,15 +5070,15 @@ var DataTableListAddMenu = ({
5669
5070
  })
5670
5071
  ]
5671
5072
  }),
5672
- /* @__PURE__ */ jsx15(DropdownMenuSeparator2, {}),
5673
- filtered.length ? filtered.map((item) => /* @__PURE__ */ jsx15(DropdownMenuItem2, {
5073
+ /* @__PURE__ */ jsx3(DropdownMenuSeparator, {}),
5074
+ filtered.length ? filtered.map((item) => /* @__PURE__ */ jsx3(DropdownMenuItem, {
5674
5075
  closeOnClick: false,
5675
5076
  onClick: () => onAdd(item),
5676
- children: /* @__PURE__ */ jsx15(DataTableListEntry, {
5077
+ children: /* @__PURE__ */ jsx3(DataTableListEntry, {
5677
5078
  item,
5678
5079
  appearance: display === "icon" ? "detail" : "list"
5679
5080
  })
5680
- }, item.value)) : /* @__PURE__ */ jsx15("div", {
5081
+ }, item.value)) : /* @__PURE__ */ jsx3("div", {
5681
5082
  className: "text-muted-foreground px-2 py-1.5 text-sm",
5682
5083
  children: emptyLabel
5683
5084
  })
@@ -5698,29 +5099,29 @@ var DataTableListSummaryContent = ({
5698
5099
  }) => {
5699
5100
  const normalized = items.map((item) => Schema6.is(Schema6.String)(item) ? { label: item } : item);
5700
5101
  if (!normalized.length)
5701
- return /* @__PURE__ */ jsx15("span", {
5102
+ return /* @__PURE__ */ jsx3("span", {
5702
5103
  className: "text-muted-foreground",
5703
5104
  children: emptyLabel
5704
5105
  });
5705
5106
  const visible = normalized.slice(0, Math.max(0, visibleCount));
5706
5107
  const remaining = Math.max(totalCount - visible.length, 0);
5707
5108
  if (display === "icon") {
5708
- return /* @__PURE__ */ jsx15(TooltipProvider, {
5709
- children: /* @__PURE__ */ jsxs9("span", {
5109
+ return /* @__PURE__ */ jsx3(TooltipProvider, {
5110
+ children: /* @__PURE__ */ jsxs3("span", {
5710
5111
  className: "flex items-center",
5711
5112
  children: [
5712
- visible.map((item, index) => /* @__PURE__ */ jsx15(DataTableListEntry, {
5113
+ visible.map((item, index) => /* @__PURE__ */ jsx3(DataTableListEntry, {
5713
5114
  item,
5714
5115
  appearance: "icon"
5715
5116
  }, item.value ?? `${item.label}-${index}`)),
5716
- remaining ? /* @__PURE__ */ jsxs9("span", {
5117
+ remaining ? /* @__PURE__ */ jsxs3("span", {
5717
5118
  className: "bg-secondary text-secondary-foreground -ml-1 flex size-8 items-center justify-center rounded-full",
5718
5119
  children: [
5719
5120
  "+",
5720
5121
  remaining
5721
5122
  ]
5722
5123
  }) : null,
5723
- remaining && showMenu ? /* @__PURE__ */ jsx15(DataTableListMenu, {
5124
+ remaining && showMenu ? /* @__PURE__ */ jsx3(DataTableListMenu, {
5724
5125
  actions: [],
5725
5126
  display,
5726
5127
  force: true,
@@ -5732,17 +5133,43 @@ var DataTableListSummaryContent = ({
5732
5133
  })
5733
5134
  });
5734
5135
  }
5735
- return /* @__PURE__ */ jsxs9("span", {
5136
+ if (display === "badge") {
5137
+ return /* @__PURE__ */ jsxs3("span", {
5138
+ className: "inline-flex min-w-0 flex-wrap items-center gap-1",
5139
+ children: [
5140
+ visible.map((item, index) => /* @__PURE__ */ jsx3(Badge, {
5141
+ variant: "secondary",
5142
+ children: item.label
5143
+ }, item.value ?? `${item.label}-${index}`)),
5144
+ remaining ? /* @__PURE__ */ jsxs3(Badge, {
5145
+ variant: "secondary",
5146
+ children: [
5147
+ "+",
5148
+ remaining
5149
+ ]
5150
+ }) : null,
5151
+ remaining && showMenu ? /* @__PURE__ */ jsx3(DataTableListMenu, {
5152
+ actions: [],
5153
+ display,
5154
+ force: true,
5155
+ items: normalized,
5156
+ locale,
5157
+ messages
5158
+ }) : null
5159
+ ]
5160
+ });
5161
+ }
5162
+ return /* @__PURE__ */ jsxs3("span", {
5736
5163
  className: "inline-flex min-w-0 items-center gap-2 text-sm",
5737
5164
  children: [
5738
- /* @__PURE__ */ jsxs9("span", {
5165
+ /* @__PURE__ */ jsxs3("span", {
5739
5166
  className: "truncate",
5740
5167
  children: [
5741
5168
  visible.map((item) => item.label).join(", "),
5742
5169
  remaining ? ` +${remaining}` : ""
5743
5170
  ]
5744
5171
  }),
5745
- remaining && showMenu ? /* @__PURE__ */ jsx15(DataTableListMenu, {
5172
+ remaining && showMenu ? /* @__PURE__ */ jsx3(DataTableListMenu, {
5746
5173
  actions: [],
5747
5174
  display,
5748
5175
  force: true,
@@ -5753,7 +5180,7 @@ var DataTableListSummaryContent = ({
5753
5180
  ]
5754
5181
  });
5755
5182
  };
5756
- var DataTableListSummary = (props) => /* @__PURE__ */ jsx15(DataTableListSummaryContent, {
5183
+ var DataTableListSummary = (props) => /* @__PURE__ */ jsx3(DataTableListSummaryContent, {
5757
5184
  ...props,
5758
5185
  showMenu: true
5759
5186
  });
@@ -5761,40 +5188,40 @@ var DataTableListEntry = ({
5761
5188
  item,
5762
5189
  appearance
5763
5190
  }) => {
5764
- const icon = /* @__PURE__ */ jsx15("span", {
5191
+ const icon = /* @__PURE__ */ jsx3("span", {
5765
5192
  "aria-hidden": "true",
5766
5193
  className: "bg-secondary text-secondary-foreground flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full",
5767
- children: item.imageSrc ? /* @__PURE__ */ jsx15("img", {
5194
+ children: item.imageSrc ? /* @__PURE__ */ jsx3("img", {
5768
5195
  alt: "",
5769
5196
  src: item.imageSrc,
5770
5197
  className: "size-full object-cover"
5771
5198
  }) : item.icon ?? item.label.slice(0, 2).toUpperCase()
5772
5199
  });
5773
5200
  if (appearance === "list") {
5774
- return /* @__PURE__ */ jsx15("span", {
5201
+ return /* @__PURE__ */ jsx3("span", {
5775
5202
  className: "min-w-0 flex-1 truncate",
5776
5203
  title: item.label,
5777
5204
  children: item.label
5778
5205
  });
5779
5206
  }
5780
- return appearance === "icon" ? /* @__PURE__ */ jsxs9(Tooltip, {
5207
+ return appearance === "icon" ? /* @__PURE__ */ jsxs3(Tooltip, {
5781
5208
  children: [
5782
- /* @__PURE__ */ jsx15(TooltipTrigger, {
5783
- render: /* @__PURE__ */ jsx15("span", {
5209
+ /* @__PURE__ */ jsx3(TooltipTrigger, {
5210
+ render: /* @__PURE__ */ jsx3("span", {
5784
5211
  className: "-ml-1 inline-flex rounded-full",
5785
5212
  "aria-label": item.label
5786
5213
  }),
5787
5214
  children: icon
5788
5215
  }),
5789
- /* @__PURE__ */ jsx15(TooltipContent2, {
5216
+ /* @__PURE__ */ jsx3(TooltipContent, {
5790
5217
  children: item.label
5791
5218
  })
5792
5219
  ]
5793
- }) : /* @__PURE__ */ jsxs9("span", {
5220
+ }) : /* @__PURE__ */ jsxs3("span", {
5794
5221
  className: "flex min-w-0 flex-1 items-center gap-2 text-left",
5795
5222
  children: [
5796
5223
  icon,
5797
- /* @__PURE__ */ jsx15("span", {
5224
+ /* @__PURE__ */ jsx3("span", {
5798
5225
  className: "truncate",
5799
5226
  children: item.label
5800
5227
  })
@@ -5815,7 +5242,7 @@ var TextArrayValue = Schema7.Struct({
5815
5242
  var eventTextAttribute = (record, key) => Schema7.decodeUnknownOption(TextValue)(record.attributes.find((attribute) => attribute.key === key)?.value).pipe(Option5.map((value) => value.stringValue), Option5.getOrNull);
5816
5243
 
5817
5244
  // ../../src/components/audit-log-table/react.tsx
5818
- import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
5245
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
5819
5246
  var translations = {
5820
5247
  en: {
5821
5248
  title: "Activity history",
@@ -5949,13 +5376,13 @@ var AuditLogTable = ({
5949
5376
  },
5950
5377
  cellRenderer: ({ data }) => {
5951
5378
  const impersonatorId = eventTextAttribute(data, "app.auth.impersonator.id");
5952
- return /* @__PURE__ */ jsxs10("div", {
5379
+ return /* @__PURE__ */ jsxs4("div", {
5953
5380
  className: "flex min-w-0 flex-col gap-1",
5954
5381
  children: [
5955
- /* @__PURE__ */ jsx16(DataTableReferenceCell, {
5382
+ /* @__PURE__ */ jsx4(DataTableReferenceCell, {
5956
5383
  item: getActor(data)
5957
5384
  }),
5958
- impersonatorId !== null ? /* @__PURE__ */ jsxs10("span", {
5385
+ impersonatorId !== null ? /* @__PURE__ */ jsxs4("span", {
5959
5386
  className: "text-muted-foreground text-xs",
5960
5387
  children: [
5961
5388
  labels.impersonatedBy,
@@ -5986,10 +5413,10 @@ var AuditLogTable = ({
5986
5413
  }
5987
5414
  }
5988
5415
  ];
5989
- return /* @__PURE__ */ jsx16("section", {
5416
+ return /* @__PURE__ */ jsx4("section", {
5990
5417
  "aria-label": labels.title,
5991
5418
  className: "flex flex-col gap-4",
5992
- children: /* @__PURE__ */ jsx16(DataTable, {
5419
+ children: /* @__PURE__ */ jsx4(DataTable, {
5993
5420
  locale,
5994
5421
  status,
5995
5422
  state: tableState,