@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.
- 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
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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";
|
package/dist/ui/page-header.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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";
|
package/dist/ui/pagination.d.ts
CHANGED
|
@@ -1,29 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type ButtonProps } from './button';
|
|
3
|
-
declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
declare
|
|
8
|
-
|
|
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
|
|
13
|
-
|
|
14
|
-
|
|
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,
|
|
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"}
|
package/dist/ui/pagination.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
57
|
+
function Pagination({
|
|
54
58
|
className,
|
|
55
59
|
...props
|
|
56
|
-
})
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
})
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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
|
-
})
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|
-
})
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
})
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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,
|
package/dist/ui/resizable.d.ts
CHANGED
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
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,
|
|
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"}
|
package/dist/ui/resizable.js
CHANGED
|
@@ -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
|
|
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 =
|
|
14
|
+
var ResizablePanel = Panel;
|
|
18
15
|
var ResizableHandle = ({
|
|
19
16
|
withHandle,
|
|
20
17
|
className,
|
|
21
18
|
...props
|
|
22
|
-
}) => /* @__PURE__ */ jsxDEV(
|
|
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
|
|
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",
|
package/dist/ui/section.d.ts
CHANGED
|
@@ -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
|
|
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
|
package/dist/ui/section.d.ts.map
CHANGED
|
@@ -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;
|
|
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"}
|
package/dist/ui/section.js
CHANGED
|
@@ -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
|
-
|
|
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
|