@krak-stack/registry 0.1.3 → 0.1.4

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.
@@ -438,7 +438,7 @@ function cn(...inputs) {
438
438
  }
439
439
 
440
440
  // ../../src/components/ui/button.tsx
441
- import { jsxDEV } from "react/jsx-dev-runtime";
441
+ import { jsx } from "react/jsx-runtime";
442
442
  var buttonVariants = cva("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", {
443
443
  variants: {
444
444
  variant: {
@@ -471,28 +471,28 @@ function Button({
471
471
  size = "default",
472
472
  ...props
473
473
  }) {
474
- return /* @__PURE__ */ jsxDEV(ButtonPrimitive, {
474
+ return /* @__PURE__ */ jsx(ButtonPrimitive, {
475
475
  "data-slot": "button",
476
476
  className: cn(buttonVariants({ variant, size, className })),
477
477
  ...props
478
- }, undefined, false, undefined, this);
478
+ });
479
479
  }
480
480
 
481
481
  // ../../src/components/ui/dropdown-menu.tsx
482
482
  import { Menu as MenuPrimitive } from "@base-ui/react/menu";
483
483
  import { ChevronRightIcon, CheckIcon } from "lucide-react";
484
- import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
484
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
485
485
  function DropdownMenu({ ...props }) {
486
- return /* @__PURE__ */ jsxDEV2(MenuPrimitive.Root, {
486
+ return /* @__PURE__ */ jsx2(MenuPrimitive.Root, {
487
487
  "data-slot": "dropdown-menu",
488
488
  ...props
489
- }, undefined, false, undefined, this);
489
+ });
490
490
  }
491
491
  function DropdownMenuTrigger({ ...props }) {
492
- return /* @__PURE__ */ jsxDEV2(MenuPrimitive.Trigger, {
492
+ return /* @__PURE__ */ jsx2(MenuPrimitive.Trigger, {
493
493
  "data-slot": "dropdown-menu-trigger",
494
494
  ...props
495
- }, undefined, false, undefined, this);
495
+ });
496
496
  }
497
497
  function DropdownMenuContent({
498
498
  align = "start",
@@ -502,44 +502,44 @@ function DropdownMenuContent({
502
502
  className,
503
503
  ...props
504
504
  }) {
505
- return /* @__PURE__ */ jsxDEV2(MenuPrimitive.Portal, {
506
- children: /* @__PURE__ */ jsxDEV2(MenuPrimitive.Positioner, {
505
+ return /* @__PURE__ */ jsx2(MenuPrimitive.Portal, {
506
+ children: /* @__PURE__ */ jsx2(MenuPrimitive.Positioner, {
507
507
  className: "isolate z-50 outline-none",
508
508
  align,
509
509
  alignOffset,
510
510
  side,
511
511
  sideOffset,
512
- children: /* @__PURE__ */ jsxDEV2(MenuPrimitive.Popup, {
512
+ children: /* @__PURE__ */ jsx2(MenuPrimitive.Popup, {
513
513
  "data-slot": "dropdown-menu-content",
514
514
  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),
515
515
  ...props
516
- }, undefined, false, undefined, this)
517
- }, undefined, false, undefined, this)
518
- }, undefined, false, undefined, this);
516
+ })
517
+ })
518
+ });
519
519
  }
520
520
  function DropdownMenuGroup({ ...props }) {
521
- return /* @__PURE__ */ jsxDEV2(MenuPrimitive.Group, {
521
+ return /* @__PURE__ */ jsx2(MenuPrimitive.Group, {
522
522
  "data-slot": "dropdown-menu-group",
523
523
  ...props
524
- }, undefined, false, undefined, this);
524
+ });
525
525
  }
526
526
  function DropdownMenuLabel({
527
527
  className,
528
528
  inset,
529
529
  ...props
530
530
  }) {
531
- return /* @__PURE__ */ jsxDEV2(MenuPrimitive.GroupLabel, {
531
+ return /* @__PURE__ */ jsx2(MenuPrimitive.GroupLabel, {
532
532
  "data-slot": "dropdown-menu-label",
533
533
  "data-inset": inset,
534
534
  className: cn("px-2 py-1.5 text-xs font-medium text-muted-foreground data-inset:pl-8", className),
535
535
  ...props
536
- }, undefined, false, undefined, this);
536
+ });
537
537
  }
538
538
  function DropdownMenuRadioGroup({ ...props }) {
539
- return /* @__PURE__ */ jsxDEV2(MenuPrimitive.RadioGroup, {
539
+ return /* @__PURE__ */ jsx2(MenuPrimitive.RadioGroup, {
540
540
  "data-slot": "dropdown-menu-radio-group",
541
541
  ...props
542
- }, undefined, false, undefined, this);
542
+ });
543
543
  }
544
544
  function DropdownMenuRadioItem({
545
545
  className,
@@ -547,27 +547,27 @@ function DropdownMenuRadioItem({
547
547
  inset,
548
548
  ...props
549
549
  }) {
550
- return /* @__PURE__ */ jsxDEV2(MenuPrimitive.RadioItem, {
550
+ return /* @__PURE__ */ jsxs(MenuPrimitive.RadioItem, {
551
551
  "data-slot": "dropdown-menu-radio-item",
552
552
  "data-inset": inset,
553
553
  className: cn("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 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),
554
554
  ...props,
555
555
  children: [
556
- /* @__PURE__ */ jsxDEV2("span", {
556
+ /* @__PURE__ */ jsx2("span", {
557
557
  className: "pointer-events-none absolute right-2 flex items-center justify-center",
558
558
  "data-slot": "dropdown-menu-radio-item-indicator",
559
- children: /* @__PURE__ */ jsxDEV2(MenuPrimitive.RadioItemIndicator, {
560
- children: /* @__PURE__ */ jsxDEV2(CheckIcon, {}, undefined, false, undefined, this)
561
- }, undefined, false, undefined, this)
562
- }, undefined, false, undefined, this),
559
+ children: /* @__PURE__ */ jsx2(MenuPrimitive.RadioItemIndicator, {
560
+ children: /* @__PURE__ */ jsx2(CheckIcon, {})
561
+ })
562
+ }),
563
563
  children
564
564
  ]
565
- }, undefined, true, undefined, this);
565
+ });
566
566
  }
567
567
 
568
568
  // ../../src/components/ui/locale-switcher.tsx
569
569
  import { Languages } from "lucide-react";
570
- import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
570
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
571
571
  var messages = {
572
572
  en: {
573
573
  title: "Switch language",
@@ -587,45 +587,45 @@ var localeMessages = (overrides) => ({
587
587
  var LocaleSwitcher = ({ messages: messages2 }) => {
588
588
  const locale = getLocale();
589
589
  const labels = localeMessages(messages2);
590
- return /* @__PURE__ */ jsxDEV3(DropdownMenu, {
590
+ return /* @__PURE__ */ jsxs2(DropdownMenu, {
591
591
  children: [
592
- /* @__PURE__ */ jsxDEV3(DropdownMenuTrigger, {
593
- render: /* @__PURE__ */ jsxDEV3(Button, {
592
+ /* @__PURE__ */ jsx3(DropdownMenuTrigger, {
593
+ render: /* @__PURE__ */ jsxs2(Button, {
594
594
  variant: "outline",
595
595
  size: "icon",
596
596
  "aria-label": labels.title,
597
597
  children: [
598
- /* @__PURE__ */ jsxDEV3(Languages, {
598
+ /* @__PURE__ */ jsx3(Languages, {
599
599
  className: "size-4"
600
- }, undefined, false, undefined, this),
601
- /* @__PURE__ */ jsxDEV3("span", {
600
+ }),
601
+ /* @__PURE__ */ jsx3("span", {
602
602
  className: "sr-only",
603
603
  children: labels.title
604
- }, undefined, false, undefined, this)
604
+ })
605
605
  ]
606
- }, undefined, true, undefined, this)
607
- }, undefined, false, undefined, this),
608
- /* @__PURE__ */ jsxDEV3(DropdownMenuContent, {
606
+ })
607
+ }),
608
+ /* @__PURE__ */ jsx3(DropdownMenuContent, {
609
609
  className: "w-32",
610
- children: /* @__PURE__ */ jsxDEV3(DropdownMenuGroup, {
610
+ children: /* @__PURE__ */ jsxs2(DropdownMenuGroup, {
611
611
  children: [
612
- /* @__PURE__ */ jsxDEV3(DropdownMenuLabel, {
612
+ /* @__PURE__ */ jsx3(DropdownMenuLabel, {
613
613
  children: labels.title
614
- }, undefined, false, undefined, this),
615
- /* @__PURE__ */ jsxDEV3(DropdownMenuRadioGroup, {
614
+ }),
615
+ /* @__PURE__ */ jsx3(DropdownMenuRadioGroup, {
616
616
  "aria-label": labels.title,
617
617
  value: locale,
618
618
  onValueChange: (v) => setLocale(v),
619
- children: locales.map((l) => /* @__PURE__ */ jsxDEV3(DropdownMenuRadioItem, {
619
+ children: locales.map((l) => /* @__PURE__ */ jsx3(DropdownMenuRadioItem, {
620
620
  value: l,
621
621
  children: labels[l]
622
- }, l, false, undefined, this))
623
- }, undefined, false, undefined, this)
622
+ }, l))
623
+ })
624
624
  ]
625
- }, undefined, true, undefined, this)
626
- }, undefined, false, undefined, this)
625
+ })
626
+ })
627
627
  ]
628
- }, undefined, true, undefined, this);
628
+ });
629
629
  };
630
630
  export {
631
631
  LocaleSwitcher
@@ -19,7 +19,7 @@ function cn(...inputs) {
19
19
  }
20
20
 
21
21
  // ../../src/components/ui/button.tsx
22
- import { jsxDEV } from "react/jsx-dev-runtime";
22
+ import { jsx } from "react/jsx-runtime";
23
23
  var buttonVariants = cva("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", {
24
24
  variants: {
25
25
  variant: {
@@ -52,36 +52,36 @@ function Button({
52
52
  size = "default",
53
53
  ...props
54
54
  }) {
55
- return /* @__PURE__ */ jsxDEV(ButtonPrimitive, {
55
+ return /* @__PURE__ */ jsx(ButtonPrimitive, {
56
56
  "data-slot": "button",
57
57
  className: cn(buttonVariants({ variant, size, className })),
58
58
  ...props
59
- }, undefined, false, undefined, this);
59
+ });
60
60
  }
61
61
 
62
62
  // ../../src/components/ui/label.tsx
63
- import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
63
+ import { jsx as jsx2 } from "react/jsx-runtime";
64
64
  "use client";
65
65
  function Label({ className, ...props }) {
66
- return /* @__PURE__ */ jsxDEV2("label", {
66
+ return /* @__PURE__ */ jsx2("label", {
67
67
  "data-slot": "label",
68
68
  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),
69
69
  ...props
70
- }, undefined, false, undefined, this);
70
+ });
71
71
  }
72
72
 
73
73
  // ../../src/components/ui/select.tsx
74
74
  import { Select as SelectPrimitive } from "@base-ui/react/select";
75
75
  import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from "lucide-react";
76
- import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
76
+ import { jsx as jsx3, jsxs } from "react/jsx-runtime";
77
77
  "use client";
78
78
  var Select = SelectPrimitive.Root;
79
79
  function SelectValue({ className, ...props }) {
80
- return /* @__PURE__ */ jsxDEV3(SelectPrimitive.Value, {
80
+ return /* @__PURE__ */ jsx3(SelectPrimitive.Value, {
81
81
  "data-slot": "select-value",
82
82
  className: cn("flex flex-1 text-left", className),
83
83
  ...props
84
- }, undefined, false, undefined, this);
84
+ });
85
85
  }
86
86
  function SelectTrigger({
87
87
  className,
@@ -89,20 +89,20 @@ function SelectTrigger({
89
89
  children,
90
90
  ...props
91
91
  }) {
92
- return /* @__PURE__ */ jsxDEV3(SelectPrimitive.Trigger, {
92
+ return /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, {
93
93
  "data-slot": "select-trigger",
94
94
  "data-size": size,
95
95
  className: cn("flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none 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 data-placeholder:text-muted-foreground 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 dark:bg-input/30 dark:hover:bg-input/50 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", className),
96
96
  ...props,
97
97
  children: [
98
98
  children,
99
- /* @__PURE__ */ jsxDEV3(SelectPrimitive.Icon, {
100
- render: /* @__PURE__ */ jsxDEV3(ChevronDownIcon, {
99
+ /* @__PURE__ */ jsx3(SelectPrimitive.Icon, {
100
+ render: /* @__PURE__ */ jsx3(ChevronDownIcon, {
101
101
  className: "text-muted-foreground pointer-events-none size-4"
102
- }, undefined, false, undefined, this)
103
- }, undefined, false, undefined, this)
102
+ })
103
+ })
104
104
  ]
105
- }, undefined, true, undefined, this);
105
+ });
106
106
  }
107
107
  function SelectContent({
108
108
  className,
@@ -114,76 +114,76 @@ function SelectContent({
114
114
  alignItemWithTrigger = true,
115
115
  ...props
116
116
  }) {
117
- return /* @__PURE__ */ jsxDEV3(SelectPrimitive.Portal, {
118
- children: /* @__PURE__ */ jsxDEV3(SelectPrimitive.Positioner, {
117
+ return /* @__PURE__ */ jsx3(SelectPrimitive.Portal, {
118
+ children: /* @__PURE__ */ jsx3(SelectPrimitive.Positioner, {
119
119
  side,
120
120
  sideOffset,
121
121
  align,
122
122
  alignOffset,
123
123
  alignItemWithTrigger,
124
124
  className: "isolate z-50",
125
- children: /* @__PURE__ */ jsxDEV3(SelectPrimitive.Popup, {
125
+ children: /* @__PURE__ */ jsxs(SelectPrimitive.Popup, {
126
126
  "data-slot": "select-content",
127
127
  "data-align-trigger": alignItemWithTrigger,
128
128
  className: cn("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
129
129
  ...props,
130
130
  children: [
131
- /* @__PURE__ */ jsxDEV3(SelectScrollUpButton, {}, undefined, false, undefined, this),
132
- /* @__PURE__ */ jsxDEV3(SelectPrimitive.List, {
131
+ /* @__PURE__ */ jsx3(SelectScrollUpButton, {}),
132
+ /* @__PURE__ */ jsx3(SelectPrimitive.List, {
133
133
  children
134
- }, undefined, false, undefined, this),
135
- /* @__PURE__ */ jsxDEV3(SelectScrollDownButton, {}, undefined, false, undefined, this)
134
+ }),
135
+ /* @__PURE__ */ jsx3(SelectScrollDownButton, {})
136
136
  ]
137
- }, undefined, true, undefined, this)
138
- }, undefined, false, undefined, this)
139
- }, undefined, false, undefined, this);
137
+ })
138
+ })
139
+ });
140
140
  }
141
141
  function SelectItem({
142
142
  className,
143
143
  children,
144
144
  ...props
145
145
  }) {
146
- return /* @__PURE__ */ jsxDEV3(SelectPrimitive.Item, {
146
+ return /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
147
147
  "data-slot": "select-item",
148
148
  className: cn("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 focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground 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),
149
149
  ...props,
150
150
  children: [
151
- /* @__PURE__ */ jsxDEV3(SelectPrimitive.ItemText, {
151
+ /* @__PURE__ */ jsx3(SelectPrimitive.ItemText, {
152
152
  className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
153
153
  children
154
- }, undefined, false, undefined, this),
155
- /* @__PURE__ */ jsxDEV3(SelectPrimitive.ItemIndicator, {
156
- render: /* @__PURE__ */ jsxDEV3("span", {
154
+ }),
155
+ /* @__PURE__ */ jsx3(SelectPrimitive.ItemIndicator, {
156
+ render: /* @__PURE__ */ jsx3("span", {
157
157
  className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center"
158
- }, undefined, false, undefined, this),
159
- children: /* @__PURE__ */ jsxDEV3(CheckIcon, {
158
+ }),
159
+ children: /* @__PURE__ */ jsx3(CheckIcon, {
160
160
  className: "pointer-events-none"
161
- }, undefined, false, undefined, this)
162
- }, undefined, false, undefined, this)
161
+ })
162
+ })
163
163
  ]
164
- }, undefined, true, undefined, this);
164
+ });
165
165
  }
166
166
  function SelectScrollUpButton({
167
167
  className,
168
168
  ...props
169
169
  }) {
170
- return /* @__PURE__ */ jsxDEV3(SelectPrimitive.ScrollUpArrow, {
170
+ return /* @__PURE__ */ jsx3(SelectPrimitive.ScrollUpArrow, {
171
171
  "data-slot": "select-scroll-up-button",
172
172
  className: cn("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className),
173
173
  ...props,
174
- children: /* @__PURE__ */ jsxDEV3(ChevronUpIcon, {}, undefined, false, undefined, this)
175
- }, undefined, false, undefined, this);
174
+ children: /* @__PURE__ */ jsx3(ChevronUpIcon, {})
175
+ });
176
176
  }
177
177
  function SelectScrollDownButton({
178
178
  className,
179
179
  ...props
180
180
  }) {
181
- return /* @__PURE__ */ jsxDEV3(SelectPrimitive.ScrollDownArrow, {
181
+ return /* @__PURE__ */ jsx3(SelectPrimitive.ScrollDownArrow, {
182
182
  "data-slot": "select-scroll-down-button",
183
183
  className: cn("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className),
184
184
  ...props,
185
- children: /* @__PURE__ */ jsxDEV3(ChevronDownIcon, {}, undefined, false, undefined, this)
186
- }, undefined, false, undefined, this);
185
+ children: /* @__PURE__ */ jsx3(ChevronDownIcon, {})
186
+ });
187
187
  }
188
188
 
189
189
  // ../../src/paraglide/runtime.js
@@ -615,7 +615,7 @@ function isCustomStrategy(strategy2) {
615
615
  }
616
616
 
617
617
  // ../../src/components/ui/pagination.tsx
618
- import { jsxDEV as jsxDEV4 } from "react/jsx-dev-runtime";
618
+ import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
619
619
  var messages = {
620
620
  en: {
621
621
  pageSize: "Page size",
@@ -659,32 +659,32 @@ function Pagination({
659
659
  const pageSizeId = useId();
660
660
  const canGoBack = page > 0;
661
661
  const canGoForward = page + 1 < pageCount;
662
- return /* @__PURE__ */ jsxDEV4("div", {
662
+ return /* @__PURE__ */ jsxs2("div", {
663
663
  className: cn("flex flex-col gap-3 px-2 sm:flex-row sm:items-center sm:justify-between", compact && "gap-2 px-0 sm:flex-col sm:items-stretch"),
664
664
  children: [
665
- showResults ? /* @__PURE__ */ jsxDEV4("div", {
665
+ showResults ? /* @__PURE__ */ jsxs2("div", {
666
666
  className: "text-muted-foreground flex flex-wrap items-center gap-x-3 gap-y-1 text-sm",
667
667
  children: [
668
- /* @__PURE__ */ jsxDEV4("span", {
668
+ /* @__PURE__ */ jsx4("span", {
669
669
  children: labels.results(totalRows)
670
- }, undefined, false, undefined, this),
671
- selectedRows > 0 ? /* @__PURE__ */ jsxDEV4("span", {
670
+ }),
671
+ selectedRows > 0 ? /* @__PURE__ */ jsx4("span", {
672
672
  children: labels.selectedOf(selectedRows, totalRows)
673
- }, undefined, false, undefined, this) : null
673
+ }) : null
674
674
  ]
675
- }, undefined, true, undefined, this) : null,
676
- /* @__PURE__ */ jsxDEV4("div", {
675
+ }) : null,
676
+ /* @__PURE__ */ jsxs2("div", {
677
677
  className: cn("flex items-center gap-4 sm:justify-end", compact && "flex-wrap justify-between gap-2 sm:justify-between"),
678
678
  children: [
679
- /* @__PURE__ */ jsxDEV4("div", {
679
+ /* @__PURE__ */ jsxs2("div", {
680
680
  className: "flex items-center gap-2",
681
681
  children: [
682
- /* @__PURE__ */ jsxDEV4(Label, {
682
+ /* @__PURE__ */ jsx4(Label, {
683
683
  htmlFor: pageSizeId,
684
684
  className: cn("hidden text-sm sm:block", compact && "block"),
685
685
  children: labels.pageSize
686
- }, undefined, false, undefined, this),
687
- /* @__PURE__ */ jsxDEV4(Select, {
686
+ }),
687
+ /* @__PURE__ */ jsxs2(Select, {
688
688
  items: pageSizes.map((size) => ({
689
689
  label: size.toString(),
690
690
  value: size.toString()
@@ -692,94 +692,94 @@ function Pagination({
692
692
  value: `${pageSize}`,
693
693
  onValueChange: (value) => onPageSizeChange(Number(value)),
694
694
  children: [
695
- /* @__PURE__ */ jsxDEV4(SelectTrigger, {
695
+ /* @__PURE__ */ jsx4(SelectTrigger, {
696
696
  className: "h-8 w-[70px]",
697
697
  id: pageSizeId,
698
- children: /* @__PURE__ */ jsxDEV4(SelectValue, {
698
+ children: /* @__PURE__ */ jsx4(SelectValue, {
699
699
  placeholder: pageSize
700
- }, undefined, false, undefined, this)
701
- }, undefined, false, undefined, this),
702
- /* @__PURE__ */ jsxDEV4(SelectContent, {
700
+ })
701
+ }),
702
+ /* @__PURE__ */ jsx4(SelectContent, {
703
703
  side: "top",
704
- children: pageSizes.map((size) => /* @__PURE__ */ jsxDEV4(SelectItem, {
704
+ children: pageSizes.map((size) => /* @__PURE__ */ jsx4(SelectItem, {
705
705
  value: `${size}`,
706
706
  children: size
707
- }, size, false, undefined, this))
708
- }, undefined, false, undefined, this)
707
+ }, size))
708
+ })
709
709
  ]
710
- }, undefined, true, undefined, this)
710
+ })
711
711
  ]
712
- }, undefined, true, undefined, this),
713
- /* @__PURE__ */ jsxDEV4("div", {
712
+ }),
713
+ /* @__PURE__ */ jsxs2("div", {
714
714
  className: "flex items-center gap-2",
715
715
  children: [
716
- /* @__PURE__ */ jsxDEV4("div", {
716
+ /* @__PURE__ */ jsx4("div", {
717
717
  className: "flex items-center justify-center text-sm font-medium sm:block",
718
718
  children: labels.pageOf(page + 1, pageCount)
719
- }, undefined, false, undefined, this),
720
- /* @__PURE__ */ jsxDEV4("div", {
719
+ }),
720
+ /* @__PURE__ */ jsxs2("div", {
721
721
  className: "flex items-center gap-1",
722
722
  children: [
723
- /* @__PURE__ */ jsxDEV4(Button, {
723
+ /* @__PURE__ */ jsxs2(Button, {
724
724
  className: cn("hidden h-8 w-8 p-0 lg:flex", compact && "!hidden"),
725
725
  disabled: !canGoBack,
726
726
  onClick: () => onPageChange(0),
727
727
  type: "button",
728
728
  children: [
729
- /* @__PURE__ */ jsxDEV4("span", {
729
+ /* @__PURE__ */ jsx4("span", {
730
730
  className: "sr-only",
731
731
  children: labels.goToFirstPage
732
- }, undefined, false, undefined, this),
733
- /* @__PURE__ */ jsxDEV4(ChevronsLeft, {}, undefined, false, undefined, this)
732
+ }),
733
+ /* @__PURE__ */ jsx4(ChevronsLeft, {})
734
734
  ]
735
- }, undefined, true, undefined, this),
736
- /* @__PURE__ */ jsxDEV4(Button, {
735
+ }),
736
+ /* @__PURE__ */ jsxs2(Button, {
737
737
  className: "h-8 w-8 p-0",
738
738
  disabled: !canGoBack,
739
739
  onClick: () => onPageChange(page - 1),
740
740
  type: "button",
741
741
  children: [
742
- /* @__PURE__ */ jsxDEV4("span", {
742
+ /* @__PURE__ */ jsx4("span", {
743
743
  className: "sr-only",
744
744
  children: labels.goToPreviousPage
745
- }, undefined, false, undefined, this),
746
- /* @__PURE__ */ jsxDEV4(ChevronLeft, {}, undefined, false, undefined, this)
745
+ }),
746
+ /* @__PURE__ */ jsx4(ChevronLeft, {})
747
747
  ]
748
- }, undefined, true, undefined, this),
749
- /* @__PURE__ */ jsxDEV4(Button, {
748
+ }),
749
+ /* @__PURE__ */ jsxs2(Button, {
750
750
  className: "h-8 w-8 p-0",
751
751
  disabled: !canGoForward,
752
752
  onClick: () => onPageChange(page + 1),
753
753
  type: "button",
754
754
  children: [
755
- /* @__PURE__ */ jsxDEV4("span", {
755
+ /* @__PURE__ */ jsx4("span", {
756
756
  className: "sr-only",
757
757
  children: labels.goToNextPage
758
- }, undefined, false, undefined, this),
759
- /* @__PURE__ */ jsxDEV4(ChevronRight, {}, undefined, false, undefined, this)
758
+ }),
759
+ /* @__PURE__ */ jsx4(ChevronRight, {})
760
760
  ]
761
- }, undefined, true, undefined, this),
762
- /* @__PURE__ */ jsxDEV4(Button, {
761
+ }),
762
+ /* @__PURE__ */ jsxs2(Button, {
763
763
  className: cn("hidden h-8 w-8 p-0 lg:flex", compact && "!hidden"),
764
764
  disabled: !canGoForward,
765
765
  onClick: () => onPageChange(pageCount - 1),
766
766
  type: "button",
767
767
  children: [
768
- /* @__PURE__ */ jsxDEV4("span", {
768
+ /* @__PURE__ */ jsx4("span", {
769
769
  className: "sr-only",
770
770
  children: labels.goToLastPage
771
- }, undefined, false, undefined, this),
772
- /* @__PURE__ */ jsxDEV4(ChevronsRight, {}, undefined, false, undefined, this)
771
+ }),
772
+ /* @__PURE__ */ jsx4(ChevronsRight, {})
773
773
  ]
774
- }, undefined, true, undefined, this)
774
+ })
775
775
  ]
776
- }, undefined, true, undefined, this)
776
+ })
777
777
  ]
778
- }, undefined, true, undefined, this)
778
+ })
779
779
  ]
780
- }, undefined, true, undefined, this)
780
+ })
781
781
  ]
782
- }, undefined, true, undefined, this);
782
+ });
783
783
  }
784
784
  export {
785
785
  paginationMessages,