@contractspec/lib.ui-kit-web 1.61.0 → 2.0.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/index.d.ts +0 -1
- package/dist/ui/accordion.d.ts +0 -1
- package/dist/ui/alert-dialog.d.ts +0 -1
- package/dist/ui/alert-dialog.js +9 -4
- package/dist/ui/alert.d.ts +0 -1
- package/dist/ui/aspect-ratio.d.ts +0 -1
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +0 -1
- package/dist/ui/atoms/FilterSelect/index.d.ts +0 -1
- package/dist/ui/atoms/FilterSelect/types.d.ts +0 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +0 -1
- package/dist/ui/atoms/LoadingSpinner/index.d.ts +0 -1
- package/dist/ui/atoms/Pagination/Pagination.d.ts +0 -1
- package/dist/ui/atoms/Pagination/Pagination.js +9 -4
- package/dist/ui/atoms/Pagination/index.d.ts +0 -1
- package/dist/ui/atoms/Pagination/index.js +9 -4
- package/dist/ui/atoms/Pagination/types.d.ts +0 -1
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts +0 -1
- package/dist/ui/atoms/SearchInput/SearchInput.js +9 -4
- package/dist/ui/atoms/SearchInput/index.d.ts +0 -1
- package/dist/ui/atoms/SearchInput/index.js +9 -4
- package/dist/ui/atoms/SearchInput/types.d.ts +0 -1
- package/dist/ui/avatar.d.ts +0 -1
- package/dist/ui/badge.d.ts +0 -1
- package/dist/ui/breadcrumb.d.ts +0 -1
- package/dist/ui/button.d.ts +2 -7
- package/dist/ui/button.js +9 -4
- package/dist/ui/calendar.d.ts +0 -1
- package/dist/ui/calendar.js +12 -7
- package/dist/ui/card.d.ts +0 -1
- package/dist/ui/carousel.d.ts +0 -1
- package/dist/ui/carousel.js +20 -15
- package/dist/ui/checkbox.d.ts +0 -1
- package/dist/ui/collapsible.d.ts +0 -1
- package/dist/ui/command.d.ts +0 -1
- package/dist/ui/confirm-dialog.d.ts +0 -1
- package/dist/ui/confirm-dialog.js +9 -4
- package/dist/ui/context-menu.d.ts +26 -23
- package/dist/ui/context-menu.js +178 -85
- package/dist/ui/cta.d.ts +2 -9
- package/dist/ui/cta.js +13 -9
- package/dist/ui/date-picker.d.ts +0 -1
- package/dist/ui/date-picker.js +17 -12
- package/dist/ui/date-range-picker.d.ts +0 -1
- package/dist/ui/date-range-picker.js +14 -9
- package/dist/ui/datetime-picker.d.ts +0 -1
- package/dist/ui/datetime-picker.js +21 -16
- package/dist/ui/dialog.d.ts +0 -1
- package/dist/ui/drawer.d.ts +0 -1
- package/dist/ui/dropdown-menu.d.ts +0 -1
- package/dist/ui/empty-state.d.ts +0 -1
- package/dist/ui/empty-state.js +32 -10
- package/dist/ui/empty.d.ts +0 -1
- package/dist/ui/field.d.ts +0 -1
- package/dist/ui/focus-on-route-change.d.ts +0 -1
- package/dist/ui/form.d.ts +0 -1
- package/dist/ui/hover-card.d.ts +0 -1
- package/dist/ui/input-group.d.ts +0 -1
- package/dist/ui/input-group.js +9 -4
- package/dist/ui/input-otp.d.ts +13 -32
- package/dist/ui/input-otp.js +37 -18
- package/dist/ui/input.d.ts +0 -1
- package/dist/ui/label.d.ts +0 -1
- package/dist/ui/link.d.ts +4 -3
- package/dist/ui/link.js +6 -4
- package/dist/ui/live-region.d.ts +0 -1
- package/dist/ui/loading-button.d.ts +0 -1
- package/dist/ui/loading-button.js +41 -14
- package/dist/ui/map/MapBase.d.ts +0 -1
- package/dist/ui/map/MapGeoJsonOverlay.d.ts +0 -1
- package/dist/ui/map/MapHeatmapH3.d.ts +0 -1
- package/dist/ui/map/MapMarkers.d.ts +0 -1
- package/dist/ui/map/index.d.ts +0 -1
- package/dist/ui/marketing/FeatureGrid.d.ts +0 -1
- package/dist/ui/marketing/Hero.d.ts +0 -1
- package/dist/ui/marketing/Hero.js +9 -4
- package/dist/ui/marketing/PricingTable.d.ts +0 -1
- package/dist/ui/marketing/PricingTable.js +9 -4
- package/dist/ui/marketing/index.d.ts +0 -1
- package/dist/ui/marketing/index.js +9 -4
- package/dist/ui/menubar.d.ts +0 -1
- package/dist/ui/molecules/Autocomplete/index.d.ts +0 -1
- package/dist/ui/molecules/Autocomplete/index.js +15 -10
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +0 -1
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +9 -4
- package/dist/ui/molecules/SearchAndFilter/index.d.ts +0 -1
- package/dist/ui/molecules/SearchAndFilter/index.js +9 -4
- package/dist/ui/molecules/SearchAndFilter/types.d.ts +0 -1
- package/dist/ui/molecules/SkeletonList.d.ts +0 -1
- package/dist/ui/nav-layout.d.ts +0 -1
- package/dist/ui/navigation-menu.d.ts +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +12 -7
- package/dist/ui/organisms/ErrorBoundary/index.d.ts +0 -1
- package/dist/ui/organisms/ErrorBoundary/index.js +12 -7
- package/dist/ui/organisms/ListPage/ListPage.d.ts +0 -1
- package/dist/ui/organisms/ListPage/ListPage.js +41 -14
- package/dist/ui/organisms/ListPage/index.d.ts +0 -1
- package/dist/ui/organisms/ListPage/index.js +41 -14
- package/dist/ui/organisms/ListPage/types.d.ts +0 -1
- package/dist/ui/page-header.d.ts +0 -1
- package/dist/ui/page-header.js +32 -10
- package/dist/ui/pagination.d.ts +11 -23
- package/dist/ui/pagination.js +98 -79
- package/dist/ui/popover.d.ts +0 -1
- package/dist/ui/progress.d.ts +0 -1
- package/dist/ui/radio-group.d.ts +0 -1
- package/dist/ui/resizable.d.ts +5 -21
- package/dist/ui/resizable.js +6 -9
- package/dist/ui/route-announcer.d.ts +0 -1
- package/dist/ui/scroll-area.d.ts +0 -1
- package/dist/ui/section.d.ts +2 -10
- package/dist/ui/section.js +12 -4
- package/dist/ui/select.d.ts +0 -1
- package/dist/ui/separator.d.ts +0 -1
- package/dist/ui/sheet.d.ts +0 -1
- package/dist/ui/sidebar.d.ts +0 -1
- package/dist/ui/sidebar.js +22 -17
- package/dist/ui/skeleton.d.ts +0 -1
- package/dist/ui/skip-link.d.ts +0 -1
- package/dist/ui/slider.d.ts +0 -1
- package/dist/ui/sonner.d.ts +0 -1
- package/dist/ui/stack.d.ts +15 -24
- package/dist/ui/stack.js +32 -10
- package/dist/ui/stat-card-group.d.ts +0 -1
- package/dist/ui/stat-card-group.js +32 -10
- package/dist/ui/stepper.d.ts +0 -1
- package/dist/ui/stepper.js +32 -10
- package/dist/ui/switch.d.ts +0 -1
- package/dist/ui/table.d.ts +0 -1
- package/dist/ui/tabs.d.ts +0 -1
- package/dist/ui/text.d.ts +0 -1
- package/dist/ui/textarea.d.ts +0 -1
- package/dist/ui/time-picker.d.ts +0 -1
- package/dist/ui/time-picker.js +13 -8
- package/dist/ui/toast.d.ts +20 -8
- package/dist/ui/toast.js +57 -29
- package/dist/ui/toaster.d.ts +0 -1
- package/dist/ui/toaster.js +60 -32
- package/dist/ui/toggle-group.d.ts +0 -1
- package/dist/ui/toggle.d.ts +0 -1
- package/dist/ui/tooltip.d.ts +0 -1
- package/dist/ui/typography.d.ts +0 -1
- package/dist/ui/use-media-query.d.ts +0 -1
- package/dist/ui/use-mobile.d.ts +0 -1
- package/dist/ui/use-reduced-motion.d.ts +0 -1
- package/dist/ui/use-toast.d.ts +0 -1
- package/dist/ui/useListState.d.ts +0 -1
- package/dist/ui/usecases/UseCaseCard.d.ts +0 -1
- package/dist/ui/usecases/UseCaseCard.js +41 -14
- package/dist/ui/usecases/UserStoryCard.d.ts +0 -1
- package/dist/ui/usecases/UserStoryCard.js +32 -10
- package/dist/ui/usecases/index.d.ts +0 -1
- package/dist/ui/usecases/index.js +41 -14
- package/dist/ui/utils.d.ts +0 -1
- package/dist/ui/visually-hidden.d.ts +4 -3
- package/dist/ui/visually-hidden.js +8 -4
- package/package.json +13 -12
- package/dist/index.d.ts.map +0 -1
- package/dist/ui/accordion.d.ts.map +0 -1
- package/dist/ui/alert-dialog.d.ts.map +0 -1
- package/dist/ui/alert.d.ts.map +0 -1
- package/dist/ui/aspect-ratio.d.ts.map +0 -1
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts.map +0 -1
- package/dist/ui/atoms/FilterSelect/index.d.ts.map +0 -1
- package/dist/ui/atoms/FilterSelect/types.d.ts.map +0 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts.map +0 -1
- package/dist/ui/atoms/LoadingSpinner/index.d.ts.map +0 -1
- package/dist/ui/atoms/Pagination/Pagination.d.ts.map +0 -1
- package/dist/ui/atoms/Pagination/index.d.ts.map +0 -1
- package/dist/ui/atoms/Pagination/types.d.ts.map +0 -1
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts.map +0 -1
- package/dist/ui/atoms/SearchInput/index.d.ts.map +0 -1
- package/dist/ui/atoms/SearchInput/types.d.ts.map +0 -1
- package/dist/ui/avatar.d.ts.map +0 -1
- package/dist/ui/badge.d.ts.map +0 -1
- package/dist/ui/breadcrumb.d.ts.map +0 -1
- package/dist/ui/button.d.ts.map +0 -1
- package/dist/ui/calendar.d.ts.map +0 -1
- package/dist/ui/card.d.ts.map +0 -1
- package/dist/ui/carousel.d.ts.map +0 -1
- package/dist/ui/checkbox.d.ts.map +0 -1
- package/dist/ui/collapsible.d.ts.map +0 -1
- package/dist/ui/command.d.ts.map +0 -1
- package/dist/ui/confirm-dialog.d.ts.map +0 -1
- package/dist/ui/context-menu.d.ts.map +0 -1
- package/dist/ui/cta.d.ts.map +0 -1
- package/dist/ui/date-picker.d.ts.map +0 -1
- package/dist/ui/date-range-picker.d.ts.map +0 -1
- package/dist/ui/datetime-picker.d.ts.map +0 -1
- package/dist/ui/dialog.d.ts.map +0 -1
- package/dist/ui/drawer.d.ts.map +0 -1
- package/dist/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/ui/empty-state.d.ts.map +0 -1
- package/dist/ui/empty.d.ts.map +0 -1
- package/dist/ui/field.d.ts.map +0 -1
- package/dist/ui/focus-on-route-change.d.ts.map +0 -1
- package/dist/ui/form.d.ts.map +0 -1
- package/dist/ui/hover-card.d.ts.map +0 -1
- package/dist/ui/input-group.d.ts.map +0 -1
- package/dist/ui/input-otp.d.ts.map +0 -1
- package/dist/ui/input.d.ts.map +0 -1
- package/dist/ui/label.d.ts.map +0 -1
- package/dist/ui/link.d.ts.map +0 -1
- package/dist/ui/live-region.d.ts.map +0 -1
- package/dist/ui/loading-button.d.ts.map +0 -1
- package/dist/ui/map/MapBase.d.ts.map +0 -1
- package/dist/ui/map/MapGeoJsonOverlay.d.ts.map +0 -1
- package/dist/ui/map/MapHeatmapH3.d.ts.map +0 -1
- package/dist/ui/map/MapMarkers.d.ts.map +0 -1
- package/dist/ui/map/index.d.ts.map +0 -1
- package/dist/ui/marketing/FeatureGrid.d.ts.map +0 -1
- package/dist/ui/marketing/Hero.d.ts.map +0 -1
- package/dist/ui/marketing/PricingTable.d.ts.map +0 -1
- package/dist/ui/marketing/index.d.ts.map +0 -1
- package/dist/ui/menubar.d.ts.map +0 -1
- package/dist/ui/molecules/Autocomplete/index.d.ts.map +0 -1
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts.map +0 -1
- package/dist/ui/molecules/SearchAndFilter/index.d.ts.map +0 -1
- package/dist/ui/molecules/SearchAndFilter/types.d.ts.map +0 -1
- package/dist/ui/molecules/SkeletonList.d.ts.map +0 -1
- package/dist/ui/nav-layout.d.ts.map +0 -1
- package/dist/ui/navigation-menu.d.ts.map +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +0 -1
- package/dist/ui/organisms/ErrorBoundary/index.d.ts.map +0 -1
- package/dist/ui/organisms/ListPage/ListPage.d.ts.map +0 -1
- package/dist/ui/organisms/ListPage/index.d.ts.map +0 -1
- package/dist/ui/organisms/ListPage/types.d.ts.map +0 -1
- package/dist/ui/page-header.d.ts.map +0 -1
- package/dist/ui/pagination.d.ts.map +0 -1
- package/dist/ui/popover.d.ts.map +0 -1
- package/dist/ui/progress.d.ts.map +0 -1
- package/dist/ui/radio-group.d.ts.map +0 -1
- package/dist/ui/resizable.d.ts.map +0 -1
- package/dist/ui/route-announcer.d.ts.map +0 -1
- package/dist/ui/scroll-area.d.ts.map +0 -1
- package/dist/ui/section.d.ts.map +0 -1
- package/dist/ui/select.d.ts.map +0 -1
- package/dist/ui/separator.d.ts.map +0 -1
- package/dist/ui/sheet.d.ts.map +0 -1
- package/dist/ui/sidebar.d.ts.map +0 -1
- package/dist/ui/skeleton.d.ts.map +0 -1
- package/dist/ui/skip-link.d.ts.map +0 -1
- package/dist/ui/slider.d.ts.map +0 -1
- package/dist/ui/sonner.d.ts.map +0 -1
- package/dist/ui/stack.d.ts.map +0 -1
- package/dist/ui/stat-card-group.d.ts.map +0 -1
- package/dist/ui/stepper.d.ts.map +0 -1
- package/dist/ui/switch.d.ts.map +0 -1
- package/dist/ui/table.d.ts.map +0 -1
- package/dist/ui/tabs.d.ts.map +0 -1
- package/dist/ui/text.d.ts.map +0 -1
- package/dist/ui/textarea.d.ts.map +0 -1
- package/dist/ui/time-picker.d.ts.map +0 -1
- package/dist/ui/toast.d.ts.map +0 -1
- package/dist/ui/toaster.d.ts.map +0 -1
- package/dist/ui/toggle-group.d.ts.map +0 -1
- package/dist/ui/toggle.d.ts.map +0 -1
- package/dist/ui/tooltip.d.ts.map +0 -1
- package/dist/ui/typography.d.ts.map +0 -1
- package/dist/ui/use-media-query.d.ts.map +0 -1
- package/dist/ui/use-mobile.d.ts.map +0 -1
- package/dist/ui/use-reduced-motion.d.ts.map +0 -1
- package/dist/ui/use-toast.d.ts.map +0 -1
- package/dist/ui/useListState.d.ts.map +0 -1
- package/dist/ui/usecases/UseCaseCard.d.ts.map +0 -1
- package/dist/ui/usecases/UserStoryCard.d.ts.map +0 -1
- package/dist/ui/usecases/index.d.ts.map +0 -1
- package/dist/ui/utils.d.ts.map +0 -1
- package/dist/ui/visually-hidden.d.ts.map +0 -1
|
@@ -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/dialog.tsx
|
|
49
54
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
50
55
|
import { XIcon } from "lucide-react";
|
|
@@ -448,10 +453,10 @@ function DrawerDescription({
|
|
|
448
453
|
}, undefined, false, undefined, this);
|
|
449
454
|
}
|
|
450
455
|
// ui/use-media-query.ts
|
|
451
|
-
import * as
|
|
456
|
+
import * as React from "react";
|
|
452
457
|
function useMediaQuery(query) {
|
|
453
|
-
const [value, setValue] =
|
|
454
|
-
|
|
458
|
+
const [value, setValue] = React.useState(false);
|
|
459
|
+
React.useEffect(() => {
|
|
455
460
|
function onChange(event) {
|
|
456
461
|
setValue(event.matches);
|
|
457
462
|
}
|
|
@@ -464,7 +469,7 @@ function useMediaQuery(query) {
|
|
|
464
469
|
}
|
|
465
470
|
|
|
466
471
|
// ui/molecules/Autocomplete/index.tsx
|
|
467
|
-
import * as
|
|
472
|
+
import * as React2 from "react";
|
|
468
473
|
import { jsxDEV as jsxDEV6, Fragment } from "react/jsx-dev-runtime";
|
|
469
474
|
"use client";
|
|
470
475
|
var statuses = [
|
|
@@ -486,9 +491,9 @@ var statuses = [
|
|
|
486
491
|
}
|
|
487
492
|
];
|
|
488
493
|
function ComboBoxResponsive() {
|
|
489
|
-
const [open, setOpen] =
|
|
494
|
+
const [open, setOpen] = React2.useState(false);
|
|
490
495
|
const isDesktop = useMediaQuery("(min-width: 768px)");
|
|
491
|
-
const [selectedStatus, setSelectedStatus] =
|
|
496
|
+
const [selectedStatus, setSelectedStatus] = React2.useState(null);
|
|
492
497
|
if (isDesktop) {
|
|
493
498
|
return /* @__PURE__ */ jsxDEV6(Popover, {
|
|
494
499
|
open,
|
|
@@ -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";
|
|
@@ -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";
|
package/dist/ui/nav-layout.d.ts
CHANGED
|
@@ -45,4 +45,3 @@ export declare function NavCategorizedWithPreview({ categories, modules, activeC
|
|
|
45
45
|
preview: React.ReactNode;
|
|
46
46
|
}): import("react/jsx-runtime").JSX.Element;
|
|
47
47
|
export { NavigationMenu as NavRoot, NavigationMenuList as NavList, NavigationMenuItem as NavItem, NavigationMenuTrigger as NavTrigger, NavigationMenuContent as NavContent, NavigationMenuLink as NavLink, };
|
|
48
|
-
//# sourceMappingURL=nav-layout.d.ts.map
|
|
@@ -12,4 +12,3 @@ declare function NavigationMenuViewport({ className, ...props }: React.Component
|
|
|
12
12
|
declare function NavigationMenuLink({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Link>): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
declare function NavigationMenuIndicator({ className, ...props }: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, navigationMenuTriggerStyle, };
|
|
15
|
-
//# sourceMappingURL=navigation-menu.d.ts.map
|
|
@@ -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,10 +49,9 @@ 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/organisms/ErrorBoundary/ErrorBoundary.tsx
|
|
49
|
-
import
|
|
54
|
+
import React from "react";
|
|
50
55
|
import { AlertTriangle, RefreshCw, Home } from "lucide-react";
|
|
51
56
|
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
52
57
|
"use client";
|
|
@@ -133,7 +138,7 @@ var DefaultErrorFallback = ({
|
|
|
133
138
|
}, undefined, false, undefined, this);
|
|
134
139
|
};
|
|
135
140
|
|
|
136
|
-
class ErrorBoundary extends
|
|
141
|
+
class ErrorBoundary extends React.Component {
|
|
137
142
|
constructor(props) {
|
|
138
143
|
super(props);
|
|
139
144
|
this.state = {
|
|
@@ -176,7 +181,7 @@ class ErrorBoundary extends React2.Component {
|
|
|
176
181
|
}
|
|
177
182
|
}
|
|
178
183
|
var useErrorHandler = () => {
|
|
179
|
-
return
|
|
184
|
+
return React.useCallback((error) => {
|
|
180
185
|
throw error;
|
|
181
186
|
}, []);
|
|
182
187
|
};
|
|
@@ -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,10 +49,9 @@ 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/organisms/ErrorBoundary/ErrorBoundary.tsx
|
|
49
|
-
import
|
|
54
|
+
import React from "react";
|
|
50
55
|
import { AlertTriangle, RefreshCw, Home } from "lucide-react";
|
|
51
56
|
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
52
57
|
"use client";
|
|
@@ -133,7 +138,7 @@ var DefaultErrorFallback = ({
|
|
|
133
138
|
}, undefined, false, undefined, this);
|
|
134
139
|
};
|
|
135
140
|
|
|
136
|
-
class ErrorBoundary extends
|
|
141
|
+
class ErrorBoundary extends React.Component {
|
|
137
142
|
constructor(props) {
|
|
138
143
|
super(props);
|
|
139
144
|
this.state = {
|
|
@@ -176,7 +181,7 @@ class ErrorBoundary extends React2.Component {
|
|
|
176
181
|
}
|
|
177
182
|
}
|
|
178
183
|
var useErrorHandler = () => {
|
|
179
|
-
return
|
|
184
|
+
return React.useCallback((error) => {
|
|
180
185
|
throw error;
|
|
181
186
|
}, []);
|
|
182
187
|
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import type { ListPageProps } from './types';
|
|
2
2
|
export declare function ListPage<T>({ title, description, header, items, totalItems, totalPages, isLoading, isFetching, error, listState, searchPlaceholder, filters, onRefresh, primaryAction, toolbar, renderItem, renderEmpty, renderStats, className, itemClassName, }: ListPageProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
//# sourceMappingURL=ListPage.d.ts.map
|
|
@@ -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";
|
|
@@ -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.d.ts
CHANGED
|
@@ -12,4 +12,3 @@ export interface PageHeaderProps extends VariantProps<typeof headerVariants> {
|
|
|
12
12
|
}
|
|
13
13
|
export declare function PageHeader({ breadcrumb, title, subtitle, actions, spacing, className, }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export {};
|
|
15
|
-
//# sourceMappingURL=page-header.d.ts.map
|
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";
|