@contractspec/lib.ui-kit-web 1.61.0 → 1.62.0

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 (111) hide show
  1. package/dist/browser/ui/alert-dialog.js +9 -4
  2. package/dist/browser/ui/atoms/Pagination/Pagination.js +9 -4
  3. package/dist/browser/ui/atoms/Pagination/index.js +9 -4
  4. package/dist/browser/ui/atoms/SearchInput/SearchInput.js +9 -4
  5. package/dist/browser/ui/atoms/SearchInput/index.js +9 -4
  6. package/dist/browser/ui/button.js +9 -4
  7. package/dist/browser/ui/calendar.js +12 -7
  8. package/dist/browser/ui/carousel.js +20 -15
  9. package/dist/browser/ui/confirm-dialog.js +9 -4
  10. package/dist/browser/ui/context-menu.js +178 -85
  11. package/dist/browser/ui/cta.js +13 -9
  12. package/dist/browser/ui/date-picker.js +17 -12
  13. package/dist/browser/ui/date-range-picker.js +14 -9
  14. package/dist/browser/ui/datetime-picker.js +21 -16
  15. package/dist/browser/ui/empty-state.js +32 -10
  16. package/dist/browser/ui/input-group.js +9 -4
  17. package/dist/browser/ui/input-otp.js +37 -18
  18. package/dist/browser/ui/link.js +6 -4
  19. package/dist/browser/ui/loading-button.js +41 -14
  20. package/dist/browser/ui/marketing/Hero.js +9 -4
  21. package/dist/browser/ui/marketing/PricingTable.js +9 -4
  22. package/dist/browser/ui/marketing/index.js +9 -4
  23. package/dist/browser/ui/molecules/Autocomplete/index.js +15 -10
  24. package/dist/browser/ui/molecules/SearchAndFilter/SearchAndFilter.js +9 -4
  25. package/dist/browser/ui/molecules/SearchAndFilter/index.js +9 -4
  26. package/dist/browser/ui/organisms/ErrorBoundary/ErrorBoundary.js +12 -7
  27. package/dist/browser/ui/organisms/ErrorBoundary/index.js +12 -7
  28. package/dist/browser/ui/organisms/ListPage/ListPage.js +41 -14
  29. package/dist/browser/ui/organisms/ListPage/index.js +41 -14
  30. package/dist/browser/ui/page-header.js +32 -10
  31. package/dist/browser/ui/pagination.js +98 -79
  32. package/dist/browser/ui/resizable.js +6 -9
  33. package/dist/browser/ui/section.js +12 -4
  34. package/dist/browser/ui/sidebar.js +22 -17
  35. package/dist/browser/ui/stack.js +32 -10
  36. package/dist/browser/ui/stat-card-group.js +32 -10
  37. package/dist/browser/ui/stepper.js +32 -10
  38. package/dist/browser/ui/time-picker.js +13 -8
  39. package/dist/browser/ui/toast.js +57 -29
  40. package/dist/browser/ui/toaster.js +60 -32
  41. package/dist/browser/ui/usecases/UseCaseCard.js +41 -14
  42. package/dist/browser/ui/usecases/UserStoryCard.js +32 -10
  43. package/dist/browser/ui/usecases/index.js +41 -14
  44. package/dist/browser/ui/visually-hidden.js +8 -4
  45. package/dist/ui/alert-dialog.js +9 -4
  46. package/dist/ui/atoms/Pagination/Pagination.js +9 -4
  47. package/dist/ui/atoms/Pagination/index.js +9 -4
  48. package/dist/ui/atoms/SearchInput/SearchInput.js +9 -4
  49. package/dist/ui/atoms/SearchInput/index.js +9 -4
  50. package/dist/ui/button.d.ts +2 -6
  51. package/dist/ui/button.d.ts.map +1 -1
  52. package/dist/ui/button.js +9 -4
  53. package/dist/ui/calendar.js +12 -7
  54. package/dist/ui/carousel.js +20 -15
  55. package/dist/ui/confirm-dialog.js +9 -4
  56. package/dist/ui/context-menu.d.ts +26 -22
  57. package/dist/ui/context-menu.d.ts.map +1 -1
  58. package/dist/ui/context-menu.js +178 -85
  59. package/dist/ui/cta.d.ts +2 -8
  60. package/dist/ui/cta.d.ts.map +1 -1
  61. package/dist/ui/cta.js +13 -9
  62. package/dist/ui/date-picker.js +17 -12
  63. package/dist/ui/date-range-picker.js +14 -9
  64. package/dist/ui/datetime-picker.js +21 -16
  65. package/dist/ui/empty-state.js +32 -10
  66. package/dist/ui/input-group.js +9 -4
  67. package/dist/ui/input-otp.d.ts +13 -31
  68. package/dist/ui/input-otp.d.ts.map +1 -1
  69. package/dist/ui/input-otp.js +37 -18
  70. package/dist/ui/link.d.ts +4 -2
  71. package/dist/ui/link.d.ts.map +1 -1
  72. package/dist/ui/link.js +6 -4
  73. package/dist/ui/loading-button.js +41 -14
  74. package/dist/ui/marketing/Hero.js +9 -4
  75. package/dist/ui/marketing/PricingTable.js +9 -4
  76. package/dist/ui/marketing/index.js +9 -4
  77. package/dist/ui/molecules/Autocomplete/index.js +15 -10
  78. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +9 -4
  79. package/dist/ui/molecules/SearchAndFilter/index.js +9 -4
  80. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +12 -7
  81. package/dist/ui/organisms/ErrorBoundary/index.js +12 -7
  82. package/dist/ui/organisms/ListPage/ListPage.js +41 -14
  83. package/dist/ui/organisms/ListPage/index.js +41 -14
  84. package/dist/ui/page-header.js +32 -10
  85. package/dist/ui/pagination.d.ts +11 -22
  86. package/dist/ui/pagination.d.ts.map +1 -1
  87. package/dist/ui/pagination.js +98 -79
  88. package/dist/ui/resizable.d.ts +5 -20
  89. package/dist/ui/resizable.d.ts.map +1 -1
  90. package/dist/ui/resizable.js +6 -9
  91. package/dist/ui/section.d.ts +2 -9
  92. package/dist/ui/section.d.ts.map +1 -1
  93. package/dist/ui/section.js +12 -4
  94. package/dist/ui/sidebar.js +22 -17
  95. package/dist/ui/stack.d.ts +15 -23
  96. package/dist/ui/stack.d.ts.map +1 -1
  97. package/dist/ui/stack.js +32 -10
  98. package/dist/ui/stat-card-group.js +32 -10
  99. package/dist/ui/stepper.js +32 -10
  100. package/dist/ui/time-picker.js +13 -8
  101. package/dist/ui/toast.d.ts +20 -7
  102. package/dist/ui/toast.d.ts.map +1 -1
  103. package/dist/ui/toast.js +57 -29
  104. package/dist/ui/toaster.js +60 -32
  105. package/dist/ui/usecases/UseCaseCard.js +41 -14
  106. package/dist/ui/usecases/UserStoryCard.js +32 -10
  107. package/dist/ui/usecases/index.js +41 -14
  108. package/dist/ui/visually-hidden.d.ts +4 -2
  109. package/dist/ui/visually-hidden.d.ts.map +1 -1
  110. package/dist/ui/visually-hidden.js +8 -4
  111. package/package.json +11 -10
@@ -7,7 +7,6 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
7
7
  });
8
8
 
9
9
  // ui/button.tsx
10
- import * as React from "react";
11
10
  import { Slot } from "@radix-ui/react-slot";
12
11
  import { cva } from "class-variance-authority";
13
12
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
@@ -34,7 +33,14 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
34
33
  size: "default"
35
34
  }
36
35
  });
37
- var Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
36
+ function Button({
37
+ className,
38
+ variant,
39
+ size,
40
+ asChild = false,
41
+ ref,
42
+ ...props
43
+ }) {
38
44
  if (asChild) {
39
45
  return /* @__PURE__ */ jsxDEV(Slot, {
40
46
  "data-slot": "button",
@@ -48,8 +54,7 @@ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...p
48
54
  className: cn(buttonVariants({ variant, size, className })),
49
55
  ...props
50
56
  }, undefined, false, undefined, this);
51
- });
52
- Button.displayName = "Button";
57
+ }
53
58
  // ui/select.tsx
54
59
  import * as SelectPrimitive from "@radix-ui/react-select";
55
60
  import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
@@ -637,7 +642,6 @@ function CollapsibleContent2({
637
642
  }, undefined, false, undefined, this);
638
643
  }
639
644
  // ui/stack.tsx
640
- import * as React2 from "react";
641
645
  import { cva as cva2 } from "class-variance-authority";
642
646
  import { cn as cn6 } from "@contractspec/lib.ui-kit-core/utils";
643
647
  import { jsxDEV as jsxDEV10 } from "react/jsx-dev-runtime";
@@ -673,15 +677,22 @@ var vStackVariants = cva2("flex flex-col", {
673
677
  justify: "start"
674
678
  }
675
679
  });
676
- var VStack = React2.forwardRef(({ className, gap, align, justify, as = "div", ...props }, ref) => {
680
+ function VStack({
681
+ className,
682
+ gap,
683
+ align,
684
+ justify,
685
+ as = "div",
686
+ ref,
687
+ ...props
688
+ }) {
677
689
  const Comp = as;
678
690
  return /* @__PURE__ */ jsxDEV10(Comp, {
679
691
  ref,
680
692
  className: cn6(vStackVariants({ gap, align, justify }), className),
681
693
  ...props
682
694
  }, undefined, false, undefined, this);
683
- });
684
- VStack.displayName = "VStack";
695
+ }
685
696
  var hStackVariants = cva2("flex flex-row", {
686
697
  variants: {
687
698
  gap: {
@@ -721,15 +732,23 @@ var hStackVariants = cva2("flex flex-row", {
721
732
  wrap: "wrap"
722
733
  }
723
734
  });
724
- var HStack = React2.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
735
+ function HStack({
736
+ className,
737
+ gap,
738
+ align,
739
+ justify,
740
+ wrap,
741
+ as = "div",
742
+ ref,
743
+ ...props
744
+ }) {
725
745
  const Comp = as;
726
746
  return /* @__PURE__ */ jsxDEV10(Comp, {
727
747
  ref,
728
748
  className: cn6(hStackVariants({ gap, align, justify, wrap }), className),
729
749
  ...props
730
750
  }, undefined, false, undefined, this);
731
- });
732
- HStack.displayName = "HStack";
751
+ }
733
752
  var boxVariants = cva2("flex flex-row", {
734
753
  variants: {
735
754
  gap: {
@@ -769,15 +788,23 @@ var boxVariants = cva2("flex flex-row", {
769
788
  wrap: "nowrap"
770
789
  }
771
790
  });
772
- var Box = React2.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
791
+ function Box({
792
+ className,
793
+ gap,
794
+ align,
795
+ justify,
796
+ wrap,
797
+ as = "div",
798
+ ref,
799
+ ...props
800
+ }) {
773
801
  const Comp = as;
774
802
  return /* @__PURE__ */ jsxDEV10(Comp, {
775
803
  ref,
776
804
  className: cn6(boxVariants({ gap, align, justify, wrap }), className),
777
805
  ...props
778
806
  }, undefined, false, undefined, this);
779
- });
780
- Box.displayName = "Box";
807
+ }
781
808
  // ui/separator.tsx
782
809
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
783
810
  import { cn as cn7 } from "@contractspec/lib.ui-kit-core/utils";
@@ -7,7 +7,6 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
7
7
  });
8
8
 
9
9
  // ui/button.tsx
10
- import * as React from "react";
11
10
  import { Slot } from "@radix-ui/react-slot";
12
11
  import { cva } from "class-variance-authority";
13
12
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
@@ -34,7 +33,14 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
34
33
  size: "default"
35
34
  }
36
35
  });
37
- var Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
36
+ function Button({
37
+ className,
38
+ variant,
39
+ size,
40
+ asChild = false,
41
+ ref,
42
+ ...props
43
+ }) {
38
44
  if (asChild) {
39
45
  return /* @__PURE__ */ jsxDEV(Slot, {
40
46
  "data-slot": "button",
@@ -48,8 +54,7 @@ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...p
48
54
  className: cn(buttonVariants({ variant, size, className })),
49
55
  ...props
50
56
  }, undefined, false, undefined, this);
51
- });
52
- Button.displayName = "Button";
57
+ }
53
58
  // ui/select.tsx
54
59
  import * as SelectPrimitive from "@radix-ui/react-select";
55
60
  import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
@@ -637,7 +642,6 @@ function CollapsibleContent2({
637
642
  }, undefined, false, undefined, this);
638
643
  }
639
644
  // ui/stack.tsx
640
- import * as React2 from "react";
641
645
  import { cva as cva2 } from "class-variance-authority";
642
646
  import { cn as cn6 } from "@contractspec/lib.ui-kit-core/utils";
643
647
  import { jsxDEV as jsxDEV10 } from "react/jsx-dev-runtime";
@@ -673,15 +677,22 @@ var vStackVariants = cva2("flex flex-col", {
673
677
  justify: "start"
674
678
  }
675
679
  });
676
- var VStack = React2.forwardRef(({ className, gap, align, justify, as = "div", ...props }, ref) => {
680
+ function VStack({
681
+ className,
682
+ gap,
683
+ align,
684
+ justify,
685
+ as = "div",
686
+ ref,
687
+ ...props
688
+ }) {
677
689
  const Comp = as;
678
690
  return /* @__PURE__ */ jsxDEV10(Comp, {
679
691
  ref,
680
692
  className: cn6(vStackVariants({ gap, align, justify }), className),
681
693
  ...props
682
694
  }, undefined, false, undefined, this);
683
- });
684
- VStack.displayName = "VStack";
695
+ }
685
696
  var hStackVariants = cva2("flex flex-row", {
686
697
  variants: {
687
698
  gap: {
@@ -721,15 +732,23 @@ var hStackVariants = cva2("flex flex-row", {
721
732
  wrap: "wrap"
722
733
  }
723
734
  });
724
- var HStack = React2.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
735
+ function HStack({
736
+ className,
737
+ gap,
738
+ align,
739
+ justify,
740
+ wrap,
741
+ as = "div",
742
+ ref,
743
+ ...props
744
+ }) {
725
745
  const Comp = as;
726
746
  return /* @__PURE__ */ jsxDEV10(Comp, {
727
747
  ref,
728
748
  className: cn6(hStackVariants({ gap, align, justify, wrap }), className),
729
749
  ...props
730
750
  }, undefined, false, undefined, this);
731
- });
732
- HStack.displayName = "HStack";
751
+ }
733
752
  var boxVariants = cva2("flex flex-row", {
734
753
  variants: {
735
754
  gap: {
@@ -769,15 +788,23 @@ var boxVariants = cva2("flex flex-row", {
769
788
  wrap: "nowrap"
770
789
  }
771
790
  });
772
- var Box = React2.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
791
+ function Box({
792
+ className,
793
+ gap,
794
+ align,
795
+ justify,
796
+ wrap,
797
+ as = "div",
798
+ ref,
799
+ ...props
800
+ }) {
773
801
  const Comp = as;
774
802
  return /* @__PURE__ */ jsxDEV10(Comp, {
775
803
  ref,
776
804
  className: cn6(boxVariants({ gap, align, justify, wrap }), className),
777
805
  ...props
778
806
  }, undefined, false, undefined, this);
779
- });
780
- Box.displayName = "Box";
807
+ }
781
808
  // ui/separator.tsx
782
809
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
783
810
  import { cn as cn7 } from "@contractspec/lib.ui-kit-core/utils";
@@ -7,7 +7,6 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
7
7
  });
8
8
 
9
9
  // ui/stack.tsx
10
- import * as React from "react";
11
10
  import { cva } from "class-variance-authority";
12
11
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
13
12
  import { jsxDEV } from "react/jsx-dev-runtime";
@@ -43,15 +42,22 @@ var vStackVariants = cva("flex flex-col", {
43
42
  justify: "start"
44
43
  }
45
44
  });
46
- var VStack = React.forwardRef(({ className, gap, align, justify, as = "div", ...props }, ref) => {
45
+ function VStack({
46
+ className,
47
+ gap,
48
+ align,
49
+ justify,
50
+ as = "div",
51
+ ref,
52
+ ...props
53
+ }) {
47
54
  const Comp = as;
48
55
  return /* @__PURE__ */ jsxDEV(Comp, {
49
56
  ref,
50
57
  className: cn(vStackVariants({ gap, align, justify }), className),
51
58
  ...props
52
59
  }, undefined, false, undefined, this);
53
- });
54
- VStack.displayName = "VStack";
60
+ }
55
61
  var hStackVariants = cva("flex flex-row", {
56
62
  variants: {
57
63
  gap: {
@@ -91,15 +97,23 @@ var hStackVariants = cva("flex flex-row", {
91
97
  wrap: "wrap"
92
98
  }
93
99
  });
94
- var HStack = React.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
100
+ function HStack({
101
+ className,
102
+ gap,
103
+ align,
104
+ justify,
105
+ wrap,
106
+ as = "div",
107
+ ref,
108
+ ...props
109
+ }) {
95
110
  const Comp = as;
96
111
  return /* @__PURE__ */ jsxDEV(Comp, {
97
112
  ref,
98
113
  className: cn(hStackVariants({ gap, align, justify, wrap }), className),
99
114
  ...props
100
115
  }, undefined, false, undefined, this);
101
- });
102
- HStack.displayName = "HStack";
116
+ }
103
117
  var boxVariants = cva("flex flex-row", {
104
118
  variants: {
105
119
  gap: {
@@ -139,15 +153,23 @@ var boxVariants = cva("flex flex-row", {
139
153
  wrap: "nowrap"
140
154
  }
141
155
  });
142
- var Box = React.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
156
+ function Box({
157
+ className,
158
+ gap,
159
+ align,
160
+ justify,
161
+ wrap,
162
+ as = "div",
163
+ ref,
164
+ ...props
165
+ }) {
143
166
  const Comp = as;
144
167
  return /* @__PURE__ */ jsxDEV(Comp, {
145
168
  ref,
146
169
  className: cn(boxVariants({ gap, align, justify, wrap }), className),
147
170
  ...props
148
171
  }, undefined, false, undefined, this);
149
- });
150
- Box.displayName = "Box";
172
+ }
151
173
  // ui/page-header.tsx
152
174
  import { cva as cva2 } from "class-variance-authority";
153
175
  import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
@@ -7,7 +7,6 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
7
7
  });
8
8
 
9
9
  // ui/button.tsx
10
- import * as React from "react";
11
10
  import { Slot } from "@radix-ui/react-slot";
12
11
  import { cva } from "class-variance-authority";
13
12
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
@@ -34,7 +33,14 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
34
33
  size: "default"
35
34
  }
36
35
  });
37
- var Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
36
+ function Button({
37
+ className,
38
+ variant,
39
+ size,
40
+ asChild = false,
41
+ ref,
42
+ ...props
43
+ }) {
38
44
  if (asChild) {
39
45
  return /* @__PURE__ */ jsxDEV(Slot, {
40
46
  "data-slot": "button",
@@ -48,103 +54,116 @@ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...p
48
54
  className: cn(buttonVariants({ variant, size, className })),
49
55
  ...props
50
56
  }, undefined, false, undefined, this);
51
- });
52
- Button.displayName = "Button";
57
+ }
53
58
  // ui/pagination.tsx
54
- import * as React2 from "react";
55
59
  import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
56
60
  import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
57
61
  import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
58
- var Pagination = ({
62
+ function Pagination({
59
63
  className,
60
64
  ...props
61
- }) => /* @__PURE__ */ jsxDEV2("nav", {
62
- role: "navigation",
63
- "aria-label": "pagination",
64
- className: cn2("mx-auto flex w-full justify-center", className),
65
- ...props
66
- }, undefined, false, undefined, this);
67
- Pagination.displayName = "Pagination";
68
- var PaginationContent = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV2("ul", {
65
+ }) {
66
+ return /* @__PURE__ */ jsxDEV2("nav", {
67
+ role: "navigation",
68
+ "aria-label": "pagination",
69
+ className: cn2("mx-auto flex w-full justify-center", className),
70
+ ...props
71
+ }, undefined, false, undefined, this);
72
+ }
73
+ function PaginationContent({
74
+ className,
69
75
  ref,
70
- className: cn2("flex flex-row items-center gap-1", className),
71
76
  ...props
72
- }, undefined, false, undefined, this));
73
- PaginationContent.displayName = "PaginationContent";
74
- var PaginationItem = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV2("li", {
77
+ }) {
78
+ return /* @__PURE__ */ jsxDEV2("ul", {
79
+ ref,
80
+ className: cn2("flex flex-row items-center gap-1", className),
81
+ ...props
82
+ }, undefined, false, undefined, this);
83
+ }
84
+ function PaginationItem({
85
+ className,
75
86
  ref,
76
- className: cn2("", className),
77
87
  ...props
78
- }, undefined, false, undefined, this));
79
- PaginationItem.displayName = "PaginationItem";
80
- var PaginationLink = ({
88
+ }) {
89
+ return /* @__PURE__ */ jsxDEV2("li", {
90
+ ref,
91
+ className: cn2("", className),
92
+ ...props
93
+ }, undefined, false, undefined, this);
94
+ }
95
+ function PaginationLink({
81
96
  className,
82
97
  isActive,
83
98
  size = "icon",
84
99
  ...props
85
- }) => /* @__PURE__ */ jsxDEV2("a", {
86
- "aria-current": isActive ? "page" : undefined,
87
- className: cn2(buttonVariants({
88
- variant: isActive ? "outline" : "ghost",
89
- size
90
- }), className),
91
- ...props
92
- }, undefined, false, undefined, this);
93
- PaginationLink.displayName = "PaginationLink";
94
- var PaginationPrevious = ({
100
+ }) {
101
+ return /* @__PURE__ */ jsxDEV2("a", {
102
+ "aria-current": isActive ? "page" : undefined,
103
+ className: cn2(buttonVariants({
104
+ variant: isActive ? "outline" : "ghost",
105
+ size
106
+ }), className),
107
+ ...props
108
+ }, undefined, false, undefined, this);
109
+ }
110
+ function PaginationPrevious({
95
111
  className,
96
112
  ...props
97
- }) => /* @__PURE__ */ jsxDEV2(PaginationLink, {
98
- "aria-label": "Go to previous page",
99
- size: "default",
100
- className: cn2("gap-1 pl-2.5", className),
101
- ...props,
102
- children: [
103
- /* @__PURE__ */ jsxDEV2(ChevronLeft, {
104
- className: "h-4 w-4"
105
- }, undefined, false, undefined, this),
106
- /* @__PURE__ */ jsxDEV2("span", {
107
- children: "Previous"
108
- }, undefined, false, undefined, this)
109
- ]
110
- }, undefined, true, undefined, this);
111
- PaginationPrevious.displayName = "PaginationPrevious";
112
- var PaginationNext = ({
113
+ }) {
114
+ return /* @__PURE__ */ jsxDEV2(PaginationLink, {
115
+ "aria-label": "Go to previous page",
116
+ size: "default",
117
+ className: cn2("gap-1 pl-2.5", className),
118
+ ...props,
119
+ children: [
120
+ /* @__PURE__ */ jsxDEV2(ChevronLeft, {
121
+ className: "h-4 w-4"
122
+ }, undefined, false, undefined, this),
123
+ /* @__PURE__ */ jsxDEV2("span", {
124
+ children: "Previous"
125
+ }, undefined, false, undefined, this)
126
+ ]
127
+ }, undefined, true, undefined, this);
128
+ }
129
+ function PaginationNext({
113
130
  className,
114
131
  ...props
115
- }) => /* @__PURE__ */ jsxDEV2(PaginationLink, {
116
- "aria-label": "Go to next page",
117
- size: "default",
118
- className: cn2("gap-1 pr-2.5", className),
119
- ...props,
120
- children: [
121
- /* @__PURE__ */ jsxDEV2("span", {
122
- children: "Next"
123
- }, undefined, false, undefined, this),
124
- /* @__PURE__ */ jsxDEV2(ChevronRight, {
125
- className: "h-4 w-4"
126
- }, undefined, false, undefined, this)
127
- ]
128
- }, undefined, true, undefined, this);
129
- PaginationNext.displayName = "PaginationNext";
130
- var PaginationEllipsis = ({
132
+ }) {
133
+ return /* @__PURE__ */ jsxDEV2(PaginationLink, {
134
+ "aria-label": "Go to next page",
135
+ size: "default",
136
+ className: cn2("gap-1 pr-2.5", className),
137
+ ...props,
138
+ children: [
139
+ /* @__PURE__ */ jsxDEV2("span", {
140
+ children: "Next"
141
+ }, undefined, false, undefined, this),
142
+ /* @__PURE__ */ jsxDEV2(ChevronRight, {
143
+ className: "h-4 w-4"
144
+ }, undefined, false, undefined, this)
145
+ ]
146
+ }, undefined, true, undefined, this);
147
+ }
148
+ function PaginationEllipsis({
131
149
  className,
132
150
  ...props
133
- }) => /* @__PURE__ */ jsxDEV2("span", {
134
- "aria-hidden": true,
135
- className: cn2("flex h-9 w-9 items-center justify-center", className),
136
- ...props,
137
- children: [
138
- /* @__PURE__ */ jsxDEV2(MoreHorizontal, {
139
- className: "h-4 w-4"
140
- }, undefined, false, undefined, this),
141
- /* @__PURE__ */ jsxDEV2("span", {
142
- className: "sr-only",
143
- children: "More pages"
144
- }, undefined, false, undefined, this)
145
- ]
146
- }, undefined, true, undefined, this);
147
- PaginationEllipsis.displayName = "PaginationEllipsis";
151
+ }) {
152
+ return /* @__PURE__ */ jsxDEV2("span", {
153
+ "aria-hidden": true,
154
+ className: cn2("flex h-9 w-9 items-center justify-center", className),
155
+ ...props,
156
+ children: [
157
+ /* @__PURE__ */ jsxDEV2(MoreHorizontal, {
158
+ className: "h-4 w-4"
159
+ }, undefined, false, undefined, this),
160
+ /* @__PURE__ */ jsxDEV2("span", {
161
+ className: "sr-only",
162
+ children: "More pages"
163
+ }, undefined, false, undefined, this)
164
+ ]
165
+ }, undefined, true, undefined, this);
166
+ }
148
167
  export {
149
168
  PaginationPrevious,
150
169
  PaginationNext,
@@ -8,24 +8,21 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
8
8
 
9
9
  // ui/resizable.tsx
10
10
  import { GripVertical } from "lucide-react";
11
- import * as ResizablePrimitive from "react-resizable-panels";
11
+ import { Group, Panel, Separator } from "react-resizable-panels";
12
12
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
13
13
  import { jsxDEV } from "react/jsx-dev-runtime";
14
14
  "use client";
15
- var ResizablePanelGroup = ({
16
- className,
17
- ...props
18
- }) => /* @__PURE__ */ jsxDEV(ResizablePrimitive.PanelGroup, {
19
- className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
15
+ var ResizablePanelGroup = ({ className, ...props }) => /* @__PURE__ */ jsxDEV(Group, {
16
+ className: cn("flex h-full w-full", className),
20
17
  ...props
21
18
  }, undefined, false, undefined, this);
22
- var ResizablePanel = ResizablePrimitive.Panel;
19
+ var ResizablePanel = Panel;
23
20
  var ResizableHandle = ({
24
21
  withHandle,
25
22
  className,
26
23
  ...props
27
- }) => /* @__PURE__ */ jsxDEV(ResizablePrimitive.PanelResizeHandle, {
28
- className: cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90", className),
24
+ }) => /* @__PURE__ */ jsxDEV(Separator, {
25
+ className: cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden aria-[orientation=vertical]:h-px aria-[orientation=vertical]:w-full aria-[orientation=vertical]:after:left-0 aria-[orientation=vertical]:after:h-1 aria-[orientation=vertical]:after:w-full aria-[orientation=vertical]:after:translate-x-0 aria-[orientation=vertical]:after:-translate-y-1/2 [&[aria-orientation=vertical]>div]:rotate-90", className),
29
26
  ...props,
30
27
  children: withHandle && /* @__PURE__ */ jsxDEV("div", {
31
28
  className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",
@@ -7,7 +7,6 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
7
7
  });
8
8
 
9
9
  // ui/section.tsx
10
- import * as React from "react";
11
10
  import { cva } from "class-variance-authority";
12
11
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
13
12
  import { jsxDEV } from "react/jsx-dev-runtime";
@@ -50,15 +49,24 @@ var sectionVariants = cva("", {
50
49
  text: "lg"
51
50
  }
52
51
  });
53
- var Section = React.forwardRef(({ as = "section", className, width, px, py, tone, text, ...props }, ref) => {
52
+ function Section({
53
+ as = "section",
54
+ className,
55
+ width,
56
+ px,
57
+ py,
58
+ tone,
59
+ text,
60
+ ref,
61
+ ...props
62
+ }) {
54
63
  const Comp = as;
55
64
  return /* @__PURE__ */ jsxDEV(Comp, {
56
65
  ref,
57
66
  className: cn(sectionVariants({ width, px, py, tone, text }), className),
58
67
  ...props
59
68
  }, undefined, false, undefined, this);
60
- });
61
- Section.displayName = "Section";
69
+ }
62
70
  export {
63
71
  sectionVariants,
64
72
  Section