@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
package/dist/ui/toast.js CHANGED
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/toast.tsx
5
- import * as React from "react";
6
5
  import * as ToastPrimitives from "@radix-ui/react-toast";
7
6
  import { cva } from "class-variance-authority";
8
7
  import { X } from "lucide-react";
@@ -10,12 +9,17 @@ import { cn } from "@contractspec/lib.ui-kit-core/utils";
10
9
  import { jsxDEV } from "react/jsx-dev-runtime";
11
10
  "use client";
12
11
  var ToastProvider = ToastPrimitives.Provider;
13
- var ToastViewport = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Viewport, {
12
+ function ToastViewport({
13
+ className,
14
14
  ref,
15
- className: cn("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]", className),
16
15
  ...props
17
- }, undefined, false, undefined, this));
18
- ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
16
+ }) {
17
+ return /* @__PURE__ */ jsxDEV(ToastPrimitives.Viewport, {
18
+ ref,
19
+ className: cn("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]", className),
20
+ ...props
21
+ }, undefined, false, undefined, this);
22
+ }
19
23
  var toastVariants = cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full", {
20
24
  variants: {
21
25
  variant: {
@@ -27,42 +31,66 @@ var toastVariants = cva("group pointer-events-auto relative flex w-full items-ce
27
31
  variant: "default"
28
32
  }
29
33
  });
30
- var Toast = React.forwardRef(({ className, variant, ...props }, ref) => {
34
+ function Toast({
35
+ className,
36
+ variant,
37
+ ref,
38
+ ...props
39
+ }) {
31
40
  return /* @__PURE__ */ jsxDEV(ToastPrimitives.Root, {
32
41
  ref,
33
42
  className: cn(toastVariants({ variant }), className),
34
43
  ...props
35
44
  }, undefined, false, undefined, this);
36
- });
37
- Toast.displayName = ToastPrimitives.Root.displayName;
38
- var ToastAction = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Action, {
45
+ }
46
+ function ToastAction({
47
+ className,
39
48
  ref,
40
- className: cn("ring-offset-background hover:bg-secondary focus:ring-ring group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-base font-medium transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none disabled:opacity-50", className),
41
49
  ...props
42
- }, undefined, false, undefined, this));
43
- ToastAction.displayName = ToastPrimitives.Action.displayName;
44
- var ToastClose = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Close, {
50
+ }) {
51
+ return /* @__PURE__ */ jsxDEV(ToastPrimitives.Action, {
52
+ ref,
53
+ className: cn("ring-offset-background hover:bg-secondary focus:ring-ring group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-base font-medium transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none disabled:opacity-50", className),
54
+ ...props
55
+ }, undefined, false, undefined, this);
56
+ }
57
+ function ToastClose({
58
+ className,
45
59
  ref,
46
- className: cn("text-foreground/50 hover:text-foreground absolute top-2 right-2 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:ring-2 focus:outline-hidden group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", className),
47
- "toast-close": "",
48
- ...props,
49
- children: /* @__PURE__ */ jsxDEV(X, {
50
- className: "h-4 w-4"
51
- }, undefined, false, undefined, this)
52
- }, undefined, false, undefined, this));
53
- ToastClose.displayName = ToastPrimitives.Close.displayName;
54
- var ToastTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Title, {
60
+ ...props
61
+ }) {
62
+ return /* @__PURE__ */ jsxDEV(ToastPrimitives.Close, {
63
+ ref,
64
+ className: cn("text-foreground/50 hover:text-foreground absolute top-2 right-2 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:ring-2 focus:outline-hidden group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", className),
65
+ "toast-close": "",
66
+ ...props,
67
+ children: /* @__PURE__ */ jsxDEV(X, {
68
+ className: "h-4 w-4"
69
+ }, undefined, false, undefined, this)
70
+ }, undefined, false, undefined, this);
71
+ }
72
+ function ToastTitle({
73
+ className,
55
74
  ref,
56
- className: cn("text-base font-semibold", className),
57
75
  ...props
58
- }, undefined, false, undefined, this));
59
- ToastTitle.displayName = ToastPrimitives.Title.displayName;
60
- var ToastDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Description, {
76
+ }) {
77
+ return /* @__PURE__ */ jsxDEV(ToastPrimitives.Title, {
78
+ ref,
79
+ className: cn("text-base font-semibold", className),
80
+ ...props
81
+ }, undefined, false, undefined, this);
82
+ }
83
+ function ToastDescription({
84
+ className,
61
85
  ref,
62
- className: cn("text-base opacity-90", className),
63
86
  ...props
64
- }, undefined, false, undefined, this));
65
- ToastDescription.displayName = ToastPrimitives.Description.displayName;
87
+ }) {
88
+ return /* @__PURE__ */ jsxDEV(ToastPrimitives.Description, {
89
+ ref,
90
+ className: cn("text-base opacity-90", className),
91
+ ...props
92
+ }, undefined, false, undefined, this);
93
+ }
66
94
  export {
67
95
  ToastViewport,
68
96
  ToastTitle,
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/toast.tsx
5
- import * as React from "react";
6
5
  import * as ToastPrimitives from "@radix-ui/react-toast";
7
6
  import { cva } from "class-variance-authority";
8
7
  import { X } from "lucide-react";
@@ -10,12 +9,17 @@ import { cn } from "@contractspec/lib.ui-kit-core/utils";
10
9
  import { jsxDEV } from "react/jsx-dev-runtime";
11
10
  "use client";
12
11
  var ToastProvider = ToastPrimitives.Provider;
13
- var ToastViewport = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Viewport, {
12
+ function ToastViewport({
13
+ className,
14
14
  ref,
15
- className: cn("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]", className),
16
15
  ...props
17
- }, undefined, false, undefined, this));
18
- ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
16
+ }) {
17
+ return /* @__PURE__ */ jsxDEV(ToastPrimitives.Viewport, {
18
+ ref,
19
+ className: cn("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]", className),
20
+ ...props
21
+ }, undefined, false, undefined, this);
22
+ }
19
23
  var toastVariants = cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full", {
20
24
  variants: {
21
25
  variant: {
@@ -27,44 +31,68 @@ var toastVariants = cva("group pointer-events-auto relative flex w-full items-ce
27
31
  variant: "default"
28
32
  }
29
33
  });
30
- var Toast = React.forwardRef(({ className, variant, ...props }, ref) => {
34
+ function Toast({
35
+ className,
36
+ variant,
37
+ ref,
38
+ ...props
39
+ }) {
31
40
  return /* @__PURE__ */ jsxDEV(ToastPrimitives.Root, {
32
41
  ref,
33
42
  className: cn(toastVariants({ variant }), className),
34
43
  ...props
35
44
  }, undefined, false, undefined, this);
36
- });
37
- Toast.displayName = ToastPrimitives.Root.displayName;
38
- var ToastAction = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Action, {
45
+ }
46
+ function ToastAction({
47
+ className,
39
48
  ref,
40
- className: cn("ring-offset-background hover:bg-secondary focus:ring-ring group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-base font-medium transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none disabled:opacity-50", className),
41
49
  ...props
42
- }, undefined, false, undefined, this));
43
- ToastAction.displayName = ToastPrimitives.Action.displayName;
44
- var ToastClose = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Close, {
50
+ }) {
51
+ return /* @__PURE__ */ jsxDEV(ToastPrimitives.Action, {
52
+ ref,
53
+ className: cn("ring-offset-background hover:bg-secondary focus:ring-ring group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-base font-medium transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none disabled:opacity-50", className),
54
+ ...props
55
+ }, undefined, false, undefined, this);
56
+ }
57
+ function ToastClose({
58
+ className,
45
59
  ref,
46
- className: cn("text-foreground/50 hover:text-foreground absolute top-2 right-2 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:ring-2 focus:outline-hidden group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", className),
47
- "toast-close": "",
48
- ...props,
49
- children: /* @__PURE__ */ jsxDEV(X, {
50
- className: "h-4 w-4"
51
- }, undefined, false, undefined, this)
52
- }, undefined, false, undefined, this));
53
- ToastClose.displayName = ToastPrimitives.Close.displayName;
54
- var ToastTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Title, {
60
+ ...props
61
+ }) {
62
+ return /* @__PURE__ */ jsxDEV(ToastPrimitives.Close, {
63
+ ref,
64
+ className: cn("text-foreground/50 hover:text-foreground absolute top-2 right-2 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:ring-2 focus:outline-hidden group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", className),
65
+ "toast-close": "",
66
+ ...props,
67
+ children: /* @__PURE__ */ jsxDEV(X, {
68
+ className: "h-4 w-4"
69
+ }, undefined, false, undefined, this)
70
+ }, undefined, false, undefined, this);
71
+ }
72
+ function ToastTitle({
73
+ className,
55
74
  ref,
56
- className: cn("text-base font-semibold", className),
57
75
  ...props
58
- }, undefined, false, undefined, this));
59
- ToastTitle.displayName = ToastPrimitives.Title.displayName;
60
- var ToastDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxDEV(ToastPrimitives.Description, {
76
+ }) {
77
+ return /* @__PURE__ */ jsxDEV(ToastPrimitives.Title, {
78
+ ref,
79
+ className: cn("text-base font-semibold", className),
80
+ ...props
81
+ }, undefined, false, undefined, this);
82
+ }
83
+ function ToastDescription({
84
+ className,
61
85
  ref,
62
- className: cn("text-base opacity-90", className),
63
86
  ...props
64
- }, undefined, false, undefined, this));
65
- ToastDescription.displayName = ToastPrimitives.Description.displayName;
87
+ }) {
88
+ return /* @__PURE__ */ jsxDEV(ToastPrimitives.Description, {
89
+ ref,
90
+ className: cn("text-base opacity-90", className),
91
+ ...props
92
+ }, undefined, false, undefined, this);
93
+ }
66
94
  // ui/use-toast.ts
67
- import * as React2 from "react";
95
+ import * as React from "react";
68
96
  "use client";
69
97
  var TOAST_LIMIT = 1;
70
98
  var TOAST_REMOVE_DELAY = 1e6;
@@ -163,8 +191,8 @@ function toast({ ...props }) {
163
191
  };
164
192
  }
165
193
  function useToast() {
166
- const [state, setState] = React2.useState(memoryState);
167
- React2.useEffect(() => {
194
+ const [state, setState] = React.useState(memoryState);
195
+ React.useEffect(() => {
168
196
  listeners.push(setState);
169
197
  return () => {
170
198
  const index = listeners.indexOf(setState);
@@ -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,10 +49,8 @@ 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/stack.tsx
49
- import * as React2 from "react";
50
54
  import { cva as cva2 } from "class-variance-authority";
51
55
  import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
52
56
  import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
@@ -82,15 +86,22 @@ var vStackVariants = cva2("flex flex-col", {
82
86
  justify: "start"
83
87
  }
84
88
  });
85
- var VStack = React2.forwardRef(({ className, gap, align, justify, as = "div", ...props }, ref) => {
89
+ function VStack({
90
+ className,
91
+ gap,
92
+ align,
93
+ justify,
94
+ as = "div",
95
+ ref,
96
+ ...props
97
+ }) {
86
98
  const Comp = as;
87
99
  return /* @__PURE__ */ jsxDEV2(Comp, {
88
100
  ref,
89
101
  className: cn2(vStackVariants({ gap, align, justify }), className),
90
102
  ...props
91
103
  }, undefined, false, undefined, this);
92
- });
93
- VStack.displayName = "VStack";
104
+ }
94
105
  var hStackVariants = cva2("flex flex-row", {
95
106
  variants: {
96
107
  gap: {
@@ -130,15 +141,23 @@ var hStackVariants = cva2("flex flex-row", {
130
141
  wrap: "wrap"
131
142
  }
132
143
  });
133
- var HStack = React2.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
144
+ function HStack({
145
+ className,
146
+ gap,
147
+ align,
148
+ justify,
149
+ wrap,
150
+ as = "div",
151
+ ref,
152
+ ...props
153
+ }) {
134
154
  const Comp = as;
135
155
  return /* @__PURE__ */ jsxDEV2(Comp, {
136
156
  ref,
137
157
  className: cn2(hStackVariants({ gap, align, justify, wrap }), className),
138
158
  ...props
139
159
  }, undefined, false, undefined, this);
140
- });
141
- HStack.displayName = "HStack";
160
+ }
142
161
  var boxVariants = cva2("flex flex-row", {
143
162
  variants: {
144
163
  gap: {
@@ -178,15 +197,23 @@ var boxVariants = cva2("flex flex-row", {
178
197
  wrap: "nowrap"
179
198
  }
180
199
  });
181
- var Box = React2.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
200
+ function Box({
201
+ className,
202
+ gap,
203
+ align,
204
+ justify,
205
+ wrap,
206
+ as = "div",
207
+ ref,
208
+ ...props
209
+ }) {
182
210
  const Comp = as;
183
211
  return /* @__PURE__ */ jsxDEV2(Comp, {
184
212
  ref,
185
213
  className: cn2(boxVariants({ gap, align, justify, wrap }), className),
186
214
  ...props
187
215
  }, undefined, false, undefined, this);
188
- });
189
- Box.displayName = "Box";
216
+ }
190
217
  // ui/usecases/UseCaseCard.tsx
191
218
  import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
192
219
  function UseCaseCard({
@@ -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/usecases/UserStoryCard.tsx
147
169
  import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
148
170
  function UserStoryCard({
@@ -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,10 +49,8 @@ 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/stack.tsx
49
- import * as React2 from "react";
50
54
  import { cva as cva2 } from "class-variance-authority";
51
55
  import { cn as cn2 } from "@contractspec/lib.ui-kit-core/utils";
52
56
  import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
@@ -82,15 +86,22 @@ var vStackVariants = cva2("flex flex-col", {
82
86
  justify: "start"
83
87
  }
84
88
  });
85
- var VStack = React2.forwardRef(({ className, gap, align, justify, as = "div", ...props }, ref) => {
89
+ function VStack({
90
+ className,
91
+ gap,
92
+ align,
93
+ justify,
94
+ as = "div",
95
+ ref,
96
+ ...props
97
+ }) {
86
98
  const Comp = as;
87
99
  return /* @__PURE__ */ jsxDEV2(Comp, {
88
100
  ref,
89
101
  className: cn2(vStackVariants({ gap, align, justify }), className),
90
102
  ...props
91
103
  }, undefined, false, undefined, this);
92
- });
93
- VStack.displayName = "VStack";
104
+ }
94
105
  var hStackVariants = cva2("flex flex-row", {
95
106
  variants: {
96
107
  gap: {
@@ -130,15 +141,23 @@ var hStackVariants = cva2("flex flex-row", {
130
141
  wrap: "wrap"
131
142
  }
132
143
  });
133
- var HStack = React2.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
144
+ function HStack({
145
+ className,
146
+ gap,
147
+ align,
148
+ justify,
149
+ wrap,
150
+ as = "div",
151
+ ref,
152
+ ...props
153
+ }) {
134
154
  const Comp = as;
135
155
  return /* @__PURE__ */ jsxDEV2(Comp, {
136
156
  ref,
137
157
  className: cn2(hStackVariants({ gap, align, justify, wrap }), className),
138
158
  ...props
139
159
  }, undefined, false, undefined, this);
140
- });
141
- HStack.displayName = "HStack";
160
+ }
142
161
  var boxVariants = cva2("flex flex-row", {
143
162
  variants: {
144
163
  gap: {
@@ -178,15 +197,23 @@ var boxVariants = cva2("flex flex-row", {
178
197
  wrap: "nowrap"
179
198
  }
180
199
  });
181
- var Box = React2.forwardRef(({ className, gap, align, justify, wrap, as = "div", ...props }, ref) => {
200
+ function Box({
201
+ className,
202
+ gap,
203
+ align,
204
+ justify,
205
+ wrap,
206
+ as = "div",
207
+ ref,
208
+ ...props
209
+ }) {
182
210
  const Comp = as;
183
211
  return /* @__PURE__ */ jsxDEV2(Comp, {
184
212
  ref,
185
213
  className: cn2(boxVariants({ gap, align, justify, wrap }), className),
186
214
  ...props
187
215
  }, undefined, false, undefined, this);
188
- });
189
- Box.displayName = "Box";
216
+ }
190
217
  // ui/usecases/UseCaseCard.tsx
191
218
  import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
192
219
  function UseCaseCard({
@@ -1,7 +1,9 @@
1
1
  import type { JSX } from 'react';
2
2
  import * as React from 'react';
3
- declare const VisuallyHidden: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
3
+ type VisuallyHiddenProps = React.HTMLAttributes<HTMLElement> & {
4
4
  as?: keyof JSX.IntrinsicElements;
5
- } & React.RefAttributes<HTMLElement>>;
5
+ ref?: React.Ref<HTMLElement>;
6
+ };
7
+ declare function VisuallyHidden({ as, style, children, ref, ...props }: VisuallyHiddenProps): import("react/jsx-runtime").JSX.Element;
6
8
  export { VisuallyHidden };
7
9
  //# sourceMappingURL=visually-hidden.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"visually-hidden.d.ts","sourceRoot":"","sources":["../../ui/visually-hidden.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkB/B,QAAA,MAAM,cAAc;SAfb,MAAM,GAAG,CAAC,iBAAiB;qCAwBjC,CAAC;AAGF,OAAO,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"visually-hidden.d.ts","sourceRoot":"","sources":["../../ui/visually-hidden.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,KAAK,mBAAmB,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG;IAC7D,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,iBAAiB,CAAC;IACjC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;CAC9B,CAAC;AAcF,iBAAS,cAAc,CAAC,EACtB,EAAW,EACX,KAAK,EACL,QAAQ,EACR,GAAG,EACH,GAAG,KAAK,EACT,EAAE,mBAAmB,2CAOrB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -2,7 +2,6 @@
2
2
  var __require = import.meta.require;
3
3
 
4
4
  // ui/visually-hidden.tsx
5
- import * as React from "react";
6
5
  import { jsxDEV } from "react/jsx-dev-runtime";
7
6
  var srOnlyStyle = {
8
7
  border: 0,
@@ -15,7 +14,13 @@ var srOnlyStyle = {
15
14
  width: "1px",
16
15
  whiteSpace: "nowrap"
17
16
  };
18
- var VisuallyHidden = React.forwardRef(({ as = "span", style, children, ...props }, ref) => {
17
+ function VisuallyHidden({
18
+ as = "span",
19
+ style,
20
+ children,
21
+ ref,
22
+ ...props
23
+ }) {
19
24
  const Comp = as;
20
25
  return /* @__PURE__ */ jsxDEV(Comp, {
21
26
  ref,
@@ -23,8 +28,7 @@ var VisuallyHidden = React.forwardRef(({ as = "span", style, children, ...props
23
28
  ...props,
24
29
  children
25
30
  }, undefined, false, undefined, this);
26
- });
27
- VisuallyHidden.displayName = "VisuallyHidden";
31
+ }
28
32
  export {
29
33
  VisuallyHidden
30
34
  };