@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.
- package/dist/browser/ui/alert-dialog.js +9 -4
- package/dist/browser/ui/atoms/Pagination/Pagination.js +9 -4
- package/dist/browser/ui/atoms/Pagination/index.js +9 -4
- package/dist/browser/ui/atoms/SearchInput/SearchInput.js +9 -4
- package/dist/browser/ui/atoms/SearchInput/index.js +9 -4
- package/dist/browser/ui/button.js +9 -4
- package/dist/browser/ui/calendar.js +12 -7
- package/dist/browser/ui/carousel.js +20 -15
- package/dist/browser/ui/confirm-dialog.js +9 -4
- package/dist/browser/ui/context-menu.js +178 -85
- package/dist/browser/ui/cta.js +13 -9
- package/dist/browser/ui/date-picker.js +17 -12
- package/dist/browser/ui/date-range-picker.js +14 -9
- package/dist/browser/ui/datetime-picker.js +21 -16
- package/dist/browser/ui/empty-state.js +32 -10
- package/dist/browser/ui/input-group.js +9 -4
- package/dist/browser/ui/input-otp.js +37 -18
- package/dist/browser/ui/link.js +6 -4
- package/dist/browser/ui/loading-button.js +41 -14
- package/dist/browser/ui/marketing/Hero.js +9 -4
- package/dist/browser/ui/marketing/PricingTable.js +9 -4
- package/dist/browser/ui/marketing/index.js +9 -4
- package/dist/browser/ui/molecules/Autocomplete/index.js +15 -10
- package/dist/browser/ui/molecules/SearchAndFilter/SearchAndFilter.js +9 -4
- package/dist/browser/ui/molecules/SearchAndFilter/index.js +9 -4
- package/dist/browser/ui/organisms/ErrorBoundary/ErrorBoundary.js +12 -7
- package/dist/browser/ui/organisms/ErrorBoundary/index.js +12 -7
- package/dist/browser/ui/organisms/ListPage/ListPage.js +41 -14
- package/dist/browser/ui/organisms/ListPage/index.js +41 -14
- package/dist/browser/ui/page-header.js +32 -10
- package/dist/browser/ui/pagination.js +98 -79
- package/dist/browser/ui/resizable.js +6 -9
- package/dist/browser/ui/section.js +12 -4
- package/dist/browser/ui/sidebar.js +22 -17
- package/dist/browser/ui/stack.js +32 -10
- package/dist/browser/ui/stat-card-group.js +32 -10
- package/dist/browser/ui/stepper.js +32 -10
- package/dist/browser/ui/time-picker.js +13 -8
- package/dist/browser/ui/toast.js +57 -29
- package/dist/browser/ui/toaster.js +60 -32
- package/dist/browser/ui/usecases/UseCaseCard.js +41 -14
- package/dist/browser/ui/usecases/UserStoryCard.js +32 -10
- package/dist/browser/ui/usecases/index.js +41 -14
- package/dist/browser/ui/visually-hidden.js +8 -4
- package/dist/ui/alert-dialog.js +9 -4
- package/dist/ui/atoms/Pagination/Pagination.js +9 -4
- package/dist/ui/atoms/Pagination/index.js +9 -4
- package/dist/ui/atoms/SearchInput/SearchInput.js +9 -4
- package/dist/ui/atoms/SearchInput/index.js +9 -4
- package/dist/ui/button.d.ts +2 -6
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +9 -4
- package/dist/ui/calendar.js +12 -7
- package/dist/ui/carousel.js +20 -15
- package/dist/ui/confirm-dialog.js +9 -4
- package/dist/ui/context-menu.d.ts +26 -22
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +178 -85
- package/dist/ui/cta.d.ts +2 -8
- package/dist/ui/cta.d.ts.map +1 -1
- package/dist/ui/cta.js +13 -9
- package/dist/ui/date-picker.js +17 -12
- package/dist/ui/date-range-picker.js +14 -9
- package/dist/ui/datetime-picker.js +21 -16
- package/dist/ui/empty-state.js +32 -10
- package/dist/ui/input-group.js +9 -4
- package/dist/ui/input-otp.d.ts +13 -31
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +37 -18
- package/dist/ui/link.d.ts +4 -2
- package/dist/ui/link.d.ts.map +1 -1
- package/dist/ui/link.js +6 -4
- package/dist/ui/loading-button.js +41 -14
- package/dist/ui/marketing/Hero.js +9 -4
- package/dist/ui/marketing/PricingTable.js +9 -4
- package/dist/ui/marketing/index.js +9 -4
- package/dist/ui/molecules/Autocomplete/index.js +15 -10
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +9 -4
- package/dist/ui/molecules/SearchAndFilter/index.js +9 -4
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +12 -7
- package/dist/ui/organisms/ErrorBoundary/index.js +12 -7
- package/dist/ui/organisms/ListPage/ListPage.js +41 -14
- package/dist/ui/organisms/ListPage/index.js +41 -14
- package/dist/ui/page-header.js +32 -10
- package/dist/ui/pagination.d.ts +11 -22
- package/dist/ui/pagination.d.ts.map +1 -1
- package/dist/ui/pagination.js +98 -79
- package/dist/ui/resizable.d.ts +5 -20
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/resizable.js +6 -9
- package/dist/ui/section.d.ts +2 -9
- package/dist/ui/section.d.ts.map +1 -1
- package/dist/ui/section.js +12 -4
- package/dist/ui/sidebar.js +22 -17
- package/dist/ui/stack.d.ts +15 -23
- package/dist/ui/stack.d.ts.map +1 -1
- package/dist/ui/stack.js +32 -10
- package/dist/ui/stat-card-group.js +32 -10
- package/dist/ui/stepper.js +32 -10
- package/dist/ui/time-picker.js +13 -8
- package/dist/ui/toast.d.ts +20 -7
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +57 -29
- package/dist/ui/toaster.js +60 -32
- package/dist/ui/usecases/UseCaseCard.js +41 -14
- package/dist/ui/usecases/UserStoryCard.js +32 -10
- package/dist/ui/usecases/index.js +41 -14
- package/dist/ui/visually-hidden.d.ts +4 -2
- package/dist/ui/visually-hidden.d.ts.map +1 -1
- package/dist/ui/visually-hidden.js +8 -4
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
62
|
+
function Pagination({
|
|
59
63
|
className,
|
|
60
64
|
...props
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
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
|
-
})
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
-
})
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
})
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
})
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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
|
|
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 =
|
|
19
|
+
var ResizablePanel = Panel;
|
|
23
20
|
var ResizableHandle = ({
|
|
24
21
|
withHandle,
|
|
25
22
|
className,
|
|
26
23
|
...props
|
|
27
|
-
}) => /* @__PURE__ */ jsxDEV(
|
|
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
|
|
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
|
-
|
|
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
|