@krak-stack/registry 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,28 +9,28 @@ function cn(...inputs) {
9
9
  }
10
10
 
11
11
  // ../../src/components/ui/label.tsx
12
- import { jsxDEV } from "react/jsx-dev-runtime";
12
+ import { jsx } from "react/jsx-runtime";
13
13
  "use client";
14
14
  function Label({ className, ...props }) {
15
- return /* @__PURE__ */ jsxDEV("label", {
15
+ return /* @__PURE__ */ jsx("label", {
16
16
  "data-slot": "label",
17
17
  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),
18
18
  ...props
19
- }, undefined, false, undefined, this);
19
+ });
20
20
  }
21
21
 
22
22
  // ../../src/components/ui/select.tsx
23
23
  import { Select as SelectPrimitive } from "@base-ui/react/select";
24
24
  import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from "lucide-react";
25
- import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
25
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
26
26
  "use client";
27
27
  var Select = SelectPrimitive.Root;
28
28
  function SelectValue({ className, ...props }) {
29
- return /* @__PURE__ */ jsxDEV2(SelectPrimitive.Value, {
29
+ return /* @__PURE__ */ jsx2(SelectPrimitive.Value, {
30
30
  "data-slot": "select-value",
31
31
  className: cn("flex flex-1 text-left", className),
32
32
  ...props
33
- }, undefined, false, undefined, this);
33
+ });
34
34
  }
35
35
  function SelectTrigger({
36
36
  className,
@@ -38,20 +38,20 @@ function SelectTrigger({
38
38
  children,
39
39
  ...props
40
40
  }) {
41
- return /* @__PURE__ */ jsxDEV2(SelectPrimitive.Trigger, {
41
+ return /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, {
42
42
  "data-slot": "select-trigger",
43
43
  "data-size": size,
44
44
  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),
45
45
  ...props,
46
46
  children: [
47
47
  children,
48
- /* @__PURE__ */ jsxDEV2(SelectPrimitive.Icon, {
49
- render: /* @__PURE__ */ jsxDEV2(ChevronDownIcon, {
48
+ /* @__PURE__ */ jsx2(SelectPrimitive.Icon, {
49
+ render: /* @__PURE__ */ jsx2(ChevronDownIcon, {
50
50
  className: "text-muted-foreground pointer-events-none size-4"
51
- }, undefined, false, undefined, this)
52
- }, undefined, false, undefined, this)
51
+ })
52
+ })
53
53
  ]
54
- }, undefined, true, undefined, this);
54
+ });
55
55
  }
56
56
  function SelectContent({
57
57
  className,
@@ -63,76 +63,76 @@ function SelectContent({
63
63
  alignItemWithTrigger = true,
64
64
  ...props
65
65
  }) {
66
- return /* @__PURE__ */ jsxDEV2(SelectPrimitive.Portal, {
67
- children: /* @__PURE__ */ jsxDEV2(SelectPrimitive.Positioner, {
66
+ return /* @__PURE__ */ jsx2(SelectPrimitive.Portal, {
67
+ children: /* @__PURE__ */ jsx2(SelectPrimitive.Positioner, {
68
68
  side,
69
69
  sideOffset,
70
70
  align,
71
71
  alignOffset,
72
72
  alignItemWithTrigger,
73
73
  className: "isolate z-50",
74
- children: /* @__PURE__ */ jsxDEV2(SelectPrimitive.Popup, {
74
+ children: /* @__PURE__ */ jsxs(SelectPrimitive.Popup, {
75
75
  "data-slot": "select-content",
76
76
  "data-align-trigger": alignItemWithTrigger,
77
77
  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),
78
78
  ...props,
79
79
  children: [
80
- /* @__PURE__ */ jsxDEV2(SelectScrollUpButton, {}, undefined, false, undefined, this),
81
- /* @__PURE__ */ jsxDEV2(SelectPrimitive.List, {
80
+ /* @__PURE__ */ jsx2(SelectScrollUpButton, {}),
81
+ /* @__PURE__ */ jsx2(SelectPrimitive.List, {
82
82
  children
83
- }, undefined, false, undefined, this),
84
- /* @__PURE__ */ jsxDEV2(SelectScrollDownButton, {}, undefined, false, undefined, this)
83
+ }),
84
+ /* @__PURE__ */ jsx2(SelectScrollDownButton, {})
85
85
  ]
86
- }, undefined, true, undefined, this)
87
- }, undefined, false, undefined, this)
88
- }, undefined, false, undefined, this);
86
+ })
87
+ })
88
+ });
89
89
  }
90
90
  function SelectItem({
91
91
  className,
92
92
  children,
93
93
  ...props
94
94
  }) {
95
- return /* @__PURE__ */ jsxDEV2(SelectPrimitive.Item, {
95
+ return /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
96
96
  "data-slot": "select-item",
97
97
  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),
98
98
  ...props,
99
99
  children: [
100
- /* @__PURE__ */ jsxDEV2(SelectPrimitive.ItemText, {
100
+ /* @__PURE__ */ jsx2(SelectPrimitive.ItemText, {
101
101
  className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
102
102
  children
103
- }, undefined, false, undefined, this),
104
- /* @__PURE__ */ jsxDEV2(SelectPrimitive.ItemIndicator, {
105
- render: /* @__PURE__ */ jsxDEV2("span", {
103
+ }),
104
+ /* @__PURE__ */ jsx2(SelectPrimitive.ItemIndicator, {
105
+ render: /* @__PURE__ */ jsx2("span", {
106
106
  className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center"
107
- }, undefined, false, undefined, this),
108
- children: /* @__PURE__ */ jsxDEV2(CheckIcon, {
107
+ }),
108
+ children: /* @__PURE__ */ jsx2(CheckIcon, {
109
109
  className: "pointer-events-none"
110
- }, undefined, false, undefined, this)
111
- }, undefined, false, undefined, this)
110
+ })
111
+ })
112
112
  ]
113
- }, undefined, true, undefined, this);
113
+ });
114
114
  }
115
115
  function SelectScrollUpButton({
116
116
  className,
117
117
  ...props
118
118
  }) {
119
- return /* @__PURE__ */ jsxDEV2(SelectPrimitive.ScrollUpArrow, {
119
+ return /* @__PURE__ */ jsx2(SelectPrimitive.ScrollUpArrow, {
120
120
  "data-slot": "select-scroll-up-button",
121
121
  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),
122
122
  ...props,
123
- children: /* @__PURE__ */ jsxDEV2(ChevronUpIcon, {}, undefined, false, undefined, this)
124
- }, undefined, false, undefined, this);
123
+ children: /* @__PURE__ */ jsx2(ChevronUpIcon, {})
124
+ });
125
125
  }
126
126
  function SelectScrollDownButton({
127
127
  className,
128
128
  ...props
129
129
  }) {
130
- return /* @__PURE__ */ jsxDEV2(SelectPrimitive.ScrollDownArrow, {
130
+ return /* @__PURE__ */ jsx2(SelectPrimitive.ScrollDownArrow, {
131
131
  "data-slot": "select-scroll-down-button",
132
132
  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),
133
133
  ...props,
134
- children: /* @__PURE__ */ jsxDEV2(ChevronDownIcon, {}, undefined, false, undefined, this)
135
- }, undefined, false, undefined, this);
134
+ children: /* @__PURE__ */ jsx2(ChevronDownIcon, {})
135
+ });
136
136
  }
137
137
 
138
138
  // ../../src/paraglide/runtime.js
@@ -564,7 +564,7 @@ function isCustomStrategy(strategy2) {
564
564
  }
565
565
 
566
566
  // ../../src/components/ui/editing-locale-switcher.tsx
567
- import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
567
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
568
568
  var messages = {
569
569
  en: { label: "Editing", en: "English", fr: "French" },
570
570
  fr: { label: "Modification", en: "Anglais", fr: "Français" }
@@ -583,7 +583,7 @@ function EditingLocaleSwitcher({
583
583
  { value: "en", label: labels.en },
584
584
  { value: "fr", label: labels.fr }
585
585
  ];
586
- return /* @__PURE__ */ jsxDEV3(Select, {
586
+ return /* @__PURE__ */ jsxs2(Select, {
587
587
  items: localeOptions,
588
588
  value,
589
589
  onValueChange: (nextValue) => {
@@ -592,34 +592,34 @@ function EditingLocaleSwitcher({
592
592
  }
593
593
  },
594
594
  children: [
595
- /* @__PURE__ */ jsxDEV3(SelectTrigger, {
595
+ /* @__PURE__ */ jsxs2(SelectTrigger, {
596
596
  id: "editing-locale",
597
597
  className: "w-full sm:w-fit",
598
598
  children: [
599
- /* @__PURE__ */ jsxDEV3(Label, {
599
+ /* @__PURE__ */ jsxs2(Label, {
600
600
  htmlFor: "editing-locale",
601
601
  className: "text-muted-foreground text-sm",
602
602
  children: [
603
- /* @__PURE__ */ jsxDEV3(SquarePen, {
603
+ /* @__PURE__ */ jsx3(SquarePen, {
604
604
  className: "size-4 sm:hidden"
605
- }, undefined, false, undefined, this),
606
- /* @__PURE__ */ jsxDEV3("div", {
605
+ }),
606
+ /* @__PURE__ */ jsx3("div", {
607
607
  className: "sr-only sm:not-sr-only",
608
608
  children: labels.label
609
- }, undefined, false, undefined, this)
609
+ })
610
610
  ]
611
- }, undefined, true, undefined, this),
612
- /* @__PURE__ */ jsxDEV3(SelectValue, {}, undefined, false, undefined, this)
611
+ }),
612
+ /* @__PURE__ */ jsx3(SelectValue, {})
613
613
  ]
614
- }, undefined, true, undefined, this),
615
- /* @__PURE__ */ jsxDEV3(SelectContent, {
616
- children: localeOptions.map(({ value: value2, label }) => /* @__PURE__ */ jsxDEV3(SelectItem, {
614
+ }),
615
+ /* @__PURE__ */ jsx3(SelectContent, {
616
+ children: localeOptions.map(({ value: value2, label }) => /* @__PURE__ */ jsx3(SelectItem, {
617
617
  value: value2,
618
618
  children: label
619
- }, value2, false, undefined, this))
620
- }, undefined, false, undefined, this)
619
+ }, value2))
620
+ })
621
621
  ]
622
- }, undefined, true, undefined, this);
622
+ });
623
623
  }
624
624
  export {
625
625
  EditingLocaleSwitcher