@krak-stack/registry 0.1.27 → 0.1.29

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 (52) hide show
  1. package/dist/components/ui/code-block.js +1 -5
  2. package/dist/components/ui/copy-button.js +1 -5
  3. package/dist/components/ui/data-table.js +239 -242
  4. package/dist/components/ui/editing-locale-switcher.js +1 -5
  5. package/dist/components/ui/effect-form.js +170 -175
  6. package/dist/components/ui/error-component.d.ts +30 -0
  7. package/dist/components/ui/error-component.js +811 -0
  8. package/dist/components/ui/file-picker.js +1 -5
  9. package/dist/components/ui/form.js +113 -118
  10. package/dist/components/ui/google-map.js +1 -5
  11. package/dist/components/ui/icon-input.js +41 -48
  12. package/dist/components/ui/loading.js +1 -5
  13. package/dist/components/ui/locale-switcher.js +1 -5
  14. package/dist/components/ui/pagination.js +3 -7
  15. package/dist/components/ui/search-menu.js +1 -5
  16. package/dist/components/ui/sidebar-layout.js +67 -76
  17. package/dist/components/ui/stats-card.js +1 -5
  18. package/dist/components/ui/theme-switcher.js +4 -8
  19. package/dist/components/ui/virtualized-combobox.js +32 -39
  20. package/dist/lib/docs.js +134 -143
  21. package/dist/lib/docs.server.js +24 -49
  22. package/dist/lib/documentation-toolkit.js +25 -50
  23. package/dist/lib/httpapi-cli.js +7 -7
  24. package/dist/lib/httpapi-client.js +3 -3
  25. package/dist/lib/httpapi-helpers.js +11 -11
  26. package/dist/lib/httpapi-mcp.js +2 -2
  27. package/dist/lib/httpapi-toolkit.js +2 -2
  28. package/dist/lib/query.d.ts +16 -6
  29. package/dist/lib/query.js +17 -8
  30. package/dist/lib/seo.js +2 -2
  31. package/dist/lib/utils.d.ts +1 -2
  32. package/dist/lib/webfetch-toolkit.js +6 -6
  33. package/dist/services/agent/client/index.js +130 -133
  34. package/dist/services/agent/index.d.ts +4 -0
  35. package/dist/services/agent/index.js +1 -1
  36. package/dist/services/agent/schema.d.ts +6 -0
  37. package/dist/services/agent/schema.js +6 -5
  38. package/dist/services/file-extraction/index.js +4 -4
  39. package/dist/services/file-extraction/schema.js +2 -2
  40. package/dist/services/health/index.js +9 -9
  41. package/dist/services/notification/channels/ses/index.js +2 -2
  42. package/dist/services/notification/channels/ses/schema.js +2 -2
  43. package/dist/services/notification/client/index.js +6 -10
  44. package/dist/services/notification/index.js +2 -2
  45. package/dist/services/notification/persistence/drizzle.js +2 -2
  46. package/dist/services/notification/persistence/index.js +15 -15
  47. package/dist/services/notification/persistence/schema.js +12 -12
  48. package/dist/services/notification/public.js +8 -12
  49. package/dist/services/notification/schema.js +2 -2
  50. package/dist/services/s3/index.js +2 -2
  51. package/dist/services/s3/schema.js +2 -2
  52. package/package.json +7 -4
@@ -14,11 +14,7 @@ import { Button as ButtonPrimitive } from "@base-ui/react/button";
14
14
  import { cva } from "class-variance-authority";
15
15
 
16
16
  // ../../src/lib/utils.ts
17
- import { clsx } from "clsx";
18
- import { twMerge } from "tailwind-merge";
19
- function cn(...inputs) {
20
- return twMerge(clsx(inputs));
21
- }
17
+ import { cn } from "cn";
22
18
 
23
19
  // ../../src/components/ui/button.tsx
24
20
  import { jsx } from "react/jsx-runtime";
@@ -76,13 +72,10 @@ function Input({ className, type, ...props }) {
76
72
  });
77
73
  }
78
74
 
79
- // ../../src/components/ui/textarea.tsx
80
- import { jsx as jsx3 } from "react/jsx-runtime";
81
-
82
75
  // ../../src/components/ui/input-group.tsx
83
- import { jsx as jsx4 } from "react/jsx-runtime";
76
+ import { jsx as jsx3 } from "react/jsx-runtime";
84
77
  function InputGroup({ className, ...props }) {
85
- return /* @__PURE__ */ jsx4("div", {
78
+ return /* @__PURE__ */ jsx3("div", {
86
79
  "data-slot": "input-group",
87
80
  role: "group",
88
81
  className: cn("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", className),
@@ -115,7 +108,7 @@ function InputGroupInput({
115
108
  className,
116
109
  ...props
117
110
  }) {
118
- return /* @__PURE__ */ jsx4(Input, {
111
+ return /* @__PURE__ */ jsx3(Input, {
119
112
  "data-slot": "input-group-control",
120
113
  className: cn("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className),
121
114
  ...props
@@ -559,7 +552,7 @@ function isCustomStrategy(strategy2) {
559
552
  }
560
553
 
561
554
  // ../../src/components/ui/virtualized-combobox.tsx
562
- import { jsx as jsx5, jsxs } from "react/jsx-runtime";
555
+ import { jsx as jsx4, jsxs } from "react/jsx-runtime";
563
556
  "use client";
564
557
  var messages = {
565
558
  en: {
@@ -635,19 +628,19 @@ var VirtualizedComboboxList = ({
635
628
  virtualizer.measure();
636
629
  }, [virtualizer]);
637
630
  if (filteredItems.length === 0) {
638
- return /* @__PURE__ */ jsx5("div", {
631
+ return /* @__PURE__ */ jsx4("div", {
639
632
  className: "text-muted-foreground py-6 text-center text-sm",
640
633
  children: emptyLabel
641
634
  });
642
635
  }
643
- return /* @__PURE__ */ jsx5(ComboboxPrimitive.List, {
636
+ return /* @__PURE__ */ jsx4(ComboboxPrimitive.List, {
644
637
  className: "scroll-py-1 overflow-auto overscroll-contain p-1",
645
638
  ref: handleScrollElementRef,
646
639
  style: {
647
640
  height: Math.min(virtualizer.getTotalSize() + 8, 288),
648
641
  maxHeight: "var(--available-height)"
649
642
  },
650
- children: /* @__PURE__ */ jsx5("div", {
643
+ children: /* @__PURE__ */ jsx4("div", {
651
644
  className: "relative w-full",
652
645
  role: "presentation",
653
646
  style: { height: virtualizer.getTotalSize() },
@@ -660,9 +653,9 @@ var VirtualizedComboboxList = ({
660
653
  transform: `translateY(${virtualItem.start}px)`
661
654
  };
662
655
  if (entry.kind === "group") {
663
- return /* @__PURE__ */ jsx5(ComboboxPrimitive.Group, {
656
+ return /* @__PURE__ */ jsx4(ComboboxPrimitive.Group, {
664
657
  className: "contents",
665
- children: /* @__PURE__ */ jsx5(ComboboxPrimitive.GroupLabel, {
658
+ children: /* @__PURE__ */ jsx4(ComboboxPrimitive.GroupLabel, {
666
659
  className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
667
660
  "data-index": virtualItem.index,
668
661
  ref: virtualizer.measureElement,
@@ -681,13 +674,13 @@ var VirtualizedComboboxList = ({
681
674
  style,
682
675
  value: entry.item,
683
676
  children: [
684
- renderItem?.(entry.item) ?? /* @__PURE__ */ jsx5("span", {
677
+ renderItem?.(entry.item) ?? /* @__PURE__ */ jsx4("span", {
685
678
  className: "min-w-0 truncate",
686
679
  children: entry.item.label
687
680
  }),
688
- /* @__PURE__ */ jsx5(ComboboxPrimitive.ItemIndicator, {
681
+ /* @__PURE__ */ jsx4(ComboboxPrimitive.ItemIndicator, {
689
682
  className: "absolute right-2 flex size-4 items-center justify-center",
690
- children: /* @__PURE__ */ jsx5(Check, {})
683
+ children: /* @__PURE__ */ jsx4(Check, {})
691
684
  })
692
685
  ]
693
686
  }, entry.item.value);
@@ -706,8 +699,8 @@ var VirtualizedComboboxContent = ({
706
699
  virtualizerRef
707
700
  }) => {
708
701
  const labels = virtualizedComboboxMessages(messageOverrides);
709
- return /* @__PURE__ */ jsx5(ComboboxPrimitive.Portal, {
710
- children: /* @__PURE__ */ jsx5(ComboboxPrimitive.Positioner, {
702
+ return /* @__PURE__ */ jsx4(ComboboxPrimitive.Portal, {
703
+ children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Positioner, {
711
704
  align: "start",
712
705
  className: "isolate z-50",
713
706
  side: "bottom",
@@ -715,17 +708,17 @@ var VirtualizedComboboxContent = ({
715
708
  children: /* @__PURE__ */ jsxs(ComboboxPrimitive.Popup, {
716
709
  className: cn("relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-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-in-95", contentClassName),
717
710
  children: [
718
- /* @__PURE__ */ jsx5("div", {
711
+ /* @__PURE__ */ jsx4("div", {
719
712
  className: "min-w-0 p-1 pb-0",
720
- children: /* @__PURE__ */ jsx5(InputGroup, {
713
+ children: /* @__PURE__ */ jsx4(InputGroup, {
721
714
  className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
722
- children: /* @__PURE__ */ jsx5(ComboboxPrimitive.Input, {
715
+ children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Input, {
723
716
  placeholder: labels.search,
724
- render: /* @__PURE__ */ jsx5(InputGroupInput, {})
717
+ render: /* @__PURE__ */ jsx4(InputGroupInput, {})
725
718
  })
726
719
  })
727
720
  }),
728
- /* @__PURE__ */ jsx5(VirtualizedComboboxList, {
721
+ /* @__PURE__ */ jsx4(VirtualizedComboboxList, {
729
722
  emptyLabel,
730
723
  groupSelections,
731
724
  itemIndexRef,
@@ -748,20 +741,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
748
741
  type: "button",
749
742
  variant: "outline",
750
743
  children: [
751
- /* @__PURE__ */ jsx5("span", {
744
+ /* @__PURE__ */ jsx4("span", {
752
745
  className: "min-w-0 flex-1 truncate pr-7 text-left",
753
746
  children: label
754
747
  }),
755
- /* @__PURE__ */ jsx5(ChevronsUpDown, {
748
+ /* @__PURE__ */ jsx4(ChevronsUpDown, {
756
749
  className: "text-muted-foreground shrink-0 opacity-70"
757
750
  })
758
751
  ]
759
752
  });
760
- var defaultClear = (label) => /* @__PURE__ */ jsx5(ComboboxPrimitive.Clear, {
753
+ var defaultClear = (label) => /* @__PURE__ */ jsx4(ComboboxPrimitive.Clear, {
761
754
  "aria-label": label,
762
755
  className: "text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 absolute top-1/2 right-7 z-10 flex size-6 -translate-y-1/2 items-center justify-center rounded-sm outline-none focus-visible:border focus-visible:ring-3",
763
756
  type: "button",
764
- children: /* @__PURE__ */ jsx5(X, {
757
+ children: /* @__PURE__ */ jsx4(X, {
765
758
  className: "size-3.5"
766
759
  })
767
760
  });
@@ -800,13 +793,13 @@ var VirtualizedComboboxSingle = (props) => {
800
793
  /* @__PURE__ */ jsxs("div", {
801
794
  className: "relative",
802
795
  children: [
803
- /* @__PURE__ */ jsx5(ComboboxPrimitive.Trigger, {
796
+ /* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
804
797
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
805
798
  }),
806
799
  props.trigger ? null : defaultClear(labels.clear)
807
800
  ]
808
801
  }),
809
- /* @__PURE__ */ jsx5(VirtualizedComboboxContent, {
802
+ /* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
810
803
  ...props,
811
804
  groupSelections: false,
812
805
  itemIndexRef,
@@ -842,13 +835,13 @@ var VirtualizedComboboxMultiple = (props) => {
842
835
  /* @__PURE__ */ jsxs("div", {
843
836
  className: "relative",
844
837
  children: [
845
- /* @__PURE__ */ jsx5(ComboboxPrimitive.Trigger, {
838
+ /* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
846
839
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
847
840
  }),
848
841
  props.trigger ? null : defaultClear(labels.clear)
849
842
  ]
850
843
  }),
851
- /* @__PURE__ */ jsx5(VirtualizedComboboxContent, {
844
+ /* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
852
845
  ...props,
853
846
  groupSelections: true,
854
847
  itemIndexRef,
@@ -859,13 +852,13 @@ var VirtualizedComboboxMultiple = (props) => {
859
852
  });
860
853
  };
861
854
  function VirtualizedCombobox(props) {
862
- return props.multiple ? /* @__PURE__ */ jsx5(VirtualizedComboboxMultiple, {
855
+ return props.multiple ? /* @__PURE__ */ jsx4(VirtualizedComboboxMultiple, {
863
856
  ...props
864
- }) : /* @__PURE__ */ jsx5(VirtualizedComboboxSingle, {
857
+ }) : /* @__PURE__ */ jsx4(VirtualizedComboboxSingle, {
865
858
  ...props
866
859
  });
867
860
  }
868
861
  export {
869
- virtualizedComboboxMessages,
870
- VirtualizedCombobox
862
+ VirtualizedCombobox,
863
+ virtualizedComboboxMessages
871
864
  };