@lssm-tech/lib.ui-kit-web 3.13.4
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/LICENSE +21 -0
- package/README.md +233 -0
- package/dist/browser/index.js +1 -0
- package/dist/browser/ui/accordion.js +1 -0
- package/dist/browser/ui/alert-dialog.js +1 -0
- package/dist/browser/ui/alert.js +1 -0
- package/dist/browser/ui/aspect-ratio.js +1 -0
- package/dist/browser/ui/atoms/FilterSelect/FilterSelect.js +1 -0
- package/dist/browser/ui/atoms/FilterSelect/index.js +1 -0
- package/dist/browser/ui/atoms/FilterSelect/types.js +0 -0
- package/dist/browser/ui/atoms/LoadingSpinner/LoadingSpinner.js +1 -0
- package/dist/browser/ui/atoms/LoadingSpinner/index.js +1 -0
- package/dist/browser/ui/atoms/Pagination/Pagination.js +1 -0
- package/dist/browser/ui/atoms/Pagination/index.js +1 -0
- package/dist/browser/ui/atoms/Pagination/types.js +0 -0
- package/dist/browser/ui/atoms/SearchInput/SearchInput.js +1 -0
- package/dist/browser/ui/atoms/SearchInput/index.js +1 -0
- package/dist/browser/ui/atoms/SearchInput/types.js +0 -0
- package/dist/browser/ui/avatar.js +1 -0
- package/dist/browser/ui/badge.js +1 -0
- package/dist/browser/ui/breadcrumb.js +1 -0
- package/dist/browser/ui/button-group.js +1 -0
- package/dist/browser/ui/button.js +1 -0
- package/dist/browser/ui/calendar.js +1 -0
- package/dist/browser/ui/card.js +1 -0
- package/dist/browser/ui/carousel.js +1 -0
- package/dist/browser/ui/chart.js +1 -0
- package/dist/browser/ui/checkbox.js +1 -0
- package/dist/browser/ui/collapsible.js +1 -0
- package/dist/browser/ui/combobox.js +1 -0
- package/dist/browser/ui/command.js +1 -0
- package/dist/browser/ui/confirm-dialog.js +1 -0
- package/dist/browser/ui/context-menu.js +1 -0
- package/dist/browser/ui/contracts.typecheck.js +0 -0
- package/dist/browser/ui/cta.js +1 -0
- package/dist/browser/ui/data-table.js +1 -0
- package/dist/browser/ui/data-table.parts.js +1 -0
- package/dist/browser/ui/date-picker.js +1 -0
- package/dist/browser/ui/date-range-picker.js +1 -0
- package/dist/browser/ui/datetime-picker.js +1 -0
- package/dist/browser/ui/dialog.js +1 -0
- package/dist/browser/ui/direction.js +1 -0
- package/dist/browser/ui/drawer.js +1 -0
- package/dist/browser/ui/dropdown-menu.js +1 -0
- package/dist/browser/ui/empty-state.js +1 -0
- package/dist/browser/ui/empty.js +1 -0
- package/dist/browser/ui/field.js +1 -0
- package/dist/browser/ui/focus-on-route-change.js +1 -0
- package/dist/browser/ui/form.js +1 -0
- package/dist/browser/ui/hover-card.js +1 -0
- package/dist/browser/ui/input-group.js +1 -0
- package/dist/browser/ui/input-otp.js +1 -0
- package/dist/browser/ui/input-password.js +1 -0
- package/dist/browser/ui/input.js +1 -0
- package/dist/browser/ui/item.js +1 -0
- package/dist/browser/ui/kbd.js +1 -0
- package/dist/browser/ui/label.js +1 -0
- package/dist/browser/ui/link.js +1 -0
- package/dist/browser/ui/list.js +1 -0
- package/dist/browser/ui/live-region.js +1 -0
- package/dist/browser/ui/loading-button.js +1 -0
- package/dist/browser/ui/map/MapBase.js +1 -0
- package/dist/browser/ui/map/MapGeoJsonOverlay.js +1 -0
- package/dist/browser/ui/map/MapHeatmapH3.js +1 -0
- package/dist/browser/ui/map/MapMarkers.js +1 -0
- package/dist/browser/ui/map/index.js +1 -0
- package/dist/browser/ui/marketing/FeatureGrid.js +1 -0
- package/dist/browser/ui/marketing/Hero.js +1 -0
- package/dist/browser/ui/marketing/PricingTable.js +1 -0
- package/dist/browser/ui/marketing/index.js +1 -0
- package/dist/browser/ui/menubar.js +1 -0
- package/dist/browser/ui/molecules/Autocomplete/index.js +1 -0
- package/dist/browser/ui/molecules/SearchAndFilter/SearchAndFilter.js +1 -0
- package/dist/browser/ui/molecules/SearchAndFilter/index.js +1 -0
- package/dist/browser/ui/molecules/SearchAndFilter/types.js +0 -0
- package/dist/browser/ui/molecules/SkeletonList.js +1 -0
- package/dist/browser/ui/native-select.js +1 -0
- package/dist/browser/ui/nav-layout.js +1 -0
- package/dist/browser/ui/navigation-menu.js +1 -0
- package/dist/browser/ui/organisms/ErrorBoundary/ErrorBoundary.js +1 -0
- package/dist/browser/ui/organisms/ErrorBoundary/index.js +1 -0
- package/dist/browser/ui/organisms/ListPage/ListPage.js +1 -0
- package/dist/browser/ui/organisms/ListPage/index.js +1 -0
- package/dist/browser/ui/organisms/ListPage/types.js +0 -0
- package/dist/browser/ui/page-header.js +1 -0
- package/dist/browser/ui/pagination.js +1 -0
- package/dist/browser/ui/popover.js +1 -0
- package/dist/browser/ui/progress.js +1 -0
- package/dist/browser/ui/radio-group.js +1 -0
- package/dist/browser/ui/resizable.js +1 -0
- package/dist/browser/ui/route-announcer.js +1 -0
- package/dist/browser/ui/scroll-area.js +1 -0
- package/dist/browser/ui/section.js +1 -0
- package/dist/browser/ui/select.js +1 -0
- package/dist/browser/ui/separator.js +1 -0
- package/dist/browser/ui/sheet.js +1 -0
- package/dist/browser/ui/sidebar.js +1 -0
- package/dist/browser/ui/skeleton.js +1 -0
- package/dist/browser/ui/skip-link.js +1 -0
- package/dist/browser/ui/slider.js +1 -0
- package/dist/browser/ui/sonner.js +1 -0
- package/dist/browser/ui/spinner.js +1 -0
- package/dist/browser/ui/stack.js +1 -0
- package/dist/browser/ui/stat-card-group.js +1 -0
- package/dist/browser/ui/stepper.js +1 -0
- package/dist/browser/ui/switch.js +1 -0
- package/dist/browser/ui/table.js +1 -0
- package/dist/browser/ui/tabs.js +1 -0
- package/dist/browser/ui/text.js +1 -0
- package/dist/browser/ui/textarea.js +1 -0
- package/dist/browser/ui/time-picker.js +1 -0
- package/dist/browser/ui/toast.js +1 -0
- package/dist/browser/ui/toaster.js +1 -0
- package/dist/browser/ui/toggle-group.js +1 -0
- package/dist/browser/ui/toggle.js +1 -0
- package/dist/browser/ui/tooltip.js +1 -0
- package/dist/browser/ui/typography.js +1 -0
- package/dist/browser/ui/use-media-query.js +1 -0
- package/dist/browser/ui/use-mobile.js +1 -0
- package/dist/browser/ui/use-reduced-motion.js +1 -0
- package/dist/browser/ui/use-toast.js +1 -0
- package/dist/browser/ui/useListState.js +1 -0
- package/dist/browser/ui/usecases/UseCaseCard.js +1 -0
- package/dist/browser/ui/usecases/UserStoryCard.js +1 -0
- package/dist/browser/ui/usecases/index.js +1 -0
- package/dist/browser/ui/utils.js +1 -0
- package/dist/browser/ui/visualization/Visualization.js +1 -0
- package/dist/browser/ui/visualization/Visualization.support.js +1 -0
- package/dist/browser/ui/visualization/index.js +1 -0
- package/dist/browser/ui/visually-hidden.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/ui/accordion.d.ts +7 -0
- package/dist/ui/accordion.js +2 -0
- package/dist/ui/alert-dialog.d.ts +14 -0
- package/dist/ui/alert-dialog.js +2 -0
- package/dist/ui/alert.d.ts +9 -0
- package/dist/ui/alert.js +2 -0
- package/dist/ui/aspect-ratio.d.ts +3 -0
- package/dist/ui/aspect-ratio.js +2 -0
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +3 -0
- package/dist/ui/atoms/FilterSelect/FilterSelect.js +2 -0
- package/dist/ui/atoms/FilterSelect/index.d.ts +2 -0
- package/dist/ui/atoms/FilterSelect/index.js +2 -0
- package/dist/ui/atoms/FilterSelect/types.d.ts +5 -0
- package/dist/ui/atoms/FilterSelect/types.js +1 -0
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +19 -0
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +2 -0
- package/dist/ui/atoms/LoadingSpinner/index.d.ts +1 -0
- package/dist/ui/atoms/LoadingSpinner/index.js +2 -0
- package/dist/ui/atoms/Pagination/Pagination.d.ts +3 -0
- package/dist/ui/atoms/Pagination/Pagination.js +2 -0
- package/dist/ui/atoms/Pagination/index.d.ts +2 -0
- package/dist/ui/atoms/Pagination/index.js +2 -0
- package/dist/ui/atoms/Pagination/types.d.ts +3 -0
- package/dist/ui/atoms/Pagination/types.js +1 -0
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts +3 -0
- package/dist/ui/atoms/SearchInput/SearchInput.js +2 -0
- package/dist/ui/atoms/SearchInput/index.d.ts +2 -0
- package/dist/ui/atoms/SearchInput/index.js +2 -0
- package/dist/ui/atoms/SearchInput/types.d.ts +3 -0
- package/dist/ui/atoms/SearchInput/types.js +1 -0
- package/dist/ui/avatar.d.ts +6 -0
- package/dist/ui/avatar.js +2 -0
- package/dist/ui/badge.d.ts +9 -0
- package/dist/ui/badge.js +2 -0
- package/dist/ui/breadcrumb.d.ts +11 -0
- package/dist/ui/breadcrumb.js +2 -0
- package/dist/ui/button-group.d.ts +5 -0
- package/dist/ui/button-group.js +2 -0
- package/dist/ui/button.d.ts +17 -0
- package/dist/ui/button.js +2 -0
- package/dist/ui/calendar.d.ts +8 -0
- package/dist/ui/calendar.js +2 -0
- package/dist/ui/card.d.ts +9 -0
- package/dist/ui/card.js +2 -0
- package/dist/ui/carousel.d.ts +19 -0
- package/dist/ui/carousel.js +2 -0
- package/dist/ui/chart.d.ts +45 -0
- package/dist/ui/chart.js +2 -0
- package/dist/ui/checkbox.d.ts +4 -0
- package/dist/ui/checkbox.js +2 -0
- package/dist/ui/collapsible.d.ts +5 -0
- package/dist/ui/collapsible.js +2 -0
- package/dist/ui/combobox.d.ts +32 -0
- package/dist/ui/combobox.js +2 -0
- package/dist/ui/combobox.test.d.ts +1 -0
- package/dist/ui/command.d.ts +18 -0
- package/dist/ui/command.js +2 -0
- package/dist/ui/confirm-dialog.d.ts +14 -0
- package/dist/ui/confirm-dialog.js +2 -0
- package/dist/ui/context-menu.d.ts +31 -0
- package/dist/ui/context-menu.js +2 -0
- package/dist/ui/contracts.typecheck.d.ts +1 -0
- package/dist/ui/contracts.typecheck.js +1 -0
- package/dist/ui/cta.d.ts +12 -0
- package/dist/ui/cta.js +2 -0
- package/dist/ui/data-table.d.ts +8 -0
- package/dist/ui/data-table.js +2 -0
- package/dist/ui/data-table.parts.d.ts +19 -0
- package/dist/ui/data-table.parts.js +2 -0
- package/dist/ui/data-table.test.d.ts +1 -0
- package/dist/ui/date-picker.d.ts +5 -0
- package/dist/ui/date-picker.js +2 -0
- package/dist/ui/date-range-picker.d.ts +6 -0
- package/dist/ui/date-range-picker.js +2 -0
- package/dist/ui/datetime-picker.d.ts +6 -0
- package/dist/ui/datetime-picker.js +2 -0
- package/dist/ui/dialog.d.ts +15 -0
- package/dist/ui/dialog.js +2 -0
- package/dist/ui/direction.d.ts +9 -0
- package/dist/ui/direction.js +2 -0
- package/dist/ui/drawer.d.ts +13 -0
- package/dist/ui/drawer.js +2 -0
- package/dist/ui/dropdown-menu.d.ts +25 -0
- package/dist/ui/dropdown-menu.js +2 -0
- package/dist/ui/empty-state.d.ts +9 -0
- package/dist/ui/empty-state.js +2 -0
- package/dist/ui/empty.d.ts +12 -0
- package/dist/ui/empty.js +2 -0
- package/dist/ui/field.d.ts +20 -0
- package/dist/ui/field.js +2 -0
- package/dist/ui/focus-on-route-change.d.ts +3 -0
- package/dist/ui/focus-on-route-change.js +2 -0
- package/dist/ui/form.d.ts +26 -0
- package/dist/ui/form.js +2 -0
- package/dist/ui/hover-card.d.ts +6 -0
- package/dist/ui/hover-card.js +2 -0
- package/dist/ui/input-group.d.ts +18 -0
- package/dist/ui/input-group.js +2 -0
- package/dist/ui/input-otp.d.ts +16 -0
- package/dist/ui/input-otp.js +2 -0
- package/dist/ui/input-password.d.ts +11 -0
- package/dist/ui/input-password.js +2 -0
- package/dist/ui/input-password.test.d.ts +1 -0
- package/dist/ui/input.d.ts +7 -0
- package/dist/ui/input.js +2 -0
- package/dist/ui/item.d.ts +23 -0
- package/dist/ui/item.js +2 -0
- package/dist/ui/kbd.d.ts +3 -0
- package/dist/ui/kbd.js +2 -0
- package/dist/ui/label.d.ts +4 -0
- package/dist/ui/label.js +2 -0
- package/dist/ui/link.d.ts +6 -0
- package/dist/ui/link.js +2 -0
- package/dist/ui/list.d.ts +20 -0
- package/dist/ui/list.js +2 -0
- package/dist/ui/live-region.d.ts +10 -0
- package/dist/ui/live-region.js +2 -0
- package/dist/ui/loading-button.d.ts +9 -0
- package/dist/ui/loading-button.js +2 -0
- package/dist/ui/map/MapBase.d.ts +22 -0
- package/dist/ui/map/MapBase.js +2 -0
- package/dist/ui/map/MapGeoJsonOverlay.d.ts +10 -0
- package/dist/ui/map/MapGeoJsonOverlay.js +2 -0
- package/dist/ui/map/MapHeatmapH3.d.ts +12 -0
- package/dist/ui/map/MapHeatmapH3.js +2 -0
- package/dist/ui/map/MapMarkers.d.ts +12 -0
- package/dist/ui/map/MapMarkers.js +2 -0
- package/dist/ui/map/index.d.ts +4 -0
- package/dist/ui/map/index.js +2 -0
- package/dist/ui/marketing/FeatureGrid.d.ts +4 -0
- package/dist/ui/marketing/FeatureGrid.js +2 -0
- package/dist/ui/marketing/Hero.d.ts +16 -0
- package/dist/ui/marketing/Hero.js +2 -0
- package/dist/ui/marketing/PricingTable.d.ts +4 -0
- package/dist/ui/marketing/PricingTable.js +2 -0
- package/dist/ui/marketing/index.d.ts +3 -0
- package/dist/ui/marketing/index.js +2 -0
- package/dist/ui/menubar.d.ts +26 -0
- package/dist/ui/menubar.js +2 -0
- package/dist/ui/molecules/Autocomplete/index.d.ts +1 -0
- package/dist/ui/molecules/Autocomplete/index.js +2 -0
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +3 -0
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +2 -0
- package/dist/ui/molecules/SearchAndFilter/index.d.ts +2 -0
- package/dist/ui/molecules/SearchAndFilter/index.js +2 -0
- package/dist/ui/molecules/SearchAndFilter/types.d.ts +3 -0
- package/dist/ui/molecules/SearchAndFilter/types.js +1 -0
- package/dist/ui/molecules/SkeletonList.d.ts +7 -0
- package/dist/ui/molecules/SkeletonList.js +2 -0
- package/dist/ui/native-select.d.ts +4 -0
- package/dist/ui/native-select.js +2 -0
- package/dist/ui/nav-layout.d.ts +47 -0
- package/dist/ui/nav-layout.js +2 -0
- package/dist/ui/navigation-menu.d.ts +14 -0
- package/dist/ui/navigation-menu.js +2 -0
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +25 -0
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +2 -0
- package/dist/ui/organisms/ErrorBoundary/index.d.ts +2 -0
- package/dist/ui/organisms/ErrorBoundary/index.js +2 -0
- package/dist/ui/organisms/ListPage/ListPage.d.ts +2 -0
- package/dist/ui/organisms/ListPage/ListPage.js +2 -0
- package/dist/ui/organisms/ListPage/index.d.ts +2 -0
- package/dist/ui/organisms/ListPage/index.js +2 -0
- package/dist/ui/organisms/ListPage/types.d.ts +37 -0
- package/dist/ui/organisms/ListPage/types.js +1 -0
- package/dist/ui/page-header.d.ts +9 -0
- package/dist/ui/page-header.js +2 -0
- package/dist/ui/pagination.d.ts +17 -0
- package/dist/ui/pagination.js +2 -0
- package/dist/ui/popover.d.ts +7 -0
- package/dist/ui/popover.js +2 -0
- package/dist/ui/progress.d.ts +4 -0
- package/dist/ui/progress.js +2 -0
- package/dist/ui/radio-group.d.ts +5 -0
- package/dist/ui/radio-group.js +2 -0
- package/dist/ui/resizable.d.ts +8 -0
- package/dist/ui/resizable.js +2 -0
- package/dist/ui/route-announcer.d.ts +3 -0
- package/dist/ui/route-announcer.js +2 -0
- package/dist/ui/scroll-area.d.ts +5 -0
- package/dist/ui/scroll-area.js +2 -0
- package/dist/ui/section.d.ts +15 -0
- package/dist/ui/section.js +2 -0
- package/dist/ui/select.d.ts +15 -0
- package/dist/ui/select.js +2 -0
- package/dist/ui/select.test.d.ts +1 -0
- package/dist/ui/separator.d.ts +4 -0
- package/dist/ui/separator.js +2 -0
- package/dist/ui/sheet.d.ts +13 -0
- package/dist/ui/sheet.js +2 -0
- package/dist/ui/sidebar.d.ts +69 -0
- package/dist/ui/sidebar.js +2 -0
- package/dist/ui/skeleton.d.ts +3 -0
- package/dist/ui/skeleton.js +2 -0
- package/dist/ui/skip-link.d.ts +7 -0
- package/dist/ui/skip-link.js +2 -0
- package/dist/ui/slider.d.ts +4 -0
- package/dist/ui/slider.js +2 -0
- package/dist/ui/sonner.d.ts +3 -0
- package/dist/ui/sonner.js +2 -0
- package/dist/ui/spinner.d.ts +5 -0
- package/dist/ui/spinner.js +2 -0
- package/dist/ui/stack.d.ts +35 -0
- package/dist/ui/stack.js +2 -0
- package/dist/ui/stat-card-group.d.ts +10 -0
- package/dist/ui/stat-card-group.js +2 -0
- package/dist/ui/stepper.d.ts +10 -0
- package/dist/ui/stepper.js +2 -0
- package/dist/ui/switch.d.ts +6 -0
- package/dist/ui/switch.js +2 -0
- package/dist/ui/table.d.ts +10 -0
- package/dist/ui/table.js +2 -0
- package/dist/ui/tabs.d.ts +7 -0
- package/dist/ui/tabs.js +2 -0
- package/dist/ui/text.d.ts +6 -0
- package/dist/ui/text.js +2 -0
- package/dist/ui/textarea.d.ts +5 -0
- package/dist/ui/textarea.js +2 -0
- package/dist/ui/time-picker.d.ts +4 -0
- package/dist/ui/time-picker.js +2 -0
- package/dist/ui/toast.d.ts +28 -0
- package/dist/ui/toast.js +2 -0
- package/dist/ui/toaster.d.ts +1 -0
- package/dist/ui/toaster.js +2 -0
- package/dist/ui/toggle-group.d.ts +7 -0
- package/dist/ui/toggle-group.js +2 -0
- package/dist/ui/toggle.d.ts +9 -0
- package/dist/ui/toggle.js +2 -0
- package/dist/ui/tooltip.d.ts +7 -0
- package/dist/ui/tooltip.js +2 -0
- package/dist/ui/typography.d.ts +16 -0
- package/dist/ui/typography.js +2 -0
- package/dist/ui/use-media-query.d.ts +1 -0
- package/dist/ui/use-media-query.js +2 -0
- package/dist/ui/use-mobile.d.ts +1 -0
- package/dist/ui/use-mobile.js +2 -0
- package/dist/ui/use-reduced-motion.d.ts +1 -0
- package/dist/ui/use-reduced-motion.js +2 -0
- package/dist/ui/use-toast.d.ts +44 -0
- package/dist/ui/use-toast.js +2 -0
- package/dist/ui/useListState.d.ts +6 -0
- package/dist/ui/useListState.js +2 -0
- package/dist/ui/usecases/UseCaseCard.d.ts +7 -0
- package/dist/ui/usecases/UseCaseCard.js +2 -0
- package/dist/ui/usecases/UserStoryCard.d.ts +5 -0
- package/dist/ui/usecases/UserStoryCard.js +2 -0
- package/dist/ui/usecases/index.d.ts +2 -0
- package/dist/ui/usecases/index.js +2 -0
- package/dist/ui/utils.d.ts +2 -0
- package/dist/ui/utils.js +2 -0
- package/dist/ui/visualization/Visualization.d.ts +7 -0
- package/dist/ui/visualization/Visualization.js +2 -0
- package/dist/ui/visualization/Visualization.support.d.ts +15 -0
- package/dist/ui/visualization/Visualization.support.js +2 -0
- package/dist/ui/visualization/index.d.ts +1 -0
- package/dist/ui/visualization/index.js +2 -0
- package/dist/ui/visually-hidden.d.ts +8 -0
- package/dist/ui/visually-hidden.js +2 -0
- package/package.json +1691 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var E=import.meta.require;import{cn as v}from"@contractspec/lib.ui-kit-core/utils";import{GripVertical as A}from"lucide-react";import{Group as B,Panel as C,Separator as D}from"react-resizable-panels";import{jsx as f}from"react/jsx-runtime";var L=({className:g,...q})=>f(B,{className:v("flex h-full w-full",g),...q}),M=C,O=({withHandle:g,className:q,...y})=>f(D,{className:v("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 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",q),...y,children:g&&f("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border",children:f(A,{className:"h-2.5 w-2.5"})})});export{L as ResizablePanelGroup,M as ResizablePanel,O as ResizableHandle};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var v=import.meta.require;import*as b from"react";import{jsx as q}from"react/jsx-runtime";function y({title:d}){let[f,k]=b.useState("");return b.useEffect(()=>{if(d)k(d)},[d]),q("div",{"aria-live":"polite","aria-atomic":"true",className:"sr-only",children:f})}export{y as RouteAnnouncer};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { ScrollArea, ScrollBar };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var D=import.meta.require;import{cn as y}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@radix-ui/react-scroll-area";import{jsx as q,jsxs as C}from"react/jsx-runtime";function G({className:v,children:g,...w}){return C(f.Root,{"data-slot":"scroll-area",className:y("relative",v),...w,children:[q(f.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] outline-hidden transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50",children:g}),q(z,{}),q(f.Corner,{})]})}function z({className:v,orientation:g="vertical",...w}){return q(f.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:g,className:y("flex touch-none select-none p-px transition-colors",g==="vertical"&&"h-full w-2.5 border-l border-l-transparent",g==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",v),...w,children:q(f.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}export{z as ScrollBar,G as ScrollArea};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const sectionVariants: (props?: ({
|
|
4
|
+
width?: "container" | "narrow" | "wide" | "fluid" | null | undefined;
|
|
5
|
+
px?: "none" | "sm" | "lg" | "md" | null | undefined;
|
|
6
|
+
py?: "none" | "sm" | "lg" | "md" | "xl" | null | undefined;
|
|
7
|
+
tone?: "plain" | "tint" | "subtle" | null | undefined;
|
|
8
|
+
text?: "base" | "lg" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
export type SectionProps = React.HTMLAttributes<HTMLElement> & VariantProps<typeof sectionVariants> & {
|
|
11
|
+
as?: 'section' | 'div' | 'main' | 'header' | 'footer' | 'aside' | 'article' | 'nav';
|
|
12
|
+
ref?: React.Ref<HTMLElement>;
|
|
13
|
+
};
|
|
14
|
+
export declare function Section({ as, className, width, px, py, tone, text, ref, ...props }: SectionProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { sectionVariants };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var L=import.meta.require;import{cn as G}from"@contractspec/lib.ui-kit-core/utils";import{cva as H}from"class-variance-authority";import{jsx as J}from"react/jsx-runtime";var I=H("",{variants:{width:{container:"container mx-auto",narrow:"mx-auto max-w-3xl",wide:"mx-auto max-w-7xl",fluid:"w-full"},px:{none:"px-0",sm:"px-3",md:"px-4 sm:px-6",lg:"px-4 sm:px-6 lg:px-32"},py:{none:"py-0",sm:"py-6",md:"py-12",lg:"py-20",xl:"py-32"},tone:{plain:"",tint:"bg-muted/50",subtle:"bg-secondary/10"},text:{lg:"text-lg",base:"text-base"}},defaultVariants:{width:"container",px:"lg",py:"lg",tone:"plain",text:"lg"}});function Q({as:g="section",className:q,width:z,px:A,py:B,tone:C,text:D,ref:E,...F}){return J(g,{ref:E,className:G(I({width:z,px:A,py:B,tone:C,text:D}),q),...F})}export{I as sectionVariants,Q as Section};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
|
+
size?: 'sm' | 'default';
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var R=import.meta.require;import{cn as E}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@radix-ui/react-select";import{CheckIcon as M,ChevronDownIcon as K,ChevronUpIcon as O}from"lucide-react";import{jsx as y,jsxs as J}from"react/jsx-runtime";function Z({...q}){return y(f.Root,{"data-slot":"select",...q})}function _({...q}){return y(f.Group,{"data-slot":"select-group",...q})}function $({...q}){return y(f.Value,{"data-slot":"select-value",...q})}function G({className:q,size:A="default",children:F,...H}){return J(f.Trigger,{"data-slot":"select-trigger","data-size":A,className:E("flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-2xs outline-hidden transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-placeholder:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",q),...H,children:[F,y(f.Icon,{asChild:!0,children:y(K,{className:"size-4 opacity-50"})})]})}function L({className:q,children:A,position:F="popper",...H}){return y(f.Portal,{children:J(f.Content,{"data-slot":"select-content",className:E("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",F==="popper"&&"data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",q),position:F,...H,children:[y(P,{}),y(f.Viewport,{className:E("p-1",F==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:A}),y(Q,{})]})})}function T({className:q,...A}){return y(f.Label,{"data-slot":"select-label",className:E("px-2 py-1.5 text-muted-foreground text-xs",q),...A})}function V({className:q,children:A,...F}){return J(f.Item,{"data-slot":"select-item",className:E("relative flex w-full cursor-default select-none items-center gap-2 rounded-xs py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",q),...F,children:[y("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:y(f.ItemIndicator,{children:y(M,{className:"size-4"})})}),y(f.ItemText,{children:A})]})}function b({className:q,...A}){return y(f.Separator,{"data-slot":"select-separator",className:E("pointer-events-none -mx-1 my-1 h-px bg-border",q),...A})}function P({className:q,...A}){return y(f.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:E("flex cursor-default items-center justify-center py-1",q),...A,children:y(O,{className:"size-4"})})}function Q({className:q,...A}){return y(f.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:E("flex cursor-default items-center justify-center py-1",q),...A,children:y(K,{className:"size-4"})})}export{$ as SelectValue,G as SelectTrigger,b as SelectSeparator,P as SelectScrollUpButton,Q as SelectScrollDownButton,T as SelectLabel,V as SelectItem,_ as SelectGroup,L as SelectContent,Z as Select};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { Separator };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var A=import.meta.require;import{cn as y}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@radix-ui/react-separator";import{jsx as z}from"react/jsx-runtime";function D({className:g,orientation:h="horizontal",decorative:q=!0,...w}){return z(f.Root,{"data-slot":"separator",decorative:q,orientation:h,className:y("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",g),...w})}export{D as Separator};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
7
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SheetHeader({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SheetFooter({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, };
|
package/dist/ui/sheet.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var M=import.meta.require;import{cn as A}from"@contractspec/lib.ui-kit-core/utils";import*as q from"@radix-ui/react-dialog";import{XIcon as J}from"lucide-react";import{jsx as w,jsxs as E}from"react/jsx-runtime";function V({...f}){return w(q.Root,{"data-slot":"sheet",...f})}function W({...f}){return w(q.Trigger,{"data-slot":"sheet-trigger",...f})}function Y({...f}){return w(q.Close,{"data-slot":"sheet-close",...f})}function K({...f}){return w(q.Portal,{"data-slot":"sheet-portal",...f})}function L({className:f,...z}){return w(q.Overlay,{"data-slot":"sheet-overlay",className:A("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",f),...z})}function Z({className:f,children:z,side:B="right",...G}){return E(K,{children:[w(L,{}),E(q.Content,{"data-slot":"sheet-content",className:A("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500",B==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",B==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",B==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",B==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",f),...G,children:[z,E(q.Close,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[w(J,{className:"size-4"}),w("span",{className:"sr-only",children:"Close"})]})]})]})}function _({className:f,...z}){return w("div",{"data-slot":"sheet-header",className:A("flex flex-col gap-1.5 p-4",f),...z})}function $({className:f,...z}){return w("div",{"data-slot":"sheet-footer",className:A("mt-auto flex flex-col gap-2 p-4",f),...z})}function b({className:f,...z}){return w(q.Title,{"data-slot":"sheet-title",className:A("font-semibold text-foreground",f),...z})}function k({className:f,...z}){return w(q.Description,{"data-slot":"sheet-description",className:A("text-muted-foreground text-sm",f),...z})}export{W as SheetTrigger,b as SheetTitle,_ as SheetHeader,$ as SheetFooter,k as SheetDescription,Z as SheetContent,Y as SheetClose,V as Sheet};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Button } from './button';
|
|
4
|
+
import { Input } from './input';
|
|
5
|
+
import { Separator } from './separator';
|
|
6
|
+
import { TooltipContent } from './tooltip';
|
|
7
|
+
interface SidebarContextProps {
|
|
8
|
+
state: 'expanded' | 'collapsed';
|
|
9
|
+
open: boolean;
|
|
10
|
+
setOpen: (open: boolean) => void;
|
|
11
|
+
openMobile: boolean;
|
|
12
|
+
setOpenMobile: (open: boolean) => void;
|
|
13
|
+
isMobile: boolean;
|
|
14
|
+
toggleSidebar: () => void;
|
|
15
|
+
}
|
|
16
|
+
declare function useSidebar(): SidebarContextProps;
|
|
17
|
+
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentPropsWithoutRef<'div'> & {
|
|
18
|
+
defaultOpen?: boolean;
|
|
19
|
+
open?: boolean;
|
|
20
|
+
onOpenChange?: (open: boolean) => void;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentPropsWithoutRef<'div'> & {
|
|
23
|
+
side?: 'left' | 'right';
|
|
24
|
+
variant?: 'sidebar' | 'floating' | 'inset';
|
|
25
|
+
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare function SidebarRail({ className, ...props }: React.ComponentPropsWithoutRef<'button'>): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function SidebarInset({ className, ...props }: React.ComponentPropsWithoutRef<'main'>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare function SidebarHeader({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare function SidebarFooter({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
declare function SidebarContent({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function SidebarGroup({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentPropsWithoutRef<'div'> & {
|
|
37
|
+
asChild?: boolean;
|
|
38
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentPropsWithoutRef<'button'> & {
|
|
40
|
+
asChild?: boolean;
|
|
41
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
declare function SidebarGroupContent({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
declare function SidebarMenu({ className, ...props }: React.ComponentPropsWithoutRef<'ul'>): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
declare function SidebarMenuItem({ className, ...props }: React.ComponentPropsWithoutRef<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
declare const sidebarMenuButtonVariants: (props?: ({
|
|
46
|
+
variant?: "default" | "outline" | null | undefined;
|
|
47
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
48
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
49
|
+
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentPropsWithoutRef<'button'> & {
|
|
50
|
+
asChild?: boolean;
|
|
51
|
+
isActive?: boolean;
|
|
52
|
+
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
53
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentPropsWithoutRef<'button'> & {
|
|
55
|
+
asChild?: boolean;
|
|
56
|
+
showOnHover?: boolean;
|
|
57
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
declare function SidebarMenuBadge({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentPropsWithoutRef<'div'> & {
|
|
60
|
+
showIcon?: boolean;
|
|
61
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
declare function SidebarMenuSub({ className, ...props }: React.ComponentPropsWithoutRef<'ul'>): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentPropsWithoutRef<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentPropsWithoutRef<'a'> & {
|
|
65
|
+
asChild?: boolean;
|
|
66
|
+
size?: 'sm' | 'md';
|
|
67
|
+
isActive?: boolean;
|
|
68
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var _J=import.meta.require;import{cn as a}from"@contractspec/lib.ui-kit-core/utils";import{Slot as e}from"@radix-ui/react-slot";import{cva as s}from"class-variance-authority";import*as h from"react";import{jsx as QJ}from"react/jsx-runtime";var JJ=s("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),T=h.forwardRef(({className:J,variant:Q,size:Z,asChild:Y=!1,...F},f)=>{return QJ(Y?e:"button",{ref:f,"data-slot":"button",className:a(JJ({variant:Q,size:Z,className:J})),...F})});T.displayName="Button";import{clsx as ZJ}from"clsx";import{twMerge as $J}from"tailwind-merge";function u(...J){return $J(ZJ(J))}import{cn as YJ}from"@contractspec/lib.ui-kit-core/utils";import{jsx as qJ}from"react/jsx-runtime";function m({className:J,type:Q,ref:Z,...Y}){return qJ("input",{ref:Z,type:Q,"data-slot":"input",className:YJ("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",J),...Y})}import{jsx as FJ}from"react/jsx-runtime";function C({className:J,...Q}){return FJ("div",{"data-slot":"skeleton",className:u("animate-pulse rounded-md bg-accent",J),...Q})}import{cn as UJ}from"@contractspec/lib.ui-kit-core/utils";import*as N from"@radix-ui/react-separator";import{jsx as VJ}from"react/jsx-runtime";function j({className:J,orientation:Q="horizontal",decorative:Z=!0,...Y}){return VJ(N.Root,{"data-slot":"separator",decorative:Z,orientation:Q,className:UJ("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",J),...Y})}import{cn as R}from"@contractspec/lib.ui-kit-core/utils";import*as U from"@radix-ui/react-dialog";import{XIcon as WJ}from"lucide-react";import{jsx as W,jsxs as I}from"react/jsx-runtime";function S({...J}){return W(U.Root,{"data-slot":"sheet",...J})}function nJ({...J}){return W(U.Trigger,{"data-slot":"sheet-trigger",...J})}function lJ({...J}){return W(U.Close,{"data-slot":"sheet-close",...J})}function XJ({...J}){return W(U.Portal,{"data-slot":"sheet-portal",...J})}function fJ({className:J,...Q}){return W(U.Overlay,{"data-slot":"sheet-overlay",className:R("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",J),...Q})}function b({className:J,children:Q,side:Z="right",...Y}){return I(XJ,{children:[W(fJ,{}),I(U.Content,{"data-slot":"sheet-content",className:R("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500",Z==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",Z==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",Z==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",Z==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",J),...Y,children:[Q,I(U.Close,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[W(WJ,{className:"size-4"}),W("span",{className:"sr-only",children:"Close"})]})]})]})}function x({className:J,...Q}){return W("div",{"data-slot":"sheet-header",className:R("flex flex-col gap-1.5 p-4",J),...Q})}function iJ({className:J,...Q}){return W("div",{"data-slot":"sheet-footer",className:R("mt-auto flex flex-col gap-2 p-4",J),...Q})}function d({className:J,...Q}){return W(U.Title,{"data-slot":"sheet-title",className:R("font-semibold text-foreground",J),...Q})}function c({className:J,...Q}){return W(U.Description,{"data-slot":"sheet-description",className:R("text-muted-foreground text-sm",J),...Q})}import{cn as GJ}from"@contractspec/lib.ui-kit-core/utils";import*as X from"@radix-ui/react-tooltip";import{jsx as k,jsxs as LJ}from"react/jsx-runtime";function M({delayDuration:J=0,...Q}){return k(X.Provider,{"data-slot":"tooltip-provider",delayDuration:J,...Q})}function n({...J}){return k(M,{children:k(X.Root,{"data-slot":"tooltip",...J})})}function l({...J}){return k(X.Trigger,{"data-slot":"tooltip-trigger",...J})}function i({className:J,sideOffset:Q=0,children:Z,...Y}){return k(X.Portal,{children:LJ(X.Content,{"data-slot":"tooltip-content",sideOffset:Q,className:GJ("fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in text-balance rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=closed]:animate-out",J),...Y,children:[Z,k(X.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}import*as B from"react";var O=640;function r(){let[J,Q]=B.useState(void 0);return B.useEffect(()=>{let Z=window.matchMedia(`(max-width: ${O-1}px)`),Y=()=>{Q(window.innerWidth<O)};return Z.addEventListener("change",Y),Q(window.innerWidth<O),()=>Z.removeEventListener("change",Y)},[]),!!J}import{cn as q}from"@contractspec/lib.ui-kit-core/utils";import{Slot as P}from"@radix-ui/react-slot";import{cva as wJ}from"class-variance-authority";import{PanelLeftIcon as KJ}from"lucide-react";import*as V from"react";import{jsx as $,jsxs as z}from"react/jsx-runtime";var yJ="sidebar_state",HJ=604800,RJ="16rem",kJ="18rem",zJ="3rem",DJ="b",t=V.createContext(null);function g(){let J=V.useContext(t);if(!J)throw Error("useSidebar must be used within a SidebarProvider.");return J}function XQ({defaultOpen:J=!0,open:Q,onOpenChange:Z,className:Y,style:F,children:f,...y}){let L=r(),[H,w]=V.useState(!1),[_,p]=V.useState(J),D=Q??_,E=V.useCallback((G)=>{let K=typeof G==="function"?G(D):G;if(Z)Z(K);else p(K);document.cookie=`${yJ}=${K}; path=/; max-age=${HJ}`},[Z,D]),A=V.useCallback(()=>{return L?w((G)=>!G):E((G)=>!G)},[L,E,w]);V.useEffect(()=>{let G=(K)=>{if(K.key===DJ&&(K.metaKey||K.ctrlKey))K.preventDefault(),A()};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[A]);let v=D?"expanded":"collapsed",o=V.useMemo(()=>({state:v,open:D,setOpen:E,isMobile:L,openMobile:H,setOpenMobile:w,toggleSidebar:A}),[v,D,E,L,H,w,A]);return $(t.Provider,{value:o,children:$(M,{delayDuration:0,children:$("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":RJ,"--sidebar-width-icon":zJ,...F},className:q("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",Y),...y,children:f})})})}function fQ({side:J="left",variant:Q="sidebar",collapsible:Z="offcanvas",className:Y,children:F,...f}){let{isMobile:y,state:L,openMobile:H,setOpenMobile:w}=g();if(Z==="none")return $("div",{"data-slot":"sidebar",className:q("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",Y),...f,children:F});if(y)return $(S,{open:H,onOpenChange:w,...f,children:z(b,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":kJ},side:J,children:[z(x,{className:"sr-only",children:[$(d,{children:"Sidebar"}),$(c,{children:"Displays the mobile sidebar."})]}),$("div",{className:"flex h-full w-full flex-col",children:F})]})});return z("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":L,"data-collapsible":L==="collapsed"?Z:"","data-variant":Q,"data-side":J,"data-slot":"sidebar",children:[$("div",{"data-slot":"sidebar-gap",className:q("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",Q==="floating"||Q==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),$("div",{"data-slot":"sidebar-container",className:q("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",J==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",Q==="floating"||Q==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",Y),...f,children:$("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:F})})]})}function GQ({className:J,onClick:Q,...Z}){let{toggleSidebar:Y}=g();return z(T,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:q("size-7",J),onClick:(F)=>{Q?.(F),Y()},...Z,children:[$(KJ,{}),$("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function LQ({className:J,...Q}){let{toggleSidebar:Z}=g();return $("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:Z,title:"Toggle Sidebar",className:q("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",J),...Q})}function wQ({className:J,...Q}){return $("main",{"data-slot":"sidebar-inset",className:q("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",J),...Q})}function KQ({className:J,...Q}){return $(m,{"data-slot":"sidebar-input","data-sidebar":"input",className:q("h-8 w-full bg-background shadow-none",J),...Q})}function yQ({className:J,...Q}){return $("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:q("flex flex-col gap-2 p-2",J),...Q})}function HQ({className:J,...Q}){return $("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:q("flex flex-col gap-2 p-2",J),...Q})}function RQ({className:J,...Q}){return $(j,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:q("mx-2 w-auto bg-sidebar-border",J),...Q})}function kQ({className:J,...Q}){return $("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:q("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",J),...Q})}function zQ({className:J,...Q}){return $("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:q("relative flex w-full min-w-0 flex-col p-2",J),...Q})}function DQ({className:J,asChild:Q=!1,...Z}){return $(Q?P:"div",{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:q("flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-hidden ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",J),...Z})}function PQ({className:J,asChild:Q=!1,...Z}){return $(Q?P:"button",{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:q("absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",J),...Z})}function _Q({className:J,...Q}){return $("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:q("w-full text-sm",J),...Q})}function EQ({className:J,...Q}){return $("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:q("flex w-full min-w-0 flex-col gap-1",J),...Q})}function AQ({className:J,...Q}){return $("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:q("group/menu-item relative",J),...Q})}var PJ=wJ("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function BQ({asChild:J=!1,isActive:Q=!1,variant:Z="default",size:Y="default",tooltip:F,className:f,...y}){let L=J?P:"button",{isMobile:H,state:w}=g(),_=$(L,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":Y,"data-active":Q,className:q(PJ({variant:Z,size:Y}),f),...y});if(!F)return _;if(typeof F==="string")F={children:F};return z(n,{children:[$(l,{asChild:!0,children:_}),$(i,{side:"right",align:"center",hidden:w!=="collapsed"||H,...F})]})}function gQ({className:J,asChild:Q=!1,showOnHover:Z=!1,...Y}){return $(Q?P:"button",{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:q("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",Z&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",J),...Y})}function TQ({className:J,...Q}){return $("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:q("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 font-medium text-sidebar-foreground text-xs tabular-nums","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",J),...Q})}function CQ({className:J,showIcon:Q=!1,...Z}){let Y=V.useMemo(()=>{return`${Math.floor(Math.random()*40)+50}%`},[]);return z("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:q("flex h-8 items-center gap-2 rounded-md px-2",J),...Z,children:[Q&&$(C,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),$(C,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":Y}})]})}function IQ({className:J,...Q}){return $("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:q("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",J),...Q})}function MQ({className:J,...Q}){return $("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:q("group/menu-sub-item relative",J),...Q})}function OQ({asChild:J=!1,size:Q="md",isActive:Z=!1,className:Y,...F}){return $(J?P:"a",{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":Q,"data-active":Z,className:q("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",Q==="sm"&&"text-xs",Q==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",Y),...F})}export{g as useSidebar,GQ as SidebarTrigger,RQ as SidebarSeparator,LQ as SidebarRail,XQ as SidebarProvider,MQ as SidebarMenuSubItem,OQ as SidebarMenuSubButton,IQ as SidebarMenuSub,CQ as SidebarMenuSkeleton,AQ as SidebarMenuItem,BQ as SidebarMenuButton,TQ as SidebarMenuBadge,gQ as SidebarMenuAction,EQ as SidebarMenu,wQ as SidebarInset,KQ as SidebarInput,yQ as SidebarHeader,DQ as SidebarGroupLabel,_Q as SidebarGroupContent,PQ as SidebarGroupAction,zQ as SidebarGroup,HQ as SidebarFooter,kQ as SidebarContent,fQ as Sidebar};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var m=import.meta.require;import{clsx as r}from"clsx";import{twMerge as a}from"tailwind-merge";function e(...t){return a(r(t))}import{jsx as n}from"react/jsx-runtime";function u({className:t,...o}){return n("div",{"data-slot":"skeleton",className:e("animate-pulse rounded-md bg-accent",t),...o})}export{u as Skeleton};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface SkipLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
|
+
targetId?: string;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare function SkipLink({ targetId, children, className, ...props }: SkipLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var r=import.meta.require;import{jsx as s}from"react/jsx-runtime";var n="sr-only focus:not-sr-only focus-visible:outline-solid focus-visible:ring-4 focus-visible:ring-offset-2 fixed top-2 left-2 z-100 rounded-xs bg-background px-3 py-2 text-sm shadow-2xs";function c({targetId:e="main",children:o,className:t,...i}){return s("a",{className:[n,t].filter(Boolean).join(" "),href:`#${e}`,...i,children:o??"Skip to main content"})}export{c as SkipLink};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { Slider };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var I=import.meta.require;import{cn as z}from"@contractspec/lib.ui-kit-core/utils";import*as g from"@radix-ui/react-slider";import*as B from"react";import{jsx as A,jsxs as G}from"react/jsx-runtime";function L({className:C,defaultValue:h,value:q,min:w=0,max:y=100,...D}){let E=B.useMemo(()=>Array.isArray(q)?q:Array.isArray(h)?h:[w,y],[q,h,w,y]);return G(g.Root,{"data-slot":"slider",defaultValue:h,value:q,min:w,max:y,className:z("relative flex w-full touch-none select-none items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col data-disabled:opacity-50",C),...D,children:[A(g.Track,{"data-slot":"slider-track",className:z("relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-1.5"),children:A(g.Range,{"data-slot":"slider-range",className:z("absolute bg-primary data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:E.length},(H,F)=>A(g.Thumb,{"data-slot":"slider-thumb",className:"block size-4 shrink-0 rounded-full border border-primary bg-background shadow-2xs ring-ring/50 transition-[color,box-shadow] hover:ring-4 focus-visible:outline-hidden focus-visible:ring-4 disabled:pointer-events-none disabled:opacity-50"},F))]})}export{L as Slider};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var a=import.meta.require;import{useTheme as o}from"next-themes";import{Toaster as t}from"sonner";import{jsx as s}from"react/jsx-runtime";var l=({...r})=>{let{theme:e="system"}=o();return s(t,{theme:e,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...r})};export{l as Toaster};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface SpinnerProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
size?: 'sm' | 'default' | 'lg';
|
|
4
|
+
}
|
|
5
|
+
export declare function Spinner({ className, size, ...props }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var w=import.meta.require;import{cn as h}from"@contractspec/lib.ui-kit-core/utils";import{jsx as v}from"react/jsx-runtime";var q={sm:"size-4 border-2",default:"size-5 border-2",lg:"size-7 border-[3px]"};function B({className:d,size:f="default",...g}){return v("div",{"data-slot":"spinner","aria-label":"Loading",role:"status",className:h("inline-flex animate-spin rounded-full border-current border-r-transparent text-primary",q[f],d),...g})}export{B as Spinner};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const vStackVariants: (props?: ({
|
|
4
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
5
|
+
align?: "center" | "end" | "start" | "stretch" | null | undefined;
|
|
6
|
+
justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
type VStackProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof vStackVariants> & {
|
|
9
|
+
as?: 'div' | 'section' | 'nav' | 'main' | 'header' | 'footer' | 'article' | 'aside';
|
|
10
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
11
|
+
};
|
|
12
|
+
declare function VStack({ className, gap, align, justify, as, ref, ...props }: VStackProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const hStackVariants: (props?: ({
|
|
14
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
15
|
+
align?: "center" | "end" | "start" | "stretch" | "baseline" | null | undefined;
|
|
16
|
+
justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
|
|
17
|
+
wrap?: "nowrap" | "wrap" | "wrapReverse" | null | undefined;
|
|
18
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
19
|
+
type HStackProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof hStackVariants> & {
|
|
20
|
+
as?: 'div' | 'section' | 'nav' | 'header' | 'footer' | 'article' | 'aside';
|
|
21
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
22
|
+
};
|
|
23
|
+
declare function HStack({ className, gap, align, justify, wrap, as, ref, ...props }: HStackProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare const boxVariants: (props?: ({
|
|
25
|
+
gap?: "none" | "sm" | "lg" | "xs" | "md" | "xl" | "2xl" | null | undefined;
|
|
26
|
+
align?: "center" | "end" | "start" | "stretch" | "baseline" | null | undefined;
|
|
27
|
+
justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
|
|
28
|
+
wrap?: "nowrap" | "wrap" | "wrapReverse" | null | undefined;
|
|
29
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
30
|
+
type BoxProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof boxVariants> & {
|
|
31
|
+
as?: 'div' | 'section' | 'nav' | 'header' | 'footer' | 'article' | 'aside';
|
|
32
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
33
|
+
};
|
|
34
|
+
declare function Box({ className, gap, align, justify, wrap, as, ref, ...props }: BoxProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export { Box, boxVariants, HStack, hStackVariants, VStack, vStackVariants };
|
package/dist/ui/stack.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var P=import.meta.require;import{cn as G}from"@contractspec/lib.ui-kit-core/utils";import{cva as I}from"class-variance-authority";import{jsx as J}from"react/jsx-runtime";var L=I("flex flex-col",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{gap:"md",align:"stretch",justify:"start"}});function U({className:d,gap:q,align:z,justify:A,as:C="div",ref:D,...E}){return J(C,{ref:D,className:G(L({gap:q,align:z,justify:A}),d),...E})}var M=I("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"start",wrap:"wrap"}});function W({className:d,gap:q,align:z,justify:A,wrap:C,as:D="div",ref:E,...F}){return J(D,{ref:E,className:G(M({gap:q,align:z,justify:A,wrap:C}),d),...F})}var O=I("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"center",wrap:"nowrap"}});function X({className:d,gap:q,align:z,justify:A,wrap:C,as:D="div",ref:E,...F}){return J(D,{ref:E,className:G(O({gap:q,align:z,justify:A,wrap:C}),d),...F})}export{L as vStackVariants,M as hStackVariants,O as boxVariants,U as VStack,W as HStack,X as Box};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface StatItem {
|
|
3
|
+
label: React.ReactNode;
|
|
4
|
+
value: React.ReactNode;
|
|
5
|
+
tone?: 'blue' | 'green' | 'amber';
|
|
6
|
+
}
|
|
7
|
+
export declare function StatCardGroup({ items, className, }: {
|
|
8
|
+
items: StatItem[];
|
|
9
|
+
className?: string;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var Q=import.meta.require;import{cn as R}from"@contractspec/lib.ui-kit-core/utils";import{jsx as I}from"react/jsx-runtime";function z({className:e,...t}){return I("div",{"data-slot":"card",className:R("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-2xs",e),...t})}function X({className:e,...t}){return I("div",{"data-slot":"card-header",className:R("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Y({className:e,...t}){return I("div",{"data-slot":"card-title",className:R("font-semibold leading-none",e),...t})}function Z({className:e,...t}){return I("div",{"data-slot":"card-description",className:R("text-muted-foreground text-sm",e),...t})}function _({className:e,...t}){return I("div",{"data-slot":"card-action",className:R("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function C({className:e,...t}){return I("div",{"data-slot":"card-content",className:R("px-6",e),...t})}function f({className:e,...t}){return I("div",{"data-slot":"card-footer",className:R("flex items-center px-6 [.border-t]:pt-6",e),...t})}import{cn as $}from"@contractspec/lib.ui-kit-core/utils";import{cva as q}from"class-variance-authority";import{jsx as v}from"react/jsx-runtime";var K=q("flex flex-col",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{gap:"md",align:"stretch",justify:"start"}});function E({className:e,gap:t,align:b,justify:d,as:u="div",ref:S,...m}){return v(u,{ref:S,className:$(K({gap:t,align:b,justify:d}),e),...m})}var L=q("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"start",wrap:"wrap"}});function H({className:e,gap:t,align:b,justify:d,wrap:u,as:S="div",ref:m,...G}){return v(S,{ref:m,className:$(L({gap:t,align:b,justify:d,wrap:u}),e),...G})}var M=q("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"center",wrap:"nowrap"}});function F({className:e,gap:t,align:b,justify:d,wrap:u,as:S="div",ref:m,...G}){return v(S,{ref:m,className:$(M({gap:t,align:b,justify:d,wrap:u}),e),...G})}import{jsx as w,jsxs as P}from"react/jsx-runtime";function O(e){switch(e){case"green":return"bg-green-50 text-green-800";case"amber":return"bg-amber-50 text-amber-800";case"blue":default:return"bg-blue-50 text-blue-800"}}function V({items:e,className:t}){return w(H,{className:t+"w-full flex-wrap gap-3",children:e.map((b,d)=>w(z,{className:"border-none shadow-2xs",children:w(C,{className:"px-4 py-3",children:P(E,{className:"gap-1",children:[w("div",{className:`w-fit rounded-xs px-2 py-0.5 text-sm ${O(b.tone)}`,children:b.label}),w("div",{className:"font-semibold text-xl",children:b.value})]})})},d))})}export{V as StatCardGroup};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SharedStepperProps } from '@contractspec/lib.ui-kit-core/interfaces';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const dotVariants: (props?: ({
|
|
4
|
+
state?: "active" | "inactive" | null | undefined;
|
|
5
|
+
size?: "sm" | "md" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface StepperProps extends SharedStepperProps, VariantProps<typeof dotVariants> {
|
|
8
|
+
}
|
|
9
|
+
export declare function Stepper({ current, total, size, className }: StepperProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var Y=import.meta.require;import{cn as J}from"@contractspec/lib.ui-kit-core/utils";import{cva as K}from"class-variance-authority";import{jsx as L}from"react/jsx-runtime";var R=K("flex flex-col",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{gap:"md",align:"stretch",justify:"start"}});function B({className:A,gap:C,align:D,justify:E,as:F="div",ref:G,...q}){return L(F,{ref:G,className:J(R({gap:C,align:D,justify:E}),A),...q})}var T=K("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"start",wrap:"wrap"}});function M({className:A,gap:C,align:D,justify:E,wrap:F,as:G="div",ref:q,...I}){return L(G,{ref:q,className:J(T({gap:C,align:D,justify:E,wrap:F}),A),...I})}var U=K("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"center",wrap:"nowrap"}});function z({className:A,gap:C,align:D,justify:E,wrap:F,as:G="div",ref:q,...I}){return L(G,{ref:q,className:J(U({gap:C,align:D,justify:E,wrap:F}),A),...I})}import{cn as O}from"@contractspec/lib.ui-kit-core/utils";import{cva as W}from"class-variance-authority";import{jsx as P}from"react/jsx-runtime";var X=W("h-2 w-2 rounded-full",{variants:{state:{active:"bg-primary",inactive:"bg-muted-foreground/20"},size:{sm:"",md:"h-2.5 w-2.5"}},defaultVariants:{state:"inactive",size:"md"}});function S({current:A,total:C,size:D,className:E}){let F=Array.from({length:Math.max(0,C)});return P(M,{className:O("items-center gap-2",E),children:F.map((G,q)=>P("span",{className:O(X({state:q+1===A?"active":"inactive",size:D}))},q))})}export{S as Stepper};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Switch({ className, thumbClassName, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
4
|
+
thumbClassName?: string;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Switch };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var A=import.meta.require;import{cn as g}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@radix-ui/react-switch";import{jsx as q}from"react/jsx-runtime";function E({className:v,thumbClassName:y,...z}){return q(f.Root,{"data-slot":"switch",className:g("peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-2xs outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",v),...z,children:q(f.Thumb,{"data-slot":"switch-thumb",className:g("pointer-events-none block size-4 rounded-full bg-background ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground",y)})})}export{E as Switch};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare function Table({ className, ...props }: React.ComponentPropsWithoutRef<'table'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function TableHeader({ className, ...props }: React.ComponentPropsWithoutRef<'thead'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function TableBody({ className, ...props }: React.ComponentPropsWithoutRef<'tbody'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TableFooter({ className, ...props }: React.ComponentPropsWithoutRef<'tfoot'>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TableRow({ className, ...props }: React.ComponentPropsWithoutRef<'tr'>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function TableHead({ className, ...props }: React.ComponentPropsWithoutRef<'th'>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function TableCell({ className, ...props }: React.ComponentPropsWithoutRef<'td'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function TableCaption({ className, ...props }: React.ComponentPropsWithoutRef<'caption'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, };
|
package/dist/ui/table.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var v=import.meta.require;import{cn as q}from"@contractspec/lib.ui-kit-core/utils";import{jsx as h}from"react/jsx-runtime";function D({className:f,...g}){return h("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:h("table",{"data-slot":"table",className:q("w-full caption-bottom text-sm",f),...g})})}function E({className:f,...g}){return h("thead",{"data-slot":"table-header",className:q("[&_tr]:border-b",f),...g})}function G({className:f,...g}){return h("tbody",{"data-slot":"table-body",className:q("[&_tr:last-child]:border-0",f),...g})}function I({className:f,...g}){return h("tfoot",{"data-slot":"table-footer",className:q("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",f),...g})}function J({className:f,...g}){return h("tr",{"data-slot":"table-row",className:q("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",f),...g})}function K({className:f,...g}){return h("th",{"data-slot":"table-head",className:q("h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",f),...g})}function L({className:f,...g}){return h("td",{"data-slot":"table-cell",className:q("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",f),...g})}function M({className:f,...g}){return h("caption",{"data-slot":"table-caption",className:q("mt-4 text-muted-foreground text-sm",f),...g})}export{J as TableRow,E as TableHeader,K as TableHead,I as TableFooter,L as TableCell,M as TableCaption,G as TableBody,D as Table};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
package/dist/ui/tabs.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var y=import.meta.require;import{cn as v}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@radix-ui/react-tabs";import{jsx as w}from"react/jsx-runtime";function B({className:h,...q}){return w(f.Root,{"data-slot":"tabs",className:v("flex flex-col gap-2",h),...q})}function D({className:h,...q}){return w(f.List,{"data-slot":"tabs-list",className:v("inline-flex h-9 w-fit items-center justify-center rounded-lg bg-muted p-[3px] text-muted-foreground",h),...q})}function E({className:h,...q}){return w(f.Trigger,{"data-slot":"tabs-trigger",className:v("inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 font-medium text-foreground text-sm transition-[color,box-shadow] focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:shadow-2xs dark:text-muted-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",h),...q})}function F({className:h,...q}){return w(f.Content,{"data-slot":"tabs-content",className:v("flex-1 outline-hidden",h),...q})}export{E as TabsTrigger,D as TabsList,F as TabsContent,B as Tabs};
|
package/dist/ui/text.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var A=import.meta.require;import{cn as v}from"@contractspec/lib.ui-kit-core/utils";import{Slot as w}from"@radix-ui/react-slot";import{jsx as y}from"react/jsx-runtime";function F({className:f,asChild:g=!1,...q}){return y(g?w:"p",{className:v("web:select-text text-base text-foreground",f),...q})}export{F as Text};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SharedTextareaProps } from '@contractspec/lib.ui-kit-core/interfaces';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type TextareaProps = SharedTextareaProps & React.ComponentPropsWithoutRef<'textarea'>;
|
|
4
|
+
declare function Textarea({ className, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { Textarea };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var q=import.meta.require;import{cn as g}from"@contractspec/lib.ui-kit-core/utils";import{jsx as h}from"react/jsx-runtime";function y({className:d,...f}){return h("textarea",{"data-slot":"textarea",className:g("field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-2xs outline-hidden transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",d),...f})}export{y as Textarea};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SharedTimePickerProps } from '@contractspec/lib.ui-kit-core/interfaces';
|
|
2
|
+
export interface TimePickerProps extends SharedTimePickerProps {
|
|
3
|
+
}
|
|
4
|
+
export declare function TimePicker({ value, onChange, disabled, placeholder, is24Hour, className, }: TimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var g=import.meta.require;import{cn as T}from"@contractspec/lib.ui-kit-core/utils";import{Slot as B}from"@radix-ui/react-slot";import{cva as O}from"class-variance-authority";import*as _ from"react";import{jsx as N}from"react/jsx-runtime";var C=O("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),L=_.forwardRef(({className:q,variant:E,size:F,asChild:G=!1,...K},R)=>{return N(G?B:"button",{ref:R,"data-slot":"button",className:T(C({variant:E,size:F,className:q})),...K})});L.displayName="Button";import{cn as f}from"@contractspec/lib.ui-kit-core/utils";import*as w from"@radix-ui/react-popover";import{jsx as J}from"react/jsx-runtime";function $({...q}){return J(w.Root,{"data-slot":"popover",...q})}function y({...q}){return J(w.Trigger,{"data-slot":"popover-trigger",...q})}function A({className:q,align:E="center",sideOffset:F=4,...G}){return J(w.Portal,{children:J(w.Content,{"data-slot":"popover-content",align:E,sideOffset:F,className:f("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in",q),...G})})}function l({...q}){return J(w.Anchor,{"data-slot":"popover-anchor",...q})}import{cn as H}from"@contractspec/lib.ui-kit-core/utils";import*as Q from"react";import{jsx as D,jsxs as M}from"react/jsx-runtime";function P(q,E){if(!q)return"";return q.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!E})}function a({value:q,onChange:E,disabled:F,placeholder:G="Select time",is24Hour:K=!0,className:R}){let[U,W]=Q.useState(!1),[X,S]=Q.useState(()=>q?String(q.getHours()).padStart(2,"0"):""),[Y,z]=Q.useState(()=>q?String(q.getMinutes()).padStart(2,"0"):""),V=(I,k)=>{let Z=new Date(q??new Date);Z.setHours(I,k,0,0),E(Z),W(!1)};return M($,{open:U,onOpenChange:W,children:[D(y,{asChild:!0,children:D(L,{type:"button",variant:"outline",disabled:F,className:H("w-full justify-start text-left font-normal",R),children:q?P(q,K):D("span",{className:"opacity-50",children:G})})}),D(A,{className:"w-56",align:"start",children:M("div",{className:"flex items-center gap-2",children:[D("input",{type:"number",min:0,max:K?23:12,value:X,onChange:(I)=>S(I.target.value),className:"w-16 rounded-md border border-input bg-background px-2 py-1 text-center"}),D("span",{children:":"}),D("input",{type:"number",min:0,max:59,value:Y,onChange:(I)=>z(I.target.value),className:"w-16 rounded-md border border-input bg-background px-2 py-1 text-center"}),D(L,{type:"button",onClick:()=>V(Number(X||0),Number(Y||0)),className:"ml-auto",children:"Set"})]})})]})}export{a as TimePicker};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
|
|
5
|
+
declare function ToastViewport({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport> & {
|
|
6
|
+
ref?: React.Ref<React.ElementRef<typeof ToastPrimitives.Viewport>>;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const toastVariants: (props?: ({
|
|
9
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
+
declare function Toast({ className, variant, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> & VariantProps<typeof toastVariants> & {
|
|
12
|
+
ref?: React.Ref<React.ElementRef<typeof ToastPrimitives.Root>>;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function ToastAction({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action> & {
|
|
15
|
+
ref?: React.Ref<React.ElementRef<typeof ToastPrimitives.Action>>;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function ToastClose({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close> & {
|
|
18
|
+
ref?: React.Ref<React.ElementRef<typeof ToastPrimitives.Close>>;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function ToastTitle({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title> & {
|
|
21
|
+
ref?: React.Ref<React.ElementRef<typeof ToastPrimitives.Title>>;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function ToastDescription({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description> & {
|
|
24
|
+
ref?: React.Ref<React.ElementRef<typeof ToastPrimitives.Description>>;
|
|
25
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
|
|
27
|
+
type ToastActionElement = React.ReactElement<typeof ToastAction>;
|
|
28
|
+
export { Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, };
|
package/dist/ui/toast.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var K=import.meta.require;import{cn as F}from"@contractspec/lib.ui-kit-core/utils";import*as g from"@radix-ui/react-toast";import{cva as H}from"class-variance-authority";import{X as I}from"lucide-react";import{jsx as E}from"react/jsx-runtime";var R=g.Provider;function S({className:q,ref:z,...B}){return E(g.Viewport,{ref:z,className:F("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]",q),...B})}var J=H("group data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[state=closed]:animate-out data-[state=open]:animate-in data-[swipe=end]:animate-out data-[swipe=move]:transition-none",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}});function U({className:q,variant:z,ref:B,...G}){return E(g.Root,{ref:B,className:F(J({variant:z}),q),...G})}function W({className:q,ref:z,...B}){return E(g.Action,{ref:z,className:F("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 font-medium text-base ring-offset-background transition-colors hover:bg-secondary focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:focus:ring-destructive group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground",q),...B})}function Y({className:q,ref:z,...B}){return E(g.Close,{ref:z,className:F("absolute top-2 right-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600 group-[.destructive]:hover:text-red-50",q),"toast-close":"",...B,children:E(I,{className:"h-4 w-4"})})}function Z({className:q,ref:z,...B}){return E(g.Title,{ref:z,className:F("font-semibold text-base",q),...B})}function _({className:q,ref:z,...B}){return E(g.Description,{ref:z,className:F("text-base opacity-90",q),...B})}export{S as ToastViewport,Z as ToastTitle,R as ToastProvider,_ as ToastDescription,Y as ToastClose,W as ToastAction,U as Toast};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Toaster(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var h=import.meta.require;import{cn as C}from"@contractspec/lib.ui-kit-core/utils";import*as w from"@radix-ui/react-toast";import{cva as v}from"class-variance-authority";import{X as E}from"lucide-react";import{jsx as B}from"react/jsx-runtime";var $=w.Provider;function k({className:g,ref:P,...q}){return B(w.Viewport,{ref:P,className:C("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]",g),...q})}var O=v("group data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[state=closed]:animate-out data-[state=open]:animate-in data-[swipe=end]:animate-out data-[swipe=move]:transition-none",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}});function X({className:g,variant:P,ref:q,...z}){return B(w.Root,{ref:q,className:C(O({variant:P}),g),...z})}function u({className:g,ref:P,...q}){return B(w.Action,{ref:P,className:C("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 font-medium text-base ring-offset-background transition-colors hover:bg-secondary focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:focus:ring-destructive group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground",g),...q})}function Y({className:g,ref:P,...q}){return B(w.Close,{ref:P,className:C("absolute top-2 right-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600 group-[.destructive]:hover:text-red-50",g),"toast-close":"",...q,children:B(E,{className:"h-4 w-4"})})}function b({className:g,ref:P,...q}){return B(w.Title,{ref:P,className:C("font-semibold text-base",g),...q})}function L({className:g,ref:P,...q}){return B(w.Description,{ref:P,className:C("text-base opacity-90",g),...q})}import*as J from"react";var R=1,_=1e6;var U=0;function A(){return U=(U+1)%Number.MAX_SAFE_INTEGER,U.toString()}var W=new Map,M=(g)=>{if(W.has(g))return;let P=setTimeout(()=>{W.delete(g),F({type:"REMOVE_TOAST",toastId:g})},_);W.set(g,P)},y=(g,P)=>{switch(P.type){case"ADD_TOAST":return{...g,toasts:[P.toast,...g.toasts].slice(0,R)};case"UPDATE_TOAST":return{...g,toasts:g.toasts.map((q)=>q.id===P.toast.id?{...q,...P.toast}:q)};case"DISMISS_TOAST":{let{toastId:q}=P;if(q)M(q);else g.toasts.forEach((z)=>{M(z.id)});return{...g,toasts:g.toasts.map((z)=>z.id===q||q===void 0?{...z,open:!1}:z)}}case"REMOVE_TOAST":if(P.toastId===void 0)return{...g,toasts:[]};return{...g,toasts:g.toasts.filter((q)=>q.id!==P.toastId)}}},G=[],H={toasts:[]};function F(g){H=y(H,g),G.forEach((P)=>{P(H)})}function T({...g}){let P=A(),q=(D)=>F({type:"UPDATE_TOAST",toast:{...D,id:P}}),z=()=>F({type:"DISMISS_TOAST",toastId:P});return F({type:"ADD_TOAST",toast:{...g,id:P,open:!0,onOpenChange:(D)=>{if(!D)z()}}}),{id:P,dismiss:z,update:q}}function Q(){let[g,P]=J.useState(H);return J.useEffect(()=>{return G.push(P),()=>{let q=G.indexOf(P);if(q>-1)G.splice(q,1)}},[g]),{...g,toast:T,dismiss:(q)=>F({type:"DISMISS_TOAST",toastId:q})}}import{jsx as K,jsxs as Z}from"react/jsx-runtime";function n(){let{toasts:g}=Q();return Z($,{children:[g.map(function({id:P,title:q,description:z,action:D,...V}){return Z(X,{...V,children:[Z("div",{className:"grid gap-1",children:[q&&K(b,{children:q}),z&&K(L,{children:z})]}),D,K(Y,{})]},P)}),K(k,{})]})}export{n as Toaster};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { toggleVariants } from './toggle';
|
|
5
|
+
declare function ToggleGroup({ className, variant, size, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { ToggleGroup, ToggleGroupItem };
|