@contractspec/lib.ui-kit-web 1.60.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
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/button.tsx
5
- import * as React from "react";
6
5
  import { Slot } from "@radix-ui/react-slot";
7
6
  import { cva } from "class-variance-authority";
8
7
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
@@ -29,7 +28,14 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
29
28
  size: "default"
30
29
  }
31
30
  });
32
- var Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
31
+ function Button({
32
+ className,
33
+ variant,
34
+ size,
35
+ asChild = false,
36
+ ref,
37
+ ...props
38
+ }) {
33
39
  if (asChild) {
34
40
  return /* @__PURE__ */ jsxDEV(Slot, {
35
41
  "data-slot": "button",
@@ -43,8 +49,7 @@ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...p
43
49
  className: cn(buttonVariants({ variant, size, className })),
44
50
  ...props
45
51
  }, undefined, false, undefined, this);
46
- });
47
- Button.displayName = "Button";
52
+ }
48
53
  // ui/select.tsx
49
54
  import * as SelectPrimitive from "@radix-ui/react-select";
50
55
  import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
@@ -632,7 +637,6 @@ function CollapsibleContent2({
632
637
  }, undefined, false, undefined, this);
633
638
  }
634
639
  // ui/stack.tsx
635
- import * as React2 from "react";
636
640
  import { cva as cva2 } from "class-variance-authority";
637
641
  import { cn as cn6 } from "@contractspec/lib.ui-kit-core/utils";
638
642
  import { jsxDEV as jsxDEV10 } from "react/jsx-dev-runtime";
@@ -668,15 +672,22 @@ var vStackVariants = cva2("flex flex-col", {
668
672
  justify: "start"
669
673
  }
670
674
  });
671
- var VStack = React2.forwardRef(({ className, gap, align, justify, as = "div", ...props }, ref) => {
675
+ function VStack({
676
+ className,
677
+ gap,
678
+ align,
679
+ justify,
680
+ as = "div",
681
+ ref,
682
+ ...props
683
+ }) {
672
684
  const Comp = as;
673
685
  return /* @__PURE__ */ jsxDEV10(Comp, {
674
686
  ref,
675
687
  className: cn6(vStackVariants({ gap, align, justify }), className),
676
688
  ...props
677
689
  }, undefined, false, undefined, this);
678
- });
679
- VStack.displayName = "VStack";
690
+ }
680
691
  var hStackVariants = cva2("flex flex-row", {
681
692
  variants: {
682
693
  gap: {
@@ -716,15 +727,23 @@ var hStackVariants = cva2("flex flex-row", {
716
727
  wrap: "wrap"
717
728
  }
718
729
  });
719
- var HStack = React2.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
730
+ function HStack({
731
+ className,
732
+ gap,
733
+ align,
734
+ justify,
735
+ wrap,
736
+ as = "div",
737
+ ref,
738
+ ...props
739
+ }) {
720
740
  const Comp = as;
721
741
  return /* @__PURE__ */ jsxDEV10(Comp, {
722
742
  ref,
723
743
  className: cn6(hStackVariants({ gap, align, justify, wrap }), className),
724
744
  ...props
725
745
  }, undefined, false, undefined, this);
726
- });
727
- HStack.displayName = "HStack";
746
+ }
728
747
  var boxVariants = cva2("flex flex-row", {
729
748
  variants: {
730
749
  gap: {
@@ -764,15 +783,23 @@ var boxVariants = cva2("flex flex-row", {
764
783
  wrap: "nowrap"
765
784
  }
766
785
  });
767
- var Box = React2.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
786
+ function Box({
787
+ className,
788
+ gap,
789
+ align,
790
+ justify,
791
+ wrap,
792
+ as = "div",
793
+ ref,
794
+ ...props
795
+ }) {
768
796
  const Comp = as;
769
797
  return /* @__PURE__ */ jsxDEV10(Comp, {
770
798
  ref,
771
799
  className: cn6(boxVariants({ gap, align, justify, wrap }), className),
772
800
  ...props
773
801
  }, undefined, false, undefined, this);
774
- });
775
- Box.displayName = "Box";
802
+ }
776
803
  // ui/separator.tsx
777
804
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
778
805
  import { cn as cn7 } from "@contractspec/lib.ui-kit-core/utils";
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/stack.tsx
5
- import * as React from "react";
6
5
  import { cva } from "class-variance-authority";
7
6
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
8
7
  import { jsxDEV } from "react/jsx-dev-runtime";
@@ -38,15 +37,22 @@ var vStackVariants = cva("flex flex-col", {
38
37
  justify: "start"
39
38
  }
40
39
  });
41
- var VStack = React.forwardRef(({ className, gap, align, justify, as = "div", ...props }, ref) => {
40
+ function VStack({
41
+ className,
42
+ gap,
43
+ align,
44
+ justify,
45
+ as = "div",
46
+ ref,
47
+ ...props
48
+ }) {
42
49
  const Comp = as;
43
50
  return /* @__PURE__ */ jsxDEV(Comp, {
44
51
  ref,
45
52
  className: cn(vStackVariants({ gap, align, justify }), className),
46
53
  ...props
47
54
  }, undefined, false, undefined, this);
48
- });
49
- VStack.displayName = "VStack";
55
+ }
50
56
  var hStackVariants = cva("flex flex-row", {
51
57
  variants: {
52
58
  gap: {
@@ -86,15 +92,23 @@ var hStackVariants = cva("flex flex-row", {
86
92
  wrap: "wrap"
87
93
  }
88
94
  });
89
- var HStack = React.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
95
+ function HStack({
96
+ className,
97
+ gap,
98
+ align,
99
+ justify,
100
+ wrap,
101
+ as = "div",
102
+ ref,
103
+ ...props
104
+ }) {
90
105
  const Comp = as;
91
106
  return /* @__PURE__ */ jsxDEV(Comp, {
92
107
  ref,
93
108
  className: cn(hStackVariants({ gap, align, justify, wrap }), className),
94
109
  ...props
95
110
  }, undefined, false, undefined, this);
96
- });
97
- HStack.displayName = "HStack";
111
+ }
98
112
  var boxVariants = cva("flex flex-row", {
99
113
  variants: {
100
114
  gap: {
@@ -134,15 +148,23 @@ var boxVariants = cva("flex flex-row", {
134
148
  wrap: "nowrap"
135
149
  }
136
150
  });
137
- var Box = React.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
151
+ function Box({
152
+ className,
153
+ gap,
154
+ align,
155
+ justify,
156
+ wrap,
157
+ as = "div",
158
+ ref,
159
+ ...props
160
+ }) {
138
161
  const Comp = as;
139
162
  return /* @__PURE__ */ jsxDEV(Comp, {
140
163
  ref,
141
164
  className: cn(boxVariants({ gap, align, justify, wrap }), className),
142
165
  ...props
143
166
  }, undefined, false, undefined, this);
144
- });
145
- Box.displayName = "Box";
167
+ }
146
168
  // ui/page-header.tsx
147
169
  import { cva as cva2 } from "class-variance-authority";
148
170
  import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
@@ -1,29 +1,18 @@
1
1
  import * as React from 'react';
2
2
  import { type ButtonProps } from './button';
3
- declare const Pagination: {
4
- ({ className, ...props }: React.ComponentPropsWithoutRef<"nav">): import("react/jsx-runtime").JSX.Element;
5
- displayName: string;
6
- };
7
- declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
8
- declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
3
+ declare function Pagination({ className, ...props }: React.ComponentPropsWithoutRef<'nav'>): import("react/jsx-runtime").JSX.Element;
4
+ declare function PaginationContent({ className, ref, ...props }: React.ComponentPropsWithoutRef<'ul'> & {
5
+ ref?: React.Ref<HTMLUListElement>;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ declare function PaginationItem({ className, ref, ...props }: React.ComponentPropsWithoutRef<'li'> & {
8
+ ref?: React.Ref<HTMLLIElement>;
9
+ }): import("react/jsx-runtime").JSX.Element;
9
10
  type PaginationLinkProps = {
10
11
  isActive?: boolean;
11
12
  } & Pick<ButtonProps, 'size'> & React.ComponentPropsWithoutRef<'a'>;
12
- declare const PaginationLink: {
13
- ({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
14
- displayName: string;
15
- };
16
- declare const PaginationPrevious: {
17
- ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
18
- displayName: string;
19
- };
20
- declare const PaginationNext: {
21
- ({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
22
- displayName: string;
23
- };
24
- declare const PaginationEllipsis: {
25
- ({ className, ...props }: React.ComponentPropsWithoutRef<"span">): import("react/jsx-runtime").JSX.Element;
26
- displayName: string;
27
- };
13
+ declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
14
+ declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
15
+ declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
16
+ declare function PaginationEllipsis({ className, ...props }: React.ComponentPropsWithoutRef<'span'>): import("react/jsx-runtime").JSX.Element;
28
17
  export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, };
29
18
  //# sourceMappingURL=pagination.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../ui/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,UAAU,CAAC;AAE5D,QAAA,MAAM,UAAU;8BAGb,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;;CAOvC,CAAC;AAGF,QAAA,MAAM,iBAAiB,yKASrB,CAAC;AAGH,QAAA,MAAM,cAAc,kKAKlB,CAAC;AAGH,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,GAC3B,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAEtC,QAAA,MAAM,cAAc;8CAKjB,mBAAmB;;CAYrB,CAAC;AAGF,QAAA,MAAM,kBAAkB;8BAGrB,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC;;CAU7C,CAAC;AAGF,QAAA,MAAM,cAAc;8BAGjB,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC;;CAU7C,CAAC;AAGF,QAAA,MAAM,kBAAkB;8BAGrB,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC;;CASxC,CAAC;AAGF,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,kBAAkB,GACnB,CAAC"}
1
+ {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../ui/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,UAAU,CAAC;AAE5D,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,2CASvC;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,GAAG;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;CACnC,2CAQA;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,GAAG;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;CAChC,2CAEA;AAED,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,GAC3B,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAEtC,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,IAAa,EACb,GAAG,KAAK,EACT,EAAE,mBAAmB,2CAcrB;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,2CAY7C;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,2CAY7C;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,2CAWxC;AAED,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,kBAAkB,GACnB,CAAC"}
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/button.tsx
5
- import * as React from "react";
6
5
  import { Slot } from "@radix-ui/react-slot";
7
6
  import { cva } from "class-variance-authority";
8
7
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
@@ -29,7 +28,14 @@ var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespa
29
28
  size: "default"
30
29
  }
31
30
  });
32
- var Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
31
+ function Button({
32
+ className,
33
+ variant,
34
+ size,
35
+ asChild = false,
36
+ ref,
37
+ ...props
38
+ }) {
33
39
  if (asChild) {
34
40
  return /* @__PURE__ */ jsxDEV(Slot, {
35
41
  "data-slot": "button",
@@ -43,103 +49,116 @@ var Button = React.forwardRef(({ className, variant, size, asChild = false, ...p
43
49
  className: cn(buttonVariants({ variant, size, className })),
44
50
  ...props
45
51
  }, undefined, false, undefined, this);
46
- });
47
- Button.displayName = "Button";
52
+ }
48
53
  // ui/pagination.tsx
49
- import * as React2 from "react";
50
54
  import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
51
55
  import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
52
56
  import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
53
- var Pagination = ({
57
+ function Pagination({
54
58
  className,
55
59
  ...props
56
- }) => /* @__PURE__ */ jsxDEV2("nav", {
57
- role: "navigation",
58
- "aria-label": "pagination",
59
- className: cn2("mx-auto flex w-full justify-center", className),
60
- ...props
61
- }, undefined, false, undefined, this);
62
- Pagination.displayName = "Pagination";
63
- var PaginationContent = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV2("ul", {
60
+ }) {
61
+ return /* @__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
+ }
68
+ function PaginationContent({
69
+ className,
64
70
  ref,
65
- className: cn2("flex flex-row items-center gap-1", className),
66
71
  ...props
67
- }, undefined, false, undefined, this));
68
- PaginationContent.displayName = "PaginationContent";
69
- var PaginationItem = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV2("li", {
72
+ }) {
73
+ return /* @__PURE__ */ jsxDEV2("ul", {
74
+ ref,
75
+ className: cn2("flex flex-row items-center gap-1", className),
76
+ ...props
77
+ }, undefined, false, undefined, this);
78
+ }
79
+ function PaginationItem({
80
+ className,
70
81
  ref,
71
- className: cn2("", className),
72
82
  ...props
73
- }, undefined, false, undefined, this));
74
- PaginationItem.displayName = "PaginationItem";
75
- var PaginationLink = ({
83
+ }) {
84
+ return /* @__PURE__ */ jsxDEV2("li", {
85
+ ref,
86
+ className: cn2("", className),
87
+ ...props
88
+ }, undefined, false, undefined, this);
89
+ }
90
+ function PaginationLink({
76
91
  className,
77
92
  isActive,
78
93
  size = "icon",
79
94
  ...props
80
- }) => /* @__PURE__ */ jsxDEV2("a", {
81
- "aria-current": isActive ? "page" : undefined,
82
- className: cn2(buttonVariants({
83
- variant: isActive ? "outline" : "ghost",
84
- size
85
- }), className),
86
- ...props
87
- }, undefined, false, undefined, this);
88
- PaginationLink.displayName = "PaginationLink";
89
- var PaginationPrevious = ({
95
+ }) {
96
+ return /* @__PURE__ */ jsxDEV2("a", {
97
+ "aria-current": isActive ? "page" : undefined,
98
+ className: cn2(buttonVariants({
99
+ variant: isActive ? "outline" : "ghost",
100
+ size
101
+ }), className),
102
+ ...props
103
+ }, undefined, false, undefined, this);
104
+ }
105
+ function PaginationPrevious({
90
106
  className,
91
107
  ...props
92
- }) => /* @__PURE__ */ jsxDEV2(PaginationLink, {
93
- "aria-label": "Go to previous page",
94
- size: "default",
95
- className: cn2("gap-1 pl-2.5", className),
96
- ...props,
97
- children: [
98
- /* @__PURE__ */ jsxDEV2(ChevronLeft, {
99
- className: "h-4 w-4"
100
- }, undefined, false, undefined, this),
101
- /* @__PURE__ */ jsxDEV2("span", {
102
- children: "Previous"
103
- }, undefined, false, undefined, this)
104
- ]
105
- }, undefined, true, undefined, this);
106
- PaginationPrevious.displayName = "PaginationPrevious";
107
- var PaginationNext = ({
108
+ }) {
109
+ return /* @__PURE__ */ jsxDEV2(PaginationLink, {
110
+ "aria-label": "Go to previous page",
111
+ size: "default",
112
+ className: cn2("gap-1 pl-2.5", className),
113
+ ...props,
114
+ children: [
115
+ /* @__PURE__ */ jsxDEV2(ChevronLeft, {
116
+ className: "h-4 w-4"
117
+ }, undefined, false, undefined, this),
118
+ /* @__PURE__ */ jsxDEV2("span", {
119
+ children: "Previous"
120
+ }, undefined, false, undefined, this)
121
+ ]
122
+ }, undefined, true, undefined, this);
123
+ }
124
+ function PaginationNext({
108
125
  className,
109
126
  ...props
110
- }) => /* @__PURE__ */ jsxDEV2(PaginationLink, {
111
- "aria-label": "Go to next page",
112
- size: "default",
113
- className: cn2("gap-1 pr-2.5", className),
114
- ...props,
115
- children: [
116
- /* @__PURE__ */ jsxDEV2("span", {
117
- children: "Next"
118
- }, undefined, false, undefined, this),
119
- /* @__PURE__ */ jsxDEV2(ChevronRight, {
120
- className: "h-4 w-4"
121
- }, undefined, false, undefined, this)
122
- ]
123
- }, undefined, true, undefined, this);
124
- PaginationNext.displayName = "PaginationNext";
125
- var PaginationEllipsis = ({
127
+ }) {
128
+ return /* @__PURE__ */ jsxDEV2(PaginationLink, {
129
+ "aria-label": "Go to next page",
130
+ size: "default",
131
+ className: cn2("gap-1 pr-2.5", className),
132
+ ...props,
133
+ children: [
134
+ /* @__PURE__ */ jsxDEV2("span", {
135
+ children: "Next"
136
+ }, undefined, false, undefined, this),
137
+ /* @__PURE__ */ jsxDEV2(ChevronRight, {
138
+ className: "h-4 w-4"
139
+ }, undefined, false, undefined, this)
140
+ ]
141
+ }, undefined, true, undefined, this);
142
+ }
143
+ function PaginationEllipsis({
126
144
  className,
127
145
  ...props
128
- }) => /* @__PURE__ */ jsxDEV2("span", {
129
- "aria-hidden": true,
130
- className: cn2("flex h-9 w-9 items-center justify-center", className),
131
- ...props,
132
- children: [
133
- /* @__PURE__ */ jsxDEV2(MoreHorizontal, {
134
- className: "h-4 w-4"
135
- }, undefined, false, undefined, this),
136
- /* @__PURE__ */ jsxDEV2("span", {
137
- className: "sr-only",
138
- children: "More pages"
139
- }, undefined, false, undefined, this)
140
- ]
141
- }, undefined, true, undefined, this);
142
- PaginationEllipsis.displayName = "PaginationEllipsis";
146
+ }) {
147
+ return /* @__PURE__ */ jsxDEV2("span", {
148
+ "aria-hidden": true,
149
+ className: cn2("flex h-9 w-9 items-center justify-center", className),
150
+ ...props,
151
+ children: [
152
+ /* @__PURE__ */ jsxDEV2(MoreHorizontal, {
153
+ className: "h-4 w-4"
154
+ }, undefined, false, undefined, this),
155
+ /* @__PURE__ */ jsxDEV2("span", {
156
+ className: "sr-only",
157
+ children: "More pages"
158
+ }, undefined, false, undefined, this)
159
+ ]
160
+ }, undefined, true, undefined, this);
161
+ }
143
162
  export {
144
163
  PaginationPrevious,
145
164
  PaginationNext,
@@ -1,23 +1,8 @@
1
- import * as ResizablePrimitive from 'react-resizable-panels';
2
- declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
3
- declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLObjectElement | HTMLMapElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLLinkElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSelectElement | HTMLSourceElement | HTMLSpanElement | HTMLStyleElement | HTMLTableElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
4
- className?: string;
5
- collapsedSize?: number | undefined;
6
- collapsible?: boolean | undefined;
7
- defaultSize?: number | undefined;
8
- id?: string;
9
- maxSize?: number | undefined;
10
- minSize?: number | undefined;
11
- onCollapse?: ResizablePrimitive.PanelOnCollapse;
12
- onExpand?: ResizablePrimitive.PanelOnExpand;
13
- onResize?: ResizablePrimitive.PanelOnResize;
14
- order?: number;
15
- style?: object;
16
- tagName?: keyof HTMLElementTagNameMap | undefined;
17
- } & {
18
- children?: import("react").ReactNode | undefined;
19
- } & import("react").RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
20
- declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
1
+ import { Panel } from 'react-resizable-panels';
2
+ import type { GroupProps, SeparatorProps } from 'react-resizable-panels';
3
+ declare const ResizablePanelGroup: ({ className, ...props }: GroupProps) => import("react/jsx-runtime").JSX.Element;
4
+ declare const ResizablePanel: typeof Panel;
5
+ declare const ResizableHandle: ({ withHandle, className, ...props }: SeparatorProps & {
21
6
  withHandle?: boolean;
22
7
  }) => import("react/jsx-runtime").JSX.Element;
23
8
  export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
@@ -1 +1 @@
1
- {"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../ui/resizable.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,kBAAkB,MAAM,wBAAwB,CAAC;AAI7D,QAAA,MAAM,mBAAmB,GAAI,yBAG1B,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,UAAU,CAAC,4CAQ5D,CAAC;AAEF,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;4EAA2B,CAAC;AAEhD,QAAA,MAAM,eAAe,GAAI,qCAItB,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,iBAAiB,CAAC,GAAG;IACrE,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,4CAcA,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"resizable.d.ts","sourceRoot":"","sources":["../../ui/resizable.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAS,KAAK,EAAa,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAIzE,QAAA,MAAM,mBAAmB,GAAI,yBAAyB,UAAU,4CAE/D,CAAC;AAEF,QAAA,MAAM,cAAc,cAAQ,CAAC;AAE7B,QAAA,MAAM,eAAe,GAAI,qCAItB,cAAc,GAAG;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,4CAcA,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
@@ -3,24 +3,21 @@ var __require = import.meta.require;
3
3
 
4
4
  // ui/resizable.tsx
5
5
  import { GripVertical } from "lucide-react";
6
- import * as ResizablePrimitive from "react-resizable-panels";
6
+ import { Group, Panel, Separator } from "react-resizable-panels";
7
7
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
8
8
  import { jsxDEV } from "react/jsx-dev-runtime";
9
9
  "use client";
10
- var ResizablePanelGroup = ({
11
- className,
12
- ...props
13
- }) => /* @__PURE__ */ jsxDEV(ResizablePrimitive.PanelGroup, {
14
- className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
10
+ var ResizablePanelGroup = ({ className, ...props }) => /* @__PURE__ */ jsxDEV(Group, {
11
+ className: cn("flex h-full w-full", className),
15
12
  ...props
16
13
  }, undefined, false, undefined, this);
17
- var ResizablePanel = ResizablePrimitive.Panel;
14
+ var ResizablePanel = Panel;
18
15
  var ResizableHandle = ({
19
16
  withHandle,
20
17
  className,
21
18
  ...props
22
- }) => /* @__PURE__ */ jsxDEV(ResizablePrimitive.PanelResizeHandle, {
23
- 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),
19
+ }) => /* @__PURE__ */ jsxDEV(Separator, {
20
+ 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),
24
21
  ...props,
25
22
  children: withHandle && /* @__PURE__ */ jsxDEV("div", {
26
23
  className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",
@@ -9,15 +9,8 @@ declare const sectionVariants: (props?: ({
9
9
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
10
  export type SectionProps = React.HTMLAttributes<HTMLElement> & VariantProps<typeof sectionVariants> & {
11
11
  as?: 'section' | 'div' | 'main' | 'header' | 'footer' | 'aside' | 'article' | 'nav';
12
+ ref?: React.Ref<HTMLElement>;
12
13
  };
13
- export declare const Section: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
14
- width?: "container" | "narrow" | "wide" | "fluid" | null | undefined;
15
- px?: "none" | "sm" | "lg" | "md" | null | undefined;
16
- py?: "none" | "sm" | "lg" | "md" | "xl" | null | undefined;
17
- tone?: "plain" | "tint" | "subtle" | null | undefined;
18
- text?: "base" | "lg" | null | undefined;
19
- } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
20
- as?: "section" | "div" | "main" | "header" | "footer" | "aside" | "article" | "nav";
21
- } & React.RefAttributes<HTMLElement>>;
14
+ export declare function Section({ as, className, width, px, py, tone, text, ref, ...props }: SectionProps): import("react/jsx-runtime").JSX.Element;
22
15
  export { sectionVariants };
23
16
  //# sourceMappingURL=section.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../ui/section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,eAAe;;;;;;8EAsCnB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAC1D,YAAY,CAAC,OAAO,eAAe,CAAC,GAAG;IACrC,EAAE,CAAC,EACC,SAAS,GACT,KAAK,GACL,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,SAAS,GACT,KAAK,CAAC;CACX,CAAC;AAEJ,eAAO,MAAM,OAAO;;;;;;;SAVZ,SAAS,GACT,KAAK,GACL,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,SAAS,GACT,KAAK;qCAiBZ,CAAC;AAGF,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../ui/section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,eAAe;;;;;;8EAsCnB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAC1D,YAAY,CAAC,OAAO,eAAe,CAAC,GAAG;IACrC,EAAE,CAAC,EACC,SAAS,GACT,KAAK,GACL,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,SAAS,GACT,KAAK,CAAC;IACV,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;CAC9B,CAAC;AAEJ,wBAAgB,OAAO,CAAC,EACtB,EAAc,EACd,SAAS,EACT,KAAK,EACL,EAAE,EACF,EAAE,EACF,IAAI,EACJ,IAAI,EACJ,GAAG,EACH,GAAG,KAAK,EACT,EAAE,YAAY,2CASd;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/section.tsx
5
- import * as React from "react";
6
5
  import { cva } from "class-variance-authority";
7
6
  import { cn } from "@contractspec/lib.ui-kit-core/utils";
8
7
  import { jsxDEV } from "react/jsx-dev-runtime";
@@ -45,15 +44,24 @@ var sectionVariants = cva("", {
45
44
  text: "lg"
46
45
  }
47
46
  });
48
- var Section = React.forwardRef(({ as = "section", className, width, px, py, tone, text, ...props }, ref) => {
47
+ function Section({
48
+ as = "section",
49
+ className,
50
+ width,
51
+ px,
52
+ py,
53
+ tone,
54
+ text,
55
+ ref,
56
+ ...props
57
+ }) {
49
58
  const Comp = as;
50
59
  return /* @__PURE__ */ jsxDEV(Comp, {
51
60
  ref,
52
61
  className: cn(sectionVariants({ width, px, py, tone, text }), className),
53
62
  ...props
54
63
  }, undefined, false, undefined, this);
55
- });
56
- Section.displayName = "Section";
64
+ }
57
65
  export {
58
66
  sectionVariants,
59
67
  Section